@wildix/wilma-agents-client 1.0.15 → 1.0.17

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 (42) hide show
  1. package/dist-cjs/WilmaAgents.js +4 -8
  2. package/dist-cjs/commands/{CreateAgentDeploymentCommand.js → PutAgentDeploymentCommand.js} +6 -6
  3. package/dist-cjs/commands/{ListAgentDeploymentsCommand.js → ResetAgentDeploymentCommand.js} +6 -6
  4. package/dist-cjs/commands/index.js +2 -4
  5. package/dist-cjs/models/enums.js +7 -5
  6. package/dist-cjs/runtimeConfig.shared.js +2 -2
  7. package/dist-cjs/schemas/schemas_0.js +66 -111
  8. package/dist-es/WilmaAgents.js +4 -8
  9. package/dist-es/commands/{ListAgentDeploymentsCommand.js → PutAgentDeploymentCommand.js} +5 -5
  10. package/dist-es/commands/{CreateAgentDeploymentCommand.js → ResetAgentDeploymentCommand.js} +5 -5
  11. package/dist-es/commands/index.js +2 -4
  12. package/dist-es/models/enums.js +6 -4
  13. package/dist-es/runtimeConfig.shared.js +2 -2
  14. package/dist-es/schemas/schemas_0.js +63 -108
  15. package/dist-types/WilmaAgents.d.ts +19 -38
  16. package/dist-types/WilmaAgentsClient.d.ts +9 -16
  17. package/dist-types/commands/CreateAgentCommand.d.ts +13 -38
  18. package/dist-types/commands/DeleteAgentCommand.d.ts +1 -1
  19. package/dist-types/commands/GetAgentCommand.d.ts +8 -31
  20. package/dist-types/commands/GetAgentDeploymentCommand.d.ts +6 -26
  21. package/dist-types/commands/GetAgentVersionCommand.d.ts +4 -6
  22. package/dist-types/commands/ListAgentVersionsCommand.d.ts +0 -3
  23. package/dist-types/commands/ListAgentsCommand.d.ts +8 -31
  24. package/dist-types/commands/PublishAgentVersionCommand.d.ts +5 -7
  25. package/dist-types/commands/PutAgentDeploymentCommand.d.ts +90 -0
  26. package/dist-types/commands/ResetAgentDeploymentCommand.d.ts +87 -0
  27. package/dist-types/commands/RestoreAgentVersionToDraftCommand.d.ts +9 -32
  28. package/dist-types/commands/UpdateAgentCommand.d.ts +12 -37
  29. package/dist-types/commands/index.d.ts +2 -4
  30. package/dist-types/index.d.ts +5 -10
  31. package/dist-types/models/enums.d.ts +27 -19
  32. package/dist-types/models/models_0.d.ts +91 -196
  33. package/dist-types/schemas/schemas_0.d.ts +6 -13
  34. package/package.json +1 -1
  35. package/dist-cjs/commands/DeleteAgentDeploymentCommand.js +0 -20
  36. package/dist-cjs/commands/UpdateAgentDeploymentCommand.js +0 -20
  37. package/dist-es/commands/DeleteAgentDeploymentCommand.js +0 -16
  38. package/dist-es/commands/UpdateAgentDeploymentCommand.js +0 -16
  39. package/dist-types/commands/CreateAgentDeploymentCommand.d.ts +0 -115
  40. package/dist-types/commands/DeleteAgentDeploymentCommand.d.ts +0 -81
  41. package/dist-types/commands/ListAgentDeploymentsCommand.d.ts +0 -105
  42. package/dist-types/commands/UpdateAgentDeploymentCommand.d.ts +0 -116
@@ -29,24 +29,6 @@ export declare const ActorType: {
29
29
  * @public
30
30
  */
31
31
  export type ActorType = (typeof ActorType)[keyof typeof ActorType];
32
- /**
33
- * @public
34
- * @enum
35
- */
36
- export declare const AgentDeploymentStatus: {
37
- /**
38
- * The deployment accepts new sessions.
39
- */
40
- readonly ACTIVE: "active";
41
- /**
42
- * The deployment rejects new sessions without changing its routing configuration.
43
- */
44
- readonly PAUSED: "paused";
45
- };
46
- /**
47
- * @public
48
- */
49
- export type AgentDeploymentStatus = (typeof AgentDeploymentStatus)[keyof typeof AgentDeploymentStatus];
50
32
  /**
51
33
  * @public
52
34
  * @enum
@@ -148,6 +130,32 @@ export declare const SandboxNetworkAccess: {
148
130
  * @public
149
131
  */
150
132
  export type SandboxNetworkAccess = (typeof SandboxNetworkAccess)[keyof typeof SandboxNetworkAccess];
133
+ /**
134
+ * @public
135
+ * @enum
136
+ */
137
+ export declare const SandboxSize: {
138
+ /**
139
+ * Large allocation for heavier builds and data processing.
140
+ */
141
+ readonly LARGE: "large";
142
+ /**
143
+ * Largest allocation available.
144
+ */
145
+ readonly MAX: "max";
146
+ /**
147
+ * Smallest allocation; enough for light scripting.
148
+ */
149
+ readonly MIN: "min";
150
+ /**
151
+ * Small allocation for typical tool runs.
152
+ */
153
+ readonly SMALL: "small";
154
+ };
155
+ /**
156
+ * @public
157
+ */
158
+ export type SandboxSize = (typeof SandboxSize)[keyof typeof SandboxSize];
151
159
  /**
152
160
  * @public
153
161
  * @enum
@@ -256,7 +264,7 @@ export declare const ChannelType: {
256
264
  */
257
265
  readonly VOICE: "voice";
258
266
  /**
259
- * No delivery channel: runs as background tasks via wilma-workflows — invoked by other agents (call / delegation / handover), by automations or over the API.
267
+ * No delivery channel: runs as background tasks — invoked by other agents (call / delegation / handover), by automations or over the API.
260
268
  */
261
269
  readonly WORKFLOW: "workflow";
262
270
  };
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { ActorType, AgentDeploymentStatus, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, ChannelType, SandboxNetworkAccess, WebSearchContextSize } from "./enums";
2
+ import type { ActorType, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, ChannelType, SandboxNetworkAccess, SandboxSize, WebSearchContextSize } from "./enums";
3
3
  /**
4
4
  * A user or group that access is granted to.
5
5
  * @public
@@ -71,15 +71,10 @@ export interface AssistantChannelSettings {
71
71
  */
72
72
  export interface ChatChannelSettings {
73
73
  /**
74
- * Whether users can find and add this agent to conversations. Maps from the legacy xbees-users bot `searchable`.
74
+ * Whether users can find and add this agent to conversations.
75
75
  * @public
76
76
  */
77
77
  discoverable?: boolean | undefined;
78
- /**
79
- * Whether the agent can produce artifacts (wilma-artifacts). When an artifact is created the chat runtime shares it company-wide by link before posting the link into the conversation, so every signed-in colleague can open it. Artifacts are company-internal: recipients on external transports (sms / whatsapp) or outside the company cannot open the links, so keep this disabled for customer-facing agents. Defaults to false.
80
- * @public
81
- */
82
- artifacts?: boolean | undefined;
83
78
  }
84
79
  /**
85
80
  * Caller context injected into the model prompt.
@@ -107,15 +102,10 @@ export interface VoiceCallerMetadataSettings {
107
102
  */
108
103
  callerCompany?: boolean | undefined;
109
104
  /**
110
- * Include the current time. Defaults to false.
105
+ * Include the current time, rendered in the agent's `engine.ai.timeZone`. Defaults to false.
111
106
  * @public
112
107
  */
113
108
  time?: boolean | undefined;
114
- /**
115
- * IANA timezone used when time is enabled. Defaults to 'UTC'.
116
- * @public
117
- */
118
- timeZone?: string | undefined;
119
109
  }
120
110
  /**
121
111
  * @public
@@ -234,7 +224,7 @@ export interface VoiceSilenceTimeoutSettings {
234
224
  */
235
225
  export interface VoiceChannelSettings {
236
226
  /**
237
- * Message spoken when the call starts. Maps from the legacy wim-voicebots `message`.
227
+ * Message spoken when the call starts.
238
228
  * @public
239
229
  */
240
230
  greeting?: string | undefined;
@@ -249,6 +239,7 @@ export interface VoiceChannelSettings {
249
239
  callerMetadata?: VoiceCallerMetadataSettings | undefined;
250
240
  }
251
241
  /**
242
+ * Workflow channel settings. Currently empty; presence enables the workflow channel.
252
243
  * @public
253
244
  */
254
245
  export interface WorkflowChannelSettings {
@@ -265,6 +256,10 @@ export interface AgentChannels {
265
256
  voice?: VoiceChannelSettings | undefined;
266
257
  chat?: ChatChannelSettings | undefined;
267
258
  assistant?: AssistantChannelSettings | undefined;
259
+ /**
260
+ * Workflow channel settings. Currently empty; presence enables the workflow channel.
261
+ * @public
262
+ */
268
263
  workflow?: WorkflowChannelSettings | undefined;
269
264
  }
270
265
  /**
@@ -294,55 +289,11 @@ export interface AgentDeploymentRoute {
294
289
  */
295
290
  version: number;
296
291
  /**
297
- * Percentage of eligible new sessions routed to this version. Percentages in a deployment must sum to 100.
292
+ * Percentage of new sessions routed to this version. Percentages must sum to 100.
298
293
  * @public
299
294
  */
300
295
  percentage: number;
301
296
  }
302
- /**
303
- * Standard audit fields carried by every managed resource.
304
- * @public
305
- */
306
- export interface AgentDeployment {
307
- /**
308
- * ISO-8601 timestamp with millisecond precision, e.g. '2026-07-10T14:12:30.123Z'.
309
- * @public
310
- */
311
- createdAt: string;
312
- /**
313
- * Who performed an action: an interactive user, an API key or an internal service.
314
- * @public
315
- */
316
- createdBy: Actor;
317
- /**
318
- * ISO-8601 timestamp with millisecond precision, e.g. '2026-07-10T14:12:30.123Z'.
319
- * @public
320
- */
321
- updatedAt?: string | undefined;
322
- /**
323
- * Who performed an action: an interactive user, an API key or an internal service.
324
- * @public
325
- */
326
- updatedBy?: Actor | undefined;
327
- agentId: string;
328
- /**
329
- * Deployment name, e.g. 'production' or 'staging'. Sessions default to 'production' when no deployment, version or draft selector is provided.
330
- * @public
331
- */
332
- name: string;
333
- description?: string | undefined;
334
- status: AgentDeploymentStatus;
335
- /**
336
- * Weighted routing over distinct published versions. Percentages must sum to 100. Selection is deterministic for a session, and the resolved version is pinned for the session lifetime.
337
- * @public
338
- */
339
- routing: AgentDeploymentRoute[];
340
- /**
341
- * Monotonic revision incremented on every deployment update. Used for optimistic locking.
342
- * @public
343
- */
344
- revision: number;
345
- }
346
297
  /**
347
298
  * The model fills this variable itself, from conversation context. Included in the tool's input schema.
348
299
  * @public
@@ -439,15 +390,10 @@ export interface AgentToolVariable {
439
390
  export interface AgentCallCapability {
440
391
  agentId: string;
441
392
  /**
442
- * Pin a specific published version of the called agent. Mutually exclusive with agentDeployment.
393
+ * Pin a specific published version of the called agent. When absent, the called agent's deployment configuration selects the version at invocation time.
443
394
  * @public
444
395
  */
445
396
  agentVersion?: number | undefined;
446
- /**
447
- * Resolve the called agent through this deployment. When neither agentVersion nor agentDeployment is set, the called agent's 'production' deployment is resolved at invocation time.
448
- * @public
449
- */
450
- agentDeployment?: string | undefined;
451
397
  /**
452
398
  * Who may invoke this sub-agent tool. Evaluated per invoking user when the calling agent (chat / assistant) builds its
453
399
  * toolset: if the user is not granted, this capability is omitted from the tools offered to the model for that session.
@@ -603,7 +549,7 @@ export interface AgentToolApproval {
603
549
  */
604
550
  export interface AgentToolPipeline {
605
551
  /**
606
- * How the model waits for a tool and whether it synthesizes a reply from the result. Mirrors the legacy VoiceBot/Bot capability-tool pipeline.
552
+ * How the model waits for a tool and whether it synthesizes a reply from the result.
607
553
  * @public
608
554
  */
609
555
  type?: AgentToolPipelineType | undefined;
@@ -622,7 +568,7 @@ export interface AgentToolPipeline {
622
568
  */
623
569
  export interface AgentConnectorCapability {
624
570
  /**
625
- * Configured connector instance in wilma-tools. Its pinned definition, permission `grant` and authorization govern what the model can discover via `help` and call.
571
+ * Configured connector instance in wilma-tools. Its pinned definition, permission `grant` and authorization govern what the model can discover via `help` and call. There is no version pin here, unlike `AgentTool.toolVersion`: the action catalogue and its schemas are already frozen by the connector's pinned definition, while `grant` and authorization are read live so permission changes apply at once.
626
572
  * @public
627
573
  */
628
574
  id: string;
@@ -664,15 +610,10 @@ export interface AgentDelegationCapability {
664
610
  */
665
611
  id: string;
666
612
  /**
667
- * Pin a specific published version of the delegate agent. Mutually exclusive with agentDeployment.
613
+ * Pin a specific published version of the delegate agent. When absent, the delegate's deployment configuration selects the version at delegation time.
668
614
  * @public
669
615
  */
670
616
  agentVersion?: number | undefined;
671
- /**
672
- * Resolve the delegate agent through this deployment. When neither agentVersion nor agentDeployment is set, the delegate's 'production' deployment is resolved at delegation time.
673
- * @public
674
- */
675
- agentDeployment?: string | undefined;
676
617
  annotations?: AgentToolAnnotation[] | undefined;
677
618
  }
678
619
  /**
@@ -708,15 +649,10 @@ export interface AgentHandoverCapability {
708
649
  */
709
650
  agent?: string | undefined;
710
651
  /**
711
- * Pin a specific published version of the target agent when variant = AGENT. Mutually exclusive with agentDeployment.
652
+ * Pin a specific published version of the target agent when variant = AGENT. When absent, the target's deployment configuration selects the version at handover time.
712
653
  * @public
713
654
  */
714
655
  agentVersion?: number | undefined;
715
- /**
716
- * Resolve the target agent through this deployment when variant = AGENT. When neither agentVersion nor agentDeployment is set, the target's 'production' deployment is resolved at handover time.
717
- * @public
718
- */
719
- agentDeployment?: string | undefined;
720
656
  /**
721
657
  * x-bees service id to hand over to when variant = SERVICE.
722
658
  * @public
@@ -742,7 +678,7 @@ export interface AgentHangupPipeline {
742
678
  instructions?: string | undefined;
743
679
  }
744
680
  /**
745
- * Let the model end the call. Honoured on the voice channel. Maps from the wim-voicebots HANGUP embedded tool.
681
+ * Let the model end the call. Honoured on the voice channel.
746
682
  * @public
747
683
  */
748
684
  export interface AgentHangupCapability {
@@ -792,10 +728,10 @@ export interface AgentSnapshotSandboxOptions {
792
728
  */
793
729
  allowedDomains?: string[] | undefined;
794
730
  /**
795
- * Override the number of vCPUs allocated. Defaults to the snapshot's resources.
731
+ * Override the compute size for this agent. Defaults to the snapshot's size.
796
732
  * @public
797
733
  */
798
- vcpus?: number | undefined;
734
+ size?: SandboxSize | undefined;
799
735
  }
800
736
  /**
801
737
  * Vercel Sandbox configuration.
@@ -954,18 +890,23 @@ export interface AgentTool {
954
890
  * @public
955
891
  */
956
892
  id: string;
893
+ /**
894
+ * Pin a specific published tool version. When omitted, the tool's latestVersion is resolved at load, so a republished tool reaches this agent without a new agent version. Pin it when `fields` must keep aiming at an exact input schema.
895
+ * @public
896
+ */
897
+ toolVersion?: number | undefined;
957
898
  /**
958
899
  * Override the tool's description for this agent. When omitted, the tool's own description is used.
959
900
  * @public
960
901
  */
961
902
  description?: string | undefined;
962
903
  /**
963
- * Per-field overrides on the tool input schema: pin fixed values (hidden from the model) or refine field descriptions. Fields not listed are filled by the model per the tool schema.
904
+ * Per-field overrides on the tool input schema: pin fixed values (hidden from the model) or refine field descriptions. Fields not listed are filled by the model per the tool schema. Paths are resolved against the input schema of the tool version in effect — pin `toolVersion` when they must not move.
964
905
  * @public
965
906
  */
966
907
  fields?: AgentToolField[] | undefined;
967
908
  /**
968
- * Message spoken when the tool call starts. Honoured on the voice channel. Maps from the legacy wim-voicebots capability-tool `startMessage`.
909
+ * Message spoken when the tool call starts. Honoured on the voice channel.
969
910
  * @public
970
911
  */
971
912
  startMessage?: string | undefined;
@@ -975,7 +916,7 @@ export interface AgentTool {
975
916
  */
976
917
  pipeline?: AgentToolPipeline | undefined;
977
918
  /**
978
- * When present, the tool requires inline approval from the session user before it runs. New feature; no legacy equivalent.
919
+ * When present, the tool requires inline approval from the session user before it runs.
979
920
  * @public
980
921
  */
981
922
  approval?: AgentToolApproval | undefined;
@@ -1022,7 +963,7 @@ export interface AgentTransferCapability {
1022
963
  annotations?: AgentToolAnnotation[] | undefined;
1023
964
  }
1024
965
  /**
1025
- * Let the model hold the call while it works (e.g. a lookup), keeping the caller on the line. Honoured on the voice channel. Maps from the wim-voicebots WAIT embedded tool.
966
+ * Let the model hold the call while it works (e.g. a lookup), keeping the caller on the line. Honoured on the voice channel.
1026
967
  * @public
1027
968
  */
1028
969
  export interface AgentWaitCapability {
@@ -1312,7 +1253,7 @@ export declare namespace AgentCapability {
1312
1253
  $unknown?: never;
1313
1254
  }
1314
1255
  /**
1315
- * Let the model end the call. Honoured on the voice channel. Maps from the wim-voicebots HANGUP embedded tool.
1256
+ * Let the model end the call. Honoured on the voice channel.
1316
1257
  * @public
1317
1258
  */
1318
1259
  interface HangupMember {
@@ -1332,7 +1273,7 @@ export declare namespace AgentCapability {
1332
1273
  $unknown?: never;
1333
1274
  }
1334
1275
  /**
1335
- * Let the model hold the call while it works (e.g. a lookup), keeping the caller on the line. Honoured on the voice channel. Maps from the wim-voicebots WAIT embedded tool.
1276
+ * Let the model hold the call while it works (e.g. a lookup), keeping the caller on the line. Honoured on the voice channel.
1336
1277
  * @public
1337
1278
  */
1338
1279
  interface WaitMember {
@@ -1433,7 +1374,17 @@ export interface AgentAiEngine {
1433
1374
  */
1434
1375
  model?: string | undefined;
1435
1376
  /**
1436
- * Skills attached to this agent (progressive disclosure).
1377
+ * IANA timezone the agent reasons about time in: it anchors the current date and time given to the model and how times are read from and written to tool arguments and replies. Shared by every channel the agent serves. Defaults to 'UTC'.
1378
+ * @public
1379
+ */
1380
+ timeZone?: string | undefined;
1381
+ /**
1382
+ * Whether the agent can produce artifacts (wilma-artifacts): documents, code files, HTML pages or diagrams it writes and shares back during a session, on any channel it serves. When an artifact is created the channel runtime shares it company-wide by link, so every signed-in colleague can open it. Artifacts are company-internal: recipients on external transports (sms / whatsapp) or outside the company cannot open the links, so keep this disabled for customer-facing agents. Defaults to false.
1383
+ * @public
1384
+ */
1385
+ artifacts?: boolean | undefined;
1386
+ /**
1387
+ * Skills attached to this agent (progressive disclosure). A skill may carry its own tools, which join this agent's toolset while that skill is active.
1437
1388
  * @public
1438
1389
  */
1439
1390
  skills?: AgentSkillReference[] | undefined;
@@ -1479,7 +1430,7 @@ export interface AgentWebhookEngine {
1479
1430
  timeout?: number | undefined;
1480
1431
  }
1481
1432
  /**
1482
- * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend. The legacy Dialogflow CX and OpenAI Assistant backends are intentionally not carried over.
1433
+ * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend.
1483
1434
  * @public
1484
1435
  */
1485
1436
  export type AgentEngine = AgentEngine.AiMember | AgentEngine.SqsMember | AgentEngine.WebhookMember | AgentEngine.$UnknownMember;
@@ -1543,7 +1494,7 @@ export declare namespace AgentEngine {
1543
1494
  */
1544
1495
  export interface AgentSettings {
1545
1496
  /**
1546
- * PBX group used for data ACL (e.g. Sales Intelligence lookups). Maps from the legacy wim-voicebots / xbees-users bot `groupId`.
1497
+ * PBX group used for data ACL (e.g. Sales Intelligence lookups).
1547
1498
  * @public
1548
1499
  */
1549
1500
  pbxGroupId?: string | undefined;
@@ -1571,7 +1522,7 @@ export interface Agent {
1571
1522
  */
1572
1523
  channels: AgentChannels;
1573
1524
  /**
1574
- * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend. The legacy Dialogflow CX and OpenAI Assistant backends are intentionally not carried over.
1525
+ * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend.
1575
1526
  * @public
1576
1527
  */
1577
1528
  engine: AgentEngine;
@@ -1626,10 +1577,10 @@ export interface Agent {
1626
1577
  */
1627
1578
  draftBaseVersion?: number | undefined;
1628
1579
  /**
1629
- * Named deployment configurations routing new sessions to published versions.
1580
+ * How new sessions are split across published versions. Absent while the agent is still a draft.
1630
1581
  * @public
1631
1582
  */
1632
- deployments?: AgentDeployment[] | undefined;
1583
+ deployment?: AgentDeploymentRoute[] | undefined;
1633
1584
  }
1634
1585
  /**
1635
1586
  * @public
@@ -1686,7 +1637,7 @@ export interface AgentDefinitionSnapshot {
1686
1637
  */
1687
1638
  channels: AgentChannels;
1688
1639
  /**
1689
- * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend. The legacy Dialogflow CX and OpenAI Assistant backends are intentionally not carried over.
1640
+ * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend.
1690
1641
  * @public
1691
1642
  */
1692
1643
  engine: AgentEngine;
@@ -1816,11 +1767,6 @@ export interface AgentVersionInfo {
1816
1767
  * @public
1817
1768
  */
1818
1769
  publishedBy: Actor;
1819
- /**
1820
- * Names of the deployments currently routing traffic to this version.
1821
- * @public
1822
- */
1823
- deployments?: string[] | undefined;
1824
1770
  }
1825
1771
  /**
1826
1772
  * @public
@@ -1834,7 +1780,7 @@ export interface CompareAgentVersionsInput {
1834
1780
  */
1835
1781
  from?: number | undefined;
1836
1782
  /**
1837
- * Compare against the current draft instead of a published version.
1783
+ * Use the current draft as the base instead of a published version.
1838
1784
  * @public
1839
1785
  */
1840
1786
  fromDraft?: boolean | undefined;
@@ -1844,7 +1790,7 @@ export interface CompareAgentVersionsInput {
1844
1790
  */
1845
1791
  to?: number | undefined;
1846
1792
  /**
1847
- * Compare against the current draft instead of a published version.
1793
+ * Use the current draft as the target instead of a published version.
1848
1794
  * @public
1849
1795
  */
1850
1796
  toDraft?: boolean | undefined;
@@ -1878,7 +1824,7 @@ export interface CreateAgentInput {
1878
1824
  */
1879
1825
  channels: AgentChannels;
1880
1826
  /**
1881
- * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend. The legacy Dialogflow CX and OpenAI Assistant backends are intentionally not carried over.
1827
+ * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend.
1882
1828
  * @public
1883
1829
  */
1884
1830
  engine: AgentEngine;
@@ -1931,31 +1877,6 @@ export interface CreateAgentApiKeyOutput {
1931
1877
  */
1932
1878
  secret: string;
1933
1879
  }
1934
- /**
1935
- * @public
1936
- */
1937
- export interface CreateAgentDeploymentInput {
1938
- company?: string | undefined;
1939
- agentId: string;
1940
- /**
1941
- * Deployment name, e.g. 'production' or 'staging'. Sessions default to 'production' when no deployment, version or draft selector is provided.
1942
- * @public
1943
- */
1944
- name: string;
1945
- description?: string | undefined;
1946
- status: AgentDeploymentStatus;
1947
- routing: AgentDeploymentRoute[];
1948
- }
1949
- /**
1950
- * @public
1951
- */
1952
- export interface CreateAgentDeploymentOutput {
1953
- /**
1954
- * Standard audit fields carried by every managed resource.
1955
- * @public
1956
- */
1957
- deployment: AgentDeployment;
1958
- }
1959
1880
  /**
1960
1881
  * @public
1961
1882
  */
@@ -1981,23 +1902,6 @@ export interface DeleteAgentApiKeyInput {
1981
1902
  */
1982
1903
  export interface DeleteAgentApiKeyOutput {
1983
1904
  }
1984
- /**
1985
- * @public
1986
- */
1987
- export interface DeleteAgentDeploymentInput {
1988
- company?: string | undefined;
1989
- agentId: string;
1990
- /**
1991
- * Deployment name, e.g. 'production' or 'staging'. Sessions default to 'production' when no deployment, version or draft selector is provided.
1992
- * @public
1993
- */
1994
- deploymentName: string;
1995
- }
1996
- /**
1997
- * @public
1998
- */
1999
- export interface DeleteAgentDeploymentOutput {
2000
- }
2001
1905
  /**
2002
1906
  * @public
2003
1907
  */
@@ -2021,21 +1925,16 @@ export interface GetAgentOutput {
2021
1925
  export interface GetAgentDeploymentInput {
2022
1926
  company?: string | undefined;
2023
1927
  agentId: string;
2024
- /**
2025
- * Deployment name, e.g. 'production' or 'staging'. Sessions default to 'production' when no deployment, version or draft selector is provided.
2026
- * @public
2027
- */
2028
- deploymentName: string;
2029
1928
  }
2030
1929
  /**
2031
1930
  * @public
2032
1931
  */
2033
1932
  export interface GetAgentDeploymentOutput {
2034
1933
  /**
2035
- * Standard audit fields carried by every managed resource.
1934
+ * Absent while the agent has no published version serving traffic.
2036
1935
  * @public
2037
1936
  */
2038
- deployment: AgentDeployment;
1937
+ deployment?: AgentDeploymentRoute[] | undefined;
2039
1938
  }
2040
1939
  /**
2041
1940
  * @public
@@ -2068,19 +1967,6 @@ export interface ListAgentApiKeysInput {
2068
1967
  export interface ListAgentApiKeysOutput {
2069
1968
  keys: AgentApiKey[];
2070
1969
  }
2071
- /**
2072
- * @public
2073
- */
2074
- export interface ListAgentDeploymentsInput {
2075
- company?: string | undefined;
2076
- agentId: string;
2077
- }
2078
- /**
2079
- * @public
2080
- */
2081
- export interface ListAgentDeploymentsOutput {
2082
- deployments: AgentDeployment[];
2083
- }
2084
1970
  /**
2085
1971
  * @public
2086
1972
  */
@@ -2184,6 +2070,45 @@ export interface PublishAgentVersionInput {
2184
2070
  export interface PublishAgentVersionOutput {
2185
2071
  version: AgentVersion;
2186
2072
  }
2073
+ /**
2074
+ * @public
2075
+ */
2076
+ export interface PutAgentDeploymentInput {
2077
+ company?: string | undefined;
2078
+ agentId: string;
2079
+ /**
2080
+ * Weighted routing over distinct published versions. Percentages must sum to 100; a single entry at 100 serves one version to everyone.
2081
+ * @public
2082
+ */
2083
+ deployment: AgentDeploymentRoute[];
2084
+ }
2085
+ /**
2086
+ * @public
2087
+ */
2088
+ export interface PutAgentDeploymentOutput {
2089
+ /**
2090
+ * Weighted routing over distinct published versions. Percentages must sum to 100; a single entry at 100 serves one version to everyone.
2091
+ * @public
2092
+ */
2093
+ deployment: AgentDeploymentRoute[];
2094
+ }
2095
+ /**
2096
+ * @public
2097
+ */
2098
+ export interface ResetAgentDeploymentInput {
2099
+ company?: string | undefined;
2100
+ agentId: string;
2101
+ }
2102
+ /**
2103
+ * @public
2104
+ */
2105
+ export interface ResetAgentDeploymentOutput {
2106
+ /**
2107
+ * Weighted routing over distinct published versions. Percentages must sum to 100; a single entry at 100 serves one version to everyone.
2108
+ * @public
2109
+ */
2110
+ deployment: AgentDeploymentRoute[];
2111
+ }
2187
2112
  /**
2188
2113
  * @public
2189
2114
  */
@@ -2234,7 +2159,7 @@ export interface UpdateAgentInput {
2234
2159
  */
2235
2160
  channels: AgentChannels;
2236
2161
  /**
2237
- * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend. The legacy Dialogflow CX and OpenAI Assistant backends are intentionally not carried over.
2162
+ * How the agent produces replies. `ai` is the managed engine; `webhook` and `sqs` delegate to an external backend.
2238
2163
  * @public
2239
2164
  */
2240
2165
  engine: AgentEngine;
@@ -2269,33 +2194,3 @@ export interface UpdateAgentOutput {
2269
2194
  */
2270
2195
  agent: Agent;
2271
2196
  }
2272
- /**
2273
- * @public
2274
- */
2275
- export interface UpdateAgentDeploymentInput {
2276
- company?: string | undefined;
2277
- agentId: string;
2278
- /**
2279
- * Deployment name, e.g. 'production' or 'staging'. Sessions default to 'production' when no deployment, version or draft selector is provided.
2280
- * @public
2281
- */
2282
- deploymentName: string;
2283
- description?: string | undefined;
2284
- status: AgentDeploymentStatus;
2285
- routing: AgentDeploymentRoute[];
2286
- /**
2287
- * Deployment revision this update is based on (optimistic locking).
2288
- * @public
2289
- */
2290
- revision: number;
2291
- }
2292
- /**
2293
- * @public
2294
- */
2295
- export interface UpdateAgentDeploymentOutput {
2296
- /**
2297
- * Standard audit fields carried by every managed resource.
2298
- * @public
2299
- */
2300
- deployment: AgentDeployment;
2301
- }