@getsupervisor/agents-studio-sdk 1.29.0 → 1.31.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.cjs +38 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +37 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -805,6 +805,24 @@ type CatalogItemCreateRequestSchema = components['schemas']['CatalogItemCreateRe
|
|
|
805
805
|
type CatalogItemCreateRequest = Omit<CatalogItemCreateRequestSchema, 'metadata'> & {
|
|
806
806
|
metadata: Record<string, unknown>;
|
|
807
807
|
};
|
|
808
|
+
type CatalogTemplateVisibility = 'system' | 'community' | 'private';
|
|
809
|
+
type CatalogTemplateSummary = {
|
|
810
|
+
id: string;
|
|
811
|
+
slug: string;
|
|
812
|
+
name: string;
|
|
813
|
+
description: string;
|
|
814
|
+
tags: string[];
|
|
815
|
+
agentVersionId: string;
|
|
816
|
+
visibility: CatalogTemplateVisibility;
|
|
817
|
+
isActive: boolean;
|
|
818
|
+
usageCount: number;
|
|
819
|
+
createdAt: string;
|
|
820
|
+
updatedAt: string;
|
|
821
|
+
};
|
|
822
|
+
type CatalogTemplateDetail = CatalogTemplateSummary & {
|
|
823
|
+
createdBy: string | null;
|
|
824
|
+
};
|
|
825
|
+
type CatalogTemplateListResponse = CatalogTemplateSummary[];
|
|
808
826
|
type ApiKeySummary = {
|
|
809
827
|
id: string;
|
|
810
828
|
name: string;
|
|
@@ -1507,6 +1525,17 @@ declare function createApiKeysApi(cfg: ClientConfig & {
|
|
|
1507
1525
|
retry?: RetryPolicy;
|
|
1508
1526
|
}): ApiKeysApi;
|
|
1509
1527
|
|
|
1528
|
+
type ListCatalogTemplatesOptions = {
|
|
1529
|
+
visibility?: CatalogTemplateVisibility;
|
|
1530
|
+
tags?: string[];
|
|
1531
|
+
};
|
|
1532
|
+
declare function createCatalogTemplatesApi(cfg: ClientConfig & {
|
|
1533
|
+
retry?: RetryPolicy;
|
|
1534
|
+
}): {
|
|
1535
|
+
list(options?: ListCatalogTemplatesOptions): Promise<CatalogTemplateSummary[]>;
|
|
1536
|
+
get(templateId: string): Promise<CatalogTemplateDetail>;
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1510
1539
|
type ListCatalogItemsOptions = ListQueryOptions;
|
|
1511
1540
|
declare function createCatalogsApi(cfg: ClientConfig & {
|
|
1512
1541
|
retry?: RetryPolicy;
|
|
@@ -1698,6 +1727,10 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1698
1727
|
}): Promise<ToolConnectionResponse>;
|
|
1699
1728
|
};
|
|
1700
1729
|
catalogs: {
|
|
1730
|
+
templates: {
|
|
1731
|
+
list(options?: ListCatalogTemplatesOptions): Promise<CatalogTemplateSummary[]>;
|
|
1732
|
+
get(templateId: string): Promise<CatalogTemplateDetail>;
|
|
1733
|
+
};
|
|
1701
1734
|
list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
|
|
1702
1735
|
get(itemId: string): Promise<CatalogItemDetail>;
|
|
1703
1736
|
create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
|
|
@@ -1802,6 +1835,10 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1802
1835
|
}): Promise<ToolConnectionResponse>;
|
|
1803
1836
|
};
|
|
1804
1837
|
catalogs: {
|
|
1838
|
+
templates: {
|
|
1839
|
+
list(options?: ListCatalogTemplatesOptions): Promise<CatalogTemplateSummary[]>;
|
|
1840
|
+
get(templateId: string): Promise<CatalogTemplateDetail>;
|
|
1841
|
+
};
|
|
1805
1842
|
list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
|
|
1806
1843
|
get(itemId: string): Promise<CatalogItemDetail>;
|
|
1807
1844
|
create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
|
|
@@ -1848,4 +1885,4 @@ declare function createHttp(cfg: ClientConfig & {
|
|
|
1848
1885
|
resolveAccessToken: () => string;
|
|
1849
1886
|
};
|
|
1850
1887
|
|
|
1851
|
-
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 AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, 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 CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, 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 ToolConnectionAuth, 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 UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
|
|
1888
|
+
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 AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, 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 ToolConnectionAuth, 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 UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
|
package/dist/index.d.ts
CHANGED
|
@@ -805,6 +805,24 @@ type CatalogItemCreateRequestSchema = components['schemas']['CatalogItemCreateRe
|
|
|
805
805
|
type CatalogItemCreateRequest = Omit<CatalogItemCreateRequestSchema, 'metadata'> & {
|
|
806
806
|
metadata: Record<string, unknown>;
|
|
807
807
|
};
|
|
808
|
+
type CatalogTemplateVisibility = 'system' | 'community' | 'private';
|
|
809
|
+
type CatalogTemplateSummary = {
|
|
810
|
+
id: string;
|
|
811
|
+
slug: string;
|
|
812
|
+
name: string;
|
|
813
|
+
description: string;
|
|
814
|
+
tags: string[];
|
|
815
|
+
agentVersionId: string;
|
|
816
|
+
visibility: CatalogTemplateVisibility;
|
|
817
|
+
isActive: boolean;
|
|
818
|
+
usageCount: number;
|
|
819
|
+
createdAt: string;
|
|
820
|
+
updatedAt: string;
|
|
821
|
+
};
|
|
822
|
+
type CatalogTemplateDetail = CatalogTemplateSummary & {
|
|
823
|
+
createdBy: string | null;
|
|
824
|
+
};
|
|
825
|
+
type CatalogTemplateListResponse = CatalogTemplateSummary[];
|
|
808
826
|
type ApiKeySummary = {
|
|
809
827
|
id: string;
|
|
810
828
|
name: string;
|
|
@@ -1507,6 +1525,17 @@ declare function createApiKeysApi(cfg: ClientConfig & {
|
|
|
1507
1525
|
retry?: RetryPolicy;
|
|
1508
1526
|
}): ApiKeysApi;
|
|
1509
1527
|
|
|
1528
|
+
type ListCatalogTemplatesOptions = {
|
|
1529
|
+
visibility?: CatalogTemplateVisibility;
|
|
1530
|
+
tags?: string[];
|
|
1531
|
+
};
|
|
1532
|
+
declare function createCatalogTemplatesApi(cfg: ClientConfig & {
|
|
1533
|
+
retry?: RetryPolicy;
|
|
1534
|
+
}): {
|
|
1535
|
+
list(options?: ListCatalogTemplatesOptions): Promise<CatalogTemplateSummary[]>;
|
|
1536
|
+
get(templateId: string): Promise<CatalogTemplateDetail>;
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1510
1539
|
type ListCatalogItemsOptions = ListQueryOptions;
|
|
1511
1540
|
declare function createCatalogsApi(cfg: ClientConfig & {
|
|
1512
1541
|
retry?: RetryPolicy;
|
|
@@ -1698,6 +1727,10 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1698
1727
|
}): Promise<ToolConnectionResponse>;
|
|
1699
1728
|
};
|
|
1700
1729
|
catalogs: {
|
|
1730
|
+
templates: {
|
|
1731
|
+
list(options?: ListCatalogTemplatesOptions): Promise<CatalogTemplateSummary[]>;
|
|
1732
|
+
get(templateId: string): Promise<CatalogTemplateDetail>;
|
|
1733
|
+
};
|
|
1701
1734
|
list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
|
|
1702
1735
|
get(itemId: string): Promise<CatalogItemDetail>;
|
|
1703
1736
|
create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
|
|
@@ -1802,6 +1835,10 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
1802
1835
|
}): Promise<ToolConnectionResponse>;
|
|
1803
1836
|
};
|
|
1804
1837
|
catalogs: {
|
|
1838
|
+
templates: {
|
|
1839
|
+
list(options?: ListCatalogTemplatesOptions): Promise<CatalogTemplateSummary[]>;
|
|
1840
|
+
get(templateId: string): Promise<CatalogTemplateDetail>;
|
|
1841
|
+
};
|
|
1805
1842
|
list(options?: ListCatalogItemsOptions): Promise<PaginatedResult<CatalogItemListResponse, ListCatalogItemsOptions>>;
|
|
1806
1843
|
get(itemId: string): Promise<CatalogItemDetail>;
|
|
1807
1844
|
create(payload: CatalogItemCreateRequest): Promise<CatalogItemDetail>;
|
|
@@ -1848,4 +1885,4 @@ declare function createHttp(cfg: ClientConfig & {
|
|
|
1848
1885
|
resolveAccessToken: () => string;
|
|
1849
1886
|
};
|
|
1850
1887
|
|
|
1851
|
-
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 AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, 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 CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, 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 ToolConnectionAuth, 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 UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
|
|
1888
|
+
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 AgentStageTriggersApi$1 as AgentStageTriggersApi, type AgentStagesApi$1 as AgentStagesApi, type AgentSummary, type AgentTagRequest, type AgentTagsResponse, type AgentVersionDetail, type AgentVersionListResponse, type AgentVersionSummary, type AgentsApi, type AgentsApiWithEntities, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateWebhookRequest, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentInstructionsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListVoicesOptions, type ListWebhooksOptions, 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 ToolConnectionAuth, 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 UpdateBlueprintStageRequest, type UpdateBlueprintStageTriggerRequest, type UpdateEventSubscriptionRequest, type UpdateInstructionRequest, type UpdateWebhookRequest, type VoiceListResponse, type VoiceSummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, bindAgentBlueprints, bindAgentInstructions, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentInstructionsApi, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createHttp, createToolsApi, createVoicesApi, createWebhooksApi, createWorkspacesApi };
|
package/dist/index.js
CHANGED
|
@@ -1159,7 +1159,7 @@ function createAgentsApi(cfg, relatedApis) {
|
|
|
1159
1159
|
return res.json();
|
|
1160
1160
|
};
|
|
1161
1161
|
const forkAgentFromTemplate = async (payload) => {
|
|
1162
|
-
const res = await doFetch(`${base}/agents
|
|
1162
|
+
const res = await doFetch(`${base}/agents/from-template`, {
|
|
1163
1163
|
method: "POST",
|
|
1164
1164
|
body: JSON.stringify(payload),
|
|
1165
1165
|
headers: jsonHeaders
|
|
@@ -1281,6 +1281,36 @@ function createApiKeysApi(cfg) {
|
|
|
1281
1281
|
};
|
|
1282
1282
|
}
|
|
1283
1283
|
|
|
1284
|
+
// src/api/catalog-templates.ts
|
|
1285
|
+
function createCatalogTemplatesApi(cfg) {
|
|
1286
|
+
const { base, doFetch } = createHttp(cfg);
|
|
1287
|
+
const buildListQuery = (options) => {
|
|
1288
|
+
const query = {};
|
|
1289
|
+
if (options.visibility) {
|
|
1290
|
+
query.visibility = options.visibility;
|
|
1291
|
+
}
|
|
1292
|
+
if (options.tags && options.tags.length > 0) {
|
|
1293
|
+
query.tags = options.tags;
|
|
1294
|
+
}
|
|
1295
|
+
return query;
|
|
1296
|
+
};
|
|
1297
|
+
return {
|
|
1298
|
+
async list(options = {}) {
|
|
1299
|
+
const res = await doFetch(`${base}/catalogs/templates`, {
|
|
1300
|
+
method: "GET",
|
|
1301
|
+
query: buildListQuery(options)
|
|
1302
|
+
});
|
|
1303
|
+
return res.json();
|
|
1304
|
+
},
|
|
1305
|
+
async get(templateId) {
|
|
1306
|
+
const res = await doFetch(`${base}/catalogs/templates/${templateId}`, {
|
|
1307
|
+
method: "GET"
|
|
1308
|
+
});
|
|
1309
|
+
return res.json();
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1284
1314
|
// src/api/catalogs.ts
|
|
1285
1315
|
function createCatalogsApi(cfg) {
|
|
1286
1316
|
const { base, doFetch } = createHttp(cfg);
|
|
@@ -1841,6 +1871,7 @@ function createClient(initialCfg) {
|
|
|
1841
1871
|
const voicesApi = createVoicesApi(runtimeCfg);
|
|
1842
1872
|
const apiKeysApi = createApiKeysApi(runtimeCfg);
|
|
1843
1873
|
const catalogsApi = createCatalogsApi(runtimeCfg);
|
|
1874
|
+
const catalogTemplatesApi = createCatalogTemplatesApi(runtimeCfg);
|
|
1844
1875
|
const webhooksApi = createWebhooksApi(runtimeCfg);
|
|
1845
1876
|
const agentsApi = createAgentsApi(runtimeCfg, {
|
|
1846
1877
|
instructionsApi,
|
|
@@ -1908,7 +1939,10 @@ function createClient(initialCfg) {
|
|
|
1908
1939
|
},
|
|
1909
1940
|
workspaces: createWorkspacesApi(runtimeCfg),
|
|
1910
1941
|
tools: createToolsApi(runtimeCfg),
|
|
1911
|
-
catalogs:
|
|
1942
|
+
catalogs: {
|
|
1943
|
+
...catalogsApi,
|
|
1944
|
+
templates: catalogTemplatesApi
|
|
1945
|
+
},
|
|
1912
1946
|
voices: voicesApi,
|
|
1913
1947
|
apiKeys: apiKeysApi,
|
|
1914
1948
|
webhooks: webhooksApi
|
|
@@ -1993,6 +2027,7 @@ export {
|
|
|
1993
2027
|
createAgentVersionsApi,
|
|
1994
2028
|
createAgentsApi,
|
|
1995
2029
|
createApiKeysApi,
|
|
2030
|
+
createCatalogTemplatesApi,
|
|
1996
2031
|
createCatalogsApi,
|
|
1997
2032
|
createClient,
|
|
1998
2033
|
createHttp,
|