samva 0.47.0 → 0.49.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 (90) hide show
  1. package/dist/agent/index.d.ts +1 -0
  2. package/dist/agent/index.js +2 -1
  3. package/dist/agent/runtime.js +26 -5
  4. package/dist/agent/types.d.ts +27 -0
  5. package/dist/client/sdk.gen.d.ts +234 -34
  6. package/dist/client/sdk.gen.js +574 -60
  7. package/dist/client/types.gen.d.ts +1363 -164
  8. package/dist/effect/accounts.d.ts +6 -6
  9. package/dist/effect/agents.d.ts +13 -13
  10. package/dist/effect/analytics.d.ts +6 -6
  11. package/dist/effect/api-keys.d.ts +13 -11
  12. package/dist/effect/approval-requests.d.ts +4 -4
  13. package/dist/effect/attachments.d.ts +4 -4
  14. package/dist/effect/brands.d.ts +6 -6
  15. package/dist/effect/campaigns.d.ts +15 -15
  16. package/dist/effect/contact-groups.d.ts +10 -10
  17. package/dist/effect/contacts.d.ts +25 -25
  18. package/dist/effect/conversations.d.ts +13 -13
  19. package/dist/effect/custom-fields.d.ts +4 -4
  20. package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
  21. package/dist/effect/descriptors/integrations-catalog.js +122 -0
  22. package/dist/effect/descriptors/mailboxes.d.ts +32 -12
  23. package/dist/effect/descriptors/mailboxes.js +32 -12
  24. package/dist/effect/email.d.ts +61 -61
  25. package/dist/effect/events.d.ts +2 -2
  26. package/dist/effect/feedback.d.ts +1 -1
  27. package/dist/effect/generated/accounts.d.ts +1 -3
  28. package/dist/effect/generated/accounts.js +2 -7
  29. package/dist/effect/generated/api-keys.d.ts +30 -15
  30. package/dist/effect/generated/api-keys.js +2 -0
  31. package/dist/effect/generated/attachments.js +1 -1
  32. package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
  33. package/dist/effect/generated/integrations-catalog.js +578 -3
  34. package/dist/effect/generated/journeys.d.ts +105 -107
  35. package/dist/effect/generated/journeys.js +6 -12
  36. package/dist/effect/generated/mailboxes.d.ts +752 -463
  37. package/dist/effect/generated/mailboxes.js +163 -98
  38. package/dist/effect/generated/messages.d.ts +109 -4
  39. package/dist/effect/generated/messages.js +41 -8
  40. package/dist/effect/generated/shared.d.ts +255 -59
  41. package/dist/effect/generated/shared.js +64 -18
  42. package/dist/effect/generated/template-registrations.d.ts +53 -4
  43. package/dist/effect/generated/template-registrations.js +13 -5
  44. package/dist/effect/generated/templates.d.ts +77 -15
  45. package/dist/effect/generated/templates.js +26 -17
  46. package/dist/effect/generated/webhooks.d.ts +19 -19
  47. package/dist/effect/generated/webhooks.js +8 -8
  48. package/dist/effect/generated/whoami.d.ts +4 -4
  49. package/dist/effect/generated-metadata.d.ts +114 -18
  50. package/dist/effect/generated-metadata.js +362 -340
  51. package/dist/effect/integrations-catalog.d.ts +228 -3
  52. package/dist/effect/integrations-catalog.js +29 -1
  53. package/dist/effect/integrations.d.ts +7 -7
  54. package/dist/effect/internal/client.d.ts +7 -3
  55. package/dist/effect/internal/operation.d.ts +10 -6
  56. package/dist/effect/internal/operation.js +3 -3
  57. package/dist/effect/journeys.d.ts +14 -14
  58. package/dist/effect/mailboxes.d.ts +117 -91
  59. package/dist/effect/mailboxes.js +11 -7
  60. package/dist/effect/media.d.ts +5 -5
  61. package/dist/effect/messages.d.ts +9 -9
  62. package/dist/effect/namespaces.d.ts +11 -11
  63. package/dist/effect/newsletter-domains.d.ts +4 -4
  64. package/dist/effect/newsletter-issues.d.ts +11 -11
  65. package/dist/effect/newsletters.d.ts +5 -5
  66. package/dist/effect/operations.d.ts +3 -3
  67. package/dist/effect/organizations.d.ts +12 -12
  68. package/dist/effect/policies.d.ts +3 -3
  69. package/dist/effect/retry.js +1 -1
  70. package/dist/effect/scheduled-messages.d.ts +5 -5
  71. package/dist/effect/subscriptions.d.ts +1 -1
  72. package/dist/effect/template-registrations.d.ts +9 -3
  73. package/dist/effect/template-share-links.d.ts +5 -5
  74. package/dist/effect/templates.d.ts +46 -37
  75. package/dist/effect/topic-forms.d.ts +5 -5
  76. package/dist/effect/topics.d.ts +9 -9
  77. package/dist/effect/webhooks.d.ts +15 -15
  78. package/dist/effect/whatsapp-flows.d.ts +10 -10
  79. package/dist/effect/whatsapp-setup-links.d.ts +4 -4
  80. package/dist/effect/whatsapp.d.ts +12 -12
  81. package/dist/effect/whoami.d.ts +1 -1
  82. package/dist/inline-attachments.d.ts +0 -5
  83. package/dist/mailbox-events.d.ts +1 -5
  84. package/dist/mailbox-events.js +2 -2
  85. package/dist/package.js +1 -1
  86. package/dist/promises/client.d.ts +4 -4
  87. package/dist/promises/client.js +8 -4
  88. package/dist/promises/types.gen.d.ts +1 -1
  89. package/dist/service-map.d.ts +83 -9
  90. package/package.json +2 -2
@@ -40,6 +40,7 @@ export type ApiKey = {
40
40
  readonly start: string | null;
41
41
  readonly end: string | null;
42
42
  readonly description?: string | null;
43
+ readonly source?: string | null;
43
44
  readonly createdAt: string;
44
45
  readonly expiresAt: string | null;
45
46
  readonly lastUsedAt: string | null;
@@ -54,6 +55,7 @@ export declare const ApiKey: Schema.Struct<{
54
55
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
55
56
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
56
57
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
58
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
57
59
  readonly createdAt: Schema.String;
58
60
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
59
61
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -81,7 +83,7 @@ export declare const ApiKey: Schema.Struct<{
81
83
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
82
84
  }>;
83
85
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
84
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
86
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
85
87
  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]>>;
86
88
  }>, Schema.Null]>>;
87
89
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -99,6 +101,7 @@ export type ApiKeyWithSecret = {
99
101
  readonly start: string | null;
100
102
  readonly end: string | null;
101
103
  readonly description?: string | null;
104
+ readonly source?: string | null;
102
105
  readonly createdAt: string;
103
106
  readonly expiresAt: string | null;
104
107
  readonly lastUsedAt: string | null;
@@ -113,6 +116,7 @@ export declare const ApiKeyWithSecret: Schema.Struct<{
113
116
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
114
117
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
115
118
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
119
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
116
120
  readonly createdAt: Schema.String;
117
121
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
118
122
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -140,7 +144,7 @@ export declare const ApiKeyWithSecret: Schema.Struct<{
140
144
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
141
145
  }>;
142
146
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
143
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
147
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
144
148
  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]>>;
145
149
  }>, Schema.Null]>>;
146
150
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -163,6 +167,7 @@ export declare const ApiKeyPage: Schema.Struct<{
163
167
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
164
168
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
165
169
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
170
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
166
171
  readonly createdAt: Schema.String;
167
172
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
168
173
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -190,7 +195,7 @@ export declare const ApiKeyPage: Schema.Struct<{
190
195
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
191
196
  }>;
192
197
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
193
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
198
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
194
199
  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]>>;
195
200
  }>, Schema.Null]>>;
196
201
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -226,6 +231,7 @@ export declare const ApiKeysList200: Schema.Struct<{
226
231
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
227
232
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
228
233
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
234
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
229
235
  readonly createdAt: Schema.String;
230
236
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
231
237
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -253,7 +259,7 @@ export declare const ApiKeysList200: Schema.Struct<{
253
259
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
254
260
  }>;
255
261
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
256
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
262
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
257
263
  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]>>;
258
264
  }>, Schema.Null]>>;
259
265
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -311,7 +317,7 @@ export declare const ApiKeysCreateRequestJson: Schema.Struct<{
311
317
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
312
318
  }>;
313
319
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
314
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
320
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
315
321
  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]>>;
316
322
  }>, Schema.Null]>>;
317
323
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -325,6 +331,7 @@ export declare const ApiKeysCreate201: Schema.Struct<{
325
331
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
326
332
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
327
333
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
334
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
328
335
  readonly createdAt: Schema.String;
329
336
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
330
337
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -352,7 +359,7 @@ export declare const ApiKeysCreate201: Schema.Struct<{
352
359
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
353
360
  }>;
354
361
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
355
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
362
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
356
363
  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]>>;
357
364
  }>, Schema.Null]>>;
358
365
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -397,6 +404,7 @@ export declare const ApiKeysGet200: Schema.Struct<{
397
404
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
398
405
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
399
406
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
407
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
400
408
  readonly createdAt: Schema.String;
401
409
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
402
410
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -424,7 +432,7 @@ export declare const ApiKeysGet200: Schema.Struct<{
424
432
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
425
433
  }>;
426
434
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
427
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
435
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
428
436
  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]>>;
429
437
  }>, Schema.Null]>>;
430
438
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -471,6 +479,7 @@ export declare const ApiKeysUpdate200: Schema.Struct<{
471
479
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
472
480
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
473
481
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
482
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
474
483
  readonly createdAt: Schema.String;
475
484
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
476
485
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -498,7 +507,7 @@ export declare const ApiKeysUpdate200: Schema.Struct<{
498
507
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
499
508
  }>;
500
509
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
501
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
510
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
502
511
  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]>>;
503
512
  }>, Schema.Null]>>;
504
513
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -603,6 +612,7 @@ export declare const ApiKeysRotate200: Schema.Struct<{
603
612
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
604
613
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
605
614
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
615
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
606
616
  readonly createdAt: Schema.String;
607
617
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
608
618
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -630,7 +640,7 @@ export declare const ApiKeysRotate200: Schema.Struct<{
630
640
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
631
641
  }>;
632
642
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
633
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
643
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
634
644
  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]>>;
635
645
  }>, Schema.Null]>>;
636
646
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -728,7 +738,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
728
738
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
729
739
  }>;
730
740
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
731
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
741
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
732
742
  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]>>;
733
743
  }>, Schema.Null]>>;
734
744
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -740,6 +750,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
740
750
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
741
751
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
742
752
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
753
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
743
754
  readonly createdAt: Schema.String;
744
755
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
745
756
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -767,7 +778,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
767
778
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
768
779
  }>;
769
780
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
770
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
781
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
771
782
  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]>>;
772
783
  }>, Schema.Null]>>;
773
784
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -938,6 +949,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
938
949
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
939
950
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
940
951
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
952
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
941
953
  readonly createdAt: Schema.String;
942
954
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
943
955
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -965,7 +977,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
965
977
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
966
978
  }>;
967
979
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
968
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
980
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
969
981
  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]>>;
970
982
  }>, Schema.Null]>>;
971
983
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -1317,6 +1329,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
1317
1329
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
1318
1330
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
1319
1331
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1332
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1320
1333
  readonly createdAt: Schema.String;
1321
1334
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1322
1335
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1344,7 +1357,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
1344
1357
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
1345
1358
  }>;
1346
1359
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1347
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
1360
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
1348
1361
  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]>>;
1349
1362
  }>, Schema.Null]>>;
1350
1363
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -1561,6 +1574,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
1561
1574
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
1562
1575
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
1563
1576
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1577
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1564
1578
  readonly createdAt: Schema.String;
1565
1579
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1566
1580
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1588,7 +1602,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
1588
1602
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
1589
1603
  }>;
1590
1604
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1591
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
1605
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
1592
1606
  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]>>;
1593
1607
  }>, Schema.Null]>>;
1594
1608
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -1710,6 +1724,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
1710
1724
  readonly start: Schema.Union<readonly [Schema.String, Schema.Null]>;
1711
1725
  readonly end: Schema.Union<readonly [Schema.String, Schema.Null]>;
1712
1726
  readonly description: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1727
+ readonly source: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1713
1728
  readonly createdAt: Schema.String;
1714
1729
  readonly expiresAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
1715
1730
  readonly lastUsedAt: Schema.Union<readonly [Schema.String, Schema.Null]>;
@@ -1737,7 +1752,7 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
1737
1752
  readonly analytics: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"write">]>, Schema.Null]>>;
1738
1753
  }>;
1739
1754
  readonly mailboxes: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1740
- readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"quarantine.read">]>]>;
1755
+ readonly permissions: Schema.TupleWithRest<Schema.Tuple<readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>, readonly [Schema.Union<readonly [Schema.Literal<"read">, Schema.Literal<"update">, Schema.Literal<"send">, Schema.Literal<"spam.read">]>]>;
1741
1756
  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]>>;
1742
1757
  }>, Schema.Null]>>;
1743
1758
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
@@ -26,6 +26,7 @@ const ApiKey = /* @__PURE__ */ (() => Schema.Struct({
26
26
  start: Schema.Union([Schema.String, Schema.Null]),
27
27
  end: Schema.Union([Schema.String, Schema.Null]),
28
28
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
29
30
  createdAt: Schema.String,
30
31
  expiresAt: Schema.Union([Schema.String, Schema.Null]),
31
32
  lastUsedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -40,6 +41,7 @@ const ApiKeyWithSecret = /* @__PURE__ */ (() => Schema.Struct({
40
41
  start: Schema.Union([Schema.String, Schema.Null]),
41
42
  end: Schema.Union([Schema.String, Schema.Null]),
42
43
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
44
+ source: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
43
45
  createdAt: Schema.String,
44
46
  expiresAt: Schema.Union([Schema.String, Schema.Null]),
45
47
  lastUsedAt: Schema.Union([Schema.String, Schema.Null]),
@@ -126,7 +126,7 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
126
126
  AttachmentsDownloadUrl500,
127
127
  AttachmentsDownloadUrl504.pipe(HttpApiSchema.status(504))
128
128
  ]
129
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "attachments.downloadUrl").annotate(OpenApi.Summary, "Get an attachment download URL").annotate(OpenApi.Description, "Generates a presigned, time-limited download URL for the attachment; expiry is configurable via the expiresIn query parameter.")).annotate(OpenApi.Description, "Email attachment metadata and secure download URLs") {};
129
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "attachments.downloadUrl").annotate(OpenApi.Summary, "Get an attachment download URL").annotate(OpenApi.Description, "Generates a presigned, time-limited download URL for the attachment. Set `expiresIn` to configure expiry. Returns 404 (`ResourceNotFoundError`) for an inbound email attachment without a passing malware scan.")).annotate(OpenApi.Description, "Email attachment metadata and secure download URLs") {};
130
130
  export { AttachmentList, AttachmentsDownloadUrl200, AttachmentsDownloadUrl400, AttachmentsDownloadUrl401, AttachmentsDownloadUrl403, AttachmentsDownloadUrl404, AttachmentsDownloadUrl422, AttachmentsDownloadUrl500, AttachmentsDownloadUrl504, AttachmentsDownloadUrlPathParams, AttachmentsDownloadUrlQuery, AttachmentsGetById200, AttachmentsGetById400, AttachmentsGetById401, AttachmentsGetById403, AttachmentsGetById404, AttachmentsGetById422, AttachmentsGetById500, AttachmentsGetById504, AttachmentsGetByIdPathParams, AttachmentsGroup, AttachmentsList200, AttachmentsList400, AttachmentsList401, AttachmentsList403, AttachmentsList404, AttachmentsList422, AttachmentsList500, AttachmentsList504, AttachmentsListQuery, AttachmentsRemove200, AttachmentsRemove400, AttachmentsRemove401, AttachmentsRemove403, AttachmentsRemove404, AttachmentsRemove422, AttachmentsRemove500, AttachmentsRemove504, AttachmentsRemovePathParams };
131
131
 
132
132
  //# sourceMappingURL=attachments.js.map