@getsupervisor/agents-studio-sdk 1.41.1-beta.166 → 1.41.1-beta.168
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 +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2248,9 +2248,11 @@ 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>;
|
|
2251
2252
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2252
2253
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2253
2254
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2255
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2254
2256
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2255
2257
|
};
|
|
2256
2258
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2263,6 +2265,7 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2263
2265
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2264
2266
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2265
2267
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2268
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2266
2269
|
};
|
|
2267
2270
|
|
|
2268
2271
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2428,6 +2431,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2428
2431
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2429
2432
|
idempotencyKey?: string;
|
|
2430
2433
|
}) => Promise<ToolConnectionResponse>;
|
|
2434
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2431
2435
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2432
2436
|
idempotencyKey?: string;
|
|
2433
2437
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2435,6 +2439,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2435
2439
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2436
2440
|
idempotencyKey?: string;
|
|
2437
2441
|
}) => Promise<ToolConnectionResponse>;
|
|
2442
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2438
2443
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2439
2444
|
idempotencyKey?: string;
|
|
2440
2445
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2466,6 +2471,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2466
2471
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2467
2472
|
idempotencyKey?: string;
|
|
2468
2473
|
}): Promise<ExecuteToolResponse>;
|
|
2474
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2469
2475
|
};
|
|
2470
2476
|
catalogs: {
|
|
2471
2477
|
templates: {
|
|
@@ -2602,6 +2608,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2602
2608
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2603
2609
|
idempotencyKey?: string;
|
|
2604
2610
|
}) => Promise<ToolConnectionResponse>;
|
|
2611
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2605
2612
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2606
2613
|
idempotencyKey?: string;
|
|
2607
2614
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2609,6 +2616,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2609
2616
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2610
2617
|
idempotencyKey?: string;
|
|
2611
2618
|
}) => Promise<ToolConnectionResponse>;
|
|
2619
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2612
2620
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2613
2621
|
idempotencyKey?: string;
|
|
2614
2622
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2640,6 +2648,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2640
2648
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2641
2649
|
idempotencyKey?: string;
|
|
2642
2650
|
}): Promise<ExecuteToolResponse>;
|
|
2651
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2643
2652
|
};
|
|
2644
2653
|
catalogs: {
|
|
2645
2654
|
templates: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2248,9 +2248,11 @@ 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>;
|
|
2251
2252
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2252
2253
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2253
2254
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2255
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2254
2256
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2255
2257
|
};
|
|
2256
2258
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2263,6 +2265,7 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2263
2265
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2264
2266
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2265
2267
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2268
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2266
2269
|
};
|
|
2267
2270
|
|
|
2268
2271
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2428,6 +2431,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2428
2431
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2429
2432
|
idempotencyKey?: string;
|
|
2430
2433
|
}) => Promise<ToolConnectionResponse>;
|
|
2434
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2431
2435
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2432
2436
|
idempotencyKey?: string;
|
|
2433
2437
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2435,6 +2439,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2435
2439
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2436
2440
|
idempotencyKey?: string;
|
|
2437
2441
|
}) => Promise<ToolConnectionResponse>;
|
|
2442
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2438
2443
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2439
2444
|
idempotencyKey?: string;
|
|
2440
2445
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2466,6 +2471,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2466
2471
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2467
2472
|
idempotencyKey?: string;
|
|
2468
2473
|
}): Promise<ExecuteToolResponse>;
|
|
2474
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2469
2475
|
};
|
|
2470
2476
|
catalogs: {
|
|
2471
2477
|
templates: {
|
|
@@ -2602,6 +2608,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2602
2608
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2603
2609
|
idempotencyKey?: string;
|
|
2604
2610
|
}) => Promise<ToolConnectionResponse>;
|
|
2611
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2605
2612
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2606
2613
|
idempotencyKey?: string;
|
|
2607
2614
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2609,6 +2616,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2609
2616
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2610
2617
|
idempotencyKey?: string;
|
|
2611
2618
|
}) => Promise<ToolConnectionResponse>;
|
|
2619
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2612
2620
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2613
2621
|
idempotencyKey?: string;
|
|
2614
2622
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2640,6 +2648,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2640
2648
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2641
2649
|
idempotencyKey?: string;
|
|
2642
2650
|
}): Promise<ExecuteToolResponse>;
|
|
2651
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2643
2652
|
};
|
|
2644
2653
|
catalogs: {
|
|
2645
2654
|
templates: {
|
package/dist/index.js
CHANGED
|
@@ -2020,14 +2020,21 @@ 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
|
+
});
|
|
2023
2028
|
}
|
|
2024
2029
|
};
|
|
2025
2030
|
const connections = {
|
|
2026
2031
|
connect: api.connect,
|
|
2027
2032
|
create: api.createConnection,
|
|
2033
|
+
delete: api.deleteConnection,
|
|
2028
2034
|
execute: api.executeConnection,
|
|
2029
2035
|
list: api.listConnections,
|
|
2030
2036
|
createConnection: api.createConnection,
|
|
2037
|
+
deleteConnection: api.deleteConnection,
|
|
2031
2038
|
executeConnection: api.executeConnection
|
|
2032
2039
|
};
|
|
2033
2040
|
return {
|