@wildix/wilma-copilot-client 1.0.17 → 1.0.19

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.
@@ -30,6 +30,7 @@ import type { ListEvaluationsCommandInput, ListEvaluationsCommandOutput } from "
30
30
  import type { ListIntentsCommandInput, ListIntentsCommandOutput } from "./commands/ListIntentsCommand";
31
31
  import type { ListProfilesCommandInput, ListProfilesCommandOutput } from "./commands/ListProfilesCommand";
32
32
  import type { ListProfileVersionsCommandInput, ListProfileVersionsCommandOutput } from "./commands/ListProfileVersionsCommand";
33
+ import type { ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput } from "./commands/ListSubscriptionsCommand";
33
34
  import type { PublishProfileVersionCommandInput, PublishProfileVersionCommandOutput } from "./commands/PublishProfileVersionCommand";
34
35
  import type { RestoreProfileVersionToDraftCommandInput, RestoreProfileVersionToDraftCommandOutput } from "./commands/RestoreProfileVersionToDraftCommand";
35
36
  import type { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "./commands/UpdateAssetCommand";
@@ -43,11 +44,11 @@ export { __Client };
43
44
  /**
44
45
  * @public
45
46
  */
46
- export type ServiceInputTypes = AttachProfileResourceCommandInput | CompareProfileVersionsCommandInput | CreateAssetCommandInput | CreateAutomationCommandInput | CreateEvaluationCommandInput | CreateIntentCommandInput | CreateProfileCommandInput | DeleteAssetCommandInput | DeleteAutomationCommandInput | DeleteEvaluationCommandInput | DeleteIntentCommandInput | DeleteProfileCommandInput | DeleteProfileResourceCommandInput | GetAssetCommandInput | GetAutomationCommandInput | GetEvaluationCommandInput | GetIntentCommandInput | GetProfileCommandInput | GetProfileVersionCommandInput | ListAssetsCommandInput | ListAutomationsCommandInput | ListEvaluationsCommandInput | ListIntentsCommandInput | ListProfileVersionsCommandInput | ListProfilesCommandInput | PublishProfileVersionCommandInput | RestoreProfileVersionToDraftCommandInput | UpdateAssetCommandInput | UpdateAutomationCommandInput | UpdateEvaluationCommandInput | UpdateIntentCommandInput | UpdateProfileCommandInput;
47
+ export type ServiceInputTypes = AttachProfileResourceCommandInput | CompareProfileVersionsCommandInput | CreateAssetCommandInput | CreateAutomationCommandInput | CreateEvaluationCommandInput | CreateIntentCommandInput | CreateProfileCommandInput | DeleteAssetCommandInput | DeleteAutomationCommandInput | DeleteEvaluationCommandInput | DeleteIntentCommandInput | DeleteProfileCommandInput | DeleteProfileResourceCommandInput | GetAssetCommandInput | GetAutomationCommandInput | GetEvaluationCommandInput | GetIntentCommandInput | GetProfileCommandInput | GetProfileVersionCommandInput | ListAssetsCommandInput | ListAutomationsCommandInput | ListEvaluationsCommandInput | ListIntentsCommandInput | ListProfileVersionsCommandInput | ListProfilesCommandInput | ListSubscriptionsCommandInput | PublishProfileVersionCommandInput | RestoreProfileVersionToDraftCommandInput | UpdateAssetCommandInput | UpdateAutomationCommandInput | UpdateEvaluationCommandInput | UpdateIntentCommandInput | UpdateProfileCommandInput;
47
48
  /**
48
49
  * @public
49
50
  */
50
- export type ServiceOutputTypes = AttachProfileResourceCommandOutput | CompareProfileVersionsCommandOutput | CreateAssetCommandOutput | CreateAutomationCommandOutput | CreateEvaluationCommandOutput | CreateIntentCommandOutput | CreateProfileCommandOutput | DeleteAssetCommandOutput | DeleteAutomationCommandOutput | DeleteEvaluationCommandOutput | DeleteIntentCommandOutput | DeleteProfileCommandOutput | DeleteProfileResourceCommandOutput | GetAssetCommandOutput | GetAutomationCommandOutput | GetEvaluationCommandOutput | GetIntentCommandOutput | GetProfileCommandOutput | GetProfileVersionCommandOutput | ListAssetsCommandOutput | ListAutomationsCommandOutput | ListEvaluationsCommandOutput | ListIntentsCommandOutput | ListProfileVersionsCommandOutput | ListProfilesCommandOutput | PublishProfileVersionCommandOutput | RestoreProfileVersionToDraftCommandOutput | UpdateAssetCommandOutput | UpdateAutomationCommandOutput | UpdateEvaluationCommandOutput | UpdateIntentCommandOutput | UpdateProfileCommandOutput;
51
+ export type ServiceOutputTypes = AttachProfileResourceCommandOutput | CompareProfileVersionsCommandOutput | CreateAssetCommandOutput | CreateAutomationCommandOutput | CreateEvaluationCommandOutput | CreateIntentCommandOutput | CreateProfileCommandOutput | DeleteAssetCommandOutput | DeleteAutomationCommandOutput | DeleteEvaluationCommandOutput | DeleteIntentCommandOutput | DeleteProfileCommandOutput | DeleteProfileResourceCommandOutput | GetAssetCommandOutput | GetAutomationCommandOutput | GetEvaluationCommandOutput | GetIntentCommandOutput | GetProfileCommandOutput | GetProfileVersionCommandOutput | ListAssetsCommandOutput | ListAutomationsCommandOutput | ListEvaluationsCommandOutput | ListIntentsCommandOutput | ListProfileVersionsCommandOutput | ListProfilesCommandOutput | ListSubscriptionsCommandOutput | PublishProfileVersionCommandOutput | RestoreProfileVersionToDraftCommandOutput | UpdateAssetCommandOutput | UpdateAutomationCommandOutput | UpdateEvaluationCommandOutput | UpdateIntentCommandOutput | UpdateProfileCommandOutput;
51
52
  /**
52
53
  * @public
53
54
  */
@@ -257,7 +257,6 @@ declare const CreateAssetCommand_base: {
257
257
  * // },
258
258
  * // id: "STRING_VALUE", // required
259
259
  * // revision: Number("int"), // required
260
- * // usageLast30Days: Number("int"),
261
260
  * // },
262
261
  * // };
263
262
  *
@@ -155,7 +155,6 @@ declare const CreateEvaluationCommand_base: {
155
155
  * // },
156
156
  * // id: "STRING_VALUE", // required
157
157
  * // revision: Number("int"), // required
158
- * // usageLast30Days: Number("int"),
159
158
  * // },
160
159
  * // };
161
160
  *
@@ -163,7 +163,6 @@ declare const CreateIntentCommand_base: {
163
163
  * // },
164
164
  * // id: "STRING_VALUE", // required
165
165
  * // revision: Number("int"), // required
166
- * // usageLast30Days: Number("int"),
167
166
  * // },
168
167
  * // };
169
168
  *
@@ -158,7 +158,6 @@ declare const GetAssetCommand_base: {
158
158
  * // },
159
159
  * // id: "STRING_VALUE", // required
160
160
  * // revision: Number("int"), // required
161
- * // usageLast30Days: Number("int"),
162
161
  * // },
163
162
  * // };
164
163
  *
@@ -107,7 +107,6 @@ declare const GetEvaluationCommand_base: {
107
107
  * // },
108
108
  * // id: "STRING_VALUE", // required
109
109
  * // revision: Number("int"), // required
110
- * // usageLast30Days: Number("int"),
111
110
  * // },
112
111
  * // };
113
112
  *
@@ -111,7 +111,6 @@ declare const GetIntentCommand_base: {
111
111
  * // },
112
112
  * // id: "STRING_VALUE", // required
113
113
  * // revision: Number("int"), // required
114
- * // usageLast30Days: Number("int"),
115
114
  * // },
116
115
  * // };
117
116
  *
@@ -64,7 +64,6 @@ declare const ListEvaluationsCommand_base: {
64
64
  * // name: "STRING_VALUE", // required
65
65
  * // description: "STRING_VALUE",
66
66
  * // window: "new_transcript" || "new_with_prior" || "full_transcript", // required
67
- * // usageLast30Days: Number("int"),
68
67
  * // },
69
68
  * // ],
70
69
  * // nextCursor: "STRING_VALUE",
@@ -64,7 +64,6 @@ declare const ListIntentsCommand_base: {
64
64
  * // description: "STRING_VALUE",
65
65
  * // textMatchEnabled: true || false, // required
66
66
  * // aiMatchEnabled: true || false, // required
67
- * // usageLast30Days: Number("int"),
68
67
  * // },
69
68
  * // ],
70
69
  * // nextCursor: "STRING_VALUE",
@@ -0,0 +1,106 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListSubscriptionsInput, ListSubscriptionsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotClientResolvedConfig } from "../WilmaCopilotClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListSubscriptionsCommand}.
14
+ */
15
+ export interface ListSubscriptionsCommandInput extends ListSubscriptionsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListSubscriptionsCommand}.
21
+ */
22
+ export interface ListSubscriptionsCommandOutput extends ListSubscriptionsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListSubscriptionsCommand_base: {
25
+ new (input: ListSubscriptionsCommandInput): import("@smithy/core/client").CommandImpl<ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListSubscriptionsCommandInput]): import("@smithy/core/client").CommandImpl<ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput, WilmaCopilotClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists the wda-stream events copilot needs delivered, for every company that has a published
31
+ * profile — the ingress contract between wda-stream and the copilot runtime.
32
+ *
33
+ * **Service tokens only.** The answer spans every company on the platform: it is the event
34
+ * producer's routing table, not a tenant's view of its own configuration, and there is no company
35
+ * parameter to scope it with. A user, PBX or API-key token is refused. Every subscription is
36
+ * returned in one response, unpaginated, because the producer applies it as a whole — a table
37
+ * assembled from several requests can be applied half-built, which looks exactly like a set of
38
+ * companies that unsubscribed.
39
+ *
40
+ * Copilot is a state machine over a conversation, not a filter over single events, so the answer
41
+ * is coarser than an automation's. A profile that shows an asset after 45 seconds needs a session
42
+ * that exists and a timer that is running, which means the conversation's lifecycle events; one
43
+ * that reads the transcript needs every transcription event, interim chunks included. What the
44
+ * published profiles do *not* need is what this operation leaves out: the surfaces no profile
45
+ * targets, transcription for profiles that never read it, and every company with no published
46
+ * profile at all.
47
+ *
48
+ * Conditions are resolved in the session against accumulated state, so they cannot be pushed to
49
+ * the producer; a selector therefore carries `conditions` only where a profile's requirement
50
+ * genuinely reduces to a property of one event.
51
+ * @example
52
+ * Use a bare-bones client and the command you need to make an API call.
53
+ * ```javascript
54
+ * import { WilmaCopilotClient, ListSubscriptionsCommand } from "@wildix/wilma-copilot-client"; // ES Modules import
55
+ * // const { WilmaCopilotClient, ListSubscriptionsCommand } = require("@wildix/wilma-copilot-client"); // CommonJS import
56
+ * // import type { WilmaCopilotClientConfig } from "@wildix/wilma-copilot-client";
57
+ * const config = {}; // type is WilmaCopilotClientConfig
58
+ * const client = new WilmaCopilotClient(config);
59
+ * const input = {};
60
+ * const command = new ListSubscriptionsCommand(input);
61
+ * const response = await client.send(command);
62
+ * // { // ListSubscriptionsOutput
63
+ * // subscriptions: [ // SubscriptionList // required
64
+ * // { // Subscription
65
+ * // company: "STRING_VALUE", // required
66
+ * // selectors: [ // SubscriptionSelectorList // required
67
+ * // { // SubscriptionSelector
68
+ * // event: "STRING_VALUE", // required
69
+ * // conditions: "DOCUMENT_VALUE",
70
+ * // },
71
+ * // ],
72
+ * // },
73
+ * // ],
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param ListSubscriptionsCommandInput - {@link ListSubscriptionsCommandInput}
79
+ * @returns {@link ListSubscriptionsCommandOutput}
80
+ * @see {@link ListSubscriptionsCommandInput} for command's `input` shape.
81
+ * @see {@link ListSubscriptionsCommandOutput} for command's `response` shape.
82
+ * @see {@link WilmaCopilotClientResolvedConfig | config} for WilmaCopilotClient's `config` shape.
83
+ *
84
+ * @throws {@link ForbiddenException} (client fault)
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ *
88
+ * @throws {@link WilmaCopilotServiceException}
89
+ * <p>Base exception class for all service exceptions from WilmaCopilot service.</p>
90
+ *
91
+ *
92
+ * @public
93
+ */
94
+ export declare class ListSubscriptionsCommand extends ListSubscriptionsCommand_base {
95
+ /** @internal type navigation helper, not in runtime. */
96
+ protected static __types: {
97
+ api: {
98
+ input: {};
99
+ output: ListSubscriptionsOutput;
100
+ };
101
+ sdk: {
102
+ input: ListSubscriptionsCommandInput;
103
+ output: ListSubscriptionsCommandOutput;
104
+ };
105
+ };
106
+ }
@@ -259,7 +259,6 @@ declare const UpdateAssetCommand_base: {
259
259
  * // },
260
260
  * // id: "STRING_VALUE", // required
261
261
  * // revision: Number("int"), // required
262
- * // usageLast30Days: Number("int"),
263
262
  * // },
264
263
  * // };
265
264
  *
@@ -157,7 +157,6 @@ declare const UpdateEvaluationCommand_base: {
157
157
  * // },
158
158
  * // id: "STRING_VALUE", // required
159
159
  * // revision: Number("int"), // required
160
- * // usageLast30Days: Number("int"),
161
160
  * // },
162
161
  * // };
163
162
  *
@@ -165,7 +165,6 @@ declare const UpdateIntentCommand_base: {
165
165
  * // },
166
166
  * // id: "STRING_VALUE", // required
167
167
  * // revision: Number("int"), // required
168
- * // usageLast30Days: Number("int"),
169
168
  * // },
170
169
  * // };
171
170
  *
@@ -23,6 +23,7 @@ export * from "./ListEvaluationsCommand";
23
23
  export * from "./ListIntentsCommand";
24
24
  export * from "./ListProfileVersionsCommand";
25
25
  export * from "./ListProfilesCommand";
26
+ export * from "./ListSubscriptionsCommand";
26
27
  export * from "./PublishProfileVersionCommand";
27
28
  export * from "./RestoreProfileVersionToDraftCommand";
28
29
  export * from "./UpdateAssetCommand";
@@ -17,6 +17,39 @@ export interface Actor {
17
17
  */
18
18
  name?: string | undefined;
19
19
  }
20
+ /**
21
+ * One event type a tenant needs delivered, and the optional prefilter that narrows it.
22
+ * @public
23
+ */
24
+ export interface SubscriptionSelector {
25
+ /**
26
+ * A wda-stream event type, as the webhook envelope names it, e.g. 'call:live:progress',
27
+ * 'call:live:transcription', 'call:completed', 'call:summary:completed', 'chat:live:progress',
28
+ * 'conference:live:transcription'. Open-ended: a new wda-stream type needs no model change here.
29
+ * @public
30
+ */
31
+ event: string;
32
+ /**
33
+ * Producer-side prefilter over the event payload. Omitted means send every occurrence. See SubscriptionConditions.
34
+ * @public
35
+ */
36
+ conditions?: __DocumentType | undefined;
37
+ }
38
+ /**
39
+ * What one tenant needs delivered to the service's queue.
40
+ * @public
41
+ */
42
+ export interface Subscription {
43
+ company: string;
44
+ /**
45
+ * Event types one tenant needs, deduplicated across everything that asked for them. Two
46
+ * selectors never name the same event type: a type wanted both unconditionally and under
47
+ * conditions is returned once, unconditional — the union of what the tenant's configuration
48
+ * requires.
49
+ * @public
50
+ */
51
+ selectors: SubscriptionSelector[];
52
+ }
20
53
  /**
21
54
  * Binds an input variable of an agent or tool invocation to a value or a fill strategy.
22
55
  * @public
@@ -547,11 +580,6 @@ export interface Asset {
547
580
  * @public
548
581
  */
549
582
  revision: number;
550
- /**
551
- * Times shown over the trailing 30 days; null when not yet computed.
552
- * @public
553
- */
554
- usageLast30Days?: number | undefined;
555
583
  }
556
584
  /**
557
585
  * Summary entry returned by ListAssets.
@@ -1602,11 +1630,6 @@ export interface Evaluation {
1602
1630
  * @public
1603
1631
  */
1604
1632
  revision: number;
1605
- /**
1606
- * Runs over the trailing 30 days; null when not yet computed.
1607
- * @public
1608
- */
1609
- usageLast30Days?: number | undefined;
1610
1633
  }
1611
1634
  /**
1612
1635
  * @public
@@ -1745,11 +1768,6 @@ export interface Intent {
1745
1768
  * @public
1746
1769
  */
1747
1770
  revision: number;
1748
- /**
1749
- * Matches over the trailing 30 days; null when not yet computed.
1750
- * @public
1751
- */
1752
- usageLast30Days?: number | undefined;
1753
1771
  }
1754
1772
  /**
1755
1773
  * @public
@@ -1969,11 +1987,6 @@ export interface EvaluationInfo {
1969
1987
  * @public
1970
1988
  */
1971
1989
  window: EvaluationWindow;
1972
- /**
1973
- * Number of matches/executions over the trailing 30 days, or null when not yet computed.
1974
- * @public
1975
- */
1976
- usageLast30Days?: number | undefined;
1977
1990
  }
1978
1991
  /**
1979
1992
  * Immutable evaluation snapshot embedded in a published profile version.
@@ -2270,11 +2283,6 @@ export interface IntentInfo {
2270
2283
  * @public
2271
2284
  */
2272
2285
  aiMatchEnabled: boolean;
2273
- /**
2274
- * Number of matches/executions over the trailing 30 days, or null when not yet computed.
2275
- * @public
2276
- */
2277
- usageLast30Days?: number | undefined;
2278
2286
  }
2279
2287
  /**
2280
2288
  * @public
@@ -2558,6 +2566,24 @@ export interface ListProfileVersionsOutput {
2558
2566
  */
2559
2567
  nextCursor?: string | undefined;
2560
2568
  }
2569
+ /**
2570
+ * @public
2571
+ */
2572
+ export interface ListSubscriptionsInput {
2573
+ }
2574
+ /**
2575
+ * The answer to 'what should I send you': one entry per tenant that needs anything at all, and
2576
+ * every tenant in one response — the producer holds a single routing table, and a listing it has
2577
+ * to assemble from several requests is one that can be applied half-built, which is
2578
+ * indistinguishable from a set of tenants that unsubscribed.
2579
+ *
2580
+ * A tenant absent from the listing needs nothing, and the producer sends it nothing. Ordering is
2581
+ * unspecified.
2582
+ * @public
2583
+ */
2584
+ export interface ListSubscriptionsOutput {
2585
+ subscriptions: Subscription[];
2586
+ }
2561
2587
  /**
2562
2588
  * @public
2563
2589
  */
@@ -14,6 +14,8 @@ export declare var RevisionConflictException$: StaticErrorSchema;
14
14
  */
15
15
  export declare const errorTypeRegistries: TypeRegistry[];
16
16
  export declare var Actor$: StaticStructureSchema;
17
+ export declare var Subscription$: StaticStructureSchema;
18
+ export declare var SubscriptionSelector$: StaticStructureSchema;
17
19
  export declare var AgentAutomationHandler$: StaticStructureSchema;
18
20
  export declare var Asset$: StaticStructureSchema;
19
21
  export declare var AssetCard$: StaticStructureSchema;
@@ -98,6 +100,8 @@ export declare var ListProfilesInput$: StaticStructureSchema;
98
100
  export declare var ListProfilesOutput$: StaticStructureSchema;
99
101
  export declare var ListProfileVersionsInput$: StaticStructureSchema;
100
102
  export declare var ListProfileVersionsOutput$: StaticStructureSchema;
103
+ export declare var ListSubscriptionsInput$: StaticStructureSchema;
104
+ export declare var ListSubscriptionsOutput$: StaticStructureSchema;
101
105
  export declare var PlaybookManualCompletion$: StaticStructureSchema;
102
106
  export declare var PlaybookSemanticCompletion$: StaticStructureSchema;
103
107
  export declare var PlaybookStep$: StaticStructureSchema;
@@ -163,6 +167,7 @@ export declare var ListEvaluations$: StaticOperationSchema;
163
167
  export declare var ListIntents$: StaticOperationSchema;
164
168
  export declare var ListProfiles$: StaticOperationSchema;
165
169
  export declare var ListProfileVersions$: StaticOperationSchema;
170
+ export declare var ListSubscriptions$: StaticOperationSchema;
166
171
  export declare var PublishProfileVersion$: StaticOperationSchema;
167
172
  export declare var RestoreProfileVersionToDraft$: StaticOperationSchema;
168
173
  export declare var UpdateAsset$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-copilot-client",
3
3
  "description": "@wildix/wilma-copilot-client client",
4
- "version": "1.0.17",
4
+ "version": "1.0.19",
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",