samva 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/client/sdk.gen.d.ts +72 -16
  2. package/dist/client/sdk.gen.js +216 -36
  3. package/dist/client/types.gen.d.ts +411 -65
  4. package/dist/effect/api-keys.d.ts +7 -0
  5. package/dist/effect/campaigns.d.ts +66 -3
  6. package/dist/effect/contacts.d.ts +24 -4
  7. package/dist/effect/email.d.ts +22 -6
  8. package/dist/effect/errors.d.ts +1 -1
  9. package/dist/effect/errors.js +2 -2
  10. package/dist/effect/generated/api-keys.d.ts +15 -0
  11. package/dist/effect/generated/api-keys.js +2 -0
  12. package/dist/effect/generated/campaigns.d.ts +136 -4
  13. package/dist/effect/generated/campaigns.js +22 -1
  14. package/dist/effect/generated/contacts.d.ts +131 -1
  15. package/dist/effect/generated/contacts.js +17 -2
  16. package/dist/effect/generated/email.d.ts +162 -1
  17. package/dist/effect/generated/email.js +31 -11
  18. package/dist/effect/generated/journeys.d.ts +31 -61
  19. package/dist/effect/generated/journeys.js +9 -5
  20. package/dist/effect/generated/mailboxes.d.ts +274 -78
  21. package/dist/effect/generated/mailboxes.js +28 -20
  22. package/dist/effect/generated/messages.d.ts +4 -1
  23. package/dist/effect/generated/messages.js +2 -1
  24. package/dist/effect/generated/namespaces.d.ts +432 -2
  25. package/dist/effect/generated/namespaces.js +91 -4
  26. package/dist/effect/generated/shared.d.ts +38 -29
  27. package/dist/effect/generated/shared.js +28 -23
  28. package/dist/effect/generated/templates.d.ts +80 -1
  29. package/dist/effect/generated/templates.js +18 -6
  30. package/dist/effect/generated/webhooks.d.ts +120 -0
  31. package/dist/effect/generated/webhooks.js +27 -3
  32. package/dist/effect/generated-metadata.d.ts +20 -4
  33. package/dist/effect/generated-metadata.js +4 -4
  34. package/dist/effect/index.js +2 -2
  35. package/dist/effect/journeys.d.ts +12 -4
  36. package/dist/effect/mailboxes.d.ts +11 -11
  37. package/dist/effect/messages.d.ts +3 -0
  38. package/dist/effect/namespaces.d.ts +29 -0
  39. package/dist/effect/namespaces.js +7 -1
  40. package/dist/effect/templates.d.ts +28 -1
  41. package/dist/effect/webhooks.d.ts +7 -0
  42. package/dist/effect/webhooks.js +3 -1
  43. package/dist/index.js +2 -2
  44. package/dist/package.js +1 -1
  45. package/dist/promises/errors.gen.d.ts +2 -12
  46. package/dist/promises/errors.gen.js +1 -26
  47. package/dist/promises/index.js +2 -2
  48. package/dist/promises/types.gen.d.ts +1 -1
  49. package/dist/service-map.d.ts +20 -0
  50. package/dist/service-map.js +20 -0
  51. package/package.json +5 -3
@@ -83,7 +83,7 @@ export declare const create: (input: {
83
83
  readonly domainId: string | null;
84
84
  }[];
85
85
  readonly updatedAt: string;
86
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
86
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
87
87
  export declare const get: (input: {
88
88
  readonly id: string;
89
89
  }) => import("effect/Effect").Effect<{
@@ -170,7 +170,7 @@ export declare const createEndpoint: (input: {
170
170
  readonly domainId: string | null;
171
171
  }[];
172
172
  readonly updatedAt: string;
173
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
173
+ }, import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
174
174
  export declare const updateEndpoint: (input: {
175
175
  readonly id: string;
176
176
  readonly endpointId: string;
@@ -1212,7 +1212,7 @@ export declare const sendMessage: (input: {
1212
1212
  } | null;
1213
1213
  readonly createdAt: string;
1214
1214
  readonly updatedAt: string;
1215
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1215
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1216
1216
  export declare const getMessage: (input: {
1217
1217
  readonly id: string;
1218
1218
  readonly messageId: string;
@@ -1449,7 +1449,7 @@ export declare const reply: (input: {
1449
1449
  } | null;
1450
1450
  readonly createdAt: string;
1451
1451
  readonly updatedAt: string;
1452
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1452
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1453
1453
  export declare const replyAll: (input: {
1454
1454
  readonly id: string;
1455
1455
  readonly messageId: string;
@@ -1603,7 +1603,7 @@ export declare const replyAll: (input: {
1603
1603
  } | null;
1604
1604
  readonly createdAt: string;
1605
1605
  readonly updatedAt: string;
1606
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1606
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1607
1607
  export declare const forward: (input: {
1608
1608
  readonly id: string;
1609
1609
  readonly messageId: string;
@@ -1757,7 +1757,7 @@ export declare const forward: (input: {
1757
1757
  } | null;
1758
1758
  readonly createdAt: string;
1759
1759
  readonly updatedAt: string;
1760
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1760
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1761
1761
  export declare const listQuarantine: ((input: {
1762
1762
  readonly id: string;
1763
1763
  readonly limit?: string | null | undefined;
@@ -1970,7 +1970,7 @@ export declare const createDraft: (input: {
1970
1970
  readonly contentType: string;
1971
1971
  readonly size: number;
1972
1972
  }[];
1973
- }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1973
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
1974
1974
  export declare const getDraft: (input: {
1975
1975
  readonly id: string;
1976
1976
  readonly draftId: string;
@@ -2188,7 +2188,7 @@ export declare const sendDraft: (input: {
2188
2188
  } | null;
2189
2189
  readonly createdAt: string;
2190
2190
  readonly updatedAt: string;
2191
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
2191
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
2192
2192
  export declare const listActions: ((input: {
2193
2193
  readonly id: string;
2194
2194
  readonly limit?: string | null | undefined;
@@ -2990,7 +2990,7 @@ export declare const cancelAction: (input: {
2990
2990
  } | null;
2991
2991
  readonly createdAt: string;
2992
2992
  readonly updatedAt: string;
2993
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
2993
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
2994
2994
  export declare const retryAction: (input: {
2995
2995
  readonly id: string;
2996
2996
  readonly actionId: string;
@@ -3130,7 +3130,7 @@ export declare const retryAction: (input: {
3130
3130
  } | null;
3131
3131
  readonly createdAt: string;
3132
3132
  readonly updatedAt: string;
3133
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
3133
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
3134
3134
  export declare const approveAction: (input: {
3135
3135
  readonly id: string;
3136
3136
  readonly actionId: string;
@@ -3290,7 +3290,7 @@ export declare const approveAction: (input: {
3290
3290
  readonly updatedAt: string;
3291
3291
  readonly type: "assignThread" | "call" | "changeThreadState" | "createNote" | "extensionRequest" | "updateDraft";
3292
3292
  readonly state: "allowed" | "approvalDenied" | "approvalRequired" | "approved" | "executed" | "executing" | "failed" | "policyDenied" | "proposed";
3293
- }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxChannelUnsupportedError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
3293
+ }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MailboxSendConflictError | import("./errors").MailboxSendRefusedError | import("./errors").OnboardingReviewRequiredError | import("./errors").PaymentRequiredError | import("./errors").RateLimitedError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").SenderNotReadyError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
3294
3294
  export declare const denyAction: (input: {
3295
3295
  readonly id: string;
3296
3296
  readonly actionId: string;
@@ -9,6 +9,7 @@ export declare const list: ((input?: {
9
9
  readonly conversationId?: string | null | undefined;
10
10
  readonly contactId?: string | null | undefined;
11
11
  readonly from?: string | null | undefined;
12
+ readonly namespaceId?: string | null | undefined;
12
13
  readonly after?: string | null | undefined;
13
14
  readonly before?: string | null | undefined;
14
15
  } | undefined) => import("effect/Effect").Effect<{
@@ -34,6 +35,7 @@ export declare const list: ((input?: {
34
35
  readonly conversationId?: string | null | undefined;
35
36
  readonly contactId?: string | null | undefined;
36
37
  readonly from?: string | null | undefined;
38
+ readonly namespaceId?: string | null | undefined;
37
39
  readonly after?: string | null | undefined;
38
40
  readonly before?: string | null | undefined;
39
41
  } | undefined) => import("effect/Stream").Stream<{
@@ -59,6 +61,7 @@ export declare const list: ((input?: {
59
61
  readonly conversationId?: string | null | undefined;
60
62
  readonly contactId?: string | null | undefined;
61
63
  readonly from?: string | null | undefined;
64
+ readonly namespaceId?: string | null | undefined;
62
65
  readonly after?: string | null | undefined;
63
66
  readonly before?: string | null | undefined;
64
67
  } | undefined) => import("effect/Stream").Stream<{
@@ -80,3 +80,32 @@ export declare const remove: (input: {
80
80
  }) => import("effect/Effect").Effect<{
81
81
  readonly success: boolean;
82
82
  }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
83
+ export declare const assignResource: (input: {
84
+ readonly id: string;
85
+ readonly type: "contact" | "domain" | "sender" | "template";
86
+ readonly resourceId: string;
87
+ }) => import("effect/Effect").Effect<{
88
+ readonly type: "contact" | "domain" | "sender" | "template";
89
+ readonly id: string;
90
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
91
+ }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
92
+ export declare const removeResource: (input: {
93
+ readonly id: string;
94
+ readonly type: "contact" | "domain" | "sender" | "template";
95
+ readonly resourceId: string;
96
+ }) => import("effect/Effect").Effect<{
97
+ readonly type: "contact" | "domain" | "sender" | "template";
98
+ readonly id: string;
99
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
100
+ }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
101
+ export declare const getUsage: (input: {
102
+ readonly id: string;
103
+ readonly after?: string | null | undefined;
104
+ readonly before?: string | null | undefined;
105
+ }) => import("effect/Effect").Effect<{
106
+ readonly namespaceId: string & import("effect/Brand").Brand<"NamespaceId">;
107
+ readonly periodStart: string;
108
+ readonly periodEnd: string;
109
+ readonly emailCount: number;
110
+ readonly totalMessages: number;
111
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
@@ -3,10 +3,13 @@ import { forGroup } from "./internal/operation.js";
3
3
  import { NamespacesGroup } from "./generated/namespaces.js";
4
4
  //#region src/effect/namespaces.ts
5
5
  var namespaces_exports = /* @__PURE__ */ __exportAll({
6
+ assignResource: () => assignResource,
6
7
  create: () => create,
7
8
  get: () => get,
9
+ getUsage: () => getUsage,
8
10
  list: () => list,
9
11
  remove: () => remove,
12
+ removeResource: () => removeResource,
10
13
  update: () => update
11
14
  });
12
15
  const make = /* @__PURE__ */ forGroup(NamespacesGroup);
@@ -15,7 +18,10 @@ const create = /* @__PURE__ */ make("namespacesCreate");
15
18
  const get = /* @__PURE__ */ make("namespacesGet");
16
19
  const update = /* @__PURE__ */ make("namespacesUpdate");
17
20
  const remove = /* @__PURE__ */ make("namespacesRemove");
21
+ const assignResource = /* @__PURE__ */ make("namespacesAssignResource");
22
+ const removeResource = /* @__PURE__ */ make("namespacesRemoveResource");
23
+ const getUsage = /* @__PURE__ */ make("namespacesGetUsage");
18
24
  //#endregion
19
- export { create, get, list, namespaces_exports, remove, update };
25
+ export { assignResource, create, get, getUsage, list, namespaces_exports, remove, removeResource, update };
20
26
 
21
27
  //# sourceMappingURL=namespaces.js.map
@@ -7,6 +7,8 @@ export declare const list: ((input?: {
7
7
  readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
8
8
  readonly search?: string | null | undefined;
9
9
  readonly projectId?: string | null | undefined;
10
+ readonly namespaceId?: string | null | undefined;
11
+ readonly shared?: "false" | "true" | null | undefined;
10
12
  } | undefined) => import("effect/Effect").Effect<{
11
13
  readonly items: readonly {
12
14
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
@@ -14,6 +16,8 @@ export declare const list: ((input?: {
14
16
  readonly name: string;
15
17
  readonly channel: "email";
16
18
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
19
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
20
+ readonly shared: boolean;
17
21
  readonly entryPath: string;
18
22
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
19
23
  readonly isActive: boolean;
@@ -42,6 +46,8 @@ export declare const list: ((input?: {
42
46
  readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
43
47
  readonly search?: string | null | undefined;
44
48
  readonly projectId?: string | null | undefined;
49
+ readonly namespaceId?: string | null | undefined;
50
+ readonly shared?: "false" | "true" | null | undefined;
45
51
  } | undefined) => import("effect/Stream").Stream<{
46
52
  readonly items: readonly {
47
53
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
@@ -49,6 +55,8 @@ export declare const list: ((input?: {
49
55
  readonly name: string;
50
56
  readonly channel: "email";
51
57
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
58
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
59
+ readonly shared: boolean;
52
60
  readonly entryPath: string;
53
61
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
54
62
  readonly isActive: boolean;
@@ -77,12 +85,16 @@ export declare const list: ((input?: {
77
85
  readonly status?: "approved" | "archived" | "draft" | "pending" | "published" | "rejected" | null | undefined;
78
86
  readonly search?: string | null | undefined;
79
87
  readonly projectId?: string | null | undefined;
88
+ readonly namespaceId?: string | null | undefined;
89
+ readonly shared?: "false" | "true" | null | undefined;
80
90
  } | undefined) => import("effect/Stream").Stream<{
81
91
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
82
92
  readonly slug: string;
83
93
  readonly name: string;
84
94
  readonly channel: "email";
85
95
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
96
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
97
+ readonly shared: boolean;
86
98
  readonly entryPath: string;
87
99
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
88
100
  readonly isActive: boolean;
@@ -111,6 +123,8 @@ export declare const create: (input: {
111
123
  readonly description?: string | null | undefined;
112
124
  readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
113
125
  readonly isActive?: boolean | null | undefined;
126
+ readonly namespaceId?: string | null | undefined;
127
+ readonly shared?: boolean | null | undefined;
114
128
  readonly idempotencyKey: string;
115
129
  }) => import("effect/Effect").Effect<{
116
130
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
@@ -118,6 +132,8 @@ export declare const create: (input: {
118
132
  readonly name: string;
119
133
  readonly channel: "email";
120
134
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
135
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
136
+ readonly shared: boolean;
121
137
  readonly entryPath: string;
122
138
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
123
139
  readonly isActive: boolean;
@@ -155,7 +171,7 @@ export declare const create: (input: {
155
171
  readonly inputSchema: {
156
172
  readonly [x: string]: import("./generated").JsonValue;
157
173
  } | null;
158
- }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
174
+ }, import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
159
175
  export declare const addEntry: (input: {
160
176
  readonly id: string;
161
177
  readonly entryPath: string;
@@ -169,6 +185,8 @@ export declare const addEntry: (input: {
169
185
  readonly name: string;
170
186
  readonly channel: "email";
171
187
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
188
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
189
+ readonly shared: boolean;
172
190
  readonly entryPath: string;
173
191
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
174
192
  readonly isActive: boolean;
@@ -396,6 +414,8 @@ export declare const getById: (input: {
396
414
  readonly name: string;
397
415
  readonly channel: "email";
398
416
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
417
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
418
+ readonly shared: boolean;
399
419
  readonly entryPath: string;
400
420
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
401
421
  readonly isActive: boolean;
@@ -453,6 +473,7 @@ export declare const update: (input: {
453
473
  } | null | undefined;
454
474
  readonly replyToDefault?: readonly string[] | null | undefined;
455
475
  readonly isActive?: boolean | null | undefined;
476
+ readonly shared?: boolean | null | undefined;
456
477
  };
457
478
  }) => import("effect/Effect").Effect<{
458
479
  readonly id: string & import("effect/Brand").Brand<"TemplateId">;
@@ -460,6 +481,8 @@ export declare const update: (input: {
460
481
  readonly name: string;
461
482
  readonly channel: "email";
462
483
  readonly projectId: string & import("effect/Brand").Brand<"TemplateProjectId">;
484
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
485
+ readonly shared: boolean;
463
486
  readonly entryPath: string;
464
487
  readonly status: "approved" | "archived" | "draft" | "pending" | "published" | "rejected";
465
488
  readonly isActive: boolean;
@@ -1413,10 +1436,12 @@ export declare const publish: (input: {
1413
1436
  readonly withUnsubscribe: {
1414
1437
  readonly html: string;
1415
1438
  readonly text: string;
1439
+ readonly headCss?: string | null;
1416
1440
  };
1417
1441
  readonly withoutUnsubscribe: {
1418
1442
  readonly html: string;
1419
1443
  readonly text: string;
1444
+ readonly headCss?: string | null;
1420
1445
  };
1421
1446
  };
1422
1447
  readonly digest: string;
@@ -1555,10 +1580,12 @@ export declare const getPublication: (input: {
1555
1580
  readonly withUnsubscribe: {
1556
1581
  readonly html: string;
1557
1582
  readonly text: string;
1583
+ readonly headCss?: string | null;
1558
1584
  };
1559
1585
  readonly withoutUnsubscribe: {
1560
1586
  readonly html: string;
1561
1587
  readonly text: string;
1588
+ readonly headCss?: string | null;
1562
1589
  };
1563
1590
  };
1564
1591
  readonly digest: string;
@@ -116,6 +116,13 @@ export declare const create: (input: {
116
116
  };
117
117
  readonly secret: import("effect/Redacted").Redacted<string>;
118
118
  }, import("./errors").BillingProviderError | import("./errors").ConflictError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").PaymentRequiredError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
119
+ export declare const getSecret: (input: {
120
+ readonly id: string;
121
+ }) => import("effect/Effect").Effect<{
122
+ readonly secret: import("effect/Redacted").Redacted<string>;
123
+ readonly createdAt: string;
124
+ readonly previousExpiresAt: string | null;
125
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
119
126
  export declare const get: (input: {
120
127
  readonly id: string;
121
128
  }) => import("effect/Effect").Effect<{
@@ -10,6 +10,7 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
10
10
  create: () => create,
11
11
  get: () => get,
12
12
  getLogs: () => getLogs,
13
+ getSecret: () => getSecret,
13
14
  getStats: () => getStats,
14
15
  list: () => list,
15
16
  regenerateSecret: () => regenerateSecret,
@@ -21,6 +22,7 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
21
22
  const make = /* @__PURE__ */ forGroup(WebhooksGroup);
22
23
  const list = /* @__PURE__ */ make("webhooksList");
23
24
  const create = /* @__PURE__ */ make("webhooksCreate");
25
+ const getSecret = /* @__PURE__ */ make("webhooksGetSecret");
24
26
  const get = /* @__PURE__ */ make("webhooksGet");
25
27
  const remove = /* @__PURE__ */ make("webhooksRemove");
26
28
  const update = /* @__PURE__ */ make("webhooksUpdate");
@@ -30,6 +32,6 @@ const getStats = /* @__PURE__ */ make("webhooksGetStats");
30
32
  const retryDelivery = /* @__PURE__ */ make("webhooksRetryDelivery");
31
33
  const regenerateSecret = /* @__PURE__ */ make("webhooksRegenerateSecret");
32
34
  //#endregion
33
- export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, create, get, getLogs, getStats, list, regenerateSecret, remove, retryDelivery, test, update, webhooks_exports };
35
+ export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, create, get, getLogs, getSecret, getStats, list, regenerateSecret, remove, retryDelivery, test, update, webhooks_exports };
34
36
 
35
37
  //# sourceMappingURL=webhooks.js.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { MediaUploadError } from "./inline-attachments.js";
2
2
  import { MailboxEventStream, MailboxEventStreamError } from "./mailbox-events.js";
3
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./promises/errors.gen.js";
3
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./promises/errors.gen.js";
4
4
  import { createClient } from "./promises/index.js";
5
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
5
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.19.0";
2
+ var version = "0.21.0";
3
3
  //#endregion
4
4
  export { version };
5
5
 
@@ -1,4 +1,4 @@
1
- export type SamvaApiErrorTag = "AnalyticsQueryError" | "BillingProviderError" | "BrandAddressRequiredError" | "CampaignFooterRequiredError" | "ConflictError" | "DeliveryUnavailableError" | "EmailChannelError" | "ExternalServiceError" | "FlagDisabledError" | "ForbiddenError" | "GatewayTimeoutError" | "InternalError" | "MailboxChannelUnsupportedError" | "MailboxSendConflictError" | "MailboxSendRefusedError" | "OnboardingReviewRequiredError" | "PaymentRequiredError" | "RateLimitedError" | "ResourceNotFoundError" | "SenderNotReadyError" | "UnauthorizedError" | "ValidationError";
1
+ export type SamvaApiErrorTag = "AnalyticsQueryError" | "BillingProviderError" | "BrandAddressRequiredError" | "CampaignFooterRequiredError" | "ConflictError" | "DeliveryUnavailableError" | "EmailChannelError" | "ExternalServiceError" | "FlagDisabledError" | "ForbiddenError" | "GatewayTimeoutError" | "InternalError" | "MailboxSendConflictError" | "MailboxSendRefusedError" | "OnboardingReviewRequiredError" | "PaymentRequiredError" | "RateLimitedError" | "ResourceNotFoundError" | "SenderNotReadyError" | "UnauthorizedError" | "ValidationError";
2
2
  export interface SamvaApiErrorContext {
3
3
  readonly request?: Request | undefined;
4
4
  readonly response?: Response | undefined;
@@ -132,16 +132,6 @@ export declare class InternalError extends SamvaApiError<"InternalError"> {
132
132
  readonly _tag: "InternalError";
133
133
  constructor(payload: Omit<InternalErrorPayload, "_tag">, context?: SamvaApiErrorContext);
134
134
  }
135
- type MailboxChannelUnsupportedErrorPayload = {
136
- readonly _tag: "MailboxChannelUnsupportedError";
137
- readonly channel: string;
138
- readonly message: string;
139
- };
140
- export declare class MailboxChannelUnsupportedError extends SamvaApiError<"MailboxChannelUnsupportedError"> {
141
- readonly _tag: "MailboxChannelUnsupportedError";
142
- readonly "channel": string;
143
- constructor(payload: Omit<MailboxChannelUnsupportedErrorPayload, "_tag">, context?: SamvaApiErrorContext);
144
- }
145
135
  type MailboxSendConflictErrorPayload = {
146
136
  readonly _tag: "MailboxSendConflictError";
147
137
  readonly id: string;
@@ -250,7 +240,7 @@ export declare class ValidationError extends SamvaApiError<"ValidationError"> {
250
240
  readonly "fields"?: Record<string, Array<string>> | null;
251
241
  constructor(payload: Omit<ValidationErrorPayload, "_tag">, context?: SamvaApiErrorContext);
252
242
  }
253
- export type AnySamvaApiError = AnalyticsQueryError | BillingProviderError | BrandAddressRequiredError | CampaignFooterRequiredError | ConflictError | DeliveryUnavailableError | EmailChannelError | ExternalServiceError | FlagDisabledError | ForbiddenError | GatewayTimeoutError | InternalError | MailboxChannelUnsupportedError | MailboxSendConflictError | MailboxSendRefusedError | OnboardingReviewRequiredError | PaymentRequiredError | RateLimitedError | ResourceNotFoundError | SenderNotReadyError | UnauthorizedError | ValidationError;
243
+ export type AnySamvaApiError = AnalyticsQueryError | BillingProviderError | BrandAddressRequiredError | CampaignFooterRequiredError | ConflictError | DeliveryUnavailableError | EmailChannelError | ExternalServiceError | FlagDisabledError | ForbiddenError | GatewayTimeoutError | InternalError | MailboxSendConflictError | MailboxSendRefusedError | OnboardingReviewRequiredError | PaymentRequiredError | RateLimitedError | ResourceNotFoundError | SenderNotReadyError | UnauthorizedError | ValidationError;
254
244
  /** Convert a decoded error payload into its generated JavaScript error class. */
255
245
  export declare function fromApiError(error: unknown, context?: SamvaApiErrorContext): AnySamvaApiError | SamvaTransportError;
256
246
  export {};
@@ -117,13 +117,6 @@ var InternalError = class extends SamvaApiError {
117
117
  Object.assign(this, payload);
118
118
  }
119
119
  };
120
- var MailboxChannelUnsupportedError = class extends SamvaApiError {
121
- _tag = "MailboxChannelUnsupportedError";
122
- constructor(payload, context = {}) {
123
- super(messageOf("MailboxChannelUnsupportedError", payload), context);
124
- Object.assign(this, payload);
125
- }
126
- };
127
120
  var MailboxSendConflictError = class extends SamvaApiError {
128
121
  _tag = "MailboxSendConflictError";
129
122
  constructor(payload, context = {}) {
@@ -200,7 +193,6 @@ const constructors = {
200
193
  ForbiddenError,
201
194
  GatewayTimeoutError,
202
195
  InternalError,
203
- MailboxChannelUnsupportedError,
204
196
  MailboxSendConflictError,
205
197
  MailboxSendRefusedError,
206
198
  OnboardingReviewRequiredError,
@@ -411,23 +403,6 @@ const payloadSchemas = {
411
403
  "x-category": ["transient"],
412
404
  "x-retryable": true
413
405
  },
414
- MailboxChannelUnsupportedError: {
415
- type: "object",
416
- properties: {
417
- _tag: {
418
- type: "string",
419
- enum: ["MailboxChannelUnsupportedError"]
420
- },
421
- message: { type: "string" },
422
- channel: { type: "string" }
423
- },
424
- required: [
425
- "_tag",
426
- "message",
427
- "channel"
428
- ],
429
- additionalProperties: false
430
- },
431
406
  MailboxSendConflictError: {
432
407
  type: "object",
433
408
  properties: {
@@ -1335,6 +1310,6 @@ function fromApiError(error, context = {}) {
1335
1310
  return new SamvaTransportError(error, context);
1336
1311
  }
1337
1312
  //#endregion
1338
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError };
1313
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError };
1339
1314
 
1340
1315
  //# sourceMappingURL=errors.gen.js.map
@@ -5,7 +5,7 @@ import { Analytics, ApiKeys, Attachments, Brands, Campaigns, ContactEvents, Cont
5
5
  import { MediaUploadError, mediaCreateBody, planInlineUploads, withUploadedAttachments } from "../inline-attachments.js";
6
6
  import { MailboxEventStream, MailboxEventStreamError } from "../mailbox-events.js";
7
7
  import { buildEmailSendPayload, buildMessagesSendPayload, replyToEmailsPayload } from "../normalize.js";
8
- import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./errors.gen.js";
8
+ import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, fromApiError } from "./errors.gen.js";
9
9
  //#region src/promises/index.ts
10
10
  /**
11
11
  * Samva SDK - TypeScript client for the Samva API.
@@ -284,6 +284,6 @@ function createClient(config) {
284
284
  };
285
285
  }
286
286
  //#endregion
287
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxChannelUnsupportedError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
287
+ export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxEventStream, MailboxEventStreamError, MailboxSendConflictError, MailboxSendRefusedError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaApiError, SamvaTransportError, SenderNotReadyError, UnauthorizedError, ValidationError, createClient, fromApiError };
288
288
 
289
289
  //# sourceMappingURL=index.js.map