samva 0.1.1 → 0.2.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 (35) hide show
  1. package/dist/client/sdk.gen.d.ts +120 -184
  2. package/dist/client/types.gen.d.ts +811 -418
  3. package/dist/{client-DVALvDUe.js → client-BqkU-sFv.js} +937 -576
  4. package/dist/effect/api-keys.js +1 -1
  5. package/dist/effect/campaigns.d.ts +98 -7
  6. package/dist/effect/campaigns.js +1 -1
  7. package/dist/effect/client.js +1 -1
  8. package/dist/effect/contacts.d.ts +16 -94
  9. package/dist/effect/contacts.js +1 -1
  10. package/dist/effect/conversations.d.ts +65 -50
  11. package/dist/effect/conversations.js +1 -1
  12. package/dist/effect/design.js +1 -1
  13. package/dist/effect/email.d.ts +107 -67
  14. package/dist/effect/email.js +20 -18
  15. package/dist/effect/generated.d.ts +11823 -11603
  16. package/dist/effect/index.js +1 -1
  17. package/dist/effect/messages.js +1 -1
  18. package/dist/effect/operations.d.ts +3 -3
  19. package/dist/effect/operations.js +1 -1
  20. package/dist/effect/organizations.d.ts +1 -1
  21. package/dist/effect/organizations.js +1 -1
  22. package/dist/effect/scheduled-messages.d.ts +0 -48
  23. package/dist/effect/scheduled-messages.js +1 -1
  24. package/dist/effect/templates.d.ts +262 -1018
  25. package/dist/effect/templates.js +26 -18
  26. package/dist/effect/webhooks.d.ts +6 -6
  27. package/dist/effect/webhooks.js +2 -2
  28. package/dist/index.js +1 -1
  29. package/dist/{operation-UtKNITtG.js → operation-Ccqh_yxb.js} +48 -25
  30. package/dist/promises/index.d.ts +3 -1
  31. package/dist/promises/index.js +1 -1
  32. package/dist/promises/types.gen.d.ts +1 -1
  33. package/dist/{promises-QxEfMTho.js → promises-Dgv8UmCC.js} +319 -153
  34. package/dist/service-map.d.ts +66 -40
  35. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import { C as ValidationError, a as BillingProviderError, b as UnauthorizedError, d as FlagDisabledError, f as ForbiddenError, g as ResourceNotFoundError, h as RateLimitedError, l as EmailChannelError, m as PaymentRequiredError, o as ConflictError, p as InternalError, u as ExternalServiceError, w as WebhookEnqueueError } from "../client-DVALvDUe.js";
1
+ import { C as ValidationError, a as BillingProviderError, b as UnauthorizedError, d as FlagDisabledError, f as ForbiddenError, g as ResourceNotFoundError, h as RateLimitedError, l as EmailChannelError, m as PaymentRequiredError, o as ConflictError, p as InternalError, u as ExternalServiceError, w as WebhookEnqueueError } from "../client-BqkU-sFv.js";
2
2
  import { _ as isTransient, a as catchNotFoundError, c as catchValidationError, d as isAuthError, f as isBillingError, g as isThrottlingError, h as isRetryable, i as catchConflictError, l as categoriesOf, m as isNotFoundError, n as catchBillingError, o as catchThrottlingError, p as isConflictError, r as catchCategory, s as catchTransient, t as catchAuthError, u as hasCategory, v as isValidationError } from "../categories-CsUa8ojo.js";
3
3
  import { t as retry_exports } from "./retry.js";
4
4
  import { t as api_keys_exports } from "./api-keys.js";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { i as sendMessage, n as make } from "../operation-UtKNITtG.js";
2
+ import { i as sendMessage, n as make } from "../operation-Ccqh_yxb.js";
3
3
  //#region src/effect/messages.ts
4
4
  var messages_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -19,7 +19,7 @@ export declare const list: (input?: {
19
19
  readonly status: "pending" | "failed" | "running" | "succeeded";
20
20
  readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
21
21
  readonly error: {
22
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-unavailable" | "timed-out" | "internal";
22
+ readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
23
23
  readonly message: string;
24
24
  } | null;
25
25
  readonly createdAt: string;
@@ -50,7 +50,7 @@ export declare const get: (input: {
50
50
  readonly status: "pending" | "failed" | "running" | "succeeded";
51
51
  readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
52
52
  readonly error: {
53
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-unavailable" | "timed-out" | "internal";
53
+ readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
54
54
  readonly message: string;
55
55
  } | null;
56
56
  readonly createdAt: string;
@@ -76,7 +76,7 @@ export declare const retry: (input: {
76
76
  readonly status: "pending" | "failed" | "running" | "succeeded";
77
77
  readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
78
78
  readonly error: {
79
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-unavailable" | "timed-out" | "internal";
79
+ readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
80
80
  readonly message: string;
81
81
  } | null;
82
82
  readonly createdAt: string;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-UtKNITtG.js";
2
+ import { n as make } from "../operation-Ccqh_yxb.js";
3
3
  //#region src/effect/operations.ts
4
4
  var operations_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -537,7 +537,7 @@ declare const deleteOrganization: (input: {
537
537
  readonly status: "pending" | "failed" | "running" | "succeeded";
538
538
  readonly phase: "accepted" | "dispatching" | "provisioning" | "deleting" | "finalizing" | "completed";
539
539
  readonly error: {
540
- readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-unavailable" | "timed-out" | "internal";
540
+ readonly code: "validation-failed" | "conflict" | "capacity-unavailable" | "provider-rejected" | "provider-unavailable" | "timed-out" | "internal";
541
541
  readonly message: string;
542
542
  } | null;
543
543
  readonly createdAt: string;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-UtKNITtG.js";
2
+ import { n as make } from "../operation-Ccqh_yxb.js";
3
3
  //#region src/effect/organizations.ts
4
4
  var organizations_exports = /* @__PURE__ */ __exportAll({
5
5
  bootstrap: () => bootstrap,
@@ -111,14 +111,6 @@ export declare const list: ((input?: {
111
111
  readonly email: string;
112
112
  readonly name?: string | null;
113
113
  } | null;
114
- } | {
115
- readonly kind: "editor-session-snapshot";
116
- readonly channel: "sms" | "whatsapp" | "email";
117
- readonly sessionId: string;
118
- readonly revision: string;
119
- readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
120
- readonly templateVersion: number;
121
- readonly isTest: boolean;
122
114
  };
123
115
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
124
116
  readonly idempotencyKey: string | null;
@@ -251,14 +243,6 @@ export declare const list: ((input?: {
251
243
  readonly email: string;
252
244
  readonly name?: string | null;
253
245
  } | null;
254
- } | {
255
- readonly kind: "editor-session-snapshot";
256
- readonly channel: "sms" | "whatsapp" | "email";
257
- readonly sessionId: string;
258
- readonly revision: string;
259
- readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
260
- readonly templateVersion: number;
261
- readonly isTest: boolean;
262
246
  };
263
247
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
264
248
  readonly idempotencyKey: string | null;
@@ -390,14 +374,6 @@ export declare const list: ((input?: {
390
374
  readonly email: string;
391
375
  readonly name?: string | null;
392
376
  } | null;
393
- } | {
394
- readonly kind: "editor-session-snapshot";
395
- readonly channel: "sms" | "whatsapp" | "email";
396
- readonly sessionId: string;
397
- readonly revision: string;
398
- readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
399
- readonly templateVersion: number;
400
- readonly isTest: boolean;
401
377
  };
402
378
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
403
379
  readonly idempotencyKey: string | null;
@@ -772,14 +748,6 @@ export declare const create: (input: {
772
748
  readonly email: string;
773
749
  readonly name?: string | null;
774
750
  } | null;
775
- } | {
776
- readonly kind: "editor-session-snapshot";
777
- readonly channel: "sms" | "whatsapp" | "email";
778
- readonly sessionId: string;
779
- readonly revision: string;
780
- readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
781
- readonly templateVersion: number;
782
- readonly isTest: boolean;
783
751
  };
784
752
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
785
753
  readonly idempotencyKey: string | null;
@@ -902,14 +870,6 @@ export declare const get: (input: {
902
870
  readonly email: string;
903
871
  readonly name?: string | null;
904
872
  } | null;
905
- } | {
906
- readonly kind: "editor-session-snapshot";
907
- readonly channel: "sms" | "whatsapp" | "email";
908
- readonly sessionId: string;
909
- readonly revision: string;
910
- readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
911
- readonly templateVersion: number;
912
- readonly isTest: boolean;
913
873
  };
914
874
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
915
875
  readonly idempotencyKey: string | null;
@@ -1034,14 +994,6 @@ export declare const cancel: (input: {
1034
994
  readonly email: string;
1035
995
  readonly name?: string | null;
1036
996
  } | null;
1037
- } | {
1038
- readonly kind: "editor-session-snapshot";
1039
- readonly channel: "sms" | "whatsapp" | "email";
1040
- readonly sessionId: string;
1041
- readonly revision: string;
1042
- readonly templateId: string & import("effect/Brand").Brand<"TemplateId">;
1043
- readonly templateVersion: number;
1044
- readonly isTest: boolean;
1045
997
  };
1046
998
  readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
1047
999
  readonly idempotencyKey: string | null;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-UtKNITtG.js";
2
+ import { n as make } from "../operation-Ccqh_yxb.js";
3
3
  //#region src/effect/scheduled-messages.ts
4
4
  var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
5
5
  cancel: () => cancel,