@amigo-ai/sdk 0.24.0 → 0.26.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.
|
@@ -2117,6 +2117,23 @@ export interface paths {
|
|
|
2117
2117
|
patch?: never;
|
|
2118
2118
|
trace?: never;
|
|
2119
2119
|
};
|
|
2120
|
+
"/v1/{organization}/tool/test": {
|
|
2121
|
+
parameters: {
|
|
2122
|
+
query?: never;
|
|
2123
|
+
header?: never;
|
|
2124
|
+
path?: never;
|
|
2125
|
+
cookie?: never;
|
|
2126
|
+
};
|
|
2127
|
+
get?: never;
|
|
2128
|
+
put?: never;
|
|
2129
|
+
/** Test a tool */
|
|
2130
|
+
post: operations["test-tool"];
|
|
2131
|
+
delete?: never;
|
|
2132
|
+
options?: never;
|
|
2133
|
+
head?: never;
|
|
2134
|
+
patch?: never;
|
|
2135
|
+
trace?: never;
|
|
2136
|
+
};
|
|
2120
2137
|
"/v1/{organization}/tool/{tool_id}/envvar": {
|
|
2121
2138
|
parameters: {
|
|
2122
2139
|
query?: never;
|
|
@@ -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 Branch
|
|
8468
|
+
* @description The branch in the tools repo whose tip will be tested.
|
|
8469
|
+
*/
|
|
8470
|
+
commit_branch: 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"];
|
|
@@ -16759,6 +16813,90 @@ export interface operations {
|
|
|
16759
16813
|
};
|
|
16760
16814
|
};
|
|
16761
16815
|
};
|
|
16816
|
+
"test-tool": {
|
|
16817
|
+
parameters: {
|
|
16818
|
+
query?: never;
|
|
16819
|
+
header?: {
|
|
16820
|
+
/** @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. */
|
|
16821
|
+
"x-mongo-cluster-name"?: string | null;
|
|
16822
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
16823
|
+
};
|
|
16824
|
+
path: {
|
|
16825
|
+
organization: string;
|
|
16826
|
+
};
|
|
16827
|
+
cookie?: never;
|
|
16828
|
+
};
|
|
16829
|
+
requestBody: {
|
|
16830
|
+
content: {
|
|
16831
|
+
"application/json": components["schemas"]["tool__test_tool__Request"];
|
|
16832
|
+
};
|
|
16833
|
+
};
|
|
16834
|
+
responses: {
|
|
16835
|
+
/** @description Succeeded */
|
|
16836
|
+
200: {
|
|
16837
|
+
headers: {
|
|
16838
|
+
[name: string]: unknown;
|
|
16839
|
+
};
|
|
16840
|
+
content: {
|
|
16841
|
+
"application/json": components["schemas"]["tool__test_tool__Response"];
|
|
16842
|
+
};
|
|
16843
|
+
};
|
|
16844
|
+
/** @description This error can occur due to the following reasons:
|
|
16845
|
+
* * An environment variable is specified as both secret and non-secret.
|
|
16846
|
+
* * The specified tool commit failed CI checks.
|
|
16847
|
+
* * Required environment variables in the tool are not declared in the reqeust.
|
|
16848
|
+
* * Input parameters do not conform to the tool's input schema.
|
|
16849
|
+
* */
|
|
16850
|
+
400: {
|
|
16851
|
+
headers: {
|
|
16852
|
+
[name: string]: unknown;
|
|
16853
|
+
};
|
|
16854
|
+
content?: never;
|
|
16855
|
+
};
|
|
16856
|
+
/** @description Invalid authorization credentials. */
|
|
16857
|
+
401: {
|
|
16858
|
+
headers: {
|
|
16859
|
+
[name: string]: unknown;
|
|
16860
|
+
};
|
|
16861
|
+
content?: never;
|
|
16862
|
+
};
|
|
16863
|
+
/** @description Missing required permissions. */
|
|
16864
|
+
403: {
|
|
16865
|
+
headers: {
|
|
16866
|
+
[name: string]: unknown;
|
|
16867
|
+
};
|
|
16868
|
+
content?: never;
|
|
16869
|
+
};
|
|
16870
|
+
/** @description The specified organization or tool commit does not exist. */
|
|
16871
|
+
404: {
|
|
16872
|
+
headers: {
|
|
16873
|
+
[name: string]: unknown;
|
|
16874
|
+
};
|
|
16875
|
+
content?: never;
|
|
16876
|
+
};
|
|
16877
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
16878
|
+
422: {
|
|
16879
|
+
headers: {
|
|
16880
|
+
[name: string]: unknown;
|
|
16881
|
+
};
|
|
16882
|
+
content?: never;
|
|
16883
|
+
};
|
|
16884
|
+
/** @description The user has exceeded the rate limit of 1 request per minute for this endpoint. */
|
|
16885
|
+
429: {
|
|
16886
|
+
headers: {
|
|
16887
|
+
[name: string]: unknown;
|
|
16888
|
+
};
|
|
16889
|
+
content?: never;
|
|
16890
|
+
};
|
|
16891
|
+
/** @description The service is going through temporary maintenance. */
|
|
16892
|
+
503: {
|
|
16893
|
+
headers: {
|
|
16894
|
+
[name: string]: unknown;
|
|
16895
|
+
};
|
|
16896
|
+
content?: never;
|
|
16897
|
+
};
|
|
16898
|
+
};
|
|
16899
|
+
};
|
|
16762
16900
|
"modify-tool-envvars": {
|
|
16763
16901
|
parameters: {
|
|
16764
16902
|
query?: never;
|
|
@@ -16958,7 +17096,7 @@ export interface operations {
|
|
|
16958
17096
|
"application/json": components["schemas"]["tool__publish_tool_version__Response"];
|
|
16959
17097
|
};
|
|
16960
17098
|
};
|
|
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
|
|
17099
|
+
/** @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
17100
|
400: {
|
|
16963
17101
|
headers: {
|
|
16964
17102
|
[name: string]: unknown;
|