samva 0.34.0 → 0.36.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 (129) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +2 -1
  3. package/dist/client/sdk.gen.d.ts +325 -331
  4. package/dist/client/sdk.gen.js +406 -454
  5. package/dist/client/types.gen.d.ts +3465 -750
  6. package/dist/effect/agents.d.ts +222 -17
  7. package/dist/effect/agents.js +7 -1
  8. package/dist/effect/analytics.d.ts +21 -15
  9. package/dist/effect/api-keys.d.ts +30 -24
  10. package/dist/effect/campaigns.d.ts +695 -39
  11. package/dist/effect/categories.d.ts +3 -3
  12. package/dist/effect/contact-groups.d.ts +15 -15
  13. package/dist/effect/contacts.d.ts +56 -52
  14. package/dist/effect/conversations.d.ts +51 -45
  15. package/dist/effect/email.d.ts +82 -82
  16. package/dist/effect/errors.d.ts +1 -1
  17. package/dist/effect/errors.js +2 -2
  18. package/dist/effect/extension-installations.d.ts +64 -12
  19. package/dist/effect/extensions.d.ts +16 -16
  20. package/dist/effect/generated/agents.d.ts +2902 -150
  21. package/dist/effect/generated/agents.js +219 -31
  22. package/dist/effect/generated/analytics.d.ts +127 -136
  23. package/dist/effect/generated/analytics.js +72 -37
  24. package/dist/effect/generated/api-keys.d.ts +243 -47
  25. package/dist/effect/generated/api-keys.js +27 -12
  26. package/dist/effect/generated/attachments.d.ts +89 -1
  27. package/dist/effect/generated/attachments.js +10 -2
  28. package/dist/effect/generated/brands.d.ts +133 -1
  29. package/dist/effect/generated/brands.js +22 -10
  30. package/dist/effect/generated/campaigns.d.ts +1467 -143
  31. package/dist/effect/generated/campaigns.js +84 -20
  32. package/dist/effect/generated/contact-events.d.ts +26 -4
  33. package/dist/effect/generated/contact-events.js +5 -3
  34. package/dist/effect/generated/contact-groups.d.ts +233 -13
  35. package/dist/effect/generated/contact-groups.js +33 -17
  36. package/dist/effect/generated/contacts.d.ts +634 -96
  37. package/dist/effect/generated/contacts.js +82 -20
  38. package/dist/effect/generated/conversations.d.ts +501 -108
  39. package/dist/effect/generated/conversations.js +106 -22
  40. package/dist/effect/generated/custom-fields.d.ts +89 -1
  41. package/dist/effect/generated/custom-fields.js +11 -3
  42. package/dist/effect/generated/email.d.ts +1447 -83
  43. package/dist/effect/generated/email.js +167 -43
  44. package/dist/effect/generated/events.d.ts +51 -7
  45. package/dist/effect/generated/events.js +9 -5
  46. package/dist/effect/generated/extension-installations.d.ts +1052 -77
  47. package/dist/effect/generated/extension-installations.js +45 -31
  48. package/dist/effect/generated/extensions.d.ts +123 -13
  49. package/dist/effect/generated/extensions.js +20 -10
  50. package/dist/effect/generated/feedback.d.ts +23 -1
  51. package/dist/effect/generated/feedback.js +6 -4
  52. package/dist/effect/generated/index.d.ts +3 -1
  53. package/dist/effect/generated/journeys.d.ts +684 -16
  54. package/dist/effect/generated/journeys.js +37 -9
  55. package/dist/effect/generated/mailboxes.d.ts +6169 -1734
  56. package/dist/effect/generated/mailboxes.js +549 -344
  57. package/dist/effect/generated/media.d.ts +125 -15
  58. package/dist/effect/generated/media.js +15 -2
  59. package/dist/effect/generated/messages.d.ts +2036 -117
  60. package/dist/effect/generated/messages.js +286 -54
  61. package/dist/effect/generated/namespaces.d.ts +215 -55
  62. package/dist/effect/generated/namespaces.js +30 -12
  63. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  64. package/dist/effect/generated/newsletter-domains.js +20 -13
  65. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  66. package/dist/effect/generated/newsletter-issues.js +162 -98
  67. package/dist/effect/generated/newsletters.d.ts +123 -13
  68. package/dist/effect/generated/newsletters.js +19 -9
  69. package/dist/effect/generated/operations.d.ts +76 -10
  70. package/dist/effect/generated/operations.js +12 -6
  71. package/dist/effect/generated/organizations.d.ts +287 -7
  72. package/dist/effect/generated/organizations.js +33 -5
  73. package/dist/effect/generated/policies.d.ts +953 -0
  74. package/dist/effect/generated/policies.js +116 -0
  75. package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
  76. package/dist/effect/generated/scheduled-messages.js +77 -13
  77. package/dist/effect/generated/shared.d.ts +3213 -521
  78. package/dist/effect/generated/shared.js +713 -128
  79. package/dist/effect/generated/subscriptions.d.ts +23 -1
  80. package/dist/effect/generated/subscriptions.js +6 -4
  81. package/dist/effect/generated/templates.d.ts +2081 -693
  82. package/dist/effect/generated/templates.js +482 -267
  83. package/dist/effect/generated/topic-forms.d.ts +111 -1
  84. package/dist/effect/generated/topic-forms.js +23 -13
  85. package/dist/effect/generated/topics.d.ts +353 -43
  86. package/dist/effect/generated/topics.js +67 -19
  87. package/dist/effect/generated/webhooks.d.ts +318 -57
  88. package/dist/effect/generated/webhooks.js +68 -17
  89. package/dist/effect/generated/whoami.d.ts +35 -5
  90. package/dist/effect/generated/whoami.js +4 -2
  91. package/dist/effect/generated-metadata.d.ts +56 -32
  92. package/dist/effect/generated-metadata.js +137 -105
  93. package/dist/effect/index.d.ts +1 -0
  94. package/dist/effect/index.js +3 -2
  95. package/dist/effect/internal/client.js +1 -1
  96. package/dist/effect/internal/email-sender.d.ts +1 -1
  97. package/dist/effect/internal/operation.js +5 -32
  98. package/dist/effect/internal/send.d.ts +1 -1
  99. package/dist/effect/journeys.d.ts +169 -83
  100. package/dist/effect/mailboxes.d.ts +978 -301
  101. package/dist/effect/mailboxes.js +1 -11
  102. package/dist/effect/media.d.ts +1 -1
  103. package/dist/effect/messages.d.ts +40 -40
  104. package/dist/effect/namespaces.d.ts +15 -15
  105. package/dist/effect/newsletter-domains.d.ts +5 -5
  106. package/dist/effect/newsletters.d.ts +1 -1
  107. package/dist/effect/operations.d.ts +11 -11
  108. package/dist/effect/organizations.d.ts +2 -2
  109. package/dist/effect/policies.d.ts +65 -0
  110. package/dist/effect/policies.js +16 -0
  111. package/dist/effect/scheduled-messages.d.ts +869 -8
  112. package/dist/effect/templates.d.ts +43 -45
  113. package/dist/effect/templates.js +5 -3
  114. package/dist/effect/topics.d.ts +23 -23
  115. package/dist/effect/webhooks.d.ts +29 -26
  116. package/dist/index.js +2 -2
  117. package/dist/mailbox/test.js +11 -4
  118. package/dist/mailbox/types.d.ts +39 -3
  119. package/dist/normalize.js +13 -1
  120. package/dist/package.js +1 -1
  121. package/dist/promises/client.d.ts +4 -2
  122. package/dist/promises/client.js +5 -3
  123. package/dist/promises/errors.gen.d.ts +38 -2
  124. package/dist/promises/errors.gen.js +394 -34
  125. package/dist/promises/index.js +2 -2
  126. package/dist/promises/types.gen.d.ts +1 -1
  127. package/dist/service-map.d.ts +39 -28
  128. package/dist/service-map.js +220 -782
  129. package/package.json +13 -8
@@ -1,10 +1,12 @@
1
1
  export declare const list: ((input?: {
2
2
  readonly limit?: number | null | undefined;
3
- readonly cursor?: string | null | undefined;
3
+ readonly cursor?: string | undefined;
4
+ readonly namespaceId?: string | undefined;
4
5
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsList">) & {
5
6
  readonly pages: (input?: {
6
7
  readonly limit?: number | null | undefined;
7
- readonly cursor?: string | null | undefined;
8
+ readonly cursor?: string | undefined;
9
+ readonly namespaceId?: string | undefined;
8
10
  } | undefined) => import("effect/Stream").Stream<{
9
11
  readonly items: readonly {
10
12
  readonly id: string & import("effect/Brand").Brand<"AgentId">;
@@ -12,30 +14,39 @@ export declare const list: ((input?: {
12
14
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
13
15
  readonly publishedVersion: number | null;
14
16
  readonly publishedAt: string | null;
17
+ readonly pausedAt: string | null;
18
+ readonly creditsPausedAt?: string | null;
19
+ readonly monthlySpendCapDollars: number | null;
15
20
  readonly createdAt: string;
16
21
  readonly updatedAt: string;
17
22
  }[];
18
23
  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>;
24
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
20
25
  readonly items: (input?: {
21
26
  readonly limit?: number | null | undefined;
22
- readonly cursor?: string | null | undefined;
27
+ readonly cursor?: string | undefined;
28
+ readonly namespaceId?: string | undefined;
23
29
  } | undefined) => import("effect/Stream").Stream<{
24
30
  readonly id: string & import("effect/Brand").Brand<"AgentId">;
25
31
  readonly name: string;
26
32
  readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
27
33
  readonly publishedVersion: number | null;
28
34
  readonly publishedAt: string | null;
35
+ readonly pausedAt: string | null;
36
+ readonly creditsPausedAt?: string | null;
37
+ readonly monthlySpendCapDollars: number | null;
29
38
  readonly createdAt: string;
30
39
  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>;
40
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
32
41
  };
42
+ export declare const listModels: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListModels">;
33
43
  export declare const create: (input: {
34
44
  readonly name: string;
35
45
  readonly namespaceId?: string | null | undefined;
36
46
  readonly definition?: {
37
47
  readonly instructions: string;
38
48
  readonly knowledge: string;
49
+ readonly knowledgeSourceIds?: readonly string[] | undefined;
39
50
  readonly endpointIds: readonly string[];
40
51
  readonly integrations: readonly {
41
52
  readonly integrationId: string;
@@ -47,10 +58,62 @@ export declare const create: (input: {
47
58
  readonly kind: "selected";
48
59
  readonly names: readonly string[];
49
60
  };
50
- readonly requireApproval: readonly string[];
51
61
  }[];
52
- readonly mode: "live" | "supervised";
53
- readonly model: "max" | "standard";
62
+ readonly policy: {
63
+ readonly presets: readonly string[];
64
+ readonly rules: readonly ({
65
+ readonly match: {
66
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
67
+ readonly effect?: "final" | "read" | "write" | null | undefined;
68
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
69
+ readonly integration?: string | null | undefined;
70
+ readonly tool?: string | null | undefined;
71
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
72
+ readonly kind: "agent";
73
+ readonly id: string;
74
+ } | {
75
+ readonly kind: "apiKey";
76
+ readonly id: string;
77
+ } | {
78
+ readonly kind: "member";
79
+ readonly userId: string;
80
+ } | {
81
+ readonly kind: "extension";
82
+ readonly id: string;
83
+ } | null | undefined;
84
+ };
85
+ readonly note?: string | null | undefined;
86
+ readonly decide: "model" | "never" | "person" | "run";
87
+ readonly atLeast?: null | undefined;
88
+ } | {
89
+ readonly match: {
90
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
91
+ readonly effect?: "final" | "read" | "write" | null | undefined;
92
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
93
+ readonly integration?: string | null | undefined;
94
+ readonly tool?: string | null | undefined;
95
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
96
+ readonly kind: "agent";
97
+ readonly id: string;
98
+ } | {
99
+ readonly kind: "apiKey";
100
+ readonly id: string;
101
+ } | {
102
+ readonly kind: "member";
103
+ readonly userId: string;
104
+ } | {
105
+ readonly kind: "extension";
106
+ readonly id: string;
107
+ } | null | undefined;
108
+ };
109
+ readonly note?: string | null | undefined;
110
+ readonly decide?: null | undefined;
111
+ readonly atLeast: "model" | "never" | "person" | "run";
112
+ })[];
113
+ readonly instructions?: string | null | undefined;
114
+ };
115
+ readonly model: string;
116
+ readonly reasoning: "auto" | "high" | "low" | "medium";
54
117
  readonly workingHours: {
55
118
  readonly timeZone: string;
56
119
  readonly ranges: readonly {
@@ -67,7 +130,8 @@ export declare const get: (input: {
67
130
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGet">;
68
131
  export declare const update: (input: {
69
132
  readonly id: string;
70
- readonly name: string;
133
+ readonly name?: string | null | undefined;
134
+ readonly monthlySpendCapDollars?: number | null | undefined;
71
135
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsUpdate">;
72
136
  export declare const remove: (input: {
73
137
  readonly id: string;
@@ -78,6 +142,7 @@ export declare const replaceDraft: (input: {
78
142
  readonly definition: {
79
143
  readonly instructions: string;
80
144
  readonly knowledge: string;
145
+ readonly knowledgeSourceIds?: readonly string[] | undefined;
81
146
  readonly endpointIds: readonly string[];
82
147
  readonly integrations: readonly {
83
148
  readonly integrationId: string;
@@ -89,10 +154,62 @@ export declare const replaceDraft: (input: {
89
154
  readonly kind: "selected";
90
155
  readonly names: readonly string[];
91
156
  };
92
- readonly requireApproval: readonly string[];
93
157
  }[];
94
- readonly mode: "live" | "supervised";
95
- readonly model: "max" | "standard";
158
+ readonly policy: {
159
+ readonly presets: readonly string[];
160
+ readonly rules: readonly ({
161
+ readonly match: {
162
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
163
+ readonly effect?: "final" | "read" | "write" | null | undefined;
164
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
165
+ readonly integration?: string | null | undefined;
166
+ readonly tool?: string | null | undefined;
167
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
168
+ readonly kind: "agent";
169
+ readonly id: string;
170
+ } | {
171
+ readonly kind: "apiKey";
172
+ readonly id: string;
173
+ } | {
174
+ readonly kind: "member";
175
+ readonly userId: string;
176
+ } | {
177
+ readonly kind: "extension";
178
+ readonly id: string;
179
+ } | null | undefined;
180
+ };
181
+ readonly note?: string | null | undefined;
182
+ readonly decide: "model" | "never" | "person" | "run";
183
+ readonly atLeast?: null | undefined;
184
+ } | {
185
+ readonly match: {
186
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
187
+ readonly effect?: "final" | "read" | "write" | null | undefined;
188
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
189
+ readonly integration?: string | null | undefined;
190
+ readonly tool?: string | null | undefined;
191
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
192
+ readonly kind: "agent";
193
+ readonly id: string;
194
+ } | {
195
+ readonly kind: "apiKey";
196
+ readonly id: string;
197
+ } | {
198
+ readonly kind: "member";
199
+ readonly userId: string;
200
+ } | {
201
+ readonly kind: "extension";
202
+ readonly id: string;
203
+ } | null | undefined;
204
+ };
205
+ readonly note?: string | null | undefined;
206
+ readonly decide?: null | undefined;
207
+ readonly atLeast: "model" | "never" | "person" | "run";
208
+ })[];
209
+ readonly instructions?: string | null | undefined;
210
+ };
211
+ readonly model: string;
212
+ readonly reasoning: "auto" | "high" | "low" | "medium";
96
213
  readonly workingHours: {
97
214
  readonly timeZone: string;
98
215
  readonly ranges: readonly {
@@ -108,15 +225,18 @@ export declare const publish: (input: {
108
225
  readonly id: string;
109
226
  readonly revision: string;
110
227
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsPublish">;
228
+ export declare const continueOnStandard: (input: {
229
+ readonly id: string;
230
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsContinueOnStandard">;
111
231
  export declare const listVersions: ((input: {
112
232
  readonly id: string;
113
233
  readonly limit?: number | null | undefined;
114
- readonly cursor?: string | null | undefined;
234
+ readonly cursor?: string | undefined;
115
235
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsListVersions">) & {
116
236
  readonly pages: (input: {
117
237
  readonly id: string;
118
238
  readonly limit?: number | null | undefined;
119
- readonly cursor?: string | null | undefined;
239
+ readonly cursor?: string | undefined;
120
240
  }) => import("effect/Stream").Stream<{
121
241
  readonly items: readonly {
122
242
  readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
@@ -124,18 +244,103 @@ export declare const listVersions: ((input: {
124
244
  readonly publishedAt: string;
125
245
  }[];
126
246
  readonly nextCursor: string | null;
127
- }, 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>;
247
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
128
248
  readonly items: (input: {
129
249
  readonly id: string;
130
250
  readonly limit?: number | null | undefined;
131
- readonly cursor?: string | null | undefined;
251
+ readonly cursor?: string | undefined;
132
252
  }) => import("effect/Stream").Stream<{
133
253
  readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
134
254
  readonly version: number;
135
255
  readonly publishedAt: string;
136
- }, 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>;
256
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
137
257
  };
138
258
  export declare const getVersion: (input: {
139
259
  readonly id: string;
140
260
  readonly version: string;
141
261
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsGetVersion">;
262
+ export declare const rerunTests: (input: {
263
+ readonly id: string;
264
+ readonly name: string;
265
+ readonly definition: {
266
+ readonly instructions: string;
267
+ readonly knowledge: string;
268
+ readonly knowledgeSourceIds?: readonly string[] | undefined;
269
+ readonly endpointIds: readonly string[];
270
+ readonly integrations: readonly {
271
+ readonly integrationId: string;
272
+ readonly tools: {
273
+ readonly kind: "all";
274
+ } | {
275
+ readonly kind: "readOnly";
276
+ } | {
277
+ readonly kind: "selected";
278
+ readonly names: readonly string[];
279
+ };
280
+ }[];
281
+ readonly policy: {
282
+ readonly presets: readonly string[];
283
+ readonly rules: readonly ({
284
+ readonly match: {
285
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
286
+ readonly effect?: "final" | "read" | "write" | null | undefined;
287
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
288
+ readonly integration?: string | null | undefined;
289
+ readonly tool?: string | null | undefined;
290
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
291
+ readonly kind: "agent";
292
+ readonly id: string;
293
+ } | {
294
+ readonly kind: "apiKey";
295
+ readonly id: string;
296
+ } | {
297
+ readonly kind: "member";
298
+ readonly userId: string;
299
+ } | {
300
+ readonly kind: "extension";
301
+ readonly id: string;
302
+ } | null | undefined;
303
+ };
304
+ readonly note?: string | null | undefined;
305
+ readonly decide: "model" | "never" | "person" | "run";
306
+ readonly atLeast?: null | undefined;
307
+ } | {
308
+ readonly match: {
309
+ readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
310
+ readonly effect?: "final" | "read" | "write" | null | undefined;
311
+ readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
312
+ readonly integration?: string | null | undefined;
313
+ readonly tool?: string | null | undefined;
314
+ readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
315
+ readonly kind: "agent";
316
+ readonly id: string;
317
+ } | {
318
+ readonly kind: "apiKey";
319
+ readonly id: string;
320
+ } | {
321
+ readonly kind: "member";
322
+ readonly userId: string;
323
+ } | {
324
+ readonly kind: "extension";
325
+ readonly id: string;
326
+ } | null | undefined;
327
+ };
328
+ readonly note?: string | null | undefined;
329
+ readonly decide?: null | undefined;
330
+ readonly atLeast: "model" | "never" | "person" | "run";
331
+ })[];
332
+ readonly instructions?: string | null | undefined;
333
+ };
334
+ readonly model: string;
335
+ readonly reasoning: "auto" | "high" | "low" | "medium";
336
+ readonly workingHours: {
337
+ readonly timeZone: string;
338
+ readonly ranges: readonly {
339
+ readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
340
+ readonly opens: string;
341
+ readonly closes: string;
342
+ }[];
343
+ } | null;
344
+ readonly takeoverTimeoutMinutes: number;
345
+ };
346
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"agentsRerunTests">;
@@ -3,26 +3,32 @@ import { AgentsGroup } from "./generated/agents.js";
3
3
  import { forGroup } from "./internal/operation.js";
4
4
  // src/effect/agents.ts
5
5
  var agents_exports = /* @__PURE__ */ __exportAll({
6
+ continueOnStandard: () => continueOnStandard,
6
7
  create: () => create,
7
8
  get: () => get,
8
9
  getVersion: () => getVersion,
9
10
  list: () => list,
11
+ listModels: () => listModels,
10
12
  listVersions: () => listVersions,
11
13
  publish: () => publish,
12
14
  remove: () => remove,
13
15
  replaceDraft: () => replaceDraft,
16
+ rerunTests: () => rerunTests,
14
17
  update: () => update
15
18
  });
16
19
  const make = /* @__PURE__ */ forGroup(AgentsGroup);
17
20
  const list = /* @__PURE__ */ make("agentsList");
21
+ const listModels = /* @__PURE__ */ make("agentsListModels");
18
22
  const create = /* @__PURE__ */ make("agentsCreate");
19
23
  const get = /* @__PURE__ */ make("agentsGet");
20
24
  const update = /* @__PURE__ */ make("agentsUpdate");
21
25
  const remove = /* @__PURE__ */ make("agentsRemove");
22
26
  const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
23
27
  const publish = /* @__PURE__ */ make("agentsPublish");
28
+ const continueOnStandard = /* @__PURE__ */ make("agentsContinueOnStandard");
24
29
  const listVersions = /* @__PURE__ */ make("agentsListVersions");
25
30
  const getVersion = /* @__PURE__ */ make("agentsGetVersion");
26
- export { agents_exports, create, get, getVersion, list, listVersions, publish, remove, replaceDraft, update };
31
+ const rerunTests = /* @__PURE__ */ make("agentsRerunTests");
32
+ export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, remove, replaceDraft, rerunTests, update };
27
33
 
28
34
  //# sourceMappingURL=agents.js.map
@@ -1,31 +1,37 @@
1
1
  export declare const getStats: (input?: {
2
- readonly after?: Date | null | undefined;
3
- readonly before?: Date | null | undefined;
4
- readonly groupBy?: "day" | "month" | "week" | null | undefined;
5
- readonly channel?: "email" | null | undefined;
2
+ readonly namespaceId?: string | undefined;
3
+ readonly after?: Date | undefined;
4
+ readonly before?: Date | undefined;
5
+ readonly groupBy?: "day" | "month" | "week" | undefined;
6
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
6
7
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetStats">;
7
8
  export declare const getChannelStats: (input?: {
8
- readonly after?: Date | null | undefined;
9
- readonly before?: Date | null | undefined;
9
+ readonly namespaceId?: string | undefined;
10
+ readonly after?: Date | undefined;
11
+ readonly before?: Date | undefined;
10
12
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetChannelStats">;
11
13
  export declare const getTopContacts: (input?: {
12
- readonly after?: Date | null | undefined;
13
- readonly before?: Date | null | undefined;
14
+ readonly namespaceId?: string | undefined;
15
+ readonly after?: Date | undefined;
16
+ readonly before?: Date | undefined;
14
17
  readonly limit?: number | null | undefined;
15
- readonly sortBy?: "received" | "sent" | "total" | null | undefined;
18
+ readonly sortBy?: "received" | "sent" | "total" | undefined;
16
19
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetTopContacts">;
17
20
  export declare const getHourlyDistribution: (input?: {
18
- readonly after?: Date | null | undefined;
19
- readonly before?: Date | null | undefined;
21
+ readonly namespaceId?: string | undefined;
22
+ readonly after?: Date | undefined;
23
+ readonly before?: Date | undefined;
20
24
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetHourlyDistribution">;
21
25
  export declare const getDeliveryMetrics: (input?: {
22
- readonly after?: Date | null | undefined;
23
- readonly before?: Date | null | undefined;
24
- readonly channel?: "email" | null | undefined;
26
+ readonly namespaceId?: string | undefined;
27
+ readonly after?: Date | undefined;
28
+ readonly before?: Date | undefined;
29
+ readonly channel?: "email" | "sms" | "whatsapp" | undefined;
25
30
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsGetDeliveryMetrics">;
26
31
  export declare const exportData: (input: {
32
+ readonly namespaceId?: string | null | undefined;
27
33
  readonly after: Date;
28
34
  readonly before: Date;
29
35
  readonly format?: "csv" | "json" | null | undefined;
30
- readonly includeChannels?: readonly "email"[] | null | undefined;
36
+ readonly includeChannels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
31
37
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"analyticsExportData">;
@@ -1,15 +1,17 @@
1
1
  export { ApiKeysCreateRequestJson as CreatePayload, ApiKeysUpdateRequestJson as UpdatePayload, } from "./generated/api-keys";
2
2
  export declare const list: ((input?: {
3
3
  readonly limit?: number | null | undefined;
4
- readonly cursor?: string | null | undefined;
5
- readonly status?: "active" | "revoked" | null | undefined;
6
- readonly search?: string | null | undefined;
4
+ readonly cursor?: string | undefined;
5
+ readonly namespaceId?: string | undefined;
6
+ readonly status?: "active" | "revoked" | undefined;
7
+ readonly search?: string | undefined;
7
8
  } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysList">) & {
8
9
  readonly pages: (input?: {
9
10
  readonly limit?: number | null | undefined;
10
- readonly cursor?: string | null | undefined;
11
- readonly status?: "active" | "revoked" | null | undefined;
12
- readonly search?: string | null | undefined;
11
+ readonly cursor?: string | undefined;
12
+ readonly namespaceId?: string | undefined;
13
+ readonly status?: "active" | "revoked" | undefined;
14
+ readonly search?: string | undefined;
13
15
  } | undefined) => import("effect/Stream").Stream<{
14
16
  readonly items: readonly {
15
17
  readonly id: string;
@@ -29,8 +31,11 @@ export declare const list: ((input?: {
29
31
  readonly resources: {
30
32
  readonly messages?: "read" | "write" | null;
31
33
  readonly email?: "read" | "write" | null;
34
+ readonly sms?: "read" | "write" | null;
35
+ readonly whatsapp?: "read" | "write" | null;
32
36
  readonly domains?: "read" | "write" | null;
33
37
  readonly phoneNumbers?: "read" | "write" | null;
38
+ readonly whatsappAccounts?: "read" | "write" | null;
34
39
  readonly contacts?: "read" | "write" | null;
35
40
  readonly conversations?: "read" | "write" | null;
36
41
  readonly templates?: "read" | "write" | null;
@@ -44,7 +49,6 @@ export declare const list: ((input?: {
44
49
  readonly mailboxes?: {
45
50
  readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
46
51
  readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
47
- readonly sendMode?: "approval" | "send" | null;
48
52
  } | null;
49
53
  readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
50
54
  };
@@ -55,12 +59,13 @@ export declare const list: ((input?: {
55
59
  } | null;
56
60
  }[];
57
61
  readonly nextCursor: string | null;
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>;
62
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
59
63
  readonly items: (input?: {
60
64
  readonly limit?: number | null | undefined;
61
- readonly cursor?: string | null | undefined;
62
- readonly status?: "active" | "revoked" | null | undefined;
63
- readonly search?: string | null | undefined;
65
+ readonly cursor?: string | undefined;
66
+ readonly namespaceId?: string | undefined;
67
+ readonly status?: "active" | "revoked" | undefined;
68
+ readonly search?: string | undefined;
64
69
  } | undefined) => import("effect/Stream").Stream<{
65
70
  readonly id: string;
66
71
  readonly name: string;
@@ -79,8 +84,11 @@ export declare const list: ((input?: {
79
84
  readonly resources: {
80
85
  readonly messages?: "read" | "write" | null;
81
86
  readonly email?: "read" | "write" | null;
87
+ readonly sms?: "read" | "write" | null;
88
+ readonly whatsapp?: "read" | "write" | null;
82
89
  readonly domains?: "read" | "write" | null;
83
90
  readonly phoneNumbers?: "read" | "write" | null;
91
+ readonly whatsappAccounts?: "read" | "write" | null;
84
92
  readonly contacts?: "read" | "write" | null;
85
93
  readonly conversations?: "read" | "write" | null;
86
94
  readonly templates?: "read" | "write" | null;
@@ -94,7 +102,6 @@ export declare const list: ((input?: {
94
102
  readonly mailboxes?: {
95
103
  readonly permissions: readonly ["quarantine.read" | "read" | "send" | "update", ...("quarantine.read" | "read" | "send" | "update")[]];
96
104
  readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
97
- readonly sendMode?: "approval" | "send" | null;
98
105
  } | null;
99
106
  readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
100
107
  };
@@ -103,7 +110,7 @@ export declare const list: ((input?: {
103
110
  readonly name: string;
104
111
  readonly email: string;
105
112
  } | null;
106
- }, 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>;
113
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
107
114
  };
108
115
  export declare const create: (input: {
109
116
  readonly name: string;
@@ -116,8 +123,11 @@ export declare const create: (input: {
116
123
  readonly resources: {
117
124
  readonly messages?: "read" | "write" | null | undefined;
118
125
  readonly email?: "read" | "write" | null | undefined;
126
+ readonly sms?: "read" | "write" | null | undefined;
127
+ readonly whatsapp?: "read" | "write" | null | undefined;
119
128
  readonly domains?: "read" | "write" | null | undefined;
120
129
  readonly phoneNumbers?: "read" | "write" | null | undefined;
130
+ readonly whatsappAccounts?: "read" | "write" | null | undefined;
121
131
  readonly contacts?: "read" | "write" | null | undefined;
122
132
  readonly conversations?: "read" | "write" | null | undefined;
123
133
  readonly templates?: "read" | "write" | null | undefined;
@@ -131,7 +141,6 @@ export declare const create: (input: {
131
141
  readonly mailboxes?: {
132
142
  readonly permissions: readonly ("quarantine.read" | "read" | "send" | "update")[];
133
143
  readonly mailboxIds?: readonly string[] | null | undefined;
134
- readonly sendMode?: "approval" | "send" | null | undefined;
135
144
  } | null | undefined;
136
145
  readonly namespaceId?: string | null | undefined;
137
146
  } | null | undefined;
@@ -146,27 +155,24 @@ export declare const update: (input: {
146
155
  readonly id: string;
147
156
  readonly name?: string | null | undefined;
148
157
  readonly description?: string | null | undefined;
149
- readonly mailboxes?: {
150
- readonly sendMode: "approval" | "send";
151
- } | null | undefined;
152
158
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysUpdate">;
153
159
  export declare const rotate: (input: {
154
160
  readonly id: string;
155
161
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysRotate">;
156
162
  export declare const getStats: (input: {
157
163
  readonly id: string;
158
- readonly after?: string | null | undefined;
159
- readonly before?: string | null | undefined;
164
+ readonly after?: string | undefined;
165
+ readonly before?: string | undefined;
160
166
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGetStats">;
161
167
  export declare const getActivity: ((input: {
162
168
  readonly id: string;
163
169
  readonly limit?: number | null | undefined;
164
- readonly cursor?: string | null | undefined;
170
+ readonly cursor?: string | undefined;
165
171
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"apiKeysGetActivity">) & {
166
172
  readonly pages: (input: {
167
173
  readonly id: string;
168
174
  readonly limit?: number | null | undefined;
169
- readonly cursor?: string | null | undefined;
175
+ readonly cursor?: string | undefined;
170
176
  }) => import("effect/Stream").Stream<{
171
177
  readonly items: readonly {
172
178
  readonly id: string;
@@ -177,11 +183,11 @@ export declare const getActivity: ((input: {
177
183
  readonly latency: number;
178
184
  }[];
179
185
  readonly nextCursor: string | null;
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>;
186
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
181
187
  readonly items: (input: {
182
188
  readonly id: string;
183
189
  readonly limit?: number | null | undefined;
184
- readonly cursor?: string | null | undefined;
190
+ readonly cursor?: string | undefined;
185
191
  }) => import("effect/Stream").Stream<{
186
192
  readonly id: string;
187
193
  readonly timestamp: string;
@@ -189,5 +195,5 @@ export declare const getActivity: ((input: {
189
195
  readonly endpoint: string;
190
196
  readonly statusCode: number;
191
197
  readonly latency: number;
192
- }, 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>;
198
+ }, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("./errors").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
193
199
  };