@getsupervisor/agents-studio-sdk 1.14.0 → 1.16.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
@@ -21,6 +21,10 @@ type components = {
21
21
  AgentScheduleRule: external['components/schemas.yaml']['AgentScheduleRule'];
22
22
  AgentSchedule: external['components/schemas.yaml']['AgentSchedule'];
23
23
  UpdateAgentScheduleRequest: external['components/schemas.yaml']['UpdateAgentScheduleRequest'];
24
+ AgentScheduleException: external['components/schemas.yaml']['AgentScheduleException'];
25
+ AgentScheduleExceptionListResponse: external['components/schemas.yaml']['AgentScheduleExceptionListResponse'];
26
+ CreateAgentScheduleExceptionRequest: external['components/schemas.yaml']['CreateAgentScheduleExceptionRequest'];
27
+ UpdateAgentScheduleExceptionRequest: external['components/schemas.yaml']['UpdateAgentScheduleExceptionRequest'];
24
28
  AgentVersionSummary: external['components/schemas.yaml']['AgentVersionSummary'];
25
29
  AgentVersionDetail: external['components/schemas.yaml']['AgentVersionDetail'];
26
30
  AgentVersionListResponse: external['components/schemas.yaml']['AgentVersionListResponse'];
@@ -47,6 +51,11 @@ type components = {
47
51
  ToolConnectionResponse: external['components/schemas.yaml']['ToolConnectionResponse'];
48
52
  ExecuteToolRequest: external['components/schemas.yaml']['ExecuteToolRequest'];
49
53
  ExecuteToolResponse: external['components/schemas.yaml']['ExecuteToolResponse'];
54
+ CatalogItemLinks: external['components/schemas.yaml']['CatalogItemLinks'];
55
+ CatalogItemSummary: external['components/schemas.yaml']['CatalogItemSummary'];
56
+ CatalogItemDetail: external['components/schemas.yaml']['CatalogItemDetail'];
57
+ CatalogItemListResponse: external['components/schemas.yaml']['CatalogItemListResponse'];
58
+ CatalogItemCreateRequest: external['components/schemas.yaml']['CatalogItemCreateRequest'];
50
59
  WorkspaceEnableRequest: external['components/schemas.yaml']['WorkspaceEnableRequest'];
51
60
  WorkspaceEnableResponse: external['components/schemas.yaml']['WorkspaceEnableResponse'];
52
61
  ErrorResponse: external['components/schemas.yaml']['ErrorResponse'];
@@ -57,11 +66,13 @@ type components = {
57
66
  AgentId: external['components/parameters.yaml']['AgentId'];
58
67
  PhoneId: external['components/parameters.yaml']['PhoneId'];
59
68
  InstructionId: external['components/parameters.yaml']['InstructionId'];
69
+ ExceptionId: external['components/parameters.yaml']['ExceptionId'];
60
70
  VersionId: external['components/parameters.yaml']['VersionId'];
61
71
  TagId: external['components/parameters.yaml']['TagId'];
62
72
  WorkspaceId: external['components/parameters.yaml']['WorkspaceId'];
63
73
  ToolId: external['components/parameters.yaml']['ToolId'];
64
74
  ResourceId: external['components/parameters.yaml']['ResourceId'];
75
+ CatalogItemId: external['components/parameters.yaml']['CatalogItemId'];
65
76
  PageParam: external['components/parameters.yaml']['PageParam'];
66
77
  LimitParam: external['components/parameters.yaml']['LimitParam'];
67
78
  Page: external['components/parameters.yaml']['Page'];
@@ -102,9 +113,19 @@ type external = {
102
113
  'paths/agents/agent-phones.yaml': {
103
114
  post: unknown;
104
115
  };
116
+ 'paths/agents/agent-schedule-exception-by-id.yaml': {
117
+ get: unknown;
118
+ patch: unknown;
119
+ delete: unknown;
120
+ };
121
+ 'paths/agents/agent-schedule-exceptions.yaml': {
122
+ get: unknown;
123
+ post: unknown;
124
+ };
105
125
  'paths/agents/agent-schedule.yaml': {
106
126
  get: unknown;
107
127
  put: unknown;
128
+ post: unknown;
108
129
  };
109
130
  'paths/agents/agent-tag-by-id.yaml': {
110
131
  delete: unknown;
@@ -155,6 +176,14 @@ type external = {
155
176
  get: unknown;
156
177
  post: unknown;
157
178
  };
179
+ 'paths/catalogs/catalog-item-by-id.yaml': {
180
+ get: unknown;
181
+ delete: unknown;
182
+ };
183
+ 'paths/catalogs/catalog-items.yaml': {
184
+ get: unknown;
185
+ post: unknown;
186
+ };
158
187
  'paths/tools/tool-connect.yaml': {
159
188
  post: unknown;
160
189
  };
@@ -248,6 +277,11 @@ type WorkspaceEnableRequest = components['schemas']['WorkspaceEnableRequest'];
248
277
  type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
249
278
  type VoiceSummary = components['schemas']['VoiceSummary'];
250
279
  type VoiceListResponse = components['schemas']['VoiceListResponse'];
280
+ type CatalogItemLinks = components['schemas']['CatalogItemLinks'];
281
+ type CatalogItemSummary = components['schemas']['CatalogItemSummary'];
282
+ type CatalogItemDetail = components['schemas']['CatalogItemDetail'];
283
+ type CatalogItemListResponse = components['schemas']['CatalogItemListResponse'];
284
+ type CatalogItemCreateRequest = components['schemas']['CatalogItemCreateRequest'];
251
285
  type ApiKeySummary = {
252
286
  id: string;
253
287
  name: string;
@@ -272,6 +306,10 @@ type CreateApiKeyResponse = ApiKeySummary & {
272
306
  };
273
307
  type AgentSchedule = components['schemas']['AgentSchedule'];
274
308
  type UpdateAgentScheduleRequest = components['schemas']['UpdateAgentScheduleRequest'];
309
+ type AgentScheduleException = components['schemas']['AgentScheduleException'];
310
+ type AgentScheduleExceptionListResponse = components['schemas']['AgentScheduleExceptionListResponse'];
311
+ type CreateAgentScheduleExceptionRequest = components['schemas']['CreateAgentScheduleExceptionRequest'];
312
+ type UpdateAgentScheduleExceptionRequest = components['schemas']['UpdateAgentScheduleExceptionRequest'];
275
313
  type AgentVersionSummary = components['schemas']['AgentVersionSummary'];
276
314
  type AgentVersionDetail = components['schemas']['AgentVersionDetail'];
277
315
  type AgentVersionListResponse = components['schemas']['AgentVersionListResponse'];
@@ -407,9 +445,21 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
407
445
  retry?: RetryPolicy;
408
446
  }): {
409
447
  get(agentId: string): Promise<AgentSchedule>;
448
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
410
449
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
411
450
  };
412
451
 
452
+ type ListAgentScheduleExceptionsOptions = ListQueryOptions;
453
+ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
454
+ retry?: RetryPolicy;
455
+ }): {
456
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
457
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
458
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
459
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
460
+ delete(agentId: string, exceptionId: string): Promise<void>;
461
+ };
462
+
413
463
  declare function createAgentTagsApi(cfg: ClientConfig & {
414
464
  retry?: RetryPolicy;
415
465
  }): {
@@ -438,6 +488,7 @@ type AgentInstructionsApi = ReturnType<typeof createAgentInstructionsApi>;
438
488
  type AgentTagsApi = ReturnType<typeof createAgentTagsApi>;
439
489
  type AgentPhonesApi = ReturnType<typeof createAgentPhonesApi>;
440
490
  type AgentScheduleApi = ReturnType<typeof createAgentScheduleApi>;
491
+ type AgentScheduleExceptionsApi = ReturnType<typeof createAgentScheduleExceptionsApi>;
441
492
  type AgentVersionsApi = ReturnType<typeof createAgentVersionsApi>;
442
493
  type AgentBlueprintsApi = ReturnType<typeof createAgentBlueprintsApi>;
443
494
  type AgentInstructionsHelper = ReturnType<typeof bindAgentInstructions>;
@@ -463,6 +514,7 @@ type AgentEntityFactoryOptions = {
463
514
  tagsApi: AgentTagsApi;
464
515
  phonesApi: AgentPhonesApi;
465
516
  scheduleApi: AgentScheduleApi;
517
+ scheduleExceptionsApi: AgentScheduleExceptionsApi;
466
518
  versionsApi: AgentVersionsApi;
467
519
  blueprintsApi: AgentBlueprintsApi;
468
520
  reload(agentId: string): Promise<AgentEntity>;
@@ -483,9 +535,24 @@ declare const bindAgentPhones: (api: AgentPhonesApi, agentId: string) => {
483
535
  connect(payload: ConnectPhoneRequest): Promise<any>;
484
536
  disconnect(phoneId: string): Promise<void>;
485
537
  };
486
- declare const bindAgentSchedule: (api: AgentScheduleApi, agentId: string) => {
538
+ declare const bindAgentScheduleExceptions: (api: AgentScheduleExceptionsApi, agentId: string) => {
539
+ list(opts?: ListAgentScheduleExceptionsOptions): Promise<any>;
540
+ get(exceptionId: string): Promise<any>;
541
+ create(payload: CreateAgentScheduleExceptionRequest): Promise<any>;
542
+ update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<any>;
543
+ delete(exceptionId: string): Promise<void>;
544
+ };
545
+ declare const bindAgentSchedule: (scheduleApi: AgentScheduleApi, exceptionsApi: AgentScheduleExceptionsApi, agentId: string) => {
487
546
  get(): Promise<any>;
547
+ create(payload: UpdateAgentScheduleRequest): Promise<any>;
488
548
  update(payload: UpdateAgentScheduleRequest): Promise<any>;
549
+ exceptions: {
550
+ list(opts?: ListAgentScheduleExceptionsOptions): Promise<any>;
551
+ get(exceptionId: string): Promise<any>;
552
+ create(payload: CreateAgentScheduleExceptionRequest): Promise<any>;
553
+ update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<any>;
554
+ delete(exceptionId: string): Promise<void>;
555
+ };
489
556
  };
490
557
  declare const bindAgentVersions: (api: AgentVersionsApi, agentId: string) => {
491
558
  list(opts?: ListAgentVersionsOptions): Promise<any>;
@@ -517,6 +584,7 @@ type AgentEntityDependencies = {
517
584
  tagsApi: ReturnType<typeof createAgentTagsApi>;
518
585
  phonesApi: ReturnType<typeof createAgentPhonesApi>;
519
586
  scheduleApi: ReturnType<typeof createAgentScheduleApi>;
587
+ scheduleExceptionsApi: ReturnType<typeof createAgentScheduleExceptionsApi>;
520
588
  versionsApi: ReturnType<typeof createAgentVersionsApi>;
521
589
  blueprintsApi: ReturnType<typeof createAgentBlueprintsApi>;
522
590
  };
@@ -552,6 +620,16 @@ declare function createApiKeysApi(cfg: ClientConfig & {
552
620
  retry?: RetryPolicy;
553
621
  }): ApiKeysApi;
554
622
 
623
+ type ListCatalogItemsOptions = ListQueryOptions;
624
+ declare function createCatalogsApi(cfg: ClientConfig & {
625
+ retry?: RetryPolicy;
626
+ }): {
627
+ list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
628
+ get(itemId: string): Promise<CatalogItemDetail>;
629
+ create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
630
+ remove(itemId: string): Promise<void>;
631
+ };
632
+
555
633
  type ListToolsOptions = ListQueryOptions & {
556
634
  agentType?: 'chat' | 'voice';
557
635
  };
@@ -650,8 +728,17 @@ declare function createClient(initialCfg: ClientConfig & {
650
728
  } & ((agentId: string) => ReturnType<typeof bindAgentPhones>);
651
729
  schedule: {
652
730
  get(agentId: string): Promise<AgentSchedule>;
731
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
653
732
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
654
- } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>);
733
+ } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>) & {
734
+ exceptions: {
735
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
736
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
737
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
738
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
739
+ delete(agentId: string, exceptionId: string): Promise<void>;
740
+ } & ((agentId: string) => ReturnType<typeof bindAgentScheduleExceptions>);
741
+ };
655
742
  versions: {
656
743
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
657
744
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
@@ -689,6 +776,12 @@ declare function createClient(initialCfg: ClientConfig & {
689
776
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
690
777
  connect(toolId: string, payload: ToolConnectionRequest): Promise<ToolConnectionResponse>;
691
778
  };
779
+ catalogs: {
780
+ list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
781
+ get(itemId: string): Promise<CatalogItemDetail>;
782
+ create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
783
+ remove(itemId: string): Promise<void>;
784
+ };
692
785
  voices: {
693
786
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
694
787
  };
@@ -712,8 +805,17 @@ declare function createClient(initialCfg: ClientConfig & {
712
805
  } & ((agentId: string) => ReturnType<typeof bindAgentPhones>);
713
806
  schedule: {
714
807
  get(agentId: string): Promise<AgentSchedule>;
808
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
715
809
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
716
- } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>);
810
+ } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>) & {
811
+ exceptions: {
812
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
813
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
814
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
815
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
816
+ delete(agentId: string, exceptionId: string): Promise<void>;
817
+ } & ((agentId: string) => ReturnType<typeof bindAgentScheduleExceptions>);
818
+ };
717
819
  versions: {
718
820
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
719
821
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
@@ -751,6 +853,12 @@ declare function createClient(initialCfg: ClientConfig & {
751
853
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
752
854
  connect(toolId: string, payload: ToolConnectionRequest): Promise<ToolConnectionResponse>;
753
855
  };
856
+ catalogs: {
857
+ list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
858
+ get(itemId: string): Promise<CatalogItemDetail>;
859
+ create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
860
+ remove(itemId: string): Promise<void>;
861
+ };
754
862
  voices: {
755
863
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
756
864
  };
@@ -780,4 +888,4 @@ declare function createHttp(cfg: ClientConfig & {
780
888
  resolveAccessToken: () => string;
781
889
  };
782
890
 
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 };
891
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, 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 ListAgentScheduleExceptionsOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, 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 UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateInstructionRequest, type VoiceListResponse, type VoiceSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWorkspacesApi };
package/dist/index.d.ts CHANGED
@@ -21,6 +21,10 @@ type components = {
21
21
  AgentScheduleRule: external['components/schemas.yaml']['AgentScheduleRule'];
22
22
  AgentSchedule: external['components/schemas.yaml']['AgentSchedule'];
23
23
  UpdateAgentScheduleRequest: external['components/schemas.yaml']['UpdateAgentScheduleRequest'];
24
+ AgentScheduleException: external['components/schemas.yaml']['AgentScheduleException'];
25
+ AgentScheduleExceptionListResponse: external['components/schemas.yaml']['AgentScheduleExceptionListResponse'];
26
+ CreateAgentScheduleExceptionRequest: external['components/schemas.yaml']['CreateAgentScheduleExceptionRequest'];
27
+ UpdateAgentScheduleExceptionRequest: external['components/schemas.yaml']['UpdateAgentScheduleExceptionRequest'];
24
28
  AgentVersionSummary: external['components/schemas.yaml']['AgentVersionSummary'];
25
29
  AgentVersionDetail: external['components/schemas.yaml']['AgentVersionDetail'];
26
30
  AgentVersionListResponse: external['components/schemas.yaml']['AgentVersionListResponse'];
@@ -47,6 +51,11 @@ type components = {
47
51
  ToolConnectionResponse: external['components/schemas.yaml']['ToolConnectionResponse'];
48
52
  ExecuteToolRequest: external['components/schemas.yaml']['ExecuteToolRequest'];
49
53
  ExecuteToolResponse: external['components/schemas.yaml']['ExecuteToolResponse'];
54
+ CatalogItemLinks: external['components/schemas.yaml']['CatalogItemLinks'];
55
+ CatalogItemSummary: external['components/schemas.yaml']['CatalogItemSummary'];
56
+ CatalogItemDetail: external['components/schemas.yaml']['CatalogItemDetail'];
57
+ CatalogItemListResponse: external['components/schemas.yaml']['CatalogItemListResponse'];
58
+ CatalogItemCreateRequest: external['components/schemas.yaml']['CatalogItemCreateRequest'];
50
59
  WorkspaceEnableRequest: external['components/schemas.yaml']['WorkspaceEnableRequest'];
51
60
  WorkspaceEnableResponse: external['components/schemas.yaml']['WorkspaceEnableResponse'];
52
61
  ErrorResponse: external['components/schemas.yaml']['ErrorResponse'];
@@ -57,11 +66,13 @@ type components = {
57
66
  AgentId: external['components/parameters.yaml']['AgentId'];
58
67
  PhoneId: external['components/parameters.yaml']['PhoneId'];
59
68
  InstructionId: external['components/parameters.yaml']['InstructionId'];
69
+ ExceptionId: external['components/parameters.yaml']['ExceptionId'];
60
70
  VersionId: external['components/parameters.yaml']['VersionId'];
61
71
  TagId: external['components/parameters.yaml']['TagId'];
62
72
  WorkspaceId: external['components/parameters.yaml']['WorkspaceId'];
63
73
  ToolId: external['components/parameters.yaml']['ToolId'];
64
74
  ResourceId: external['components/parameters.yaml']['ResourceId'];
75
+ CatalogItemId: external['components/parameters.yaml']['CatalogItemId'];
65
76
  PageParam: external['components/parameters.yaml']['PageParam'];
66
77
  LimitParam: external['components/parameters.yaml']['LimitParam'];
67
78
  Page: external['components/parameters.yaml']['Page'];
@@ -102,9 +113,19 @@ type external = {
102
113
  'paths/agents/agent-phones.yaml': {
103
114
  post: unknown;
104
115
  };
116
+ 'paths/agents/agent-schedule-exception-by-id.yaml': {
117
+ get: unknown;
118
+ patch: unknown;
119
+ delete: unknown;
120
+ };
121
+ 'paths/agents/agent-schedule-exceptions.yaml': {
122
+ get: unknown;
123
+ post: unknown;
124
+ };
105
125
  'paths/agents/agent-schedule.yaml': {
106
126
  get: unknown;
107
127
  put: unknown;
128
+ post: unknown;
108
129
  };
109
130
  'paths/agents/agent-tag-by-id.yaml': {
110
131
  delete: unknown;
@@ -155,6 +176,14 @@ type external = {
155
176
  get: unknown;
156
177
  post: unknown;
157
178
  };
179
+ 'paths/catalogs/catalog-item-by-id.yaml': {
180
+ get: unknown;
181
+ delete: unknown;
182
+ };
183
+ 'paths/catalogs/catalog-items.yaml': {
184
+ get: unknown;
185
+ post: unknown;
186
+ };
158
187
  'paths/tools/tool-connect.yaml': {
159
188
  post: unknown;
160
189
  };
@@ -248,6 +277,11 @@ type WorkspaceEnableRequest = components['schemas']['WorkspaceEnableRequest'];
248
277
  type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
249
278
  type VoiceSummary = components['schemas']['VoiceSummary'];
250
279
  type VoiceListResponse = components['schemas']['VoiceListResponse'];
280
+ type CatalogItemLinks = components['schemas']['CatalogItemLinks'];
281
+ type CatalogItemSummary = components['schemas']['CatalogItemSummary'];
282
+ type CatalogItemDetail = components['schemas']['CatalogItemDetail'];
283
+ type CatalogItemListResponse = components['schemas']['CatalogItemListResponse'];
284
+ type CatalogItemCreateRequest = components['schemas']['CatalogItemCreateRequest'];
251
285
  type ApiKeySummary = {
252
286
  id: string;
253
287
  name: string;
@@ -272,6 +306,10 @@ type CreateApiKeyResponse = ApiKeySummary & {
272
306
  };
273
307
  type AgentSchedule = components['schemas']['AgentSchedule'];
274
308
  type UpdateAgentScheduleRequest = components['schemas']['UpdateAgentScheduleRequest'];
309
+ type AgentScheduleException = components['schemas']['AgentScheduleException'];
310
+ type AgentScheduleExceptionListResponse = components['schemas']['AgentScheduleExceptionListResponse'];
311
+ type CreateAgentScheduleExceptionRequest = components['schemas']['CreateAgentScheduleExceptionRequest'];
312
+ type UpdateAgentScheduleExceptionRequest = components['schemas']['UpdateAgentScheduleExceptionRequest'];
275
313
  type AgentVersionSummary = components['schemas']['AgentVersionSummary'];
276
314
  type AgentVersionDetail = components['schemas']['AgentVersionDetail'];
277
315
  type AgentVersionListResponse = components['schemas']['AgentVersionListResponse'];
@@ -407,9 +445,21 @@ declare function createAgentScheduleApi(cfg: ClientConfig & {
407
445
  retry?: RetryPolicy;
408
446
  }): {
409
447
  get(agentId: string): Promise<AgentSchedule>;
448
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
410
449
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
411
450
  };
412
451
 
452
+ type ListAgentScheduleExceptionsOptions = ListQueryOptions;
453
+ declare function createAgentScheduleExceptionsApi(cfg: ClientConfig & {
454
+ retry?: RetryPolicy;
455
+ }): {
456
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
457
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
458
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
459
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
460
+ delete(agentId: string, exceptionId: string): Promise<void>;
461
+ };
462
+
413
463
  declare function createAgentTagsApi(cfg: ClientConfig & {
414
464
  retry?: RetryPolicy;
415
465
  }): {
@@ -438,6 +488,7 @@ type AgentInstructionsApi = ReturnType<typeof createAgentInstructionsApi>;
438
488
  type AgentTagsApi = ReturnType<typeof createAgentTagsApi>;
439
489
  type AgentPhonesApi = ReturnType<typeof createAgentPhonesApi>;
440
490
  type AgentScheduleApi = ReturnType<typeof createAgentScheduleApi>;
491
+ type AgentScheduleExceptionsApi = ReturnType<typeof createAgentScheduleExceptionsApi>;
441
492
  type AgentVersionsApi = ReturnType<typeof createAgentVersionsApi>;
442
493
  type AgentBlueprintsApi = ReturnType<typeof createAgentBlueprintsApi>;
443
494
  type AgentInstructionsHelper = ReturnType<typeof bindAgentInstructions>;
@@ -463,6 +514,7 @@ type AgentEntityFactoryOptions = {
463
514
  tagsApi: AgentTagsApi;
464
515
  phonesApi: AgentPhonesApi;
465
516
  scheduleApi: AgentScheduleApi;
517
+ scheduleExceptionsApi: AgentScheduleExceptionsApi;
466
518
  versionsApi: AgentVersionsApi;
467
519
  blueprintsApi: AgentBlueprintsApi;
468
520
  reload(agentId: string): Promise<AgentEntity>;
@@ -483,9 +535,24 @@ declare const bindAgentPhones: (api: AgentPhonesApi, agentId: string) => {
483
535
  connect(payload: ConnectPhoneRequest): Promise<any>;
484
536
  disconnect(phoneId: string): Promise<void>;
485
537
  };
486
- declare const bindAgentSchedule: (api: AgentScheduleApi, agentId: string) => {
538
+ declare const bindAgentScheduleExceptions: (api: AgentScheduleExceptionsApi, agentId: string) => {
539
+ list(opts?: ListAgentScheduleExceptionsOptions): Promise<any>;
540
+ get(exceptionId: string): Promise<any>;
541
+ create(payload: CreateAgentScheduleExceptionRequest): Promise<any>;
542
+ update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<any>;
543
+ delete(exceptionId: string): Promise<void>;
544
+ };
545
+ declare const bindAgentSchedule: (scheduleApi: AgentScheduleApi, exceptionsApi: AgentScheduleExceptionsApi, agentId: string) => {
487
546
  get(): Promise<any>;
547
+ create(payload: UpdateAgentScheduleRequest): Promise<any>;
488
548
  update(payload: UpdateAgentScheduleRequest): Promise<any>;
549
+ exceptions: {
550
+ list(opts?: ListAgentScheduleExceptionsOptions): Promise<any>;
551
+ get(exceptionId: string): Promise<any>;
552
+ create(payload: CreateAgentScheduleExceptionRequest): Promise<any>;
553
+ update(exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<any>;
554
+ delete(exceptionId: string): Promise<void>;
555
+ };
489
556
  };
490
557
  declare const bindAgentVersions: (api: AgentVersionsApi, agentId: string) => {
491
558
  list(opts?: ListAgentVersionsOptions): Promise<any>;
@@ -517,6 +584,7 @@ type AgentEntityDependencies = {
517
584
  tagsApi: ReturnType<typeof createAgentTagsApi>;
518
585
  phonesApi: ReturnType<typeof createAgentPhonesApi>;
519
586
  scheduleApi: ReturnType<typeof createAgentScheduleApi>;
587
+ scheduleExceptionsApi: ReturnType<typeof createAgentScheduleExceptionsApi>;
520
588
  versionsApi: ReturnType<typeof createAgentVersionsApi>;
521
589
  blueprintsApi: ReturnType<typeof createAgentBlueprintsApi>;
522
590
  };
@@ -552,6 +620,16 @@ declare function createApiKeysApi(cfg: ClientConfig & {
552
620
  retry?: RetryPolicy;
553
621
  }): ApiKeysApi;
554
622
 
623
+ type ListCatalogItemsOptions = ListQueryOptions;
624
+ declare function createCatalogsApi(cfg: ClientConfig & {
625
+ retry?: RetryPolicy;
626
+ }): {
627
+ list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
628
+ get(itemId: string): Promise<CatalogItemDetail>;
629
+ create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
630
+ remove(itemId: string): Promise<void>;
631
+ };
632
+
555
633
  type ListToolsOptions = ListQueryOptions & {
556
634
  agentType?: 'chat' | 'voice';
557
635
  };
@@ -650,8 +728,17 @@ declare function createClient(initialCfg: ClientConfig & {
650
728
  } & ((agentId: string) => ReturnType<typeof bindAgentPhones>);
651
729
  schedule: {
652
730
  get(agentId: string): Promise<AgentSchedule>;
731
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
653
732
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
654
- } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>);
733
+ } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>) & {
734
+ exceptions: {
735
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
736
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
737
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
738
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
739
+ delete(agentId: string, exceptionId: string): Promise<void>;
740
+ } & ((agentId: string) => ReturnType<typeof bindAgentScheduleExceptions>);
741
+ };
655
742
  versions: {
656
743
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
657
744
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
@@ -689,6 +776,12 @@ declare function createClient(initialCfg: ClientConfig & {
689
776
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
690
777
  connect(toolId: string, payload: ToolConnectionRequest): Promise<ToolConnectionResponse>;
691
778
  };
779
+ catalogs: {
780
+ list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
781
+ get(itemId: string): Promise<CatalogItemDetail>;
782
+ create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
783
+ remove(itemId: string): Promise<void>;
784
+ };
692
785
  voices: {
693
786
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
694
787
  };
@@ -712,8 +805,17 @@ declare function createClient(initialCfg: ClientConfig & {
712
805
  } & ((agentId: string) => ReturnType<typeof bindAgentPhones>);
713
806
  schedule: {
714
807
  get(agentId: string): Promise<AgentSchedule>;
808
+ create(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
715
809
  update(agentId: string, payload: UpdateAgentScheduleRequest): Promise<AgentSchedule>;
716
- } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>);
810
+ } & ((agentId: string) => ReturnType<typeof bindAgentSchedule>) & {
811
+ exceptions: {
812
+ list(agentId: string, options?: ListAgentScheduleExceptionsOptions): Promise<PaginatedResult<AgentScheduleExceptionListResponse, ListAgentScheduleExceptionsOptions>>;
813
+ get(agentId: string, exceptionId: string): Promise<AgentScheduleException>;
814
+ create(agentId: string, payload: CreateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
815
+ update(agentId: string, exceptionId: string, payload: UpdateAgentScheduleExceptionRequest): Promise<AgentScheduleException>;
816
+ delete(agentId: string, exceptionId: string): Promise<void>;
817
+ } & ((agentId: string) => ReturnType<typeof bindAgentScheduleExceptions>);
818
+ };
717
819
  versions: {
718
820
  list(agentId: string, opts?: ListAgentVersionsOptions): Promise<PaginatedResult<AgentVersionListResponse, ListAgentVersionsOptions>>;
719
821
  get(agentId: string, versionId: string): Promise<AgentVersionDetail>;
@@ -751,6 +853,12 @@ declare function createClient(initialCfg: ClientConfig & {
751
853
  execute(toolId: string, payload: ExecuteToolRequest): Promise<ExecuteToolResponse>;
752
854
  connect(toolId: string, payload: ToolConnectionRequest): Promise<ToolConnectionResponse>;
753
855
  };
856
+ catalogs: {
857
+ list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
858
+ get(itemId: string): Promise<CatalogItemDetail>;
859
+ create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
860
+ remove(itemId: string): Promise<void>;
861
+ };
754
862
  voices: {
755
863
  list(options?: ListVoicesOptions): Promise<PaginatedResult<VoiceListResponse, ListVoicesOptions>>;
756
864
  };
@@ -780,4 +888,4 @@ declare function createHttp(cfg: ClientConfig & {
780
888
  resolveAccessToken: () => string;
781
889
  };
782
890
 
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 };
891
+ export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, 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 ListAgentScheduleExceptionsOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, 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 UpdateAgentScheduleExceptionRequest, type UpdateAgentScheduleRequest, type UpdateAgentVersionNotesRequest, type UpdateInstructionRequest, type VoiceListResponse, type VoiceSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWorkspacesApi };