samva 0.40.0 → 0.42.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.
@@ -421,13 +421,14 @@ export declare class Email {
421
421
  /**
422
422
  * List sending domains
423
423
  *
424
- * Returns the organization's sending domains, newest first. A namespace-scoped key lists only its namespace's domains; an organization-wide caller lists every domain, or one namespace's with `namespaceId`. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. `sendable=true` lists only domains a send can use now: active, and verified, or verified before and degraded since. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours, the window the 5% bounce limit is enforced over) and `series`, the last 14 days of daily email sends attributed to the domain, oldest first.
424
+ * Returns the organization's sending domains, newest first. A namespace-scoped caller lists its namespace's domains and shared organization domains; an organization-wide caller lists every domain, or one namespace's with `namespaceId`. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. `sendable=true` lists only domains a send can use now: active, and verified, or verified before and degraded since. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours, the window the 5% bounce limit is enforced over) and `series`, the last 14 days of daily email sends attributed to the domain, oldest first.
425
425
  */
426
426
  static listDomains<ThrowOnError extends boolean = false>(parameters?: {
427
427
  limit?: number | null | undefined;
428
428
  cursor?: string | undefined;
429
429
  sendable?: true | null | undefined;
430
430
  namespaceId?: NamespaceId | undefined;
431
+ shared?: boolean | null | undefined;
431
432
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailListDomainsResponses, EmailListDomainsErrors, ThrowOnError>;
432
433
  /**
433
434
  * Add a sending domain
@@ -441,6 +442,7 @@ export declare class Email {
441
442
  zone: string;
442
443
  } | null | undefined;
443
444
  namespaceId?: NamespaceId | null | undefined;
445
+ shared?: boolean | null | undefined;
444
446
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailAddDomainResponses, EmailAddDomainErrors, ThrowOnError>;
445
447
  /**
446
448
  * Get domain verification
@@ -555,6 +557,7 @@ export declare class Email {
555
557
  */
556
558
  static updateDomainConfig<ThrowOnError extends boolean = false>(parameters: {
557
559
  id: EmailDomainId;
560
+ shared?: boolean | null | undefined;
558
561
  openTracking?: boolean | null | undefined;
559
562
  clickTracking?: boolean | null | undefined;
560
563
  replyTo?: Array<string> | null | undefined;
@@ -626,7 +629,7 @@ export declare class Email {
626
629
  /**
627
630
  * List senders
628
631
  *
629
- * Returns senders, newest first. A namespace-scoped key lists only its namespace's senders; an organization-wide caller lists every sender, or one namespace's with `namespaceId`. Optionally filtered by verification status, active state, or default flag. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours) and `series`, the last 14 days of daily email sends from the address, oldest first.
632
+ * Returns senders, newest first. A namespace-scoped caller lists its namespace's senders and senders on shared organization domains; an organization-wide caller lists every sender, or one namespace's with `namespaceId`. Optionally filtered by verification status, active state, or default flag. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours) and `series`, the last 14 days of daily email sends from the address, oldest first.
630
633
  */
631
634
  static listSenders<ThrowOnError extends boolean = false>(parameters?: {
632
635
  limit?: number | null | undefined;
@@ -675,10 +678,11 @@ export declare class Email {
675
678
  /**
676
679
  * Set the default sender
677
680
  *
678
- * Marks a verified, active sender as the default of its scope, atomically clearing the previous default of the same scope: the organization level, or the sender's namespace. Omitted-`from` sends use it when neither the request nor the template names a `from`; with no default, the organization's sole verified sender is used.
681
+ * Sets a verified, active sender as the default for the caller's namespace, the explicit namespaceId, or the sender's own scope. A namespace can select its own sender or a sender on a shared organization domain. This changes only the namespace's default; it does not change a shared sender. Omitted-`from` sends use this default when neither the request nor the template names a `from`.
679
682
  */
680
683
  static setDefaultSender<ThrowOnError extends boolean = false>(parameters: {
681
684
  id: EmailSenderId;
685
+ namespaceId?: NamespaceId | null | undefined;
682
686
  }, options?: Options<never, ThrowOnError>): RequestResult<EmailSetDefaultSenderResponses, EmailSetDefaultSenderErrors, ThrowOnError>;
683
687
  /**
684
688
  * Get email statistics
@@ -737,9 +741,10 @@ export declare class Email {
737
741
  /**
738
742
  * List suppressed addresses
739
743
  *
740
- * Returns the addresses this organization will not send to, newest first, optionally filtered by suppression type, active or expired state, and an address substring. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
744
+ * Returns suppressed addresses, newest first, optionally filtered by suppression type, active or expired state, and an address substring. A namespace-scoped key lists only its namespace; an organization-wide caller lists every scope, or exactly one namespace with `namespaceId`. Each entry includes its `namespaceId`; null identifies organization-wide protection across every namespace. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
741
745
  */
742
746
  static listSuppressions<ThrowOnError extends boolean = false>(parameters?: {
747
+ namespaceId?: NamespaceId | undefined;
743
748
  type?: "bounce" | "complaint" | "unsubscribe" | "manual" | undefined;
744
749
  status?: "active" | "expired" | undefined;
745
750
  search?: string | undefined;
@@ -749,13 +754,15 @@ export declare class Email {
749
754
  /**
750
755
  * Count suppressed addresses
751
756
  *
752
- * Returns how many addresses this organization will not send to now, by suppression type. Expired suppressions are not counted.
757
+ * Returns active suppression counts by type. A namespace-scoped key counts only its namespace; an organization-wide caller counts every scope, or exactly one namespace with `namespaceId`. Expired suppressions are not counted.
753
758
  */
754
- static countSuppressions<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): RequestResult<EmailCountSuppressionsResponses, EmailCountSuppressionsErrors, ThrowOnError>;
759
+ static countSuppressions<ThrowOnError extends boolean = false>(parameters?: {
760
+ namespaceId?: NamespaceId | undefined;
761
+ }, options?: Options<never, ThrowOnError>): RequestResult<EmailCountSuppressionsResponses, EmailCountSuppressionsErrors, ThrowOnError>;
755
762
  /**
756
763
  * Remove a suppressed address
757
764
  *
758
- * Deletes a suppression so this organization can send to the address again. If the deletion cannot complete, it fails rather than reporting success, and it is safe to retry. Deliverability caveat: a bounce or complaint suppression records a real delivery failure, and sending to the address again risks the reputation damage the suppression prevented.
765
+ * Deletes one suppression in its own scope after clearing its saved provider owners. Other applicable suppressions remain enforced. A namespace-scoped key can remove only its namespace's entries; other scopes answer as not found. If new feedback changes the entry during removal, it returns 409 and retains the entry for a fresh read before retrying. Provider failures retain the local entry. Deliverability caveat: a bounce or complaint suppression records a real delivery failure, and sending to the address again risks the reputation damage the suppression prevented.
759
766
  */
760
767
  static removeSuppression<ThrowOnError extends boolean = false>(parameters: {
761
768
  id: SuppressionId;
@@ -1408,7 +1415,7 @@ export declare class Contacts {
1408
1415
  /**
1409
1416
  * Start or resume a list migration
1410
1417
  *
1411
- * The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Namespace-scoped credentials cannot create organization-wide suppressions; those rows are conflicts and create no contact. New active contacts are billable and normal contact events apply.
1418
+ * The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Imported suppressions use the contact's namespace. Namespace-scoped credentials import contacts and restrictions only into their own namespace; organization-level suppressions protect every namespace. New active contacts are billable and normal contact events apply.
1412
1419
  */
1413
1420
  static startImport<ThrowOnError extends boolean = false>(parameters: {
1414
1421
  mode: "new";
@@ -1229,7 +1229,7 @@ var Email = class {
1229
1229
  /**
1230
1230
  * List sending domains
1231
1231
  *
1232
- * Returns the organization's sending domains, newest first. A namespace-scoped key lists only its namespace's domains; an organization-wide caller lists every domain, or one namespace's with `namespaceId`. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. `sendable=true` lists only domains a send can use now: active, and verified, or verified before and degraded since. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours, the window the 5% bounce limit is enforced over) and `series`, the last 14 days of daily email sends attributed to the domain, oldest first.
1232
+ * Returns the organization's sending domains, newest first. A namespace-scoped caller lists its namespace's domains and shared organization domains; an organization-wide caller lists every domain, or one namespace's with `namespaceId`. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. `sendable=true` lists only domains a send can use now: active, and verified, or verified before and degraded since. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours, the window the 5% bounce limit is enforced over) and `series`, the last 14 days of daily email sends attributed to the domain, oldest first.
1233
1233
  */
1234
1234
  static listDomains(parameters, options) {
1235
1235
  const params = buildClientParams([parameters], [{ args: [
@@ -1248,6 +1248,10 @@ var Email = class {
1248
1248
  {
1249
1249
  in: "query",
1250
1250
  key: "namespaceId"
1251
+ },
1252
+ {
1253
+ in: "query",
1254
+ key: "shared"
1251
1255
  }
1252
1256
  ] }]);
1253
1257
  return requestWithPolicy(options?.client ?? client, "emailListDomains", options, (headers) => (options?.client ?? client).get({
@@ -1279,6 +1283,10 @@ var Email = class {
1279
1283
  {
1280
1284
  in: "body",
1281
1285
  key: "namespaceId"
1286
+ },
1287
+ {
1288
+ in: "body",
1289
+ key: "shared"
1282
1290
  }
1283
1291
  ] }]);
1284
1292
  return requestWithPolicy(options?.client ?? client, "emailAddDomain", options, (headers) => (options?.client ?? client).post({
@@ -1641,6 +1649,10 @@ var Email = class {
1641
1649
  in: "path",
1642
1650
  key: "id"
1643
1651
  },
1652
+ {
1653
+ in: "body",
1654
+ key: "shared"
1655
+ },
1644
1656
  {
1645
1657
  in: "body",
1646
1658
  key: "openTracking"
@@ -1878,7 +1890,7 @@ var Email = class {
1878
1890
  /**
1879
1891
  * List senders
1880
1892
  *
1881
- * Returns senders, newest first. A namespace-scoped key lists only its namespace's senders; an organization-wide caller lists every sender, or one namespace's with `namespaceId`. Optionally filtered by verification status, active state, or default flag. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours) and `series`, the last 14 days of daily email sends from the address, oldest first.
1893
+ * Returns senders, newest first. A namespace-scoped caller lists its namespace's senders and senders on shared organization domains; an organization-wide caller lists every sender, or one namespace's with `namespaceId`. Optionally filtered by verification status, active state, or default flag. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. Each row carries `deliverability` (bounce and complaint rates over the last 24 hours) and `series`, the last 14 days of daily email sends from the address, oldest first.
1882
1894
  */
1883
1895
  static listSenders(parameters, options) {
1884
1896
  const params = buildClientParams([parameters], [{ args: [
@@ -2032,12 +2044,15 @@ var Email = class {
2032
2044
  /**
2033
2045
  * Set the default sender
2034
2046
  *
2035
- * Marks a verified, active sender as the default of its scope, atomically clearing the previous default of the same scope: the organization level, or the sender's namespace. Omitted-`from` sends use it when neither the request nor the template names a `from`; with no default, the organization's sole verified sender is used.
2047
+ * Sets a verified, active sender as the default for the caller's namespace, the explicit namespaceId, or the sender's own scope. A namespace can select its own sender or a sender on a shared organization domain. This changes only the namespace's default; it does not change a shared sender. Omitted-`from` sends use this default when neither the request nor the template names a `from`.
2036
2048
  */
2037
2049
  static setDefaultSender(parameters, options) {
2038
2050
  const params = buildClientParams([parameters], [{ args: [{
2039
2051
  in: "path",
2040
2052
  key: "id"
2053
+ }, {
2054
+ in: "body",
2055
+ key: "namespaceId"
2041
2056
  }] }]);
2042
2057
  return requestWithPolicy(options?.client ?? client, "emailSetDefaultSender", options, (headers) => (options?.client ?? client).post({
2043
2058
  security: [{
@@ -2047,7 +2062,16 @@ var Email = class {
2047
2062
  url: "/v1/email/senders/{id}/default",
2048
2063
  ...options,
2049
2064
  ...params,
2050
- headers
2065
+ body: params.body ?? {},
2066
+ headers: {
2067
+ "Content-Type": "application/json",
2068
+ ...options?.headers,
2069
+ ...params.headers
2070
+ },
2071
+ headers: {
2072
+ "Content-Type": "application/json",
2073
+ ...headers
2074
+ }
2051
2075
  }));
2052
2076
  }
2053
2077
  /**
@@ -2223,10 +2247,14 @@ var Email = class {
2223
2247
  /**
2224
2248
  * List suppressed addresses
2225
2249
  *
2226
- * Returns the addresses this organization will not send to, newest first, optionally filtered by suppression type, active or expired state, and an address substring. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2250
+ * Returns suppressed addresses, newest first, optionally filtered by suppression type, active or expired state, and an address substring. A namespace-scoped key lists only its namespace; an organization-wide caller lists every scope, or exactly one namespace with `namespaceId`. Each entry includes its `namespaceId`; null identifies organization-wide protection across every namespace. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page.
2227
2251
  */
2228
2252
  static listSuppressions(parameters, options) {
2229
2253
  const params = buildClientParams([parameters], [{ args: [
2254
+ {
2255
+ in: "query",
2256
+ key: "namespaceId"
2257
+ },
2230
2258
  {
2231
2259
  in: "query",
2232
2260
  key: "type"
@@ -2262,9 +2290,13 @@ var Email = class {
2262
2290
  /**
2263
2291
  * Count suppressed addresses
2264
2292
  *
2265
- * Returns how many addresses this organization will not send to now, by suppression type. Expired suppressions are not counted.
2293
+ * Returns active suppression counts by type. A namespace-scoped key counts only its namespace; an organization-wide caller counts every scope, or exactly one namespace with `namespaceId`. Expired suppressions are not counted.
2266
2294
  */
2267
- static countSuppressions(options) {
2295
+ static countSuppressions(parameters, options) {
2296
+ const params = buildClientParams([parameters], [{ args: [{
2297
+ in: "query",
2298
+ key: "namespaceId"
2299
+ }] }]);
2268
2300
  return requestWithPolicy(options?.client ?? client, "emailCountSuppressions", options, (headers) => (options?.client ?? client).get({
2269
2301
  security: [{
2270
2302
  name: "x-api-key",
@@ -2272,13 +2304,14 @@ var Email = class {
2272
2304
  }],
2273
2305
  url: "/v1/email/suppressions/counts",
2274
2306
  ...options,
2307
+ ...params,
2275
2308
  headers
2276
2309
  }));
2277
2310
  }
2278
2311
  /**
2279
2312
  * Remove a suppressed address
2280
2313
  *
2281
- * Deletes a suppression so this organization can send to the address again. If the deletion cannot complete, it fails rather than reporting success, and it is safe to retry. Deliverability caveat: a bounce or complaint suppression records a real delivery failure, and sending to the address again risks the reputation damage the suppression prevented.
2314
+ * Deletes one suppression in its own scope after clearing its saved provider owners. Other applicable suppressions remain enforced. A namespace-scoped key can remove only its namespace's entries; other scopes answer as not found. If new feedback changes the entry during removal, it returns 409 and retains the entry for a fresh read before retrying. Provider failures retain the local entry. Deliverability caveat: a bounce or complaint suppression records a real delivery failure, and sending to the address again risks the reputation damage the suppression prevented.
2282
2315
  */
2283
2316
  static removeSuppression(parameters, options) {
2284
2317
  const params = buildClientParams([parameters], [{ args: [{
@@ -4382,7 +4415,7 @@ var Contacts = class {
4382
4415
  /**
4383
4416
  * Start or resume a list migration
4384
4417
  *
4385
- * The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Namespace-scoped credentials cannot create organization-wide suppressions; those rows are conflicts and create no contact. New active contacts are billable and normal contact events apply.
4418
+ * The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Imported suppressions use the contact's namespace. Namespace-scoped credentials import contacts and restrictions only into their own namespace; organization-level suppressions protect every namespace. New active contacts are billable and normal contact events apply.
4386
4419
  */
4387
4420
  static startImport(parameters, options) {
4388
4421
  const params = { body: parameters };
@@ -702,6 +702,7 @@ export type MailboxChatDraft = {
702
702
  subject: string | null;
703
703
  createdAt: string;
704
704
  updatedAt: string;
705
+ revision: number;
705
706
  text: string | null;
706
707
  };
707
708
  export type MailboxDraftState = "saved" | "locked" | "sent";
@@ -716,6 +717,7 @@ export type MailboxEmailDraft = {
716
717
  subject: string | null;
717
718
  createdAt: string;
718
719
  updatedAt: string;
720
+ revision: number;
719
721
  endpointId: MailboxEndpointId | null;
720
722
  cc: Array<string>;
721
723
  bcc: Array<string>;
@@ -3657,6 +3659,10 @@ export type SuppressionPage = {
3657
3659
  export type SuppressionEntry = {
3658
3660
  id: SuppressionId;
3659
3661
  email: string;
3662
+ /**
3663
+ * The namespace this suppression protects; null protects sending across the organization
3664
+ */
3665
+ namespaceId: NamespaceId | null;
3660
3666
  type: "bounce" | "complaint" | "unsubscribe" | "manual";
3661
3667
  bounceType: string | null;
3662
3668
  bounceSubType: string | null;
@@ -3805,9 +3811,10 @@ export type EmailDomainDetailed = {
3805
3811
  }>;
3806
3812
  verifiedAt: string | null;
3807
3813
  /**
3808
- * The namespace the domain belongs to, or null at organization level. Only that namespace's keys and organization-wide callers reach it.
3814
+ * The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true.
3809
3815
  */
3810
3816
  namespaceId: NamespaceId | null;
3817
+ shared: boolean;
3811
3818
  isDefault: boolean;
3812
3819
  deliverability: DeliverabilityFacts;
3813
3820
  createdAt: string;
@@ -3946,9 +3953,10 @@ export type EmailDomainPage = {
3946
3953
  dkimSelector?: string | null | undefined;
3947
3954
  dkimPublicKey?: string | null | undefined;
3948
3955
  /**
3949
- * The namespace the domain belongs to, or null at organization level. Only that namespace's keys and organization-wide callers reach it.
3956
+ * The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true.
3950
3957
  */
3951
3958
  namespaceId: NamespaceId | null;
3959
+ shared: boolean;
3952
3960
  isDefault: boolean;
3953
3961
  deliverability: DeliverabilityFacts;
3954
3962
  series: SendsSeries;
@@ -7328,6 +7336,7 @@ export type EmailListDomainsData = {
7328
7336
  cursor?: string | undefined;
7329
7337
  sendable?: true | null | undefined;
7330
7338
  namespaceId?: NamespaceId | undefined;
7339
+ shared?: boolean | null | undefined;
7331
7340
  };
7332
7341
  url: "/v1/email/domains";
7333
7342
  };
@@ -7373,6 +7382,7 @@ export type EmailAddDomainData = {
7373
7382
  zone: string;
7374
7383
  } | null | undefined;
7375
7384
  namespaceId?: NamespaceId | null | undefined;
7385
+ shared?: boolean | null | undefined;
7376
7386
  };
7377
7387
  path?: never;
7378
7388
  query?: never;
@@ -8048,6 +8058,7 @@ export type EmailSetDefaultDomainResponses = {
8048
8058
  export type EmailSetDefaultDomainResponse = EmailSetDefaultDomainResponses[keyof EmailSetDefaultDomainResponses];
8049
8059
  export type EmailUpdateDomainConfigData = {
8050
8060
  body: {
8061
+ shared?: boolean | null | undefined;
8051
8062
  openTracking?: boolean | null | undefined;
8052
8063
  clickTracking?: boolean | null | undefined;
8053
8064
  replyTo?: Array<string> | null | undefined;
@@ -8078,14 +8089,26 @@ export type EmailUpdateDomainConfigErrors = {
8078
8089
  * ResourceNotFoundError
8079
8090
  */
8080
8091
  404: ResourceNotFoundError;
8092
+ /**
8093
+ * ConflictError
8094
+ */
8095
+ 409: ConflictError;
8081
8096
  /**
8082
8097
  * ValidationError
8083
8098
  */
8084
8099
  422: ValidationError;
8100
+ /**
8101
+ * RateLimitedError
8102
+ */
8103
+ 429: RateLimitedError;
8085
8104
  /**
8086
8105
  * InternalError
8087
8106
  */
8088
8107
  500: InternalError;
8108
+ /**
8109
+ * EmailChannelError
8110
+ */
8111
+ 502: EmailChannelError;
8089
8112
  /**
8090
8113
  * GatewayTimeoutError
8091
8114
  */
@@ -8098,6 +8121,7 @@ export type EmailUpdateDomainConfigResponses = {
8098
8121
  */
8099
8122
  200: {
8100
8123
  id: EmailDomainId;
8124
+ shared: boolean;
8101
8125
  openTracking: boolean | null;
8102
8126
  clickTracking: boolean | null;
8103
8127
  replyTo: Array<string> | null;
@@ -8753,7 +8777,9 @@ export type EmailGetSenderResponses = {
8753
8777
  };
8754
8778
  export type EmailGetSenderResponse = EmailGetSenderResponses[keyof EmailGetSenderResponses];
8755
8779
  export type EmailSetDefaultSenderData = {
8756
- body?: never;
8780
+ body: {
8781
+ namespaceId?: NamespaceId | null | undefined;
8782
+ };
8757
8783
  path: {
8758
8784
  id: EmailSenderId;
8759
8785
  };
@@ -8777,14 +8803,26 @@ export type EmailSetDefaultSenderErrors = {
8777
8803
  * ResourceNotFoundError
8778
8804
  */
8779
8805
  404: ResourceNotFoundError;
8806
+ /**
8807
+ * ConflictError
8808
+ */
8809
+ 409: ConflictError;
8780
8810
  /**
8781
8811
  * ValidationError
8782
8812
  */
8783
8813
  422: ValidationError;
8814
+ /**
8815
+ * RateLimitedError
8816
+ */
8817
+ 429: RateLimitedError;
8784
8818
  /**
8785
8819
  * InternalError
8786
8820
  */
8787
8821
  500: InternalError;
8822
+ /**
8823
+ * EmailChannelError
8824
+ */
8825
+ 502: EmailChannelError;
8788
8826
  /**
8789
8827
  * GatewayTimeoutError
8790
8828
  */
@@ -9129,6 +9167,7 @@ export type EmailListSuppressionsData = {
9129
9167
  body?: never;
9130
9168
  path?: never;
9131
9169
  query?: {
9170
+ namespaceId?: NamespaceId | undefined;
9132
9171
  type?: "bounce" | "complaint" | "unsubscribe" | "manual" | undefined;
9133
9172
  status?: "active" | "expired" | undefined;
9134
9173
  search?: string | undefined;
@@ -9174,7 +9213,9 @@ export type EmailListSuppressionsResponse = EmailListSuppressionsResponses[keyof
9174
9213
  export type EmailCountSuppressionsData = {
9175
9214
  body?: never;
9176
9215
  path?: never;
9177
- query?: never;
9216
+ query?: {
9217
+ namespaceId?: NamespaceId | undefined;
9218
+ };
9178
9219
  url: "/v1/email/suppressions/counts";
9179
9220
  };
9180
9221
  export type EmailCountSuppressionsErrors = {
@@ -9236,6 +9277,10 @@ export type EmailRemoveSuppressionErrors = {
9236
9277
  * ResourceNotFoundError
9237
9278
  */
9238
9279
  404: ResourceNotFoundError;
9280
+ /**
9281
+ * ConflictError
9282
+ */
9283
+ 409: ConflictError;
9239
9284
  /**
9240
9285
  * ValidationError
9241
9286
  */
@@ -31,12 +31,14 @@ export declare const listDomains: ((input?: {
31
31
  readonly cursor?: string | undefined;
32
32
  readonly sendable?: true | null | undefined;
33
33
  readonly namespaceId?: string | undefined;
34
+ readonly shared?: boolean | null | undefined;
34
35
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailListDomains">) & {
35
36
  readonly pages: (input?: {
36
37
  readonly limit?: number | null | undefined;
37
38
  readonly cursor?: string | undefined;
38
39
  readonly sendable?: true | null | undefined;
39
40
  readonly namespaceId?: string | undefined;
41
+ readonly shared?: boolean | null | undefined;
40
42
  } | undefined) => import("effect/Stream").Stream<{
41
43
  readonly items: readonly {
42
44
  readonly unknownRecipientMailboxId: (string & import("effect/Brand").Brand<"MailboxId">) | null;
@@ -46,6 +48,7 @@ export declare const listDomains: ((input?: {
46
48
  readonly dkimSelector?: string | null;
47
49
  readonly dkimPublicKey?: string | null;
48
50
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
51
+ readonly shared: boolean;
49
52
  readonly isDefault: boolean;
50
53
  readonly deliverability: {
51
54
  readonly bounceRate: number;
@@ -64,6 +67,7 @@ export declare const listDomains: ((input?: {
64
67
  readonly cursor?: string | undefined;
65
68
  readonly sendable?: true | null | undefined;
66
69
  readonly namespaceId?: string | undefined;
70
+ readonly shared?: boolean | null | undefined;
67
71
  } | undefined) => import("effect/Stream").Stream<{
68
72
  readonly unknownRecipientMailboxId: (string & import("effect/Brand").Brand<"MailboxId">) | null;
69
73
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -72,6 +76,7 @@ export declare const listDomains: ((input?: {
72
76
  readonly dkimSelector?: string | null;
73
77
  readonly dkimPublicKey?: string | null;
74
78
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
79
+ readonly shared: boolean;
75
80
  readonly isDefault: boolean;
76
81
  readonly deliverability: {
77
82
  readonly bounceRate: number;
@@ -91,6 +96,7 @@ export declare const addDomain: (input: {
91
96
  readonly zone: string;
92
97
  } | null | undefined;
93
98
  readonly namespaceId?: string | null | undefined;
99
+ readonly shared?: boolean | null | undefined;
94
100
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAddDomain">;
95
101
  export declare const rotateDomainDkim: (input: {
96
102
  readonly id: string;
@@ -112,6 +118,7 @@ export declare const setDefaultDomain: (input: {
112
118
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailSetDefaultDomain">;
113
119
  export declare const updateDomainConfig: (input: {
114
120
  readonly id: string;
121
+ readonly shared?: boolean | null | undefined;
115
122
  readonly openTracking?: boolean | null | undefined;
116
123
  readonly clickTracking?: boolean | null | undefined;
117
124
  readonly replyTo?: readonly string[] | null | undefined;
@@ -309,6 +316,7 @@ export declare const removeSender: (input: {
309
316
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveSender">;
310
317
  export declare const setDefaultSender: (input: {
311
318
  readonly id: string;
319
+ readonly namespaceId?: string | null | undefined;
312
320
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailSetDefaultSender">;
313
321
  export declare const getStats: (input?: {
314
322
  readonly after?: string | undefined;
@@ -335,6 +343,7 @@ export declare const getCatchAllStats: (input: {
335
343
  readonly before?: string | undefined;
336
344
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailGetCatchAllStats">;
337
345
  export declare const listSuppressions: ((input?: {
346
+ readonly namespaceId?: string | undefined;
338
347
  readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | undefined;
339
348
  readonly status?: "active" | "expired" | undefined;
340
349
  readonly search?: string | undefined;
@@ -342,6 +351,7 @@ export declare const listSuppressions: ((input?: {
342
351
  readonly cursor?: string | undefined;
343
352
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailListSuppressions">) & {
344
353
  readonly pages: (input?: {
354
+ readonly namespaceId?: string | undefined;
345
355
  readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | undefined;
346
356
  readonly status?: "active" | "expired" | undefined;
347
357
  readonly search?: string | undefined;
@@ -351,6 +361,7 @@ export declare const listSuppressions: ((input?: {
351
361
  readonly items: readonly {
352
362
  readonly id: string & import("effect/Brand").Brand<"SuppressionId">;
353
363
  readonly email: string;
364
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
354
365
  readonly type: "bounce" | "complaint" | "manual" | "unsubscribe";
355
366
  readonly bounceType: string | null;
356
367
  readonly bounceSubType: string | null;
@@ -363,6 +374,7 @@ export declare const listSuppressions: ((input?: {
363
374
  readonly nextCursor: string | null;
364
375
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
365
376
  readonly items: (input?: {
377
+ readonly namespaceId?: string | undefined;
366
378
  readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | undefined;
367
379
  readonly status?: "active" | "expired" | undefined;
368
380
  readonly search?: string | undefined;
@@ -371,6 +383,7 @@ export declare const listSuppressions: ((input?: {
371
383
  } | undefined) => import("effect/Stream").Stream<{
372
384
  readonly id: string & import("effect/Brand").Brand<"SuppressionId">;
373
385
  readonly email: string;
386
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
374
387
  readonly type: "bounce" | "complaint" | "manual" | "unsubscribe";
375
388
  readonly bounceType: string | null;
376
389
  readonly bounceSubType: string | null;
@@ -381,7 +394,9 @@ export declare const listSuppressions: ((input?: {
381
394
  readonly createdAt: string;
382
395
  }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
383
396
  };
384
- export declare const countSuppressions: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCountSuppressions">;
397
+ export declare const countSuppressions: (input?: {
398
+ readonly namespaceId?: string | undefined;
399
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailCountSuppressions">;
385
400
  export declare const removeSuppression: (input: {
386
401
  readonly id: string;
387
402
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveSuppression">;
@@ -1079,7 +1079,7 @@ var ContactsGroup = class extends HttpApiGroup.make("Contacts").add(HttpApiEndpo
1079
1079
  ContactsStartImport502.pipe(HttpApiSchema.status(502)),
1080
1080
  ContactsStartImport504.pipe(HttpApiSchema.status(504))
1081
1081
  ]
1082
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.startImport").annotate(OpenApi.Summary, "Start or resume a list migration").annotate(OpenApi.Description, "The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Namespace-scoped credentials cannot create organization-wide suppressions; those rows are conflicts and create no contact. New active contacts are billable and normal contact events apply."), HttpApiEndpoint.get("contactsGetImportJob", "/v1/contacts/imports/:id", {
1082
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "contacts.startImport").annotate(OpenApi.Summary, "Start or resume a list migration").annotate(OpenApi.Description, "The complete encoded JSON request, including new-start metadata, must not exceed 3000000 bytes. Admits a durable import using the preview hash and an Idempotency-Key header, or resumes the same persisted input at its committed cursor. The header is required for mode:new and optional for mode:resume. Only mode:new supports idempotent replay. Resume uses expectedGeneration and must not be automatically retried; read getImportJob after an ambiguous response. Imports never restore an existing unsubscribe, suppression or bounce. Imported suppressions use the contact's namespace. Namespace-scoped credentials import contacts and restrictions only into their own namespace; organization-level suppressions protect every namespace. New active contacts are billable and normal contact events apply."), HttpApiEndpoint.get("contactsGetImportJob", "/v1/contacts/imports/:id", {
1083
1083
  params: ContactsGetImportJobPathParams,
1084
1084
  success: ContactsGetImportJob200,
1085
1085
  error: [