samva 0.14.0 → 0.16.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 (52) hide show
  1. package/README.md +6 -0
  2. package/dist/{categories-BGUBFdH9.js → categories-DV51kr2H.js} +5 -1
  3. package/dist/client/sdk.gen.d.ts +74 -45
  4. package/dist/client/types.gen.d.ts +356 -212
  5. package/dist/{client-CZjhOKPM.js → client-BMUew5Wp.js} +307 -198
  6. package/dist/effect/analytics.js +1 -1
  7. package/dist/effect/api-keys.d.ts +1 -0
  8. package/dist/effect/api-keys.js +5 -2
  9. package/dist/effect/attachments.js +1 -1
  10. package/dist/effect/brands.js +2 -2
  11. package/dist/effect/campaigns.js +1 -1
  12. package/dist/effect/categories.js +1 -1
  13. package/dist/effect/client.js +1 -1
  14. package/dist/effect/contact-groups.js +1 -1
  15. package/dist/effect/contacts.js +1 -1
  16. package/dist/effect/conversations.js +1 -1
  17. package/dist/effect/custom-fields.js +1 -1
  18. package/dist/effect/email.d.ts +0 -18
  19. package/dist/effect/email.js +3 -7
  20. package/dist/effect/extension-installations.js +1 -1
  21. package/dist/effect/extensions.js +1 -1
  22. package/dist/effect/feedback.js +2 -2
  23. package/dist/effect/generated-metadata.d.ts +4 -0
  24. package/dist/effect/generated.d.ts +1477 -1250
  25. package/dist/effect/index.d.ts +2 -1
  26. package/dist/effect/index.js +6 -5
  27. package/dist/effect/mailboxes.d.ts +191 -92
  28. package/dist/effect/mailboxes.js +2 -2
  29. package/dist/effect/media.js +1 -1
  30. package/dist/effect/messages.js +1 -1
  31. package/dist/effect/namespaces.js +1 -1
  32. package/dist/effect/operations.js +1 -1
  33. package/dist/effect/organizations.js +1 -1
  34. package/dist/effect/retry.js +1 -1
  35. package/dist/effect/scheduled-messages.js +1 -1
  36. package/dist/effect/subscriptions.js +1 -1
  37. package/dist/effect/templates.js +2 -2
  38. package/dist/effect/unsubscribe-groups.js +1 -1
  39. package/dist/effect/webhooks.js +2 -2
  40. package/dist/effect/whoami.d.ts +46 -0
  41. package/dist/effect/whoami.js +9 -0
  42. package/dist/index.js +3 -3
  43. package/dist/{inline-attachments-BrNnSMF2.js → inline-attachments-Cegg6tTF.js} +2 -2
  44. package/dist/{mailboxes-DT02zP7q.js → mailboxes-Thp5z0oX.js} +10 -4
  45. package/dist/{operation-g8nAzmIM.js → operation-BTXjPrwf.js} +18 -12
  46. package/dist/promises/errors.gen.d.ts +12 -2
  47. package/dist/promises/index.d.ts +3 -1
  48. package/dist/promises/index.js +3 -3
  49. package/dist/promises/types.gen.d.ts +1 -1
  50. package/dist/{promises-BFRKhpSS.js → promises-KrA2nSLg.js} +224 -84
  51. package/dist/service-map.d.ts +21 -10
  52. package/package.json +6 -2
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/analytics.ts
4
4
  var analytics_exports = /* @__PURE__ */ __exportAll({
5
5
  exportData: () => exportData,
@@ -1,3 +1,4 @@
1
+ export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, } from "./generated";
1
2
  export declare const list: ((input?: {
2
3
  readonly limit?: string | null | undefined;
3
4
  readonly cursor?: string | null | undefined;
@@ -1,7 +1,10 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
+ import { o as ApiKeysCreateRequestJson, s as ApiKeysUpdateRequestJson } from "../client-BMUew5Wp.js";
3
4
  //#region src/effect/api-keys.ts
4
5
  var api_keys_exports = /* @__PURE__ */ __exportAll({
6
+ CreatePayload: () => ApiKeysCreateRequestJson,
7
+ UpdatePayload: () => ApiKeysUpdateRequestJson,
5
8
  create: () => create,
6
9
  get: () => get,
7
10
  getActivity: () => getActivity,
@@ -20,6 +23,6 @@ const rotate = make("apiKeysRotate");
20
23
  const getStats = make("apiKeysGetStats");
21
24
  const getActivity = make("apiKeysGetActivity");
22
25
  //#endregion
23
- export { create, get, getActivity, getStats, list, revoke, rotate, api_keys_exports as t, update };
26
+ export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, create, get, getActivity, getStats, list, revoke, rotate, api_keys_exports as t, update };
24
27
 
25
28
  //# sourceMappingURL=api-keys.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/attachments.ts
4
4
  var attachments_exports = /* @__PURE__ */ __exportAll({
5
5
  downloadUrl: () => downloadUrl,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
3
- import { M as UpdateBrand, u as CreateBrand } from "../client-CZjhOKPM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
+ import { F as UpdateBrand, f as CreateBrand } from "../client-BMUew5Wp.js";
4
4
  //#region src/effect/brands.ts
5
5
  var brands_exports = /* @__PURE__ */ __exportAll({
6
6
  CreatePayload: () => CreateBrand,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/campaigns.ts
4
4
  var campaigns_exports = /* @__PURE__ */ __exportAll({
5
5
  archive: () => archive,
@@ -1,2 +1,2 @@
1
- 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-BGUBFdH9.js";
1
+ 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-DV51kr2H.js";
2
2
  export { catchAuthError, catchBillingError, catchCategory, catchConflictError, catchNotFoundError, catchThrottlingError, catchTransient, catchValidationError, categoriesOf, hasCategory, isAuthError, isBillingError, isConflictError, isNotFoundError, isRetryable, isThrottlingError, isTransient, isValidationError };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-CZjhOKPM.js";
2
+ import { i as raw, n as layer, r as layerFetch, t as Service } from "../client-BMUew5Wp.js";
3
3
  //#region src/effect/client.ts
4
4
  var client_exports = /* @__PURE__ */ __exportAll({
5
5
  Service: () => Service,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/contact-groups.ts
4
4
  var contact_groups_exports = /* @__PURE__ */ __exportAll({
5
5
  addMembers: () => addMembers,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/contacts.ts
4
4
  var contacts_exports = /* @__PURE__ */ __exportAll({
5
5
  addIdentity: () => addIdentity,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/conversations.ts
4
4
  var conversations_exports = /* @__PURE__ */ __exportAll({
5
5
  addCategories: () => addCategories,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/custom-fields.ts
4
4
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,
@@ -55,7 +55,6 @@ export declare const listDomains: ((input?: {
55
55
  readonly dkimSelector?: string | null;
56
56
  readonly dkimPublicKey?: string | null;
57
57
  readonly isDefault: boolean;
58
- readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
59
58
  readonly deliverability: {
60
59
  readonly bounceRate: number;
61
60
  readonly complaintRate: number;
@@ -80,7 +79,6 @@ export declare const listDomains: ((input?: {
80
79
  readonly dkimSelector?: string | null;
81
80
  readonly dkimPublicKey?: string | null;
82
81
  readonly isDefault: boolean;
83
- readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
84
82
  readonly deliverability: {
85
83
  readonly bounceRate: number;
86
84
  readonly complaintRate: number;
@@ -104,7 +102,6 @@ export declare const listDomains: ((input?: {
104
102
  readonly dkimSelector?: string | null;
105
103
  readonly dkimPublicKey?: string | null;
106
104
  readonly isDefault: boolean;
107
- readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
108
105
  readonly deliverability: {
109
106
  readonly bounceRate: number;
110
107
  readonly complaintRate: number;
@@ -138,7 +135,6 @@ export declare const addDomain: (input: {
138
135
  }[];
139
136
  readonly verifiedAt: string | null;
140
137
  readonly isDefault: boolean;
141
- readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
142
138
  readonly deliverability: {
143
139
  readonly bounceRate: number;
144
140
  readonly complaintRate: number;
@@ -418,7 +414,6 @@ export declare const getDomainById: (input: {
418
414
  }[];
419
415
  readonly verifiedAt: string | null;
420
416
  readonly isDefault: boolean;
421
- readonly defaultSenderId: (string & import("effect/Brand").Brand<"EmailSenderId">) | null;
422
417
  readonly deliverability: {
423
418
  readonly bounceRate: number;
424
419
  readonly complaintRate: number;
@@ -440,19 +435,6 @@ export declare const setDefaultDomain: (input: {
440
435
  readonly success: boolean;
441
436
  readonly message: string;
442
437
  }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
443
- export declare const setDomainDefaultSender: (input: {
444
- readonly id: string;
445
- readonly senderId: string;
446
- }) => import("effect/Effect").Effect<{
447
- readonly success: boolean;
448
- readonly message: string;
449
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
450
- export declare const clearDomainDefaultSender: (input: {
451
- readonly id: string;
452
- }) => import("effect/Effect").Effect<{
453
- readonly success: boolean;
454
- readonly message: string;
455
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("./generated").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
456
438
  export declare const updateDomainConfig: (input: {
457
439
  readonly id: string;
458
440
  readonly openTracking?: boolean | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make, r as sendEmail, t as addEmailSender } from "../operation-g8nAzmIM.js";
3
- import { A as TrackingRecipientEmail } from "../client-CZjhOKPM.js";
2
+ import { n as make, r as sendEmail, t as addEmailSender } from "../operation-BTXjPrwf.js";
3
+ import { N as TrackingRecipientEmail } from "../client-BMUew5Wp.js";
4
4
  //#region src/effect/email.ts
5
5
  var email_exports = /* @__PURE__ */ __exportAll({
6
6
  TrackingRecipientEmail: () => TrackingRecipientEmail,
@@ -13,7 +13,6 @@ var email_exports = /* @__PURE__ */ __exportAll({
13
13
  cancelDomainWarmingBatch: () => cancelDomainWarmingBatch,
14
14
  checkBlocked: () => checkBlocked,
15
15
  checkSenderVerification: () => checkSenderVerification,
16
- clearDomainDefaultSender: () => clearDomainDefaultSender,
17
16
  completeCustomTrackingDomainConnect: () => completeCustomTrackingDomainConnect,
18
17
  completeDomainConnect: () => completeDomainConnect,
19
18
  completeDomainWarming: () => completeDomainWarming,
@@ -61,7 +60,6 @@ var email_exports = /* @__PURE__ */ __exportAll({
61
60
  send: () => send,
62
61
  setDefaultDomain: () => setDefaultDomain,
63
62
  setDefaultSender: () => setDefaultSender,
64
- setDomainDefaultSender: () => setDomainDefaultSender,
65
63
  updateBlock: () => updateBlock,
66
64
  updateCatchAllConfig: () => updateCatchAllConfig,
67
65
  updateDomainConfig: () => updateDomainConfig,
@@ -83,8 +81,6 @@ const advanceDomainVerification = make("emailAdvanceDomainVerification");
83
81
  const getDomainById = make("emailGetDomainById");
84
82
  const removeDomain = make("emailRemoveDomain");
85
83
  const setDefaultDomain = make("emailSetDefaultDomain");
86
- const setDomainDefaultSender = make("emailSetDomainDefaultSender");
87
- const clearDomainDefaultSender = make("emailClearDomainDefaultSender");
88
84
  const updateDomainConfig = make("emailUpdateDomainConfig");
89
85
  const detectRegistrar = make("emailDetectRegistrar");
90
86
  const getDomainConnect = make("emailGetDomainConnect");
@@ -136,6 +132,6 @@ const deleteForwardingRule = make("emailDeleteForwardingRule");
136
132
  const updateForwardingRule = make("emailUpdateForwardingRule");
137
133
  const getForwardingLog = make("emailGetForwardingLog");
138
134
  //#endregion
139
- export { TrackingRecipientEmail, addBlock, addDomain, addSender, advanceDomainVerification, buildCustomTrackingDomainConnectApplyUrl, buildDomainConnectApplyUrl, cancelDomainWarmingBatch, checkBlocked, checkSenderVerification, clearDomainDefaultSender, completeCustomTrackingDomainConnect, completeDomainConnect, completeDomainWarming, countSuppressions, createDomainWarmingPlan, createForwardingRule, deleteForwardingRule, detectRegistrar, disableCatchAll, disableCustomTracking, enableCatchAll, enableCustomTracking, enableReceiving, getBlockLogs, getCatchAllConfig, getCatchAllStats, getCustomTracking, getCustomTrackingDomainConnect, getDomainById, getDomainConnect, getDomainVerification, getDomainWarming, getForwardingLog, getOnboardingReview, getReceivingStatus, getRecipientTrackingPreference, getSender, getStats, getTrackingDefaults, listBlocks, listDomains, listForwardingRules, listSenders, listSuppressions, pauseDomainWarming, reapplyOnboardingReview, recheckCustomTracking, removeBlock, removeDomain, removeSender, removeSuppression, respondToOnboardingInformationRequest, resumeDomainWarming, rotateDomainDkim, send, setDefaultDomain, setDefaultSender, setDomainDefaultSender, email_exports as t, updateBlock, updateCatchAllConfig, updateDomainConfig, updateDomainWarmingPolicy, updateForwardingRule, updateRecipientTrackingPreference, updateTrackingDefaults };
135
+ export { TrackingRecipientEmail, addBlock, addDomain, addSender, advanceDomainVerification, buildCustomTrackingDomainConnectApplyUrl, buildDomainConnectApplyUrl, cancelDomainWarmingBatch, checkBlocked, checkSenderVerification, completeCustomTrackingDomainConnect, completeDomainConnect, completeDomainWarming, countSuppressions, createDomainWarmingPlan, createForwardingRule, deleteForwardingRule, detectRegistrar, disableCatchAll, disableCustomTracking, enableCatchAll, enableCustomTracking, enableReceiving, getBlockLogs, getCatchAllConfig, getCatchAllStats, getCustomTracking, getCustomTrackingDomainConnect, getDomainById, getDomainConnect, getDomainVerification, getDomainWarming, getForwardingLog, getOnboardingReview, getReceivingStatus, getRecipientTrackingPreference, getSender, getStats, getTrackingDefaults, listBlocks, listDomains, listForwardingRules, listSenders, listSuppressions, pauseDomainWarming, reapplyOnboardingReview, recheckCustomTracking, removeBlock, removeDomain, removeSender, removeSuppression, respondToOnboardingInformationRequest, resumeDomainWarming, rotateDomainDkim, send, setDefaultDomain, setDefaultSender, email_exports as t, updateBlock, updateCatchAllConfig, updateDomainConfig, updateDomainWarmingPolicy, updateForwardingRule, updateRecipientTrackingPreference, updateTrackingDefaults };
140
136
 
141
137
  //# sourceMappingURL=email.js.map
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/extension-installations.ts
4
4
  var extension_installations_exports = /* @__PURE__ */ __exportAll({
5
5
  disable: () => disable,
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
3
  //#region src/effect/extensions.ts
4
4
  var extensions_exports = /* @__PURE__ */ __exportAll({
5
5
  get: () => get,
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-g8nAzmIM.js";
3
- import { D as SendFeedback } from "../client-CZjhOKPM.js";
2
+ import { n as make } from "../operation-BTXjPrwf.js";
3
+ import { A as SendFeedback } from "../client-BMUew5Wp.js";
4
4
  //#region src/effect/feedback.ts
5
5
  var feedback_exports = /* @__PURE__ */ __exportAll({
6
6
  SendPayload: () => SendFeedback,
@@ -47,6 +47,10 @@ export declare const SamvaErrorMetadata: {
47
47
  readonly categories: readonly ["transient"];
48
48
  readonly retryable: true;
49
49
  };
50
+ readonly MailboxChannelUnsupportedError: {
51
+ readonly categories: readonly [];
52
+ readonly retryable: false;
53
+ };
50
54
  readonly MailboxSendConflictError: {
51
55
  readonly categories: readonly [];
52
56
  readonly retryable: false;