samva 0.16.0 → 0.18.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/AGENTS.md +9 -1
- package/README.md +57 -1
- package/dist/{rolldown-runtime-D7D4PA-g.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/client/client/client.gen.js +174 -0
- package/dist/client/client/utils.gen.js +177 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/core/auth.gen.js +12 -0
- package/dist/client/core/bodySerializer.gen.js +6 -0
- package/dist/client/core/params.gen.js +77 -0
- package/dist/client/core/pathSerializer.gen.js +82 -0
- package/dist/client/core/serverSentEvents.gen.js +96 -0
- package/dist/client/core/utils.gen.js +78 -0
- package/dist/client/sdk.gen.d.ts +174 -3
- package/dist/{promises-KrA2nSLg.js → client/sdk.gen.js} +464 -2289
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-attribution.js +9 -0
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +11 -9
- package/dist/effect/api-keys.d.ts +13 -13
- package/dist/effect/api-keys.js +13 -12
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +9 -7
- package/dist/effect/brands.d.ts +7 -7
- package/dist/effect/brands.js +12 -10
- package/dist/effect/campaigns.d.ts +18 -18
- package/dist/effect/campaigns.js +17 -15
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +95 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +4 -5
- package/dist/effect/contact-groups.d.ts +14 -14
- package/dist/effect/contact-groups.js +15 -13
- package/dist/effect/contacts.d.ts +77 -25
- package/dist/effect/contacts.js +27 -22
- package/dist/effect/conversations.d.ts +17 -17
- package/dist/effect/conversations.js +18 -16
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +9 -7
- package/dist/effect/email.d.ts +78 -77
- package/dist/effect/email.js +68 -65
- package/dist/effect/errors.d.ts +2 -0
- package/dist/effect/errors.js +3 -0
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +17 -0
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extension-installations.js +14 -12
- package/dist/effect/extensions.d.ts +9 -9
- package/dist/effect/extensions.js +10 -8
- package/dist/effect/feedback.d.ts +2 -2
- package/dist/effect/feedback.js +6 -5
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/analytics.js +188 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/api-keys.js +249 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/attachments.js +125 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/brands.js +155 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/campaigns.js +491 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-events.js +37 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contact-groups.js +419 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/contacts.js +709 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/conversations.js +461 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/custom-fields.js +162 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/email.js +2347 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/events.js +70 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extension-installations.js +382 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/extensions.js +203 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/feedback.js +43 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/journeys.js +464 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/mailboxes.js +2312 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/media.js +181 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/messages.js +671 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/namespaces.js +135 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/operations.js +80 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/organizations.js +231 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/scheduled-messages.js +190 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/shared.js +1053 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/subscriptions.js +61 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/templates.js +2214 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/unsubscribe-groups.js +267 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/webhooks.js +500 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated/whoami.js +54 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/generated-metadata.js +919 -0
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +33 -31
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/client.js +69 -0
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/email-sender.js +21 -0
- package/dist/effect/internal/mailbox-events.js +33 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/operation.js +116 -0
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/internal/send.js +56 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +39 -0
- package/dist/effect/mailboxes.d.ts +80 -80
- package/dist/effect/mailboxes.js +135 -3
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +10 -8
- package/dist/effect/messages.d.ts +16 -16
- package/dist/effect/messages.js +15 -12
- package/dist/effect/namespaces.d.ts +7 -7
- package/dist/effect/namespaces.js +10 -8
- package/dist/effect/operations.d.ts +5 -5
- package/dist/effect/operations.js +8 -6
- package/dist/effect/organizations.d.ts +7 -7
- package/dist/effect/organizations.js +12 -10
- package/dist/effect/pagination.js +39 -0
- package/dist/effect/retry.js +3 -3
- package/dist/effect/runtime.js +25 -0
- package/dist/effect/scheduled-messages.d.ts +7 -7
- package/dist/effect/scheduled-messages.js +10 -8
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +5 -4
- package/dist/effect/templates.d.ts +40 -40
- package/dist/effect/templates.js +39 -37
- package/dist/effect/unsubscribe-groups.d.ts +11 -11
- package/dist/effect/unsubscribe-groups.js +14 -12
- package/dist/effect/webhooks.d.ts +23 -23
- package/dist/effect/webhooks.js +16 -14
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +5 -4
- package/dist/index.js +4 -3
- package/dist/{inline-attachments-Cegg6tTF.js → inline-attachments.js} +13 -7
- package/dist/{mailbox-events-VKR4f3qq.js → mailbox-events.js} +2 -2
- package/dist/{normalize-B79uJIeb.js → normalize.js} +2 -2
- package/dist/package.js +6 -0
- package/dist/promises/errors.gen.js +1340 -0
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +288 -3
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +85 -0
- package/dist/{operation-BTXjPrwf.js → service-map.js} +58 -219
- package/package.json +17 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -0,0 +1,927 @@
|
|
|
1
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ApiKeySecurityMiddleware, ConflictError, Cursor, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ForbiddenError, GatewayTimeoutError, InternalError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
4
|
+
export type ExtensionBundle = {
|
|
5
|
+
readonly sha256: string;
|
|
6
|
+
readonly sizeBytes: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const ExtensionBundle: Schema.Struct<{
|
|
9
|
+
readonly sha256: Schema.String;
|
|
10
|
+
readonly sizeBytes: Schema.Finite;
|
|
11
|
+
}>;
|
|
12
|
+
export type ExtensionVersion = {
|
|
13
|
+
readonly id: ExtensionVersionId;
|
|
14
|
+
readonly version: string;
|
|
15
|
+
readonly runtime: "hosted" | "webhook";
|
|
16
|
+
readonly bundle: ExtensionBundle | null;
|
|
17
|
+
readonly publishedAt: string;
|
|
18
|
+
readonly manifest: {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly displayName: string;
|
|
21
|
+
readonly description?: string | null;
|
|
22
|
+
readonly version: string;
|
|
23
|
+
readonly runtime: "hosted" | "webhook";
|
|
24
|
+
readonly events: ReadonlyArray<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
25
|
+
readonly permissions: ReadonlyArray<"read" | "update" | "send" | "quarantine.read">;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export declare const ExtensionVersion: Schema.Struct<{
|
|
29
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
30
|
+
readonly version: Schema.String;
|
|
31
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
32
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
33
|
+
readonly sha256: Schema.String;
|
|
34
|
+
readonly sizeBytes: Schema.Finite;
|
|
35
|
+
}>, Schema.Null]>;
|
|
36
|
+
readonly publishedAt: Schema.String;
|
|
37
|
+
readonly manifest: Schema.Struct<{
|
|
38
|
+
readonly name: Schema.String;
|
|
39
|
+
readonly displayName: Schema.String;
|
|
40
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
41
|
+
readonly version: Schema.String;
|
|
42
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
43
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
44
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
45
|
+
}>;
|
|
46
|
+
}>;
|
|
47
|
+
export type ExtensionVersionSummary = {
|
|
48
|
+
readonly id: ExtensionVersionId;
|
|
49
|
+
readonly version: string;
|
|
50
|
+
readonly runtime: "hosted" | "webhook";
|
|
51
|
+
readonly bundle: ExtensionBundle | null;
|
|
52
|
+
readonly publishedAt: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const ExtensionVersionSummary: Schema.Struct<{
|
|
55
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
56
|
+
readonly version: Schema.String;
|
|
57
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
58
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
59
|
+
readonly sha256: Schema.String;
|
|
60
|
+
readonly sizeBytes: Schema.Finite;
|
|
61
|
+
}>, Schema.Null]>;
|
|
62
|
+
readonly publishedAt: Schema.String;
|
|
63
|
+
}>;
|
|
64
|
+
export type Extension = {
|
|
65
|
+
readonly id: ExtensionId;
|
|
66
|
+
readonly name: string;
|
|
67
|
+
readonly displayName: string;
|
|
68
|
+
readonly description: string | null;
|
|
69
|
+
readonly runtime: "hosted" | "webhook";
|
|
70
|
+
readonly latestVersion: ExtensionVersionRef;
|
|
71
|
+
readonly createdAt: string;
|
|
72
|
+
readonly updatedAt: string;
|
|
73
|
+
};
|
|
74
|
+
export declare const Extension: Schema.Struct<{
|
|
75
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
76
|
+
readonly name: Schema.String;
|
|
77
|
+
readonly displayName: Schema.String;
|
|
78
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
79
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
80
|
+
readonly latestVersion: Schema.Struct<{
|
|
81
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
82
|
+
readonly version: Schema.String;
|
|
83
|
+
}>;
|
|
84
|
+
readonly createdAt: Schema.String;
|
|
85
|
+
readonly updatedAt: Schema.String;
|
|
86
|
+
}>;
|
|
87
|
+
export type ExtensionVersionPage = {
|
|
88
|
+
readonly items: ReadonlyArray<ExtensionVersionSummary>;
|
|
89
|
+
readonly nextCursor: string | null;
|
|
90
|
+
};
|
|
91
|
+
export declare const ExtensionVersionPage: Schema.Struct<{
|
|
92
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
93
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
94
|
+
readonly version: Schema.String;
|
|
95
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
96
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
97
|
+
readonly sha256: Schema.String;
|
|
98
|
+
readonly sizeBytes: Schema.Finite;
|
|
99
|
+
}>, Schema.Null]>;
|
|
100
|
+
readonly publishedAt: Schema.String;
|
|
101
|
+
}>>;
|
|
102
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
103
|
+
}>;
|
|
104
|
+
export type ExtensionPage = {
|
|
105
|
+
readonly items: ReadonlyArray<Extension>;
|
|
106
|
+
readonly nextCursor: string | null;
|
|
107
|
+
};
|
|
108
|
+
export declare const ExtensionPage: Schema.Struct<{
|
|
109
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
110
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
111
|
+
readonly name: Schema.String;
|
|
112
|
+
readonly displayName: Schema.String;
|
|
113
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
114
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
115
|
+
readonly latestVersion: Schema.Struct<{
|
|
116
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
117
|
+
readonly version: Schema.String;
|
|
118
|
+
}>;
|
|
119
|
+
readonly createdAt: Schema.String;
|
|
120
|
+
readonly updatedAt: Schema.String;
|
|
121
|
+
}>>;
|
|
122
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
123
|
+
}>;
|
|
124
|
+
export type PublishExtensionVersionResponse = {
|
|
125
|
+
readonly extension: Extension;
|
|
126
|
+
readonly version: ExtensionVersion;
|
|
127
|
+
};
|
|
128
|
+
export declare const PublishExtensionVersionResponse: Schema.Struct<{
|
|
129
|
+
readonly extension: Schema.Struct<{
|
|
130
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
131
|
+
readonly name: Schema.String;
|
|
132
|
+
readonly displayName: Schema.String;
|
|
133
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
134
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
135
|
+
readonly latestVersion: Schema.Struct<{
|
|
136
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
137
|
+
readonly version: Schema.String;
|
|
138
|
+
}>;
|
|
139
|
+
readonly createdAt: Schema.String;
|
|
140
|
+
readonly updatedAt: Schema.String;
|
|
141
|
+
}>;
|
|
142
|
+
readonly version: Schema.Struct<{
|
|
143
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
144
|
+
readonly version: Schema.String;
|
|
145
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
146
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
147
|
+
readonly sha256: Schema.String;
|
|
148
|
+
readonly sizeBytes: Schema.Finite;
|
|
149
|
+
}>, Schema.Null]>;
|
|
150
|
+
readonly publishedAt: Schema.String;
|
|
151
|
+
readonly manifest: Schema.Struct<{
|
|
152
|
+
readonly name: Schema.String;
|
|
153
|
+
readonly displayName: Schema.String;
|
|
154
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
155
|
+
readonly version: Schema.String;
|
|
156
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
157
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
158
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
159
|
+
}>;
|
|
160
|
+
}>;
|
|
161
|
+
}>;
|
|
162
|
+
export type ExtensionsListQuery = {
|
|
163
|
+
readonly limit?: string | null;
|
|
164
|
+
readonly cursor?: Cursor | null;
|
|
165
|
+
readonly after?: string | null;
|
|
166
|
+
readonly before?: string | null;
|
|
167
|
+
};
|
|
168
|
+
export declare const ExtensionsListQuery: Schema.Struct<{
|
|
169
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
170
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
171
|
+
readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
172
|
+
readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
173
|
+
}>;
|
|
174
|
+
export type ExtensionsList200 = ExtensionPage;
|
|
175
|
+
export declare const ExtensionsList200: Schema.Struct<{
|
|
176
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
177
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
178
|
+
readonly name: Schema.String;
|
|
179
|
+
readonly displayName: Schema.String;
|
|
180
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
181
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
182
|
+
readonly latestVersion: Schema.Struct<{
|
|
183
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
184
|
+
readonly version: Schema.String;
|
|
185
|
+
}>;
|
|
186
|
+
readonly createdAt: Schema.String;
|
|
187
|
+
readonly updatedAt: Schema.String;
|
|
188
|
+
}>>;
|
|
189
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
190
|
+
}>;
|
|
191
|
+
export type ExtensionsList401 = UnauthorizedError;
|
|
192
|
+
export declare const ExtensionsList401: typeof UnauthorizedError;
|
|
193
|
+
export type ExtensionsList403 = ForbiddenError;
|
|
194
|
+
export declare const ExtensionsList403: typeof ForbiddenError;
|
|
195
|
+
export type ExtensionsList404 = ResourceNotFoundError;
|
|
196
|
+
export declare const ExtensionsList404: typeof ResourceNotFoundError;
|
|
197
|
+
export type ExtensionsList422 = ValidationError;
|
|
198
|
+
export declare const ExtensionsList422: typeof ValidationError;
|
|
199
|
+
export type ExtensionsList500 = InternalError;
|
|
200
|
+
export declare const ExtensionsList500: typeof InternalError;
|
|
201
|
+
export type ExtensionsList504 = GatewayTimeoutError;
|
|
202
|
+
export declare const ExtensionsList504: typeof GatewayTimeoutError;
|
|
203
|
+
export type ExtensionsPublishRequestJson = {
|
|
204
|
+
readonly manifest: {
|
|
205
|
+
readonly name: string;
|
|
206
|
+
readonly displayName: string;
|
|
207
|
+
readonly description?: string | null;
|
|
208
|
+
readonly version: string;
|
|
209
|
+
readonly runtime: "hosted" | "webhook";
|
|
210
|
+
readonly events: ReadonlyArray<"mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded">;
|
|
211
|
+
readonly permissions: ReadonlyArray<"read" | "update" | "send" | "quarantine.read">;
|
|
212
|
+
};
|
|
213
|
+
readonly bundle?: string | null;
|
|
214
|
+
};
|
|
215
|
+
export declare const ExtensionsPublishRequestJson: Schema.Struct<{
|
|
216
|
+
readonly manifest: Schema.Struct<{
|
|
217
|
+
readonly name: Schema.String;
|
|
218
|
+
readonly displayName: Schema.String;
|
|
219
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
220
|
+
readonly version: Schema.String;
|
|
221
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
222
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
223
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
224
|
+
}>;
|
|
225
|
+
readonly bundle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
226
|
+
}>;
|
|
227
|
+
export type ExtensionsPublish201 = PublishExtensionVersionResponse;
|
|
228
|
+
export declare const ExtensionsPublish201: Schema.Struct<{
|
|
229
|
+
readonly extension: Schema.Struct<{
|
|
230
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
231
|
+
readonly name: Schema.String;
|
|
232
|
+
readonly displayName: Schema.String;
|
|
233
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
234
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
235
|
+
readonly latestVersion: Schema.Struct<{
|
|
236
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
237
|
+
readonly version: Schema.String;
|
|
238
|
+
}>;
|
|
239
|
+
readonly createdAt: Schema.String;
|
|
240
|
+
readonly updatedAt: Schema.String;
|
|
241
|
+
}>;
|
|
242
|
+
readonly version: Schema.Struct<{
|
|
243
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
244
|
+
readonly version: Schema.String;
|
|
245
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
246
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
247
|
+
readonly sha256: Schema.String;
|
|
248
|
+
readonly sizeBytes: Schema.Finite;
|
|
249
|
+
}>, Schema.Null]>;
|
|
250
|
+
readonly publishedAt: Schema.String;
|
|
251
|
+
readonly manifest: Schema.Struct<{
|
|
252
|
+
readonly name: Schema.String;
|
|
253
|
+
readonly displayName: Schema.String;
|
|
254
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
255
|
+
readonly version: Schema.String;
|
|
256
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
257
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
258
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
259
|
+
}>;
|
|
260
|
+
}>;
|
|
261
|
+
}>;
|
|
262
|
+
export type ExtensionsPublish401 = UnauthorizedError;
|
|
263
|
+
export declare const ExtensionsPublish401: typeof UnauthorizedError;
|
|
264
|
+
export type ExtensionsPublish403 = ForbiddenError;
|
|
265
|
+
export declare const ExtensionsPublish403: typeof ForbiddenError;
|
|
266
|
+
export type ExtensionsPublish404 = ResourceNotFoundError;
|
|
267
|
+
export declare const ExtensionsPublish404: typeof ResourceNotFoundError;
|
|
268
|
+
export type ExtensionsPublish409 = ConflictError;
|
|
269
|
+
export declare const ExtensionsPublish409: typeof ConflictError;
|
|
270
|
+
export type ExtensionsPublish422 = ValidationError;
|
|
271
|
+
export declare const ExtensionsPublish422: typeof ValidationError;
|
|
272
|
+
export type ExtensionsPublish500 = InternalError;
|
|
273
|
+
export declare const ExtensionsPublish500: typeof InternalError;
|
|
274
|
+
export type ExtensionsPublish504 = GatewayTimeoutError;
|
|
275
|
+
export declare const ExtensionsPublish504: typeof GatewayTimeoutError;
|
|
276
|
+
export type ExtensionsGetPathParams = {
|
|
277
|
+
readonly id: string;
|
|
278
|
+
};
|
|
279
|
+
export declare const ExtensionsGetPathParams: Schema.Struct<{
|
|
280
|
+
readonly id: Schema.String;
|
|
281
|
+
}>;
|
|
282
|
+
export type ExtensionsGet200 = Extension;
|
|
283
|
+
export declare const ExtensionsGet200: Schema.Struct<{
|
|
284
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
285
|
+
readonly name: Schema.String;
|
|
286
|
+
readonly displayName: Schema.String;
|
|
287
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
288
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
289
|
+
readonly latestVersion: Schema.Struct<{
|
|
290
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
291
|
+
readonly version: Schema.String;
|
|
292
|
+
}>;
|
|
293
|
+
readonly createdAt: Schema.String;
|
|
294
|
+
readonly updatedAt: Schema.String;
|
|
295
|
+
}>;
|
|
296
|
+
export type ExtensionsGet401 = UnauthorizedError;
|
|
297
|
+
export declare const ExtensionsGet401: typeof UnauthorizedError;
|
|
298
|
+
export type ExtensionsGet403 = ForbiddenError;
|
|
299
|
+
export declare const ExtensionsGet403: typeof ForbiddenError;
|
|
300
|
+
export type ExtensionsGet404 = ResourceNotFoundError;
|
|
301
|
+
export declare const ExtensionsGet404: typeof ResourceNotFoundError;
|
|
302
|
+
export type ExtensionsGet422 = ValidationError;
|
|
303
|
+
export declare const ExtensionsGet422: typeof ValidationError;
|
|
304
|
+
export type ExtensionsGet500 = InternalError;
|
|
305
|
+
export declare const ExtensionsGet500: typeof InternalError;
|
|
306
|
+
export type ExtensionsGet504 = GatewayTimeoutError;
|
|
307
|
+
export declare const ExtensionsGet504: typeof GatewayTimeoutError;
|
|
308
|
+
export type ExtensionsListVersionsPathParams = {
|
|
309
|
+
readonly id: string;
|
|
310
|
+
};
|
|
311
|
+
export declare const ExtensionsListVersionsPathParams: Schema.Struct<{
|
|
312
|
+
readonly id: Schema.String;
|
|
313
|
+
}>;
|
|
314
|
+
export type ExtensionsListVersionsQuery = {
|
|
315
|
+
readonly limit?: string | null;
|
|
316
|
+
readonly cursor?: Cursor | null;
|
|
317
|
+
};
|
|
318
|
+
export declare const ExtensionsListVersionsQuery: Schema.Struct<{
|
|
319
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
320
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
321
|
+
}>;
|
|
322
|
+
export type ExtensionsListVersions200 = ExtensionVersionPage;
|
|
323
|
+
export declare const ExtensionsListVersions200: Schema.Struct<{
|
|
324
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
325
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
326
|
+
readonly version: Schema.String;
|
|
327
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
328
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
329
|
+
readonly sha256: Schema.String;
|
|
330
|
+
readonly sizeBytes: Schema.Finite;
|
|
331
|
+
}>, Schema.Null]>;
|
|
332
|
+
readonly publishedAt: Schema.String;
|
|
333
|
+
}>>;
|
|
334
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
335
|
+
}>;
|
|
336
|
+
export type ExtensionsListVersions401 = UnauthorizedError;
|
|
337
|
+
export declare const ExtensionsListVersions401: typeof UnauthorizedError;
|
|
338
|
+
export type ExtensionsListVersions403 = ForbiddenError;
|
|
339
|
+
export declare const ExtensionsListVersions403: typeof ForbiddenError;
|
|
340
|
+
export type ExtensionsListVersions404 = ResourceNotFoundError;
|
|
341
|
+
export declare const ExtensionsListVersions404: typeof ResourceNotFoundError;
|
|
342
|
+
export type ExtensionsListVersions422 = ValidationError;
|
|
343
|
+
export declare const ExtensionsListVersions422: typeof ValidationError;
|
|
344
|
+
export type ExtensionsListVersions500 = InternalError;
|
|
345
|
+
export declare const ExtensionsListVersions500: typeof InternalError;
|
|
346
|
+
export type ExtensionsListVersions504 = GatewayTimeoutError;
|
|
347
|
+
export declare const ExtensionsListVersions504: typeof GatewayTimeoutError;
|
|
348
|
+
export type ExtensionsGetVersionPathParams = {
|
|
349
|
+
readonly id: string;
|
|
350
|
+
readonly versionId: string;
|
|
351
|
+
};
|
|
352
|
+
export declare const ExtensionsGetVersionPathParams: Schema.Struct<{
|
|
353
|
+
readonly id: Schema.String;
|
|
354
|
+
readonly versionId: Schema.String;
|
|
355
|
+
}>;
|
|
356
|
+
export type ExtensionsGetVersion200 = ExtensionVersion;
|
|
357
|
+
export declare const ExtensionsGetVersion200: Schema.Struct<{
|
|
358
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
359
|
+
readonly version: Schema.String;
|
|
360
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
361
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
362
|
+
readonly sha256: Schema.String;
|
|
363
|
+
readonly sizeBytes: Schema.Finite;
|
|
364
|
+
}>, Schema.Null]>;
|
|
365
|
+
readonly publishedAt: Schema.String;
|
|
366
|
+
readonly manifest: Schema.Struct<{
|
|
367
|
+
readonly name: Schema.String;
|
|
368
|
+
readonly displayName: Schema.String;
|
|
369
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
370
|
+
readonly version: Schema.String;
|
|
371
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
372
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
373
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
374
|
+
}>;
|
|
375
|
+
}>;
|
|
376
|
+
export type ExtensionsGetVersion401 = UnauthorizedError;
|
|
377
|
+
export declare const ExtensionsGetVersion401: typeof UnauthorizedError;
|
|
378
|
+
export type ExtensionsGetVersion403 = ForbiddenError;
|
|
379
|
+
export declare const ExtensionsGetVersion403: typeof ForbiddenError;
|
|
380
|
+
export type ExtensionsGetVersion404 = ResourceNotFoundError;
|
|
381
|
+
export declare const ExtensionsGetVersion404: typeof ResourceNotFoundError;
|
|
382
|
+
export type ExtensionsGetVersion422 = ValidationError;
|
|
383
|
+
export declare const ExtensionsGetVersion422: typeof ValidationError;
|
|
384
|
+
export type ExtensionsGetVersion500 = InternalError;
|
|
385
|
+
export declare const ExtensionsGetVersion500: typeof InternalError;
|
|
386
|
+
export type ExtensionsGetVersion504 = GatewayTimeoutError;
|
|
387
|
+
export declare const ExtensionsGetVersion504: typeof GatewayTimeoutError;
|
|
388
|
+
declare const ExtensionsGroup_base: HttpApiGroup.HttpApiGroup<"Extensions", HttpApiEndpoint.HttpApiEndpoint<"extensionsGet", "GET", "/v1/extensions/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
389
|
+
readonly id: Schema.String;
|
|
390
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
391
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
392
|
+
readonly name: Schema.String;
|
|
393
|
+
readonly displayName: Schema.String;
|
|
394
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
395
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
396
|
+
readonly latestVersion: Schema.Struct<{
|
|
397
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
398
|
+
readonly version: Schema.String;
|
|
399
|
+
}>;
|
|
400
|
+
readonly createdAt: Schema.String;
|
|
401
|
+
readonly updatedAt: Schema.String;
|
|
402
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
403
|
+
readonly _tag: "ForbiddenError";
|
|
404
|
+
readonly message: string;
|
|
405
|
+
}, readonly [Schema.Struct<{
|
|
406
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
407
|
+
readonly message: Schema.String;
|
|
408
|
+
}>], {
|
|
409
|
+
readonly _tag: "ForbiddenError";
|
|
410
|
+
readonly message: string;
|
|
411
|
+
}>, Schema.Struct<{
|
|
412
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
413
|
+
readonly message: Schema.String;
|
|
414
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
415
|
+
readonly _tag: "GatewayTimeoutError";
|
|
416
|
+
readonly message: string;
|
|
417
|
+
readonly retryAfterSeconds: number;
|
|
418
|
+
}, readonly [Schema.Struct<{
|
|
419
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
420
|
+
readonly message: Schema.String;
|
|
421
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
422
|
+
}>], {
|
|
423
|
+
readonly _tag: "GatewayTimeoutError";
|
|
424
|
+
readonly message: string;
|
|
425
|
+
readonly retryAfterSeconds: number;
|
|
426
|
+
}>, Schema.Struct<{
|
|
427
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
428
|
+
readonly message: Schema.String;
|
|
429
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
430
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
431
|
+
readonly _tag: "ResourceNotFoundError";
|
|
432
|
+
readonly resource: string;
|
|
433
|
+
readonly id: string;
|
|
434
|
+
readonly message: string;
|
|
435
|
+
}, readonly [Schema.Struct<{
|
|
436
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
437
|
+
readonly resource: Schema.String;
|
|
438
|
+
readonly id: Schema.String;
|
|
439
|
+
readonly message: Schema.String;
|
|
440
|
+
}>], {
|
|
441
|
+
readonly _tag: "ResourceNotFoundError";
|
|
442
|
+
readonly resource: string;
|
|
443
|
+
readonly id: string;
|
|
444
|
+
readonly message: string;
|
|
445
|
+
}>, Schema.Struct<{
|
|
446
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
447
|
+
readonly resource: Schema.String;
|
|
448
|
+
readonly id: Schema.String;
|
|
449
|
+
readonly message: Schema.String;
|
|
450
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
451
|
+
readonly _tag: "UnauthorizedError";
|
|
452
|
+
readonly message: string;
|
|
453
|
+
}, readonly [Schema.Struct<{
|
|
454
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
455
|
+
readonly message: Schema.String;
|
|
456
|
+
}>], {
|
|
457
|
+
readonly _tag: "UnauthorizedError";
|
|
458
|
+
readonly message: string;
|
|
459
|
+
}>, Schema.Struct<{
|
|
460
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
461
|
+
readonly message: Schema.String;
|
|
462
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
463
|
+
readonly _tag: "ValidationError";
|
|
464
|
+
readonly message: string;
|
|
465
|
+
readonly fields?: {
|
|
466
|
+
readonly [x: string]: readonly string[];
|
|
467
|
+
} | null;
|
|
468
|
+
}, readonly [Schema.Struct<{
|
|
469
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
470
|
+
readonly message: Schema.String;
|
|
471
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
472
|
+
}>], {
|
|
473
|
+
readonly _tag: "ValidationError";
|
|
474
|
+
readonly message: string;
|
|
475
|
+
readonly fields?: {
|
|
476
|
+
readonly [x: string]: readonly string[];
|
|
477
|
+
} | null;
|
|
478
|
+
}>, Schema.Struct<{
|
|
479
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
480
|
+
readonly message: Schema.String;
|
|
481
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
482
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"extensionsGetVersion", "GET", "/v1/extensions/:id/versions/:versionId", Schema.toCodecStringTree<Schema.Struct<{
|
|
483
|
+
readonly id: Schema.String;
|
|
484
|
+
readonly versionId: Schema.String;
|
|
485
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
486
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
487
|
+
readonly version: Schema.String;
|
|
488
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
489
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
490
|
+
readonly sha256: Schema.String;
|
|
491
|
+
readonly sizeBytes: Schema.Finite;
|
|
492
|
+
}>, Schema.Null]>;
|
|
493
|
+
readonly publishedAt: Schema.String;
|
|
494
|
+
readonly manifest: Schema.Struct<{
|
|
495
|
+
readonly name: Schema.String;
|
|
496
|
+
readonly displayName: Schema.String;
|
|
497
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
498
|
+
readonly version: Schema.String;
|
|
499
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
500
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
501
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
502
|
+
}>;
|
|
503
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
504
|
+
readonly _tag: "ForbiddenError";
|
|
505
|
+
readonly message: string;
|
|
506
|
+
}, readonly [Schema.Struct<{
|
|
507
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
508
|
+
readonly message: Schema.String;
|
|
509
|
+
}>], {
|
|
510
|
+
readonly _tag: "ForbiddenError";
|
|
511
|
+
readonly message: string;
|
|
512
|
+
}>, Schema.Struct<{
|
|
513
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
514
|
+
readonly message: Schema.String;
|
|
515
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
516
|
+
readonly _tag: "GatewayTimeoutError";
|
|
517
|
+
readonly message: string;
|
|
518
|
+
readonly retryAfterSeconds: number;
|
|
519
|
+
}, readonly [Schema.Struct<{
|
|
520
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
521
|
+
readonly message: Schema.String;
|
|
522
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
523
|
+
}>], {
|
|
524
|
+
readonly _tag: "GatewayTimeoutError";
|
|
525
|
+
readonly message: string;
|
|
526
|
+
readonly retryAfterSeconds: number;
|
|
527
|
+
}>, Schema.Struct<{
|
|
528
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
529
|
+
readonly message: Schema.String;
|
|
530
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
531
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
532
|
+
readonly _tag: "ResourceNotFoundError";
|
|
533
|
+
readonly resource: string;
|
|
534
|
+
readonly id: string;
|
|
535
|
+
readonly message: string;
|
|
536
|
+
}, readonly [Schema.Struct<{
|
|
537
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
538
|
+
readonly resource: Schema.String;
|
|
539
|
+
readonly id: Schema.String;
|
|
540
|
+
readonly message: Schema.String;
|
|
541
|
+
}>], {
|
|
542
|
+
readonly _tag: "ResourceNotFoundError";
|
|
543
|
+
readonly resource: string;
|
|
544
|
+
readonly id: string;
|
|
545
|
+
readonly message: string;
|
|
546
|
+
}>, Schema.Struct<{
|
|
547
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
548
|
+
readonly resource: Schema.String;
|
|
549
|
+
readonly id: Schema.String;
|
|
550
|
+
readonly message: Schema.String;
|
|
551
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
552
|
+
readonly _tag: "UnauthorizedError";
|
|
553
|
+
readonly message: string;
|
|
554
|
+
}, readonly [Schema.Struct<{
|
|
555
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
556
|
+
readonly message: Schema.String;
|
|
557
|
+
}>], {
|
|
558
|
+
readonly _tag: "UnauthorizedError";
|
|
559
|
+
readonly message: string;
|
|
560
|
+
}>, Schema.Struct<{
|
|
561
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
562
|
+
readonly message: Schema.String;
|
|
563
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
564
|
+
readonly _tag: "ValidationError";
|
|
565
|
+
readonly message: string;
|
|
566
|
+
readonly fields?: {
|
|
567
|
+
readonly [x: string]: readonly string[];
|
|
568
|
+
} | null;
|
|
569
|
+
}, readonly [Schema.Struct<{
|
|
570
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
571
|
+
readonly message: Schema.String;
|
|
572
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
573
|
+
}>], {
|
|
574
|
+
readonly _tag: "ValidationError";
|
|
575
|
+
readonly message: string;
|
|
576
|
+
readonly fields?: {
|
|
577
|
+
readonly [x: string]: readonly string[];
|
|
578
|
+
} | null;
|
|
579
|
+
}>, Schema.Struct<{
|
|
580
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
581
|
+
readonly message: Schema.String;
|
|
582
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
583
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"extensionsList", "GET", "/v1/extensions", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
584
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
585
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
586
|
+
readonly after: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
587
|
+
readonly before: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
588
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
589
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
590
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
591
|
+
readonly name: Schema.String;
|
|
592
|
+
readonly displayName: Schema.String;
|
|
593
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
594
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
595
|
+
readonly latestVersion: Schema.Struct<{
|
|
596
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
597
|
+
readonly version: Schema.String;
|
|
598
|
+
}>;
|
|
599
|
+
readonly createdAt: Schema.String;
|
|
600
|
+
readonly updatedAt: Schema.String;
|
|
601
|
+
}>>;
|
|
602
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
603
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
604
|
+
readonly _tag: "ForbiddenError";
|
|
605
|
+
readonly message: string;
|
|
606
|
+
}, readonly [Schema.Struct<{
|
|
607
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
608
|
+
readonly message: Schema.String;
|
|
609
|
+
}>], {
|
|
610
|
+
readonly _tag: "ForbiddenError";
|
|
611
|
+
readonly message: string;
|
|
612
|
+
}>, Schema.Struct<{
|
|
613
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
614
|
+
readonly message: Schema.String;
|
|
615
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
616
|
+
readonly _tag: "GatewayTimeoutError";
|
|
617
|
+
readonly message: string;
|
|
618
|
+
readonly retryAfterSeconds: number;
|
|
619
|
+
}, readonly [Schema.Struct<{
|
|
620
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
621
|
+
readonly message: Schema.String;
|
|
622
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
623
|
+
}>], {
|
|
624
|
+
readonly _tag: "GatewayTimeoutError";
|
|
625
|
+
readonly message: string;
|
|
626
|
+
readonly retryAfterSeconds: number;
|
|
627
|
+
}>, Schema.Struct<{
|
|
628
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
629
|
+
readonly message: Schema.String;
|
|
630
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
631
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
632
|
+
readonly _tag: "ResourceNotFoundError";
|
|
633
|
+
readonly resource: string;
|
|
634
|
+
readonly id: string;
|
|
635
|
+
readonly message: string;
|
|
636
|
+
}, readonly [Schema.Struct<{
|
|
637
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
638
|
+
readonly resource: Schema.String;
|
|
639
|
+
readonly id: Schema.String;
|
|
640
|
+
readonly message: Schema.String;
|
|
641
|
+
}>], {
|
|
642
|
+
readonly _tag: "ResourceNotFoundError";
|
|
643
|
+
readonly resource: string;
|
|
644
|
+
readonly id: string;
|
|
645
|
+
readonly message: string;
|
|
646
|
+
}>, Schema.Struct<{
|
|
647
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
648
|
+
readonly resource: Schema.String;
|
|
649
|
+
readonly id: Schema.String;
|
|
650
|
+
readonly message: Schema.String;
|
|
651
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
652
|
+
readonly _tag: "UnauthorizedError";
|
|
653
|
+
readonly message: string;
|
|
654
|
+
}, readonly [Schema.Struct<{
|
|
655
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
656
|
+
readonly message: Schema.String;
|
|
657
|
+
}>], {
|
|
658
|
+
readonly _tag: "UnauthorizedError";
|
|
659
|
+
readonly message: string;
|
|
660
|
+
}>, Schema.Struct<{
|
|
661
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
662
|
+
readonly message: Schema.String;
|
|
663
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
664
|
+
readonly _tag: "ValidationError";
|
|
665
|
+
readonly message: string;
|
|
666
|
+
readonly fields?: {
|
|
667
|
+
readonly [x: string]: readonly string[];
|
|
668
|
+
} | null;
|
|
669
|
+
}, readonly [Schema.Struct<{
|
|
670
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
671
|
+
readonly message: Schema.String;
|
|
672
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
673
|
+
}>], {
|
|
674
|
+
readonly _tag: "ValidationError";
|
|
675
|
+
readonly message: string;
|
|
676
|
+
readonly fields?: {
|
|
677
|
+
readonly [x: string]: readonly string[];
|
|
678
|
+
} | null;
|
|
679
|
+
}>, Schema.Struct<{
|
|
680
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
681
|
+
readonly message: Schema.String;
|
|
682
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
683
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"extensionsListVersions", "GET", "/v1/extensions/:id/versions", Schema.toCodecStringTree<Schema.Struct<{
|
|
684
|
+
readonly id: Schema.String;
|
|
685
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
686
|
+
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
687
|
+
readonly cursor: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
688
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
689
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
690
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
691
|
+
readonly version: Schema.String;
|
|
692
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
693
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
694
|
+
readonly sha256: Schema.String;
|
|
695
|
+
readonly sizeBytes: Schema.Finite;
|
|
696
|
+
}>, Schema.Null]>;
|
|
697
|
+
readonly publishedAt: Schema.String;
|
|
698
|
+
}>>;
|
|
699
|
+
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
700
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
701
|
+
readonly _tag: "ForbiddenError";
|
|
702
|
+
readonly message: string;
|
|
703
|
+
}, readonly [Schema.Struct<{
|
|
704
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
705
|
+
readonly message: Schema.String;
|
|
706
|
+
}>], {
|
|
707
|
+
readonly _tag: "ForbiddenError";
|
|
708
|
+
readonly message: string;
|
|
709
|
+
}>, Schema.Struct<{
|
|
710
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
711
|
+
readonly message: Schema.String;
|
|
712
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
713
|
+
readonly _tag: "GatewayTimeoutError";
|
|
714
|
+
readonly message: string;
|
|
715
|
+
readonly retryAfterSeconds: number;
|
|
716
|
+
}, readonly [Schema.Struct<{
|
|
717
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
718
|
+
readonly message: Schema.String;
|
|
719
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
720
|
+
}>], {
|
|
721
|
+
readonly _tag: "GatewayTimeoutError";
|
|
722
|
+
readonly message: string;
|
|
723
|
+
readonly retryAfterSeconds: number;
|
|
724
|
+
}>, Schema.Struct<{
|
|
725
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
726
|
+
readonly message: Schema.String;
|
|
727
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
728
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
729
|
+
readonly _tag: "ResourceNotFoundError";
|
|
730
|
+
readonly resource: string;
|
|
731
|
+
readonly id: string;
|
|
732
|
+
readonly message: string;
|
|
733
|
+
}, readonly [Schema.Struct<{
|
|
734
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
735
|
+
readonly resource: Schema.String;
|
|
736
|
+
readonly id: Schema.String;
|
|
737
|
+
readonly message: Schema.String;
|
|
738
|
+
}>], {
|
|
739
|
+
readonly _tag: "ResourceNotFoundError";
|
|
740
|
+
readonly resource: string;
|
|
741
|
+
readonly id: string;
|
|
742
|
+
readonly message: string;
|
|
743
|
+
}>, Schema.Struct<{
|
|
744
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
745
|
+
readonly resource: Schema.String;
|
|
746
|
+
readonly id: Schema.String;
|
|
747
|
+
readonly message: Schema.String;
|
|
748
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
749
|
+
readonly _tag: "UnauthorizedError";
|
|
750
|
+
readonly message: string;
|
|
751
|
+
}, readonly [Schema.Struct<{
|
|
752
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
753
|
+
readonly message: Schema.String;
|
|
754
|
+
}>], {
|
|
755
|
+
readonly _tag: "UnauthorizedError";
|
|
756
|
+
readonly message: string;
|
|
757
|
+
}>, Schema.Struct<{
|
|
758
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
759
|
+
readonly message: Schema.String;
|
|
760
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
761
|
+
readonly _tag: "ValidationError";
|
|
762
|
+
readonly message: string;
|
|
763
|
+
readonly fields?: {
|
|
764
|
+
readonly [x: string]: readonly string[];
|
|
765
|
+
} | null;
|
|
766
|
+
}, readonly [Schema.Struct<{
|
|
767
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
768
|
+
readonly message: Schema.String;
|
|
769
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
770
|
+
}>], {
|
|
771
|
+
readonly _tag: "ValidationError";
|
|
772
|
+
readonly message: string;
|
|
773
|
+
readonly fields?: {
|
|
774
|
+
readonly [x: string]: readonly string[];
|
|
775
|
+
} | null;
|
|
776
|
+
}>, Schema.Struct<{
|
|
777
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
778
|
+
readonly message: Schema.String;
|
|
779
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
780
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"extensionsPublish", "POST", "/v1/extensions", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
781
|
+
readonly manifest: Schema.Struct<{
|
|
782
|
+
readonly name: Schema.String;
|
|
783
|
+
readonly displayName: Schema.String;
|
|
784
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
785
|
+
readonly version: Schema.String;
|
|
786
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
787
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
788
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
789
|
+
}>;
|
|
790
|
+
readonly bundle: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
791
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
792
|
+
readonly extension: Schema.Struct<{
|
|
793
|
+
readonly id: Schema.brand<Schema.String, "ExtensionId">;
|
|
794
|
+
readonly name: Schema.String;
|
|
795
|
+
readonly displayName: Schema.String;
|
|
796
|
+
readonly description: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
797
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
798
|
+
readonly latestVersion: Schema.Struct<{
|
|
799
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
800
|
+
readonly version: Schema.String;
|
|
801
|
+
}>;
|
|
802
|
+
readonly createdAt: Schema.String;
|
|
803
|
+
readonly updatedAt: Schema.String;
|
|
804
|
+
}>;
|
|
805
|
+
readonly version: Schema.Struct<{
|
|
806
|
+
readonly id: Schema.brand<Schema.String, "ExtensionVersionId">;
|
|
807
|
+
readonly version: Schema.String;
|
|
808
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
809
|
+
readonly bundle: Schema.Union<readonly [Schema.Struct<{
|
|
810
|
+
readonly sha256: Schema.String;
|
|
811
|
+
readonly sizeBytes: Schema.Finite;
|
|
812
|
+
}>, Schema.Null]>;
|
|
813
|
+
readonly publishedAt: Schema.String;
|
|
814
|
+
readonly manifest: Schema.Struct<{
|
|
815
|
+
readonly name: Schema.String;
|
|
816
|
+
readonly displayName: Schema.String;
|
|
817
|
+
readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
818
|
+
readonly version: Schema.String;
|
|
819
|
+
readonly runtime: Schema.Union<readonly [Schema.Literal<"hosted">, Schema.Literal<"webhook">]>;
|
|
820
|
+
readonly events: Schema.$Array<Schema.Union<readonly [Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">]>>;
|
|
821
|
+
readonly permissions: Schema.$Array<Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>>;
|
|
822
|
+
}>;
|
|
823
|
+
}>;
|
|
824
|
+
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
825
|
+
readonly _tag: "ConflictError";
|
|
826
|
+
readonly message: string;
|
|
827
|
+
readonly resource: string;
|
|
828
|
+
readonly id?: string | null;
|
|
829
|
+
}, readonly [Schema.Struct<{
|
|
830
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
831
|
+
readonly message: Schema.String;
|
|
832
|
+
readonly resource: Schema.String;
|
|
833
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
834
|
+
}>], {
|
|
835
|
+
readonly _tag: "ConflictError";
|
|
836
|
+
readonly message: string;
|
|
837
|
+
readonly resource: string;
|
|
838
|
+
readonly id?: string | null;
|
|
839
|
+
}>, Schema.Struct<{
|
|
840
|
+
readonly _tag: Schema.tag<"ConflictError">;
|
|
841
|
+
readonly message: Schema.String;
|
|
842
|
+
readonly resource: Schema.String;
|
|
843
|
+
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
844
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
845
|
+
readonly _tag: "ForbiddenError";
|
|
846
|
+
readonly message: string;
|
|
847
|
+
}, readonly [Schema.Struct<{
|
|
848
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
849
|
+
readonly message: Schema.String;
|
|
850
|
+
}>], {
|
|
851
|
+
readonly _tag: "ForbiddenError";
|
|
852
|
+
readonly message: string;
|
|
853
|
+
}>, Schema.Struct<{
|
|
854
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
855
|
+
readonly message: Schema.String;
|
|
856
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
857
|
+
readonly _tag: "GatewayTimeoutError";
|
|
858
|
+
readonly message: string;
|
|
859
|
+
readonly retryAfterSeconds: number;
|
|
860
|
+
}, readonly [Schema.Struct<{
|
|
861
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
862
|
+
readonly message: Schema.String;
|
|
863
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
864
|
+
}>], {
|
|
865
|
+
readonly _tag: "GatewayTimeoutError";
|
|
866
|
+
readonly message: string;
|
|
867
|
+
readonly retryAfterSeconds: number;
|
|
868
|
+
}>, Schema.Struct<{
|
|
869
|
+
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
870
|
+
readonly message: Schema.String;
|
|
871
|
+
readonly retryAfterSeconds: Schema.Finite;
|
|
872
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
873
|
+
readonly _tag: "ResourceNotFoundError";
|
|
874
|
+
readonly resource: string;
|
|
875
|
+
readonly id: string;
|
|
876
|
+
readonly message: string;
|
|
877
|
+
}, readonly [Schema.Struct<{
|
|
878
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
879
|
+
readonly resource: Schema.String;
|
|
880
|
+
readonly id: Schema.String;
|
|
881
|
+
readonly message: Schema.String;
|
|
882
|
+
}>], {
|
|
883
|
+
readonly _tag: "ResourceNotFoundError";
|
|
884
|
+
readonly resource: string;
|
|
885
|
+
readonly id: string;
|
|
886
|
+
readonly message: string;
|
|
887
|
+
}>, Schema.Struct<{
|
|
888
|
+
readonly _tag: Schema.tag<"ResourceNotFoundError">;
|
|
889
|
+
readonly resource: Schema.String;
|
|
890
|
+
readonly id: Schema.String;
|
|
891
|
+
readonly message: Schema.String;
|
|
892
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
893
|
+
readonly _tag: "UnauthorizedError";
|
|
894
|
+
readonly message: string;
|
|
895
|
+
}, readonly [Schema.Struct<{
|
|
896
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
897
|
+
readonly message: Schema.String;
|
|
898
|
+
}>], {
|
|
899
|
+
readonly _tag: "UnauthorizedError";
|
|
900
|
+
readonly message: string;
|
|
901
|
+
}>, Schema.Struct<{
|
|
902
|
+
readonly _tag: Schema.tag<"UnauthorizedError">;
|
|
903
|
+
readonly message: Schema.String;
|
|
904
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
|
|
905
|
+
readonly _tag: "ValidationError";
|
|
906
|
+
readonly message: string;
|
|
907
|
+
readonly fields?: {
|
|
908
|
+
readonly [x: string]: readonly string[];
|
|
909
|
+
} | null;
|
|
910
|
+
}, readonly [Schema.Struct<{
|
|
911
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
912
|
+
readonly message: Schema.String;
|
|
913
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
914
|
+
}>], {
|
|
915
|
+
readonly _tag: "ValidationError";
|
|
916
|
+
readonly message: string;
|
|
917
|
+
readonly fields?: {
|
|
918
|
+
readonly [x: string]: readonly string[];
|
|
919
|
+
} | null;
|
|
920
|
+
}>, Schema.Struct<{
|
|
921
|
+
readonly _tag: Schema.tag<"ValidationError">;
|
|
922
|
+
readonly message: Schema.String;
|
|
923
|
+
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
924
|
+
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
|
|
925
|
+
export declare class ExtensionsGroup extends ExtensionsGroup_base {
|
|
926
|
+
}
|
|
927
|
+
export {};
|