@wildix/wilma-agents-client 1.0.55 → 1.0.56

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentStatus = exports.AgentWorkflowLayout = exports.AgentWorkflowFailureKind = exports.AgentWorkflowMessageButtonVariant = exports.AgentWorkflowEntryBehavior = exports.AgentVariableType = exports.AgentGuardrailWindow = exports.AgentGuardrailMode = exports.AgentGuardrailErrorMode = exports.AgentGuardrailSensitivity = exports.AgentGuardrailPreset = exports.WebSearchContextSize = exports.AgentTransferVariant = exports.AgentTransferPipelineType = exports.SandboxSize = exports.SandboxNetworkAccess = exports.KnowledgeBaseSearchThreshold = exports.KnowledgeBaseSearchStrategy = exports.AgentHangupPipelineType = exports.AgentHandoverVariant = exports.AgentHandoverPipelineType = exports.AgentToolPipelineType = exports.ChannelType = exports.ActorType = exports.VoicePronunciationEncoding = exports.AgentVisibility = void 0;
3
+ exports.AgentEngineKind = exports.AgentStatus = exports.AgentWorkflowLayout = exports.AgentWorkflowFailureKind = exports.AgentWorkflowMessageButtonVariant = exports.AgentWorkflowEntryBehavior = exports.AgentVariableType = exports.AgentGuardrailWindow = exports.AgentGuardrailMode = exports.AgentGuardrailErrorMode = exports.AgentGuardrailSensitivity = exports.AgentGuardrailPreset = exports.WebSearchContextSize = exports.AgentTransferVariant = exports.AgentTransferPipelineType = exports.SandboxSize = exports.SandboxNetworkAccess = exports.KnowledgeBaseSearchThreshold = exports.KnowledgeBaseSearchStrategy = exports.AgentHangupPipelineType = exports.AgentHandoverVariant = exports.AgentHandoverPipelineType = exports.AgentToolPipelineType = exports.ChannelType = exports.ActorType = exports.VoicePronunciationEncoding = exports.AgentVisibility = void 0;
4
4
  exports.AgentVisibility = {
5
5
  EXPLICIT: "explicit",
6
6
  ORGANIZATION: "organization",
@@ -138,3 +138,8 @@ exports.AgentStatus = {
138
138
  ACTIVE: "active",
139
139
  DRAFT: "draft",
140
140
  };
141
+ exports.AgentEngineKind = {
142
+ AI: "ai",
143
+ SQS: "sqs",
144
+ WEBHOOK: "webhook",
145
+ };
@@ -590,8 +590,8 @@ exports.AgentHangupPipeline$ = [3, n2, _AHPg,
590
590
  ];
591
591
  exports.AgentInfo$ = [3, n2, _AI,
592
592
  0,
593
- [_i, _n, _st, _ch, _p, _ca, _sC, _sI, _as, _lV],
594
- [0, 0, 0, 64 | 0, 0, 0, 2, 64 | 0, () => exports.AssistantUiSettings$, 1], 4
593
+ [_i, _n, _st, _ch, _p, _ca, _sC, _en, _sI, _as, _lV],
594
+ [0, 0, 0, 64 | 0, 0, 0, 2, 0, 64 | 0, () => exports.AssistantUiSettings$, 1], 4
595
595
  ];
596
596
  exports.AgentInlineSandboxOptions$ = [3, n2, _AISO,
597
597
  0,
@@ -621,7 +621,7 @@ exports.AgentSpokenPhrase$ = [3, n2, _ASP,
621
621
  exports.AgentSqsEngine$ = [3, n2, _ASE,
622
622
  0,
623
623
  [_u, _ke, _sec],
624
- [0, 0, () => exports.SecretRef$], 3
624
+ [0, 0, () => exports.SecretRef$], 2
625
625
  ];
626
626
  exports.AgentSuggestionsCapability$ = [3, n2, _ASC,
627
627
  0,
@@ -741,7 +741,7 @@ exports.AgentWebFetchCapability$ = [3, n2, _AWFC,
741
741
  exports.AgentWebhookEngine$ = [3, n2, _AWE,
742
742
  0,
743
743
  [_u, _sec, _ti],
744
- [0, () => exports.SecretRef$, 1], 2
744
+ [0, () => exports.SecretRef$, 1], 1
745
745
  ];
746
746
  exports.AgentWebSearchCapability$ = [3, n2, _AWSC,
747
747
  0,
@@ -135,3 +135,8 @@ export const AgentStatus = {
135
135
  ACTIVE: "active",
136
136
  DRAFT: "draft",
137
137
  };
138
+ export const AgentEngineKind = {
139
+ AI: "ai",
140
+ SQS: "sqs",
141
+ WEBHOOK: "webhook",
142
+ };
@@ -584,8 +584,8 @@ export var AgentHangupPipeline$ = [3, n2, _AHPg,
584
584
  ];
585
585
  export var AgentInfo$ = [3, n2, _AI,
586
586
  0,
587
- [_i, _n, _st, _ch, _p, _ca, _sC, _sI, _as, _lV],
588
- [0, 0, 0, 64 | 0, 0, 0, 2, 64 | 0, () => AssistantUiSettings$, 1], 4
587
+ [_i, _n, _st, _ch, _p, _ca, _sC, _en, _sI, _as, _lV],
588
+ [0, 0, 0, 64 | 0, 0, 0, 2, 0, 64 | 0, () => AssistantUiSettings$, 1], 4
589
589
  ];
590
590
  export var AgentInlineSandboxOptions$ = [3, n2, _AISO,
591
591
  0,
@@ -615,7 +615,7 @@ export var AgentSpokenPhrase$ = [3, n2, _ASP,
615
615
  export var AgentSqsEngine$ = [3, n2, _ASE,
616
616
  0,
617
617
  [_u, _ke, _sec],
618
- [0, 0, () => SecretRef$], 3
618
+ [0, 0, () => SecretRef$], 2
619
619
  ];
620
620
  export var AgentSuggestionsCapability$ = [3, n2, _ASC,
621
621
  0,
@@ -735,7 +735,7 @@ export var AgentWebFetchCapability$ = [3, n2, _AWFC,
735
735
  export var AgentWebhookEngine$ = [3, n2, _AWE,
736
736
  0,
737
737
  [_u, _sec, _ti],
738
- [0, () => SecretRef$, 1], 2
738
+ [0, () => SecretRef$, 1], 1
739
739
  ];
740
740
  export var AgentWebSearchCapability$ = [3, n2, _AWSC,
741
741
  0,
@@ -54,6 +54,7 @@ declare const ListAgentsNamesCommand_base: {
54
54
  * // "voice" || "chat" || "assistant",
55
55
  * // ],
56
56
  * // speechConfigured: true || false,
57
+ * // engine: "ai" || "webhook" || "sqs",
57
58
  * // skillIds: [ // AgentSkillIdsList
58
59
  * // "STRING_VALUE",
59
60
  * // ],
@@ -505,3 +505,25 @@ export declare const AgentStatus: {
505
505
  * @public
506
506
  */
507
507
  export type AgentStatus = (typeof AgentStatus)[keyof typeof AgentStatus];
508
+ /**
509
+ * @public
510
+ * @enum
511
+ */
512
+ export declare const AgentEngineKind: {
513
+ /**
514
+ * The managed engine: the platform runs the model, tools and knowledge lookups.
515
+ */
516
+ readonly AI: "ai";
517
+ /**
518
+ * An external backend over SQS.
519
+ */
520
+ readonly SQS: "sqs";
521
+ /**
522
+ * An external backend over HTTPS.
523
+ */
524
+ readonly WEBHOOK: "webhook";
525
+ };
526
+ /**
527
+ * @public
528
+ */
529
+ export type AgentEngineKind = (typeof AgentEngineKind)[keyof typeof AgentEngineKind];
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { ActorType, AgentGuardrailErrorMode, AgentGuardrailMode, AgentGuardrailPreset, AgentGuardrailSensitivity, AgentGuardrailWindow, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, AgentWorkflowEntryBehavior, AgentWorkflowFailureKind, AgentWorkflowLayout, AgentWorkflowMessageButtonVariant, ChannelType, KnowledgeBaseSearchStrategy, KnowledgeBaseSearchThreshold, SandboxNetworkAccess, SandboxSize, VoicePronunciationEncoding, WebSearchContextSize } from "./enums";
2
+ import type { ActorType, AgentEngineKind, AgentGuardrailErrorMode, AgentGuardrailMode, AgentGuardrailPreset, AgentGuardrailSensitivity, AgentGuardrailWindow, AgentHandoverPipelineType, AgentHandoverVariant, AgentHangupPipelineType, AgentStatus, AgentToolPipelineType, AgentTransferPipelineType, AgentTransferVariant, AgentVariableType, AgentVisibility, AgentWorkflowEntryBehavior, AgentWorkflowFailureKind, AgentWorkflowLayout, AgentWorkflowMessageButtonVariant, ChannelType, KnowledgeBaseSearchStrategy, KnowledgeBaseSearchThreshold, SandboxNetworkAccess, SandboxSize, VoicePronunciationEncoding, WebSearchContextSize } from "./enums";
3
3
  /**
4
4
  * A user or group that access is granted to.
5
5
  * @public
@@ -3161,33 +3161,53 @@ export interface SecretRef {
3161
3161
  id: string;
3162
3162
  }
3163
3163
  /**
3164
- * Bring-your-own backend over SQS: turns are forwarded to the queue, replies are posted back via the API.
3164
+ * Bring-your-own backend over SQS: the platform sends what happens to the queue and the backend
3165
+ * answers out of band through the channel's command plane. Authentication is the credential that
3166
+ * makes the send; there is no signature and no response.
3165
3167
  * @public
3166
3168
  */
3167
3169
  export interface AgentSqsEngine {
3168
3170
  url: string;
3169
3171
  key: string;
3170
3172
  /**
3171
- * Reference to the SQS secret access key in wilma-secrets.
3173
+ * Reference to the SQS secret access key in wilma-secrets. Optional for the same reason the
3174
+ * webhook engine's is: an agent is created before it is configured, and a console cannot
3175
+ * supply a reference to a secret nobody has chosen. The call refuses instead, naming what is
3176
+ * missing.
3172
3177
  * @public
3173
3178
  */
3174
- secret: SecretRef;
3179
+ secret?: SecretRef | undefined;
3175
3180
  }
3176
3181
  /**
3177
- * Bring-your-own backend over HTTPS: each turn is POSTed to the URL, the response is the reply.
3182
+ * Bring-your-own backend over HTTPS: the platform POSTs what happens to the URL and the backend
3183
+ * answers out of band through the channel's command plane, never in the response body — which is
3184
+ * what lets one contract serve both this engine and the queue one, where there is no body to
3185
+ * answer in. The response body is not read.
3178
3186
  * @public
3179
3187
  */
3180
3188
  export interface AgentWebhookEngine {
3181
3189
  url: string;
3182
3190
  /**
3183
- * Reference to the HMAC signing secret in wilma-secrets. Was the secret itself, which put
3184
- * credential material in the agent document — readable back out of a stored row and carried
3185
- * into any export of the definition. The sibling AgentSqsEngine has always held a reference;
3186
- * this is the same shape, so nothing that reads an engine has to special-case which of the
3187
- * two it is looking at.
3191
+ * Reference to the HMAC signing secret in wilma-secrets, resolved server-to-server at
3192
+ * delivery. A reference and never the value: an agent holds no credential, like everything
3193
+ * else on this platform, and the member is named for what it holds — `secret`, as on the
3194
+ * queue engine and on a sandbox's environment — because the reference is the type's job to
3195
+ * say. An agent migrated from the previous stack gets one created for the secret it was
3196
+ * configured with.
3197
+ *
3198
+ * A DRAFT MAY NOT HAVE ONE YET. An agent is created before it is configured — that is what
3199
+ * the draft status is for — and a console cannot supply a reference to a secret nobody has
3200
+ * chosen. The call refuses instead, naming what is missing, which is where the author finds
3201
+ * out at the only moment it matters.
3202
+ * @public
3203
+ */
3204
+ secret?: SecretRef | undefined;
3205
+ /**
3206
+ * How long one delivery may take, in MILLISECONDS. It bounds a single request and not the
3207
+ * call: a backend that spends all of it on every event is told about the call late, never
3208
+ * less often.
3188
3209
  * @public
3189
3210
  */
3190
- secret: SecretRef;
3191
3211
  timeout?: number | undefined;
3192
3212
  }
3193
3213
  /**
@@ -3210,7 +3230,10 @@ export declare namespace AgentEngine {
3210
3230
  $unknown?: never;
3211
3231
  }
3212
3232
  /**
3213
- * Bring-your-own backend over HTTPS: each turn is POSTed to the URL, the response is the reply.
3233
+ * Bring-your-own backend over HTTPS: the platform POSTs what happens to the URL and the backend
3234
+ * answers out of band through the channel's command plane, never in the response body — which is
3235
+ * what lets one contract serve both this engine and the queue one, where there is no body to
3236
+ * answer in. The response body is not read.
3214
3237
  * @public
3215
3238
  */
3216
3239
  interface WebhookMember {
@@ -3220,7 +3243,9 @@ export declare namespace AgentEngine {
3220
3243
  $unknown?: never;
3221
3244
  }
3222
3245
  /**
3223
- * Bring-your-own backend over SQS: turns are forwarded to the queue, replies are posted back via the API.
3246
+ * Bring-your-own backend over SQS: the platform sends what happens to the queue and the backend
3247
+ * answers out of band through the channel's command plane. Authentication is the credential that
3248
+ * makes the send; there is no signature and no response.
3224
3249
  * @public
3225
3250
  */
3226
3251
  interface SqsMember {
@@ -3444,6 +3469,19 @@ export interface AgentInfo {
3444
3469
  * @public
3445
3470
  */
3446
3471
  speechConfigured?: boolean | undefined;
3472
+ /**
3473
+ * Which engine produces this agent's replies: the managed one, or somebody else's backend
3474
+ * over a webhook or a queue. `channels` is what the agent DECLARES, and an engine is
3475
+ * implemented per channel, so the two are not the same question — an agent that declares a
3476
+ * channel its engine cannot serve is configured, listed, and silent there.
3477
+ *
3478
+ * Which channels each engine can serve is a property of the platform rather than of this
3479
+ * agent, so it does not travel per agent: every `ai` agent would carry the same answer. The
3480
+ * service enforces it where it matters — a listing filtered by channel omits an agent whose
3481
+ * engine cannot answer there, and the channel refuses the connection.
3482
+ * @public
3483
+ */
3484
+ engine?: AgentEngineKind | undefined;
3447
3485
  /**
3448
3486
  * Ids of the skills attached to this agent. Always active in this agent's sessions; user skill preferences cannot disable them.
3449
3487
  * @public
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: WilmaAgentsClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
- ignoreConfiguredEndpointUrls?: boolean;
43
42
  serviceConfiguredEndpoint?: never;
44
43
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
44
  httpAuthSchemes: {
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: WilmaAgentsClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
- ignoreConfiguredEndpointUrls?: boolean;
43
42
  serviceConfiguredEndpoint?: never;
44
43
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
44
  httpAuthSchemes: {
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: WilmaAgentsClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
- ignoreConfiguredEndpointUrls?: boolean;
43
42
  serviceConfiguredEndpoint?: never;
44
43
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
44
  httpAuthSchemes: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-agents-client",
3
3
  "description": "@wildix/wilma-agents-client client",
4
- "version": "1.0.55",
4
+ "version": "1.0.56",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",