samva 0.21.0 → 0.22.1

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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +14 -3
  3. package/dist/client/sdk.gen.js +39 -0
  4. package/dist/client/types.gen.d.ts +93 -6
  5. package/dist/effect/analytics.d.ts +6 -41
  6. package/dist/effect/api-keys.d.ts +8 -236
  7. package/dist/effect/attachments.d.ts +4 -43
  8. package/dist/effect/brands.d.ts +6 -155
  9. package/dist/effect/campaigns.d.ts +12 -868
  10. package/dist/effect/contact-groups.d.ts +10 -135
  11. package/dist/effect/contacts.d.ts +21 -727
  12. package/dist/effect/conversations.d.ts +13 -681
  13. package/dist/effect/custom-fields.d.ts +4 -44
  14. package/dist/effect/email.d.ts +61 -1299
  15. package/dist/effect/events.d.ts +2 -32
  16. package/dist/effect/extension-installations.d.ts +9 -213
  17. package/dist/effect/extensions.d.ts +5 -95
  18. package/dist/effect/feedback.d.ts +1 -4
  19. package/dist/effect/generated/shared.d.ts +16 -4
  20. package/dist/effect/generated/shared.js +6 -0
  21. package/dist/effect/generated/templates.d.ts +286 -0
  22. package/dist/effect/generated/templates.js +36 -2
  23. package/dist/effect/generated/webhooks.d.ts +19 -19
  24. package/dist/effect/generated/webhooks.js +12 -0
  25. package/dist/effect/generated-metadata.d.ts +5 -0
  26. package/dist/effect/generated-metadata.js +1 -0
  27. package/dist/effect/internal/client.d.ts +5 -1
  28. package/dist/effect/internal/operation.d.ts +3 -3
  29. package/dist/effect/internal/send.d.ts +3 -3
  30. package/dist/effect/journeys.d.ts +167 -1836
  31. package/dist/effect/mailboxes.d.ts +60 -2362
  32. package/dist/effect/media.d.ts +5 -66
  33. package/dist/effect/messages.d.ts +9 -264
  34. package/dist/effect/namespaces.d.ts +8 -55
  35. package/dist/effect/operations.d.ts +3 -84
  36. package/dist/effect/organizations.d.ts +7 -161
  37. package/dist/effect/scheduled-messages.d.ts +5 -401
  38. package/dist/effect/subscriptions.d.ts +1 -4
  39. package/dist/effect/templates.d.ts +39 -1453
  40. package/dist/effect/templates.js +3 -1
  41. package/dist/effect/unsubscribe-groups.d.ts +9 -70
  42. package/dist/effect/webhooks.d.ts +15 -145
  43. package/dist/effect/whoami.d.ts +1 -46
  44. package/dist/package.js +1 -1
  45. package/dist/promises/types.gen.d.ts +1 -1
  46. package/dist/service-map.d.ts +4 -0
  47. package/dist/service-map.js +1 -0
  48. package/package.json +7 -7
@@ -43,17 +43,7 @@ export declare const create: (input: {
43
43
  } | null | undefined;
44
44
  readonly occurredAt?: string | null | undefined;
45
45
  readonly idempotencyKey?: string | null | undefined;
46
- }) => import("effect/Effect").Effect<{
47
- readonly id: string;
48
- readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
49
- readonly name: string;
50
- readonly source: "api" | "samva";
51
- readonly properties: {
52
- readonly [x: string]: import("./generated").JsonValue;
53
- };
54
- readonly occurredAt: string;
55
- readonly recordedAt: string;
56
- }, 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>;
46
+ }) => import("./internal/operation").OperationResult<"eventsCreate">;
57
47
  export declare const batch: (input: {
58
48
  readonly events: readonly {
59
49
  readonly contact: {
@@ -98,24 +88,4 @@ export declare const batch: (input: {
98
88
  readonly occurredAt?: string | null | undefined;
99
89
  readonly idempotencyKey?: string | null | undefined;
100
90
  }[];
101
- }) => import("effect/Effect").Effect<{
102
- readonly total: number;
103
- readonly accepted: number;
104
- readonly errors: number;
105
- readonly results: readonly {
106
- readonly index: number;
107
- readonly status: "accepted" | "error";
108
- readonly event?: {
109
- readonly id: string;
110
- readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
111
- readonly name: string;
112
- readonly source: "api" | "samva";
113
- readonly properties: {
114
- readonly [x: string]: import("./generated").JsonValue;
115
- };
116
- readonly occurredAt: string;
117
- readonly recordedAt: string;
118
- } | null;
119
- readonly error?: string | null;
120
- }[];
121
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
91
+ }) => import("./internal/operation").OperationResult<"eventsBatch">;
@@ -3,22 +3,7 @@ export declare const list: ((input?: {
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly after?: string | null | undefined;
5
5
  readonly before?: string | null | undefined;
6
- } | undefined) => import("effect/Effect").Effect<{
7
- readonly items: readonly {
8
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
9
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
10
- readonly name: string;
11
- readonly displayName: string;
12
- readonly version: {
13
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
14
- readonly version: string;
15
- };
16
- readonly runtime: "hosted" | "webhook";
17
- readonly status: "active" | "disabled";
18
- readonly createdAt: string;
19
- }[];
20
- readonly nextCursor: string | null;
21
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
6
+ } | undefined) => import("./internal/operation").OperationResult<"extensionInstallationsList">) & {
22
7
  readonly pages: (input?: {
23
8
  readonly limit?: string | null | undefined;
24
9
  readonly cursor?: string | null | undefined;
@@ -67,218 +52,29 @@ export declare const install: (input: {
67
52
  readonly permissions?: readonly ("quarantine.read" | "read" | "send" | "update")[] | null | undefined;
68
53
  readonly sendMode?: "approval" | "send" | null | undefined;
69
54
  readonly webhookUrl?: string | null | undefined;
70
- }) => import("effect/Effect").Effect<{
71
- readonly installation: {
72
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
73
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
74
- readonly name: string;
75
- readonly displayName: string;
76
- readonly version: {
77
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
78
- readonly version: string;
79
- };
80
- readonly runtime: "hosted" | "webhook";
81
- readonly status: "active" | "disabled";
82
- readonly createdAt: string;
83
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
84
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
85
- readonly sendMode: "approval" | "send";
86
- readonly scope: {
87
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
88
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
89
- };
90
- readonly webhook: {
91
- readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
92
- readonly url: string;
93
- } | null;
94
- readonly updatedAt: string;
95
- readonly disabledAt: string | null;
96
- };
97
- readonly credentials: {
98
- readonly apiKey: import("effect/Redacted").Redacted<string>;
99
- readonly webhookSecret: import("effect/Redacted").Redacted<string>;
100
- } | null;
101
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
55
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsInstall">;
102
56
  export declare const upgrade: (input: {
103
57
  readonly id: string;
104
58
  readonly version?: string | null | undefined;
105
59
  readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
106
60
  readonly dryRun?: boolean | null | undefined;
107
- }) => import("effect/Effect").Effect<{
108
- readonly installation: {
109
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
110
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
111
- readonly name: string;
112
- readonly displayName: string;
113
- readonly version: {
114
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
115
- readonly version: string;
116
- };
117
- readonly runtime: "hosted" | "webhook";
118
- readonly status: "active" | "disabled";
119
- readonly createdAt: string;
120
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
121
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
122
- readonly sendMode: "approval" | "send";
123
- readonly scope: {
124
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
125
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
126
- };
127
- readonly webhook: {
128
- readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
129
- readonly url: string;
130
- } | null;
131
- readonly updatedAt: string;
132
- readonly disabledAt: string | null;
133
- };
134
- readonly fromVersion: {
135
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
136
- readonly version: string;
137
- };
138
- readonly toVersion: {
139
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
140
- readonly version: string;
141
- };
142
- readonly permissionDiff: {
143
- readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
144
- readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
145
- };
146
- readonly dryRun: boolean;
147
- readonly versionChange: {
148
- readonly id: string;
149
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
150
- readonly installationId: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
151
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
152
- readonly fromVersion: {
153
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
154
- readonly version: string;
155
- };
156
- readonly toVersion: {
157
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
158
- readonly version: string;
159
- };
160
- readonly permissionDiff: {
161
- readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
162
- readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.action.resolved" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
163
- };
164
- readonly changedBy: string & import("effect/Brand").Brand<"UserId">;
165
- readonly changedAt: string;
166
- } | null;
167
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
61
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsUpgrade">;
168
62
  export declare const get: (input: {
169
63
  readonly id: string;
170
- }) => import("effect/Effect").Effect<{
171
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
172
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
173
- readonly name: string;
174
- readonly displayName: string;
175
- readonly version: {
176
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
177
- readonly version: string;
178
- };
179
- readonly runtime: "hosted" | "webhook";
180
- readonly status: "active" | "disabled";
181
- readonly createdAt: string;
182
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
183
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
184
- readonly sendMode: "approval" | "send";
185
- readonly scope: {
186
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
187
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
188
- };
189
- readonly webhook: {
190
- readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
191
- readonly url: string;
192
- } | null;
193
- readonly updatedAt: string;
194
- readonly disabledAt: string | null;
195
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
64
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsGet">;
196
65
  export declare const uninstall: (input: {
197
66
  readonly id: string;
198
- }) => import("effect/Effect").Effect<{
199
- readonly success: boolean;
200
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
67
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsUninstall">;
201
68
  export declare const disable: (input: {
202
69
  readonly id: string;
203
- }) => import("effect/Effect").Effect<{
204
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
205
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
206
- readonly name: string;
207
- readonly displayName: string;
208
- readonly version: {
209
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
210
- readonly version: string;
211
- };
212
- readonly runtime: "hosted" | "webhook";
213
- readonly status: "active" | "disabled";
214
- readonly createdAt: string;
215
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
216
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
217
- readonly sendMode: "approval" | "send";
218
- readonly scope: {
219
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
220
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
221
- };
222
- readonly webhook: {
223
- readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
224
- readonly url: string;
225
- } | null;
226
- readonly updatedAt: string;
227
- readonly disabledAt: string | null;
228
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
70
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsDisable">;
229
71
  export declare const enable: (input: {
230
72
  readonly id: string;
231
- }) => import("effect/Effect").Effect<{
232
- readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
233
- readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
234
- readonly name: string;
235
- readonly displayName: string;
236
- readonly version: {
237
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
238
- readonly version: string;
239
- };
240
- readonly runtime: "hosted" | "webhook";
241
- readonly status: "active" | "disabled";
242
- readonly createdAt: string;
243
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
244
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
245
- readonly sendMode: "approval" | "send";
246
- readonly scope: {
247
- readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
248
- readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
249
- };
250
- readonly webhook: {
251
- readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
252
- readonly url: string;
253
- } | null;
254
- readonly updatedAt: string;
255
- readonly disabledAt: string | null;
256
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
73
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsEnable">;
257
74
  export declare const listRuns: (input: {
258
75
  readonly id: string;
259
- }) => import("effect/Effect").Effect<{
260
- readonly items: readonly {
261
- readonly id: string;
262
- readonly eventId: string;
263
- readonly eventType: "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent";
264
- readonly attempt: number;
265
- readonly startedAt: string;
266
- readonly durationMs: number;
267
- readonly outcome: "budget_exhausted" | "failed" | "revoked" | "succeeded" | "timed_out";
268
- readonly error: string | null;
269
- }[];
270
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
76
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsListRuns">;
271
77
  export declare const getRun: (input: {
272
78
  readonly id: string;
273
79
  readonly runId: string;
274
- }) => import("effect/Effect").Effect<{
275
- readonly id: string;
276
- readonly eventId: string;
277
- readonly eventType: "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent";
278
- readonly attempt: number;
279
- readonly startedAt: string;
280
- readonly durationMs: number;
281
- readonly outcome: "budget_exhausted" | "failed" | "revoked" | "succeeded" | "timed_out";
282
- readonly error: string | null;
283
- readonly logs: readonly string[];
284
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
80
+ }) => import("./internal/operation").OperationResult<"extensionInstallationsGetRun">;
@@ -3,22 +3,7 @@ export declare const list: ((input?: {
3
3
  readonly cursor?: string | null | undefined;
4
4
  readonly after?: string | null | undefined;
5
5
  readonly before?: string | null | undefined;
6
- } | undefined) => import("effect/Effect").Effect<{
7
- readonly items: readonly {
8
- readonly id: string & import("effect/Brand").Brand<"ExtensionId">;
9
- readonly name: string;
10
- readonly displayName: string;
11
- readonly description: string | null;
12
- readonly runtime: "hosted" | "webhook";
13
- readonly latestVersion: {
14
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
15
- readonly version: string;
16
- };
17
- readonly createdAt: string;
18
- readonly updatedAt: string;
19
- }[];
20
- readonly nextCursor: string | null;
21
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
6
+ } | undefined) => import("./internal/operation").OperationResult<"extensionsList">) & {
22
7
  readonly pages: (input?: {
23
8
  readonly limit?: string | null | undefined;
24
9
  readonly cursor?: string | null | undefined;
@@ -70,72 +55,15 @@ export declare const publish: (input: {
70
55
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
71
56
  };
72
57
  readonly bundle?: string | null | undefined;
73
- }) => import("effect/Effect").Effect<{
74
- readonly extension: {
75
- readonly id: string & import("effect/Brand").Brand<"ExtensionId">;
76
- readonly name: string;
77
- readonly displayName: string;
78
- readonly description: string | null;
79
- readonly runtime: "hosted" | "webhook";
80
- readonly latestVersion: {
81
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
82
- readonly version: string;
83
- };
84
- readonly createdAt: string;
85
- readonly updatedAt: string;
86
- };
87
- readonly version: {
88
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
89
- readonly version: string;
90
- readonly runtime: "hosted" | "webhook";
91
- readonly bundle: {
92
- readonly sha256: string;
93
- readonly sizeBytes: number;
94
- } | null;
95
- readonly publishedAt: string;
96
- readonly manifest: {
97
- readonly name: string;
98
- readonly displayName: string;
99
- readonly description?: string | null;
100
- readonly version: string;
101
- readonly runtime: "hosted" | "webhook";
102
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
103
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
104
- };
105
- };
106
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
58
+ }) => import("./internal/operation").OperationResult<"extensionsPublish">;
107
59
  export declare const get: (input: {
108
60
  readonly id: string;
109
- }) => import("effect/Effect").Effect<{
110
- readonly id: string & import("effect/Brand").Brand<"ExtensionId">;
111
- readonly name: string;
112
- readonly displayName: string;
113
- readonly description: string | null;
114
- readonly runtime: "hosted" | "webhook";
115
- readonly latestVersion: {
116
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
117
- readonly version: string;
118
- };
119
- readonly createdAt: string;
120
- readonly updatedAt: string;
121
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
61
+ }) => import("./internal/operation").OperationResult<"extensionsGet">;
122
62
  export declare const listVersions: ((input: {
123
63
  readonly id: string;
124
64
  readonly limit?: string | null | undefined;
125
65
  readonly cursor?: string | null | undefined;
126
- }) => import("effect/Effect").Effect<{
127
- readonly items: readonly {
128
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
129
- readonly version: string;
130
- readonly runtime: "hosted" | "webhook";
131
- readonly bundle: {
132
- readonly sha256: string;
133
- readonly sizeBytes: number;
134
- } | null;
135
- readonly publishedAt: string;
136
- }[];
137
- readonly nextCursor: string | null;
138
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>) & {
66
+ }) => import("./internal/operation").OperationResult<"extensionsListVersions">) & {
139
67
  readonly pages: (input: {
140
68
  readonly id: string;
141
69
  readonly limit?: string | null | undefined;
@@ -171,22 +99,4 @@ export declare const listVersions: ((input: {
171
99
  export declare const getVersion: (input: {
172
100
  readonly id: string;
173
101
  readonly versionId: string;
174
- }) => import("effect/Effect").Effect<{
175
- readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
176
- readonly version: string;
177
- readonly runtime: "hosted" | "webhook";
178
- readonly bundle: {
179
- readonly sha256: string;
180
- readonly sizeBytes: number;
181
- } | null;
182
- readonly publishedAt: string;
183
- readonly manifest: {
184
- readonly name: string;
185
- readonly displayName: string;
186
- readonly description?: string | null;
187
- readonly version: string;
188
- readonly runtime: "hosted" | "webhook";
189
- readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
190
- readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
191
- };
192
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
102
+ }) => import("./internal/operation").OperationResult<"extensionsGetVersion">;
@@ -6,7 +6,4 @@ export declare const send: (input: {
6
6
  readonly operation?: string | null | undefined;
7
7
  readonly resourceId?: string | null | undefined;
8
8
  } | null | undefined;
9
- }) => import("effect/Effect").Effect<{
10
- readonly id: string & import("effect/Brand").Brand<"FeedbackId">;
11
- readonly createdAt: string;
12
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
9
+ }) => import("./internal/operation").OperationResult<"feedbackSend">;
@@ -717,6 +717,18 @@ export declare const ApiKeyMailboxAccess: Schema.Struct<{
717
717
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
718
718
  readonly sendMode: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"send">, Schema.Literal<"approval">]>, Schema.Null]>>;
719
719
  }>;
720
+ export type CreateTemplateFromWebsitePayload = {
721
+ readonly url: string;
722
+ readonly name?: string | null;
723
+ readonly namespaceId?: NamespaceId | null;
724
+ readonly idempotencyKey: string;
725
+ };
726
+ export declare const CreateTemplateFromWebsitePayload: Schema.Struct<{
727
+ readonly url: Schema.String;
728
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
729
+ readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
730
+ readonly idempotencyKey: Schema.String;
731
+ }>;
720
732
  export type CreateTemplatePayload = {
721
733
  readonly name: string;
722
734
  readonly projectName?: string | null;
@@ -746,7 +758,7 @@ export declare const CreateTemplatePayload: Schema.Struct<{
746
758
  export type CreateWebhookPayload = {
747
759
  readonly name: string;
748
760
  readonly url: string;
749
- readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
761
+ readonly eventTypes: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook">;
750
762
  readonly channels?: ReadonlyArray<"email"> | null;
751
763
  readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null;
752
764
  readonly namespaceId?: NamespaceId | null;
@@ -758,7 +770,7 @@ export type CreateWebhookPayload = {
758
770
  export declare const CreateWebhookPayload: Schema.Struct<{
759
771
  readonly name: Schema.String;
760
772
  readonly url: Schema.String;
761
- readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>;
773
+ readonly eventTypes: Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>;
762
774
  readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>>;
763
775
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>>;
764
776
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -786,7 +798,7 @@ export declare const InstallExtensionPayload: Schema.Struct<{
786
798
  export type UpdateWebhookPayload = {
787
799
  readonly name?: string | null;
788
800
  readonly url?: string | null;
789
- readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null;
801
+ readonly eventTypes?: ReadonlyArray<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "journey.webhook"> | null;
790
802
  readonly channels?: ReadonlyArray<"email"> | null | null;
791
803
  readonly mailboxIds?: readonly [MailboxId, ...Array<MailboxId>] | null | null;
792
804
  readonly namespaceId?: NamespaceId | null | null;
@@ -798,7 +810,7 @@ export type UpdateWebhookPayload = {
798
810
  export declare const UpdateWebhookPayload: Schema.Struct<{
799
811
  readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
800
812
  readonly url: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
801
- readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
813
+ readonly eventTypes: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Union<readonly [Schema.Literal<"message.sent">, Schema.Literal<"message.delivered">, Schema.Literal<"message.read">, Schema.Literal<"message.failed">, Schema.Literal<"message.bounced">, Schema.Literal<"message.complained">, Schema.Literal<"message.received">, Schema.Literal<"message.opened">, Schema.Literal<"message.clicked">, Schema.Literal<"contact.created">, Schema.Literal<"contact.updated">, Schema.Literal<"contact.deleted">, Schema.Literal<"contact.subscribed">, Schema.Literal<"contact.unsubscribed">, Schema.Literal<"contact.resubscribed">, Schema.Literal<"contact.consent_changed">, Schema.Literal<"conversation.created">, Schema.Literal<"conversation.updated">, Schema.Literal<"conversation.archived">, Schema.Literal<"webhook.created">, Schema.Literal<"webhook.updated">, Schema.Literal<"webhook.deleted">, Schema.Literal<"webhook.test">, Schema.Literal<"domain.updated">, Schema.Literal<"domain.warming.updated">, Schema.Literal<"template.registration.updated">, Schema.Literal<"flow.registration.updated">, Schema.Literal<"whatsapp.number.connected">, Schema.Literal<"mailbox.message.received">, Schema.Literal<"mailbox.message.sent">, Schema.Literal<"mailbox.action.pending_approval">, Schema.Literal<"mailbox.action.resolved">, Schema.Literal<"mailbox.message.quarantined">, Schema.Literal<"mailbox.message.released">, Schema.Literal<"mailbox.message.discarded">, Schema.Literal<"journey.webhook">]>>, Schema.Null]>>;
802
814
  readonly channels: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.$Array<Schema.Literal<"email">>, Schema.Null]>, Schema.Null]>>;
803
815
  readonly mailboxIds: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TupleWithRest<Schema.Tuple<readonly [Schema.brand<Schema.String, "MailboxId">]>, readonly [Schema.brand<Schema.String, "MailboxId">]>, Schema.Null]>, Schema.Null]>>;
804
816
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>, Schema.Null]>>;
@@ -533,6 +533,9 @@ const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
533
533
  Schema.Literal("webhook.test"),
534
534
  Schema.Literal("domain.updated"),
535
535
  Schema.Literal("domain.warming.updated"),
536
+ Schema.Literal("template.registration.updated"),
537
+ Schema.Literal("flow.registration.updated"),
538
+ Schema.Literal("whatsapp.number.connected"),
536
539
  Schema.Literal("mailbox.message.received"),
537
540
  Schema.Literal("mailbox.message.sent"),
538
541
  Schema.Literal("mailbox.action.pending_approval"),
@@ -577,6 +580,9 @@ const UpdateWebhookPayload = /* @__PURE__ */ Schema.Struct({
577
580
  Schema.Literal("webhook.test"),
578
581
  Schema.Literal("domain.updated"),
579
582
  Schema.Literal("domain.warming.updated"),
583
+ Schema.Literal("template.registration.updated"),
584
+ Schema.Literal("flow.registration.updated"),
585
+ Schema.Literal("whatsapp.number.connected"),
580
586
  Schema.Literal("mailbox.message.received"),
581
587
  Schema.Literal("mailbox.message.sent"),
582
588
  Schema.Literal("mailbox.action.pending_approval"),