samva 0.22.0 → 0.23.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.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +10 -3
  3. package/dist/client/sdk.gen.js +21 -2
  4. package/dist/client/types.gen.d.ts +69 -12
  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/analytics.js +8 -8
  20. package/dist/effect/generated/api-keys.js +4 -4
  21. package/dist/effect/generated/attachments.js +3 -3
  22. package/dist/effect/generated/contact-groups.js +11 -11
  23. package/dist/effect/generated/contacts.js +16 -16
  24. package/dist/effect/generated/conversations.js +6 -6
  25. package/dist/effect/generated/custom-fields.js +5 -5
  26. package/dist/effect/generated/email.js +32 -32
  27. package/dist/effect/generated/events.js +4 -4
  28. package/dist/effect/generated/extension-installations.js +4 -4
  29. package/dist/effect/generated/extensions.js +1 -1
  30. package/dist/effect/generated/journeys.js +12 -12
  31. package/dist/effect/generated/mailboxes.js +10 -10
  32. package/dist/effect/generated/messages.js +4 -4
  33. package/dist/effect/generated/organizations.d.ts +116 -9
  34. package/dist/effect/generated/organizations.js +31 -6
  35. package/dist/effect/generated/shared.js +1 -1
  36. package/dist/effect/generated/templates.d.ts +37 -72
  37. package/dist/effect/generated/templates.js +121 -122
  38. package/dist/effect/generated/unsubscribe-groups.js +7 -7
  39. package/dist/effect/generated/webhooks.js +17 -17
  40. package/dist/effect/generated-metadata.d.ts +5 -0
  41. package/dist/effect/generated-metadata.js +1 -0
  42. package/dist/effect/internal/client.d.ts +5 -1
  43. package/dist/effect/internal/operation.d.ts +3 -3
  44. package/dist/effect/internal/send.d.ts +3 -3
  45. package/dist/effect/journeys.d.ts +167 -1836
  46. package/dist/effect/mailboxes.d.ts +60 -2362
  47. package/dist/effect/media.d.ts +5 -66
  48. package/dist/effect/messages.d.ts +9 -264
  49. package/dist/effect/namespaces.d.ts +8 -55
  50. package/dist/effect/operations.d.ts +3 -84
  51. package/dist/effect/organizations.d.ts +9 -161
  52. package/dist/effect/organizations.js +3 -1
  53. package/dist/effect/scheduled-messages.d.ts +5 -401
  54. package/dist/effect/subscriptions.d.ts +1 -4
  55. package/dist/effect/templates.d.ts +34 -1506
  56. package/dist/effect/unsubscribe-groups.d.ts +9 -70
  57. package/dist/effect/webhooks.d.ts +11 -141
  58. package/dist/effect/whoami.d.ts +1 -46
  59. package/dist/package.js +1 -1
  60. package/dist/promises/types.gen.d.ts +1 -1
  61. package/dist/service-map.d.ts +4 -0
  62. package/dist/service-map.js +1 -0
  63. 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">;
@@ -8,13 +8,13 @@ const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ Schema.Struct({
8
8
  before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null]))
9
9
  });
10
10
  const AnalyticsGetChannelStats200 = /* @__PURE__ */ Schema.Struct({ email: Schema.Struct({
11
- sent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
11
+ sent: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
12
12
  deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
13
- uniqueOpenedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
14
- openTrackingEligibleDeliveredMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
13
+ uniqueOpenedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
14
+ openTrackingEligibleDeliveredMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
15
15
  uniqueMessageOpenRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
16
- uniqueClickedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
17
- clickTrackingEligibleDeliveredMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
16
+ uniqueClickedMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
17
+ clickTrackingEligibleDeliveredMessages: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
18
18
  uniqueMessageClickRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
19
19
  bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
20
20
  }) });
@@ -64,7 +64,7 @@ const AnalyticsGetHourlyDistributionQuery = /* @__PURE__ */ Schema.Struct({
64
64
  });
65
65
  const AnalyticsGetHourlyDistribution200 = /* @__PURE__ */ Schema.Array(Schema.Struct({
66
66
  hour: Schema.String,
67
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
67
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
68
68
  }));
69
69
  const AnalyticsGetHourlyDistribution400 = AnalyticsQueryError;
70
70
  const AnalyticsGetHourlyDistribution401 = UnauthorizedError;
@@ -84,7 +84,7 @@ const AnalyticsGetStatsQuery = /* @__PURE__ */ Schema.Struct({
84
84
  });
85
85
  const AnalyticsGetStats200 = /* @__PURE__ */ Schema.Struct({ volumeHistory: Schema.Array(Schema.Struct({
86
86
  date: Schema.String,
87
- email: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
87
+ email: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
88
88
  })) });
89
89
  const AnalyticsGetStats400 = AnalyticsQueryError;
90
90
  const AnalyticsGetStats401 = UnauthorizedError;
@@ -107,7 +107,7 @@ const AnalyticsGetTopContacts200 = /* @__PURE__ */ Schema.Array(Schema.Struct({
107
107
  name: Schema.Union([Schema.String, Schema.Null]),
108
108
  email: Schema.Union([Schema.String, Schema.Null]),
109
109
  phone: Schema.Union([Schema.String, Schema.Null]),
110
- messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
110
+ messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
111
111
  }));
112
112
  const AnalyticsGetTopContacts400 = AnalyticsQueryError;
113
113
  const AnalyticsGetTopContacts401 = UnauthorizedError;
@@ -136,12 +136,12 @@ const ApiKeysGetStatsQuery = /* @__PURE__ */ Schema.Struct({
136
136
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
137
137
  });
138
138
  const ApiKeysGetStats200 = /* @__PURE__ */ Schema.Struct({
139
- totalRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
140
- successfulRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
141
- failedRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
139
+ totalRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
140
+ successfulRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
141
+ failedRequests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
142
142
  dailyVolume: Schema.Array(Schema.Struct({
143
143
  date: Schema.String,
144
- requests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
144
+ requests: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
145
145
  }))
146
146
  });
147
147
  const ApiKeysGetStats401 = UnauthorizedError;
@@ -8,7 +8,7 @@ const AttachmentList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schem
8
8
  organizationId: OrganizationId,
9
9
  filename: Schema.String,
10
10
  contentType: Schema.String,
11
- size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
11
+ size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
12
12
  contentId: Schema.Union([Schema.String, Schema.Null]),
13
13
  isInline: Schema.Boolean,
14
14
  createdAt: Schema.String
@@ -28,7 +28,7 @@ const AttachmentsGetById200 = /* @__PURE__ */ Schema.Struct({
28
28
  organizationId: OrganizationId,
29
29
  filename: Schema.String,
30
30
  contentType: Schema.String,
31
- size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
31
+ size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
32
32
  contentId: Schema.Union([Schema.String, Schema.Null]),
33
33
  isInline: Schema.Boolean,
34
34
  createdAt: Schema.String
@@ -61,7 +61,7 @@ const AttachmentsDownloadUrl200 = /* @__PURE__ */ Schema.Struct({
61
61
  organizationId: OrganizationId,
62
62
  filename: Schema.String,
63
63
  contentType: Schema.String,
64
- size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
64
+ size: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
65
65
  contentId: Schema.Union([Schema.String, Schema.Null]),
66
66
  isInline: Schema.Boolean,
67
67
  createdAt: Schema.String
@@ -24,7 +24,7 @@ const ContactGroupPage = /* @__PURE__ */ Schema.Struct({
24
24
  ]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
25
25
  icon: Schema.Union([Schema.String, Schema.Null]),
26
26
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
27
- contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
27
+ contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
28
28
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
29
29
  isActive: Schema.Boolean,
30
30
  createdAt: Schema.String,
@@ -118,7 +118,7 @@ const ContactGroupsCreate201 = /* @__PURE__ */ Schema.Struct({
118
118
  ]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
119
119
  icon: Schema.Union([Schema.String, Schema.Null]),
120
120
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
121
- contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
121
+ contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
122
122
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
123
123
  isActive: Schema.Boolean,
124
124
  createdAt: Schema.String,
@@ -151,7 +151,7 @@ const ContactGroupsGetById200 = /* @__PURE__ */ Schema.Struct({
151
151
  ]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
152
152
  icon: Schema.Union([Schema.String, Schema.Null]),
153
153
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
154
- contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
154
+ contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
155
155
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
156
156
  isActive: Schema.Boolean,
157
157
  createdAt: Schema.String,
@@ -214,7 +214,7 @@ const ContactGroupsUpdate200 = /* @__PURE__ */ Schema.Struct({
214
214
  ]), Schema.Null]).annotate({ description: "The list's label color, one of six families, or null for the neutral chip. Customer-chosen and purely presentational; it carries no meaning the API enforces." }),
215
215
  icon: Schema.Union([Schema.String, Schema.Null]),
216
216
  parentGroupId: Schema.Union([ContactGroupId, Schema.Null]),
217
- contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
217
+ contactCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
218
218
  lastCalculatedAt: Schema.Union([Schema.String, Schema.Null]),
219
219
  isActive: Schema.Boolean,
220
220
  createdAt: Schema.String,
@@ -228,9 +228,9 @@ const ContactGroupsUpdate500 = InternalError;
228
228
  const ContactGroupsUpdate504 = GatewayTimeoutError;
229
229
  const ContactGroupsEvaluateDynamicPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactGroupId });
230
230
  const ContactGroupsEvaluateDynamic200 = /* @__PURE__ */ Schema.Struct({
231
- added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
232
- removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
233
- total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
231
+ added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
232
+ removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
233
+ total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
234
234
  });
235
235
  const ContactGroupsEvaluateDynamic401 = UnauthorizedError;
236
236
  const ContactGroupsEvaluateDynamic403 = ForbiddenError;
@@ -260,8 +260,8 @@ const ContactGroupsAddMembersRequestJson = /* @__PURE__ */ Schema.Struct({
260
260
  ]), Schema.Null]))
261
261
  });
262
262
  const ContactGroupsAddMembers200 = /* @__PURE__ */ Schema.Struct({
263
- added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
264
- skipped: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
263
+ added: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
264
+ skipped: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
265
265
  });
266
266
  const ContactGroupsAddMembers401 = UnauthorizedError;
267
267
  const ContactGroupsAddMembers403 = ForbiddenError;
@@ -271,7 +271,7 @@ const ContactGroupsAddMembers500 = InternalError;
271
271
  const ContactGroupsAddMembers504 = GatewayTimeoutError;
272
272
  const ContactGroupsRemoveMembersPathParams = /* @__PURE__ */ Schema.Struct({ id: ContactGroupId });
273
273
  const ContactGroupsRemoveMembersRequestJson = /* @__PURE__ */ Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]) });
274
- const ContactGroupsRemoveMembers200 = /* @__PURE__ */ Schema.Struct({ removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })) });
274
+ const ContactGroupsRemoveMembers200 = /* @__PURE__ */ Schema.Struct({ removed: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })) });
275
275
  const ContactGroupsRemoveMembers401 = UnauthorizedError;
276
276
  const ContactGroupsRemoveMembers403 = ForbiddenError;
277
277
  const ContactGroupsRemoveMembers404 = ResourceNotFoundError;
@@ -289,7 +289,7 @@ const ContactGroupsPreviewRequestJson = /* @__PURE__ */ Schema.Struct({ criteria
289
289
  })), Schema.Null]))
290
290
  }) });
291
291
  const ContactGroupsPreview200 = /* @__PURE__ */ Schema.Struct({
292
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })),
292
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
293
293
  sample: Schema.Array(Schema.Struct({
294
294
  id: ContactId,
295
295
  name: Schema.String,