samva 0.26.0 → 0.28.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 (107) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +14 -7
  3. package/dist/client/sdk.gen.d.ts +322 -143
  4. package/dist/client/sdk.gen.js +1085 -332
  5. package/dist/client/types.gen.d.ts +1342 -479
  6. package/dist/effect/agents.d.ts +119 -0
  7. package/dist/effect/agents.js +29 -0
  8. package/dist/effect/analytics.d.ts +1 -1
  9. package/dist/effect/analytics.js +1 -1
  10. package/dist/effect/api-keys.d.ts +6 -6
  11. package/dist/effect/attachments.d.ts +1 -1
  12. package/dist/effect/brands.d.ts +2 -0
  13. package/dist/effect/campaigns.d.ts +275 -25
  14. package/dist/effect/campaigns.js +7 -1
  15. package/dist/effect/contact-groups.d.ts +9 -9
  16. package/dist/effect/contacts.d.ts +74 -81
  17. package/dist/effect/contacts.js +7 -3
  18. package/dist/effect/conversations.d.ts +14 -6
  19. package/dist/effect/email.d.ts +34 -34
  20. package/dist/effect/errors.d.ts +1 -1
  21. package/dist/effect/errors.js +2 -2
  22. package/dist/effect/extension-installations.d.ts +3 -3
  23. package/dist/effect/extensions.d.ts +6 -6
  24. package/dist/effect/generated/agents.d.ts +6 -28
  25. package/dist/effect/generated/agents.js +270 -0
  26. package/dist/effect/generated/analytics.d.ts +3 -3
  27. package/dist/effect/generated/analytics.js +1 -1
  28. package/dist/effect/generated/api-keys.d.ts +6 -6
  29. package/dist/effect/generated/api-keys.js +2 -2
  30. package/dist/effect/generated/attachments.d.ts +3 -3
  31. package/dist/effect/generated/attachments.js +1 -1
  32. package/dist/effect/generated/brands.d.ts +16 -0
  33. package/dist/effect/generated/campaigns.d.ts +1181 -302
  34. package/dist/effect/generated/campaigns.js +169 -36
  35. package/dist/effect/generated/contact-events.d.ts +3 -3
  36. package/dist/effect/generated/contact-events.js +1 -1
  37. package/dist/effect/generated/contact-groups.d.ts +9 -9
  38. package/dist/effect/generated/contact-groups.js +7 -7
  39. package/dist/effect/generated/contacts.d.ts +2063 -290
  40. package/dist/effect/generated/contacts.js +343 -75
  41. package/dist/effect/generated/conversations.d.ts +14 -6
  42. package/dist/effect/generated/conversations.js +6 -6
  43. package/dist/effect/generated/email.d.ts +55 -70
  44. package/dist/effect/generated/email.js +18 -21
  45. package/dist/effect/generated/extension-installations.d.ts +3 -3
  46. package/dist/effect/generated/extension-installations.js +1 -1
  47. package/dist/effect/generated/extensions.d.ts +6 -6
  48. package/dist/effect/generated/extensions.js +2 -2
  49. package/dist/effect/generated/index.d.ts +5 -3
  50. package/dist/effect/generated/journeys.d.ts +9 -9
  51. package/dist/effect/generated/journeys.js +3 -3
  52. package/dist/effect/generated/mailboxes.d.ts +466 -712
  53. package/dist/effect/generated/mailboxes.js +22 -14
  54. package/dist/effect/generated/messages.d.ts +53 -29
  55. package/dist/effect/generated/messages.js +9 -5
  56. package/dist/effect/generated/namespaces.d.ts +3 -3
  57. package/dist/effect/generated/namespaces.js +1 -1
  58. package/dist/effect/generated/operations.d.ts +3 -3
  59. package/dist/effect/generated/operations.js +1 -1
  60. package/dist/effect/generated/organizations.d.ts +0 -9
  61. package/dist/effect/generated/organizations.js +1 -4
  62. package/dist/effect/generated/scheduled-messages.d.ts +69 -20
  63. package/dist/effect/generated/scheduled-messages.js +22 -3
  64. package/dist/effect/generated/shared.d.ts +431 -177
  65. package/dist/effect/generated/shared.js +216 -108
  66. package/dist/effect/generated/subscriptions.d.ts +4 -7
  67. package/dist/effect/generated/subscriptions.js +3 -4
  68. package/dist/effect/generated/templates.d.ts +71 -407
  69. package/dist/effect/generated/templates.js +23 -23
  70. package/dist/effect/generated/topic-forms.d.ts +656 -0
  71. package/dist/effect/generated/topic-forms.js +145 -0
  72. package/dist/effect/generated/{unsubscribe-groups.d.ts → topics.d.ts} +640 -435
  73. package/dist/effect/generated/topics.js +267 -0
  74. package/dist/effect/generated/webhooks.d.ts +6 -6
  75. package/dist/effect/generated/webhooks.js +2 -2
  76. package/dist/effect/generated-metadata.d.ts +78 -24
  77. package/dist/effect/generated-metadata.js +61 -27
  78. package/dist/effect/index.d.ts +3 -1
  79. package/dist/effect/index.js +5 -3
  80. package/dist/effect/internal/operation.js +4 -3
  81. package/dist/effect/internal/send.d.ts +4 -4
  82. package/dist/effect/journeys.d.ts +119 -119
  83. package/dist/effect/mailboxes.d.ts +137 -121
  84. package/dist/effect/messages.d.ts +19 -11
  85. package/dist/effect/namespaces.d.ts +3 -3
  86. package/dist/effect/operations.d.ts +3 -3
  87. package/dist/effect/scheduled-messages.d.ts +6 -6
  88. package/dist/effect/subscriptions.d.ts +1 -2
  89. package/dist/effect/templates.d.ts +13 -13
  90. package/dist/effect/topic-forms.d.ts +30 -0
  91. package/dist/effect/topic-forms.js +21 -0
  92. package/dist/effect/topics.d.ts +94 -0
  93. package/dist/effect/topics.js +29 -0
  94. package/dist/effect/webhooks.d.ts +6 -6
  95. package/dist/index.js +2 -2
  96. package/dist/package.js +1 -1
  97. package/dist/promises/errors.gen.d.ts +65 -8
  98. package/dist/promises/errors.gen.js +139 -7
  99. package/dist/promises/index.d.ts +7 -3
  100. package/dist/promises/index.js +9 -5
  101. package/dist/promises/types.gen.d.ts +1 -1
  102. package/dist/service-map.d.ts +117 -23
  103. package/dist/service-map.js +71 -10
  104. package/package.json +17 -9
  105. package/dist/effect/generated/unsubscribe-groups.js +0 -284
  106. package/dist/effect/unsubscribe-groups.d.ts +0 -74
  107. package/dist/effect/unsubscribe-groups.js +0 -29
@@ -0,0 +1,119 @@
1
+ export declare const list: ((input?: {
2
+ readonly limit?: number | null | undefined;
3
+ readonly cursor?: string | null | undefined;
4
+ } | undefined) => import("./internal/operation").OperationResult<"agentsList">) & {
5
+ readonly pages: (input?: {
6
+ readonly limit?: number | null | undefined;
7
+ readonly cursor?: string | null | undefined;
8
+ } | undefined) => import("effect/Stream").Stream<{
9
+ readonly items: readonly {
10
+ readonly id: string & import("effect/Brand").Brand<"AgentId">;
11
+ readonly name: string;
12
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
13
+ readonly publishedVersion: number | null;
14
+ readonly publishedAt: string | null;
15
+ readonly createdAt: string;
16
+ readonly updatedAt: string;
17
+ }[];
18
+ readonly nextCursor: string | null;
19
+ }, 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>;
20
+ readonly items: (input?: {
21
+ readonly limit?: number | null | undefined;
22
+ readonly cursor?: string | null | undefined;
23
+ } | undefined) => import("effect/Stream").Stream<{
24
+ readonly id: string & import("effect/Brand").Brand<"AgentId">;
25
+ readonly name: string;
26
+ readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
27
+ readonly publishedVersion: number | null;
28
+ readonly publishedAt: string | null;
29
+ readonly createdAt: string;
30
+ readonly updatedAt: string;
31
+ }, 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>;
32
+ };
33
+ export declare const create: (input: {
34
+ readonly name: string;
35
+ readonly namespaceId?: string | null | undefined;
36
+ readonly definition?: {
37
+ readonly instructions: string;
38
+ readonly knowledge: string;
39
+ readonly endpointIds: readonly string[];
40
+ readonly integrationIds: readonly string[];
41
+ readonly mode: "live" | "supervised";
42
+ readonly model: "max" | "standard";
43
+ readonly workingHours: {
44
+ readonly timeZone: string;
45
+ readonly ranges: readonly {
46
+ readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
47
+ readonly opens: string;
48
+ readonly closes: string;
49
+ }[];
50
+ } | null;
51
+ readonly takeoverTimeoutMinutes: number;
52
+ } | null | undefined;
53
+ }) => import("./internal/operation").OperationResult<"agentsCreate">;
54
+ export declare const get: (input: {
55
+ readonly id: string;
56
+ }) => import("./internal/operation").OperationResult<"agentsGet">;
57
+ export declare const update: (input: {
58
+ readonly id: string;
59
+ readonly name: string;
60
+ }) => import("./internal/operation").OperationResult<"agentsUpdate">;
61
+ export declare const remove: (input: {
62
+ readonly id: string;
63
+ }) => import("./internal/operation").OperationResult<"agentsRemove">;
64
+ export declare const replaceDraft: (input: {
65
+ readonly id: string;
66
+ readonly revision: string;
67
+ readonly definition: {
68
+ readonly instructions: string;
69
+ readonly knowledge: string;
70
+ readonly endpointIds: readonly string[];
71
+ readonly integrationIds: readonly string[];
72
+ readonly mode: "live" | "supervised";
73
+ readonly model: "max" | "standard";
74
+ readonly workingHours: {
75
+ readonly timeZone: string;
76
+ readonly ranges: readonly {
77
+ readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
78
+ readonly opens: string;
79
+ readonly closes: string;
80
+ }[];
81
+ } | null;
82
+ readonly takeoverTimeoutMinutes: number;
83
+ };
84
+ }) => import("./internal/operation").OperationResult<"agentsReplaceDraft">;
85
+ export declare const publish: (input: {
86
+ readonly id: string;
87
+ readonly revision: string;
88
+ }) => import("./internal/operation").OperationResult<"agentsPublish">;
89
+ export declare const listVersions: ((input: {
90
+ readonly id: string;
91
+ readonly limit?: number | null | undefined;
92
+ readonly cursor?: string | null | undefined;
93
+ }) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
94
+ readonly pages: (input: {
95
+ readonly id: string;
96
+ readonly limit?: number | null | undefined;
97
+ readonly cursor?: string | null | undefined;
98
+ }) => import("effect/Stream").Stream<{
99
+ readonly items: readonly {
100
+ readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
101
+ readonly version: number;
102
+ readonly publishedAt: string;
103
+ }[];
104
+ readonly nextCursor: string | null;
105
+ }, 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>;
106
+ readonly items: (input: {
107
+ readonly id: string;
108
+ readonly limit?: number | null | undefined;
109
+ readonly cursor?: string | null | undefined;
110
+ }) => import("effect/Stream").Stream<{
111
+ readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
112
+ readonly version: number;
113
+ readonly publishedAt: string;
114
+ }, 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>;
115
+ };
116
+ export declare const getVersion: (input: {
117
+ readonly id: string;
118
+ readonly version: string;
119
+ }) => import("./internal/operation").OperationResult<"agentsGetVersion">;
@@ -0,0 +1,29 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { AgentsGroup } from "./generated/agents.js";
3
+ import { forGroup } from "./internal/operation.js";
4
+ //#region src/effect/agents.ts
5
+ var agents_exports = /* @__PURE__ */ __exportAll({
6
+ create: () => create,
7
+ get: () => get,
8
+ getVersion: () => getVersion,
9
+ list: () => list,
10
+ listVersions: () => listVersions,
11
+ publish: () => publish,
12
+ remove: () => remove,
13
+ replaceDraft: () => replaceDraft,
14
+ update: () => update
15
+ });
16
+ const make = /* @__PURE__ */ forGroup(AgentsGroup);
17
+ const list = /* @__PURE__ */ make("agentsList");
18
+ const create = /* @__PURE__ */ make("agentsCreate");
19
+ const get = /* @__PURE__ */ make("agentsGet");
20
+ const update = /* @__PURE__ */ make("agentsUpdate");
21
+ const remove = /* @__PURE__ */ make("agentsRemove");
22
+ const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
23
+ const publish = /* @__PURE__ */ make("agentsPublish");
24
+ const listVersions = /* @__PURE__ */ make("agentsListVersions");
25
+ const getVersion = /* @__PURE__ */ make("agentsGetVersion");
26
+ //#endregion
27
+ export { agents_exports, create, get, getVersion, list, listVersions, publish, remove, replaceDraft, update };
28
+
29
+ //# sourceMappingURL=agents.js.map
@@ -11,7 +11,7 @@ export declare const getChannelStats: (input?: {
11
11
  export declare const getTopContacts: (input?: {
12
12
  readonly after?: Date | null | undefined;
13
13
  readonly before?: Date | null | undefined;
14
- readonly limit?: string | null | undefined;
14
+ readonly limit?: number | null | undefined;
15
15
  readonly sortBy?: "received" | "sent" | "total" | null | undefined;
16
16
  } | undefined) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
17
17
  export declare const getHourlyDistribution: (input?: {
@@ -1,6 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { AnalyticsGroup } from "./generated/analytics.js";
3
2
  import { forGroup } from "./internal/operation.js";
3
+ import { AnalyticsGroup } from "./generated/analytics.js";
4
4
  //#region src/effect/analytics.ts
5
5
  var analytics_exports = /* @__PURE__ */ __exportAll({
6
6
  exportData: () => exportData,
@@ -1,12 +1,12 @@
1
1
  export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, } from "./generated/api-keys";
2
2
  export declare const list: ((input?: {
3
- readonly limit?: string | null | undefined;
3
+ readonly limit?: number | null | undefined;
4
4
  readonly cursor?: string | null | undefined;
5
5
  readonly status?: "active" | "revoked" | null | undefined;
6
6
  readonly search?: string | null | undefined;
7
7
  } | undefined) => import("./internal/operation").OperationResult<"apiKeysList">) & {
8
8
  readonly pages: (input?: {
9
- readonly limit?: string | null | undefined;
9
+ readonly limit?: number | null | undefined;
10
10
  readonly cursor?: string | null | undefined;
11
11
  readonly status?: "active" | "revoked" | null | undefined;
12
12
  readonly search?: string | null | undefined;
@@ -57,7 +57,7 @@ export declare const list: ((input?: {
57
57
  readonly nextCursor: string | null;
58
58
  }, 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>;
59
59
  readonly items: (input?: {
60
- readonly limit?: string | null | undefined;
60
+ readonly limit?: number | null | undefined;
61
61
  readonly cursor?: string | null | undefined;
62
62
  readonly status?: "active" | "revoked" | null | undefined;
63
63
  readonly search?: string | null | undefined;
@@ -160,12 +160,12 @@ export declare const getStats: (input: {
160
160
  }) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
161
161
  export declare const getActivity: ((input: {
162
162
  readonly id: string;
163
- readonly limit?: string | null | undefined;
163
+ readonly limit?: number | null | undefined;
164
164
  readonly cursor?: string | null | undefined;
165
165
  }) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
166
166
  readonly pages: (input: {
167
167
  readonly id: string;
168
- readonly limit?: string | null | undefined;
168
+ readonly limit?: number | null | undefined;
169
169
  readonly cursor?: string | null | undefined;
170
170
  }) => import("effect/Stream").Stream<{
171
171
  readonly items: readonly {
@@ -180,7 +180,7 @@ export declare const getActivity: ((input: {
180
180
  }, 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>;
181
181
  readonly items: (input: {
182
182
  readonly id: string;
183
- readonly limit?: string | null | undefined;
183
+ readonly limit?: number | null | undefined;
184
184
  readonly cursor?: string | null | undefined;
185
185
  }) => import("effect/Stream").Stream<{
186
186
  readonly id: string;
@@ -9,5 +9,5 @@ export declare const remove: (input: {
9
9
  }) => import("./internal/operation").OperationResult<"attachmentsRemove">;
10
10
  export declare const downloadUrl: (input: {
11
11
  readonly id: string;
12
- readonly expiresIn?: string | null | undefined;
12
+ readonly expiresIn?: number | null | undefined;
13
13
  }) => import("./internal/operation").OperationResult<"attachmentsDownloadUrl">;
@@ -11,6 +11,7 @@ export declare const create: (input: {
11
11
  } | null | undefined;
12
12
  readonly footer?: {
13
13
  readonly companyName?: string | null | undefined;
14
+ readonly websiteUrl?: string | null | undefined;
14
15
  readonly address?: {
15
16
  readonly street1: string;
16
17
  readonly street2?: string | null | undefined;
@@ -41,6 +42,7 @@ export declare const update: (input: {
41
42
  } | null | undefined;
42
43
  readonly footer?: {
43
44
  readonly companyName?: string | null | undefined;
45
+ readonly websiteUrl?: string | null | undefined;
44
46
  readonly address?: {
45
47
  readonly street1: string;
46
48
  readonly street2?: string | null | undefined;