samva 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/sdk.gen.d.ts +72 -16
- package/dist/client/sdk.gen.js +216 -36
- package/dist/client/types.gen.d.ts +411 -65
- package/dist/effect/api-keys.d.ts +7 -0
- package/dist/effect/campaigns.d.ts +66 -3
- package/dist/effect/contacts.d.ts +24 -4
- package/dist/effect/email.d.ts +22 -6
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/campaigns.d.ts +136 -4
- package/dist/effect/generated/campaigns.js +22 -1
- package/dist/effect/generated/contacts.d.ts +131 -1
- package/dist/effect/generated/contacts.js +17 -2
- package/dist/effect/generated/email.d.ts +162 -1
- package/dist/effect/generated/email.js +31 -11
- package/dist/effect/generated/journeys.d.ts +31 -61
- package/dist/effect/generated/journeys.js +9 -5
- package/dist/effect/generated/mailboxes.d.ts +274 -78
- package/dist/effect/generated/mailboxes.js +28 -20
- package/dist/effect/generated/messages.d.ts +4 -1
- package/dist/effect/generated/messages.js +2 -1
- package/dist/effect/generated/namespaces.d.ts +432 -2
- package/dist/effect/generated/namespaces.js +91 -4
- package/dist/effect/generated/shared.d.ts +38 -29
- package/dist/effect/generated/shared.js +28 -23
- package/dist/effect/generated/templates.d.ts +80 -1
- package/dist/effect/generated/templates.js +18 -6
- package/dist/effect/generated/webhooks.d.ts +120 -0
- package/dist/effect/generated/webhooks.js +27 -3
- package/dist/effect/generated-metadata.d.ts +20 -4
- package/dist/effect/generated-metadata.js +4 -4
- package/dist/effect/index.js +2 -2
- package/dist/effect/journeys.d.ts +12 -4
- package/dist/effect/mailboxes.d.ts +11 -11
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/namespaces.d.ts +29 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/templates.d.ts +28 -1
- package/dist/effect/webhooks.d.ts +7 -0
- package/dist/effect/webhooks.js +3 -1
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/errors.gen.d.ts +2 -12
- package/dist/promises/errors.gen.js +1 -26
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +20 -0
- package/dist/service-map.js +20 -0
- package/package.json +5 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
1
|
+
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, JsonValue, NamespaceId, OrganizationId, RenderLocale, RenderTimeZone, ResourceNotFoundError, SuccessResponse, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, UnauthorizedError, UserId, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
4
|
//#region src/effect/generated/templates.ts
|
|
@@ -18,7 +18,8 @@ const TemplateFamilyId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/*
|
|
|
18
18
|
const VersionCursor = /* @__PURE__ */ Schema.String.annotate({ identifier: "VersionCursor" });
|
|
19
19
|
const BrandFooterBlock = /* @__PURE__ */ Schema.Struct({
|
|
20
20
|
html: Schema.String,
|
|
21
|
-
text: Schema.String
|
|
21
|
+
text: Schema.String,
|
|
22
|
+
headCss: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
22
23
|
}).annotate({ identifier: "BrandFooterBlock" });
|
|
23
24
|
const TemplatePublicationRender = /* @__PURE__ */ Schema.Struct({
|
|
24
25
|
subject: Schema.String,
|
|
@@ -61,6 +62,8 @@ const TemplateSummary = /* @__PURE__ */ Schema.Struct({
|
|
|
61
62
|
name: Schema.String,
|
|
62
63
|
channel: Schema.Literal("email"),
|
|
63
64
|
projectId: TemplateProjectId,
|
|
65
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates and shared ones." }),
|
|
66
|
+
shared: Schema.Boolean.annotate({ description: "Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared." }),
|
|
64
67
|
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
65
68
|
status: Schema.Union([
|
|
66
69
|
Schema.Literal("draft"),
|
|
@@ -85,6 +88,8 @@ const Template = /* @__PURE__ */ Schema.Struct({
|
|
|
85
88
|
name: Schema.String,
|
|
86
89
|
channel: Schema.Literal("email"),
|
|
87
90
|
projectId: TemplateProjectId,
|
|
91
|
+
namespaceId: Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates and shared ones." }),
|
|
92
|
+
shared: Schema.Boolean.annotate({ description: "Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared." }),
|
|
88
93
|
entryPath: Schema.String.check(Schema.isMaxCodePoints(1024).annotate({ expected: "a string with at most 1024 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$", "u")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })).check(Schema.isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })),
|
|
89
94
|
status: Schema.Union([
|
|
90
95
|
Schema.Literal("draft"),
|
|
@@ -168,7 +173,9 @@ const TemplatesListQuery = /* @__PURE__ */ Schema.Struct({
|
|
|
168
173
|
Schema.Literal("archived")
|
|
169
174
|
]), Schema.Null])),
|
|
170
175
|
search: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
171
|
-
projectId: Schema.optionalKey(Schema.Union([TemplateProjectId, Schema.Null]))
|
|
176
|
+
projectId: Schema.optionalKey(Schema.Union([TemplateProjectId, Schema.Null])),
|
|
177
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "Only the templates this namespace uses: its own and those shared with every namespace (add `shared=false` for its own only). A namespace-scoped key lists its own namespace's and shared templates." })),
|
|
178
|
+
shared: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("true"), Schema.Literal("false")]), Schema.Null]).annotate({ description: "Only templates whose project is shared with every namespace (true), or only unshared ones (false)." }))
|
|
172
179
|
});
|
|
173
180
|
const TemplatesList200 = TemplatePage;
|
|
174
181
|
const TemplatesList401 = UnauthorizedError;
|
|
@@ -193,11 +200,14 @@ const TemplatesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
|
|
|
193
200
|
Schema.Literal("alert")
|
|
194
201
|
]), Schema.Null]), Schema.Null])),
|
|
195
202
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
203
|
+
namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace." })),
|
|
204
|
+
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key." })),
|
|
196
205
|
idempotencyKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
197
206
|
});
|
|
198
207
|
const TemplatesCreate201 = Template;
|
|
199
208
|
const TemplatesCreate401 = UnauthorizedError;
|
|
200
209
|
const TemplatesCreate403 = ForbiddenError;
|
|
210
|
+
const TemplatesCreate404 = ResourceNotFoundError;
|
|
201
211
|
const TemplatesCreate409 = ConflictError;
|
|
202
212
|
const TemplatesCreate422 = ValidationError;
|
|
203
213
|
const TemplatesCreate500 = InternalError;
|
|
@@ -235,7 +245,8 @@ const TemplatesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({ data: Schema.
|
|
|
235
245
|
]), Schema.Null]), Schema.Null])),
|
|
236
246
|
fromDefault: Schema.optionalKey(Schema.Union([Schema.Union([TemplateFromDefault, Schema.Null]), Schema.Null])),
|
|
237
247
|
replyToDefault: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Array(Schema.String), Schema.Null]), Schema.Null])),
|
|
238
|
-
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
|
|
248
|
+
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
249
|
+
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
|
|
239
250
|
}) });
|
|
240
251
|
const TemplatesUpdate200 = Template;
|
|
241
252
|
const TemplatesUpdate401 = UnauthorizedError;
|
|
@@ -1823,6 +1834,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1823
1834
|
error: [
|
|
1824
1835
|
TemplatesCreate401.pipe(HttpApiSchema.status(401)),
|
|
1825
1836
|
TemplatesCreate403.pipe(HttpApiSchema.status(403)),
|
|
1837
|
+
TemplatesCreate404.pipe(HttpApiSchema.status(404)),
|
|
1826
1838
|
TemplatesCreate409.pipe(HttpApiSchema.status(409)),
|
|
1827
1839
|
TemplatesCreate422.pipe(HttpApiSchema.status(422)),
|
|
1828
1840
|
TemplatesCreate500,
|
|
@@ -1899,7 +1911,7 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
1899
1911
|
TemplatesPublish500,
|
|
1900
1912
|
TemplatesPublish504.pipe(HttpApiSchema.status(504))
|
|
1901
1913
|
]
|
|
1902
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.publish").annotate(OpenApi.Summary, "Publish an exact template commit").annotate(OpenApi.Description, "Builds an exact Git commit and entry path, stores the immutable compiled IR and its assets, records the input contract it validates against, and makes that publication current."), HttpApiEndpoint.get("templatesGetPublication", "/v1/templates/:id/publications/:publicationId", {
|
|
1914
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.publish").annotate(OpenApi.Summary, "Publish an exact template commit").annotate(OpenApi.Description, "Builds an exact Git commit and entry path, stores the immutable compiled IR and its assets, records the input contract it validates against, and makes that publication current. A commit that compiles to the same build as an existing publication makes that publication current again instead of recording another."), HttpApiEndpoint.get("templatesGetPublication", "/v1/templates/:id/publications/:publicationId", {
|
|
1903
1915
|
params: TemplatesGetPublicationPathParams,
|
|
1904
1916
|
success: TemplatesGetPublication200,
|
|
1905
1917
|
error: [
|
|
@@ -2209,6 +2221,6 @@ var TemplatesGroup = class extends HttpApiGroup.make("Templates").add(HttpApiEnd
|
|
|
2209
2221
|
]
|
|
2210
2222
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "templates.addEntry").annotate(OpenApi.Summary, "Add a template entry").annotate(OpenApi.Description, "Registers a `.tsx` file under `templates/` or `emails/` in an existing template project as its own template and returns it with status 201. The file does not need to exist yet; publishing fails until a commit contains it. Repeating the call with the same entry path, name, and slug returns the existing template.")).annotate(OpenApi.Description, "Git-backed email template projects, workspace editing, immutable publications, and delivery defaults") {};
|
|
2211
2223
|
//#endregion
|
|
2212
|
-
export { BrandFooterBlock, BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, TemplateInputContractPage, TemplatePage, TemplateProjectId, TemplatePublicationBrand, TemplatePublicationRender, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate401, TemplatesCreate403, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateRequestJson, TemplatesDeleteFamily200, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace504, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemove200, TemplatesRemove401, TemplatesRemove403, TemplatesRemove404, TemplatesRemove422, TemplatesRemove500, TemplatesRemove504, TemplatesRemovePathParams, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace504, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesUpdate200, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery, VersionCursor };
|
|
2224
|
+
export { BrandFooterBlock, BrandRenderedFooter, Template, TemplateFamily, TemplateFamilyId, TemplateFamilyMember, TemplateFamilyPage, TemplateInputContractPage, TemplatePage, TemplateProjectId, TemplatePublicationBrand, TemplatePublicationRender, TemplateSummary, TemplatesAddEntry201, TemplatesAddEntry401, TemplatesAddEntry403, TemplatesAddEntry404, TemplatesAddEntry409, TemplatesAddEntry422, TemplatesAddEntry500, TemplatesAddEntry504, TemplatesAddEntryPathParams, TemplatesAddEntryRequestJson, TemplatesAttachFamilyMember200, TemplatesAttachFamilyMember401, TemplatesAttachFamilyMember403, TemplatesAttachFamilyMember404, TemplatesAttachFamilyMember409, TemplatesAttachFamilyMember422, TemplatesAttachFamilyMember500, TemplatesAttachFamilyMember504, TemplatesAttachFamilyMemberPathParams, TemplatesAttachWorkspaceResource200, TemplatesAttachWorkspaceResource401, TemplatesAttachWorkspaceResource403, TemplatesAttachWorkspaceResource404, TemplatesAttachWorkspaceResource409, TemplatesAttachWorkspaceResource422, TemplatesAttachWorkspaceResource500, TemplatesAttachWorkspaceResource504, TemplatesAttachWorkspaceResourcePathParams, TemplatesAttachWorkspaceResourceRequestJson, TemplatesCheckWorkspace200, TemplatesCheckWorkspace401, TemplatesCheckWorkspace403, TemplatesCheckWorkspace404, TemplatesCheckWorkspace409, TemplatesCheckWorkspace422, TemplatesCheckWorkspace500, TemplatesCheckWorkspace504, TemplatesCheckWorkspacePathParams, TemplatesCheckWorkspaceRequestJson, TemplatesCreate201, TemplatesCreate401, TemplatesCreate403, TemplatesCreate404, TemplatesCreate409, TemplatesCreate422, TemplatesCreate500, TemplatesCreate504, TemplatesCreateFamily201, TemplatesCreateFamily401, TemplatesCreateFamily403, TemplatesCreateFamily422, TemplatesCreateFamily500, TemplatesCreateFamily504, TemplatesCreateFamilyFromTemplate201, TemplatesCreateFamilyFromTemplate401, TemplatesCreateFamilyFromTemplate403, TemplatesCreateFamilyFromTemplate404, TemplatesCreateFamilyFromTemplate409, TemplatesCreateFamilyFromTemplate422, TemplatesCreateFamilyFromTemplate500, TemplatesCreateFamilyFromTemplate504, TemplatesCreateFamilyFromTemplatePathParams, TemplatesCreateFamilyFromTemplateRequestJson, TemplatesCreateFamilyRequestJson, TemplatesCreateRequestJson, TemplatesDeleteFamily200, TemplatesDeleteFamily401, TemplatesDeleteFamily403, TemplatesDeleteFamily404, TemplatesDeleteFamily422, TemplatesDeleteFamily500, TemplatesDeleteFamily504, TemplatesDeleteFamilyPathParams, TemplatesDetachFamilyMember200, TemplatesDetachFamilyMember401, TemplatesDetachFamilyMember403, TemplatesDetachFamilyMember404, TemplatesDetachFamilyMember409, TemplatesDetachFamilyMember422, TemplatesDetachFamilyMember500, TemplatesDetachFamilyMember504, TemplatesDetachFamilyMemberPathParams, TemplatesDiffWorkspace200, TemplatesDiffWorkspace401, TemplatesDiffWorkspace403, TemplatesDiffWorkspace404, TemplatesDiffWorkspace409, TemplatesDiffWorkspace422, TemplatesDiffWorkspace500, TemplatesDiffWorkspace504, TemplatesDiffWorkspacePathParams, TemplatesDiffWorkspaceRequestJson, TemplatesGetById200, TemplatesGetById401, TemplatesGetById403, TemplatesGetById404, TemplatesGetById422, TemplatesGetById500, TemplatesGetById504, TemplatesGetByIdPathParams, TemplatesGetFamily200, TemplatesGetFamily401, TemplatesGetFamily403, TemplatesGetFamily404, TemplatesGetFamily422, TemplatesGetFamily500, TemplatesGetFamily504, TemplatesGetFamilyPathParams, TemplatesGetGitRepository200, TemplatesGetGitRepository401, TemplatesGetGitRepository403, TemplatesGetGitRepository404, TemplatesGetGitRepository409, TemplatesGetGitRepository422, TemplatesGetGitRepository500, TemplatesGetGitRepository504, TemplatesGetGitRepositoryPathParams, TemplatesGetInputContract200, TemplatesGetInputContract401, TemplatesGetInputContract403, TemplatesGetInputContract404, TemplatesGetInputContract422, TemplatesGetInputContract500, TemplatesGetInputContract504, TemplatesGetInputContractPathParams, TemplatesGetPublication200, TemplatesGetPublication401, TemplatesGetPublication403, TemplatesGetPublication404, TemplatesGetPublication422, TemplatesGetPublication500, TemplatesGetPublication504, TemplatesGetPublicationPathParams, TemplatesGroup, TemplatesIssueGitCredential200, TemplatesIssueGitCredential401, TemplatesIssueGitCredential403, TemplatesIssueGitCredential404, TemplatesIssueGitCredential409, TemplatesIssueGitCredential422, TemplatesIssueGitCredential500, TemplatesIssueGitCredential504, TemplatesIssueGitCredentialPathParams, TemplatesIssueGitCredentialRequestJson, TemplatesList200, TemplatesList401, TemplatesList403, TemplatesList422, TemplatesList500, TemplatesList504, TemplatesListFamilies200, TemplatesListFamilies401, TemplatesListFamilies403, TemplatesListFamilies422, TemplatesListFamilies500, TemplatesListFamilies504, TemplatesListFamiliesQuery, TemplatesListInputContracts200, TemplatesListInputContracts401, TemplatesListInputContracts403, TemplatesListInputContracts404, TemplatesListInputContracts422, TemplatesListInputContracts500, TemplatesListInputContracts504, TemplatesListInputContractsPathParams, TemplatesListInputContractsQuery, TemplatesListQuery, TemplatesOpenWorkspace200, TemplatesOpenWorkspace401, TemplatesOpenWorkspace403, TemplatesOpenWorkspace404, TemplatesOpenWorkspace409, TemplatesOpenWorkspace422, TemplatesOpenWorkspace500, TemplatesOpenWorkspace504, TemplatesOpenWorkspacePathParams, TemplatesPatchWorkspace200, TemplatesPatchWorkspace401, TemplatesPatchWorkspace403, TemplatesPatchWorkspace404, TemplatesPatchWorkspace409, TemplatesPatchWorkspace422, TemplatesPatchWorkspace500, TemplatesPatchWorkspace504, TemplatesPatchWorkspacePathParams, TemplatesPatchWorkspaceRequestJson, TemplatesPublish201, TemplatesPublish401, TemplatesPublish403, TemplatesPublish404, TemplatesPublish409, TemplatesPublish422, TemplatesPublish500, TemplatesPublish504, TemplatesPublishPathParams, TemplatesPublishRequestJson, TemplatesPutWorkspaceAsset200, TemplatesPutWorkspaceAsset401, TemplatesPutWorkspaceAsset403, TemplatesPutWorkspaceAsset404, TemplatesPutWorkspaceAsset409, TemplatesPutWorkspaceAsset422, TemplatesPutWorkspaceAsset500, TemplatesPutWorkspaceAsset504, TemplatesPutWorkspaceAssetPathParams, TemplatesPutWorkspaceAssetRequestJson, TemplatesRemove200, TemplatesRemove401, TemplatesRemove403, TemplatesRemove404, TemplatesRemove422, TemplatesRemove500, TemplatesRemove504, TemplatesRemovePathParams, TemplatesRemoveWorkspaceResource200, TemplatesRemoveWorkspaceResource401, TemplatesRemoveWorkspaceResource403, TemplatesRemoveWorkspaceResource404, TemplatesRemoveWorkspaceResource409, TemplatesRemoveWorkspaceResource422, TemplatesRemoveWorkspaceResource500, TemplatesRemoveWorkspaceResource504, TemplatesRemoveWorkspaceResourcePathParams, TemplatesRemoveWorkspaceResourceRequestJson, TemplatesRenameFamily200, TemplatesRenameFamily401, TemplatesRenameFamily403, TemplatesRenameFamily404, TemplatesRenameFamily422, TemplatesRenameFamily500, TemplatesRenameFamily504, TemplatesRenameFamilyPathParams, TemplatesRenameFamilyRequestJson, TemplatesRenderPublication200, TemplatesRenderPublication401, TemplatesRenderPublication403, TemplatesRenderPublication404, TemplatesRenderPublication409, TemplatesRenderPublication422, TemplatesRenderPublication500, TemplatesRenderPublication504, TemplatesRenderPublicationPathParams, TemplatesRenderPublicationRequestJson, TemplatesRenderWorkspaceFixture200, TemplatesRenderWorkspaceFixture401, TemplatesRenderWorkspaceFixture403, TemplatesRenderWorkspaceFixture404, TemplatesRenderWorkspaceFixture409, TemplatesRenderWorkspaceFixture422, TemplatesRenderWorkspaceFixture500, TemplatesRenderWorkspaceFixture504, TemplatesRenderWorkspaceFixturePathParams, TemplatesRenderWorkspaceFixtureRequestJson, TemplatesResolveWorkspaceConflict200, TemplatesResolveWorkspaceConflict401, TemplatesResolveWorkspaceConflict403, TemplatesResolveWorkspaceConflict404, TemplatesResolveWorkspaceConflict409, TemplatesResolveWorkspaceConflict422, TemplatesResolveWorkspaceConflict500, TemplatesResolveWorkspaceConflict504, TemplatesResolveWorkspaceConflictPathParams, TemplatesResolveWorkspaceConflictRequestJson, TemplatesRestoreWorkspace200, TemplatesRestoreWorkspace401, TemplatesRestoreWorkspace403, TemplatesRestoreWorkspace404, TemplatesRestoreWorkspace409, TemplatesRestoreWorkspace422, TemplatesRestoreWorkspace500, TemplatesRestoreWorkspace504, TemplatesRestoreWorkspacePathParams, TemplatesRestoreWorkspaceRequestJson, TemplatesSaveWorkspace200, TemplatesSaveWorkspace401, TemplatesSaveWorkspace403, TemplatesSaveWorkspace404, TemplatesSaveWorkspace409, TemplatesSaveWorkspace422, TemplatesSaveWorkspace500, TemplatesSaveWorkspace504, TemplatesSaveWorkspacePathParams, TemplatesSaveWorkspaceRequestJson, TemplatesUpdate200, TemplatesUpdate401, TemplatesUpdate403, TemplatesUpdate404, TemplatesUpdate409, TemplatesUpdate422, TemplatesUpdate500, TemplatesUpdate504, TemplatesUpdatePathParams, TemplatesUpdateRequestJson, TemplatesWorkspaceHistory200, TemplatesWorkspaceHistory401, TemplatesWorkspaceHistory403, TemplatesWorkspaceHistory404, TemplatesWorkspaceHistory409, TemplatesWorkspaceHistory422, TemplatesWorkspaceHistory500, TemplatesWorkspaceHistory504, TemplatesWorkspaceHistoryPathParams, TemplatesWorkspaceHistoryQuery, VersionCursor };
|
|
2213
2225
|
|
|
2214
2226
|
//# sourceMappingURL=templates.js.map
|
|
@@ -36,6 +36,16 @@ export declare const WebhookDailyDeliveries: Schema.Struct<{
|
|
|
36
36
|
readonly exhausted: Schema.Finite;
|
|
37
37
|
readonly cancelled: Schema.Finite;
|
|
38
38
|
}>;
|
|
39
|
+
export type WebhookSigningSecret = {
|
|
40
|
+
readonly secret: __SamvaRuntimeSensitiveString;
|
|
41
|
+
readonly createdAt: string;
|
|
42
|
+
readonly previousExpiresAt: string | null;
|
|
43
|
+
};
|
|
44
|
+
export declare const WebhookSigningSecret: Schema.Struct<{
|
|
45
|
+
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
46
|
+
readonly createdAt: Schema.String;
|
|
47
|
+
readonly previousExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
48
|
+
}>;
|
|
39
49
|
export type WebhookEndpoint = {
|
|
40
50
|
readonly id: WebhookEndpointId;
|
|
41
51
|
readonly name: string;
|
|
@@ -558,6 +568,30 @@ export type WebhooksRegenerateSecret500 = InternalError;
|
|
|
558
568
|
export declare const WebhooksRegenerateSecret500: typeof InternalError;
|
|
559
569
|
export type WebhooksRegenerateSecret504 = GatewayTimeoutError;
|
|
560
570
|
export declare const WebhooksRegenerateSecret504: typeof GatewayTimeoutError;
|
|
571
|
+
export type WebhooksGetSecretPathParams = {
|
|
572
|
+
readonly id: WebhookEndpointId;
|
|
573
|
+
};
|
|
574
|
+
export declare const WebhooksGetSecretPathParams: Schema.Struct<{
|
|
575
|
+
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
576
|
+
}>;
|
|
577
|
+
export type WebhooksGetSecret200 = WebhookSigningSecret;
|
|
578
|
+
export declare const WebhooksGetSecret200: Schema.Struct<{
|
|
579
|
+
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
580
|
+
readonly createdAt: Schema.String;
|
|
581
|
+
readonly previousExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
582
|
+
}>;
|
|
583
|
+
export type WebhooksGetSecret401 = UnauthorizedError;
|
|
584
|
+
export declare const WebhooksGetSecret401: typeof UnauthorizedError;
|
|
585
|
+
export type WebhooksGetSecret403 = ForbiddenError;
|
|
586
|
+
export declare const WebhooksGetSecret403: typeof ForbiddenError;
|
|
587
|
+
export type WebhooksGetSecret404 = ResourceNotFoundError;
|
|
588
|
+
export declare const WebhooksGetSecret404: typeof ResourceNotFoundError;
|
|
589
|
+
export type WebhooksGetSecret422 = ValidationError;
|
|
590
|
+
export declare const WebhooksGetSecret422: typeof ValidationError;
|
|
591
|
+
export type WebhooksGetSecret500 = InternalError;
|
|
592
|
+
export declare const WebhooksGetSecret500: typeof InternalError;
|
|
593
|
+
export type WebhooksGetSecret504 = GatewayTimeoutError;
|
|
594
|
+
export declare const WebhooksGetSecret504: typeof GatewayTimeoutError;
|
|
561
595
|
export type WebhooksGetStatsPathParams = {
|
|
562
596
|
readonly id: WebhookEndpointId;
|
|
563
597
|
};
|
|
@@ -1007,6 +1041,92 @@ declare const WebhooksGroup_base: HttpApiGroup.HttpApiGroup<"Webhooks", HttpApiE
|
|
|
1007
1041
|
readonly _tag: Schema.tag<"ValidationError">;
|
|
1008
1042
|
readonly message: Schema.String;
|
|
1009
1043
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1044
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"webhooksGetSecret", "GET", "/v1/webhooks/:id/secret", Schema.toCodecStringTree<Schema.Struct<{
|
|
1045
|
+
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1046
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1047
|
+
readonly secret: Schema.RedactedFromValue<Schema.Codec<string, string, never, never>>;
|
|
1048
|
+
readonly createdAt: Schema.String;
|
|
1049
|
+
readonly previousExpiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
1050
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1051
|
+
readonly _tag: "ForbiddenError";
|
|
1052
|
+
readonly message: string;
|
|
1053
|
+
}, readonly [Schema.Struct<{
|
|
1054
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1055
|
+
readonly message: Schema.String;
|
|
1056
|
+
}>], {
|
|
1057
|
+
readonly _tag: "ForbiddenError";
|
|
1058
|
+
readonly message: string;
|
|
1059
|
+
}>, Schema.Struct<{
|
|
1060
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
1061
|
+
readonly message: Schema.String;
|
|
1062
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
1063
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1064
|
+
readonly message: string;
|
|
1065
|
+
readonly retryAfterSeconds: number;
|
|
1066
|
+
}, readonly [Schema.Struct<{
|
|
1067
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1068
|
+
readonly message: Schema.String;
|
|
1069
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1070
|
+
}>], {
|
|
1071
|
+
readonly _tag: "GatewayTimeoutError";
|
|
1072
|
+
readonly message: string;
|
|
1073
|
+
readonly retryAfterSeconds: number;
|
|
1074
|
+
}>, Schema.Struct<{
|
|
1075
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
1076
|
+
readonly message: Schema.String;
|
|
1077
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
1078
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
1079
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1080
|
+
readonly resource: string;
|
|
1081
|
+
readonly id: string;
|
|
1082
|
+
readonly message: string;
|
|
1083
|
+
}, readonly [Schema.Struct<{
|
|
1084
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1085
|
+
readonly resource: Schema.String;
|
|
1086
|
+
readonly id: Schema.String;
|
|
1087
|
+
readonly message: Schema.String;
|
|
1088
|
+
}>], {
|
|
1089
|
+
readonly _tag: "ResourceNotFoundError";
|
|
1090
|
+
readonly resource: string;
|
|
1091
|
+
readonly id: string;
|
|
1092
|
+
readonly message: string;
|
|
1093
|
+
}>, Schema.Struct<{
|
|
1094
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
1095
|
+
readonly resource: Schema.String;
|
|
1096
|
+
readonly id: Schema.String;
|
|
1097
|
+
readonly message: Schema.String;
|
|
1098
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
1099
|
+
readonly _tag: "UnauthorizedError";
|
|
1100
|
+
readonly message: string;
|
|
1101
|
+
}, readonly [Schema.Struct<{
|
|
1102
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1103
|
+
readonly message: Schema.String;
|
|
1104
|
+
}>], {
|
|
1105
|
+
readonly _tag: "UnauthorizedError";
|
|
1106
|
+
readonly message: string;
|
|
1107
|
+
}>, Schema.Struct<{
|
|
1108
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
1109
|
+
readonly message: Schema.String;
|
|
1110
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
1111
|
+
readonly _tag: "ValidationError";
|
|
1112
|
+
readonly message: string;
|
|
1113
|
+
readonly fields?: {
|
|
1114
|
+
readonly [x: string]: readonly string[];
|
|
1115
|
+
} | null;
|
|
1116
|
+
}, readonly [Schema.Struct<{
|
|
1117
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1118
|
+
readonly message: Schema.String;
|
|
1119
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1120
|
+
}>], {
|
|
1121
|
+
readonly _tag: "ValidationError";
|
|
1122
|
+
readonly message: string;
|
|
1123
|
+
readonly fields?: {
|
|
1124
|
+
readonly [x: string]: readonly string[];
|
|
1125
|
+
} | null;
|
|
1126
|
+
}>, Schema.Struct<{
|
|
1127
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
1128
|
+
readonly message: Schema.String;
|
|
1129
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1010
1130
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"webhooksGetStats", "GET", "/v1/webhooks/:id/stats", Schema.toCodecStringTree<Schema.Struct<{
|
|
1011
1131
|
readonly id: Schema.brand<Schema.String, "WebhookEndpointId">;
|
|
1012
1132
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -29,6 +29,11 @@ const WebhookDailyDeliveries = /* @__PURE__ */ Schema.Struct({
|
|
|
29
29
|
exhausted: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
|
|
30
30
|
cancelled: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
|
|
31
31
|
}).annotate({ identifier: "WebhookDailyDeliveries" });
|
|
32
|
+
const WebhookSigningSecret = /* @__PURE__ */ Schema.Struct({
|
|
33
|
+
secret: SensitiveString,
|
|
34
|
+
createdAt: Schema.String,
|
|
35
|
+
previousExpiresAt: Schema.Union([Schema.String, Schema.Null])
|
|
36
|
+
}).annotate({ identifier: "WebhookSigningSecret" });
|
|
32
37
|
const WebhookEndpoint = /* @__PURE__ */ Schema.Struct({
|
|
33
38
|
id: WebhookEndpointId,
|
|
34
39
|
name: Schema.String,
|
|
@@ -357,6 +362,14 @@ const WebhooksRegenerateSecret404 = ResourceNotFoundError;
|
|
|
357
362
|
const WebhooksRegenerateSecret422 = ValidationError;
|
|
358
363
|
const WebhooksRegenerateSecret500 = InternalError;
|
|
359
364
|
const WebhooksRegenerateSecret504 = GatewayTimeoutError;
|
|
365
|
+
const WebhooksGetSecretPathParams = /* @__PURE__ */ Schema.Struct({ id: WebhookEndpointId });
|
|
366
|
+
const WebhooksGetSecret200 = WebhookSigningSecret;
|
|
367
|
+
const WebhooksGetSecret401 = UnauthorizedError;
|
|
368
|
+
const WebhooksGetSecret403 = ForbiddenError;
|
|
369
|
+
const WebhooksGetSecret404 = ResourceNotFoundError;
|
|
370
|
+
const WebhooksGetSecret422 = ValidationError;
|
|
371
|
+
const WebhooksGetSecret500 = InternalError;
|
|
372
|
+
const WebhooksGetSecret504 = GatewayTimeoutError;
|
|
360
373
|
const WebhooksGetStatsPathParams = /* @__PURE__ */ Schema.Struct({ id: WebhookEndpointId });
|
|
361
374
|
const WebhooksGetStatsQuery = /* @__PURE__ */ Schema.Struct({
|
|
362
375
|
after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -406,7 +419,7 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
406
419
|
WebhooksCreate502.pipe(HttpApiSchema.status(502)),
|
|
407
420
|
WebhooksCreate504.pipe(HttpApiSchema.status(504))
|
|
408
421
|
]
|
|
409
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.create").annotate(OpenApi.Summary, "Create a webhook").annotate(OpenApi.Description, "Creates a signed webhook endpoint for Samva delivery and inbound events, stores subscriptions, and returns the endpoint and signing secret with a 201 response. `
|
|
422
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.create").annotate(OpenApi.Summary, "Create a webhook").annotate(OpenApi.Description, "Creates a signed webhook endpoint for Samva delivery and inbound events, stores subscriptions, and returns the endpoint and signing secret with a 201 response. `namespaceId` confines the endpoint to one namespace's events and `mailboxIds` to those mailboxes' events; when both are set, every mailbox must belong to the namespace."), HttpApiEndpoint.get("webhooksGet", "/v1/webhooks/:id", {
|
|
410
423
|
params: WebhooksGetPathParams,
|
|
411
424
|
success: WebhooksGet200,
|
|
412
425
|
error: [
|
|
@@ -477,7 +490,18 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
477
490
|
WebhooksRegenerateSecret500,
|
|
478
491
|
WebhooksRegenerateSecret504.pipe(HttpApiSchema.status(504))
|
|
479
492
|
]
|
|
480
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.regenerateSecret").annotate(OpenApi.Summary, "Rotate a webhook signing secret").annotate(OpenApi.Description, "Generates and returns a new signing secret. The previous secret remains valid for a 24-hour rotation overlap."), HttpApiEndpoint.get("
|
|
493
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.regenerateSecret").annotate(OpenApi.Summary, "Rotate a webhook signing secret").annotate(OpenApi.Description, "Generates and returns a new signing secret. The previous secret remains valid for a 24-hour rotation overlap."), HttpApiEndpoint.get("webhooksGetSecret", "/v1/webhooks/:id/secret", {
|
|
494
|
+
params: WebhooksGetSecretPathParams,
|
|
495
|
+
success: WebhooksGetSecret200,
|
|
496
|
+
error: [
|
|
497
|
+
WebhooksGetSecret401.pipe(HttpApiSchema.status(401)),
|
|
498
|
+
WebhooksGetSecret403.pipe(HttpApiSchema.status(403)),
|
|
499
|
+
WebhooksGetSecret404.pipe(HttpApiSchema.status(404)),
|
|
500
|
+
WebhooksGetSecret422.pipe(HttpApiSchema.status(422)),
|
|
501
|
+
WebhooksGetSecret500,
|
|
502
|
+
WebhooksGetSecret504.pipe(HttpApiSchema.status(504))
|
|
503
|
+
]
|
|
504
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.getSecret").annotate(OpenApi.Summary, "Get a webhook signing secret").annotate(OpenApi.Description, "Returns the endpoint's current signing secret and when a rotated-out secret stops verifying. It needs the same permission as rotating the secret."), HttpApiEndpoint.get("webhooksGetStats", "/v1/webhooks/:id/stats", {
|
|
481
505
|
params: WebhooksGetStatsPathParams,
|
|
482
506
|
query: WebhooksGetStatsQuery,
|
|
483
507
|
success: WebhooksGetStats200,
|
|
@@ -503,6 +527,6 @@ var WebhooksGroup = class extends HttpApiGroup.make("Webhooks").add(HttpApiEndpo
|
|
|
503
527
|
]
|
|
504
528
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "webhooks.test").annotate(OpenApi.Summary, "Send a test webhook delivery").annotate(OpenApi.Description, "Queues a signed webhook.test event through the normal delivery and retry lifecycle.")).annotate(OpenApi.Description, "Customer event webhook management, testing, and delivery logs") {};
|
|
505
529
|
//#endregion
|
|
506
|
-
export { WebhookAttemptId, WebhookDailyDeliveries, WebhookDeliveryCounts, WebhookDeliveryId, WebhookDeliveryPage, WebhookEndpoint, WebhookEndpointListItem, WebhookEndpointPage, WebhookEventId, WebhookStatsResponse, WebhooksCreate201, WebhooksCreate401, WebhooksCreate402, WebhooksCreate403, WebhooksCreate404, WebhooksCreate409, WebhooksCreate422, WebhooksCreate500, WebhooksCreate502, WebhooksCreate504, WebhooksCreateRequestJson, WebhooksGet200, WebhooksGet401, WebhooksGet403, WebhooksGet404, WebhooksGet422, WebhooksGet500, WebhooksGet504, WebhooksGetLogs200, WebhooksGetLogs401, WebhooksGetLogs403, WebhooksGetLogs404, WebhooksGetLogs422, WebhooksGetLogs500, WebhooksGetLogs504, WebhooksGetLogsPathParams, WebhooksGetLogsQuery, WebhooksGetPathParams, WebhooksGetStats200, WebhooksGetStats401, WebhooksGetStats403, WebhooksGetStats404, WebhooksGetStats422, WebhooksGetStats500, WebhooksGetStats504, WebhooksGetStatsPathParams, WebhooksGetStatsQuery, WebhooksGroup, WebhooksList200, WebhooksList401, WebhooksList403, WebhooksList422, WebhooksList500, WebhooksList504, WebhooksListQuery, WebhooksRegenerateSecret200, WebhooksRegenerateSecret401, WebhooksRegenerateSecret403, WebhooksRegenerateSecret404, WebhooksRegenerateSecret422, WebhooksRegenerateSecret500, WebhooksRegenerateSecret504, WebhooksRegenerateSecretPathParams, WebhooksRemove200, WebhooksRemove401, WebhooksRemove403, WebhooksRemove404, WebhooksRemove422, WebhooksRemove500, WebhooksRemove502, WebhooksRemove504, WebhooksRemovePathParams, WebhooksRetryDelivery200, WebhooksRetryDelivery401, WebhooksRetryDelivery403, WebhooksRetryDelivery404, WebhooksRetryDelivery422, WebhooksRetryDelivery429, WebhooksRetryDelivery500, WebhooksRetryDelivery504, WebhooksRetryDeliveryPathParams, WebhooksTest202, WebhooksTest401, WebhooksTest403, WebhooksTest404, WebhooksTest422, WebhooksTest500, WebhooksTest504, WebhooksTestPathParams, WebhooksTestRequestJson, WebhooksUpdate200, WebhooksUpdate401, WebhooksUpdate403, WebhooksUpdate404, WebhooksUpdate409, WebhooksUpdate422, WebhooksUpdate500, WebhooksUpdate504, WebhooksUpdatePathParams, WebhooksUpdateRequestJson };
|
|
530
|
+
export { WebhookAttemptId, WebhookDailyDeliveries, WebhookDeliveryCounts, WebhookDeliveryId, WebhookDeliveryPage, WebhookEndpoint, WebhookEndpointListItem, WebhookEndpointPage, WebhookEventId, WebhookSigningSecret, WebhookStatsResponse, WebhooksCreate201, WebhooksCreate401, WebhooksCreate402, WebhooksCreate403, WebhooksCreate404, WebhooksCreate409, WebhooksCreate422, WebhooksCreate500, WebhooksCreate502, WebhooksCreate504, WebhooksCreateRequestJson, WebhooksGet200, WebhooksGet401, WebhooksGet403, WebhooksGet404, WebhooksGet422, WebhooksGet500, WebhooksGet504, WebhooksGetLogs200, WebhooksGetLogs401, WebhooksGetLogs403, WebhooksGetLogs404, WebhooksGetLogs422, WebhooksGetLogs500, WebhooksGetLogs504, WebhooksGetLogsPathParams, WebhooksGetLogsQuery, WebhooksGetPathParams, WebhooksGetSecret200, WebhooksGetSecret401, WebhooksGetSecret403, WebhooksGetSecret404, WebhooksGetSecret422, WebhooksGetSecret500, WebhooksGetSecret504, WebhooksGetSecretPathParams, WebhooksGetStats200, WebhooksGetStats401, WebhooksGetStats403, WebhooksGetStats404, WebhooksGetStats422, WebhooksGetStats500, WebhooksGetStats504, WebhooksGetStatsPathParams, WebhooksGetStatsQuery, WebhooksGroup, WebhooksList200, WebhooksList401, WebhooksList403, WebhooksList422, WebhooksList500, WebhooksList504, WebhooksListQuery, WebhooksRegenerateSecret200, WebhooksRegenerateSecret401, WebhooksRegenerateSecret403, WebhooksRegenerateSecret404, WebhooksRegenerateSecret422, WebhooksRegenerateSecret500, WebhooksRegenerateSecret504, WebhooksRegenerateSecretPathParams, WebhooksRemove200, WebhooksRemove401, WebhooksRemove403, WebhooksRemove404, WebhooksRemove422, WebhooksRemove500, WebhooksRemove502, WebhooksRemove504, WebhooksRemovePathParams, WebhooksRetryDelivery200, WebhooksRetryDelivery401, WebhooksRetryDelivery403, WebhooksRetryDelivery404, WebhooksRetryDelivery422, WebhooksRetryDelivery429, WebhooksRetryDelivery500, WebhooksRetryDelivery504, WebhooksRetryDeliveryPathParams, WebhooksTest202, WebhooksTest401, WebhooksTest403, WebhooksTest404, WebhooksTest422, WebhooksTest500, WebhooksTest504, WebhooksTestPathParams, WebhooksTestRequestJson, WebhooksUpdate200, WebhooksUpdate401, WebhooksUpdate403, WebhooksUpdate404, WebhooksUpdate409, WebhooksUpdate422, WebhooksUpdate500, WebhooksUpdate504, WebhooksUpdatePathParams, WebhooksUpdateRequestJson };
|
|
507
531
|
|
|
508
532
|
//# sourceMappingURL=webhooks.js.map
|
|
@@ -47,10 +47,6 @@ export declare const SamvaErrorMetadata: {
|
|
|
47
47
|
readonly categories: readonly ["transient"];
|
|
48
48
|
readonly retryable: true;
|
|
49
49
|
};
|
|
50
|
-
readonly MailboxChannelUnsupportedError: {
|
|
51
|
-
readonly categories: readonly [];
|
|
52
|
-
readonly retryable: false;
|
|
53
|
-
};
|
|
54
50
|
readonly MailboxSendConflictError: {
|
|
55
51
|
readonly categories: readonly [];
|
|
56
52
|
readonly retryable: false;
|
|
@@ -1399,6 +1395,21 @@ export declare const SamvaOperations: {
|
|
|
1399
1395
|
readonly method: "PATCH";
|
|
1400
1396
|
readonly paginated: false;
|
|
1401
1397
|
};
|
|
1398
|
+
readonly namespacesAssignResource: {
|
|
1399
|
+
readonly group: "Namespaces";
|
|
1400
|
+
readonly method: "POST";
|
|
1401
|
+
readonly paginated: false;
|
|
1402
|
+
};
|
|
1403
|
+
readonly namespacesRemoveResource: {
|
|
1404
|
+
readonly group: "Namespaces";
|
|
1405
|
+
readonly method: "DELETE";
|
|
1406
|
+
readonly paginated: false;
|
|
1407
|
+
};
|
|
1408
|
+
readonly namespacesGetUsage: {
|
|
1409
|
+
readonly group: "Namespaces";
|
|
1410
|
+
readonly method: "GET";
|
|
1411
|
+
readonly paginated: false;
|
|
1412
|
+
};
|
|
1402
1413
|
readonly operationsList: {
|
|
1403
1414
|
readonly group: "Operations";
|
|
1404
1415
|
readonly method: "GET";
|
|
@@ -1704,6 +1715,11 @@ export declare const SamvaOperations: {
|
|
|
1704
1715
|
readonly method: "POST";
|
|
1705
1716
|
readonly paginated: false;
|
|
1706
1717
|
};
|
|
1718
|
+
readonly webhooksGetSecret: {
|
|
1719
|
+
readonly group: "Webhooks";
|
|
1720
|
+
readonly method: "GET";
|
|
1721
|
+
readonly paginated: false;
|
|
1722
|
+
};
|
|
1707
1723
|
readonly webhooksGetStats: {
|
|
1708
1724
|
readonly group: "Webhooks";
|
|
1709
1725
|
readonly method: "GET";
|
|
@@ -48,10 +48,6 @@ const SamvaErrorMetadata = {
|
|
|
48
48
|
categories: ["transient"],
|
|
49
49
|
retryable: true
|
|
50
50
|
},
|
|
51
|
-
MailboxChannelUnsupportedError: {
|
|
52
|
-
categories: [],
|
|
53
|
-
retryable: false
|
|
54
|
-
},
|
|
55
51
|
MailboxSendConflictError: {
|
|
56
52
|
categories: [],
|
|
57
53
|
retryable: false
|
|
@@ -842,6 +838,9 @@ const SamvaOperations = {
|
|
|
842
838
|
namespacesGet: operationMetadata74,
|
|
843
839
|
namespacesRemove: operationMetadata75,
|
|
844
840
|
namespacesUpdate: operationMetadata76,
|
|
841
|
+
namespacesAssignResource: operationMetadata73,
|
|
842
|
+
namespacesRemoveResource: operationMetadata75,
|
|
843
|
+
namespacesGetUsage: operationMetadata74,
|
|
845
844
|
operationsList: operationMetadata77,
|
|
846
845
|
operationsGet: operationMetadata78,
|
|
847
846
|
operationsRetry: operationMetadata79,
|
|
@@ -911,6 +910,7 @@ const SamvaOperations = {
|
|
|
911
910
|
webhooksRetryDelivery: operationMetadata96,
|
|
912
911
|
webhooksGetLogs: operationMetadata95,
|
|
913
912
|
webhooksRegenerateSecret: operationMetadata96,
|
|
913
|
+
webhooksGetSecret: operationMetadata97,
|
|
914
914
|
webhooksGetStats: operationMetadata97,
|
|
915
915
|
webhooksTest: operationMetadata96,
|
|
916
916
|
whoamiGet: {
|
package/dist/effect/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
|
-
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError,
|
|
2
|
+
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, UnauthorizedError, ValidationError } from "./generated/shared.js";
|
|
3
3
|
import { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError } from "./categories.js";
|
|
4
4
|
import { retry_exports } from "./retry.js";
|
|
5
5
|
import { analytics_exports } from "./analytics.js";
|
|
@@ -30,4 +30,4 @@ import { templates_exports } from "./templates.js";
|
|
|
30
30
|
import { unsubscribe_groups_exports } from "./unsubscribe-groups.js";
|
|
31
31
|
import { webhooks_exports } from "./webhooks.js";
|
|
32
32
|
import { whoami_exports } from "./whoami.js";
|
|
33
|
-
export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, journeys_exports as Journeys,
|
|
33
|
+
export { analytics_exports as Analytics, AnalyticsQueryError, api_keys_exports as ApiKeys, attachments_exports as Attachments, BillingProviderError, BrandAddressRequiredError, brands_exports as Brands, CampaignFooterRequiredError, campaigns_exports as Campaigns, client_exports as Client, ConflictError, contact_groups_exports as ContactGroups, contacts_exports as Contacts, conversations_exports as Conversations, custom_fields_exports as CustomFields, DeliveryUnavailableError, email_exports as Email, EmailChannelError, events_exports as Events, extension_installations_exports as ExtensionInstallations, extensions_exports as Extensions, ExternalServiceError, feedback_exports as Feedback, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, journeys_exports as Journeys, MailboxSendConflictError, MailboxSendRefusedError, mailboxes_exports as Mailboxes, media_exports as Media, MediaUploadError, messages_exports as Messages, namespaces_exports as Namespaces, OnboardingReviewRequiredError, operations_exports as Operations, organizations_exports as Organizations, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, retry_exports as Retry, scheduled_messages_exports as ScheduledMessages, SenderNotReadyError, subscriptions_exports as Subscriptions, templates_exports as Templates, UnauthorizedError, unsubscribe_groups_exports as UnsubscribeGroups, ValidationError, webhooks_exports as Webhooks, whoami_exports as Whoami, catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
|
|
@@ -398,7 +398,7 @@ export declare const create: (input: {
|
|
|
398
398
|
readonly publishedAt: string | null;
|
|
399
399
|
readonly createdAt: string;
|
|
400
400
|
readonly updatedAt: string;
|
|
401
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
401
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
402
402
|
export declare const get: (input: {
|
|
403
403
|
readonly id: string;
|
|
404
404
|
}) => import("effect/Effect").Effect<{
|
|
@@ -1121,7 +1121,7 @@ export declare const replaceDraft: (input: {
|
|
|
1121
1121
|
readonly publishedAt: string | null;
|
|
1122
1122
|
readonly createdAt: string;
|
|
1123
1123
|
readonly updatedAt: string;
|
|
1124
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1124
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1125
1125
|
export declare const publish: (input: {
|
|
1126
1126
|
readonly id: string;
|
|
1127
1127
|
readonly revision: string;
|
|
@@ -1302,7 +1302,7 @@ export declare const publish: (input: {
|
|
|
1302
1302
|
readonly publishedAt: string | null;
|
|
1303
1303
|
readonly createdAt: string;
|
|
1304
1304
|
readonly updatedAt: string;
|
|
1305
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1305
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1306
1306
|
export declare const pause: (input: {
|
|
1307
1307
|
readonly id: string;
|
|
1308
1308
|
}) => import("effect/Effect").Effect<{
|
|
@@ -1662,7 +1662,7 @@ export declare const resume: (input: {
|
|
|
1662
1662
|
readonly publishedAt: string | null;
|
|
1663
1663
|
readonly createdAt: string;
|
|
1664
1664
|
readonly updatedAt: string;
|
|
1665
|
-
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1665
|
+
}, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
1666
1666
|
export declare const archive: (input: {
|
|
1667
1667
|
readonly id: string;
|
|
1668
1668
|
}) => import("effect/Effect").Effect<{
|
|
@@ -2053,6 +2053,8 @@ export declare const listRuns: ((input: {
|
|
|
2053
2053
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2054
2054
|
readonly failureReason: string | null;
|
|
2055
2055
|
readonly currentNodeId: string | null;
|
|
2056
|
+
readonly holdReason: string | null;
|
|
2057
|
+
readonly holdUntil: string | null;
|
|
2056
2058
|
readonly trigger: {
|
|
2057
2059
|
readonly eventId: string;
|
|
2058
2060
|
readonly eventName: string;
|
|
@@ -2081,6 +2083,8 @@ export declare const listRuns: ((input: {
|
|
|
2081
2083
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2082
2084
|
readonly failureReason: string | null;
|
|
2083
2085
|
readonly currentNodeId: string | null;
|
|
2086
|
+
readonly holdReason: string | null;
|
|
2087
|
+
readonly holdUntil: string | null;
|
|
2084
2088
|
readonly trigger: {
|
|
2085
2089
|
readonly eventId: string;
|
|
2086
2090
|
readonly eventName: string;
|
|
@@ -2108,6 +2112,8 @@ export declare const listRuns: ((input: {
|
|
|
2108
2112
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2109
2113
|
readonly failureReason: string | null;
|
|
2110
2114
|
readonly currentNodeId: string | null;
|
|
2115
|
+
readonly holdReason: string | null;
|
|
2116
|
+
readonly holdUntil: string | null;
|
|
2111
2117
|
readonly trigger: {
|
|
2112
2118
|
readonly eventId: string;
|
|
2113
2119
|
readonly eventName: string;
|
|
@@ -2131,6 +2137,8 @@ export declare const getRun: (input: {
|
|
|
2131
2137
|
readonly exitReason: "archived" | "completed" | "goal" | null;
|
|
2132
2138
|
readonly failureReason: string | null;
|
|
2133
2139
|
readonly currentNodeId: string | null;
|
|
2140
|
+
readonly holdReason: string | null;
|
|
2141
|
+
readonly holdUntil: string | null;
|
|
2134
2142
|
readonly trigger: {
|
|
2135
2143
|
readonly eventId: string;
|
|
2136
2144
|
readonly eventName: string;
|