samva 0.29.1 → 0.30.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.
- package/AGENTS.md +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +216 -191
- package/dist/client/sdk.gen.js +2392 -1153
- package/dist/client/types.gen.d.ts +766 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +22 -22
- package/dist/effect/generated/conversations.js +7 -8
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -88,7 +88,18 @@ export declare const Agent: Schema.Struct<{
|
|
|
88
88
|
readonly instructions: Schema.String;
|
|
89
89
|
readonly knowledge: Schema.String;
|
|
90
90
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
91
|
-
readonly
|
|
91
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
92
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
93
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
94
|
+
readonly kind: Schema.Literal<"all">;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
97
|
+
}>, Schema.Struct<{
|
|
98
|
+
readonly kind: Schema.Literal<"selected">;
|
|
99
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
100
|
+
}>]>;
|
|
101
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
102
|
+
}>>;
|
|
92
103
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
93
104
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
94
105
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -119,7 +130,18 @@ export declare const AgentVersion: Schema.Struct<{
|
|
|
119
130
|
readonly instructions: Schema.String;
|
|
120
131
|
readonly knowledge: Schema.String;
|
|
121
132
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
122
|
-
readonly
|
|
133
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
134
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
135
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
136
|
+
readonly kind: Schema.Literal<"all">;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
139
|
+
}>, Schema.Struct<{
|
|
140
|
+
readonly kind: Schema.Literal<"selected">;
|
|
141
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
142
|
+
}>]>;
|
|
143
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
144
|
+
}>>;
|
|
123
145
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
124
146
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
125
147
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -149,7 +171,18 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
149
171
|
readonly instructions: Schema.String;
|
|
150
172
|
readonly knowledge: Schema.String;
|
|
151
173
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
152
|
-
readonly
|
|
174
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
175
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
176
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
177
|
+
readonly kind: Schema.Literal<"all">;
|
|
178
|
+
}>, Schema.Struct<{
|
|
179
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
180
|
+
}>, Schema.Struct<{
|
|
181
|
+
readonly kind: Schema.Literal<"selected">;
|
|
182
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
183
|
+
}>]>;
|
|
184
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
185
|
+
}>>;
|
|
153
186
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
154
187
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
155
188
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -174,7 +207,18 @@ export declare const PublishAgentResponse: Schema.Struct<{
|
|
|
174
207
|
readonly instructions: Schema.String;
|
|
175
208
|
readonly knowledge: Schema.String;
|
|
176
209
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
177
|
-
readonly
|
|
210
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
211
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
212
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
213
|
+
readonly kind: Schema.Literal<"all">;
|
|
214
|
+
}>, Schema.Struct<{
|
|
215
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
216
|
+
}>, Schema.Struct<{
|
|
217
|
+
readonly kind: Schema.Literal<"selected">;
|
|
218
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
219
|
+
}>]>;
|
|
220
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
221
|
+
}>>;
|
|
178
222
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
179
223
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
180
224
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -234,7 +278,18 @@ export declare const AgentsCreateRequestJson: Schema.Struct<{
|
|
|
234
278
|
readonly instructions: Schema.String;
|
|
235
279
|
readonly knowledge: Schema.String;
|
|
236
280
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
237
|
-
readonly
|
|
281
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
282
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
283
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
284
|
+
readonly kind: Schema.Literal<"all">;
|
|
285
|
+
}>, Schema.Struct<{
|
|
286
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
287
|
+
}>, Schema.Struct<{
|
|
288
|
+
readonly kind: Schema.Literal<"selected">;
|
|
289
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
290
|
+
}>]>;
|
|
291
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
292
|
+
}>>;
|
|
238
293
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
239
294
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
240
295
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -258,7 +313,18 @@ export declare const AgentsCreate201: Schema.Struct<{
|
|
|
258
313
|
readonly instructions: Schema.String;
|
|
259
314
|
readonly knowledge: Schema.String;
|
|
260
315
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
261
|
-
readonly
|
|
316
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
317
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
318
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
319
|
+
readonly kind: Schema.Literal<"all">;
|
|
320
|
+
}>, Schema.Struct<{
|
|
321
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
322
|
+
}>, Schema.Struct<{
|
|
323
|
+
readonly kind: Schema.Literal<"selected">;
|
|
324
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
325
|
+
}>]>;
|
|
326
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
327
|
+
}>>;
|
|
262
328
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
263
329
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
264
330
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -304,7 +370,18 @@ export declare const AgentsGet200: Schema.Struct<{
|
|
|
304
370
|
readonly instructions: Schema.String;
|
|
305
371
|
readonly knowledge: Schema.String;
|
|
306
372
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
307
|
-
readonly
|
|
373
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
374
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
375
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
376
|
+
readonly kind: Schema.Literal<"all">;
|
|
377
|
+
}>, Schema.Struct<{
|
|
378
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
379
|
+
}>, Schema.Struct<{
|
|
380
|
+
readonly kind: Schema.Literal<"selected">;
|
|
381
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
382
|
+
}>]>;
|
|
383
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
384
|
+
}>>;
|
|
308
385
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
309
386
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
310
387
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -379,7 +456,18 @@ export declare const AgentsUpdate200: Schema.Struct<{
|
|
|
379
456
|
readonly instructions: Schema.String;
|
|
380
457
|
readonly knowledge: Schema.String;
|
|
381
458
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
382
|
-
readonly
|
|
459
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
460
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
461
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
462
|
+
readonly kind: Schema.Literal<"all">;
|
|
463
|
+
}>, Schema.Struct<{
|
|
464
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
465
|
+
}>, Schema.Struct<{
|
|
466
|
+
readonly kind: Schema.Literal<"selected">;
|
|
467
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
468
|
+
}>]>;
|
|
469
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
470
|
+
}>>;
|
|
383
471
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
384
472
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
385
473
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -425,7 +513,18 @@ export declare const AgentsReplaceDraftRequestJson: Schema.Struct<{
|
|
|
425
513
|
readonly instructions: Schema.String;
|
|
426
514
|
readonly knowledge: Schema.String;
|
|
427
515
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
428
|
-
readonly
|
|
516
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
517
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
518
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
519
|
+
readonly kind: Schema.Literal<"all">;
|
|
520
|
+
}>, Schema.Struct<{
|
|
521
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
522
|
+
}>, Schema.Struct<{
|
|
523
|
+
readonly kind: Schema.Literal<"selected">;
|
|
524
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
525
|
+
}>]>;
|
|
526
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
527
|
+
}>>;
|
|
429
528
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
430
529
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
431
530
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -449,7 +548,18 @@ export declare const AgentsReplaceDraft200: Schema.Struct<{
|
|
|
449
548
|
readonly instructions: Schema.String;
|
|
450
549
|
readonly knowledge: Schema.String;
|
|
451
550
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
452
|
-
readonly
|
|
551
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
552
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
553
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
554
|
+
readonly kind: Schema.Literal<"all">;
|
|
555
|
+
}>, Schema.Struct<{
|
|
556
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
557
|
+
}>, Schema.Struct<{
|
|
558
|
+
readonly kind: Schema.Literal<"selected">;
|
|
559
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
560
|
+
}>]>;
|
|
561
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
562
|
+
}>>;
|
|
453
563
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
454
564
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
455
565
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -504,7 +614,18 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
504
614
|
readonly instructions: Schema.String;
|
|
505
615
|
readonly knowledge: Schema.String;
|
|
506
616
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
507
|
-
readonly
|
|
617
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
618
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
619
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
620
|
+
readonly kind: Schema.Literal<"all">;
|
|
621
|
+
}>, Schema.Struct<{
|
|
622
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
623
|
+
}>, Schema.Struct<{
|
|
624
|
+
readonly kind: Schema.Literal<"selected">;
|
|
625
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
626
|
+
}>]>;
|
|
627
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
628
|
+
}>>;
|
|
508
629
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
509
630
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
510
631
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -529,7 +650,18 @@ export declare const AgentsPublish200: Schema.Struct<{
|
|
|
529
650
|
readonly instructions: Schema.String;
|
|
530
651
|
readonly knowledge: Schema.String;
|
|
531
652
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
532
|
-
readonly
|
|
653
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
654
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
655
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
656
|
+
readonly kind: Schema.Literal<"all">;
|
|
657
|
+
}>, Schema.Struct<{
|
|
658
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
659
|
+
}>, Schema.Struct<{
|
|
660
|
+
readonly kind: Schema.Literal<"selected">;
|
|
661
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
662
|
+
}>]>;
|
|
663
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
664
|
+
}>>;
|
|
533
665
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
534
666
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
535
667
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -611,7 +743,18 @@ export declare const AgentsGetVersion200: Schema.Struct<{
|
|
|
611
743
|
readonly instructions: Schema.String;
|
|
612
744
|
readonly knowledge: Schema.String;
|
|
613
745
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
614
|
-
readonly
|
|
746
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
747
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
748
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
749
|
+
readonly kind: Schema.Literal<"all">;
|
|
750
|
+
}>, Schema.Struct<{
|
|
751
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
752
|
+
}>, Schema.Struct<{
|
|
753
|
+
readonly kind: Schema.Literal<"selected">;
|
|
754
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
755
|
+
}>]>;
|
|
756
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
757
|
+
}>>;
|
|
615
758
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
616
759
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
617
760
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -645,7 +788,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
645
788
|
readonly instructions: Schema.String;
|
|
646
789
|
readonly knowledge: Schema.String;
|
|
647
790
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
648
|
-
readonly
|
|
791
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
792
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
793
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
794
|
+
readonly kind: Schema.Literal<"all">;
|
|
795
|
+
}>, Schema.Struct<{
|
|
796
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
797
|
+
}>, Schema.Struct<{
|
|
798
|
+
readonly kind: Schema.Literal<"selected">;
|
|
799
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
800
|
+
}>]>;
|
|
801
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
802
|
+
}>>;
|
|
649
803
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
650
804
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
651
805
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -667,7 +821,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
667
821
|
readonly instructions: Schema.String;
|
|
668
822
|
readonly knowledge: Schema.String;
|
|
669
823
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
670
|
-
readonly
|
|
824
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
825
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
826
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
827
|
+
readonly kind: Schema.Literal<"all">;
|
|
828
|
+
}>, Schema.Struct<{
|
|
829
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
830
|
+
}>, Schema.Struct<{
|
|
831
|
+
readonly kind: Schema.Literal<"selected">;
|
|
832
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
833
|
+
}>]>;
|
|
834
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
835
|
+
}>>;
|
|
671
836
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
672
837
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
673
838
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -775,7 +940,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
775
940
|
readonly instructions: Schema.String;
|
|
776
941
|
readonly knowledge: Schema.String;
|
|
777
942
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
778
|
-
readonly
|
|
943
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
944
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
945
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
946
|
+
readonly kind: Schema.Literal<"all">;
|
|
947
|
+
}>, Schema.Struct<{
|
|
948
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
949
|
+
}>, Schema.Struct<{
|
|
950
|
+
readonly kind: Schema.Literal<"selected">;
|
|
951
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
952
|
+
}>]>;
|
|
953
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
954
|
+
}>>;
|
|
779
955
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
780
956
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
781
957
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -882,7 +1058,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
882
1058
|
readonly instructions: Schema.String;
|
|
883
1059
|
readonly knowledge: Schema.String;
|
|
884
1060
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
885
|
-
readonly
|
|
1061
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1062
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1063
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1064
|
+
readonly kind: Schema.Literal<"all">;
|
|
1065
|
+
}>, Schema.Struct<{
|
|
1066
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1067
|
+
}>, Schema.Struct<{
|
|
1068
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1069
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1070
|
+
}>]>;
|
|
1071
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1072
|
+
}>>;
|
|
886
1073
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
887
1074
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
888
1075
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1156,7 +1343,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1156
1343
|
readonly instructions: Schema.String;
|
|
1157
1344
|
readonly knowledge: Schema.String;
|
|
1158
1345
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1159
|
-
readonly
|
|
1346
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1347
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1348
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1349
|
+
readonly kind: Schema.Literal<"all">;
|
|
1350
|
+
}>, Schema.Struct<{
|
|
1351
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1352
|
+
}>, Schema.Struct<{
|
|
1353
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1354
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1355
|
+
}>]>;
|
|
1356
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1357
|
+
}>>;
|
|
1160
1358
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1161
1359
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1162
1360
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1181,7 +1379,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1181
1379
|
readonly instructions: Schema.String;
|
|
1182
1380
|
readonly knowledge: Schema.String;
|
|
1183
1381
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1184
|
-
readonly
|
|
1382
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1383
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1384
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1385
|
+
readonly kind: Schema.Literal<"all">;
|
|
1386
|
+
}>, Schema.Struct<{
|
|
1387
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1388
|
+
}>, Schema.Struct<{
|
|
1389
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1390
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1391
|
+
}>]>;
|
|
1392
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1393
|
+
}>>;
|
|
1185
1394
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1186
1395
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1187
1396
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1390,7 +1599,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1390
1599
|
readonly instructions: Schema.String;
|
|
1391
1600
|
readonly knowledge: Schema.String;
|
|
1392
1601
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1393
|
-
readonly
|
|
1602
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1603
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1604
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1605
|
+
readonly kind: Schema.Literal<"all">;
|
|
1606
|
+
}>, Schema.Struct<{
|
|
1607
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1608
|
+
}>, Schema.Struct<{
|
|
1609
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1610
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1611
|
+
}>]>;
|
|
1612
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1613
|
+
}>>;
|
|
1394
1614
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1395
1615
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1396
1616
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1412,7 +1632,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1412
1632
|
readonly instructions: Schema.String;
|
|
1413
1633
|
readonly knowledge: Schema.String;
|
|
1414
1634
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1415
|
-
readonly
|
|
1635
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1636
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1637
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1638
|
+
readonly kind: Schema.Literal<"all">;
|
|
1639
|
+
}>, Schema.Struct<{
|
|
1640
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1641
|
+
}>, Schema.Struct<{
|
|
1642
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1643
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1644
|
+
}>]>;
|
|
1645
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1646
|
+
}>>;
|
|
1416
1647
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1417
1648
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1418
1649
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1542,7 +1773,18 @@ declare const AgentsGroup_base: HttpApiGroup.HttpApiGroup<"Agents", HttpApiEndpo
|
|
|
1542
1773
|
readonly instructions: Schema.String;
|
|
1543
1774
|
readonly knowledge: Schema.String;
|
|
1544
1775
|
readonly endpointIds: Schema.$Array<Schema.brand<Schema.String, "MailboxEndpointId">>;
|
|
1545
|
-
readonly
|
|
1776
|
+
readonly integrations: Schema.$Array<Schema.Struct<{
|
|
1777
|
+
readonly integrationId: Schema.brand<Schema.String, "IntegrationId">;
|
|
1778
|
+
readonly tools: Schema.Union<readonly [Schema.Struct<{
|
|
1779
|
+
readonly kind: Schema.Literal<"all">;
|
|
1780
|
+
}>, Schema.Struct<{
|
|
1781
|
+
readonly kind: Schema.Literal<"readOnly">;
|
|
1782
|
+
}>, Schema.Struct<{
|
|
1783
|
+
readonly kind: Schema.Literal<"selected">;
|
|
1784
|
+
readonly names: Schema.$Array<Schema.String>;
|
|
1785
|
+
}>]>;
|
|
1786
|
+
readonly requireApproval: Schema.$Array<Schema.String>;
|
|
1787
|
+
}>>;
|
|
1546
1788
|
readonly mode: Schema.Union<readonly [Schema.Literal<"live">, Schema.Literal<"supervised">]>;
|
|
1547
1789
|
readonly model: Schema.Union<readonly [Schema.Literal<"standard">, Schema.Literal<"max">]>;
|
|
1548
1790
|
readonly workingHours: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AgentDefinition, AgentName, ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, NamespaceId, ResourceNotFoundError, UnauthorizedError, ValidationError, VersionCursor } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
|
|
4
|
+
// src/effect/generated/agents.ts
|
|
5
5
|
const AgentId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^agt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
6
|
expected: "a string matching the RegExp ^agt_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
7
7
|
identifier: "AgentId"
|
|
@@ -73,7 +73,7 @@ const AgentsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
73
73
|
instructions: "",
|
|
74
74
|
knowledge: "",
|
|
75
75
|
endpointIds: [],
|
|
76
|
-
|
|
76
|
+
integrations: [],
|
|
77
77
|
mode: "supervised",
|
|
78
78
|
model: "standard",
|
|
79
79
|
workingHours: null,
|
|
@@ -264,7 +264,6 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
264
264
|
AgentsGetVersion504.pipe(HttpApiSchema.status(504))
|
|
265
265
|
]
|
|
266
266
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.getVersion").annotate(OpenApi.Summary, "Get a published agent version").annotate(OpenApi.Description, "Returns the immutable definition of one published version.")).annotate(OpenApi.Description, "Agents that answer conversations on your mailbox endpoints, with a draft, published versions, and rules for supervision, hours, and staff takeover") {};
|
|
267
|
-
//#endregion
|
|
268
267
|
export { Agent, AgentId, AgentListItem, AgentPage, AgentVersion, AgentVersionPage, AgentVersionSummary, AgentsCreate201, AgentsCreate401, AgentsCreate403, AgentsCreate404, AgentsCreate422, AgentsCreate500, AgentsCreate504, AgentsCreateRequestJson, AgentsGet200, AgentsGet401, AgentsGet403, AgentsGet404, AgentsGet422, AgentsGet500, AgentsGet504, AgentsGetPathParams, AgentsGetVersion200, AgentsGetVersion401, AgentsGetVersion403, AgentsGetVersion404, AgentsGetVersion422, AgentsGetVersion500, AgentsGetVersion504, AgentsGetVersionPathParams, AgentsGroup, AgentsList200, AgentsList401, AgentsList403, AgentsList422, AgentsList500, AgentsList504, AgentsListQuery, AgentsListVersions200, AgentsListVersions401, AgentsListVersions403, AgentsListVersions404, AgentsListVersions422, AgentsListVersions500, AgentsListVersions504, AgentsListVersionsPathParams, AgentsListVersionsQuery, AgentsPublish200, AgentsPublish401, AgentsPublish403, AgentsPublish404, AgentsPublish409, AgentsPublish422, AgentsPublish500, AgentsPublish504, AgentsPublishPathParams, AgentsPublishRequestJson, AgentsRemove200, AgentsRemove401, AgentsRemove403, AgentsRemove404, AgentsRemove422, AgentsRemove500, AgentsRemove504, AgentsRemovePathParams, AgentsReplaceDraft200, AgentsReplaceDraft401, AgentsReplaceDraft403, AgentsReplaceDraft404, AgentsReplaceDraft409, AgentsReplaceDraft422, AgentsReplaceDraft500, AgentsReplaceDraft504, AgentsReplaceDraftPathParams, AgentsReplaceDraftRequestJson, AgentsUpdate200, AgentsUpdate401, AgentsUpdate403, AgentsUpdate404, AgentsUpdate422, AgentsUpdate500, AgentsUpdate504, AgentsUpdatePathParams, AgentsUpdateRequestJson, DeleteAgentResponse, PublishAgentResponse };
|
|
269
268
|
|
|
270
269
|
//# sourceMappingURL=agents.js.map
|
|
@@ -2,7 +2,7 @@ import { AbsoluteInstant } from "../runtime.js";
|
|
|
2
2
|
import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, InternalError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
|
-
|
|
5
|
+
// src/effect/generated/analytics.ts
|
|
6
6
|
const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
after: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
|
|
8
8
|
before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null]))
|
|
@@ -182,7 +182,6 @@ var AnalyticsGroup = class extends HttpApiGroup.make("Analytics").add(HttpApiEnd
|
|
|
182
182
|
AnalyticsGetTopContacts504.pipe(HttpApiSchema.status(504))
|
|
183
183
|
]
|
|
184
184
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "analytics.getTopContacts").annotate(OpenApi.Summary, "List top contacts by message volume").annotate(OpenApi.Description, "Returns the contacts your organization exchanged the most messages with over the selected date range. `sortBy` chooses the traffic `messageCount` reports and ranks by: `sent` counts outbound messages addressed to the contact, `received` counts inbound messages the contact sent you, and `total` (the default) counts both. Contacts with no traffic in the range are omitted, and at most 100 are returned.")).annotate(OpenApi.Description, "Messaging analytics, channel stats, and data export. Every date range is half-open — `after` inclusive, `before` exclusive — and may span at most 366 days. Both bounds are absolute ISO-8601 instants carrying `Z` or a numeric offset; a bare calendar date is rejected, because reading it as UTC midnight would shift every bucket for an organization outside UTC. `AnalyticsQueryError` refuses a longer span and a `before` sent without an `after`, which bounds nothing. Omitting both bounds reports the organization's whole history. Calendar buckets follow the organization's timezone.") {};
|
|
185
|
-
//#endregion
|
|
186
185
|
export { AnalyticsExportData200, AnalyticsExportData400, AnalyticsExportData401, AnalyticsExportData403, AnalyticsExportData422, AnalyticsExportData500, AnalyticsExportData504, AnalyticsExportDataRequestJson, AnalyticsGetChannelStats200, AnalyticsGetChannelStats400, AnalyticsGetChannelStats401, AnalyticsGetChannelStats403, AnalyticsGetChannelStats422, AnalyticsGetChannelStats500, AnalyticsGetChannelStats504, AnalyticsGetChannelStatsQuery, AnalyticsGetDeliveryMetrics200, AnalyticsGetDeliveryMetrics400, AnalyticsGetDeliveryMetrics401, AnalyticsGetDeliveryMetrics403, AnalyticsGetDeliveryMetrics422, AnalyticsGetDeliveryMetrics500, AnalyticsGetDeliveryMetrics504, AnalyticsGetDeliveryMetricsQuery, AnalyticsGetHourlyDistribution200, AnalyticsGetHourlyDistribution400, AnalyticsGetHourlyDistribution401, AnalyticsGetHourlyDistribution403, AnalyticsGetHourlyDistribution422, AnalyticsGetHourlyDistribution500, AnalyticsGetHourlyDistribution504, AnalyticsGetHourlyDistributionQuery, AnalyticsGetStats200, AnalyticsGetStats400, AnalyticsGetStats401, AnalyticsGetStats403, AnalyticsGetStats422, AnalyticsGetStats500, AnalyticsGetStats504, AnalyticsGetStatsQuery, AnalyticsGetTopContacts200, AnalyticsGetTopContacts400, AnalyticsGetTopContacts401, AnalyticsGetTopContacts403, AnalyticsGetTopContacts422, AnalyticsGetTopContacts500, AnalyticsGetTopContacts504, AnalyticsGetTopContactsQuery, AnalyticsGroup };
|
|
187
186
|
|
|
188
187
|
//# sourceMappingURL=analytics.js.map
|
|
@@ -2,7 +2,7 @@ import { SensitiveString } from "../runtime.js";
|
|
|
2
2
|
import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendMode, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
|
-
|
|
5
|
+
// src/effect/generated/api-keys.ts
|
|
6
6
|
const ApiKeyOwner = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
id: Schema.String,
|
|
8
8
|
name: Schema.String,
|
|
@@ -245,7 +245,6 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
245
245
|
ApiKeysGetStats504.pipe(HttpApiSchema.status(504))
|
|
246
246
|
]
|
|
247
247
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.getStats").annotate(OpenApi.Summary, "Get API key send statistics").annotate(OpenApi.Description, "Returns aggregate send counts and daily volume attributed to an API key between `after` and `before`, a window of at most 90 days that defaults to the last 30 days.")).annotate(OpenApi.Description, "API key management, rotation, and usage statistics") {};
|
|
248
|
-
//#endregion
|
|
249
248
|
export { APIKeysGroup, ApiKey, ApiKeyActivityPage, ApiKeyMailboxAccessUpdate, ApiKeyOwner, ApiKeyPage, ApiKeyWithSecret, ApiKeysCreate201, ApiKeysCreate401, ApiKeysCreate402, ApiKeysCreate403, ApiKeysCreate404, ApiKeysCreate422, ApiKeysCreate429, ApiKeysCreate500, ApiKeysCreate502, ApiKeysCreate504, ApiKeysCreateRequestJson, ApiKeysGet200, ApiKeysGet401, ApiKeysGet403, ApiKeysGet404, ApiKeysGet422, ApiKeysGet500, ApiKeysGet504, ApiKeysGetActivity200, ApiKeysGetActivity401, ApiKeysGetActivity403, ApiKeysGetActivity404, ApiKeysGetActivity422, ApiKeysGetActivity500, ApiKeysGetActivity504, ApiKeysGetActivityPathParams, ApiKeysGetActivityQuery, ApiKeysGetPathParams, ApiKeysGetStats200, ApiKeysGetStats401, ApiKeysGetStats403, ApiKeysGetStats404, ApiKeysGetStats422, ApiKeysGetStats500, ApiKeysGetStats504, ApiKeysGetStatsPathParams, ApiKeysGetStatsQuery, ApiKeysList200, ApiKeysList401, ApiKeysList403, ApiKeysList422, ApiKeysList500, ApiKeysList504, ApiKeysListQuery, ApiKeysRevoke200, ApiKeysRevoke401, ApiKeysRevoke403, ApiKeysRevoke404, ApiKeysRevoke422, ApiKeysRevoke500, ApiKeysRevoke502, ApiKeysRevoke504, ApiKeysRevokePathParams, ApiKeysRotate200, ApiKeysRotate401, ApiKeysRotate403, ApiKeysRotate404, ApiKeysRotate422, ApiKeysRotate500, ApiKeysRotate504, ApiKeysRotatePathParams, ApiKeysUpdate200, ApiKeysUpdate401, ApiKeysUpdate403, ApiKeysUpdate404, ApiKeysUpdate422, ApiKeysUpdate500, ApiKeysUpdate504, ApiKeysUpdatePathParams, ApiKeysUpdateRequestJson };
|
|
250
249
|
|
|
251
250
|
//# sourceMappingURL=api-keys.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
|
|
4
|
+
// src/effect/generated/attachments.ts
|
|
5
5
|
const AttachmentList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Schema.Struct({
|
|
6
6
|
id: AttachmentId,
|
|
7
7
|
messageId: MessageId,
|
|
@@ -119,7 +119,6 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
|
|
|
119
119
|
AttachmentsDownloadUrl504.pipe(HttpApiSchema.status(504))
|
|
120
120
|
]
|
|
121
121
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "attachments.downloadUrl").annotate(OpenApi.Summary, "Get an attachment download URL").annotate(OpenApi.Description, "Generates a presigned, time-limited download URL for the attachment; expiry is configurable via the expiresIn query parameter.")).annotate(OpenApi.Description, "Email attachment metadata and secure download URLs") {};
|
|
122
|
-
//#endregion
|
|
123
122
|
export { AttachmentList, AttachmentsDownloadUrl200, AttachmentsDownloadUrl401, AttachmentsDownloadUrl403, AttachmentsDownloadUrl404, AttachmentsDownloadUrl422, AttachmentsDownloadUrl500, AttachmentsDownloadUrl504, AttachmentsDownloadUrlPathParams, AttachmentsDownloadUrlQuery, AttachmentsGetById200, AttachmentsGetById401, AttachmentsGetById403, AttachmentsGetById404, AttachmentsGetById422, AttachmentsGetById500, AttachmentsGetById504, AttachmentsGetByIdPathParams, AttachmentsGroup, AttachmentsList200, AttachmentsList401, AttachmentsList403, AttachmentsList404, AttachmentsList422, AttachmentsList500, AttachmentsList504, AttachmentsListQuery, AttachmentsRemove200, AttachmentsRemove401, AttachmentsRemove403, AttachmentsRemove404, AttachmentsRemove422, AttachmentsRemove500, AttachmentsRemove504, AttachmentsRemovePathParams };
|
|
124
123
|
|
|
125
124
|
//# sourceMappingURL=attachments.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
|
|
4
|
+
// src/effect/generated/brands.ts
|
|
5
5
|
const BrandId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^brand_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
6
6
|
expected: "a string matching the RegExp ^brand_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
7
7
|
identifier: "BrandId"
|
|
@@ -149,7 +149,6 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
|
|
|
149
149
|
BrandsSetDefault504.pipe(HttpApiSchema.status(504))
|
|
150
150
|
]
|
|
151
151
|
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.setDefault").annotate(OpenApi.Summary, "Make a brand the default").annotate(OpenApi.Description, "Makes this brand the organization's default: bare `samva:brand` and domains without a brand resolve to it at their next build or send.")).annotate(OpenApi.Description, "Brand themes, logos and footers that templates import with `samva:brand`.") {};
|
|
152
|
-
//#endregion
|
|
153
152
|
export { Brand, BrandId, BrandList, BrandsCreate201, BrandsCreate401, BrandsCreate403, BrandsCreate409, BrandsCreate422, BrandsCreate500, BrandsCreate504, BrandsCreateRequestJson, BrandsGet200, BrandsGet401, BrandsGet403, BrandsGet404, BrandsGet422, BrandsGet500, BrandsGet504, BrandsGetPathParams, BrandsGroup, BrandsList200, BrandsList401, BrandsList403, BrandsList422, BrandsList500, BrandsList504, BrandsRemove200, BrandsRemove401, BrandsRemove403, BrandsRemove404, BrandsRemove409, BrandsRemove422, BrandsRemove500, BrandsRemove504, BrandsRemovePathParams, BrandsSetDefault200, BrandsSetDefault401, BrandsSetDefault403, BrandsSetDefault404, BrandsSetDefault422, BrandsSetDefault500, BrandsSetDefault504, BrandsSetDefaultPathParams, BrandsUpdate200, BrandsUpdate401, BrandsUpdate403, BrandsUpdate404, BrandsUpdate409, BrandsUpdate422, BrandsUpdate500, BrandsUpdate504, BrandsUpdatePathParams, BrandsUpdateRequestJson };
|
|
154
153
|
|
|
155
154
|
//# sourceMappingURL=brands.js.map
|