@getsupervisor/agents-studio-sdk 1.41.1-beta.164 → 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 +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
|
@@ -2180,9 +2180,11 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2180
2180
|
connections: {
|
|
2181
2181
|
readonly connect: (toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2182
2182
|
readonly create: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2183
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2183
2184
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2184
2185
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2185
2186
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2187
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2186
2188
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2187
2189
|
};
|
|
2188
2190
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2195,6 +2197,7 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2195
2197
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2196
2198
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2197
2199
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2200
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2198
2201
|
};
|
|
2199
2202
|
|
|
2200
2203
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2360,6 +2363,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2360
2363
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2361
2364
|
idempotencyKey?: string;
|
|
2362
2365
|
}) => Promise<ToolConnectionResponse>;
|
|
2366
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2363
2367
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2364
2368
|
idempotencyKey?: string;
|
|
2365
2369
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2367,6 +2371,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2367
2371
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2368
2372
|
idempotencyKey?: string;
|
|
2369
2373
|
}) => Promise<ToolConnectionResponse>;
|
|
2374
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2370
2375
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2371
2376
|
idempotencyKey?: string;
|
|
2372
2377
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2398,6 +2403,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2398
2403
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2399
2404
|
idempotencyKey?: string;
|
|
2400
2405
|
}): Promise<ExecuteToolResponse>;
|
|
2406
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2401
2407
|
};
|
|
2402
2408
|
catalogs: {
|
|
2403
2409
|
templates: {
|
|
@@ -2533,6 +2539,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2533
2539
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2534
2540
|
idempotencyKey?: string;
|
|
2535
2541
|
}) => Promise<ToolConnectionResponse>;
|
|
2542
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2536
2543
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2537
2544
|
idempotencyKey?: string;
|
|
2538
2545
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2540,6 +2547,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2540
2547
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2541
2548
|
idempotencyKey?: string;
|
|
2542
2549
|
}) => Promise<ToolConnectionResponse>;
|
|
2550
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2543
2551
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2544
2552
|
idempotencyKey?: string;
|
|
2545
2553
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2571,6 +2579,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2571
2579
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2572
2580
|
idempotencyKey?: string;
|
|
2573
2581
|
}): Promise<ExecuteToolResponse>;
|
|
2582
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2574
2583
|
};
|
|
2575
2584
|
catalogs: {
|
|
2576
2585
|
templates: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2180,9 +2180,11 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2180
2180
|
connections: {
|
|
2181
2181
|
readonly connect: (toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2182
2182
|
readonly create: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2183
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2183
2184
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2184
2185
|
readonly list: (options?: ListToolConnectionsOptions) => Promise<PaginatedResult<ToolConnectionListResponse, ListToolConnectionsOptions>>;
|
|
2185
2186
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ToolConnectionResponse>;
|
|
2187
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2186
2188
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions) => Promise<ExecuteToolResponse>;
|
|
2187
2189
|
};
|
|
2188
2190
|
list(options?: ListToolsOptions): Promise<PaginatedResult<ToolListResponse, ListToolsOptions>>;
|
|
@@ -2195,6 +2197,7 @@ declare function createToolsApi(cfg: ClientConfig & {
|
|
|
2195
2197
|
connect(toolId: string, payload: ToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2196
2198
|
createConnection(payload: CreateToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ToolConnectionResponse>;
|
|
2197
2199
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: IdempotentRequestOptions): Promise<ExecuteToolResponse>;
|
|
2200
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2198
2201
|
};
|
|
2199
2202
|
|
|
2200
2203
|
type ListUsageAgentsOptions = ListQueryOptions & Partial<{
|
|
@@ -2360,6 +2363,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2360
2363
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2361
2364
|
idempotencyKey?: string;
|
|
2362
2365
|
}) => Promise<ToolConnectionResponse>;
|
|
2366
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2363
2367
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2364
2368
|
idempotencyKey?: string;
|
|
2365
2369
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2367,6 +2371,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2367
2371
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2368
2372
|
idempotencyKey?: string;
|
|
2369
2373
|
}) => Promise<ToolConnectionResponse>;
|
|
2374
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2370
2375
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2371
2376
|
idempotencyKey?: string;
|
|
2372
2377
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2398,6 +2403,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2398
2403
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2399
2404
|
idempotencyKey?: string;
|
|
2400
2405
|
}): Promise<ExecuteToolResponse>;
|
|
2406
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2401
2407
|
};
|
|
2402
2408
|
catalogs: {
|
|
2403
2409
|
templates: {
|
|
@@ -2533,6 +2539,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2533
2539
|
readonly create: (payload: CreateToolConnectionRequest, options?: {
|
|
2534
2540
|
idempotencyKey?: string;
|
|
2535
2541
|
}) => Promise<ToolConnectionResponse>;
|
|
2542
|
+
readonly delete: (toolAgentConnectionId: string) => Promise<void>;
|
|
2536
2543
|
readonly execute: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2537
2544
|
idempotencyKey?: string;
|
|
2538
2545
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2540,6 +2547,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2540
2547
|
readonly createConnection: (payload: CreateToolConnectionRequest, options?: {
|
|
2541
2548
|
idempotencyKey?: string;
|
|
2542
2549
|
}) => Promise<ToolConnectionResponse>;
|
|
2550
|
+
readonly deleteConnection: (toolAgentConnectionId: string) => Promise<void>;
|
|
2543
2551
|
readonly executeConnection: (toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2544
2552
|
idempotencyKey?: string;
|
|
2545
2553
|
}) => Promise<ExecuteToolResponse>;
|
|
@@ -2571,6 +2579,7 @@ declare function createClient(initialCfg: ClientConfig & {
|
|
|
2571
2579
|
executeConnection(toolAgentConnectionId: string, payload: ExecuteToolConnectionRequest, options?: {
|
|
2572
2580
|
idempotencyKey?: string;
|
|
2573
2581
|
}): Promise<ExecuteToolResponse>;
|
|
2582
|
+
deleteConnection(toolAgentConnectionId: string): Promise<void>;
|
|
2574
2583
|
};
|
|
2575
2584
|
catalogs: {
|
|
2576
2585
|
templates: {
|
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 {
|