@getsupervisor/agents-studio-sdk 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,315 +1,189 @@
1
1
  type components = {
2
2
  schemas: {
3
- AgentDetail: components['schemas']['AgentSummary'] & {
4
- description?: string;
5
- avatarUrl?: string;
6
- ownerUserId: string;
7
- debounceDelayMs: number;
8
- };
9
- PaginationMeta: {
10
- total: number;
11
- page: number;
12
- limit: number;
13
- hasNext: boolean;
14
- hasPrevious: boolean;
15
- };
16
- QueryFilters: string;
17
- QueryOrGroups: string;
18
- AgentSummary: {
19
- agentId: string;
20
- name: string;
21
- agentType: 'chat' | 'voice';
22
- status: 'inactive' | 'training' | 'active' | 'archived';
23
- workspaceId: string;
24
- createdAt: string;
25
- updatedAt: string;
26
- };
27
- AgentListResponse: {
28
- data: components['schemas']['AgentSummary'][];
29
- meta: components['schemas']['PaginationMeta'];
30
- };
31
- CreateAgentRequest: {
32
- name: string;
33
- agentType: 'chat' | 'voice';
34
- description?: string;
35
- status: 'inactive' | 'training' | 'active';
36
- avatarUrl?: string;
37
- debounceDelayMs: number;
38
- };
39
- AgentTagRequest: {
40
- tagId: string;
41
- };
42
- AgentTagsResponse: {
43
- agentId: string;
44
- tags: string[];
45
- };
46
- UpdateAgentRequest: {
47
- name?: string;
48
- status?: 'inactive' | 'training' | 'active' | 'archived';
49
- description?: string;
50
- avatarUrl?: string;
51
- debounceDelayMs?: number;
52
- };
53
- Instruction: {
54
- id: string;
55
- versionId: string;
56
- order: number;
57
- content: string;
58
- createdAt?: string;
59
- updatedAt?: string;
60
- };
61
- InstructionListResponse: {
62
- data: components['schemas']['Instruction'][];
63
- meta?: components['schemas']['PaginationMeta'];
64
- };
65
- CreateInstructionRequest: {
66
- order: number;
67
- content: string;
68
- };
69
- InstructionCreatedResponse: {
70
- id: string;
71
- versionId: string;
72
- order: number;
73
- createdAt: string;
74
- };
75
- UpdateInstructionRequest: {
76
- order?: number;
77
- content?: string;
78
- };
79
- VoiceSummary: {
80
- id: string;
81
- providerVoiceId?: string;
82
- name: string;
83
- gender?: 'female' | 'male' | 'neutral';
84
- locale: string;
85
- tags?: string[];
86
- previewUrl?: string;
87
- provider: string;
88
- };
89
- VoiceListResponse: {
90
- data: components['schemas']['VoiceSummary'][];
91
- meta: components['schemas']['PaginationMeta'];
92
- };
93
- AgentScheduleSlot: {
94
- startTime: string;
95
- endTime: string;
96
- };
97
- AgentScheduleRule: {
98
- dayOfWeek: 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday';
99
- slots: components['schemas']['AgentScheduleSlot'][];
100
- isClosed?: boolean;
101
- };
102
- AgentSchedule: {
103
- agentId: string;
104
- timezone: string;
105
- rules: components['schemas']['AgentScheduleRule'][];
106
- metadata?: {
107
- [key: string]: unknown;
108
- };
109
- };
110
- UpdateAgentScheduleRequest: {
111
- timezone: string;
112
- rules: components['schemas']['AgentScheduleRule'][];
113
- metadata?: {
114
- [key: string]: unknown;
115
- };
116
- };
117
- AgentVersionSummary: {
118
- versionId: string;
119
- agentId: string;
120
- label: string;
121
- status: 'draft' | 'published' | 'archived';
122
- isActive?: boolean;
123
- createdAt: string;
124
- updatedAt?: string;
125
- publishedAt?: string | null;
126
- };
127
- AgentVersionDetail: components['schemas']['AgentVersionSummary'] & {
128
- description?: string;
129
- metadata?: {
130
- [key: string]: unknown;
131
- };
132
- instructionsVersionId?: string;
133
- };
134
- AgentVersionListResponse: {
135
- data: components['schemas']['AgentVersionSummary'][];
136
- meta?: components['schemas']['PaginationMeta'];
137
- };
138
- CreateAgentVersionRequest: {
139
- label: string;
140
- description?: string;
141
- sourceVersionId?: string;
142
- metadata?: {
143
- [key: string]: unknown;
144
- };
145
- };
146
- UpdateAgentVersionRequest: {
147
- label?: string;
148
- description?: string;
149
- status?: 'draft' | 'published' | 'archived';
150
- metadata?: {
151
- [key: string]: unknown;
152
- };
153
- };
154
- ConnectPhoneRequest: {
155
- agent_id: string;
156
- phone_id: string;
157
- test_phones?: string[];
158
- allow_all?: boolean;
159
- };
160
- PhoneAssignmentResponse: {
161
- agent_id: string;
162
- phone_id: string;
163
- allow_all: boolean;
164
- test_phones?: string[];
165
- channel?: string | null;
166
- assigned_at?: string | null;
167
- };
168
- WorkspacePhone: {
169
- id: string;
170
- external_id: string;
171
- channel?: 'voice';
172
- supports_outbound?: boolean | null;
173
- assigned_to?: string | null;
174
- last_used_at?: string | null;
175
- requires_qr_reauth?: boolean | null;
176
- };
177
- WorkspacePhonesResponse: {
178
- data: components['schemas']['WorkspacePhone'][];
179
- };
180
- ToolSummary: {
181
- id: string;
182
- name: string;
183
- identifier: string;
184
- description?: string;
185
- enabled: boolean;
186
- };
187
- ToolListResponse: {
188
- data: components['schemas']['ToolSummary'][];
189
- meta: components['schemas']['PaginationMeta'];
190
- };
191
- ToolResourceSummary: {
192
- id: string;
193
- toolId: string;
194
- type: 'document' | 'media' | 'file';
195
- title?: string;
196
- status: 'pending' | 'processing' | 'ready' | 'failed';
197
- sizeBytes?: number | null;
198
- createdAt: string;
199
- updatedAt?: string | null;
200
- metadata?: {
201
- [key: string]: unknown;
202
- };
203
- };
204
- ToolResourceListResponse: {
205
- data: components['schemas']['ToolResourceSummary'][];
206
- meta: components['schemas']['PaginationMeta'];
207
- };
208
- ToolResourceUploadRequest: {
209
- file: string;
210
- type?: 'document' | 'media' | 'file';
211
- title?: string;
212
- metadata?: {
213
- [key: string]: unknown;
214
- };
215
- };
216
- ToolResourceUploadResponse: {
217
- resourceId: string;
218
- status: 'queued' | 'processing' | 'completed' | 'failed';
219
- message?: string;
220
- toolId?: string;
221
- };
222
- ToolResourceReloadResponse: {
223
- resourceId: string;
224
- status: 'queued' | 'processing' | 'completed' | 'failed';
225
- toolId?: string;
226
- message?: string;
227
- };
228
- ToolConnectionRequest: {
229
- type?: 'oauth2' | 'api_key' | 'credentials';
230
- authorizationCode?: string | null;
231
- redirectUri?: string | null;
232
- credentials?: {
233
- [key: string]: unknown;
234
- };
235
- metadata?: {
236
- [key: string]: unknown;
237
- };
238
- };
239
- ToolConnectionResponse: {
240
- status: 'connected' | 'pending' | 'requires_action';
241
- toolId?: string | null;
242
- connectionId?: string | null;
243
- authorizationUrl?: string | null;
244
- expiresAt?: string | null;
245
- message?: string | null;
246
- metadata?: {
247
- [key: string]: unknown;
248
- };
249
- };
250
- ExecuteToolRequest: {
251
- payload: {
252
- [key: string]: unknown;
253
- };
254
- metadata?: {
255
- [key: string]: unknown;
256
- };
257
- };
258
- ExecuteToolResponse: {
259
- result: {
260
- [key: string]: unknown;
261
- };
262
- metadata?: {
263
- [key: string]: unknown;
264
- };
265
- toolId: string;
266
- };
267
- WorkspaceEnableRequest: {
268
- provider: 'provider';
269
- apiKey: string;
270
- metadata?: {
271
- [key: string]: unknown;
272
- };
273
- };
274
- WorkspaceEnableResponse: {
275
- status: 'enabled';
276
- provider: string;
277
- workspaceId: string;
278
- };
279
- ErrorResponse: {
280
- code: string;
281
- message: string;
282
- details?: {
283
- [key: string]: unknown;
284
- };
285
- };
3
+ AgentDetail: external['components/schemas.yaml']['AgentDetail'];
4
+ PaginationMeta: external['components/schemas.yaml']['PaginationMeta'];
5
+ QueryFilters: external['components/schemas.yaml']['QueryFilters'];
6
+ QueryOrGroups: external['components/schemas.yaml']['QueryOrGroups'];
7
+ AgentSummary: external['components/schemas.yaml']['AgentSummary'];
8
+ AgentListResponse: external['components/schemas.yaml']['AgentListResponse'];
9
+ CreateAgentRequest: external['components/schemas.yaml']['CreateAgentRequest'];
10
+ AgentTagRequest: external['components/schemas.yaml']['AgentTagRequest'];
11
+ AgentTagsResponse: external['components/schemas.yaml']['AgentTagsResponse'];
12
+ UpdateAgentRequest: external['components/schemas.yaml']['UpdateAgentRequest'];
13
+ Instruction: external['components/schemas.yaml']['Instruction'];
14
+ InstructionListResponse: external['components/schemas.yaml']['InstructionListResponse'];
15
+ CreateInstructionRequest: external['components/schemas.yaml']['CreateInstructionRequest'];
16
+ InstructionCreatedResponse: external['components/schemas.yaml']['InstructionCreatedResponse'];
17
+ UpdateInstructionRequest: external['components/schemas.yaml']['UpdateInstructionRequest'];
18
+ VoiceSummary: external['components/schemas.yaml']['VoiceSummary'];
19
+ VoiceListResponse: external['components/schemas.yaml']['VoiceListResponse'];
20
+ AgentScheduleSlot: external['components/schemas.yaml']['AgentScheduleSlot'];
21
+ AgentScheduleRule: external['components/schemas.yaml']['AgentScheduleRule'];
22
+ AgentSchedule: external['components/schemas.yaml']['AgentSchedule'];
23
+ UpdateAgentScheduleRequest: external['components/schemas.yaml']['UpdateAgentScheduleRequest'];
24
+ AgentVersionSummary: external['components/schemas.yaml']['AgentVersionSummary'];
25
+ AgentVersionDetail: external['components/schemas.yaml']['AgentVersionDetail'];
26
+ AgentVersionListResponse: external['components/schemas.yaml']['AgentVersionListResponse'];
27
+ CreateAgentVersionRequest: external['components/schemas.yaml']['CreateAgentVersionRequest'];
28
+ PublishAgentVersionRequest: external['components/schemas.yaml']['PublishAgentVersionRequest'];
29
+ UpdateAgentVersionNotesRequest: external['components/schemas.yaml']['UpdateAgentVersionNotesRequest'];
30
+ AgentBlueprint: external['components/schemas.yaml']['AgentBlueprint'];
31
+ AgentBlueprintListItem: external['components/schemas.yaml']['AgentBlueprintListItem'];
32
+ AgentBlueprintListResponse: external['components/schemas.yaml']['AgentBlueprintListResponse'];
33
+ CreateAgentBlueprintRequest: external['components/schemas.yaml']['CreateAgentBlueprintRequest'];
34
+ UpdateAgentBlueprintRequest: external['components/schemas.yaml']['UpdateAgentBlueprintRequest'];
35
+ ConnectPhoneRequest: external['components/schemas.yaml']['ConnectPhoneRequest'];
36
+ PhoneAssignmentResponse: external['components/schemas.yaml']['PhoneAssignmentResponse'];
37
+ WorkspacePhone: external['components/schemas.yaml']['WorkspacePhone'];
38
+ WorkspacePhonesResponse: external['components/schemas.yaml']['WorkspacePhonesResponse'];
39
+ ToolSummary: external['components/schemas.yaml']['ToolSummary'];
40
+ ToolListResponse: external['components/schemas.yaml']['ToolListResponse'];
41
+ ToolResourceSummary: external['components/schemas.yaml']['ToolResourceSummary'];
42
+ ToolResourceListResponse: external['components/schemas.yaml']['ToolResourceListResponse'];
43
+ ToolResourceUploadRequest: external['components/schemas.yaml']['ToolResourceUploadRequest'];
44
+ ToolResourceUploadResponse: external['components/schemas.yaml']['ToolResourceUploadResponse'];
45
+ ToolResourceReloadResponse: external['components/schemas.yaml']['ToolResourceReloadResponse'];
46
+ ToolConnectionRequest: external['components/schemas.yaml']['ToolConnectionRequest'];
47
+ ToolConnectionResponse: external['components/schemas.yaml']['ToolConnectionResponse'];
48
+ ExecuteToolRequest: external['components/schemas.yaml']['ExecuteToolRequest'];
49
+ ExecuteToolResponse: external['components/schemas.yaml']['ExecuteToolResponse'];
50
+ WorkspaceEnableRequest: external['components/schemas.yaml']['WorkspaceEnableRequest'];
51
+ WorkspaceEnableResponse: external['components/schemas.yaml']['WorkspaceEnableResponse'];
52
+ ErrorResponse: external['components/schemas.yaml']['ErrorResponse'];
286
53
  };
287
54
  responses: never;
288
55
  parameters: {
289
- XWorkspaceId: string;
290
- AgentId: string;
291
- PhoneId: string;
292
- InstructionId: string;
293
- VersionId: string;
294
- TagId: string;
295
- WorkspaceId: string;
296
- ToolId: string;
297
- ResourceId: string;
298
- PageParam?: number;
299
- LimitParam?: number;
300
- Page?: number;
301
- Limit?: number;
302
- SortParam?: string;
303
- FieldsParam?: string;
304
- IncludeParam?: string;
305
- SearchParam?: string;
306
- FilterParam?: components['schemas']['QueryFilters'];
307
- OrParam?: components['schemas']['QueryOrGroups'];
56
+ XWorkspaceId: external['components/parameters.yaml']['XWorkspaceId'];
57
+ AgentId: external['components/parameters.yaml']['AgentId'];
58
+ PhoneId: external['components/parameters.yaml']['PhoneId'];
59
+ InstructionId: external['components/parameters.yaml']['InstructionId'];
60
+ VersionId: external['components/parameters.yaml']['VersionId'];
61
+ TagId: external['components/parameters.yaml']['TagId'];
62
+ WorkspaceId: external['components/parameters.yaml']['WorkspaceId'];
63
+ ToolId: external['components/parameters.yaml']['ToolId'];
64
+ ResourceId: external['components/parameters.yaml']['ResourceId'];
65
+ PageParam: external['components/parameters.yaml']['PageParam'];
66
+ LimitParam: external['components/parameters.yaml']['LimitParam'];
67
+ Page: external['components/parameters.yaml']['Page'];
68
+ Limit: external['components/parameters.yaml']['Limit'];
69
+ SortParam: external['components/parameters.yaml']['SortParam'];
70
+ FieldsParam: external['components/parameters.yaml']['FieldsParam'];
71
+ IncludeParam: external['components/parameters.yaml']['IncludeParam'];
72
+ SearchParam: external['components/parameters.yaml']['SearchParam'];
73
+ FilterParam: external['components/parameters.yaml']['FilterParam'];
74
+ OrParam: external['components/parameters.yaml']['OrParam'];
308
75
  };
309
76
  requestBodies: never;
310
77
  headers: never;
311
78
  pathItems: never;
312
79
  };
80
+ type external = {
81
+ 'components/parameters.yaml': any;
82
+ 'components/schemas.yaml': any;
83
+ 'components/securitySchemes.yaml': any;
84
+ 'paths/agents/agent-blueprints.yaml': {
85
+ get: unknown;
86
+ };
87
+ 'paths/agents/agent-by-id.yaml': {
88
+ get: unknown;
89
+ patch: unknown;
90
+ delete: unknown;
91
+ };
92
+ 'paths/agents/agent-instruction-by-id.yaml': {
93
+ patch: unknown;
94
+ };
95
+ 'paths/agents/agent-instructions.yaml': {
96
+ get: unknown;
97
+ post: unknown;
98
+ };
99
+ 'paths/agents/agent-phone-by-id.yaml': {
100
+ delete: unknown;
101
+ };
102
+ 'paths/agents/agent-phones.yaml': {
103
+ post: unknown;
104
+ };
105
+ 'paths/agents/agent-schedule.yaml': {
106
+ get: unknown;
107
+ put: unknown;
108
+ };
109
+ 'paths/agents/agent-tag-by-id.yaml': {
110
+ delete: unknown;
111
+ };
112
+ 'paths/agents/agent-tags.yaml': {
113
+ post: unknown;
114
+ };
115
+ 'paths/agents/agent-version-blueprint.yaml': {
116
+ get: unknown;
117
+ post: unknown;
118
+ patch: unknown;
119
+ };
120
+ 'paths/agents/agent-version-by-id.yaml': {
121
+ get: unknown;
122
+ };
123
+ 'paths/agents/agent-version-clone.yaml': {
124
+ post: unknown;
125
+ };
126
+ 'paths/agents/agent-version-instruction-by-id.yaml': {
127
+ patch: unknown;
128
+ delete: unknown;
129
+ };
130
+ 'paths/agents/agent-version-instructions.yaml': {
131
+ get: unknown;
132
+ post: unknown;
133
+ };
134
+ 'paths/agents/agent-version-notes.yaml': {
135
+ patch: unknown;
136
+ };
137
+ 'paths/agents/agent-version-publish.yaml': {
138
+ post: unknown;
139
+ };
140
+ 'paths/agents/agent-versions.yaml': {
141
+ get: unknown;
142
+ post: unknown;
143
+ };
144
+ 'paths/agents/agents.yaml': {
145
+ get: unknown;
146
+ post: unknown;
147
+ };
148
+ 'paths/api-keys/api-key-by-id.yaml': {
149
+ delete: unknown;
150
+ };
151
+ 'paths/api-keys/api-key-show.yaml': {
152
+ get: unknown;
153
+ };
154
+ 'paths/api-keys/api-keys.yaml': {
155
+ get: unknown;
156
+ post: unknown;
157
+ };
158
+ 'paths/tools/tool-connect.yaml': {
159
+ post: unknown;
160
+ };
161
+ 'paths/tools/tool-execute.yaml': {
162
+ post: unknown;
163
+ };
164
+ 'paths/tools/tool-resource-by-id.yaml': {
165
+ delete: unknown;
166
+ };
167
+ 'paths/tools/tool-resource-reload.yaml': {
168
+ post: unknown;
169
+ };
170
+ 'paths/tools/tool-resources.yaml': {
171
+ get: unknown;
172
+ post: unknown;
173
+ };
174
+ 'paths/tools/tools.yaml': {
175
+ get: unknown;
176
+ };
177
+ 'paths/voices/voices.yaml': {
178
+ get: unknown;
179
+ };
180
+ 'paths/workspaces/workspace-enable.yaml': {
181
+ post: unknown;
182
+ };
183
+ 'paths/workspaces/workspace-phones.yaml': {
184
+ get: unknown;
185
+ };
186
+ };
313
187
 
314
188
  type QueryValue = string | number | boolean | string[];
315
189
  type QueryFilterOperators = Record<string, QueryValue>;
@@ -402,7 +276,8 @@ type AgentVersionSummary = components['schemas']['AgentVersionSummary'];
402
276
  type AgentVersionDetail = components['schemas']['AgentVersionDetail'];
403
277
  type AgentVersionListResponse = components['schemas']['AgentVersionListResponse'];
404
278
  type CreateAgentVersionRequest = components['schemas']['CreateAgentVersionRequest'];
405
- type UpdateAgentVersionRequest = components['schemas']['UpdateAgentVersionRequest'];
279
+ type PublishAgentVersionRequest = components['schemas']['PublishAgentVersionRequest'];
280
+ type UpdateAgentVersionNotesRequest = components['schemas']['UpdateAgentVersionNotesRequest'];
406
281
  type AgentBlueprint = {
407
282
  id: string;
408
283
  agentId: string;
@@ -542,18 +417,17 @@ declare function createAgentTagsApi(cfg: ClientConfig & {
542
417
  readonly remove: (agentId: string, tagId: string) => Promise<void>;
543
418
  };
544
419
 
545
- type ListAgentVersionsOptions = {
546
- status?: 'draft' | 'published' | 'archived';
547
- } & ListQueryOptions;
420
+ type ListAgentVersionsOptions = Pick<ListQueryOptions, 'page' | 'limit' | 'filter'>;
548
421
  type ListAgentVersionInstructionsOptions = ListQueryOptions;
549
422
  declare function createAgentVersionsApi(cfg: ClientConfig & {
550
423
  retry?: RetryPolicy;
551
424
  }): {
552
425
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
553
426
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
554
- create(agentId: string, payload: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
555
- update(agentId: string, versionId: string, payload: UpdateAgentVersionRequest): Promise<AgentVersionDetail>;
556
- delete(agentId: string, versionId: string): Promise<void>;
427
+ create(agentId: string, payload?: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
428
+ clone(agentId: string, versionId: string): Promise<AgentVersionDetail>;
429
+ publish(agentId: string, versionId: string, payload?: PublishAgentVersionRequest): Promise<AgentVersionDetail>;
430
+ updateNotes(agentId: string, versionId: string, payload: UpdateAgentVersionNotesRequest): Promise<AgentVersionDetail>;
557
431
  listInstructions(agentId: string, versionId: string, opts?: ListAgentVersionInstructionsOptions): Promise<InstructionListResponse>;
558
432
  createInstruction(agentId: string, versionId: string, payload: CreateInstructionRequest): Promise<InstructionCreatedResponse>;
559
433
  updateInstruction(agentId: string, versionId: string, instructionId: string, payload: UpdateInstructionRequest): Promise<Instruction>;
@@ -596,24 +470,9 @@ type AgentEntityFactoryOptions = {
596
470
  deleteAgent(agentId: string): Promise<void>;
597
471
  };
598
472
  declare const bindAgentInstructions: (api: AgentInstructionsApi, agentId: string) => {
599
- list(opts?: ListAgentInstructionsOptions): Promise<PaginatedResult<{
600
- data: components["schemas"]["Instruction"][];
601
- meta?: components["schemas"]["PaginationMeta"];
602
- }, ListAgentInstructionsOptions>>;
603
- create(payload: CreateInstructionRequest): Promise<{
604
- id: string;
605
- versionId: string;
606
- order: number;
607
- createdAt: string;
608
- }>;
609
- update(instructionId: string, payload: UpdateInstructionRequest): Promise<{
610
- id: string;
611
- versionId: string;
612
- order: number;
613
- content: string;
614
- createdAt?: string;
615
- updatedAt?: string;
616
- }>;
473
+ list(opts?: ListAgentInstructionsOptions): Promise<any>;
474
+ create(payload: CreateInstructionRequest): Promise<any>;
475
+ update(instructionId: string, payload: UpdateInstructionRequest): Promise<any>;
617
476
  delete(instructionId: string): Promise<void>;
618
477
  };
619
478
  declare const bindAgentTags: (api: AgentTagsApi, agentId: string) => {
@@ -621,107 +480,24 @@ declare const bindAgentTags: (api: AgentTagsApi, agentId: string) => {
621
480
  remove(tagId: string): Promise<void>;
622
481
  };
623
482
  declare const bindAgentPhones: (api: AgentPhonesApi, agentId: string) => {
624
- connect(payload: ConnectPhoneRequest): Promise<{
625
- agent_id: string;
626
- phone_id: string;
627
- allow_all: boolean;
628
- test_phones?: string[];
629
- channel?: string | null;
630
- assigned_at?: string | null;
631
- }>;
483
+ connect(payload: ConnectPhoneRequest): Promise<any>;
632
484
  disconnect(phoneId: string): Promise<void>;
633
485
  };
634
486
  declare const bindAgentSchedule: (api: AgentScheduleApi, agentId: string) => {
635
- get(): Promise<{
636
- agentId: string;
637
- timezone: string;
638
- rules: components["schemas"]["AgentScheduleRule"][];
639
- metadata?: {
640
- [key: string]: unknown;
641
- };
642
- }>;
643
- update(payload: UpdateAgentScheduleRequest): Promise<{
644
- agentId: string;
645
- timezone: string;
646
- rules: components["schemas"]["AgentScheduleRule"][];
647
- metadata?: {
648
- [key: string]: unknown;
649
- };
650
- }>;
487
+ get(): Promise<any>;
488
+ update(payload: UpdateAgentScheduleRequest): Promise<any>;
651
489
  };
652
490
  declare const bindAgentVersions: (api: AgentVersionsApi, agentId: string) => {
653
- list(opts?: ListAgentVersionsOptions): Promise<PaginatedResult<{
654
- data: components["schemas"]["AgentVersionSummary"][];
655
- meta?: components["schemas"]["PaginationMeta"];
656
- }, ListAgentVersionsOptions>>;
657
- get(versionId: string): Promise<{
658
- versionId: string;
659
- agentId: string;
660
- label: string;
661
- status: "draft" | "published" | "archived";
662
- isActive?: boolean;
663
- createdAt: string;
664
- updatedAt?: string;
665
- publishedAt?: string | null;
666
- } & {
667
- description?: string;
668
- metadata?: {
669
- [key: string]: unknown;
670
- };
671
- instructionsVersionId?: string;
672
- }>;
673
- create(payload: CreateAgentVersionRequest): Promise<{
674
- versionId: string;
675
- agentId: string;
676
- label: string;
677
- status: "draft" | "published" | "archived";
678
- isActive?: boolean;
679
- createdAt: string;
680
- updatedAt?: string;
681
- publishedAt?: string | null;
682
- } & {
683
- description?: string;
684
- metadata?: {
685
- [key: string]: unknown;
686
- };
687
- instructionsVersionId?: string;
688
- }>;
689
- update(versionId: string, payload: UpdateAgentVersionRequest): Promise<{
690
- versionId: string;
691
- agentId: string;
692
- label: string;
693
- status: "draft" | "published" | "archived";
694
- isActive?: boolean;
695
- createdAt: string;
696
- updatedAt?: string;
697
- publishedAt?: string | null;
698
- } & {
699
- description?: string;
700
- metadata?: {
701
- [key: string]: unknown;
702
- };
703
- instructionsVersionId?: string;
704
- }>;
705
- delete(versionId: string): Promise<void>;
491
+ list(opts?: ListAgentVersionsOptions): Promise<any>;
492
+ get(versionId: string): Promise<any>;
493
+ create(payload?: CreateAgentVersionRequest): Promise<any>;
494
+ clone(versionId: string): Promise<any>;
495
+ publish(versionId: string, payload?: PublishAgentVersionRequest): Promise<any>;
496
+ updateNotes(versionId: string, payload: UpdateAgentVersionNotesRequest): Promise<any>;
706
497
  instructions(versionId: string): {
707
- readonly list: (opts?: ListAgentVersionInstructionsOptions) => Promise<{
708
- data: components["schemas"]["Instruction"][];
709
- meta?: components["schemas"]["PaginationMeta"];
710
- }>;
711
- readonly create: (payload: CreateInstructionRequest) => Promise<{
712
- id: string;
713
- versionId: string;
714
- order: number;
715
- createdAt: string;
716
- }>;
717
- readonly update: (instructionId: string, payload: UpdateInstructionRequest) => Promise<{
718
- id: string;
719
- versionId: string;
720
- order: number;
721
- content: string;
722
- createdAt?: string;
723
- updatedAt?: string;
724
- }>;
498
+ readonly list: (opts?: ListAgentVersionInstructionsOptions) => Promise<any>;
499
+ readonly create: (payload: CreateInstructionRequest) => Promise<any>;
500
+ readonly update: (instructionId: string, payload: UpdateInstructionRequest) => Promise<any>;
725
501
  readonly delete: (instructionId: string) => Promise<void>;
726
502
  };
727
503
  };
@@ -752,8 +528,9 @@ type AgentsApi = {
752
528
  update(agentId: string, payload: UpdateAgentRequest): Promise<AgentDetail>;
753
529
  delete(agent: string | AgentEntity): Promise<void>;
754
530
  };
755
- type AgentListResponseWithEntities = Omit<AgentListResponse, 'data'> & {
531
+ type AgentListResponseWithEntities = {
756
532
  data: AgentEntity[];
533
+ meta: AgentListResponse['meta'];
757
534
  };
758
535
  type AgentsApiWithEntities = Omit<AgentsApi, 'get' | 'create' | 'update' | 'list'> & {
759
536
  list(options?: ListAgentsOptions): Promise<PaginatedResult<AgentListResponseWithEntities, ListAgentsOptions>>;
@@ -878,9 +655,10 @@ declare function createClient(initialCfg: ClientConfig & {
878
655
  versions: {
879
656
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
880
657
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
881
- create(agentId: string, payload: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
882
- update(agentId: string, versionId: string, payload: UpdateAgentVersionRequest): Promise<AgentVersionDetail>;
883
- delete(agentId: string, versionId: string): Promise<void>;
658
+ create(agentId: string, payload?: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
659
+ clone(agentId: string, versionId: string): Promise<AgentVersionDetail>;
660
+ publish(agentId: string, versionId: string, payload?: PublishAgentVersionRequest): Promise<AgentVersionDetail>;
661
+ updateNotes(agentId: string, versionId: string, payload: UpdateAgentVersionNotesRequest): Promise<AgentVersionDetail>;
884
662
  listInstructions(agentId: string, versionId: string, opts?: ListAgentVersionInstructionsOptions): Promise<InstructionListResponse>;
885
663
  createInstruction(agentId: string, versionId: string, payload: CreateInstructionRequest): Promise<InstructionCreatedResponse>;
886
664
  updateInstruction(agentId: string, versionId: string, instructionId: string, payload: UpdateInstructionRequest): Promise<Instruction>;
@@ -888,11 +666,9 @@ declare function createClient(initialCfg: ClientConfig & {
888
666
  } & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
889
667
  blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
890
668
  delete: (agent: string | AgentEntity) => Promise<void>;
891
- list(options?: ListAgentsOptions): Promise<PaginatedResult<Omit<{
892
- data: components["schemas"]["AgentSummary"][];
893
- meta: components["schemas"]["PaginationMeta"];
894
- }, "data"> & {
669
+ list(options?: ListAgentsOptions): Promise<PaginatedResult<{
895
670
  data: AgentEntity[];
671
+ meta: AgentListResponse["meta"];
896
672
  }, ListAgentsOptions>>;
897
673
  get(agentId: string): Promise<AgentEntity>;
898
674
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
@@ -905,14 +681,7 @@ declare function createClient(initialCfg: ClientConfig & {
905
681
  tools: {
906
682
  list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
907
683
  listResources(toolId: string, options?: ListToolResourcesOptions): Promise<PaginatedResult<ToolResourceListResponse, ListToolResourcesOptions>>;
908
- uploadResource(toolId: string, payload: FormData | (Omit<{
909
- file: string;
910
- type?: "document" | "media" | "file";
911
- title?: string;
912
- metadata?: {
913
- [key: string]: unknown;
914
- };
915
- }, "file"> & {
684
+ uploadResource(toolId: string, payload: FormData | (Omit<any, "file"> & {
916
685
  file: unknown;
917
686
  })): Promise<ToolResourceUploadResponse>;
918
687
  deleteResource(toolId: string, resourceId: string): Promise<void>;
@@ -948,9 +717,10 @@ declare function createClient(initialCfg: ClientConfig & {
948
717
  versions: {
949
718
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
950
719
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
951
- create(agentId: string, payload: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
952
- update(agentId: string, versionId: string, payload: UpdateAgentVersionRequest): Promise<AgentVersionDetail>;
953
- delete(agentId: string, versionId: string): Promise<void>;
720
+ create(agentId: string, payload?: CreateAgentVersionRequest): Promise<AgentVersionDetail>;
721
+ clone(agentId: string, versionId: string): Promise<AgentVersionDetail>;
722
+ publish(agentId: string, versionId: string, payload?: PublishAgentVersionRequest): Promise<AgentVersionDetail>;
723
+ updateNotes(agentId: string, versionId: string, payload: UpdateAgentVersionNotesRequest): Promise<AgentVersionDetail>;
954
724
  listInstructions(agentId: string, versionId: string, opts?: ListAgentVersionInstructionsOptions): Promise<InstructionListResponse>;
955
725
  createInstruction(agentId: string, versionId: string, payload: CreateInstructionRequest): Promise<InstructionCreatedResponse>;
956
726
  updateInstruction(agentId: string, versionId: string, instructionId: string, payload: UpdateInstructionRequest): Promise<Instruction>;
@@ -958,11 +728,9 @@ declare function createClient(initialCfg: ClientConfig & {
958
728
  } & ((agentId: string) => ReturnType<typeof bindAgentVersions>);
959
729
  blueprints: AgentBlueprintsApi$1 & ((agentId: string) => ReturnType<typeof bindAgentBlueprints>);
960
730
  delete: (agent: string | AgentEntity) => Promise<void>;
961
- list(options?: ListAgentsOptions): Promise<PaginatedResult<Omit<{
962
- data: components["schemas"]["AgentSummary"][];
963
- meta: components["schemas"]["PaginationMeta"];
964
- }, "data"> & {
731
+ list(options?: ListAgentsOptions): Promise<PaginatedResult<{
965
732
  data: AgentEntity[];
733
+ meta: AgentListResponse["meta"];
966
734
  }, ListAgentsOptions>>;
967
735
  get(agentId: string): Promise<AgentEntity>;
968
736
  create(payload: CreateAgentRequest): Promise<AgentEntity>;
@@ -975,14 +743,7 @@ declare function createClient(initialCfg: ClientConfig & {
975
743
  tools: {
976
744
  list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
977
745
  listResources(toolId: string, options?: ListToolResourcesOptions): Promise<PaginatedResult<ToolResourceListResponse, ListToolResourcesOptions>>;
978
- uploadResource(toolId: string, payload: FormData | (Omit<{
979
- file: string;
980
- type?: "document" | "media" | "file";
981
- title?: string;
982
- metadata?: {
983
- [key: string]: unknown;
984
- };
985
- }, "file"> & {
746
+ uploadResource(toolId: string, payload: FormData | (Omit<any, "file"> & {
986
747
  file: unknown;
987
748
  })): Promise<ToolResourceUploadResponse>;
988
749
  deleteResource(toolId: string, resourceId: string): Promise<void>;
@@ -1019,4 +780,4 @@ declare function createHttp(cfg: ClientConfig & {
1019
780
  resolveAccessToken: () => string;
1020
781
  };
1021
782
 
1022
- export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateInstructionRequest, type ErrorResponse, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionRequest, type UpdateInstructionRequest, type VoiceListResponse, type VoiceSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createClient, createHttp, createToolsApi, createVoicesApi, createWorkspacesApi };
783
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateInstructionRequest, type ErrorResponse, type ExecuteToolRequest, type ExecuteToolResponse, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWorkspacePhonesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type RetryPolicy, TimeoutError, type ToolConnectionRequest, type ToolConnectionResponse, type ToolListResponse, type ToolResourceListResponse, type ToolResourceReloadResponse, type ToolResourceSummary, type ToolResourceUploadRequest, type ToolResourceUploadResponse, type ToolSummary, type UpdateAgentBlueprintRequest, type UpdateAgentRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateInstructionRequest, type VoiceListResponse, type VoiceSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createClient, createHttp, createToolsApi, createVoicesApi, createWorkspacesApi };