samva 0.53.0 → 0.55.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 (157) hide show
  1. package/AGENTS.md +1 -1
  2. package/README.md +1 -0
  3. package/dist/_virtual/_rolldown/runtime.js +4 -4
  4. package/dist/agent/index.js +1 -1
  5. package/dist/client/client/client.gen.js +1 -2
  6. package/dist/client/client/utils.gen.js +1 -1
  7. package/dist/client/client.gen.js +1 -1
  8. package/dist/client/sdk.gen.d.ts +96 -12
  9. package/dist/client/sdk.gen.js +314 -25
  10. package/dist/client/types.gen.d.ts +647 -13
  11. package/dist/client-attribution.js +1 -1
  12. package/dist/effect/agents.js +1 -1
  13. package/dist/effect/analytics.js +1 -1
  14. package/dist/effect/api-keys.js +1 -1
  15. package/dist/effect/approval-requests.js +1 -1
  16. package/dist/effect/attachments.js +1 -1
  17. package/dist/effect/brands.d.ts +8 -1
  18. package/dist/effect/brands.js +2 -2
  19. package/dist/effect/campaigns.d.ts +66 -56
  20. package/dist/effect/campaigns.js +1 -1
  21. package/dist/effect/categories.js +6 -6
  22. package/dist/effect/contact-groups.js +1 -1
  23. package/dist/effect/contacts.js +1 -1
  24. package/dist/effect/conversations.js +1 -1
  25. package/dist/effect/custom-fields.js +1 -1
  26. package/dist/effect/descriptors/brands.d.ts +4 -4
  27. package/dist/effect/descriptors/brands.js +4 -4
  28. package/dist/effect/descriptors/email.d.ts +21 -1
  29. package/dist/effect/descriptors/email.js +21 -1
  30. package/dist/effect/descriptors/phone-numbers.d.ts +49 -0
  31. package/dist/effect/descriptors/phone-numbers.js +47 -0
  32. package/dist/effect/descriptors/topics.d.ts +1 -1
  33. package/dist/effect/descriptors/topics.js +1 -1
  34. package/dist/effect/email.d.ts +12 -0
  35. package/dist/effect/email.js +6 -2
  36. package/dist/effect/errors.d.ts +1 -1
  37. package/dist/effect/errors.js +2 -2
  38. package/dist/effect/events.js +2 -2
  39. package/dist/effect/feedback.js +2 -2
  40. package/dist/effect/generated/accounts.d.ts +12 -1
  41. package/dist/effect/generated/accounts.js +2 -1
  42. package/dist/effect/generated/agents.js +7 -7
  43. package/dist/effect/generated/analytics.js +16 -16
  44. package/dist/effect/generated/api-keys.js +7 -7
  45. package/dist/effect/generated/approval-requests.js +1 -1
  46. package/dist/effect/generated/attachments.js +4 -4
  47. package/dist/effect/generated/brands.d.ts +78 -8
  48. package/dist/effect/generated/brands.js +21 -12
  49. package/dist/effect/generated/campaigns.d.ts +17 -1
  50. package/dist/effect/generated/campaigns.js +15 -14
  51. package/dist/effect/generated/contact-events.js +1 -1
  52. package/dist/effect/generated/contact-groups.js +12 -12
  53. package/dist/effect/generated/contacts.js +50 -50
  54. package/dist/effect/generated/conversations.js +7 -7
  55. package/dist/effect/generated/custom-fields.js +6 -6
  56. package/dist/effect/generated/email.d.ts +473 -2
  57. package/dist/effect/generated/email.js +143 -44
  58. package/dist/effect/generated/events.js +5 -5
  59. package/dist/effect/generated/feedback.js +1 -1
  60. package/dist/effect/generated/index.d.ts +3 -1
  61. package/dist/effect/generated/integrations-catalog.d.ts +16 -0
  62. package/dist/effect/generated/integrations-catalog.js +10 -6
  63. package/dist/effect/generated/integrations.js +5 -5
  64. package/dist/effect/generated/journeys.d.ts +158 -1
  65. package/dist/effect/generated/journeys.js +16 -14
  66. package/dist/effect/generated/logs.js +2 -2
  67. package/dist/effect/generated/mailboxes.d.ts +41 -3
  68. package/dist/effect/generated/mailboxes.js +48 -50
  69. package/dist/effect/generated/media.js +1 -1
  70. package/dist/effect/generated/messages.d.ts +6 -0
  71. package/dist/effect/generated/messages.js +12 -6
  72. package/dist/effect/generated/namespaces.d.ts +9 -9
  73. package/dist/effect/generated/namespaces.js +1 -1
  74. package/dist/effect/generated/newsletter-domains.js +1 -1
  75. package/dist/effect/generated/newsletter-issues.js +69 -69
  76. package/dist/effect/generated/newsletters.js +1 -1
  77. package/dist/effect/generated/operations.js +1 -1
  78. package/dist/effect/generated/organizations.d.ts +3 -0
  79. package/dist/effect/generated/organizations.js +2 -1
  80. package/dist/effect/generated/phone-numbers.d.ts +817 -0
  81. package/dist/effect/generated/phone-numbers.js +230 -0
  82. package/dist/effect/generated/policies.js +2 -2
  83. package/dist/effect/generated/scheduled-messages.js +1 -1
  84. package/dist/effect/generated/shared.d.ts +75 -14
  85. package/dist/effect/generated/shared.js +46 -17
  86. package/dist/effect/generated/subscriptions.js +1 -1
  87. package/dist/effect/generated/template-registrations.js +1 -1
  88. package/dist/effect/generated/template-share-links.js +9 -9
  89. package/dist/effect/generated/templates.d.ts +34 -1
  90. package/dist/effect/generated/templates.js +136 -121
  91. package/dist/effect/generated/topic-forms.js +1 -1
  92. package/dist/effect/generated/topics.d.ts +10 -0
  93. package/dist/effect/generated/topics.js +20 -13
  94. package/dist/effect/generated/webhooks.js +18 -18
  95. package/dist/effect/generated/whats-app-flows.js +5 -5
  96. package/dist/effect/generated/whats-app-setup-links.js +1 -1
  97. package/dist/effect/generated/whats-app.d.ts +75 -0
  98. package/dist/effect/generated/whats-app.js +43 -18
  99. package/dist/effect/generated/whoami.js +1 -1
  100. package/dist/effect/generated-metadata.d.ts +47 -1
  101. package/dist/effect/generated-metadata.js +175 -146
  102. package/dist/effect/index.d.ts +1 -0
  103. package/dist/effect/index.js +6 -5
  104. package/dist/effect/integrations-catalog.js +1 -1
  105. package/dist/effect/integrations.js +1 -1
  106. package/dist/effect/internal/client.js +6 -6
  107. package/dist/effect/internal/email-sender.js +3 -3
  108. package/dist/effect/internal/log-events.js +2 -2
  109. package/dist/effect/internal/mailbox-events.js +1 -1
  110. package/dist/effect/internal/operation.js +2 -2
  111. package/dist/effect/internal/send.js +4 -4
  112. package/dist/effect/journeys.d.ts +20 -0
  113. package/dist/effect/journeys.js +1 -1
  114. package/dist/effect/logs.js +1 -1
  115. package/dist/effect/mailboxes.d.ts +191 -191
  116. package/dist/effect/mailboxes.js +3 -3
  117. package/dist/effect/media.js +2 -2
  118. package/dist/effect/messages.js +2 -2
  119. package/dist/effect/namespaces.d.ts +2 -2
  120. package/dist/effect/namespaces.js +1 -1
  121. package/dist/effect/newsletter-domains.js +1 -1
  122. package/dist/effect/newsletter-issues.js +1 -1
  123. package/dist/effect/newsletters.js +1 -1
  124. package/dist/effect/operations.js +1 -1
  125. package/dist/effect/organizations.js +1 -1
  126. package/dist/effect/phone-numbers.d.ts +22 -0
  127. package/dist/effect/phone-numbers.js +21 -0
  128. package/dist/effect/policies.js +1 -1
  129. package/dist/effect/retry.js +3 -3
  130. package/dist/effect/scheduled-messages.d.ts +350 -350
  131. package/dist/effect/scheduled-messages.js +1 -1
  132. package/dist/effect/subscriptions.js +1 -1
  133. package/dist/effect/template-registrations.js +1 -1
  134. package/dist/effect/template-share-links.js +1 -1
  135. package/dist/effect/templates.d.ts +1 -0
  136. package/dist/effect/templates.js +2 -2
  137. package/dist/effect/topic-forms.js +1 -1
  138. package/dist/effect/topics.d.ts +70 -2
  139. package/dist/effect/topics.js +1 -1
  140. package/dist/effect/webhooks.js +2 -2
  141. package/dist/effect/whatsapp-flows.js +1 -1
  142. package/dist/effect/whatsapp-setup-links.js +1 -1
  143. package/dist/effect/whatsapp.d.ts +10 -0
  144. package/dist/effect/whatsapp.js +1 -1
  145. package/dist/effect/whoami.js +1 -1
  146. package/dist/index.js +2 -2
  147. package/dist/package.json.js +5 -0
  148. package/dist/promises/client.d.ts +3 -1
  149. package/dist/promises/client.js +7 -5
  150. package/dist/promises/errors.gen.d.ts +16 -2
  151. package/dist/promises/errors.gen.js +48 -11
  152. package/dist/promises/index.js +3 -3
  153. package/dist/promises/types.gen.d.ts +1 -1
  154. package/dist/request-policy.js +1 -1
  155. package/dist/service-map.d.ts +40 -5
  156. package/package.json +9 -5
  157. package/dist/package.js +0 -5
@@ -1,4 +1,4 @@
1
- import { version } from "./package.js";
1
+ import { version } from "./package.json.js";
2
2
  // src/client-attribution.ts
3
3
  const SDK_VERSION = version;
4
4
  const CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { agentsOperations } from "./descriptors/agents.js";
4
3
  import { AgentsGroup } from "./generated/agents.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/agents.ts
6
6
  var agents_exports = /* @__PURE__ */ __exportAll({
7
7
  continueOnStandard: () => continueOnStandard,
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { analyticsOperations } from "./descriptors/analytics.js";
4
3
  import { AnalyticsGroup } from "./generated/analytics.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/analytics.ts
6
6
  var analytics_exports = /* @__PURE__ */ __exportAll({
7
7
  exportData: () => exportData,
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { apiKeysOperations } from "./descriptors/api-keys.js";
4
3
  import { APIKeysGroup, ApiKeysCreateRequestJson, ApiKeysUpdateRequestJson } from "./generated/api-keys.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/api-keys.ts
6
6
  var api_keys_exports = /* @__PURE__ */ __exportAll({
7
7
  CreatePayload: () => ApiKeysCreateRequestJson,
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { approvalRequestsOperations } from "./descriptors/approval-requests.js";
4
3
  import { ApprovalRequestsGroup } from "./generated/approval-requests.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/approval-requests.ts
6
6
  var approval_requests_exports = /* @__PURE__ */ __exportAll({
7
7
  approve: () => approve,
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { attachmentsOperations } from "./descriptors/attachments.js";
4
3
  import { AttachmentsGroup } from "./generated/attachments.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/attachments.ts
6
6
  var attachments_exports = /* @__PURE__ */ __exportAll({
7
7
  downloadUrl: () => downloadUrl,
@@ -1,6 +1,9 @@
1
1
  export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared.js";
2
- export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsList">;
2
+ export declare const list: (input?: {
3
+ readonly namespaceId?: string | undefined;
4
+ } | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsList">;
3
5
  export declare const create: (input: {
6
+ readonly namespaceId?: string | null | undefined;
4
7
  readonly slug: string;
5
8
  readonly name: string;
6
9
  readonly css?: string | null | undefined;
@@ -29,9 +32,11 @@ export declare const create: (input: {
29
32
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsCreate">;
30
33
  export declare const get: (input: {
31
34
  readonly slug: string;
35
+ readonly namespaceId?: string | undefined;
32
36
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsGet">;
33
37
  export declare const update: (input: {
34
38
  readonly slug: string;
39
+ readonly namespaceId?: string | null | undefined;
35
40
  readonly newSlug?: string | null | undefined;
36
41
  readonly name?: string | null | undefined;
37
42
  readonly css?: string | null | undefined;
@@ -59,7 +64,9 @@ export declare const update: (input: {
59
64
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsUpdate">;
60
65
  export declare const remove: (input: {
61
66
  readonly slug: string;
67
+ readonly namespaceId?: string | undefined;
62
68
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsRemove">;
63
69
  export declare const setDefault: (input: {
64
70
  readonly slug: string;
71
+ readonly namespaceId?: string | undefined;
65
72
  }, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsSetDefault">;
@@ -1,8 +1,8 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { CreateBrand, UpdateBrand } from "./generated/shared.js";
3
- import { forGroup } from "./internal/operation.js";
4
2
  import { brandsOperations } from "./descriptors/brands.js";
5
3
  import { BrandsGroup } from "./generated/brands.js";
4
+ import { forGroup } from "./internal/operation.js";
5
+ import { CreateBrand, UpdateBrand } from "./generated/shared.js";
6
6
  // src/effect/brands.ts
7
7
  var brands_exports = /* @__PURE__ */ __exportAll({
8
8
  CreatePayload: () => CreateBrand,
@@ -734,20 +734,6 @@ export declare const list: ((input?: {
734
734
  readonly name: string;
735
735
  readonly channel: "email" | "sms" | "whatsapp";
736
736
  readonly content: {
737
- readonly channel: "sms";
738
- readonly sms: {
739
- readonly text?: string | null;
740
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
741
- readonly templateSlug?: string | null;
742
- readonly templateData?: {
743
- readonly [x: string]: import("./generated/index.js").JsonValue;
744
- } | null;
745
- };
746
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
747
- readonly metadata?: {
748
- readonly [x: string]: import("./generated/index.js").JsonValue;
749
- } | null;
750
- } | {
751
737
  readonly channel: "email";
752
738
  readonly email: {
753
739
  readonly subject?: string | null;
@@ -797,6 +783,20 @@ export declare const list: ((input?: {
797
783
  readonly metadata?: {
798
784
  readonly [x: string]: import("./generated/index.js").JsonValue;
799
785
  } | null;
786
+ } | {
787
+ readonly channel: "sms";
788
+ readonly sms: {
789
+ readonly text?: string | null;
790
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
791
+ readonly templateSlug?: string | null;
792
+ readonly templateData?: {
793
+ readonly [x: string]: import("./generated/index.js").JsonValue;
794
+ } | null;
795
+ };
796
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
797
+ readonly metadata?: {
798
+ readonly [x: string]: import("./generated/index.js").JsonValue;
799
+ } | null;
800
800
  } | {
801
801
  readonly channel: "whatsapp";
802
802
  readonly whatsapp: {
@@ -860,20 +860,6 @@ export declare const list: ((input?: {
860
860
  readonly name: string;
861
861
  readonly channel: "email" | "sms" | "whatsapp";
862
862
  readonly content: {
863
- readonly channel: "sms";
864
- readonly sms: {
865
- readonly text?: string | null;
866
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
867
- readonly templateSlug?: string | null;
868
- readonly templateData?: {
869
- readonly [x: string]: import("./generated/index.js").JsonValue;
870
- } | null;
871
- };
872
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
873
- readonly metadata?: {
874
- readonly [x: string]: import("./generated/index.js").JsonValue;
875
- } | null;
876
- } | {
877
863
  readonly channel: "email";
878
864
  readonly email: {
879
865
  readonly subject?: string | null;
@@ -923,6 +909,20 @@ export declare const list: ((input?: {
923
909
  readonly metadata?: {
924
910
  readonly [x: string]: import("./generated/index.js").JsonValue;
925
911
  } | null;
912
+ } | {
913
+ readonly channel: "sms";
914
+ readonly sms: {
915
+ readonly text?: string | null;
916
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
917
+ readonly templateSlug?: string | null;
918
+ readonly templateData?: {
919
+ readonly [x: string]: import("./generated/index.js").JsonValue;
920
+ } | null;
921
+ };
922
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
923
+ readonly metadata?: {
924
+ readonly [x: string]: import("./generated/index.js").JsonValue;
925
+ } | null;
926
926
  } | {
927
927
  readonly channel: "whatsapp";
928
928
  readonly whatsapp: {
@@ -1250,20 +1250,6 @@ export declare const listRuns: ((input: {
1250
1250
  readonly startedAt: string | null;
1251
1251
  readonly completedAt: string | null;
1252
1252
  readonly contentSnapshot: {
1253
- readonly channel: "sms";
1254
- readonly sms: {
1255
- readonly text?: string | null;
1256
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1257
- readonly templateSlug?: string | null;
1258
- readonly templateData?: {
1259
- readonly [x: string]: import("./generated/index.js").JsonValue;
1260
- } | null;
1261
- };
1262
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1263
- readonly metadata?: {
1264
- readonly [x: string]: import("./generated/index.js").JsonValue;
1265
- } | null;
1266
- } | {
1267
1253
  readonly channel: "email";
1268
1254
  readonly email: {
1269
1255
  readonly subject?: string | null;
@@ -1313,6 +1299,20 @@ export declare const listRuns: ((input: {
1313
1299
  readonly metadata?: {
1314
1300
  readonly [x: string]: import("./generated/index.js").JsonValue;
1315
1301
  } | null;
1302
+ } | {
1303
+ readonly channel: "sms";
1304
+ readonly sms: {
1305
+ readonly text?: string | null;
1306
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1307
+ readonly templateSlug?: string | null;
1308
+ readonly templateData?: {
1309
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1310
+ } | null;
1311
+ };
1312
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1313
+ readonly metadata?: {
1314
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1315
+ } | null;
1316
1316
  } | {
1317
1317
  readonly channel: "whatsapp";
1318
1318
  readonly whatsapp: {
@@ -1380,20 +1380,6 @@ export declare const listRuns: ((input: {
1380
1380
  readonly startedAt: string | null;
1381
1381
  readonly completedAt: string | null;
1382
1382
  readonly contentSnapshot: {
1383
- readonly channel: "sms";
1384
- readonly sms: {
1385
- readonly text?: string | null;
1386
- readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1387
- readonly templateSlug?: string | null;
1388
- readonly templateData?: {
1389
- readonly [x: string]: import("./generated/index.js").JsonValue;
1390
- } | null;
1391
- };
1392
- readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1393
- readonly metadata?: {
1394
- readonly [x: string]: import("./generated/index.js").JsonValue;
1395
- } | null;
1396
- } | {
1397
1383
  readonly channel: "email";
1398
1384
  readonly email: {
1399
1385
  readonly subject?: string | null;
@@ -1443,6 +1429,20 @@ export declare const listRuns: ((input: {
1443
1429
  readonly metadata?: {
1444
1430
  readonly [x: string]: import("./generated/index.js").JsonValue;
1445
1431
  } | null;
1432
+ } | {
1433
+ readonly channel: "sms";
1434
+ readonly sms: {
1435
+ readonly text?: string | null;
1436
+ readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
1437
+ readonly templateSlug?: string | null;
1438
+ readonly templateData?: {
1439
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1440
+ } | null;
1441
+ };
1442
+ readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
1443
+ readonly metadata?: {
1444
+ readonly [x: string]: import("./generated/index.js").JsonValue;
1445
+ } | null;
1446
1446
  } | {
1447
1447
  readonly channel: "whatsapp";
1448
1448
  readonly whatsapp: {
@@ -1533,6 +1533,11 @@ export declare const listRecipients: ((input: {
1533
1533
  readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
1534
1534
  readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
1535
1535
  readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
1536
+ readonly contact: {
1537
+ readonly id: string & import("effect/Brand").Brand<"ContactId">;
1538
+ readonly name: string;
1539
+ readonly displayName: string | null;
1540
+ } | null;
1536
1541
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1537
1542
  readonly messageId: string | null;
1538
1543
  readonly failureReason: string | null;
@@ -1552,6 +1557,11 @@ export declare const listRecipients: ((input: {
1552
1557
  readonly id: string & import("effect/Brand").Brand<"CampaignRecipientId">;
1553
1558
  readonly runId: string & import("effect/Brand").Brand<"CampaignRunId">;
1554
1559
  readonly contactId: string & import("effect/Brand").Brand<"ContactId">;
1560
+ readonly contact: {
1561
+ readonly id: string & import("effect/Brand").Brand<"ContactId">;
1562
+ readonly name: string;
1563
+ readonly displayName: string | null;
1564
+ } | null;
1555
1565
  readonly status: "dispatched" | "dispatching" | "failed" | "pending" | "skipped";
1556
1566
  readonly messageId: string | null;
1557
1567
  readonly failureReason: string | null;
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { campaignsOperations } from "./descriptors/campaigns.js";
4
3
  import { CampaignsGroup } from "./generated/campaigns.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/campaigns.ts
6
6
  var campaigns_exports = /* @__PURE__ */ __exportAll({
7
7
  archive: () => archive,
@@ -1,6 +1,6 @@
1
- import { SamvaErrorMetadata } from "./generated-metadata.js";
2
1
  import { Effect } from "effect";
3
- import * as Predicate$1 from "effect/Predicate";
2
+ import * as Predicate from "effect/Predicate";
3
+ import { SamvaErrorMetadata } from "./generated-metadata.js";
4
4
  // src/effect/categories.ts
5
5
  /**
6
6
  * Semantic error-category helpers for the Effect SDK.
@@ -23,7 +23,7 @@ import * as Predicate$1 from "effect/Predicate";
23
23
  */
24
24
  const metadata = SamvaErrorMetadata;
25
25
  const outcomeOf = (error) => {
26
- if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return void 0;
26
+ if (!Predicate.isObject(error) || typeof error._tag !== "string") return void 0;
27
27
  const entry = metadata[error._tag];
28
28
  if (entry?.rules === void 0) return entry;
29
29
  const value = error[entry.rules.field];
@@ -46,12 +46,12 @@ const isBillingError = categoryGuard("billing");
46
46
  * attempt — retrying them would loop forever.
47
47
  */
48
48
  const isRequestTransportError = (error) => {
49
- if (!Predicate$1.isTagged(error, "HttpClientError")) return false;
49
+ if (!Predicate.isTagged(error, "HttpClientError")) return false;
50
50
  const reason = error.reason;
51
- return Predicate$1.isObject(reason) && Predicate$1.isTagged(reason, "TransportError");
51
+ return Predicate.isObject(reason) && Predicate.isTagged(reason, "TransportError");
52
52
  };
53
53
  /** A request attempt that outlasted its `timeoutMs`; it fails like a lost response. */
54
- const isAttemptTimeout = (error) => Predicate$1.isTagged(error, "SamvaTimeoutError");
54
+ const isAttemptTimeout = (error) => Predicate.isTagged(error, "SamvaTimeoutError");
55
55
  /** True for transient failures, including raw request-transport errors and attempt timeouts. */
56
56
  const isTransient = (error) => hasCategory(error, "transient") || isRequestTransportError(error) || isAttemptTimeout(error);
57
57
  /** True when an error is declared safe to retry (throttling / transient / transport / timeout). */
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { contactGroupsOperations } from "./descriptors/contact-groups.js";
4
3
  import { ContactGroupsGroup } from "./generated/contact-groups.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/contact-groups.ts
6
6
  var contact_groups_exports = /* @__PURE__ */ __exportAll({
7
7
  addMembers: () => addMembers,
@@ -1,8 +1,8 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { contactsOperations } from "./descriptors/contacts.js";
4
3
  import { ContactEventsGroup } from "./generated/contact-events.js";
5
4
  import { ContactsGroup } from "./generated/contacts.js";
5
+ import { forGroup } from "./internal/operation.js";
6
6
  // src/effect/contacts.ts
7
7
  var contacts_exports = /* @__PURE__ */ __exportAll({
8
8
  addIdentity: () => addIdentity,
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { conversationsOperations } from "./descriptors/conversations.js";
4
3
  import { ConversationsGroup } from "./generated/conversations.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/conversations.ts
6
6
  var conversations_exports = /* @__PURE__ */ __exportAll({
7
7
  addCategories: () => addCategories,
@@ -1,7 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { forGroup } from "./internal/operation.js";
3
2
  import { customFieldsOperations } from "./descriptors/custom-fields.js";
4
3
  import { CustomFieldsGroup } from "./generated/custom-fields.js";
4
+ import { forGroup } from "./internal/operation.js";
5
5
  // src/effect/custom-fields.ts
6
6
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
7
7
  create: () => create,
@@ -5,7 +5,7 @@ export declare const brandsOperations: {
5
5
  readonly idempotent: false;
6
6
  readonly paginated: false;
7
7
  readonly call: {
8
- readonly kind: "none";
8
+ readonly kind: "params";
9
9
  };
10
10
  };
11
11
  readonly brandsCreate: {
@@ -23,7 +23,7 @@ export declare const brandsOperations: {
23
23
  readonly idempotent: false;
24
24
  readonly paginated: false;
25
25
  readonly call: {
26
- readonly kind: "path";
26
+ readonly kind: "pathParams";
27
27
  readonly paths: readonly ["slug"];
28
28
  };
29
29
  };
@@ -43,7 +43,7 @@ export declare const brandsOperations: {
43
43
  readonly idempotent: false;
44
44
  readonly paginated: false;
45
45
  readonly call: {
46
- readonly kind: "path";
46
+ readonly kind: "pathParams";
47
47
  readonly paths: readonly ["slug"];
48
48
  };
49
49
  };
@@ -53,7 +53,7 @@ export declare const brandsOperations: {
53
53
  readonly idempotent: false;
54
54
  readonly paginated: false;
55
55
  readonly call: {
56
- readonly kind: "path";
56
+ readonly kind: "pathParams";
57
57
  readonly paths: readonly ["slug"];
58
58
  };
59
59
  };
@@ -5,7 +5,7 @@ const brandsOperations = {
5
5
  method: "GET",
6
6
  idempotent: false,
7
7
  paginated: false,
8
- call: { kind: "none" }
8
+ call: { kind: "params" }
9
9
  },
10
10
  brandsCreate: {
11
11
  group: "Brands",
@@ -20,7 +20,7 @@ const brandsOperations = {
20
20
  idempotent: false,
21
21
  paginated: false,
22
22
  call: {
23
- kind: "path",
23
+ kind: "pathParams",
24
24
  paths: ["slug"]
25
25
  }
26
26
  },
@@ -40,7 +40,7 @@ const brandsOperations = {
40
40
  idempotent: false,
41
41
  paginated: false,
42
42
  call: {
43
- kind: "path",
43
+ kind: "pathParams",
44
44
  paths: ["slug"]
45
45
  }
46
46
  },
@@ -50,7 +50,7 @@ const brandsOperations = {
50
50
  idempotent: false,
51
51
  paginated: false,
52
52
  call: {
53
- kind: "path",
53
+ kind: "pathParams",
54
54
  paths: ["slug"]
55
55
  }
56
56
  }
@@ -8,6 +8,16 @@ export declare const emailOperations: {
8
8
  readonly kind: "payload";
9
9
  };
10
10
  };
11
+ readonly emailGetDeliverabilityInsights: {
12
+ readonly group: "Email";
13
+ readonly method: "GET";
14
+ readonly idempotent: false;
15
+ readonly paginated: false;
16
+ readonly call: {
17
+ readonly kind: "pathParams";
18
+ readonly paths: readonly ["id"];
19
+ };
20
+ };
11
21
  readonly emailGetOnboardingReview: {
12
22
  readonly group: "Email";
13
23
  readonly method: "GET";
@@ -275,7 +285,7 @@ export declare const emailOperations: {
275
285
  readonly idempotent: false;
276
286
  readonly paginated: false;
277
287
  readonly call: {
278
- readonly kind: "path";
288
+ readonly kind: "pathParams";
279
289
  readonly paths: readonly ["id"];
280
290
  };
281
291
  };
@@ -327,6 +337,16 @@ export declare const emailOperations: {
327
337
  readonly paths: readonly ["id"];
328
338
  };
329
339
  };
340
+ readonly emailUpdateSender: {
341
+ readonly group: "Email";
342
+ readonly method: "PATCH";
343
+ readonly idempotent: false;
344
+ readonly paginated: false;
345
+ readonly call: {
346
+ readonly kind: "pathPayload";
347
+ readonly paths: readonly ["id"];
348
+ };
349
+ };
330
350
  readonly emailRemoveSender: {
331
351
  readonly group: "Email";
332
352
  readonly method: "DELETE";
@@ -7,6 +7,16 @@ const emailOperations = {
7
7
  paginated: false,
8
8
  call: { kind: "payload" }
9
9
  },
10
+ emailGetDeliverabilityInsights: {
11
+ group: "Email",
12
+ method: "GET",
13
+ idempotent: false,
14
+ paginated: false,
15
+ call: {
16
+ kind: "pathParams",
17
+ paths: ["id"]
18
+ }
19
+ },
10
20
  emailGetOnboardingReview: {
11
21
  group: "Email",
12
22
  method: "GET",
@@ -256,7 +266,7 @@ const emailOperations = {
256
266
  idempotent: false,
257
267
  paginated: false,
258
268
  call: {
259
- kind: "path",
269
+ kind: "pathParams",
260
270
  paths: ["id"]
261
271
  }
262
272
  },
@@ -304,6 +314,16 @@ const emailOperations = {
304
314
  paths: ["id"]
305
315
  }
306
316
  },
317
+ emailUpdateSender: {
318
+ group: "Email",
319
+ method: "PATCH",
320
+ idempotent: false,
321
+ paginated: false,
322
+ call: {
323
+ kind: "pathPayload",
324
+ paths: ["id"]
325
+ }
326
+ },
307
327
  emailRemoveSender: {
308
328
  group: "Email",
309
329
  method: "DELETE",
@@ -0,0 +1,49 @@
1
+ export declare const phoneNumbersOperations: {
2
+ readonly phoneNumbersSearchAvailableNumbers: {
3
+ readonly group: "Phone numbers";
4
+ readonly method: "GET";
5
+ readonly idempotent: false;
6
+ readonly paginated: false;
7
+ readonly call: {
8
+ readonly kind: "params";
9
+ };
10
+ };
11
+ readonly phoneNumbersPurchaseNumber: {
12
+ readonly group: "Phone numbers";
13
+ readonly method: "POST";
14
+ readonly idempotent: false;
15
+ readonly paginated: false;
16
+ readonly call: {
17
+ readonly kind: "payload";
18
+ };
19
+ };
20
+ readonly phoneNumbersListPhoneNumbers: {
21
+ readonly group: "Phone numbers";
22
+ readonly method: "GET";
23
+ readonly idempotent: false;
24
+ readonly paginated: false;
25
+ readonly call: {
26
+ readonly kind: "params";
27
+ };
28
+ };
29
+ readonly phoneNumbersGetPhoneNumber: {
30
+ readonly group: "Phone numbers";
31
+ readonly method: "GET";
32
+ readonly idempotent: false;
33
+ readonly paginated: false;
34
+ readonly call: {
35
+ readonly kind: "path";
36
+ readonly paths: readonly ["id"];
37
+ };
38
+ };
39
+ readonly phoneNumbersReleasePhoneNumber: {
40
+ readonly group: "Phone numbers";
41
+ readonly method: "DELETE";
42
+ readonly idempotent: false;
43
+ readonly paginated: false;
44
+ readonly call: {
45
+ readonly kind: "path";
46
+ readonly paths: readonly ["id"];
47
+ };
48
+ };
49
+ };
@@ -0,0 +1,47 @@
1
+ // src/effect/descriptors/phone-numbers.ts
2
+ const phoneNumbersOperations = {
3
+ phoneNumbersSearchAvailableNumbers: {
4
+ group: "Phone numbers",
5
+ method: "GET",
6
+ idempotent: false,
7
+ paginated: false,
8
+ call: { kind: "params" }
9
+ },
10
+ phoneNumbersPurchaseNumber: {
11
+ group: "Phone numbers",
12
+ method: "POST",
13
+ idempotent: false,
14
+ paginated: false,
15
+ call: { kind: "payload" }
16
+ },
17
+ phoneNumbersListPhoneNumbers: {
18
+ group: "Phone numbers",
19
+ method: "GET",
20
+ idempotent: false,
21
+ paginated: false,
22
+ call: { kind: "params" }
23
+ },
24
+ phoneNumbersGetPhoneNumber: {
25
+ group: "Phone numbers",
26
+ method: "GET",
27
+ idempotent: false,
28
+ paginated: false,
29
+ call: {
30
+ kind: "path",
31
+ paths: ["id"]
32
+ }
33
+ },
34
+ phoneNumbersReleasePhoneNumber: {
35
+ group: "Phone numbers",
36
+ method: "DELETE",
37
+ idempotent: false,
38
+ paginated: false,
39
+ call: {
40
+ kind: "path",
41
+ paths: ["id"]
42
+ }
43
+ }
44
+ };
45
+ export { phoneNumbersOperations };
46
+
47
+ //# sourceMappingURL=phone-numbers.js.map
@@ -3,7 +3,7 @@ export declare const topicsOperations: {
3
3
  readonly group: "Topics";
4
4
  readonly method: "GET";
5
5
  readonly idempotent: false;
6
- readonly paginated: false;
6
+ readonly paginated: true;
7
7
  readonly call: {
8
8
  readonly kind: "params";
9
9
  };
@@ -4,7 +4,7 @@ const topicsOperations = {
4
4
  group: "Topics",
5
5
  method: "GET",
6
6
  idempotent: false,
7
- paginated: false,
7
+ paginated: true,
8
8
  call: { kind: "params" }
9
9
  },
10
10
  topicsCreate: {