@getsupervisor/agents-studio-sdk 1.41.1-beta.163 → 1.41.1-beta.165
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 +21 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -886,6 +886,14 @@ type components = {
|
|
|
886
886
|
data: components['schemas']['WorkspaceSummary'][];
|
|
887
887
|
meta: components['schemas']['PaginationMeta'];
|
|
888
888
|
};
|
|
889
|
+
WorkspaceCreateRequest: {
|
|
890
|
+
fullName: string;
|
|
891
|
+
workspaceName: string;
|
|
892
|
+
phone?: string;
|
|
893
|
+
};
|
|
894
|
+
WorkspaceCreateResponse: {
|
|
895
|
+
workspaceId: string;
|
|
896
|
+
};
|
|
889
897
|
ToolConfigSchemaActionPrompts: {
|
|
890
898
|
assistant?: string;
|
|
891
899
|
user?: string;
|
|
@@ -1220,6 +1228,8 @@ type WorkspacePhonesResponse = components['schemas']['WorkspacePhonesResponse'];
|
|
|
1220
1228
|
type WorkspacePhoneChannel = 'voice';
|
|
1221
1229
|
type WorkspaceEnableRequest = components['schemas']['WorkspaceEnableRequest'];
|
|
1222
1230
|
type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
|
|
1231
|
+
type WorkspaceCreateRequest = components['schemas']['WorkspaceCreateRequest'];
|
|
1232
|
+
type WorkspaceCreateResponse = components['schemas']['WorkspaceCreateResponse'];
|
|
1223
1233
|
type WorkspaceSummary = components['schemas']['WorkspaceSummary'];
|
|
1224
1234
|
type WorkspaceListResponse = components['schemas']['WorkspaceListResponse'];
|
|
1225
1235
|
type VoiceSummary = components['schemas']['VoiceSummary'];
|
|
@@ -2170,9 +2180,11 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2170
2180
|
connections: {
|
|
2171
2181
|
readonly connect: (toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2172
2182
|
readonly create: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2183
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2173
2184
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2174
2185
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2175
2186
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2187
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2176
2188
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2177
2189
|
};
|
|
2178
2190
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2185,6 +2197,7 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2185
2197
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2186
2198
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2187
2199
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2200
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2188
2201
|
};
|
|
2189
2202
|
|
|
2190
2203
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2242,6 +2255,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
|
|
|
2242
2255
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2243
2256
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2244
2257
|
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2258
|
+
create(payload: WorkspaceCreateRequest): Promise<WorkspaceCreateResponse>;
|
|
2245
2259
|
};
|
|
2246
2260
|
|
|
2247
2261
|
declare function createClient(initialCfg: ClientConfig & {
|
|
@@ -2339,6 +2353,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2339
2353
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2340
2354
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2341
2355
|
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2356
|
+
create(payload: WorkspaceCreateRequest): Promise<WorkspaceCreateResponse>;
|
|
2342
2357
|
};
|
|
2343
2358
|
tools: {
|
|
2344
2359
|
connections: {
|
|
@@ -2348,6 +2363,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2348
2363
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2349
2364
|
idempotencyKey?: string;
|
|
2350
2365
|
}) => Promise<ToolConnectionResponse>;
|
|
2366
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2351
2367
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2352
2368
|
idempotencyKey?: string;
|
|
2353
2369
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2355,6 +2371,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2355
2371
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2356
2372
|
idempotencyKey?: string;
|
|
2357
2373
|
}) => Promise<ToolConnectionResponse>;
|
|
2374
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2358
2375
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2359
2376
|
idempotencyKey?: string;
|
|
2360
2377
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2386,6 +2403,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2386
2403
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2387
2404
|
idempotencyKey?: string;
|
|
2388
2405
|
}): Promise<ExecuteToolResponse>;
|
|
2406
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2389
2407
|
};
|
|
2390
2408
|
catalogs: {
|
|
2391
2409
|
templates: {
|
|
@@ -2511,6 +2529,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2511
2529
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2512
2530
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2513
2531
|
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2532
|
+
create(payload: WorkspaceCreateRequest): Promise<WorkspaceCreateResponse>;
|
|
2514
2533
|
};
|
|
2515
2534
|
tools: {
|
|
2516
2535
|
connections: {
|
|
@@ -2520,6 +2539,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2520
2539
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2521
2540
|
idempotencyKey?: string;
|
|
2522
2541
|
}) => Promise<ToolConnectionResponse>;
|
|
2542
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2523
2543
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2524
2544
|
idempotencyKey?: string;
|
|
2525
2545
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2527,6 +2547,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2527
2547
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2528
2548
|
idempotencyKey?: string;
|
|
2529
2549
|
}) => Promise<ToolConnectionResponse>;
|
|
2550
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2530
2551
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2531
2552
|
idempotencyKey?: string;
|
|
2532
2553
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2558,6 +2579,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2558
2579
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2559
2580
|
idempotencyKey?: string;
|
|
2560
2581
|
}): Promise<ExecuteToolResponse>;
|
|
2582
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2561
2583
|
};
|
|
2562
2584
|
catalogs: {
|
|
2563
2585
|
templates: {
|
|
@@ -2647,4 +2669,4 @@ declare function createHttp(cfg: ClientConfig & {
|
|
|
2647
2669
|
resolveAccessToken: () => string;
|
|
2648
2670
|
};
|
|
2649
2671
|
|
|
2650
|
-
export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, type Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type DocumentsApi, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, bindAgentBlueprints, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createDocumentsApi, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
|
|
2672
|
+
export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, type Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type DocumentsApi, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceCreateRequest, type WorkspaceCreateResponse, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, bindAgentBlueprints, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createDocumentsApi, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
|
package/dist/index.d.ts
CHANGED
|
@@ -886,6 +886,14 @@ type components = {
|
|
|
886
886
|
data: components['schemas']['WorkspaceSummary'][];
|
|
887
887
|
meta: components['schemas']['PaginationMeta'];
|
|
888
888
|
};
|
|
889
|
+
WorkspaceCreateRequest: {
|
|
890
|
+
fullName: string;
|
|
891
|
+
workspaceName: string;
|
|
892
|
+
phone?: string;
|
|
893
|
+
};
|
|
894
|
+
WorkspaceCreateResponse: {
|
|
895
|
+
workspaceId: string;
|
|
896
|
+
};
|
|
889
897
|
ToolConfigSchemaActionPrompts: {
|
|
890
898
|
assistant?: string;
|
|
891
899
|
user?: string;
|
|
@@ -1220,6 +1228,8 @@ type WorkspacePhonesResponse = components['schemas']['WorkspacePhonesResponse'];
|
|
|
1220
1228
|
type WorkspacePhoneChannel = 'voice';
|
|
1221
1229
|
type WorkspaceEnableRequest = components['schemas']['WorkspaceEnableRequest'];
|
|
1222
1230
|
type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
|
|
1231
|
+
type WorkspaceCreateRequest = components['schemas']['WorkspaceCreateRequest'];
|
|
1232
|
+
type WorkspaceCreateResponse = components['schemas']['WorkspaceCreateResponse'];
|
|
1223
1233
|
type WorkspaceSummary = components['schemas']['WorkspaceSummary'];
|
|
1224
1234
|
type WorkspaceListResponse = components['schemas']['WorkspaceListResponse'];
|
|
1225
1235
|
type VoiceSummary = components['schemas']['VoiceSummary'];
|
|
@@ -2170,9 +2180,11 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2170
2180
|
connections: {
|
|
2171
2181
|
readonly connect: (toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2172
2182
|
readonly create: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2183
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2173
2184
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2174
2185
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2175
2186
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2187
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2176
2188
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2177
2189
|
};
|
|
2178
2190
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2185,6 +2197,7 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2185
2197
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2186
2198
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2187
2199
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2200
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2188
2201
|
};
|
|
2189
2202
|
|
|
2190
2203
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2242,6 +2255,7 @@ declare function createWorkspacesApi(cfg: ClientConfig & {
|
|
|
2242
2255
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2243
2256
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2244
2257
|
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2258
|
+
create(payload: WorkspaceCreateRequest): Promise<WorkspaceCreateResponse>;
|
|
2245
2259
|
};
|
|
2246
2260
|
|
|
2247
2261
|
declare function createClient(initialCfg: ClientConfig & {
|
|
@@ -2339,6 +2353,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2339
2353
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2340
2354
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2341
2355
|
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2356
|
+
create(payload: WorkspaceCreateRequest): Promise<WorkspaceCreateResponse>;
|
|
2342
2357
|
};
|
|
2343
2358
|
tools: {
|
|
2344
2359
|
connections: {
|
|
@@ -2348,6 +2363,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2348
2363
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2349
2364
|
idempotencyKey?: string;
|
|
2350
2365
|
}) => Promise<ToolConnectionResponse>;
|
|
2366
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2351
2367
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2352
2368
|
idempotencyKey?: string;
|
|
2353
2369
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2355,6 +2371,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2355
2371
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2356
2372
|
idempotencyKey?: string;
|
|
2357
2373
|
}) => Promise<ToolConnectionResponse>;
|
|
2374
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2358
2375
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2359
2376
|
idempotencyKey?: string;
|
|
2360
2377
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2386,6 +2403,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2386
2403
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2387
2404
|
idempotencyKey?: string;
|
|
2388
2405
|
}): Promise<ExecuteToolResponse>;
|
|
2406
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2389
2407
|
};
|
|
2390
2408
|
catalogs: {
|
|
2391
2409
|
templates: {
|
|
@@ -2511,6 +2529,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2511
2529
|
list(options?: ListWorkspacesOptions): Promise<PaginatedResult<WorkspaceListResponse, ListWorkspacesOptions>>;
|
|
2512
2530
|
listPhones(workspaceId: string, opts?: ListWorkspacePhonesOptions): Promise<PaginatedResult<WorkspacePhonesResponse, ListWorkspacePhonesOptions>>;
|
|
2513
2531
|
enable(payload: WorkspaceEnableRequest): Promise<WorkspaceEnableResponse>;
|
|
2532
|
+
create(payload: WorkspaceCreateRequest): Promise<WorkspaceCreateResponse>;
|
|
2514
2533
|
};
|
|
2515
2534
|
tools: {
|
|
2516
2535
|
connections: {
|
|
@@ -2520,6 +2539,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2520
2539
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2521
2540
|
idempotencyKey?: string;
|
|
2522
2541
|
}) => Promise<ToolConnectionResponse>;
|
|
2542
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2523
2543
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2524
2544
|
idempotencyKey?: string;
|
|
2525
2545
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2527,6 +2547,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2527
2547
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2528
2548
|
idempotencyKey?: string;
|
|
2529
2549
|
}) => Promise<ToolConnectionResponse>;
|
|
2550
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2530
2551
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2531
2552
|
idempotencyKey?: string;
|
|
2532
2553
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2558,6 +2579,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2558
2579
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2559
2580
|
idempotencyKey?: string;
|
|
2560
2581
|
}): Promise<ExecuteToolResponse>;
|
|
2582
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2561
2583
|
};
|
|
2562
2584
|
catalogs: {
|
|
2563
2585
|
templates: {
|
|
@@ -2647,4 +2669,4 @@ declare function createHttp(cfg: ClientConfig & {
|
|
|
2647
2669
|
resolveAccessToken: () => string;
|
|
2648
2670
|
};
|
|
2649
2671
|
|
|
2650
|
-
export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, type Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type DocumentsApi, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, bindAgentBlueprints, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createDocumentsApi, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
|
|
2672
|
+
export { type AgentBlueprint, type AgentBlueprintListItem, type AgentBlueprintListResponse, type AgentBlueprintsApi$1 as AgentBlueprintsApi, type AgentDetail, type AgentEntity, type AgentEntityFactoryOptions, type AgentListResponse, type AgentSchedule, type AgentScheduleApi, type AgentScheduleException, type AgentScheduleExceptionListResponse, type AgentScheduleListResponse, 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 ApiErrorBody, type ApiHttpError, type ApiKeyListResponse, type ApiKeySummary, type ApiKeysApi, type BillingBalanceResponse, type BlueprintStage, type BlueprintStageListResponse, type BlueprintStageReorderRequest, type BlueprintStageTrigger, type BlueprintStageTriggerListResponse, type Call, type CallsListMeta, type CallsListResponse, type CallsStreamMeta, type CallsStreamResponse, type Campaign, type CampaignExecution, type CampaignExecutionListResponse, type CampaignListResponse, type CampaignStatus, type CatalogItemCreateRequest, type CatalogItemDetail, type CatalogItemLinks, type CatalogItemListResponse, type CatalogItemSummary, type CatalogTemplateDetail, type CatalogTemplateListResponse, type CatalogTemplateSummary, type CatalogTemplateVisibility, type ClientConfig, type CloneAgentComponent, type CloneAgentPayload, type CloneAgentRequest, type CloneAgentSelection, type ConnectPhoneRequest, type CreateAgentBlueprintRequest, type CreateAgentRequest, type CreateAgentScheduleExceptionRequest, type CreateAgentVersionRequest, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBlueprintStageRequest, type CreateBlueprintStageTriggerRequest, type CreateCampaignPayload, type CreateEventSubscriptionRequest, type CreateInstructionRequest, type CreateSipTrunkRequest, type CreateToolConnectionRequest, type CreateWebhookRequest, type DocumentRef, type DocumentsApi, type ErrorResponse, type EventSubscriptionDetail, type EventSubscriptionListResponse, type EventSubscriptionSummary, type ExecuteToolConnectionRequest, type ExecuteToolRequest, type ExecuteToolResponse, type ForkAgentFromTemplateRequest, HttpError, type Instruction, type InstructionCreatedResponse, type InstructionListResponse, type ListAgentBlueprintsOptions, type ListAgentScheduleExceptionsOptions, type ListAgentSchedulesOptions, type ListAgentStageTriggersOptions, type ListAgentStagesOptions, type ListAgentVersionInstructionsOptions, type ListAgentVersionsOptions, type ListAgentsOptions, type ListCallsOptions, type ListCampaignExecutionsOptions, type ListCampaignsOptions, type ListCatalogItemsOptions, type ListCatalogTemplatesOptions, type ListQueryOptions, type ListToolConnectionsOptions, type ListToolResourcesOptions, type ListToolsOptions, type ListUsageAgentsOptions, type ListVoicesOptions, type ListWebhooksOptions, type ListWorkspacePhonesOptions, type ListWorkspacesOptions, NetworkError, type PaginatedResult, type PaginationMeta, type PhoneAssignmentResponse, type PresignDocumentItem, type PresignDocumentsRequest, type PresignDocumentsResponse, type PresignedDocument, type PublishAgentVersionRequest, type QueryBuilderInput, type QueryBuilderSerializable, type QueryFilterOperators, type QueryFilters, type QueryOrGroups, type QueryValue, type ResourceBalance, type ResourceProjection, type RetryPolicy, type RuntimeCompleteEvent, type RuntimeErrorEvent, type RuntimeProgressEvent, type RuntimeSseEvent, type RuntimeUsage, type SipTrunk, type SipTrunkWithPassword, type SseCallbacks, type StreamCallsOptions, type SubscriptionInfo, TimeoutError, type ToolConnectionAuth, type ToolConnectionListItem, type ToolConnectionListResponse, 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 UpdateSipTrunkRequest, type UpdateWebhookRequest, type UsageAgentRow, type UsageAgentsAggregations, type UsageAgentsMeta, type UsageAgentsResponse, type VoiceListResponse, type VoiceSummary, type WebhookDeliveryDetail, type WebhookDeliveryListResponse, type WebhookDeliverySummary, type WebhookDetail, type WebhookListResponse, type WebhookSummary, type WorkspaceCreateRequest, type WorkspaceCreateResponse, type WorkspaceEnableRequest, type WorkspaceEnableResponse, type WorkspaceListResponse, WorkspaceNotSelectedError, type WorkspacePhone, type WorkspacePhoneChannel, type WorkspacePhonesResponse, type WorkspaceSummary, bindAgentBlueprints, bindAgentPhones, bindAgentSchedule, bindAgentScheduleExceptions, bindAgentSchedules, bindAgentStageTriggers, bindAgentStages, bindAgentTags, bindAgentVersions, createAgentBlueprintsApi, createAgentEntity, createAgentPhonesApi, createAgentScheduleApi, createAgentScheduleExceptionsApi, createAgentStageTriggersApi, createAgentStagesApi, createAgentTagsApi, createAgentVersionsApi, createAgentsApi, createApiKeysApi, createBillingApi, createCallsApi, createCampaignsApi, createCatalogTemplatesApi, createCatalogsApi, createClient, createDocumentsApi, createHttp, createSipTrunksApi, createToolsApi, createUsageApi, createVoicesApi, createWebhooksApi, createWorkspacesApi, isApiErrorBody, isApiHttpError };
|
package/dist/index.js
CHANGED
|
@@ -1987,14 +1987,21 @@ function createToolsApi(cfg) {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
);
|
|
1989
1989
|
return res.json();
|
|
1990
|
+
},
|
|
1991
|
+
async deleteConnection(toolAgentConnectionId) {
|
|
1992
|
+
await doFetch(`${base}/tools/connections/${toolAgentConnectionId}`, {
|
|
1993
|
+
method: "DELETE"
|
|
1994
|
+
});
|
|
1990
1995
|
}
|
|
1991
1996
|
};
|
|
1992
1997
|
const connections = {
|
|
1993
1998
|
connect: api.connect,
|
|
1994
1999
|
create: api.createConnection,
|
|
2000
|
+
delete: api.deleteConnection,
|
|
1995
2001
|
execute: api.executeConnection,
|
|
1996
2002
|
list: api.listConnections,
|
|
1997
2003
|
createConnection: api.createConnection,
|
|
2004
|
+
deleteConnection: api.deleteConnection,
|
|
1998
2005
|
executeConnection: api.executeConnection
|
|
1999
2006
|
};
|
|
2000
2007
|
return {
|
|
@@ -2466,6 +2473,20 @@ function createWorkspacesApi(cfg) {
|
|
|
2466
2473
|
body: JSON.stringify(payload)
|
|
2467
2474
|
});
|
|
2468
2475
|
return res.json();
|
|
2476
|
+
},
|
|
2477
|
+
/**
|
|
2478
|
+
* Crea un workspace para el usuario autenticado. Como efecto colateral
|
|
2479
|
+
* aprovisiona la cuenta en el sistema propietario vía M2M y habilita el
|
|
2480
|
+
* workspace de forma desacoplada. Pensado para el alta directa desde Agents
|
|
2481
|
+
* Studio.
|
|
2482
|
+
*/
|
|
2483
|
+
async create(payload) {
|
|
2484
|
+
const res = await doFetch(`${base}/workspaces`, {
|
|
2485
|
+
method: "POST",
|
|
2486
|
+
headers: jsonHeaders,
|
|
2487
|
+
body: JSON.stringify(payload)
|
|
2488
|
+
});
|
|
2489
|
+
return res.json();
|
|
2469
2490
|
}
|
|
2470
2491
|
};
|
|
2471
2492
|
}
|