@getsupervisor/agents-studio-sdk 1.41.2-patch.6 → 1.41.2-patch.7
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/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +60 -57
- package/dist/index.d.ts +60 -57
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
type WithRequired<T, K extends keyof T> = T & {
|
|
2
|
-
[P in K]-?: T[P];
|
|
3
|
-
};
|
|
4
|
-
type Without<T, U> = {
|
|
5
|
-
[P in Exclude<keyof T, keyof U>]?: never;
|
|
6
|
-
};
|
|
7
|
-
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
|
8
|
-
type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;
|
|
9
1
|
type components = {
|
|
10
2
|
schemas: {
|
|
11
3
|
AgentDetail: {
|
|
@@ -66,7 +58,7 @@ type components = {
|
|
|
66
58
|
name: string;
|
|
67
59
|
description?: string | null;
|
|
68
60
|
agentType: 'chat' | 'voice';
|
|
69
|
-
status?: 'inactive' | 'training' | 'active';
|
|
61
|
+
status?: 'inactive' | 'training' | 'active' | null;
|
|
70
62
|
avatarUrl?: string | null;
|
|
71
63
|
debounceDelayMs?: number | null;
|
|
72
64
|
metadata?: {
|
|
@@ -243,9 +235,9 @@ type components = {
|
|
|
243
235
|
voiceId?: string | null;
|
|
244
236
|
startSpeaker: 'user' | 'agent';
|
|
245
237
|
requiredData: string[];
|
|
246
|
-
criticalRules
|
|
247
|
-
topicsAllowed
|
|
248
|
-
topicsForbidden
|
|
238
|
+
criticalRules: string[];
|
|
239
|
+
topicsAllowed: string[];
|
|
240
|
+
topicsForbidden: string[];
|
|
249
241
|
contentHash: string | null;
|
|
250
242
|
contentVariables: string[];
|
|
251
243
|
variablesCache: string[];
|
|
@@ -320,7 +312,7 @@ type components = {
|
|
|
320
312
|
name: string;
|
|
321
313
|
title?: string | null;
|
|
322
314
|
goalPrompt: string;
|
|
323
|
-
promptInstructions
|
|
315
|
+
promptInstructions: string[];
|
|
324
316
|
order?: number | null;
|
|
325
317
|
triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
326
318
|
metadata?: {
|
|
@@ -331,7 +323,7 @@ type components = {
|
|
|
331
323
|
name?: string;
|
|
332
324
|
title?: string | null;
|
|
333
325
|
goalPrompt?: string;
|
|
334
|
-
promptInstructions
|
|
326
|
+
promptInstructions: string[];
|
|
335
327
|
order?: number | null;
|
|
336
328
|
metadata?: {
|
|
337
329
|
[key: string]: unknown;
|
|
@@ -367,9 +359,9 @@ type components = {
|
|
|
367
359
|
name: string;
|
|
368
360
|
title?: string | null;
|
|
369
361
|
goalPrompt: string;
|
|
370
|
-
promptInstructions
|
|
362
|
+
promptInstructions: string[];
|
|
371
363
|
order?: number | null;
|
|
372
|
-
triggers
|
|
364
|
+
triggers: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
373
365
|
metadata?: {
|
|
374
366
|
[key: string]: unknown;
|
|
375
367
|
} | null;
|
|
@@ -378,7 +370,7 @@ type components = {
|
|
|
378
370
|
agent_id: string;
|
|
379
371
|
phone_id: string;
|
|
380
372
|
test_phones?: string[];
|
|
381
|
-
allow_all
|
|
373
|
+
allow_all: boolean;
|
|
382
374
|
};
|
|
383
375
|
PhoneAssignmentResponse: {
|
|
384
376
|
agent_id: string;
|
|
@@ -391,7 +383,7 @@ type components = {
|
|
|
391
383
|
WorkspacePhone: {
|
|
392
384
|
id: string;
|
|
393
385
|
external_id: string;
|
|
394
|
-
channel?: 'voice';
|
|
386
|
+
channel?: 'voice' | null;
|
|
395
387
|
supports_outbound?: boolean | null;
|
|
396
388
|
assigned_to?: string | null;
|
|
397
389
|
last_used_at?: string | null;
|
|
@@ -460,6 +452,8 @@ type components = {
|
|
|
460
452
|
metadata?: {
|
|
461
453
|
[key: string]: unknown;
|
|
462
454
|
};
|
|
455
|
+
descriptionUsage?: string;
|
|
456
|
+
usageExample?: string;
|
|
463
457
|
auth?: components['schemas']['ToolConnectionAuth'];
|
|
464
458
|
};
|
|
465
459
|
ToolConnectionResponse: {
|
|
@@ -474,6 +468,8 @@ type components = {
|
|
|
474
468
|
metadata?: {
|
|
475
469
|
[key: string]: unknown;
|
|
476
470
|
};
|
|
471
|
+
descriptionUsage?: string | null;
|
|
472
|
+
usageExample?: string | null;
|
|
477
473
|
};
|
|
478
474
|
ToolConnectionAuth: {
|
|
479
475
|
type: 'none' | 'oauth2' | 'api_key' | 'custom';
|
|
@@ -506,7 +502,7 @@ type components = {
|
|
|
506
502
|
self: string;
|
|
507
503
|
catalog: string;
|
|
508
504
|
};
|
|
509
|
-
CatalogItemSummary:
|
|
505
|
+
CatalogItemSummary: {
|
|
510
506
|
id: string;
|
|
511
507
|
type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
|
|
512
508
|
systemIdentifier: string;
|
|
@@ -519,13 +515,13 @@ type components = {
|
|
|
519
515
|
createdAt: string;
|
|
520
516
|
updatedAt: string;
|
|
521
517
|
links: components['schemas']['CatalogItemLinks'];
|
|
522
|
-
}
|
|
518
|
+
} & (unknown & unknown & unknown & unknown & unknown);
|
|
523
519
|
CatalogItemDetail: components['schemas']['CatalogItemSummary'];
|
|
524
520
|
CatalogItemListResponse: {
|
|
525
521
|
data: components['schemas']['CatalogItemSummary'][];
|
|
526
522
|
meta: components['schemas']['PaginationMeta'];
|
|
527
523
|
};
|
|
528
|
-
CatalogItemCreateRequest:
|
|
524
|
+
CatalogItemCreateRequest: {
|
|
529
525
|
type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
|
|
530
526
|
scope: 'global' | 'workspace';
|
|
531
527
|
workspaceId?: string;
|
|
@@ -533,13 +529,12 @@ type components = {
|
|
|
533
529
|
description: string;
|
|
534
530
|
systemIdentifier?: string;
|
|
535
531
|
metadata: Record<string, never>;
|
|
536
|
-
isActive
|
|
537
|
-
}
|
|
532
|
+
isActive: boolean;
|
|
533
|
+
} & (unknown & unknown & unknown & unknown & unknown & unknown);
|
|
538
534
|
WorkspaceEnableRequest: {
|
|
539
535
|
apiKey: string;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
};
|
|
536
|
+
phone: string;
|
|
537
|
+
speechAnalyticsAgentId: string;
|
|
543
538
|
};
|
|
544
539
|
WorkspaceEnableResponse: {
|
|
545
540
|
status: 'enabled';
|
|
@@ -552,6 +547,7 @@ type components = {
|
|
|
552
547
|
details?: {
|
|
553
548
|
subcode?: string;
|
|
554
549
|
workspaceId?: string;
|
|
550
|
+
} & {
|
|
555
551
|
[key: string]: unknown;
|
|
556
552
|
};
|
|
557
553
|
};
|
|
@@ -581,7 +577,7 @@ type components = {
|
|
|
581
577
|
url: string;
|
|
582
578
|
agentId?: string | null;
|
|
583
579
|
description?: string | null;
|
|
584
|
-
isActive
|
|
580
|
+
isActive: boolean;
|
|
585
581
|
headers?: {
|
|
586
582
|
[key: string]: string;
|
|
587
583
|
};
|
|
@@ -611,7 +607,7 @@ type components = {
|
|
|
611
607
|
};
|
|
612
608
|
CreateEventSubscriptionRequest: {
|
|
613
609
|
eventKey: string;
|
|
614
|
-
isActive
|
|
610
|
+
isActive: boolean;
|
|
615
611
|
};
|
|
616
612
|
UpdateEventSubscriptionRequest: {
|
|
617
613
|
isActive?: boolean;
|
|
@@ -698,7 +694,7 @@ type components = {
|
|
|
698
694
|
templateVersionId?: string;
|
|
699
695
|
name?: string | null;
|
|
700
696
|
description?: string | null;
|
|
701
|
-
status?: 'inactive' | 'training' | 'active';
|
|
697
|
+
status?: 'inactive' | 'training' | 'active' | null;
|
|
702
698
|
debounceDelayMs?: number | null;
|
|
703
699
|
};
|
|
704
700
|
AgentScheduleListResponse: {
|
|
@@ -755,12 +751,9 @@ type components = {
|
|
|
755
751
|
description?: string;
|
|
756
752
|
notes?: string[];
|
|
757
753
|
prompts?: components['schemas']['ToolConfigSchemaActionPrompts'];
|
|
758
|
-
schema:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
},
|
|
762
|
-
boolean
|
|
763
|
-
]>;
|
|
754
|
+
schema: {
|
|
755
|
+
[key: string]: unknown;
|
|
756
|
+
} | boolean;
|
|
764
757
|
};
|
|
765
758
|
ToolConfigSchema: {
|
|
766
759
|
schemaVersion: 'json-schema/2020-12';
|
|
@@ -833,6 +826,8 @@ type components = {
|
|
|
833
826
|
metadata?: {
|
|
834
827
|
[key: string]: unknown;
|
|
835
828
|
};
|
|
829
|
+
descriptionUsage?: string;
|
|
830
|
+
usageExample?: string;
|
|
836
831
|
auth?: components['schemas']['ToolConnectionAuth'];
|
|
837
832
|
};
|
|
838
833
|
ExecuteToolConnectionRequest: {
|
|
@@ -848,11 +843,13 @@ type components = {
|
|
|
848
843
|
CatalogItemMessageStyleMetadata: {
|
|
849
844
|
register?: string | null;
|
|
850
845
|
sample?: string | null;
|
|
846
|
+
} & {
|
|
851
847
|
[key: string]: unknown;
|
|
852
848
|
};
|
|
853
849
|
CatalogItemToneStyleMetadata: {
|
|
854
850
|
mood?: string | null;
|
|
855
851
|
intensity?: string | null;
|
|
852
|
+
} & {
|
|
856
853
|
[key: string]: unknown;
|
|
857
854
|
};
|
|
858
855
|
CatalogItemTagMetadata: {
|
|
@@ -882,31 +879,34 @@ type components = {
|
|
|
882
879
|
ToolId: string;
|
|
883
880
|
ResourceId: string;
|
|
884
881
|
CatalogItemId: string;
|
|
885
|
-
PageParam
|
|
886
|
-
LimitParam
|
|
887
|
-
Page
|
|
888
|
-
Limit
|
|
889
|
-
SortParam
|
|
890
|
-
FieldsParam
|
|
891
|
-
IncludeParam
|
|
892
|
-
SearchParam
|
|
893
|
-
FilterParam
|
|
882
|
+
PageParam: number;
|
|
883
|
+
LimitParam: number;
|
|
884
|
+
Page: number;
|
|
885
|
+
Limit: number;
|
|
886
|
+
SortParam: string;
|
|
887
|
+
FieldsParam: string;
|
|
888
|
+
IncludeParam: string;
|
|
889
|
+
SearchParam: string;
|
|
890
|
+
FilterParam: components['schemas']['QueryFilters'];
|
|
894
891
|
WebhookId: string;
|
|
895
892
|
SubscriptionId: string;
|
|
896
893
|
CallId: string;
|
|
897
|
-
AgentBatchIdQuery
|
|
898
|
-
AgentIdQuery
|
|
899
|
-
ExecutionIdQuery
|
|
900
|
-
RecordedAfterParam
|
|
901
|
-
RecordedBeforeParam
|
|
894
|
+
AgentBatchIdQuery: string;
|
|
895
|
+
AgentIdQuery: string;
|
|
896
|
+
ExecutionIdQuery: string;
|
|
897
|
+
RecordedAfterParam: string;
|
|
898
|
+
RecordedBeforeParam: string;
|
|
902
899
|
CallsAfterParam: string;
|
|
903
|
-
CallsStreamLimitParam
|
|
904
|
-
OrParam
|
|
900
|
+
CallsStreamLimitParam: number;
|
|
901
|
+
OrParam: components['schemas']['QueryOrGroups'];
|
|
905
902
|
ScheduleId: string;
|
|
906
903
|
ApiKeyId: string;
|
|
907
|
-
XCacheRefresh
|
|
904
|
+
XCacheRefresh: boolean;
|
|
908
905
|
IdempotencyKey: string;
|
|
909
|
-
XApiKey
|
|
906
|
+
XApiKey: string;
|
|
907
|
+
DurationBucketQuery: 'short' | 'medium' | 'long';
|
|
908
|
+
GoalStatusQuery: 'achieved' | 'not_achieved';
|
|
909
|
+
SearchQuery: string;
|
|
910
910
|
};
|
|
911
911
|
requestBodies: never;
|
|
912
912
|
headers: never;
|
|
@@ -1277,7 +1277,7 @@ type AgentStagesApi$1 = {
|
|
|
1277
1277
|
list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
|
|
1278
1278
|
get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
|
|
1279
1279
|
create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1280
|
-
update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1280
|
+
update(agentId: string, blueprintId: string, stageId: string, payload: Partial<UpdateBlueprintStageRequest>): Promise<BlueprintStage>;
|
|
1281
1281
|
delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
|
|
1282
1282
|
reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1283
1283
|
};
|
|
@@ -1775,6 +1775,9 @@ type StreamCallsOptions = {
|
|
|
1775
1775
|
agentBatchId?: string;
|
|
1776
1776
|
agentId?: string;
|
|
1777
1777
|
executionId?: string;
|
|
1778
|
+
durationBucket?: 'short' | 'medium' | 'long';
|
|
1779
|
+
goalStatus?: 'achieved' | 'not_achieved';
|
|
1780
|
+
query?: string;
|
|
1778
1781
|
};
|
|
1779
1782
|
declare function createCallsApi(cfg: ClientConfig & {
|
|
1780
1783
|
retry?: RetryPolicy;
|
|
@@ -1898,7 +1901,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
|
|
|
1898
1901
|
}): {
|
|
1899
1902
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
1900
1903
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
1901
|
-
enable(
|
|
1904
|
+
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
1902
1905
|
};
|
|
1903
1906
|
|
|
1904
1907
|
declare function createClient(initialCfg: ClientConfig & {
|
|
@@ -1993,7 +1996,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1993
1996
|
workspaces: {
|
|
1994
1997
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
1995
1998
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
1996
|
-
enable(
|
|
1999
|
+
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
1997
2000
|
};
|
|
1998
2001
|
tools: {
|
|
1999
2002
|
connections: {
|
|
@@ -2137,7 +2140,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2137
2140
|
workspaces: {
|
|
2138
2141
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2139
2142
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2140
|
-
enable(
|
|
2143
|
+
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2141
2144
|
};
|
|
2142
2145
|
tools: {
|
|
2143
2146
|
connections: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
type WithRequired<T, K extends keyof T> = T & {
|
|
2
|
-
[P in K]-?: T[P];
|
|
3
|
-
};
|
|
4
|
-
type Without<T, U> = {
|
|
5
|
-
[P in Exclude<keyof T, keyof U>]?: never;
|
|
6
|
-
};
|
|
7
|
-
type XOR<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
|
8
|
-
type OneOf<T extends any[]> = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] ? OneOf<[XOR<A, B>, ...Rest]> : never;
|
|
9
1
|
type components = {
|
|
10
2
|
schemas: {
|
|
11
3
|
AgentDetail: {
|
|
@@ -66,7 +58,7 @@ type components = {
|
|
|
66
58
|
name: string;
|
|
67
59
|
description?: string | null;
|
|
68
60
|
agentType: 'chat' | 'voice';
|
|
69
|
-
status?: 'inactive' | 'training' | 'active';
|
|
61
|
+
status?: 'inactive' | 'training' | 'active' | null;
|
|
70
62
|
avatarUrl?: string | null;
|
|
71
63
|
debounceDelayMs?: number | null;
|
|
72
64
|
metadata?: {
|
|
@@ -243,9 +235,9 @@ type components = {
|
|
|
243
235
|
voiceId?: string | null;
|
|
244
236
|
startSpeaker: 'user' | 'agent';
|
|
245
237
|
requiredData: string[];
|
|
246
|
-
criticalRules
|
|
247
|
-
topicsAllowed
|
|
248
|
-
topicsForbidden
|
|
238
|
+
criticalRules: string[];
|
|
239
|
+
topicsAllowed: string[];
|
|
240
|
+
topicsForbidden: string[];
|
|
249
241
|
contentHash: string | null;
|
|
250
242
|
contentVariables: string[];
|
|
251
243
|
variablesCache: string[];
|
|
@@ -320,7 +312,7 @@ type components = {
|
|
|
320
312
|
name: string;
|
|
321
313
|
title?: string | null;
|
|
322
314
|
goalPrompt: string;
|
|
323
|
-
promptInstructions
|
|
315
|
+
promptInstructions: string[];
|
|
324
316
|
order?: number | null;
|
|
325
317
|
triggers?: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
326
318
|
metadata?: {
|
|
@@ -331,7 +323,7 @@ type components = {
|
|
|
331
323
|
name?: string;
|
|
332
324
|
title?: string | null;
|
|
333
325
|
goalPrompt?: string;
|
|
334
|
-
promptInstructions
|
|
326
|
+
promptInstructions: string[];
|
|
335
327
|
order?: number | null;
|
|
336
328
|
metadata?: {
|
|
337
329
|
[key: string]: unknown;
|
|
@@ -367,9 +359,9 @@ type components = {
|
|
|
367
359
|
name: string;
|
|
368
360
|
title?: string | null;
|
|
369
361
|
goalPrompt: string;
|
|
370
|
-
promptInstructions
|
|
362
|
+
promptInstructions: string[];
|
|
371
363
|
order?: number | null;
|
|
372
|
-
triggers
|
|
364
|
+
triggers: components['schemas']['BlueprintStageTriggerInput'][] | null;
|
|
373
365
|
metadata?: {
|
|
374
366
|
[key: string]: unknown;
|
|
375
367
|
} | null;
|
|
@@ -378,7 +370,7 @@ type components = {
|
|
|
378
370
|
agent_id: string;
|
|
379
371
|
phone_id: string;
|
|
380
372
|
test_phones?: string[];
|
|
381
|
-
allow_all
|
|
373
|
+
allow_all: boolean;
|
|
382
374
|
};
|
|
383
375
|
PhoneAssignmentResponse: {
|
|
384
376
|
agent_id: string;
|
|
@@ -391,7 +383,7 @@ type components = {
|
|
|
391
383
|
WorkspacePhone: {
|
|
392
384
|
id: string;
|
|
393
385
|
external_id: string;
|
|
394
|
-
channel?: 'voice';
|
|
386
|
+
channel?: 'voice' | null;
|
|
395
387
|
supports_outbound?: boolean | null;
|
|
396
388
|
assigned_to?: string | null;
|
|
397
389
|
last_used_at?: string | null;
|
|
@@ -460,6 +452,8 @@ type components = {
|
|
|
460
452
|
metadata?: {
|
|
461
453
|
[key: string]: unknown;
|
|
462
454
|
};
|
|
455
|
+
descriptionUsage?: string;
|
|
456
|
+
usageExample?: string;
|
|
463
457
|
auth?: components['schemas']['ToolConnectionAuth'];
|
|
464
458
|
};
|
|
465
459
|
ToolConnectionResponse: {
|
|
@@ -474,6 +468,8 @@ type components = {
|
|
|
474
468
|
metadata?: {
|
|
475
469
|
[key: string]: unknown;
|
|
476
470
|
};
|
|
471
|
+
descriptionUsage?: string | null;
|
|
472
|
+
usageExample?: string | null;
|
|
477
473
|
};
|
|
478
474
|
ToolConnectionAuth: {
|
|
479
475
|
type: 'none' | 'oauth2' | 'api_key' | 'custom';
|
|
@@ -506,7 +502,7 @@ type components = {
|
|
|
506
502
|
self: string;
|
|
507
503
|
catalog: string;
|
|
508
504
|
};
|
|
509
|
-
CatalogItemSummary:
|
|
505
|
+
CatalogItemSummary: {
|
|
510
506
|
id: string;
|
|
511
507
|
type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
|
|
512
508
|
systemIdentifier: string;
|
|
@@ -519,13 +515,13 @@ type components = {
|
|
|
519
515
|
createdAt: string;
|
|
520
516
|
updatedAt: string;
|
|
521
517
|
links: components['schemas']['CatalogItemLinks'];
|
|
522
|
-
}
|
|
518
|
+
} & (unknown & unknown & unknown & unknown & unknown);
|
|
523
519
|
CatalogItemDetail: components['schemas']['CatalogItemSummary'];
|
|
524
520
|
CatalogItemListResponse: {
|
|
525
521
|
data: components['schemas']['CatalogItemSummary'][];
|
|
526
522
|
meta: components['schemas']['PaginationMeta'];
|
|
527
523
|
};
|
|
528
|
-
CatalogItemCreateRequest:
|
|
524
|
+
CatalogItemCreateRequest: {
|
|
529
525
|
type: 'language' | 'message_style' | 'tone_style' | 'tag' | 'voice';
|
|
530
526
|
scope: 'global' | 'workspace';
|
|
531
527
|
workspaceId?: string;
|
|
@@ -533,13 +529,12 @@ type components = {
|
|
|
533
529
|
description: string;
|
|
534
530
|
systemIdentifier?: string;
|
|
535
531
|
metadata: Record<string, never>;
|
|
536
|
-
isActive
|
|
537
|
-
}
|
|
532
|
+
isActive: boolean;
|
|
533
|
+
} & (unknown & unknown & unknown & unknown & unknown & unknown);
|
|
538
534
|
WorkspaceEnableRequest: {
|
|
539
535
|
apiKey: string;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
};
|
|
536
|
+
phone: string;
|
|
537
|
+
speechAnalyticsAgentId: string;
|
|
543
538
|
};
|
|
544
539
|
WorkspaceEnableResponse: {
|
|
545
540
|
status: 'enabled';
|
|
@@ -552,6 +547,7 @@ type components = {
|
|
|
552
547
|
details?: {
|
|
553
548
|
subcode?: string;
|
|
554
549
|
workspaceId?: string;
|
|
550
|
+
} & {
|
|
555
551
|
[key: string]: unknown;
|
|
556
552
|
};
|
|
557
553
|
};
|
|
@@ -581,7 +577,7 @@ type components = {
|
|
|
581
577
|
url: string;
|
|
582
578
|
agentId?: string | null;
|
|
583
579
|
description?: string | null;
|
|
584
|
-
isActive
|
|
580
|
+
isActive: boolean;
|
|
585
581
|
headers?: {
|
|
586
582
|
[key: string]: string;
|
|
587
583
|
};
|
|
@@ -611,7 +607,7 @@ type components = {
|
|
|
611
607
|
};
|
|
612
608
|
CreateEventSubscriptionRequest: {
|
|
613
609
|
eventKey: string;
|
|
614
|
-
isActive
|
|
610
|
+
isActive: boolean;
|
|
615
611
|
};
|
|
616
612
|
UpdateEventSubscriptionRequest: {
|
|
617
613
|
isActive?: boolean;
|
|
@@ -698,7 +694,7 @@ type components = {
|
|
|
698
694
|
templateVersionId?: string;
|
|
699
695
|
name?: string | null;
|
|
700
696
|
description?: string | null;
|
|
701
|
-
status?: 'inactive' | 'training' | 'active';
|
|
697
|
+
status?: 'inactive' | 'training' | 'active' | null;
|
|
702
698
|
debounceDelayMs?: number | null;
|
|
703
699
|
};
|
|
704
700
|
AgentScheduleListResponse: {
|
|
@@ -755,12 +751,9 @@ type components = {
|
|
|
755
751
|
description?: string;
|
|
756
752
|
notes?: string[];
|
|
757
753
|
prompts?: components['schemas']['ToolConfigSchemaActionPrompts'];
|
|
758
|
-
schema:
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
},
|
|
762
|
-
boolean
|
|
763
|
-
]>;
|
|
754
|
+
schema: {
|
|
755
|
+
[key: string]: unknown;
|
|
756
|
+
} | boolean;
|
|
764
757
|
};
|
|
765
758
|
ToolConfigSchema: {
|
|
766
759
|
schemaVersion: 'json-schema/2020-12';
|
|
@@ -833,6 +826,8 @@ type components = {
|
|
|
833
826
|
metadata?: {
|
|
834
827
|
[key: string]: unknown;
|
|
835
828
|
};
|
|
829
|
+
descriptionUsage?: string;
|
|
830
|
+
usageExample?: string;
|
|
836
831
|
auth?: components['schemas']['ToolConnectionAuth'];
|
|
837
832
|
};
|
|
838
833
|
ExecuteToolConnectionRequest: {
|
|
@@ -848,11 +843,13 @@ type components = {
|
|
|
848
843
|
CatalogItemMessageStyleMetadata: {
|
|
849
844
|
register?: string | null;
|
|
850
845
|
sample?: string | null;
|
|
846
|
+
} & {
|
|
851
847
|
[key: string]: unknown;
|
|
852
848
|
};
|
|
853
849
|
CatalogItemToneStyleMetadata: {
|
|
854
850
|
mood?: string | null;
|
|
855
851
|
intensity?: string | null;
|
|
852
|
+
} & {
|
|
856
853
|
[key: string]: unknown;
|
|
857
854
|
};
|
|
858
855
|
CatalogItemTagMetadata: {
|
|
@@ -882,31 +879,34 @@ type components = {
|
|
|
882
879
|
ToolId: string;
|
|
883
880
|
ResourceId: string;
|
|
884
881
|
CatalogItemId: string;
|
|
885
|
-
PageParam
|
|
886
|
-
LimitParam
|
|
887
|
-
Page
|
|
888
|
-
Limit
|
|
889
|
-
SortParam
|
|
890
|
-
FieldsParam
|
|
891
|
-
IncludeParam
|
|
892
|
-
SearchParam
|
|
893
|
-
FilterParam
|
|
882
|
+
PageParam: number;
|
|
883
|
+
LimitParam: number;
|
|
884
|
+
Page: number;
|
|
885
|
+
Limit: number;
|
|
886
|
+
SortParam: string;
|
|
887
|
+
FieldsParam: string;
|
|
888
|
+
IncludeParam: string;
|
|
889
|
+
SearchParam: string;
|
|
890
|
+
FilterParam: components['schemas']['QueryFilters'];
|
|
894
891
|
WebhookId: string;
|
|
895
892
|
SubscriptionId: string;
|
|
896
893
|
CallId: string;
|
|
897
|
-
AgentBatchIdQuery
|
|
898
|
-
AgentIdQuery
|
|
899
|
-
ExecutionIdQuery
|
|
900
|
-
RecordedAfterParam
|
|
901
|
-
RecordedBeforeParam
|
|
894
|
+
AgentBatchIdQuery: string;
|
|
895
|
+
AgentIdQuery: string;
|
|
896
|
+
ExecutionIdQuery: string;
|
|
897
|
+
RecordedAfterParam: string;
|
|
898
|
+
RecordedBeforeParam: string;
|
|
902
899
|
CallsAfterParam: string;
|
|
903
|
-
CallsStreamLimitParam
|
|
904
|
-
OrParam
|
|
900
|
+
CallsStreamLimitParam: number;
|
|
901
|
+
OrParam: components['schemas']['QueryOrGroups'];
|
|
905
902
|
ScheduleId: string;
|
|
906
903
|
ApiKeyId: string;
|
|
907
|
-
XCacheRefresh
|
|
904
|
+
XCacheRefresh: boolean;
|
|
908
905
|
IdempotencyKey: string;
|
|
909
|
-
XApiKey
|
|
906
|
+
XApiKey: string;
|
|
907
|
+
DurationBucketQuery: 'short' | 'medium' | 'long';
|
|
908
|
+
GoalStatusQuery: 'achieved' | 'not_achieved';
|
|
909
|
+
SearchQuery: string;
|
|
910
910
|
};
|
|
911
911
|
requestBodies: never;
|
|
912
912
|
headers: never;
|
|
@@ -1277,7 +1277,7 @@ type AgentStagesApi$1 = {
|
|
|
1277
1277
|
list(agentId: string, blueprintId: string, options?: ListAgentStagesOptions): Promise<PaginatedResult<BlueprintStageListResponse, ListAgentStagesOptions>>;
|
|
1278
1278
|
get(agentId: string, blueprintId: string, stageId: string): Promise<BlueprintStage>;
|
|
1279
1279
|
create(agentId: string, blueprintId: string, payload: CreateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1280
|
-
update(agentId: string, blueprintId: string, stageId: string, payload: UpdateBlueprintStageRequest): Promise<BlueprintStage>;
|
|
1280
|
+
update(agentId: string, blueprintId: string, stageId: string, payload: Partial<UpdateBlueprintStageRequest>): Promise<BlueprintStage>;
|
|
1281
1281
|
delete(agentId: string, blueprintId: string, stageId: string): Promise<void>;
|
|
1282
1282
|
reorder(agentId: string, blueprintId: string, payload: BlueprintStageReorderRequest): Promise<BlueprintStageListResponse>;
|
|
1283
1283
|
};
|
|
@@ -1775,6 +1775,9 @@ type StreamCallsOptions = {
|
|
|
1775
1775
|
agentBatchId?: string;
|
|
1776
1776
|
agentId?: string;
|
|
1777
1777
|
executionId?: string;
|
|
1778
|
+
durationBucket?: 'short' | 'medium' | 'long';
|
|
1779
|
+
goalStatus?: 'achieved' | 'not_achieved';
|
|
1780
|
+
query?: string;
|
|
1778
1781
|
};
|
|
1779
1782
|
declare function createCallsApi(cfg: ClientConfig & {
|
|
1780
1783
|
retry?: RetryPolicy;
|
|
@@ -1898,7 +1901,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
|
|
|
1898
1901
|
}): {
|
|
1899
1902
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
1900
1903
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
1901
|
-
enable(
|
|
1904
|
+
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
1902
1905
|
};
|
|
1903
1906
|
|
|
1904
1907
|
declare function createClient(initialCfg: ClientConfig & {
|
|
@@ -1993,7 +1996,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1993
1996
|
workspaces: {
|
|
1994
1997
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
1995
1998
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
1996
|
-
enable(
|
|
1999
|
+
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
1997
2000
|
};
|
|
1998
2001
|
tools: {
|
|
1999
2002
|
connections: {
|
|
@@ -2137,7 +2140,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2137
2140
|
workspaces: {
|
|
2138
2141
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2139
2142
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2140
|
-
enable(
|
|
2143
|
+
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2141
2144
|
};
|
|
2142
2145
|
tools: {
|
|
2143
2146
|
connections: {
|
package/dist/index.js
CHANGED
|
@@ -1323,7 +1323,10 @@ function createCallsApi(cfg) {
|
|
|
1323
1323
|
["limit", options.limit],
|
|
1324
1324
|
["agentBatchId", options.agentBatchId],
|
|
1325
1325
|
["agentId", options.agentId],
|
|
1326
|
-
["executionId", options.executionId]
|
|
1326
|
+
["executionId", options.executionId],
|
|
1327
|
+
["durationBucket", options.durationBucket],
|
|
1328
|
+
["goalStatus", options.goalStatus],
|
|
1329
|
+
["query", options.query]
|
|
1327
1330
|
]);
|
|
1328
1331
|
const res = await doFetch(`${base}/calls/stream`, {
|
|
1329
1332
|
method: "GET",
|
|
@@ -2040,8 +2043,8 @@ function createWorkspacesApi(cfg) {
|
|
|
2040
2043
|
const fetchPage = (options) => fetchPhonesPage(workspaceId, options);
|
|
2041
2044
|
return attachPaginator(response, fetchPage, normalizedOptions);
|
|
2042
2045
|
},
|
|
2043
|
-
async enable(
|
|
2044
|
-
const res = await doFetch(`${base}/workspaces
|
|
2046
|
+
async enable(payload) {
|
|
2047
|
+
const res = await doFetch(`${base}/workspaces/enable`, {
|
|
2045
2048
|
method: "POST",
|
|
2046
2049
|
headers: jsonHeaders,
|
|
2047
2050
|
body: JSON.stringify(payload)
|