samva 0.46.1 → 0.48.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 +13 -7
- package/README.md +106 -8
- package/dist/agent/index.d.ts +57 -0
- package/dist/agent/index.js +53 -0
- package/dist/agent/runtime.d.ts +3 -0
- package/dist/agent/runtime.js +95 -0
- package/dist/agent/test.d.ts +31 -0
- package/dist/agent/test.js +66 -0
- package/dist/agent/types.d.ts +150 -0
- package/dist/client/sdk.gen.d.ts +50 -165
- package/dist/client/sdk.gen.js +1339 -1614
- package/dist/client/types.gen.d.ts +461 -989
- package/dist/effect/agents.d.ts +340 -8
- package/dist/effect/agents.js +4 -2
- package/dist/effect/api-keys.d.ts +2 -0
- package/dist/effect/campaigns.d.ts +160 -160
- package/dist/effect/contacts.d.ts +8 -0
- package/dist/effect/contacts.js +5 -1
- package/dist/effect/descriptors/agents.d.ts +12 -2
- package/dist/effect/descriptors/agents.js +12 -2
- package/dist/effect/descriptors/contacts.d.ts +20 -0
- package/dist/effect/descriptors/contacts.js +20 -0
- package/dist/effect/generated/accounts.d.ts +10 -0
- package/dist/effect/generated/accounts.js +1 -0
- package/dist/effect/generated/agents.d.ts +2967 -690
- package/dist/effect/generated/agents.js +54 -13
- package/dist/effect/generated/api-keys.d.ts +15 -0
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/contacts.d.ts +859 -1
- package/dist/effect/generated/contacts.js +62 -3
- package/dist/effect/generated/index.d.ts +1 -5
- package/dist/effect/generated/journeys.d.ts +351 -111
- package/dist/effect/generated/journeys.js +3 -1
- package/dist/effect/generated/mailboxes.d.ts +93 -95
- package/dist/effect/generated/mailboxes.js +21 -25
- package/dist/effect/generated/shared.d.ts +459 -139
- package/dist/effect/generated/shared.js +84 -39
- package/dist/effect/generated/template-registrations.d.ts +19 -4
- package/dist/effect/generated/template-registrations.js +8 -7
- package/dist/effect/generated/templates.d.ts +76 -11
- package/dist/effect/generated/templates.js +25 -12
- package/dist/effect/generated-metadata.d.ts +18 -84
- package/dist/effect/generated-metadata.js +362 -415
- package/dist/effect/index.d.ts +0 -2
- package/dist/effect/index.js +1 -3
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/operation.js +4 -1
- package/dist/effect/journeys.d.ts +26 -2
- package/dist/effect/mailboxes.d.ts +41 -41
- package/dist/effect/scheduled-messages.d.ts +350 -350
- package/dist/effect/templates.d.ts +9 -0
- package/dist/effect/topics.d.ts +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -5
- package/dist/promises/client.js +3 -7
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +18 -75
- package/package.json +10 -22
- package/dist/effect/descriptors/extension-installations.d.ts +0 -90
- package/dist/effect/descriptors/extension-installations.js +0 -90
- package/dist/effect/descriptors/extensions.d.ts +0 -50
- package/dist/effect/descriptors/extensions.js +0 -50
- package/dist/effect/extension-installations.d.ts +0 -132
- package/dist/effect/extension-installations.js +0 -29
- package/dist/effect/extensions.d.ts +0 -102
- package/dist/effect/extensions.js +0 -21
- package/dist/effect/generated/extension-installations.d.ts +0 -2761
- package/dist/effect/generated/extension-installations.js +0 -405
- package/dist/effect/generated/extensions.d.ts +0 -1037
- package/dist/effect/generated/extensions.js +0 -214
- package/dist/mailbox/dispatch.d.ts +0 -10
- package/dist/mailbox/dispatch.js +0 -66
- package/dist/mailbox/index.d.ts +0 -17
- package/dist/mailbox/index.js +0 -30
- package/dist/mailbox/test.d.ts +0 -25
- package/dist/mailbox/test.js +0 -181
- package/dist/mailbox/types.d.ts +0 -221
- package/dist/mailbox/webhook.d.ts +0 -10
- package/dist/mailbox/webhook.js +0 -41
package/dist/effect/agents.d.ts
CHANGED
|
@@ -18,8 +18,6 @@ export declare const rerunTests: (input: {
|
|
|
18
18
|
readonly names: readonly string[];
|
|
19
19
|
};
|
|
20
20
|
}[];
|
|
21
|
-
readonly eventTriggers?: readonly string[] | undefined;
|
|
22
|
-
readonly followUpTemplate?: string | undefined;
|
|
23
21
|
readonly policy: {
|
|
24
22
|
readonly presets: readonly string[];
|
|
25
23
|
readonly rules: readonly ({
|
|
@@ -84,6 +82,8 @@ export declare const rerunTests: (input: {
|
|
|
84
82
|
}[];
|
|
85
83
|
} | null;
|
|
86
84
|
readonly takeoverTimeoutMinutes: number;
|
|
85
|
+
readonly eventTriggers?: readonly string[] | undefined;
|
|
86
|
+
readonly followUpTemplate?: string | undefined;
|
|
87
87
|
};
|
|
88
88
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsRerunTests">;
|
|
89
89
|
export declare const list: ((input?: {
|
|
@@ -150,8 +150,6 @@ export declare const create: (input: {
|
|
|
150
150
|
readonly names: readonly string[];
|
|
151
151
|
};
|
|
152
152
|
}[];
|
|
153
|
-
readonly eventTriggers?: readonly string[] | undefined;
|
|
154
|
-
readonly followUpTemplate?: string | undefined;
|
|
155
153
|
readonly policy: {
|
|
156
154
|
readonly presets: readonly string[];
|
|
157
155
|
readonly rules: readonly ({
|
|
@@ -216,6 +214,8 @@ export declare const create: (input: {
|
|
|
216
214
|
}[];
|
|
217
215
|
} | null;
|
|
218
216
|
readonly takeoverTimeoutMinutes: number;
|
|
217
|
+
readonly eventTriggers?: readonly string[] | undefined;
|
|
218
|
+
readonly followUpTemplate?: string | undefined;
|
|
219
219
|
} | null | undefined;
|
|
220
220
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsCreate">;
|
|
221
221
|
export declare const listModels: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsListModels">;
|
|
@@ -250,8 +250,6 @@ export declare const replaceDraft: (input: {
|
|
|
250
250
|
readonly names: readonly string[];
|
|
251
251
|
};
|
|
252
252
|
}[];
|
|
253
|
-
readonly eventTriggers?: readonly string[] | undefined;
|
|
254
|
-
readonly followUpTemplate?: string | undefined;
|
|
255
253
|
readonly policy: {
|
|
256
254
|
readonly presets: readonly string[];
|
|
257
255
|
readonly rules: readonly ({
|
|
@@ -316,15 +314,142 @@ export declare const replaceDraft: (input: {
|
|
|
316
314
|
}[];
|
|
317
315
|
} | null;
|
|
318
316
|
readonly takeoverTimeoutMinutes: number;
|
|
317
|
+
readonly eventTriggers?: readonly string[] | undefined;
|
|
318
|
+
readonly followUpTemplate?: string | undefined;
|
|
319
319
|
};
|
|
320
320
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsReplaceDraft">;
|
|
321
321
|
export declare const publish: (input: {
|
|
322
322
|
readonly id: string;
|
|
323
323
|
readonly revision: string;
|
|
324
324
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsPublish">;
|
|
325
|
-
export declare const
|
|
325
|
+
export declare const publishVersion: (input: {
|
|
326
326
|
readonly id: string;
|
|
327
|
-
|
|
327
|
+
readonly revision: string;
|
|
328
|
+
readonly bundle: {
|
|
329
|
+
readonly source: string;
|
|
330
|
+
readonly manifest: {
|
|
331
|
+
readonly name: string;
|
|
332
|
+
readonly version: string;
|
|
333
|
+
readonly knowledgeSourceIds?: readonly string[] | undefined;
|
|
334
|
+
readonly endpointIds: readonly string[];
|
|
335
|
+
readonly integrations: readonly {
|
|
336
|
+
readonly integrationId: string;
|
|
337
|
+
readonly subject?: "contact" | "org" | undefined;
|
|
338
|
+
readonly tools: {
|
|
339
|
+
readonly kind: "all";
|
|
340
|
+
} | {
|
|
341
|
+
readonly kind: "readOnly";
|
|
342
|
+
} | {
|
|
343
|
+
readonly kind: "selected";
|
|
344
|
+
readonly names: readonly string[];
|
|
345
|
+
};
|
|
346
|
+
}[];
|
|
347
|
+
readonly policy: {
|
|
348
|
+
readonly presets: readonly string[];
|
|
349
|
+
readonly rules: readonly ({
|
|
350
|
+
readonly match: {
|
|
351
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
|
|
352
|
+
readonly effect?: "final" | "read" | "write" | null | undefined;
|
|
353
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
|
|
354
|
+
readonly integration?: string | null | undefined;
|
|
355
|
+
readonly tool?: string | null | undefined;
|
|
356
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
357
|
+
readonly kind: "agent";
|
|
358
|
+
readonly id: string;
|
|
359
|
+
} | {
|
|
360
|
+
readonly kind: "apiKey";
|
|
361
|
+
readonly id: string;
|
|
362
|
+
} | {
|
|
363
|
+
readonly kind: "member";
|
|
364
|
+
readonly userId: string;
|
|
365
|
+
} | {
|
|
366
|
+
readonly kind: "extension";
|
|
367
|
+
readonly id: string;
|
|
368
|
+
} | null | undefined;
|
|
369
|
+
};
|
|
370
|
+
readonly note?: string | null | undefined;
|
|
371
|
+
readonly decide: "model" | "never" | "person" | "run";
|
|
372
|
+
readonly atLeast?: null | undefined;
|
|
373
|
+
} | {
|
|
374
|
+
readonly match: {
|
|
375
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null | undefined;
|
|
376
|
+
readonly effect?: "final" | "read" | "write" | null | undefined;
|
|
377
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null | undefined;
|
|
378
|
+
readonly integration?: string | null | undefined;
|
|
379
|
+
readonly tool?: string | null | undefined;
|
|
380
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
381
|
+
readonly kind: "agent";
|
|
382
|
+
readonly id: string;
|
|
383
|
+
} | {
|
|
384
|
+
readonly kind: "apiKey";
|
|
385
|
+
readonly id: string;
|
|
386
|
+
} | {
|
|
387
|
+
readonly kind: "member";
|
|
388
|
+
readonly userId: string;
|
|
389
|
+
} | {
|
|
390
|
+
readonly kind: "extension";
|
|
391
|
+
readonly id: string;
|
|
392
|
+
} | null | undefined;
|
|
393
|
+
};
|
|
394
|
+
readonly note?: string | null | undefined;
|
|
395
|
+
readonly decide?: null | undefined;
|
|
396
|
+
readonly atLeast: "model" | "never" | "person" | "run";
|
|
397
|
+
})[];
|
|
398
|
+
readonly instructions?: string | null | undefined;
|
|
399
|
+
};
|
|
400
|
+
readonly model: string;
|
|
401
|
+
readonly reasoning: "auto" | "high" | "low" | "medium";
|
|
402
|
+
readonly workingHours: {
|
|
403
|
+
readonly timeZone: string;
|
|
404
|
+
readonly ranges: readonly {
|
|
405
|
+
readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
|
|
406
|
+
readonly opens: string;
|
|
407
|
+
readonly closes: string;
|
|
408
|
+
}[];
|
|
409
|
+
} | null;
|
|
410
|
+
readonly takeoverTimeoutMinutes: number;
|
|
411
|
+
readonly eventTriggers?: readonly string[] | undefined;
|
|
412
|
+
readonly followUpTemplate?: string | undefined;
|
|
413
|
+
readonly tools: {
|
|
414
|
+
readonly [x: string]: {
|
|
415
|
+
readonly description: string;
|
|
416
|
+
readonly input: {
|
|
417
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
|
|
418
|
+
readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
|
|
419
|
+
} | null)[] | {
|
|
420
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
421
|
+
} | null)[] | {
|
|
422
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
423
|
+
} | null)[] | {
|
|
424
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
425
|
+
} | null)[] | {
|
|
426
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
427
|
+
} | null)[] | {
|
|
428
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
429
|
+
} | null)[] | {
|
|
430
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
431
|
+
} | null)[] | {
|
|
432
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
433
|
+
} | null)[] | {
|
|
434
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
435
|
+
} | null)[] | {
|
|
436
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
437
|
+
} | null)[] | {
|
|
438
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
439
|
+
} | null)[] | {
|
|
440
|
+
readonly [x: string]: string | number | boolean | any | any | null | undefined;
|
|
441
|
+
} | null | undefined;
|
|
442
|
+
};
|
|
443
|
+
readonly approval?: "model" | "never" | "person" | "run" | undefined;
|
|
444
|
+
readonly replay: "safe" | "unsafe";
|
|
445
|
+
} | undefined;
|
|
446
|
+
};
|
|
447
|
+
readonly skills: readonly string[];
|
|
448
|
+
readonly events: readonly string[];
|
|
449
|
+
readonly schedules: readonly string[];
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsPublishVersion">;
|
|
328
453
|
export declare const listVersions: ((input: {
|
|
329
454
|
readonly id: string;
|
|
330
455
|
readonly limit?: number | null | undefined;
|
|
@@ -338,6 +463,108 @@ export declare const listVersions: ((input: {
|
|
|
338
463
|
readonly items: readonly {
|
|
339
464
|
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
340
465
|
readonly version: number;
|
|
466
|
+
readonly bundle: {
|
|
467
|
+
readonly sha256: string;
|
|
468
|
+
readonly sizeBytes: number;
|
|
469
|
+
readonly manifest: {
|
|
470
|
+
readonly name: string;
|
|
471
|
+
readonly version: string;
|
|
472
|
+
readonly knowledgeSourceIds?: readonly (string & import("effect/Brand").Brand<"KnowledgeSourceId">)[];
|
|
473
|
+
readonly endpointIds: readonly (string & import("effect/Brand").Brand<"MailboxEndpointId">)[];
|
|
474
|
+
readonly integrations: readonly {
|
|
475
|
+
readonly integrationId: string & import("effect/Brand").Brand<"IntegrationId">;
|
|
476
|
+
readonly subject?: "contact" | "org";
|
|
477
|
+
readonly tools: {
|
|
478
|
+
readonly kind: "all";
|
|
479
|
+
} | {
|
|
480
|
+
readonly kind: "readOnly";
|
|
481
|
+
} | {
|
|
482
|
+
readonly kind: "selected";
|
|
483
|
+
readonly names: readonly string[];
|
|
484
|
+
};
|
|
485
|
+
}[];
|
|
486
|
+
readonly policy: {
|
|
487
|
+
readonly presets: readonly string[];
|
|
488
|
+
readonly rules: readonly ({
|
|
489
|
+
readonly match: {
|
|
490
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
|
|
491
|
+
readonly effect?: "final" | "read" | "write" | null;
|
|
492
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
493
|
+
readonly integration?: string | null;
|
|
494
|
+
readonly tool?: string | null;
|
|
495
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
496
|
+
readonly kind: "agent";
|
|
497
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
498
|
+
} | {
|
|
499
|
+
readonly kind: "apiKey";
|
|
500
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
501
|
+
} | {
|
|
502
|
+
readonly kind: "member";
|
|
503
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
504
|
+
} | {
|
|
505
|
+
readonly kind: "extension";
|
|
506
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
507
|
+
} | null;
|
|
508
|
+
};
|
|
509
|
+
readonly note?: string | null;
|
|
510
|
+
readonly decide: "model" | "never" | "person" | "run";
|
|
511
|
+
readonly atLeast?: null;
|
|
512
|
+
} | {
|
|
513
|
+
readonly match: {
|
|
514
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
|
|
515
|
+
readonly effect?: "final" | "read" | "write" | null;
|
|
516
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
517
|
+
readonly integration?: string | null;
|
|
518
|
+
readonly tool?: string | null;
|
|
519
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
520
|
+
readonly kind: "agent";
|
|
521
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
522
|
+
} | {
|
|
523
|
+
readonly kind: "apiKey";
|
|
524
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
525
|
+
} | {
|
|
526
|
+
readonly kind: "member";
|
|
527
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
528
|
+
} | {
|
|
529
|
+
readonly kind: "extension";
|
|
530
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
531
|
+
} | null;
|
|
532
|
+
};
|
|
533
|
+
readonly note?: string | null;
|
|
534
|
+
readonly decide?: null;
|
|
535
|
+
readonly atLeast: "model" | "never" | "person" | "run";
|
|
536
|
+
})[];
|
|
537
|
+
readonly instructions?: string | null;
|
|
538
|
+
};
|
|
539
|
+
readonly model: string;
|
|
540
|
+
readonly reasoning: "auto" | "high" | "low" | "medium";
|
|
541
|
+
readonly workingHours: {
|
|
542
|
+
readonly timeZone: string;
|
|
543
|
+
readonly ranges: readonly {
|
|
544
|
+
readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
|
|
545
|
+
readonly opens: string;
|
|
546
|
+
readonly closes: string;
|
|
547
|
+
}[];
|
|
548
|
+
} | null;
|
|
549
|
+
readonly takeoverTimeoutMinutes: number;
|
|
550
|
+
readonly eventTriggers?: readonly string[];
|
|
551
|
+
readonly followUpTemplate?: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
552
|
+
readonly tools: {
|
|
553
|
+
readonly [x: string]: {
|
|
554
|
+
readonly description: string;
|
|
555
|
+
readonly input: {
|
|
556
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
557
|
+
};
|
|
558
|
+
readonly approval?: "model" | "never" | "person" | "run";
|
|
559
|
+
readonly replay: "safe" | "unsafe";
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
readonly skills: readonly string[];
|
|
563
|
+
readonly events: readonly string[];
|
|
564
|
+
readonly schedules: readonly string[];
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
readonly authoring: "builder" | "code";
|
|
341
568
|
readonly publishedAt: string;
|
|
342
569
|
}[];
|
|
343
570
|
readonly nextCursor: string | null;
|
|
@@ -349,9 +576,114 @@ export declare const listVersions: ((input: {
|
|
|
349
576
|
}) => import("effect/Stream").Stream<{
|
|
350
577
|
readonly agentId: string & import("effect/Brand").Brand<"AgentId">;
|
|
351
578
|
readonly version: number;
|
|
579
|
+
readonly bundle: {
|
|
580
|
+
readonly sha256: string;
|
|
581
|
+
readonly sizeBytes: number;
|
|
582
|
+
readonly manifest: {
|
|
583
|
+
readonly name: string;
|
|
584
|
+
readonly version: string;
|
|
585
|
+
readonly knowledgeSourceIds?: readonly (string & import("effect/Brand").Brand<"KnowledgeSourceId">)[];
|
|
586
|
+
readonly endpointIds: readonly (string & import("effect/Brand").Brand<"MailboxEndpointId">)[];
|
|
587
|
+
readonly integrations: readonly {
|
|
588
|
+
readonly integrationId: string & import("effect/Brand").Brand<"IntegrationId">;
|
|
589
|
+
readonly subject?: "contact" | "org";
|
|
590
|
+
readonly tools: {
|
|
591
|
+
readonly kind: "all";
|
|
592
|
+
} | {
|
|
593
|
+
readonly kind: "readOnly";
|
|
594
|
+
} | {
|
|
595
|
+
readonly kind: "selected";
|
|
596
|
+
readonly names: readonly string[];
|
|
597
|
+
};
|
|
598
|
+
}[];
|
|
599
|
+
readonly policy: {
|
|
600
|
+
readonly presets: readonly string[];
|
|
601
|
+
readonly rules: readonly ({
|
|
602
|
+
readonly match: {
|
|
603
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
|
|
604
|
+
readonly effect?: "final" | "read" | "write" | null;
|
|
605
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
606
|
+
readonly integration?: string | null;
|
|
607
|
+
readonly tool?: string | null;
|
|
608
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
609
|
+
readonly kind: "agent";
|
|
610
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
611
|
+
} | {
|
|
612
|
+
readonly kind: "apiKey";
|
|
613
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
614
|
+
} | {
|
|
615
|
+
readonly kind: "member";
|
|
616
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
617
|
+
} | {
|
|
618
|
+
readonly kind: "extension";
|
|
619
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
620
|
+
} | null;
|
|
621
|
+
};
|
|
622
|
+
readonly note?: string | null;
|
|
623
|
+
readonly decide: "model" | "never" | "person" | "run";
|
|
624
|
+
readonly atLeast?: null;
|
|
625
|
+
} | {
|
|
626
|
+
readonly match: {
|
|
627
|
+
readonly kind?: "handoff" | "reply" | "send" | "toolCall" | null;
|
|
628
|
+
readonly effect?: "final" | "read" | "write" | null;
|
|
629
|
+
readonly channel?: "email" | "sms" | "whatsapp" | null;
|
|
630
|
+
readonly integration?: string | null;
|
|
631
|
+
readonly tool?: string | null;
|
|
632
|
+
readonly subject?: "agent" | "apiKey" | "extension" | "member" | {
|
|
633
|
+
readonly kind: "agent";
|
|
634
|
+
readonly id: string & import("effect/Brand").Brand<"AgentId">;
|
|
635
|
+
} | {
|
|
636
|
+
readonly kind: "apiKey";
|
|
637
|
+
readonly id: string & import("effect/Brand").Brand<"ApiKeyId">;
|
|
638
|
+
} | {
|
|
639
|
+
readonly kind: "member";
|
|
640
|
+
readonly userId: string & import("effect/Brand").Brand<"UserId">;
|
|
641
|
+
} | {
|
|
642
|
+
readonly kind: "extension";
|
|
643
|
+
readonly id: string & import("effect/Brand").Brand<"ExtensionInstallationId">;
|
|
644
|
+
} | null;
|
|
645
|
+
};
|
|
646
|
+
readonly note?: string | null;
|
|
647
|
+
readonly decide?: null;
|
|
648
|
+
readonly atLeast: "model" | "never" | "person" | "run";
|
|
649
|
+
})[];
|
|
650
|
+
readonly instructions?: string | null;
|
|
651
|
+
};
|
|
652
|
+
readonly model: string;
|
|
653
|
+
readonly reasoning: "auto" | "high" | "low" | "medium";
|
|
654
|
+
readonly workingHours: {
|
|
655
|
+
readonly timeZone: string;
|
|
656
|
+
readonly ranges: readonly {
|
|
657
|
+
readonly day: "friday" | "monday" | "saturday" | "sunday" | "thursday" | "tuesday" | "wednesday";
|
|
658
|
+
readonly opens: string;
|
|
659
|
+
readonly closes: string;
|
|
660
|
+
}[];
|
|
661
|
+
} | null;
|
|
662
|
+
readonly takeoverTimeoutMinutes: number;
|
|
663
|
+
readonly eventTriggers?: readonly string[];
|
|
664
|
+
readonly followUpTemplate?: string | (string & import("effect/Brand").Brand<"TemplateId">);
|
|
665
|
+
readonly tools: {
|
|
666
|
+
readonly [x: string]: {
|
|
667
|
+
readonly description: string;
|
|
668
|
+
readonly input: {
|
|
669
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
670
|
+
};
|
|
671
|
+
readonly approval?: "model" | "never" | "person" | "run";
|
|
672
|
+
readonly replay: "safe" | "unsafe";
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
readonly skills: readonly string[];
|
|
676
|
+
readonly events: readonly string[];
|
|
677
|
+
readonly schedules: readonly string[];
|
|
678
|
+
};
|
|
679
|
+
};
|
|
680
|
+
readonly authoring: "builder" | "code";
|
|
352
681
|
readonly publishedAt: string;
|
|
353
682
|
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
354
683
|
};
|
|
684
|
+
export declare const continueOnStandard: (input: {
|
|
685
|
+
readonly id: string;
|
|
686
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/operation.js").OperationResult<"agentsContinueOnStandard">;
|
|
355
687
|
export declare const getVersion: (input: {
|
|
356
688
|
readonly id: string;
|
|
357
689
|
readonly version: string;
|
package/dist/effect/agents.js
CHANGED
|
@@ -12,6 +12,7 @@ var agents_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
12
|
listModels: () => listModels,
|
|
13
13
|
listVersions: () => listVersions,
|
|
14
14
|
publish: () => publish,
|
|
15
|
+
publishVersion: () => publishVersion,
|
|
15
16
|
remove: () => remove,
|
|
16
17
|
replaceDraft: () => replaceDraft,
|
|
17
18
|
rerunTests: () => rerunTests,
|
|
@@ -27,9 +28,10 @@ const update = /* @__PURE__ */ make("agentsUpdate");
|
|
|
27
28
|
const remove = /* @__PURE__ */ make("agentsRemove");
|
|
28
29
|
const replaceDraft = /* @__PURE__ */ make("agentsReplaceDraft");
|
|
29
30
|
const publish = /* @__PURE__ */ make("agentsPublish");
|
|
30
|
-
const
|
|
31
|
+
const publishVersion = /* @__PURE__ */ make("agentsPublishVersion");
|
|
31
32
|
const listVersions = /* @__PURE__ */ make("agentsListVersions");
|
|
33
|
+
const continueOnStandard = /* @__PURE__ */ make("agentsContinueOnStandard");
|
|
32
34
|
const getVersion = /* @__PURE__ */ make("agentsGetVersion");
|
|
33
|
-
export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, remove, replaceDraft, rerunTests, update };
|
|
35
|
+
export { agents_exports, continueOnStandard, create, get, getVersion, list, listModels, listVersions, publish, publishVersion, remove, replaceDraft, rerunTests, update };
|
|
34
36
|
|
|
35
37
|
//# sourceMappingURL=agents.js.map
|
|
@@ -53,6 +53,7 @@ export declare const list: ((input?: {
|
|
|
53
53
|
readonly start: string | null;
|
|
54
54
|
readonly end: string | null;
|
|
55
55
|
readonly description?: string | null;
|
|
56
|
+
readonly source?: string | null;
|
|
56
57
|
readonly createdAt: string;
|
|
57
58
|
readonly expiresAt: string | null;
|
|
58
59
|
readonly lastUsedAt: string | null;
|
|
@@ -106,6 +107,7 @@ export declare const list: ((input?: {
|
|
|
106
107
|
readonly start: string | null;
|
|
107
108
|
readonly end: string | null;
|
|
108
109
|
readonly description?: string | null;
|
|
110
|
+
readonly source?: string | null;
|
|
109
111
|
readonly createdAt: string;
|
|
110
112
|
readonly expiresAt: string | null;
|
|
111
113
|
readonly lastUsedAt: string | null;
|