samva 0.12.0 → 0.14.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 (75) hide show
  1. package/AGENTS.md +9 -0
  2. package/README.md +51 -6
  3. package/dist/{categories-DvsHUJtX.js → categories-BGUBFdH9.js} +13 -1
  4. package/dist/client/sdk.gen.d.ts +130 -32
  5. package/dist/client/types.gen.d.ts +979 -168
  6. package/dist/{client-Cj1bqIEe.js → client-CZjhOKPM.js} +898 -177
  7. package/dist/effect/analytics.d.ts +6 -6
  8. package/dist/effect/analytics.js +1 -1
  9. package/dist/effect/api-keys.d.ts +20 -20
  10. package/dist/effect/api-keys.js +1 -1
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/brands.js +2 -2
  13. package/dist/effect/campaigns.d.ts +13 -13
  14. package/dist/effect/campaigns.js +1 -1
  15. package/dist/effect/categories.js +1 -1
  16. package/dist/effect/client.js +1 -1
  17. package/dist/effect/contact-groups.d.ts +9 -12
  18. package/dist/effect/contact-groups.js +1 -1
  19. package/dist/effect/contacts.d.ts +161 -76
  20. package/dist/effect/contacts.js +1 -1
  21. package/dist/effect/conversations.d.ts +20 -20
  22. package/dist/effect/conversations.js +1 -1
  23. package/dist/effect/custom-fields.d.ts +1 -1
  24. package/dist/effect/custom-fields.js +1 -1
  25. package/dist/effect/email.d.ts +27 -27
  26. package/dist/effect/email.js +2 -2
  27. package/dist/effect/extension-installations.d.ts +68 -2
  28. package/dist/effect/extension-installations.js +5 -3
  29. package/dist/effect/extensions.d.ts +3 -3
  30. package/dist/effect/extensions.js +1 -1
  31. package/dist/effect/feedback.d.ts +1 -1
  32. package/dist/effect/feedback.js +2 -2
  33. package/dist/effect/generated-metadata.d.ts +12 -0
  34. package/dist/effect/generated.d.ts +6502 -906
  35. package/dist/effect/index.d.ts +3 -1
  36. package/dist/effect/index.js +6 -4
  37. package/dist/effect/internal/client.d.ts +16 -2
  38. package/dist/effect/internal/operation.d.ts +14 -11
  39. package/dist/effect/mailboxes.d.ts +1725 -108
  40. package/dist/effect/mailboxes.js +3 -3
  41. package/dist/effect/media.d.ts +1 -1
  42. package/dist/effect/media.js +1 -1
  43. package/dist/effect/messages.d.ts +21 -19
  44. package/dist/effect/messages.js +1 -1
  45. package/dist/effect/namespaces.js +1 -1
  46. package/dist/effect/operations.d.ts +6 -6
  47. package/dist/effect/operations.js +1 -1
  48. package/dist/effect/organizations.d.ts +30 -0
  49. package/dist/effect/organizations.js +4 -2
  50. package/dist/effect/retry.js +1 -1
  51. package/dist/effect/scheduled-messages.d.ts +7 -7
  52. package/dist/effect/scheduled-messages.js +1 -1
  53. package/dist/effect/subscriptions.d.ts +15 -0
  54. package/dist/effect/subscriptions.js +9 -0
  55. package/dist/effect/templates.d.ts +52 -14
  56. package/dist/effect/templates.js +5 -3
  57. package/dist/effect/unsubscribe-groups.d.ts +1 -1
  58. package/dist/effect/unsubscribe-groups.js +1 -1
  59. package/dist/effect/webhooks.d.ts +15 -15
  60. package/dist/effect/webhooks.js +2 -2
  61. package/dist/index.js +4 -3
  62. package/dist/inline-attachments-BrNnSMF2.js +121 -0
  63. package/dist/inline-attachments.d.ts +65 -0
  64. package/dist/{mailbox-events-CsbF35vH.js → mailbox-events-VKR4f3qq.js} +6 -4
  65. package/dist/mailbox-events.d.ts +1 -1
  66. package/dist/{mailboxes-BtcktcNB.js → mailboxes-DT02zP7q.js} +13 -5
  67. package/dist/{operation-BEghYyLu.js → operation-g8nAzmIM.js} +63 -3
  68. package/dist/promises/errors.gen.d.ts +38 -2
  69. package/dist/promises/index.d.ts +7 -4
  70. package/dist/promises/index.js +4 -3
  71. package/dist/promises/types.gen.d.ts +1 -1
  72. package/dist/{promises-BzrwhHEW.js → promises-BFRKhpSS.js} +1070 -49
  73. package/dist/service-map.d.ts +40 -0
  74. package/package.json +7 -2
  75. package/dist/client-attribution-BTWYSXxo.js +0 -9
@@ -4,7 +4,7 @@ export type { EmailAddSenderInput, EmailSendInput, SendOptions };
4
4
  export declare const send: (input: EmailSendInput, options?: SendOptions | undefined) => import("effect/Effect").Effect<{
5
5
  readonly id: string & import("effect/Brand").Brand<"MessageId">;
6
6
  readonly status: "bounced" | "complained" | "delivered" | "failed" | "pending" | "processing" | "queued" | "read" | "scheduled" | "sent";
7
- readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "sending-paused" | "upstream-unavailable" | null;
7
+ readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
8
8
  readonly reviewExpectedAt: string | null;
9
9
  readonly skippedRecipients: readonly {
10
10
  readonly address: string;
@@ -12,7 +12,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
12
12
  readonly unsubscribeGroupId?: (string & import("effect/Brand").Brand<"UnsubscribeId">) | null;
13
13
  }[];
14
14
  readonly createdAt: string;
15
- }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").DeliveryUnavailableError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
15
+ }, import("./generated").BillingProviderError | import("./generated").ConflictError | import("./generated").DeliveryUnavailableError | import("./generated").ExternalServiceError | import("./generated").FlagDisabledError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("..").MediaUploadError | import("./generated").OnboardingReviewRequiredError | import("./generated").PaymentRequiredError | import("./generated").RateLimitedError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").SenderNotReadyError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
16
16
  export declare const getTrackingDefaults: (_?: never) => import("effect/Effect").Effect<{
17
17
  readonly opens: boolean;
18
18
  readonly clicks: boolean;
@@ -46,7 +46,7 @@ export declare const updateRecipientTrackingPreference: (input: {
46
46
  export declare const listDomains: ((input?: {
47
47
  readonly limit?: string | null | undefined;
48
48
  readonly cursor?: string | null | undefined;
49
- readonly sendable?: string | null | undefined;
49
+ readonly sendable?: "true" | null | undefined;
50
50
  } | undefined) => import("effect/Effect").Effect<{
51
51
  readonly items: readonly {
52
52
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -71,7 +71,7 @@ export declare const listDomains: ((input?: {
71
71
  readonly pages: (input?: {
72
72
  readonly limit?: string | null | undefined;
73
73
  readonly cursor?: string | null | undefined;
74
- readonly sendable?: string | null | undefined;
74
+ readonly sendable?: "true" | null | undefined;
75
75
  } | undefined) => import("effect/Stream").Stream<{
76
76
  readonly items: readonly {
77
77
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
@@ -96,7 +96,7 @@ export declare const listDomains: ((input?: {
96
96
  readonly items: (input?: {
97
97
  readonly limit?: string | null | undefined;
98
98
  readonly cursor?: string | null | undefined;
99
- readonly sendable?: string | null | undefined;
99
+ readonly sendable?: "true" | null | undefined;
100
100
  } | undefined) => import("effect/Stream").Stream<{
101
101
  readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
102
102
  readonly domain: string;
@@ -427,7 +427,7 @@ export declare const getDomainById: (input: {
427
427
  };
428
428
  readonly createdAt: string;
429
429
  readonly updatedAt: string;
430
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
430
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
431
431
  export declare const removeDomain: (input: {
432
432
  readonly id: string;
433
433
  }) => import("effect/Effect").Effect<{
@@ -481,7 +481,7 @@ export declare const detectRegistrar: (input: {
481
481
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
482
482
  export declare const getDomainConnect: (input: {
483
483
  readonly id: string;
484
- readonly mode: string;
484
+ readonly mode: "send-and-receive" | "send-only";
485
485
  }) => import("effect/Effect").Effect<{
486
486
  readonly eligible: false;
487
487
  readonly reason: "no-record" | "no-settings" | "no-sync" | "no-template" | "unavailable";
@@ -491,7 +491,7 @@ export declare const getDomainConnect: (input: {
491
491
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
492
492
  export declare const buildDomainConnectApplyUrl: (input: {
493
493
  readonly id: string;
494
- readonly mode: string;
494
+ readonly mode: "send-and-receive" | "send-only";
495
495
  }) => import("effect/Effect").Effect<{
496
496
  readonly url: string;
497
497
  }, import("./generated").ConflictError | import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
@@ -748,7 +748,7 @@ export declare const getDomainWarming: (input: {
748
748
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
749
749
  export declare const createDomainWarmingPlan: (input: {
750
750
  readonly id: string;
751
- readonly identity: string;
751
+ readonly identity: "migrating" | "new" | "returning";
752
752
  readonly initialDailyRecipients: number;
753
753
  readonly dailyGrowthPercent: number;
754
754
  readonly targetDailyRecipients: number;
@@ -1240,7 +1240,7 @@ export declare const respondToOnboardingInformationRequest: (input: {
1240
1240
  export declare const listSenders: ((input?: {
1241
1241
  readonly limit?: string | null | undefined;
1242
1242
  readonly cursor?: string | null | undefined;
1243
- readonly verificationStatus?: string | null | undefined;
1243
+ readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1244
1244
  readonly isActive?: string | null | undefined;
1245
1245
  readonly isDefault?: string | null | undefined;
1246
1246
  } | undefined) => import("effect/Effect").Effect<{
@@ -1273,7 +1273,7 @@ export declare const listSenders: ((input?: {
1273
1273
  readonly pages: (input?: {
1274
1274
  readonly limit?: string | null | undefined;
1275
1275
  readonly cursor?: string | null | undefined;
1276
- readonly verificationStatus?: string | null | undefined;
1276
+ readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1277
1277
  readonly isActive?: string | null | undefined;
1278
1278
  readonly isDefault?: string | null | undefined;
1279
1279
  } | undefined) => import("effect/Stream").Stream<{
@@ -1306,7 +1306,7 @@ export declare const listSenders: ((input?: {
1306
1306
  readonly items: (input?: {
1307
1307
  readonly limit?: string | null | undefined;
1308
1308
  readonly cursor?: string | null | undefined;
1309
- readonly verificationStatus?: string | null | undefined;
1309
+ readonly verificationStatus?: "failed" | "pending" | "verified" | null | undefined;
1310
1310
  readonly isActive?: string | null | undefined;
1311
1311
  readonly isDefault?: string | null | undefined;
1312
1312
  } | undefined) => import("effect/Stream").Stream<{
@@ -1375,7 +1375,7 @@ export declare const checkSenderVerification: (input: {
1375
1375
  readonly email: string;
1376
1376
  readonly status: "failed" | "pending" | "verified";
1377
1377
  readonly verifiedAt: string | null;
1378
- }, import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1378
+ }, import("./generated").ExternalServiceError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1379
1379
  export declare const removeSender: (input: {
1380
1380
  readonly id: string;
1381
1381
  }) => import("effect/Effect").Effect<{
@@ -1442,8 +1442,8 @@ export declare const getCatchAllStats: (input: {
1442
1442
  } | null;
1443
1443
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1444
1444
  export declare const listSuppressions: ((input?: {
1445
- readonly type?: string | null | undefined;
1446
- readonly status?: string | null | undefined;
1445
+ readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | null | undefined;
1446
+ readonly status?: "active" | "expired" | null | undefined;
1447
1447
  readonly search?: string | null | undefined;
1448
1448
  readonly limit?: string | null | undefined;
1449
1449
  readonly cursor?: string | null | undefined;
@@ -1463,8 +1463,8 @@ export declare const listSuppressions: ((input?: {
1463
1463
  readonly nextCursor: string | null;
1464
1464
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
1465
1465
  readonly pages: (input?: {
1466
- readonly type?: string | null | undefined;
1467
- readonly status?: string | null | undefined;
1466
+ readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | null | undefined;
1467
+ readonly status?: "active" | "expired" | null | undefined;
1468
1468
  readonly search?: string | null | undefined;
1469
1469
  readonly limit?: string | null | undefined;
1470
1470
  readonly cursor?: string | null | undefined;
@@ -1484,8 +1484,8 @@ export declare const listSuppressions: ((input?: {
1484
1484
  readonly nextCursor: string | null;
1485
1485
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1486
1486
  readonly items: (input?: {
1487
- readonly type?: string | null | undefined;
1488
- readonly status?: string | null | undefined;
1487
+ readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | null | undefined;
1488
+ readonly status?: "active" | "expired" | null | undefined;
1489
1489
  readonly search?: string | null | undefined;
1490
1490
  readonly limit?: string | null | undefined;
1491
1491
  readonly cursor?: string | null | undefined;
@@ -1515,7 +1515,7 @@ export declare const removeSuppression: (input: {
1515
1515
  readonly message: string;
1516
1516
  }, import("./generated").EmailChannelError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1517
1517
  export declare const listBlocks: ((input?: {
1518
- readonly blockType?: string | null | undefined;
1518
+ readonly blockType?: "domain" | "email" | null | undefined;
1519
1519
  readonly isActive?: string | null | undefined;
1520
1520
  readonly limit?: string | null | undefined;
1521
1521
  readonly cursor?: string | null | undefined;
@@ -1535,7 +1535,7 @@ export declare const listBlocks: ((input?: {
1535
1535
  readonly nextCursor: string | null;
1536
1536
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
1537
1537
  readonly pages: (input?: {
1538
- readonly blockType?: string | null | undefined;
1538
+ readonly blockType?: "domain" | "email" | null | undefined;
1539
1539
  readonly isActive?: string | null | undefined;
1540
1540
  readonly limit?: string | null | undefined;
1541
1541
  readonly cursor?: string | null | undefined;
@@ -1555,7 +1555,7 @@ export declare const listBlocks: ((input?: {
1555
1555
  readonly nextCursor: string | null;
1556
1556
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1557
1557
  readonly items: (input?: {
1558
- readonly blockType?: string | null | undefined;
1558
+ readonly blockType?: "domain" | "email" | null | undefined;
1559
1559
  readonly isActive?: string | null | undefined;
1560
1560
  readonly limit?: string | null | undefined;
1561
1561
  readonly cursor?: string | null | undefined;
@@ -1573,7 +1573,7 @@ export declare const listBlocks: ((input?: {
1573
1573
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1574
1574
  };
1575
1575
  export declare const addBlock: (input: {
1576
- readonly blockType: string;
1576
+ readonly blockType: "domain" | "email";
1577
1577
  readonly blockValue: string;
1578
1578
  readonly reason: string;
1579
1579
  readonly notes?: string | null | undefined;
@@ -1587,7 +1587,7 @@ export declare const addBlock: (input: {
1587
1587
  readonly isActive: boolean;
1588
1588
  readonly expiresAt: string | null;
1589
1589
  readonly createdAt: string;
1590
- }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1590
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1591
1591
  export declare const removeBlock: (input: {
1592
1592
  readonly id: string;
1593
1593
  }) => import("effect/Effect").Effect<{
@@ -1819,7 +1819,7 @@ export declare const updateForwardingRule: (input: {
1819
1819
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1820
1820
  export declare const getForwardingLog: ((input?: {
1821
1821
  readonly forwardingRuleId?: string | null | undefined;
1822
- readonly status?: string | null | undefined;
1822
+ readonly status?: "failed" | "forwarded" | "pending" | null | undefined;
1823
1823
  readonly after?: string | null | undefined;
1824
1824
  readonly before?: string | null | undefined;
1825
1825
  readonly limit?: string | null | undefined;
@@ -1842,7 +1842,7 @@ export declare const getForwardingLog: ((input?: {
1842
1842
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>) & {
1843
1843
  readonly pages: (input?: {
1844
1844
  readonly forwardingRuleId?: string | null | undefined;
1845
- readonly status?: string | null | undefined;
1845
+ readonly status?: "failed" | "forwarded" | "pending" | null | undefined;
1846
1846
  readonly after?: string | null | undefined;
1847
1847
  readonly before?: string | null | undefined;
1848
1848
  readonly limit?: string | null | undefined;
@@ -1865,7 +1865,7 @@ export declare const getForwardingLog: ((input?: {
1865
1865
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
1866
1866
  readonly items: (input?: {
1867
1867
  readonly forwardingRuleId?: string | null | undefined;
1868
- readonly status?: string | null | undefined;
1868
+ readonly status?: "failed" | "forwarded" | "pending" | null | undefined;
1869
1869
  readonly after?: string | null | undefined;
1870
1870
  readonly before?: string | null | undefined;
1871
1871
  readonly limit?: string | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make, r as sendEmail, t as addEmailSender } from "../operation-BEghYyLu.js";
3
- import { D as TrackingRecipientEmail } from "../client-Cj1bqIEe.js";
2
+ import { n as make, r as sendEmail, t as addEmailSender } from "../operation-g8nAzmIM.js";
3
+ import { A as TrackingRecipientEmail } from "../client-CZjhOKPM.js";
4
4
  //#region src/effect/email.ts
5
5
  var email_exports = /* @__PURE__ */ __exportAll({
6
6
  TrackingRecipientEmail: () => TrackingRecipientEmail,
@@ -64,8 +64,8 @@ export declare const install: (input: {
64
64
  readonly version?: string | null | undefined;
65
65
  readonly mailboxIds?: readonly string[] | null | undefined;
66
66
  readonly namespaceId?: string | null | undefined;
67
- readonly permissions?: readonly string[] | null | undefined;
68
- readonly sendMode?: string | null | undefined;
67
+ readonly permissions?: readonly ("quarantine.read" | "read" | "send" | "update")[] | null | undefined;
68
+ readonly sendMode?: "approval" | "send" | null | undefined;
69
69
  readonly webhookUrl?: string | null | undefined;
70
70
  }) => import("effect/Effect").Effect<{
71
71
  readonly installation: {
@@ -99,6 +99,72 @@ export declare const install: (input: {
99
99
  readonly webhookSecret: import("effect/Redacted").Redacted<string>;
100
100
  } | null;
101
101
  }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
102
+ export declare const upgrade: (input: {
103
+ readonly id: string;
104
+ readonly version?: string | null | undefined;
105
+ readonly acceptPermissions?: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[] | null | undefined;
106
+ readonly dryRun?: boolean | null | undefined;
107
+ }) => import("effect/Effect").Effect<{
108
+ readonly installation: {
109
+ readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
110
+ readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
111
+ readonly name: string;
112
+ readonly displayName: string;
113
+ readonly version: {
114
+ readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
115
+ readonly version: string;
116
+ };
117
+ readonly runtime: "hosted" | "webhook";
118
+ readonly status: "active" | "disabled";
119
+ readonly createdAt: string;
120
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
121
+ readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
122
+ readonly sendMode: "approval" | "send";
123
+ readonly scope: {
124
+ readonly mailboxIds: readonly (string & import("effect/Brand").Brand<"MailboxId">)[] | null;
125
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
126
+ };
127
+ readonly webhook: {
128
+ readonly endpointId: string & import("effect/Brand").Brand<"WebhookEndpointId">;
129
+ readonly url: string;
130
+ } | null;
131
+ readonly updatedAt: string;
132
+ readonly disabledAt: string | null;
133
+ };
134
+ readonly fromVersion: {
135
+ readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
136
+ readonly version: string;
137
+ };
138
+ readonly toVersion: {
139
+ readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
140
+ readonly version: string;
141
+ };
142
+ readonly permissionDiff: {
143
+ readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
144
+ readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
145
+ };
146
+ readonly dryRun: boolean;
147
+ readonly versionChange: {
148
+ readonly id: string;
149
+ readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
150
+ readonly installationId: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
151
+ readonly extensionId: string & import("effect/Brand").Brand<"ExtensionId">;
152
+ readonly fromVersion: {
153
+ readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
154
+ readonly version: string;
155
+ };
156
+ readonly toVersion: {
157
+ readonly id: string & import("effect/Brand").Brand<"ExtensionVersionId">;
158
+ readonly version: string;
159
+ };
160
+ readonly permissionDiff: {
161
+ readonly added: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
162
+ readonly removed: readonly ("event:mailbox.action.pending_approval" | "event:mailbox.message.discarded" | "event:mailbox.message.quarantined" | "event:mailbox.message.received" | "event:mailbox.message.released" | "event:mailbox.message.sent" | "permission:quarantine.read" | "permission:read" | "permission:send" | "permission:update")[];
163
+ };
164
+ readonly changedBy: string & import("effect/Brand").Brand<"UserId">;
165
+ readonly changedAt: string;
166
+ } | null;
167
+ }, import("./generated").ConflictError | import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
102
168
  export declare const get: (input: {
103
169
  readonly id: string;
104
170
  }) => import("effect/Effect").Effect<{
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-BEghYyLu.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/extension-installations.ts
4
4
  var extension_installations_exports = /* @__PURE__ */ __exportAll({
5
5
  disable: () => disable,
@@ -9,10 +9,12 @@ var extension_installations_exports = /* @__PURE__ */ __exportAll({
9
9
  install: () => install,
10
10
  list: () => list,
11
11
  listRuns: () => listRuns,
12
- uninstall: () => uninstall
12
+ uninstall: () => uninstall,
13
+ upgrade: () => upgrade
13
14
  });
14
15
  const list = make("extensionInstallationsList");
15
16
  const install = make("extensionInstallationsInstall");
17
+ const upgrade = make("extensionInstallationsUpgrade");
16
18
  const get = make("extensionInstallationsGet");
17
19
  const uninstall = make("extensionInstallationsUninstall");
18
20
  const disable = make("extensionInstallationsDisable");
@@ -20,6 +22,6 @@ const enable = make("extensionInstallationsEnable");
20
22
  const listRuns = make("extensionInstallationsListRuns");
21
23
  const getRun = make("extensionInstallationsGetRun");
22
24
  //#endregion
23
- export { disable, enable, get, getRun, install, list, listRuns, extension_installations_exports as t, uninstall };
25
+ export { disable, enable, get, getRun, install, list, listRuns, extension_installations_exports as t, uninstall, upgrade };
24
26
 
25
27
  //# sourceMappingURL=extension-installations.js.map
@@ -65,9 +65,9 @@ export declare const publish: (input: {
65
65
  readonly displayName: string;
66
66
  readonly description?: string | null | undefined;
67
67
  readonly version: string;
68
- readonly runtime: string;
69
- readonly events: readonly string[];
70
- readonly permissions: readonly string[];
68
+ readonly runtime: "hosted" | "webhook";
69
+ readonly events: readonly ("mailbox.action.pending_approval" | "mailbox.message.discarded" | "mailbox.message.quarantined" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent")[];
70
+ readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
71
71
  };
72
72
  readonly bundle?: string | null | undefined;
73
73
  }) => import("effect/Effect").Effect<{
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-BEghYyLu.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
3
  //#region src/effect/extensions.ts
4
4
  var extensions_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -1,7 +1,7 @@
1
1
  export { SendFeedback as SendPayload } from "./generated";
2
2
  export declare const send: (input: {
3
3
  readonly message: string;
4
- readonly category?: string | null | undefined;
4
+ readonly category?: "bug" | "confusing" | "missing" | "other" | null | undefined;
5
5
  readonly context?: {
6
6
  readonly operation?: string | null | undefined;
7
7
  readonly resourceId?: string | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-BEghYyLu.js";
3
- import { T as SendFeedback } from "../client-Cj1bqIEe.js";
2
+ import { n as make } from "../operation-g8nAzmIM.js";
3
+ import { D as SendFeedback } from "../client-CZjhOKPM.js";
4
4
  //#region src/effect/feedback.ts
5
5
  var feedback_exports = /* @__PURE__ */ __exportAll({
6
6
  SendPayload: () => SendFeedback,
@@ -47,6 +47,14 @@ export declare const SamvaErrorMetadata: {
47
47
  readonly categories: readonly ["transient"];
48
48
  readonly retryable: true;
49
49
  };
50
+ readonly MailboxSendConflictError: {
51
+ readonly categories: readonly [];
52
+ readonly retryable: false;
53
+ };
54
+ readonly MailboxSendRefusedError: {
55
+ readonly categories: readonly [];
56
+ readonly retryable: false;
57
+ };
50
58
  readonly OnboardingReviewRequiredError: {
51
59
  readonly categories: readonly ["validation"];
52
60
  readonly retryable: false;
@@ -63,6 +71,10 @@ export declare const SamvaErrorMetadata: {
63
71
  readonly categories: readonly ["notFound"];
64
72
  readonly retryable: false;
65
73
  };
74
+ readonly SenderNotReadyError: {
75
+ readonly categories: readonly ["transient"];
76
+ readonly retryable: true;
77
+ };
66
78
  readonly UnauthorizedError: {
67
79
  readonly categories: readonly ["auth"];
68
80
  readonly retryable: false;