@amigo-ai/sdk 0.24.0 → 0.25.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.
|
@@ -2236,6 +2236,23 @@ export interface paths {
|
|
|
2236
2236
|
patch?: never;
|
|
2237
2237
|
trace?: never;
|
|
2238
2238
|
};
|
|
2239
|
+
"/v1/{organization}/tool/test": {
|
|
2240
|
+
parameters: {
|
|
2241
|
+
query?: never;
|
|
2242
|
+
header?: never;
|
|
2243
|
+
path?: never;
|
|
2244
|
+
cookie?: never;
|
|
2245
|
+
};
|
|
2246
|
+
get?: never;
|
|
2247
|
+
put?: never;
|
|
2248
|
+
/** Test a tool */
|
|
2249
|
+
post: operations["test-tool"];
|
|
2250
|
+
delete?: never;
|
|
2251
|
+
options?: never;
|
|
2252
|
+
head?: never;
|
|
2253
|
+
patch?: never;
|
|
2254
|
+
trace?: never;
|
|
2255
|
+
};
|
|
2239
2256
|
}
|
|
2240
2257
|
export type webhooks = Record<string, never>;
|
|
2241
2258
|
export interface components {
|
|
@@ -8440,6 +8457,43 @@ export interface components {
|
|
|
8440
8457
|
tool_invocations: components["schemas"]["ToolInvocationInstance"][];
|
|
8441
8458
|
};
|
|
8442
8459
|
/** Request */
|
|
8460
|
+
tool__test_tool__Request: {
|
|
8461
|
+
/**
|
|
8462
|
+
* Inputs
|
|
8463
|
+
* @description The list of inputs for the tool invocation.
|
|
8464
|
+
*/
|
|
8465
|
+
inputs: components["schemas"]["Input"][];
|
|
8466
|
+
/**
|
|
8467
|
+
* Commit Hash
|
|
8468
|
+
* @description The commit hash of the tool to test.
|
|
8469
|
+
*/
|
|
8470
|
+
commit_hash: string;
|
|
8471
|
+
/**
|
|
8472
|
+
* Project Path
|
|
8473
|
+
* @description The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.
|
|
8474
|
+
*/
|
|
8475
|
+
project_path: string;
|
|
8476
|
+
/**
|
|
8477
|
+
* Required Envvars
|
|
8478
|
+
* @description The environment variables required for the tool to run.
|
|
8479
|
+
*/
|
|
8480
|
+
required_envvars: {
|
|
8481
|
+
[key: string]: string;
|
|
8482
|
+
};
|
|
8483
|
+
/**
|
|
8484
|
+
* Required Secret Envvars
|
|
8485
|
+
* @description The secret environment variables required for the tool to run.
|
|
8486
|
+
*/
|
|
8487
|
+
required_secret_envvars: {
|
|
8488
|
+
[key: string]: string;
|
|
8489
|
+
};
|
|
8490
|
+
};
|
|
8491
|
+
/** Response */
|
|
8492
|
+
tool__test_tool__Response: {
|
|
8493
|
+
/** Invocation Results */
|
|
8494
|
+
invocation_results: components["schemas"]["InvocationResult"][];
|
|
8495
|
+
};
|
|
8496
|
+
/** Request */
|
|
8443
8497
|
user__create_invited_user__Request: {
|
|
8444
8498
|
/** @description The first name of the user. */
|
|
8445
8499
|
first_name: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
|
|
@@ -16958,7 +17012,7 @@ export interface operations {
|
|
|
16958
17012
|
"application/json": components["schemas"]["tool__publish_tool_version__Response"];
|
|
16959
17013
|
};
|
|
16960
17014
|
};
|
|
16961
|
-
/** @description Specified commit is older than the last valid commit, or the environment variables required by the tool version do not exist on the tool
|
|
17015
|
+
/** @description Specified commit is older than the last valid commit, or the environment variables required by the tool version do not exist on the tool. */
|
|
16962
17016
|
400: {
|
|
16963
17017
|
headers: {
|
|
16964
17018
|
[name: string]: unknown;
|
|
@@ -17276,4 +17330,88 @@ export interface operations {
|
|
|
17276
17330
|
};
|
|
17277
17331
|
};
|
|
17278
17332
|
};
|
|
17333
|
+
"test-tool": {
|
|
17334
|
+
parameters: {
|
|
17335
|
+
query?: never;
|
|
17336
|
+
header?: {
|
|
17337
|
+
/** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
|
|
17338
|
+
"x-mongo-cluster-name"?: string | null;
|
|
17339
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
17340
|
+
};
|
|
17341
|
+
path: {
|
|
17342
|
+
organization: string;
|
|
17343
|
+
};
|
|
17344
|
+
cookie?: never;
|
|
17345
|
+
};
|
|
17346
|
+
requestBody: {
|
|
17347
|
+
content: {
|
|
17348
|
+
"application/json": components["schemas"]["tool__test_tool__Request"];
|
|
17349
|
+
};
|
|
17350
|
+
};
|
|
17351
|
+
responses: {
|
|
17352
|
+
/** @description Succeeded */
|
|
17353
|
+
200: {
|
|
17354
|
+
headers: {
|
|
17355
|
+
[name: string]: unknown;
|
|
17356
|
+
};
|
|
17357
|
+
content: {
|
|
17358
|
+
"application/json": components["schemas"]["tool__test_tool__Response"];
|
|
17359
|
+
};
|
|
17360
|
+
};
|
|
17361
|
+
/** @description This error can occur due to the following reasons:
|
|
17362
|
+
* * An environment variable is specified as both secret and non-secret.
|
|
17363
|
+
* * The specified tool commit failed CI checks.
|
|
17364
|
+
* * Required environment variables in the tool are not declared in the reqeust.
|
|
17365
|
+
* * Input parameters do not conform to the tool's input schema.
|
|
17366
|
+
* */
|
|
17367
|
+
400: {
|
|
17368
|
+
headers: {
|
|
17369
|
+
[name: string]: unknown;
|
|
17370
|
+
};
|
|
17371
|
+
content?: never;
|
|
17372
|
+
};
|
|
17373
|
+
/** @description Invalid authorization credentials. */
|
|
17374
|
+
401: {
|
|
17375
|
+
headers: {
|
|
17376
|
+
[name: string]: unknown;
|
|
17377
|
+
};
|
|
17378
|
+
content?: never;
|
|
17379
|
+
};
|
|
17380
|
+
/** @description Missing required permissions. */
|
|
17381
|
+
403: {
|
|
17382
|
+
headers: {
|
|
17383
|
+
[name: string]: unknown;
|
|
17384
|
+
};
|
|
17385
|
+
content?: never;
|
|
17386
|
+
};
|
|
17387
|
+
/** @description The specified organization or tool commit does not exist. */
|
|
17388
|
+
404: {
|
|
17389
|
+
headers: {
|
|
17390
|
+
[name: string]: unknown;
|
|
17391
|
+
};
|
|
17392
|
+
content?: never;
|
|
17393
|
+
};
|
|
17394
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
17395
|
+
422: {
|
|
17396
|
+
headers: {
|
|
17397
|
+
[name: string]: unknown;
|
|
17398
|
+
};
|
|
17399
|
+
content?: never;
|
|
17400
|
+
};
|
|
17401
|
+
/** @description The user has exceeded the rate limit of 1 request per minute for this endpoint. */
|
|
17402
|
+
429: {
|
|
17403
|
+
headers: {
|
|
17404
|
+
[name: string]: unknown;
|
|
17405
|
+
};
|
|
17406
|
+
content?: never;
|
|
17407
|
+
};
|
|
17408
|
+
/** @description The service is going through temporary maintenance. */
|
|
17409
|
+
503: {
|
|
17410
|
+
headers: {
|
|
17411
|
+
[name: string]: unknown;
|
|
17412
|
+
};
|
|
17413
|
+
content?: never;
|
|
17414
|
+
};
|
|
17415
|
+
};
|
|
17416
|
+
};
|
|
17279
17417
|
}
|