samva 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/client/sdk.gen.d.ts +72 -16
  2. package/dist/client/sdk.gen.js +216 -36
  3. package/dist/client/types.gen.d.ts +411 -65
  4. package/dist/effect/api-keys.d.ts +7 -0
  5. package/dist/effect/campaigns.d.ts +66 -3
  6. package/dist/effect/contacts.d.ts +24 -4
  7. package/dist/effect/email.d.ts +22 -6
  8. package/dist/effect/errors.d.ts +1 -1
  9. package/dist/effect/errors.js +2 -2
  10. package/dist/effect/generated/api-keys.d.ts +15 -0
  11. package/dist/effect/generated/api-keys.js +2 -0
  12. package/dist/effect/generated/campaigns.d.ts +136 -4
  13. package/dist/effect/generated/campaigns.js +22 -1
  14. package/dist/effect/generated/contacts.d.ts +131 -1
  15. package/dist/effect/generated/contacts.js +17 -2
  16. package/dist/effect/generated/email.d.ts +162 -1
  17. package/dist/effect/generated/email.js +31 -11
  18. package/dist/effect/generated/journeys.d.ts +31 -61
  19. package/dist/effect/generated/journeys.js +9 -5
  20. package/dist/effect/generated/mailboxes.d.ts +274 -78
  21. package/dist/effect/generated/mailboxes.js +28 -20
  22. package/dist/effect/generated/messages.d.ts +4 -1
  23. package/dist/effect/generated/messages.js +2 -1
  24. package/dist/effect/generated/namespaces.d.ts +432 -2
  25. package/dist/effect/generated/namespaces.js +91 -4
  26. package/dist/effect/generated/shared.d.ts +38 -29
  27. package/dist/effect/generated/shared.js +28 -23
  28. package/dist/effect/generated/templates.d.ts +80 -1
  29. package/dist/effect/generated/templates.js +18 -6
  30. package/dist/effect/generated/webhooks.d.ts +120 -0
  31. package/dist/effect/generated/webhooks.js +27 -3
  32. package/dist/effect/generated-metadata.d.ts +20 -4
  33. package/dist/effect/generated-metadata.js +4 -4
  34. package/dist/effect/index.js +2 -2
  35. package/dist/effect/journeys.d.ts +12 -4
  36. package/dist/effect/mailboxes.d.ts +11 -11
  37. package/dist/effect/messages.d.ts +3 -0
  38. package/dist/effect/namespaces.d.ts +29 -0
  39. package/dist/effect/namespaces.js +7 -1
  40. package/dist/effect/templates.d.ts +28 -1
  41. package/dist/effect/webhooks.d.ts +7 -0
  42. package/dist/effect/webhooks.js +3 -1
  43. package/dist/index.js +2 -2
  44. package/dist/package.js +1 -1
  45. package/dist/promises/errors.gen.d.ts +2 -12
  46. package/dist/promises/errors.gen.js +1 -26
  47. package/dist/promises/index.js +2 -2
  48. package/dist/promises/types.gen.d.ts +1 -1
  49. package/dist/service-map.d.ts +20 -0
  50. package/dist/service-map.js +20 -0
  51. package/package.json +5 -3
@@ -219,6 +219,26 @@ export type ExtensionPage = {
219
219
  items: Array<Extension>;
220
220
  nextCursor: string | null;
221
221
  };
222
+ export type NamespaceUsage = {
223
+ namespaceId: NamespaceId;
224
+ periodStart: string;
225
+ periodEnd: string;
226
+ emailCount: number;
227
+ totalMessages: number;
228
+ };
229
+ export type NamespaceResource = {
230
+ type: NamespaceResourceType;
231
+ id: string;
232
+ namespaceId: NamespaceId | null;
233
+ };
234
+ export type NamespaceResourceType = "domain" | "sender" | "contact" | "template";
235
+ export type AssignNamespaceResourcePayload = {
236
+ type: NamespaceResourceType;
237
+ /**
238
+ * The resource's id, such as `dom_...` for a domain.
239
+ */
240
+ resourceId: string;
241
+ };
222
242
  export type Namespace = {
223
243
  id: NamespaceId;
224
244
  name: string;
@@ -438,6 +458,11 @@ export type MailboxSendSnapshot = {
438
458
  inReplyToMessageId: MessageId | null;
439
459
  };
440
460
  export type ConversationId = string;
461
+ export type JsonObject = {
462
+ [key: string]: JsonValue;
463
+ };
464
+ export type TemplateId = string;
465
+ export type MailboxEndpointId = string;
441
466
  export type EmailAttachment = {
442
467
  filename: string;
443
468
  content?: string | null | undefined;
@@ -485,10 +510,10 @@ export type MailboxSendRefusedError = {
485
510
  message: string;
486
511
  receipt: MailboxSendReceipt;
487
512
  };
488
- export type MailboxChannelUnsupportedError = {
489
- _tag: "MailboxChannelUnsupportedError";
513
+ export type FlagDisabledError = {
514
+ _tag: "FlagDisabledError";
515
+ flag: string;
490
516
  message: string;
491
- channel: string;
492
517
  };
493
518
  export type MailboxPendingAction = MailboxSendAction | MailboxNonSendAction;
494
519
  export type MailboxPendingSendReceipt = {
@@ -533,7 +558,6 @@ export type MailboxDraft = {
533
558
  attachments: Array<EmailAttachment>;
534
559
  };
535
560
  export type MailboxDraftState = "saved" | "locked" | "sent";
536
- export type MailboxEndpointId = string;
537
561
  export type UpdateMailboxDraftPayload = {
538
562
  to?: Array<string> | null | undefined;
539
563
  cc?: Array<string> | null | null | undefined;
@@ -1010,7 +1034,7 @@ export type ApiKeyAccess = {
1010
1034
  resources: ApiKeyResourceAccess;
1011
1035
  mailboxes?: ApiKeyMailboxAccess | null | undefined;
1012
1036
  /**
1013
- * Confines the key to one namespace: it reaches only that namespace's mailboxes. A key scoped to a namespace or to listed mailboxes holds mailbox access only.
1037
+ * Confines the key to one namespace: it reaches only that namespace's domains, senders, numbers, mailboxes, contacts, templates, and messages, never organization-level ones, and only endpoints that confine to a namespace (others answer 403). It holds grants only on `mailboxes`, `messages`, `email`, `domains`, `contacts`, and `templates`. A key scoped to listed mailboxes holds mailbox access only.
1014
1038
  */
1015
1039
  namespaceId?: NamespaceId | null | undefined;
1016
1040
  };
@@ -1084,6 +1108,7 @@ export type ApiKeyWithSecret = {
1084
1108
  name: string;
1085
1109
  key: string;
1086
1110
  start: string | null;
1111
+ end: string | null;
1087
1112
  description?: string | null | undefined;
1088
1113
  createdAt: string;
1089
1114
  expiresAt: string | null;
@@ -1102,6 +1127,7 @@ export type ApiKey = {
1102
1127
  name: string;
1103
1128
  key?: string | null | undefined;
1104
1129
  start: string | null;
1130
+ end: string | null;
1105
1131
  description?: string | null | undefined;
1106
1132
  createdAt: string;
1107
1133
  expiresAt: string | null;
@@ -1183,6 +1209,11 @@ export type Organization = {
1183
1209
  */
1184
1210
  export type PhoneRegion = string;
1185
1211
  export type IanaTimezone = string;
1212
+ export type WebhookSigningSecret = {
1213
+ secret: string;
1214
+ createdAt: string;
1215
+ previousExpiresAt: string | null;
1216
+ };
1186
1217
  export type WebhookAttemptId = string;
1187
1218
  export type WebhookDeliveryId = string;
1188
1219
  export type WebhookStatsResponse = {
@@ -1370,7 +1401,6 @@ export type BrandList = {
1370
1401
  items: Array<Brand>;
1371
1402
  };
1372
1403
  export type TemplateProjectId = string;
1373
- export type TemplateId = string;
1374
1404
  export type TemplateInputContractId = string;
1375
1405
  export type TemplateInputContractPage = {
1376
1406
  items: Array<{
@@ -1413,6 +1443,7 @@ export type BrandRenderedFooter = {
1413
1443
  export type BrandFooterBlock = {
1414
1444
  html: string;
1415
1445
  text: string;
1446
+ headCss?: string | null | undefined;
1416
1447
  };
1417
1448
  export type Template = {
1418
1449
  id: TemplateId;
@@ -1420,6 +1451,14 @@ export type Template = {
1420
1451
  name: string;
1421
1452
  channel: "email";
1422
1453
  projectId: TemplateProjectId;
1454
+ /**
1455
+ * The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates and shared ones.
1456
+ */
1457
+ namespaceId: NamespaceId | null;
1458
+ /**
1459
+ * Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared.
1460
+ */
1461
+ shared: boolean;
1423
1462
  entryPath: string;
1424
1463
  status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
1425
1464
  isActive: boolean;
@@ -1480,6 +1519,10 @@ export type UpdateTemplatePayload = {
1480
1519
  fromDefault?: TemplateFromDefault | null | null | undefined;
1481
1520
  replyToDefault?: Array<string> | null | null | undefined;
1482
1521
  isActive?: boolean | null | undefined;
1522
+ /**
1523
+ * Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared.
1524
+ */
1525
+ shared?: boolean | null | undefined;
1483
1526
  };
1484
1527
  };
1485
1528
  export type AddTemplateEntryPayload = {
@@ -1498,6 +1541,14 @@ export type CreateTemplatePayload = {
1498
1541
  description?: string | null | null | undefined;
1499
1542
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null | undefined;
1500
1543
  isActive?: boolean | null | undefined;
1544
+ /**
1545
+ * The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace.
1546
+ */
1547
+ namespaceId?: NamespaceId | null | undefined;
1548
+ /**
1549
+ * Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key.
1550
+ */
1551
+ shared?: boolean | null | undefined;
1501
1552
  idempotencyKey: string;
1502
1553
  };
1503
1554
  export type TemplateFamily = {
@@ -1534,6 +1585,14 @@ export type TemplateSummary = {
1534
1585
  name: string;
1535
1586
  channel: "email";
1536
1587
  projectId: TemplateProjectId;
1588
+ /**
1589
+ * The namespace the template's project belongs to; every entry in a project shares it. Null at organization level. A namespace-scoped key reaches only its own namespace's templates and shared ones.
1590
+ */
1591
+ namespaceId: NamespaceId | null;
1592
+ /**
1593
+ * Whether the template's project is shared with every namespace. Every entry in a project shares it. A namespace-scoped key reads and sends a shared template in its own namespace but cannot change it. Only an organization-level project is shared.
1594
+ */
1595
+ shared: boolean;
1537
1596
  entryPath: string;
1538
1597
  status: "draft" | "pending" | "approved" | "published" | "rejected" | "archived";
1539
1598
  isActive: boolean;
@@ -1638,9 +1697,6 @@ export type ContactConsent = {
1638
1697
  capturedAt: string;
1639
1698
  proof: JsonObject | null;
1640
1699
  };
1641
- export type JsonObject = {
1642
- [key: string]: JsonValue;
1643
- };
1644
1700
  export type ContactIdentityId = string;
1645
1701
  export type ContactGroupPage = {
1646
1702
  items: Array<{
@@ -1671,11 +1727,6 @@ export type DeliveryUnavailableError = {
1671
1727
  message: string;
1672
1728
  retryAfterSeconds: number;
1673
1729
  };
1674
- export type FlagDisabledError = {
1675
- _tag: "FlagDisabledError";
1676
- flag: string;
1677
- message: string;
1678
- };
1679
1730
  export type CampaignFooterRequiredError = {
1680
1731
  _tag: "CampaignFooterRequiredError";
1681
1732
  message: string;
@@ -1723,6 +1774,8 @@ export type JourneyRunDetail = {
1723
1774
  exitReason: JourneyRunExitReason | null;
1724
1775
  failureReason: string | null;
1725
1776
  currentNodeId: JourneyNodeId | null;
1777
+ holdReason: string | null;
1778
+ holdUntil: string | null;
1726
1779
  trigger: JourneyRunTrigger;
1727
1780
  enteredAt: string;
1728
1781
  endedAt: string | null;
@@ -1762,6 +1815,8 @@ export type JourneyRun = {
1762
1815
  exitReason: JourneyRunExitReason | null;
1763
1816
  failureReason: string | null;
1764
1817
  currentNodeId: JourneyNodeId | null;
1818
+ holdReason: string | null;
1819
+ holdUntil: string | null;
1765
1820
  trigger: JourneyRunTrigger;
1766
1821
  enteredAt: string;
1767
1822
  endedAt: string | null;
@@ -2087,6 +2142,7 @@ export type ContactIdentityInput = {
2087
2142
  };
2088
2143
  export type Contact = {
2089
2144
  id: ContactId;
2145
+ namespaceId: NamespaceId | null;
2090
2146
  name: string;
2091
2147
  displayName: string | null;
2092
2148
  avatar: string | null;
@@ -2137,6 +2193,7 @@ export type ContactPage = {
2137
2193
  };
2138
2194
  export type ContactSummary = {
2139
2195
  id: ContactId;
2196
+ namespaceId: NamespaceId | null;
2140
2197
  name: string;
2141
2198
  displayName: string | null;
2142
2199
  status: "active" | "paused" | "blocked" | "archived";
@@ -2525,6 +2582,10 @@ export type EmailSenderPage = {
2525
2582
  email: string;
2526
2583
  name: string | null;
2527
2584
  domainId: EmailDomainId | null;
2585
+ /**
2586
+ * The namespace the sender belongs to, or null at organization level. A sender on a domain takes the domain's namespace.
2587
+ */
2588
+ namespaceId: NamespaceId | null;
2528
2589
  verificationStatus: "pending" | "verified" | "failed";
2529
2590
  verifiedAt: string | null;
2530
2591
  verificationToken: string | null;
@@ -2646,6 +2707,10 @@ export type EmailDomainDetailed = {
2646
2707
  priority?: number | null | undefined;
2647
2708
  }>;
2648
2709
  verifiedAt: string | null;
2710
+ /**
2711
+ * The namespace the domain belongs to, or null at organization level. Only that namespace's keys and organization-wide callers reach it.
2712
+ */
2713
+ namespaceId: NamespaceId | null;
2649
2714
  isDefault: boolean;
2650
2715
  deliverability: DeliverabilityFacts;
2651
2716
  createdAt: string;
@@ -2779,6 +2844,10 @@ export type EmailDomainPage = {
2779
2844
  phase: "dns-setup" | "provisioning" | "verifying" | "ready" | "degraded" | "failed";
2780
2845
  dkimSelector?: string | null | undefined;
2781
2846
  dkimPublicKey?: string | null | undefined;
2847
+ /**
2848
+ * The namespace the domain belongs to, or null at organization level. Only that namespace's keys and organization-wide callers reach it.
2849
+ */
2850
+ namespaceId: NamespaceId | null;
2782
2851
  isDefault: boolean;
2783
2852
  deliverability: DeliverabilityFacts;
2784
2853
  series: SendsSeries;
@@ -2842,7 +2911,7 @@ export type CampaignRecipientPage = {
2842
2911
  status: "pending" | "dispatching" | "dispatched" | "failed" | "skipped";
2843
2912
  messageId: string | null;
2844
2913
  failureReason: string | null;
2845
- skippedReason: "unsubscribed" | "blocked" | "suppressed" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | null;
2914
+ skippedReason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed" | null;
2846
2915
  createdAt: string;
2847
2916
  updatedAt: string;
2848
2917
  }>;
@@ -2870,10 +2939,14 @@ export type CampaignRun = {
2870
2939
  dispatchedCount: number;
2871
2940
  failedCount: number;
2872
2941
  skippedCount: number;
2942
+ pendingCount: number;
2943
+ skippedReasons: Array<CampaignRunSkippedReason>;
2873
2944
  estimatedCompletionAt: string | null;
2874
2945
  failureReason: string | null;
2875
2946
  holdReason: string | null;
2876
2947
  holdDomainId: EmailDomainId | null;
2948
+ holdUntil: string | null;
2949
+ capacityWarning: string | null;
2877
2950
  lastContactId: string | null;
2878
2951
  createdBy: string | null;
2879
2952
  actorEmail: string;
@@ -2881,6 +2954,10 @@ export type CampaignRun = {
2881
2954
  createdAt: string;
2882
2955
  updatedAt: string;
2883
2956
  };
2957
+ export type CampaignRunSkippedReason = {
2958
+ reason: "unsubscribed" | "blocked" | "suppressed" | "opted_out" | "unreachable" | "no_identity" | "inactive" | "run_cancelled" | "run_failed";
2959
+ count: number;
2960
+ };
2884
2961
  export type CampaignPolicy = {
2885
2962
  unsubscribeGroupId?: UnsubscribeId | null | undefined;
2886
2963
  pageSize?: number | null | undefined;
@@ -2969,6 +3046,7 @@ export type CampaignLatestRun = {
2969
3046
  dispatchedCount: number;
2970
3047
  failedCount: number;
2971
3048
  skippedCount: number;
3049
+ pendingCount: number;
2972
3050
  estimatedCompletionAt: string | null;
2973
3051
  };
2974
3052
  export type CampaignDefinitionSummary = {
@@ -3269,6 +3347,10 @@ export type MessagesListData = {
3269
3347
  conversationId?: ConversationId | null | undefined;
3270
3348
  contactId?: ContactId | null | undefined;
3271
3349
  from?: string | null | undefined;
3350
+ /**
3351
+ * Only this namespace's messages. A key scoped to a namespace always lists its own.
3352
+ */
3353
+ namespaceId?: NamespaceId | null | undefined;
3272
3354
  after?: string | null | undefined;
3273
3355
  before?: string | null | undefined;
3274
3356
  };
@@ -5050,6 +5132,7 @@ export type EmailListDomainsData = {
5050
5132
  limit?: string | null | undefined;
5051
5133
  cursor?: Cursor | null | undefined;
5052
5134
  sendable?: "true" | null | undefined;
5135
+ namespaceId?: NamespaceId | null | undefined;
5053
5136
  };
5054
5137
  url: "/v1/email/domains";
5055
5138
  };
@@ -5090,6 +5173,7 @@ export type EmailAddDomainData = {
5090
5173
  connectionId: string;
5091
5174
  zone: string;
5092
5175
  } | null | undefined;
5176
+ namespaceId?: NamespaceId | null | undefined;
5093
5177
  };
5094
5178
  path?: never;
5095
5179
  query?: never;
@@ -5108,6 +5192,10 @@ export type EmailAddDomainErrors = {
5108
5192
  * ForbiddenError
5109
5193
  */
5110
5194
  403: ForbiddenError;
5195
+ /**
5196
+ * ResourceNotFoundError
5197
+ */
5198
+ 404: ResourceNotFoundError;
5111
5199
  /**
5112
5200
  * ConflictError
5113
5201
  */
@@ -5397,6 +5485,10 @@ export type EmailDetectRegistrarErrors = {
5397
5485
  * ForbiddenError
5398
5486
  */
5399
5487
  403: ForbiddenError;
5488
+ /**
5489
+ * ResourceNotFoundError
5490
+ */
5491
+ 404: ResourceNotFoundError;
5400
5492
  /**
5401
5493
  * ValidationError
5402
5494
  */
@@ -5777,6 +5869,10 @@ export type EmailDisableCustomTrackingErrors = {
5777
5869
  * ForbiddenError
5778
5870
  */
5779
5871
  403: ForbiddenError;
5872
+ /**
5873
+ * ResourceNotFoundError
5874
+ */
5875
+ 404: ResourceNotFoundError;
5780
5876
  /**
5781
5877
  * ConflictError
5782
5878
  */
@@ -5823,6 +5919,10 @@ export type EmailGetCustomTrackingErrors = {
5823
5919
  * ForbiddenError
5824
5920
  */
5825
5921
  403: ForbiddenError;
5922
+ /**
5923
+ * ResourceNotFoundError
5924
+ */
5925
+ 404: ResourceNotFoundError;
5826
5926
  /**
5827
5927
  * ValidationError
5828
5928
  */
@@ -5863,6 +5963,10 @@ export type EmailEnableCustomTrackingErrors = {
5863
5963
  * ForbiddenError
5864
5964
  */
5865
5965
  403: ForbiddenError;
5966
+ /**
5967
+ * ResourceNotFoundError
5968
+ */
5969
+ 404: ResourceNotFoundError;
5866
5970
  /**
5867
5971
  * ConflictError
5868
5972
  */
@@ -6055,6 +6159,10 @@ export type EmailCompleteCustomTrackingDomainConnectErrors = {
6055
6159
  * ForbiddenError
6056
6160
  */
6057
6161
  403: ForbiddenError;
6162
+ /**
6163
+ * ResourceNotFoundError
6164
+ */
6165
+ 404: ResourceNotFoundError;
6058
6166
  /**
6059
6167
  * ValidationError
6060
6168
  */
@@ -6085,6 +6193,7 @@ export type EmailListSendersData = {
6085
6193
  verificationStatus?: "pending" | "verified" | "failed" | null | undefined;
6086
6194
  isActive?: string | null | undefined;
6087
6195
  isDefault?: string | null | undefined;
6196
+ namespaceId?: NamespaceId | null | undefined;
6088
6197
  };
6089
6198
  url: "/v1/email/senders";
6090
6199
  };
@@ -6124,6 +6233,7 @@ export type EmailAddSenderData = {
6124
6233
  domainId?: EmailDomainId | null | undefined;
6125
6234
  name?: string | null | null | undefined;
6126
6235
  replyToEmails?: Array<string> | null | null | undefined;
6236
+ namespaceId?: NamespaceId | null | undefined;
6127
6237
  };
6128
6238
  headers: {
6129
6239
  "idempotency-key": string;
@@ -6319,6 +6429,10 @@ export type EmailGetSenderResponses = {
6319
6429
  email: string;
6320
6430
  name: string | null;
6321
6431
  domainId: EmailDomainId | null;
6432
+ /**
6433
+ * The namespace the sender belongs to, or null at organization level. A sender on a domain takes the domain's namespace.
6434
+ */
6435
+ namespaceId: NamespaceId | null;
6322
6436
  verificationStatus: "pending" | "verified" | "failed";
6323
6437
  verifiedAt: string | null;
6324
6438
  verificationToken: string | null;
@@ -8674,6 +8788,7 @@ export type ContactsListData = {
8674
8788
  query?: {
8675
8789
  limit?: string | null | undefined;
8676
8790
  cursor?: Cursor | null | undefined;
8791
+ namespaceId?: NamespaceId | null | undefined;
8677
8792
  search?: string | null | undefined;
8678
8793
  status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
8679
8794
  fields?: string | null | undefined;
@@ -8716,6 +8831,7 @@ export type ContactsListResponses = {
8716
8831
  export type ContactsListResponse = ContactsListResponses[keyof ContactsListResponses];
8717
8832
  export type ContactsCreateData = {
8718
8833
  body: {
8834
+ namespaceId?: NamespaceId | null | undefined;
8719
8835
  name: string;
8720
8836
  displayName?: string | null | null | undefined;
8721
8837
  avatar?: string | null | null | undefined;
@@ -8745,6 +8861,10 @@ export type ContactsCreateErrors = {
8745
8861
  * ForbiddenError
8746
8862
  */
8747
8863
  403: ForbiddenError;
8864
+ /**
8865
+ * ResourceNotFoundError
8866
+ */
8867
+ 404: ResourceNotFoundError;
8748
8868
  /**
8749
8869
  * ConflictError
8750
8870
  */
@@ -8776,6 +8896,7 @@ export type ContactsCreateResponses = {
8776
8896
  export type ContactsCreateResponse = ContactsCreateResponses[keyof ContactsCreateResponses];
8777
8897
  export type ContactsFindData = {
8778
8898
  body: {
8899
+ namespaceId?: NamespaceId | null | undefined;
8779
8900
  email?: string | null | undefined;
8780
8901
  phone?: string | null | undefined;
8781
8902
  externalId?: string | null | undefined;
@@ -8793,6 +8914,10 @@ export type ContactsFindErrors = {
8793
8914
  * ForbiddenError
8794
8915
  */
8795
8916
  403: ForbiddenError;
8917
+ /**
8918
+ * ResourceNotFoundError
8919
+ */
8920
+ 404: ResourceNotFoundError;
8796
8921
  /**
8797
8922
  * ConflictError
8798
8923
  */
@@ -8820,6 +8945,7 @@ export type ContactsFindResponses = {
8820
8945
  export type ContactsFindResponse = ContactsFindResponses[keyof ContactsFindResponses];
8821
8946
  export type ContactsFindOrCreateData = {
8822
8947
  body: {
8948
+ namespaceId?: NamespaceId | null | undefined;
8823
8949
  lookup: ContactLookup;
8824
8950
  create?: {
8825
8951
  name?: string | null | undefined;
@@ -8847,6 +8973,10 @@ export type ContactsFindOrCreateErrors = {
8847
8973
  * ForbiddenError
8848
8974
  */
8849
8975
  403: ForbiddenError;
8976
+ /**
8977
+ * ResourceNotFoundError
8978
+ */
8979
+ 404: ResourceNotFoundError;
8850
8980
  /**
8851
8981
  * ConflictError
8852
8982
  */
@@ -9315,6 +9445,7 @@ export type ContactsGetEngagementResponses = {
9315
9445
  export type ContactsGetEngagementResponse = ContactsGetEngagementResponses[keyof ContactsGetEngagementResponses];
9316
9446
  export type ContactsBulkImportData = {
9317
9447
  body: {
9448
+ namespaceId?: NamespaceId | null | undefined;
9318
9449
  contacts: Array<{
9319
9450
  name: string;
9320
9451
  displayName?: string | null | null | undefined;
@@ -9347,6 +9478,10 @@ export type ContactsBulkImportErrors = {
9347
9478
  * ForbiddenError
9348
9479
  */
9349
9480
  403: ForbiddenError;
9481
+ /**
9482
+ * ResourceNotFoundError
9483
+ */
9484
+ 404: ResourceNotFoundError;
9350
9485
  /**
9351
9486
  * ValidationError
9352
9487
  */
@@ -9859,9 +9994,9 @@ export type JourneysCreateErrors = {
9859
9994
  */
9860
9995
  402: PaymentRequiredError;
9861
9996
  /**
9862
- * ForbiddenError
9997
+ * FlagDisabledError | ForbiddenError
9863
9998
  */
9864
- 403: ForbiddenError;
9999
+ 403: FlagDisabledError | ForbiddenError;
9865
10000
  /**
9866
10001
  * ResourceNotFoundError
9867
10002
  */
@@ -10048,9 +10183,9 @@ export type JourneysReplaceDraftErrors = {
10048
10183
  */
10049
10184
  402: PaymentRequiredError;
10050
10185
  /**
10051
- * ForbiddenError
10186
+ * FlagDisabledError | ForbiddenError
10052
10187
  */
10053
- 403: ForbiddenError;
10188
+ 403: FlagDisabledError | ForbiddenError;
10054
10189
  /**
10055
10190
  * ResourceNotFoundError
10056
10191
  */
@@ -10104,9 +10239,9 @@ export type JourneysPublishErrors = {
10104
10239
  */
10105
10240
  402: PaymentRequiredError;
10106
10241
  /**
10107
- * ForbiddenError
10242
+ * FlagDisabledError | ForbiddenError
10108
10243
  */
10109
- 403: ForbiddenError;
10244
+ 403: FlagDisabledError | ForbiddenError;
10110
10245
  /**
10111
10246
  * ResourceNotFoundError
10112
10247
  */
@@ -10204,9 +10339,9 @@ export type JourneysResumeErrors = {
10204
10339
  */
10205
10340
  402: PaymentRequiredError;
10206
10341
  /**
10207
- * ForbiddenError
10342
+ * FlagDisabledError | ForbiddenError
10208
10343
  */
10209
- 403: ForbiddenError;
10344
+ 403: FlagDisabledError | ForbiddenError;
10210
10345
  /**
10211
10346
  * ResourceNotFoundError
10212
10347
  */
@@ -12016,6 +12151,14 @@ export type TemplatesListData = {
12016
12151
  status?: "draft" | "pending" | "approved" | "published" | "rejected" | "archived" | null | undefined;
12017
12152
  search?: string | null | undefined;
12018
12153
  projectId?: TemplateProjectId | null | undefined;
12154
+ /**
12155
+ * Only the templates this namespace uses: its own and those shared with every namespace (add `shared=false` for its own only). A namespace-scoped key lists its own namespace's and shared templates.
12156
+ */
12157
+ namespaceId?: NamespaceId | null | undefined;
12158
+ /**
12159
+ * Only templates whose project is shared with every namespace (true), or only unshared ones (false).
12160
+ */
12161
+ shared?: "true" | "false" | null | undefined;
12019
12162
  };
12020
12163
  url: "/v1/templates";
12021
12164
  };
@@ -12059,6 +12202,14 @@ export type TemplatesCreateData = {
12059
12202
  description?: string | null | null | undefined;
12060
12203
  category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | null | undefined;
12061
12204
  isActive?: boolean | null | undefined;
12205
+ /**
12206
+ * The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace.
12207
+ */
12208
+ namespaceId?: NamespaceId | null | undefined;
12209
+ /**
12210
+ * Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key.
12211
+ */
12212
+ shared?: boolean | null | undefined;
12062
12213
  idempotencyKey: string;
12063
12214
  };
12064
12215
  path?: never;
@@ -12074,6 +12225,10 @@ export type TemplatesCreateErrors = {
12074
12225
  * ForbiddenError
12075
12226
  */
12076
12227
  403: ForbiddenError;
12228
+ /**
12229
+ * ResourceNotFoundError
12230
+ */
12231
+ 404: ResourceNotFoundError;
12077
12232
  /**
12078
12233
  * ConflictError
12079
12234
  */
@@ -12541,6 +12696,10 @@ export type TemplatesUpdateData = {
12541
12696
  fromDefault?: TemplateFromDefault | null | null | undefined;
12542
12697
  replyToDefault?: Array<string> | null | null | undefined;
12543
12698
  isActive?: boolean | null | undefined;
12699
+ /**
12700
+ * Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared.
12701
+ */
12702
+ shared?: boolean | null | undefined;
12544
12703
  };
12545
12704
  };
12546
12705
  path: {
@@ -15355,6 +15514,48 @@ export type WebhooksRegenerateSecretResponses = {
15355
15514
  };
15356
15515
  };
15357
15516
  export type WebhooksRegenerateSecretResponse = WebhooksRegenerateSecretResponses[keyof WebhooksRegenerateSecretResponses];
15517
+ export type WebhooksGetSecretData = {
15518
+ body?: never;
15519
+ path: {
15520
+ id: WebhookEndpointId;
15521
+ };
15522
+ query?: never;
15523
+ url: "/v1/webhooks/{id}/secret";
15524
+ };
15525
+ export type WebhooksGetSecretErrors = {
15526
+ /**
15527
+ * UnauthorizedError
15528
+ */
15529
+ 401: UnauthorizedError;
15530
+ /**
15531
+ * ForbiddenError
15532
+ */
15533
+ 403: ForbiddenError;
15534
+ /**
15535
+ * ResourceNotFoundError
15536
+ */
15537
+ 404: ResourceNotFoundError;
15538
+ /**
15539
+ * ValidationError
15540
+ */
15541
+ 422: ValidationError;
15542
+ /**
15543
+ * InternalError
15544
+ */
15545
+ 500: InternalError;
15546
+ /**
15547
+ * GatewayTimeoutError
15548
+ */
15549
+ 504: GatewayTimeoutError;
15550
+ };
15551
+ export type WebhooksGetSecretError = WebhooksGetSecretErrors[keyof WebhooksGetSecretErrors];
15552
+ export type WebhooksGetSecretResponses = {
15553
+ /**
15554
+ * WebhookSigningSecret
15555
+ */
15556
+ 200: WebhookSigningSecret;
15557
+ };
15558
+ export type WebhooksGetSecretResponse = WebhooksGetSecretResponses[keyof WebhooksGetSecretResponses];
15358
15559
  export type OrganizationsCreateData = {
15359
15560
  body: {
15360
15561
  name: string;
@@ -16233,9 +16434,9 @@ export type MailboxesCreateErrors = {
16233
16434
  */
16234
16435
  402: PaymentRequiredError;
16235
16436
  /**
16236
- * ForbiddenError
16437
+ * FlagDisabledError | ForbiddenError
16237
16438
  */
16238
- 403: ForbiddenError;
16439
+ 403: FlagDisabledError | ForbiddenError;
16239
16440
  /**
16240
16441
  * ResourceNotFoundError
16241
16442
  */
@@ -16245,9 +16446,9 @@ export type MailboxesCreateErrors = {
16245
16446
  */
16246
16447
  409: ConflictError;
16247
16448
  /**
16248
- * ValidationError | MailboxChannelUnsupportedError
16449
+ * ValidationError
16249
16450
  */
16250
- 422: ValidationError | MailboxChannelUnsupportedError;
16451
+ 422: ValidationError;
16251
16452
  /**
16252
16453
  * InternalError
16253
16454
  */
@@ -16420,9 +16621,9 @@ export type MailboxesCreateEndpointErrors = {
16420
16621
  */
16421
16622
  401: UnauthorizedError;
16422
16623
  /**
16423
- * ForbiddenError
16624
+ * FlagDisabledError | ForbiddenError
16424
16625
  */
16425
- 403: ForbiddenError;
16626
+ 403: FlagDisabledError | ForbiddenError;
16426
16627
  /**
16427
16628
  * ResourceNotFoundError
16428
16629
  */
@@ -16432,9 +16633,9 @@ export type MailboxesCreateEndpointErrors = {
16432
16633
  */
16433
16634
  409: ConflictError;
16434
16635
  /**
16435
- * ValidationError | MailboxChannelUnsupportedError
16636
+ * ValidationError
16436
16637
  */
16437
- 422: ValidationError | MailboxChannelUnsupportedError;
16638
+ 422: ValidationError;
16438
16639
  /**
16439
16640
  * InternalError
16440
16641
  */
@@ -17855,9 +18056,9 @@ export type MailboxesSendMessageErrors = {
17855
18056
  */
17856
18057
  402: PaymentRequiredError;
17857
18058
  /**
17858
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18059
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
17859
18060
  */
17860
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18061
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
17861
18062
  /**
17862
18063
  * ResourceNotFoundError
17863
18064
  */
@@ -17867,9 +18068,9 @@ export type MailboxesSendMessageErrors = {
17867
18068
  */
17868
18069
  409: MailboxSendConflictError | ConflictError;
17869
18070
  /**
17870
- * MailboxChannelUnsupportedError | ValidationError
18071
+ * ValidationError
17871
18072
  */
17872
- 422: MailboxChannelUnsupportedError | ValidationError;
18073
+ 422: ValidationError;
17873
18074
  /**
17874
18075
  * RateLimitedError
17875
18076
  */
@@ -18110,9 +18311,9 @@ export type MailboxesReplyErrors = {
18110
18311
  */
18111
18312
  402: PaymentRequiredError;
18112
18313
  /**
18113
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18314
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18114
18315
  */
18115
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18316
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18116
18317
  /**
18117
18318
  * ResourceNotFoundError
18118
18319
  */
@@ -18122,9 +18323,9 @@ export type MailboxesReplyErrors = {
18122
18323
  */
18123
18324
  409: MailboxSendConflictError | ConflictError;
18124
18325
  /**
18125
- * MailboxChannelUnsupportedError | ValidationError
18326
+ * ValidationError
18126
18327
  */
18127
- 422: MailboxChannelUnsupportedError | ValidationError;
18328
+ 422: ValidationError;
18128
18329
  /**
18129
18330
  * RateLimitedError
18130
18331
  */
@@ -18187,9 +18388,9 @@ export type MailboxesReplyAllErrors = {
18187
18388
  */
18188
18389
  402: PaymentRequiredError;
18189
18390
  /**
18190
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18391
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18191
18392
  */
18192
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18393
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18193
18394
  /**
18194
18395
  * ResourceNotFoundError
18195
18396
  */
@@ -18199,9 +18400,9 @@ export type MailboxesReplyAllErrors = {
18199
18400
  */
18200
18401
  409: MailboxSendConflictError | ConflictError;
18201
18402
  /**
18202
- * MailboxChannelUnsupportedError | ValidationError
18403
+ * ValidationError
18203
18404
  */
18204
- 422: MailboxChannelUnsupportedError | ValidationError;
18405
+ 422: ValidationError;
18205
18406
  /**
18206
18407
  * RateLimitedError
18207
18408
  */
@@ -18264,9 +18465,9 @@ export type MailboxesForwardErrors = {
18264
18465
  */
18265
18466
  402: PaymentRequiredError;
18266
18467
  /**
18267
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18468
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18268
18469
  */
18269
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18470
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18270
18471
  /**
18271
18472
  * ResourceNotFoundError
18272
18473
  */
@@ -18276,9 +18477,9 @@ export type MailboxesForwardErrors = {
18276
18477
  */
18277
18478
  409: MailboxSendConflictError | ConflictError;
18278
18479
  /**
18279
- * MailboxChannelUnsupportedError | ValidationError
18480
+ * ValidationError
18280
18481
  */
18281
- 422: MailboxChannelUnsupportedError | ValidationError;
18482
+ 422: ValidationError;
18282
18483
  /**
18283
18484
  * RateLimitedError
18284
18485
  */
@@ -18537,9 +18738,9 @@ export type MailboxesCreateDraftErrors = {
18537
18738
  */
18538
18739
  404: ResourceNotFoundError;
18539
18740
  /**
18540
- * MailboxChannelUnsupportedError | ValidationError
18741
+ * ValidationError
18541
18742
  */
18542
- 422: MailboxChannelUnsupportedError | ValidationError;
18743
+ 422: ValidationError;
18543
18744
  /**
18544
18745
  * InternalError
18545
18746
  */
@@ -18721,9 +18922,9 @@ export type MailboxesSendDraftErrors = {
18721
18922
  */
18722
18923
  402: PaymentRequiredError;
18723
18924
  /**
18724
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18925
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18725
18926
  */
18726
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18927
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18727
18928
  /**
18728
18929
  * ResourceNotFoundError
18729
18930
  */
@@ -18733,9 +18934,9 @@ export type MailboxesSendDraftErrors = {
18733
18934
  */
18734
18935
  409: MailboxSendConflictError | ConflictError;
18735
18936
  /**
18736
- * MailboxChannelUnsupportedError | ValidationError
18937
+ * ValidationError
18737
18938
  */
18738
- 422: MailboxChannelUnsupportedError | ValidationError;
18939
+ 422: ValidationError;
18739
18940
  /**
18740
18941
  * RateLimitedError
18741
18942
  */
@@ -18880,9 +19081,9 @@ export type MailboxesCancelActionErrors = {
18880
19081
  */
18881
19082
  402: PaymentRequiredError;
18882
19083
  /**
18883
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
19084
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18884
19085
  */
18885
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
19086
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18886
19087
  /**
18887
19088
  * ResourceNotFoundError
18888
19089
  */
@@ -18892,9 +19093,9 @@ export type MailboxesCancelActionErrors = {
18892
19093
  */
18893
19094
  409: MailboxSendConflictError | ConflictError;
18894
19095
  /**
18895
- * MailboxChannelUnsupportedError | ValidationError
19096
+ * ValidationError
18896
19097
  */
18897
- 422: MailboxChannelUnsupportedError | ValidationError;
19098
+ 422: ValidationError;
18898
19099
  /**
18899
19100
  * RateLimitedError
18900
19101
  */
@@ -18947,9 +19148,9 @@ export type MailboxesRetryActionErrors = {
18947
19148
  */
18948
19149
  402: PaymentRequiredError;
18949
19150
  /**
18950
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
19151
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
18951
19152
  */
18952
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
19153
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
18953
19154
  /**
18954
19155
  * ResourceNotFoundError
18955
19156
  */
@@ -18959,9 +19160,9 @@ export type MailboxesRetryActionErrors = {
18959
19160
  */
18960
19161
  409: MailboxSendConflictError | ConflictError;
18961
19162
  /**
18962
- * MailboxChannelUnsupportedError | ValidationError
19163
+ * ValidationError
18963
19164
  */
18964
- 422: MailboxChannelUnsupportedError | ValidationError;
19165
+ 422: ValidationError;
18965
19166
  /**
18966
19167
  * RateLimitedError
18967
19168
  */
@@ -19014,9 +19215,9 @@ export type MailboxesApproveActionErrors = {
19014
19215
  */
19015
19216
  402: PaymentRequiredError;
19016
19217
  /**
19017
- * MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
19218
+ * FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError
19018
19219
  */
19019
- 403: MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
19220
+ 403: FlagDisabledError | MailboxSendRefusedError | OnboardingReviewRequiredError | ForbiddenError;
19020
19221
  /**
19021
19222
  * ResourceNotFoundError
19022
19223
  */
@@ -19026,9 +19227,9 @@ export type MailboxesApproveActionErrors = {
19026
19227
  */
19027
19228
  409: MailboxSendConflictError | ConflictError;
19028
19229
  /**
19029
- * MailboxChannelUnsupportedError | ValidationError
19230
+ * ValidationError
19030
19231
  */
19031
- 422: MailboxChannelUnsupportedError | ValidationError;
19232
+ 422: ValidationError;
19032
19233
  /**
19033
19234
  * RateLimitedError
19034
19235
  */
@@ -19381,6 +19582,151 @@ export type NamespacesUpdateResponses = {
19381
19582
  200: Namespace;
19382
19583
  };
19383
19584
  export type NamespacesUpdateResponse = NamespacesUpdateResponses[keyof NamespacesUpdateResponses];
19585
+ export type NamespacesAssignResourceData = {
19586
+ body: {
19587
+ type: NamespaceResourceType;
19588
+ /**
19589
+ * The resource's id, such as `dom_...` for a domain.
19590
+ */
19591
+ resourceId: string;
19592
+ };
19593
+ path: {
19594
+ id: NamespaceId;
19595
+ };
19596
+ query?: never;
19597
+ url: "/v1/namespaces/{id}/resources";
19598
+ };
19599
+ export type NamespacesAssignResourceErrors = {
19600
+ /**
19601
+ * UnauthorizedError
19602
+ */
19603
+ 401: UnauthorizedError;
19604
+ /**
19605
+ * ForbiddenError
19606
+ */
19607
+ 403: ForbiddenError;
19608
+ /**
19609
+ * ResourceNotFoundError
19610
+ */
19611
+ 404: ResourceNotFoundError;
19612
+ /**
19613
+ * ConflictError
19614
+ */
19615
+ 409: ConflictError;
19616
+ /**
19617
+ * ValidationError
19618
+ */
19619
+ 422: ValidationError;
19620
+ /**
19621
+ * InternalError
19622
+ */
19623
+ 500: InternalError;
19624
+ /**
19625
+ * GatewayTimeoutError
19626
+ */
19627
+ 504: GatewayTimeoutError;
19628
+ };
19629
+ export type NamespacesAssignResourceError = NamespacesAssignResourceErrors[keyof NamespacesAssignResourceErrors];
19630
+ export type NamespacesAssignResourceResponses = {
19631
+ /**
19632
+ * NamespaceResource
19633
+ */
19634
+ 200: NamespaceResource;
19635
+ };
19636
+ export type NamespacesAssignResourceResponse = NamespacesAssignResourceResponses[keyof NamespacesAssignResourceResponses];
19637
+ export type NamespacesRemoveResourceData = {
19638
+ body?: never;
19639
+ path: {
19640
+ id: NamespaceId;
19641
+ type: NamespaceResourceType;
19642
+ resourceId: string;
19643
+ };
19644
+ query?: never;
19645
+ url: "/v1/namespaces/{id}/resources/{type}/{resourceId}";
19646
+ };
19647
+ export type NamespacesRemoveResourceErrors = {
19648
+ /**
19649
+ * UnauthorizedError
19650
+ */
19651
+ 401: UnauthorizedError;
19652
+ /**
19653
+ * ForbiddenError
19654
+ */
19655
+ 403: ForbiddenError;
19656
+ /**
19657
+ * ResourceNotFoundError
19658
+ */
19659
+ 404: ResourceNotFoundError;
19660
+ /**
19661
+ * ConflictError
19662
+ */
19663
+ 409: ConflictError;
19664
+ /**
19665
+ * ValidationError
19666
+ */
19667
+ 422: ValidationError;
19668
+ /**
19669
+ * InternalError
19670
+ */
19671
+ 500: InternalError;
19672
+ /**
19673
+ * GatewayTimeoutError
19674
+ */
19675
+ 504: GatewayTimeoutError;
19676
+ };
19677
+ export type NamespacesRemoveResourceError = NamespacesRemoveResourceErrors[keyof NamespacesRemoveResourceErrors];
19678
+ export type NamespacesRemoveResourceResponses = {
19679
+ /**
19680
+ * NamespaceResource
19681
+ */
19682
+ 200: NamespaceResource;
19683
+ };
19684
+ export type NamespacesRemoveResourceResponse = NamespacesRemoveResourceResponses[keyof NamespacesRemoveResourceResponses];
19685
+ export type NamespacesGetUsageData = {
19686
+ body?: never;
19687
+ path: {
19688
+ id: NamespaceId;
19689
+ };
19690
+ query?: {
19691
+ after?: string | null | undefined;
19692
+ before?: string | null | undefined;
19693
+ };
19694
+ url: "/v1/namespaces/{id}/usage";
19695
+ };
19696
+ export type NamespacesGetUsageErrors = {
19697
+ /**
19698
+ * UnauthorizedError
19699
+ */
19700
+ 401: UnauthorizedError;
19701
+ /**
19702
+ * ForbiddenError
19703
+ */
19704
+ 403: ForbiddenError;
19705
+ /**
19706
+ * ResourceNotFoundError
19707
+ */
19708
+ 404: ResourceNotFoundError;
19709
+ /**
19710
+ * ValidationError
19711
+ */
19712
+ 422: ValidationError;
19713
+ /**
19714
+ * InternalError
19715
+ */
19716
+ 500: InternalError;
19717
+ /**
19718
+ * GatewayTimeoutError
19719
+ */
19720
+ 504: GatewayTimeoutError;
19721
+ };
19722
+ export type NamespacesGetUsageError = NamespacesGetUsageErrors[keyof NamespacesGetUsageErrors];
19723
+ export type NamespacesGetUsageResponses = {
19724
+ /**
19725
+ * NamespaceUsage
19726
+ */
19727
+ 200: NamespaceUsage;
19728
+ };
19729
+ export type NamespacesGetUsageResponse = NamespacesGetUsageResponses[keyof NamespacesGetUsageResponses];
19384
19730
  export type ExtensionsListData = {
19385
19731
  body?: never;
19386
19732
  path?: never;