samva 0.10.0 → 0.12.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 (71) hide show
  1. package/README.md +59 -9
  2. package/dist/client/sdk.gen.d.ts +1126 -219
  3. package/dist/client/types.gen.d.ts +11655 -6311
  4. package/dist/{client-mI4S99Ts.js → client-Cj1bqIEe.js} +5169 -1639
  5. package/dist/{client-attribution-Bl4nTEsE.js → client-attribution-BTWYSXxo.js} +2 -2
  6. package/dist/effect/analytics.d.ts +18 -18
  7. package/dist/effect/analytics.js +1 -1
  8. package/dist/effect/api-keys.d.ts +99 -43
  9. package/dist/effect/api-keys.js +2 -4
  10. package/dist/effect/attachments.d.ts +5 -6
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/brands.d.ts +4 -4
  13. package/dist/effect/brands.js +2 -2
  14. package/dist/effect/campaigns.d.ts +30 -60
  15. package/dist/effect/campaigns.js +1 -1
  16. package/dist/effect/client.js +1 -1
  17. package/dist/effect/contact-groups.d.ts +29 -46
  18. package/dist/effect/contact-groups.js +1 -1
  19. package/dist/effect/contacts.d.ts +324 -726
  20. package/dist/effect/contacts.js +10 -2
  21. package/dist/effect/conversations.d.ts +575 -1130
  22. package/dist/effect/conversations.js +14 -2
  23. package/dist/effect/custom-fields.d.ts +3 -53
  24. package/dist/effect/custom-fields.js +1 -1
  25. package/dist/effect/email.d.ts +349 -298
  26. package/dist/effect/email.js +9 -3
  27. package/dist/effect/extension-installations.d.ts +218 -0
  28. package/dist/effect/extension-installations.js +25 -0
  29. package/dist/effect/extensions.d.ts +192 -0
  30. package/dist/effect/extensions.js +19 -0
  31. package/dist/effect/feedback.d.ts +12 -0
  32. package/dist/effect/feedback.js +13 -0
  33. package/dist/effect/generated.d.ts +33011 -15519
  34. package/dist/effect/index.d.ts +6 -1
  35. package/dist/effect/index.js +7 -2
  36. package/dist/effect/internal/client.d.ts +3 -0
  37. package/dist/effect/internal/mailbox-events.d.ts +11 -0
  38. package/dist/effect/internal/operation.d.ts +20 -374
  39. package/dist/effect/mailboxes.d.ts +1676 -0
  40. package/dist/effect/mailboxes.js +3 -0
  41. package/dist/effect/media.d.ts +5 -5
  42. package/dist/effect/media.js +1 -1
  43. package/dist/effect/messages.d.ts +171 -938
  44. package/dist/effect/messages.js +6 -2
  45. package/dist/effect/namespaces.d.ts +82 -0
  46. package/dist/effect/namespaces.js +19 -0
  47. package/dist/effect/operations.d.ts +68 -12
  48. package/dist/effect/operations.js +1 -1
  49. package/dist/effect/organizations.d.ts +5 -4
  50. package/dist/effect/organizations.js +1 -1
  51. package/dist/effect/pagination.d.ts +16 -21
  52. package/dist/effect/scheduled-messages.d.ts +13 -23
  53. package/dist/effect/scheduled-messages.js +1 -1
  54. package/dist/effect/templates.d.ts +204 -281
  55. package/dist/effect/templates.js +2 -2
  56. package/dist/effect/unsubscribe-groups.d.ts +21 -75
  57. package/dist/effect/unsubscribe-groups.js +1 -1
  58. package/dist/effect/webhooks.d.ts +117 -39
  59. package/dist/effect/webhooks.js +2 -2
  60. package/dist/index.js +3 -2
  61. package/dist/mailbox-events-CsbF35vH.js +629 -0
  62. package/dist/mailbox-events.d.ts +178 -0
  63. package/dist/mailboxes-BtcktcNB.js +147 -0
  64. package/dist/{operation-DQWJO4jY.js → operation-BEghYyLu.js} +411 -67
  65. package/dist/promises/errors.gen.d.ts +5 -0
  66. package/dist/promises/index.d.ts +23 -1
  67. package/dist/promises/index.js +3 -2
  68. package/dist/promises/types.gen.d.ts +1 -1
  69. package/dist/{promises-C7D4oaHn.js → promises-BzrwhHEW.js} +3273 -547
  70. package/dist/service-map.d.ts +468 -36
  71. package/package.json +22 -2
@@ -1,13 +1,19 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-DQWJO4jY.js";
2
+ import { n as make } from "../operation-BEghYyLu.js";
3
3
  //#region src/effect/conversations.ts
4
4
  var conversations_exports = /* @__PURE__ */ __exportAll({
5
+ addCategories: () => addCategories,
6
+ addChannels: () => addChannels,
5
7
  addContacts: () => addContacts,
8
+ addTags: () => addTags,
6
9
  create: () => create,
7
10
  getById: () => getById,
8
11
  list: () => list,
9
12
  listMessages: () => listMessages,
13
+ removeCategories: () => removeCategories,
14
+ removeChannels: () => removeChannels,
10
15
  removeContacts: () => removeContacts,
16
+ removeTags: () => removeTags,
11
17
  update: () => update
12
18
  });
13
19
  const list = make("conversationsList");
@@ -15,9 +21,15 @@ const create = make("conversationsCreate");
15
21
  const getById = make("conversationsGetById");
16
22
  const listMessages = make("conversationsListMessages");
17
23
  const update = make("conversationsUpdate");
24
+ const addTags = make("conversationsAddTags");
25
+ const removeTags = make("conversationsRemoveTags");
26
+ const addCategories = make("conversationsAddCategories");
27
+ const removeCategories = make("conversationsRemoveCategories");
28
+ const addChannels = make("conversationsAddChannels");
29
+ const removeChannels = make("conversationsRemoveChannels");
18
30
  const addContacts = make("conversationsAddContacts");
19
31
  const removeContacts = make("conversationsRemoveContacts");
20
32
  //#endregion
21
- export { addContacts, create, getById, list, listMessages, removeContacts, conversations_exports as t, update };
33
+ export { addCategories, addChannels, addContacts, addTags, create, getById, list, listMessages, removeCategories, removeChannels, removeContacts, removeTags, conversations_exports as t, update };
22
34
 
23
35
  //# sourceMappingURL=conversations.js.map
@@ -1,7 +1,4 @@
1
- export declare const list: ((input?: {
2
- readonly page?: string | null | undefined;
3
- readonly limit?: string | null | undefined;
4
- } | undefined) => import("effect/Effect").Effect<{
1
+ export declare const list: (_?: never) => import("effect/Effect").Effect<{
5
2
  readonly items: readonly {
6
3
  readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
7
4
  readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
@@ -15,54 +12,7 @@ export declare const list: ((input?: {
15
12
  readonly createdAt: string;
16
13
  readonly updatedAt: string;
17
14
  }[];
18
- readonly pagination: {
19
- readonly page: number;
20
- readonly limit: number;
21
- readonly total: number;
22
- readonly totalPages: number;
23
- };
24
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>) & {
25
- readonly pages: (input?: {
26
- readonly page?: string | null | undefined;
27
- readonly limit?: string | null | undefined;
28
- } | undefined) => import("effect/Stream").Stream<{
29
- readonly items: readonly {
30
- readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
31
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
32
- readonly key: string;
33
- readonly label: string;
34
- readonly type: "boolean" | "date" | "number" | "select" | "text";
35
- readonly options: readonly string[] | null;
36
- readonly defaultValue: string | null;
37
- readonly isRequired: boolean;
38
- readonly sortOrder: number;
39
- readonly createdAt: string;
40
- readonly updatedAt: string;
41
- }[];
42
- readonly pagination: {
43
- readonly page: number;
44
- readonly limit: number;
45
- readonly total: number;
46
- readonly totalPages: number;
47
- };
48
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
49
- readonly items: (input?: {
50
- readonly page?: string | null | undefined;
51
- readonly limit?: string | null | undefined;
52
- } | undefined) => import("effect/Stream").Stream<{
53
- readonly id: string & import("effect/Brand").Brand<"CustomFieldDefinitionId">;
54
- readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
55
- readonly key: string;
56
- readonly label: string;
57
- readonly type: "boolean" | "date" | "number" | "select" | "text";
58
- readonly options: readonly string[] | null;
59
- readonly defaultValue: string | null;
60
- readonly isRequired: boolean;
61
- readonly sortOrder: number;
62
- readonly createdAt: string;
63
- readonly updatedAt: string;
64
- }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError, import("./client").Service>;
65
- };
15
+ }, import("./generated").ForbiddenError | import("./generated").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./generated").InternalError | import("effect/Schema").SchemaError | import("./generated").UnauthorizedError | import("./generated").ValidationError, import("./client").Service>;
66
16
  export declare const create: (input: {
67
17
  readonly key: string;
68
18
  readonly label: string;
@@ -108,4 +58,4 @@ export declare const remove: (input: {
108
58
  readonly id: string;
109
59
  }) => import("effect/Effect").Effect<{
110
60
  readonly success: boolean;
111
- }, 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("./client").Service>;
61
+ }, 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>;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-D7D4PA-g.js";
2
- import { n as make } from "../operation-DQWJO4jY.js";
2
+ import { n as make } from "../operation-BEghYyLu.js";
3
3
  //#region src/effect/custom-fields.ts
4
4
  var custom_fields_exports = /* @__PURE__ */ __exportAll({
5
5
  create: () => create,