@dopt/block-types
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -119,6 +119,9 @@ import { Static } from '@sinclair/typebox'; | ||
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"webhook">>; | ||
method: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>; | ||
body: import("@sinclair/typebox").TObject<{}>; | ||
request: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TPromise<import("@sinclair/typebox").TObject<{ | ||
ok: import("@sinclair/typebox").TBoolean; | ||
redirected: import("@sinclair/typebox").TBoolean; | ||
status: import("@sinclair/typebox").TNumber; | ||
statusText: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
}>>>; | ||
}>]>>]>; | ||
@@ -257,6 +260,9 @@ export type Block = Static<typeof Block>; | ||
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"webhook">>; | ||
method: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>; | ||
body: import("@sinclair/typebox").TObject<{}>; | ||
request: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TPromise<import("@sinclair/typebox").TObject<{ | ||
ok: import("@sinclair/typebox").TBoolean; | ||
redirected: import("@sinclair/typebox").TBoolean; | ||
status: import("@sinclair/typebox").TNumber; | ||
statusText: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
}>>>; | ||
}>]>>]>>>; | ||
@@ -263,0 +269,0 @@ export type Blocks = Static<typeof Blocks>; |
@@ -6,6 +6,9 @@ import { Static } from '@sinclair/typebox'; | ||
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"webhook">>; | ||
method: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>; | ||
body: import("@sinclair/typebox").TObject<{}>; | ||
request: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TPromise<import("@sinclair/typebox").TObject<{ | ||
ok: import("@sinclair/typebox").TBoolean; | ||
redirected: import("@sinclair/typebox").TBoolean; | ||
status: import("@sinclair/typebox").TNumber; | ||
statusText: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
}>>>; | ||
}>; | ||
@@ -23,8 +26,11 @@ export declare const Webhook: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{ | ||
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"webhook">>; | ||
method: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>; | ||
body: import("@sinclair/typebox").TObject<{}>; | ||
request: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TPromise<import("@sinclair/typebox").TObject<{ | ||
ok: import("@sinclair/typebox").TBoolean; | ||
redirected: import("@sinclair/typebox").TBoolean; | ||
status: import("@sinclair/typebox").TNumber; | ||
statusText: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
}>>>; | ||
}>]>; | ||
export type Webhook = Static<typeof Webhook>; | ||
//# sourceMappingURL=webhook.d.ts.map |
@@ -121,6 +121,9 @@ import { Static } from '@sinclair/typebox'; | ||
type: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TLiteral<"webhook">>; | ||
method: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TString<string>>; | ||
body: import("@sinclair/typebox").TObject<{}>; | ||
request: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TPromise<import("@sinclair/typebox").TObject<{ | ||
ok: import("@sinclair/typebox").TBoolean; | ||
redirected: import("@sinclair/typebox").TBoolean; | ||
status: import("@sinclair/typebox").TNumber; | ||
statusText: import("@sinclair/typebox").TString<string>; | ||
url: import("@sinclair/typebox").TString<string>; | ||
}>>>; | ||
}>]>>]>>>>; | ||
@@ -127,0 +130,0 @@ }>; |
@@ -275,6 +275,14 @@ "use strict"; | ||
type: import_typebox7.Type.Readonly(WebhookType), | ||
method: import_typebox7.Type.String(), | ||
url: import_typebox7.Type.String(), | ||
headers: import_typebox7.Type.Record(import_typebox7.Type.String(), import_typebox7.Type.String()), | ||
body: import_typebox7.Type.Object({}, { additionalProperties: true }) | ||
request: import_typebox7.Type.Function( | ||
[], | ||
import_typebox7.Type.Promise( | ||
import_typebox7.Type.Object({ | ||
ok: import_typebox7.Type.Boolean(), | ||
redirected: import_typebox7.Type.Boolean(), | ||
status: import_typebox7.Type.Number(), | ||
statusText: import_typebox7.Type.String(), | ||
url: import_typebox7.Type.String() | ||
}) | ||
) | ||
) | ||
}, | ||
@@ -339,6 +347,9 @@ { $id: "WebhookProps" } | ||
type: WebhookTypeConst, | ||
method: "", | ||
url: "", | ||
headers: {}, | ||
body: {} | ||
request: async () => ({ | ||
ok: true, | ||
redirected: false, | ||
status: 204, | ||
statusText: "", | ||
url: "" | ||
}) | ||
}; | ||
@@ -345,0 +356,0 @@ default: |
{ | ||
"name": "@dopt/block-types", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Schema/Type definitions for objects surfaced through the Block API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/dopt/odopt/tree/main/packages/%40dopt/block-types", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88345
1522