@getsupervisor/agents-studio-sdk 1.41.1-beta.168 → 1.41.1-beta.169
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 +0 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -12
- package/dist/index.d.ts +3 -12
- package/dist/index.js +0 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -833,7 +833,7 @@ type components = {
|
|
|
833
833
|
body: string;
|
|
834
834
|
};
|
|
835
835
|
WhatsAppButtonRequest: {
|
|
836
|
-
type: 'quick_reply' | 'url' | 'phone'
|
|
836
|
+
type: 'quick_reply' | 'url' | 'phone';
|
|
837
837
|
text: string;
|
|
838
838
|
value?: string;
|
|
839
839
|
};
|
|
@@ -851,7 +851,7 @@ type components = {
|
|
|
851
851
|
metadata?: components['schemas']['WhatsAppMetadataRequest'];
|
|
852
852
|
};
|
|
853
853
|
MessageTemplateConnectionResponse: {
|
|
854
|
-
phoneNumber: string
|
|
854
|
+
phoneNumber: string;
|
|
855
855
|
} | null;
|
|
856
856
|
ForkAgentFromTemplateRequest: {
|
|
857
857
|
templateId: string;
|
|
@@ -1512,7 +1512,7 @@ type EventSubscriptionListResponse = components['schemas']['EventSubscriptionLis
|
|
|
1512
1512
|
type CreateEventSubscriptionRequest = components['schemas']['CreateEventSubscriptionRequest'];
|
|
1513
1513
|
type UpdateEventSubscriptionRequest = components['schemas']['UpdateEventSubscriptionRequest'];
|
|
1514
1514
|
type WhatsAppConnectionResponse = {
|
|
1515
|
-
phoneNumber: string
|
|
1515
|
+
phoneNumber: string;
|
|
1516
1516
|
} | null;
|
|
1517
1517
|
type MessageTemplateResponse = {
|
|
1518
1518
|
id: string;
|
|
@@ -2248,11 +2248,9 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2248
2248
|
connections: {
|
|
2249
2249
|
readonly connect: (toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2250
2250
|
readonly create: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2251
|
-
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2252
2251
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2253
2252
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2254
2253
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2255
|
-
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2256
2254
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2257
2255
|
};
|
|
2258
2256
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2265,7 +2263,6 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2265
2263
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2266
2264
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2267
2265
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2268
|
-
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2269
2266
|
};
|
|
2270
2267
|
|
|
2271
2268
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2431,7 +2428,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2431
2428
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2432
2429
|
idempotencyKey?: string;
|
|
2433
2430
|
}) => Promise<ToolConnectionResponse>;
|
|
2434
|
-
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2435
2431
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2436
2432
|
idempotencyKey?: string;
|
|
2437
2433
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2439,7 +2435,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2439
2435
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2440
2436
|
idempotencyKey?: string;
|
|
2441
2437
|
}) => Promise<ToolConnectionResponse>;
|
|
2442
|
-
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2443
2438
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2444
2439
|
idempotencyKey?: string;
|
|
2445
2440
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2471,7 +2466,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2471
2466
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2472
2467
|
idempotencyKey?: string;
|
|
2473
2468
|
}): Promise<ExecuteToolResponse>;
|
|
2474
|
-
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2475
2469
|
};
|
|
2476
2470
|
catalogs: {
|
|
2477
2471
|
templates: {
|
|
@@ -2608,7 +2602,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2608
2602
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2609
2603
|
idempotencyKey?: string;
|
|
2610
2604
|
}) => Promise<ToolConnectionResponse>;
|
|
2611
|
-
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2612
2605
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2613
2606
|
idempotencyKey?: string;
|
|
2614
2607
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2616,7 +2609,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2616
2609
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2617
2610
|
idempotencyKey?: string;
|
|
2618
2611
|
}) => Promise<ToolConnectionResponse>;
|
|
2619
|
-
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2620
2612
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2621
2613
|
idempotencyKey?: string;
|
|
2622
2614
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2648,7 +2640,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2648
2640
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2649
2641
|
idempotencyKey?: string;
|
|
2650
2642
|
}): Promise<ExecuteToolResponse>;
|
|
2651
|
-
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2652
2643
|
};
|
|
2653
2644
|
catalogs: {
|
|
2654
2645
|
templates: {
|
package/dist/index.d.ts
CHANGED
|
@@ -833,7 +833,7 @@ type components = {
|
|
|
833
833
|
body: string;
|
|
834
834
|
};
|
|
835
835
|
WhatsAppButtonRequest: {
|
|
836
|
-
type: 'quick_reply' | 'url' | 'phone'
|
|
836
|
+
type: 'quick_reply' | 'url' | 'phone';
|
|
837
837
|
text: string;
|
|
838
838
|
value?: string;
|
|
839
839
|
};
|
|
@@ -851,7 +851,7 @@ type components = {
|
|
|
851
851
|
metadata?: components['schemas']['WhatsAppMetadataRequest'];
|
|
852
852
|
};
|
|
853
853
|
MessageTemplateConnectionResponse: {
|
|
854
|
-
phoneNumber: string
|
|
854
|
+
phoneNumber: string;
|
|
855
855
|
} | null;
|
|
856
856
|
ForkAgentFromTemplateRequest: {
|
|
857
857
|
templateId: string;
|
|
@@ -1512,7 +1512,7 @@ type EventSubscriptionListResponse = components['schemas']['EventSubscriptionLis
|
|
|
1512
1512
|
type CreateEventSubscriptionRequest = components['schemas']['CreateEventSubscriptionRequest'];
|
|
1513
1513
|
type UpdateEventSubscriptionRequest = components['schemas']['UpdateEventSubscriptionRequest'];
|
|
1514
1514
|
type WhatsAppConnectionResponse = {
|
|
1515
|
-
phoneNumber: string
|
|
1515
|
+
phoneNumber: string;
|
|
1516
1516
|
} | null;
|
|
1517
1517
|
type MessageTemplateResponse = {
|
|
1518
1518
|
id: string;
|
|
@@ -2248,11 +2248,9 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2248
2248
|
connections: {
|
|
2249
2249
|
readonly connect: (toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2250
2250
|
readonly create: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2251
|
-
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2252
2251
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2253
2252
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2254
2253
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2255
|
-
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2256
2254
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2257
2255
|
};
|
|
2258
2256
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2265,7 +2263,6 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2265
2263
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2266
2264
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2267
2265
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2268
|
-
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2269
2266
|
};
|
|
2270
2267
|
|
|
2271
2268
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2431,7 +2428,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2431
2428
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2432
2429
|
idempotencyKey?: string;
|
|
2433
2430
|
}) => Promise<ToolConnectionResponse>;
|
|
2434
|
-
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2435
2431
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2436
2432
|
idempotencyKey?: string;
|
|
2437
2433
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2439,7 +2435,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2439
2435
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2440
2436
|
idempotencyKey?: string;
|
|
2441
2437
|
}) => Promise<ToolConnectionResponse>;
|
|
2442
|
-
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2443
2438
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2444
2439
|
idempotencyKey?: string;
|
|
2445
2440
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2471,7 +2466,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2471
2466
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2472
2467
|
idempotencyKey?: string;
|
|
2473
2468
|
}): Promise<ExecuteToolResponse>;
|
|
2474
|
-
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2475
2469
|
};
|
|
2476
2470
|
catalogs: {
|
|
2477
2471
|
templates: {
|
|
@@ -2608,7 +2602,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2608
2602
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2609
2603
|
idempotencyKey?: string;
|
|
2610
2604
|
}) => Promise<ToolConnectionResponse>;
|
|
2611
|
-
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2612
2605
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2613
2606
|
idempotencyKey?: string;
|
|
2614
2607
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2616,7 +2609,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2616
2609
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2617
2610
|
idempotencyKey?: string;
|
|
2618
2611
|
}) => Promise<ToolConnectionResponse>;
|
|
2619
|
-
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2620
2612
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2621
2613
|
idempotencyKey?: string;
|
|
2622
2614
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2648,7 +2640,6 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2648
2640
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2649
2641
|
idempotencyKey?: string;
|
|
2650
2642
|
}): Promise<ExecuteToolResponse>;
|
|
2651
|
-
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2652
2643
|
};
|
|
2653
2644
|
catalogs: {
|
|
2654
2645
|
templates: {
|
package/dist/index.js
CHANGED
|
@@ -2020,21 +2020,14 @@ function createToolsApi(cfg) {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
);
|
|
2022
2022
|
return res.json();
|
|
2023
|
-
},
|
|
2024
|
-
async deleteConnection(toolAgentConnectionId) {
|
|
2025
|
-
await doFetch(`${base}/tools/connections/${toolAgentConnectionId}`, {
|
|
2026
|
-
method: "DELETE"
|
|
2027
|
-
});
|
|
2028
2023
|
}
|
|
2029
2024
|
};
|
|
2030
2025
|
const connections = {
|
|
2031
2026
|
connect: api.connect,
|
|
2032
2027
|
create: api.createConnection,
|
|
2033
|
-
delete: api.deleteConnection,
|
|
2034
2028
|
execute: api.executeConnection,
|
|
2035
2029
|
list: api.listConnections,
|
|
2036
2030
|
createConnection: api.createConnection,
|
|
2037
|
-
deleteConnection: api.deleteConnection,
|
|
2038
2031
|
executeConnection: api.executeConnection
|
|
2039
2032
|
};
|
|
2040
2033
|
return {
|