@orq-ai/node 3.3.10 → 3.3.13
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/bin/mcp-server.js +39 -39
- package/bin/mcp-server.js.map +21 -21
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/FUNCTIONS.md +2 -4
- package/packages/orq-rc/README.md +68 -17
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -83
- package/packages/orq-rc/docs/sdks/memorystores/README.md +1211 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +74 -0
- package/packages/orq-rc/docs/sdks/sessions/README.md +385 -0
- package/packages/orq-rc/docs/sdks/tools/README.md +425 -0
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +165 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +169 -0
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +164 -0
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +162 -0
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +178 -0
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +173 -0
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +172 -0
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +175 -0
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +170 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +171 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +172 -0
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +167 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +162 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +173 -0
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +168 -0
- package/packages/orq-rc/src/funcs/postV2TracesSessionsCount.ts +155 -0
- package/packages/orq-rc/src/funcs/sessionsCreate.ts +159 -0
- package/packages/orq-rc/src/funcs/sessionsDelete.ts +170 -0
- package/packages/orq-rc/src/funcs/sessionsGet.ts +169 -0
- package/packages/orq-rc/src/funcs/sessionsList.ts +157 -0
- package/packages/orq-rc/src/funcs/sessionsUpdate.ts +170 -0
- package/packages/orq-rc/src/funcs/toolsCreate.ts +157 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +161 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +170 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +160 -0
- package/packages/orq-rc/src/funcs/{knowledgeSearch.ts → toolsUpdate.ts} +18 -15
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/prompts.ts +8 -1
- package/packages/orq-rc/src/mcp-server/resources.ts +16 -2
- package/packages/orq-rc/src/mcp-server/server.ts +55 -5
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/postV2TracesSessionsCount.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools/sessionsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/sessionsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/{knowledgeSearch.ts → sessionsGet.ts} +8 -6
- package/packages/orq-rc/src/mcp-server/tools/sessionsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/sessionsUpdate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools.ts +6 -3
- package/packages/orq-rc/src/models/components/deployments.ts +124 -29
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchunk.ts +99 -41
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +10 -10
- package/packages/orq-rc/src/models/operations/createknowledge.ts +175 -14
- package/packages/orq-rc/src/models/operations/creatememory.ts +265 -0
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +284 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +1619 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +6 -6
- package/packages/orq-rc/src/models/operations/createsession.ts +632 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +2297 -0
- package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
- package/packages/orq-rc/src/models/operations/deletesession.ts +78 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +57 -35
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +124 -29
- package/packages/orq-rc/src/models/operations/deployments.ts +3 -3
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +135 -30
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallmemories.ts +315 -0
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +335 -0
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1061 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +3 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +1382 -0
- package/packages/orq-rc/src/models/operations/getonechunk.ts +8 -8
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +92 -8
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +3 -3
- package/packages/orq-rc/src/models/operations/getsession.ts +400 -0
- package/packages/orq-rc/src/models/operations/index.ts +26 -1
- package/packages/orq-rc/src/models/operations/listchunks.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +10 -10
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +94 -8
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +3 -3
- package/packages/orq-rc/src/models/operations/listsessions.ts +6732 -0
- package/packages/orq-rc/src/models/operations/postv2tracessessionscount.ts +7043 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +10 -10
- package/packages/orq-rc/src/models/operations/retrievememory.ts +198 -0
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +217 -0
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +944 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +1350 -0
- package/packages/orq-rc/src/models/operations/updatechunk.ts +10 -10
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +10 -10
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +201 -20
- package/packages/orq-rc/src/models/operations/updatememory.ts +274 -0
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +293 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +1148 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatesession.ts +731 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +2464 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -15
- package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
- package/packages/orq-rc/src/sdk/sdk.ts +36 -1
- package/packages/orq-rc/src/sdk/sessions.ts +99 -0
- package/packages/orq-rc/src/sdk/tools.ts +99 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1673
|
@@ -0,0 +1,2464 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
14
|
+
*/
|
|
15
|
+
export const UpdateToolRequestBodyToolsRequestStatus = {
|
|
16
|
+
Live: "live",
|
|
17
|
+
Draft: "draft",
|
|
18
|
+
Pending: "pending",
|
|
19
|
+
Published: "published",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
23
|
+
*/
|
|
24
|
+
export type UpdateToolRequestBodyToolsRequestStatus = ClosedEnum<
|
|
25
|
+
typeof UpdateToolRequestBodyToolsRequestStatus
|
|
26
|
+
>;
|
|
27
|
+
|
|
28
|
+
export const UpdateToolRequestBodyToolsRequestType = {
|
|
29
|
+
OrqHttp: "orq_http",
|
|
30
|
+
} as const;
|
|
31
|
+
export type UpdateToolRequestBodyToolsRequestType = ClosedEnum<
|
|
32
|
+
typeof UpdateToolRequestBodyToolsRequestType
|
|
33
|
+
>;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The HTTP method to use.
|
|
37
|
+
*/
|
|
38
|
+
export const RequestBodyMethod = {
|
|
39
|
+
Get: "GET",
|
|
40
|
+
Post: "POST",
|
|
41
|
+
Put: "PUT",
|
|
42
|
+
Delete: "DELETE",
|
|
43
|
+
} as const;
|
|
44
|
+
/**
|
|
45
|
+
* The HTTP method to use.
|
|
46
|
+
*/
|
|
47
|
+
export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
51
|
+
*/
|
|
52
|
+
export type RequestBodyBlueprint = {
|
|
53
|
+
/**
|
|
54
|
+
* The URL to send the request to.
|
|
55
|
+
*/
|
|
56
|
+
url: string;
|
|
57
|
+
/**
|
|
58
|
+
* The HTTP method to use.
|
|
59
|
+
*/
|
|
60
|
+
method: RequestBodyMethod;
|
|
61
|
+
/**
|
|
62
|
+
* The headers to send with the request.
|
|
63
|
+
*/
|
|
64
|
+
headers?: { [k: string]: string } | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The body to send with the request.
|
|
67
|
+
*/
|
|
68
|
+
body?: { [k: string]: any } | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The type of the argument.
|
|
73
|
+
*/
|
|
74
|
+
export const UpdateToolRequestBodyToolsRequest3Type = {
|
|
75
|
+
String: "string",
|
|
76
|
+
Number: "number",
|
|
77
|
+
Boolean: "boolean",
|
|
78
|
+
} as const;
|
|
79
|
+
/**
|
|
80
|
+
* The type of the argument.
|
|
81
|
+
*/
|
|
82
|
+
export type UpdateToolRequestBodyToolsRequest3Type = ClosedEnum<
|
|
83
|
+
typeof UpdateToolRequestBodyToolsRequest3Type
|
|
84
|
+
>;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The default value of the argument.
|
|
88
|
+
*/
|
|
89
|
+
export type RequestBodyDefaultValue = string | number | boolean;
|
|
90
|
+
|
|
91
|
+
export type RequestBodyArguments = {
|
|
92
|
+
/**
|
|
93
|
+
* The type of the argument.
|
|
94
|
+
*/
|
|
95
|
+
type: UpdateToolRequestBodyToolsRequest3Type;
|
|
96
|
+
/**
|
|
97
|
+
* A description of the argument.
|
|
98
|
+
*/
|
|
99
|
+
description: string;
|
|
100
|
+
/**
|
|
101
|
+
* Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
|
|
102
|
+
*/
|
|
103
|
+
sendToModel?: boolean | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* The default value of the argument.
|
|
106
|
+
*/
|
|
107
|
+
defaultValue?: string | number | boolean | undefined;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export type RequestBodyHttp = {
|
|
111
|
+
/**
|
|
112
|
+
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
113
|
+
*/
|
|
114
|
+
blueprint: RequestBodyBlueprint;
|
|
115
|
+
/**
|
|
116
|
+
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
117
|
+
*/
|
|
118
|
+
arguments?: { [k: string]: RequestBodyArguments } | undefined;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export type UpdateToolRequestBody3 = {
|
|
122
|
+
/**
|
|
123
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
124
|
+
*/
|
|
125
|
+
path?: string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
128
|
+
*/
|
|
129
|
+
description?: string | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
132
|
+
*/
|
|
133
|
+
status: UpdateToolRequestBodyToolsRequestStatus;
|
|
134
|
+
versionHash: string;
|
|
135
|
+
type: UpdateToolRequestBodyToolsRequestType;
|
|
136
|
+
http?: RequestBodyHttp | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
141
|
+
*/
|
|
142
|
+
export const UpdateToolRequestBodyToolsStatus = {
|
|
143
|
+
Live: "live",
|
|
144
|
+
Draft: "draft",
|
|
145
|
+
Pending: "pending",
|
|
146
|
+
Published: "published",
|
|
147
|
+
} as const;
|
|
148
|
+
/**
|
|
149
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
150
|
+
*/
|
|
151
|
+
export type UpdateToolRequestBodyToolsStatus = ClosedEnum<
|
|
152
|
+
typeof UpdateToolRequestBodyToolsStatus
|
|
153
|
+
>;
|
|
154
|
+
|
|
155
|
+
export const UpdateToolRequestBodyToolsType = {
|
|
156
|
+
JsonSchema: "json_schema",
|
|
157
|
+
} as const;
|
|
158
|
+
export type UpdateToolRequestBodyToolsType = ClosedEnum<
|
|
159
|
+
typeof UpdateToolRequestBodyToolsType
|
|
160
|
+
>;
|
|
161
|
+
|
|
162
|
+
export type UpdateToolRequestBodyJsonSchema = {
|
|
163
|
+
/**
|
|
164
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
165
|
+
*/
|
|
166
|
+
name: string;
|
|
167
|
+
/**
|
|
168
|
+
* A description of what the response format is for. This will be shown to the user.
|
|
169
|
+
*/
|
|
170
|
+
description?: string | undefined;
|
|
171
|
+
/**
|
|
172
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
173
|
+
*/
|
|
174
|
+
schema: { [k: string]: any };
|
|
175
|
+
/**
|
|
176
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
177
|
+
*/
|
|
178
|
+
strict?: boolean | null | undefined;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export type UpdateToolRequestBody2 = {
|
|
182
|
+
/**
|
|
183
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
184
|
+
*/
|
|
185
|
+
path?: string | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
188
|
+
*/
|
|
189
|
+
description?: string | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
192
|
+
*/
|
|
193
|
+
status: UpdateToolRequestBodyToolsStatus;
|
|
194
|
+
versionHash: string;
|
|
195
|
+
type: UpdateToolRequestBodyToolsType;
|
|
196
|
+
jsonSchema?: UpdateToolRequestBodyJsonSchema | undefined;
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
201
|
+
*/
|
|
202
|
+
export const UpdateToolRequestBodyStatus = {
|
|
203
|
+
Live: "live",
|
|
204
|
+
Draft: "draft",
|
|
205
|
+
Pending: "pending",
|
|
206
|
+
Published: "published",
|
|
207
|
+
} as const;
|
|
208
|
+
/**
|
|
209
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
210
|
+
*/
|
|
211
|
+
export type UpdateToolRequestBodyStatus = ClosedEnum<
|
|
212
|
+
typeof UpdateToolRequestBodyStatus
|
|
213
|
+
>;
|
|
214
|
+
|
|
215
|
+
export const UpdateToolRequestBodyType = {
|
|
216
|
+
Function: "function",
|
|
217
|
+
} as const;
|
|
218
|
+
export type UpdateToolRequestBodyType = ClosedEnum<
|
|
219
|
+
typeof UpdateToolRequestBodyType
|
|
220
|
+
>;
|
|
221
|
+
|
|
222
|
+
export type UpdateToolRequestBodyFunction = {
|
|
223
|
+
/**
|
|
224
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
225
|
+
*/
|
|
226
|
+
name: string;
|
|
227
|
+
/**
|
|
228
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
229
|
+
*/
|
|
230
|
+
description?: string | undefined;
|
|
231
|
+
/**
|
|
232
|
+
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
233
|
+
*/
|
|
234
|
+
strict?: boolean | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
237
|
+
*/
|
|
238
|
+
parameters?: { [k: string]: any } | undefined;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type UpdateToolRequestBody1 = {
|
|
242
|
+
/**
|
|
243
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
244
|
+
*/
|
|
245
|
+
path?: string | undefined;
|
|
246
|
+
/**
|
|
247
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
248
|
+
*/
|
|
249
|
+
description?: string | undefined;
|
|
250
|
+
/**
|
|
251
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
252
|
+
*/
|
|
253
|
+
status: UpdateToolRequestBodyStatus;
|
|
254
|
+
versionHash: string;
|
|
255
|
+
type: UpdateToolRequestBodyType;
|
|
256
|
+
function?: UpdateToolRequestBodyFunction | undefined;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* The tool to update
|
|
261
|
+
*/
|
|
262
|
+
export type UpdateToolRequestBody =
|
|
263
|
+
| UpdateToolRequestBody1
|
|
264
|
+
| UpdateToolRequestBody2
|
|
265
|
+
| UpdateToolRequestBody3;
|
|
266
|
+
|
|
267
|
+
export type UpdateToolRequest = {
|
|
268
|
+
toolKey: string;
|
|
269
|
+
/**
|
|
270
|
+
* The tool to update
|
|
271
|
+
*/
|
|
272
|
+
requestBody?:
|
|
273
|
+
| UpdateToolRequestBody1
|
|
274
|
+
| UpdateToolRequestBody2
|
|
275
|
+
| UpdateToolRequestBody3
|
|
276
|
+
| undefined;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
281
|
+
*/
|
|
282
|
+
export const UpdateToolResponseBodyToolsResponseStatus = {
|
|
283
|
+
Live: "live",
|
|
284
|
+
Draft: "draft",
|
|
285
|
+
Pending: "pending",
|
|
286
|
+
Published: "published",
|
|
287
|
+
} as const;
|
|
288
|
+
/**
|
|
289
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
290
|
+
*/
|
|
291
|
+
export type UpdateToolResponseBodyToolsResponseStatus = ClosedEnum<
|
|
292
|
+
typeof UpdateToolResponseBodyToolsResponseStatus
|
|
293
|
+
>;
|
|
294
|
+
|
|
295
|
+
export const UpdateToolResponseBodyToolsResponseType = {
|
|
296
|
+
OrqHttp: "orq_http",
|
|
297
|
+
} as const;
|
|
298
|
+
export type UpdateToolResponseBodyToolsResponseType = ClosedEnum<
|
|
299
|
+
typeof UpdateToolResponseBodyToolsResponseType
|
|
300
|
+
>;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The HTTP method to use.
|
|
304
|
+
*/
|
|
305
|
+
export const UpdateToolResponseBodyMethod = {
|
|
306
|
+
Get: "GET",
|
|
307
|
+
Post: "POST",
|
|
308
|
+
Put: "PUT",
|
|
309
|
+
Delete: "DELETE",
|
|
310
|
+
} as const;
|
|
311
|
+
/**
|
|
312
|
+
* The HTTP method to use.
|
|
313
|
+
*/
|
|
314
|
+
export type UpdateToolResponseBodyMethod = ClosedEnum<
|
|
315
|
+
typeof UpdateToolResponseBodyMethod
|
|
316
|
+
>;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
320
|
+
*/
|
|
321
|
+
export type UpdateToolResponseBodyBlueprint = {
|
|
322
|
+
/**
|
|
323
|
+
* The URL to send the request to.
|
|
324
|
+
*/
|
|
325
|
+
url: string;
|
|
326
|
+
/**
|
|
327
|
+
* The HTTP method to use.
|
|
328
|
+
*/
|
|
329
|
+
method: UpdateToolResponseBodyMethod;
|
|
330
|
+
/**
|
|
331
|
+
* The headers to send with the request.
|
|
332
|
+
*/
|
|
333
|
+
headers?: { [k: string]: string } | undefined;
|
|
334
|
+
/**
|
|
335
|
+
* The body to send with the request.
|
|
336
|
+
*/
|
|
337
|
+
body?: { [k: string]: any } | undefined;
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* The type of the argument.
|
|
342
|
+
*/
|
|
343
|
+
export const UpdateToolResponseBodyToolsResponse200Type = {
|
|
344
|
+
String: "string",
|
|
345
|
+
Number: "number",
|
|
346
|
+
Boolean: "boolean",
|
|
347
|
+
} as const;
|
|
348
|
+
/**
|
|
349
|
+
* The type of the argument.
|
|
350
|
+
*/
|
|
351
|
+
export type UpdateToolResponseBodyToolsResponse200Type = ClosedEnum<
|
|
352
|
+
typeof UpdateToolResponseBodyToolsResponse200Type
|
|
353
|
+
>;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* The default value of the argument.
|
|
357
|
+
*/
|
|
358
|
+
export type UpdateToolResponseBodyDefaultValue = string | number | boolean;
|
|
359
|
+
|
|
360
|
+
export type UpdateToolResponseBodyArguments = {
|
|
361
|
+
/**
|
|
362
|
+
* The type of the argument.
|
|
363
|
+
*/
|
|
364
|
+
type: UpdateToolResponseBodyToolsResponse200Type;
|
|
365
|
+
/**
|
|
366
|
+
* A description of the argument.
|
|
367
|
+
*/
|
|
368
|
+
description: string;
|
|
369
|
+
/**
|
|
370
|
+
* Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
|
|
371
|
+
*/
|
|
372
|
+
sendToModel?: boolean | undefined;
|
|
373
|
+
/**
|
|
374
|
+
* The default value of the argument.
|
|
375
|
+
*/
|
|
376
|
+
defaultValue?: string | number | boolean | undefined;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
export type UpdateToolResponseBodyHttp = {
|
|
380
|
+
/**
|
|
381
|
+
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
382
|
+
*/
|
|
383
|
+
blueprint: UpdateToolResponseBodyBlueprint;
|
|
384
|
+
/**
|
|
385
|
+
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
386
|
+
*/
|
|
387
|
+
arguments?: { [k: string]: UpdateToolResponseBodyArguments } | undefined;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
export type UpdateToolResponseBody3 = {
|
|
391
|
+
id?: string | undefined;
|
|
392
|
+
/**
|
|
393
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
394
|
+
*/
|
|
395
|
+
path: string;
|
|
396
|
+
/**
|
|
397
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
398
|
+
*/
|
|
399
|
+
key: string;
|
|
400
|
+
/**
|
|
401
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
402
|
+
*/
|
|
403
|
+
description: string;
|
|
404
|
+
/**
|
|
405
|
+
* The id of the user that created the tool
|
|
406
|
+
*/
|
|
407
|
+
createdById?: string | undefined;
|
|
408
|
+
/**
|
|
409
|
+
* The id of the user that last updated the tool
|
|
410
|
+
*/
|
|
411
|
+
updatedById?: string | undefined;
|
|
412
|
+
projectId: string;
|
|
413
|
+
workspaceId: string;
|
|
414
|
+
created: string;
|
|
415
|
+
updated: string;
|
|
416
|
+
/**
|
|
417
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
418
|
+
*/
|
|
419
|
+
status: UpdateToolResponseBodyToolsResponseStatus;
|
|
420
|
+
versionHash: string;
|
|
421
|
+
type: UpdateToolResponseBodyToolsResponseType;
|
|
422
|
+
http: UpdateToolResponseBodyHttp;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
427
|
+
*/
|
|
428
|
+
export const UpdateToolResponseBodyToolsStatus = {
|
|
429
|
+
Live: "live",
|
|
430
|
+
Draft: "draft",
|
|
431
|
+
Pending: "pending",
|
|
432
|
+
Published: "published",
|
|
433
|
+
} as const;
|
|
434
|
+
/**
|
|
435
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
436
|
+
*/
|
|
437
|
+
export type UpdateToolResponseBodyToolsStatus = ClosedEnum<
|
|
438
|
+
typeof UpdateToolResponseBodyToolsStatus
|
|
439
|
+
>;
|
|
440
|
+
|
|
441
|
+
export const UpdateToolResponseBodyToolsType = {
|
|
442
|
+
JsonSchema: "json_schema",
|
|
443
|
+
} as const;
|
|
444
|
+
export type UpdateToolResponseBodyToolsType = ClosedEnum<
|
|
445
|
+
typeof UpdateToolResponseBodyToolsType
|
|
446
|
+
>;
|
|
447
|
+
|
|
448
|
+
export type UpdateToolResponseBodyJsonSchema = {
|
|
449
|
+
/**
|
|
450
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
451
|
+
*/
|
|
452
|
+
name: string;
|
|
453
|
+
/**
|
|
454
|
+
* A description of what the response format is for. This will be shown to the user.
|
|
455
|
+
*/
|
|
456
|
+
description?: string | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
459
|
+
*/
|
|
460
|
+
schema: { [k: string]: any };
|
|
461
|
+
/**
|
|
462
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
463
|
+
*/
|
|
464
|
+
strict?: boolean | null | undefined;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export type UpdateToolResponseBody2 = {
|
|
468
|
+
id?: string | undefined;
|
|
469
|
+
/**
|
|
470
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
471
|
+
*/
|
|
472
|
+
path: string;
|
|
473
|
+
/**
|
|
474
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
475
|
+
*/
|
|
476
|
+
key: string;
|
|
477
|
+
/**
|
|
478
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
479
|
+
*/
|
|
480
|
+
description: string;
|
|
481
|
+
/**
|
|
482
|
+
* The id of the user that created the tool
|
|
483
|
+
*/
|
|
484
|
+
createdById?: string | undefined;
|
|
485
|
+
/**
|
|
486
|
+
* The id of the user that last updated the tool
|
|
487
|
+
*/
|
|
488
|
+
updatedById?: string | undefined;
|
|
489
|
+
projectId: string;
|
|
490
|
+
workspaceId: string;
|
|
491
|
+
created: string;
|
|
492
|
+
updated: string;
|
|
493
|
+
/**
|
|
494
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
495
|
+
*/
|
|
496
|
+
status: UpdateToolResponseBodyToolsStatus;
|
|
497
|
+
versionHash: string;
|
|
498
|
+
type: UpdateToolResponseBodyToolsType;
|
|
499
|
+
jsonSchema: UpdateToolResponseBodyJsonSchema;
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
504
|
+
*/
|
|
505
|
+
export const UpdateToolResponseBodyStatus = {
|
|
506
|
+
Live: "live",
|
|
507
|
+
Draft: "draft",
|
|
508
|
+
Pending: "pending",
|
|
509
|
+
Published: "published",
|
|
510
|
+
} as const;
|
|
511
|
+
/**
|
|
512
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
513
|
+
*/
|
|
514
|
+
export type UpdateToolResponseBodyStatus = ClosedEnum<
|
|
515
|
+
typeof UpdateToolResponseBodyStatus
|
|
516
|
+
>;
|
|
517
|
+
|
|
518
|
+
export const UpdateToolResponseBodyType = {
|
|
519
|
+
Function: "function",
|
|
520
|
+
} as const;
|
|
521
|
+
export type UpdateToolResponseBodyType = ClosedEnum<
|
|
522
|
+
typeof UpdateToolResponseBodyType
|
|
523
|
+
>;
|
|
524
|
+
|
|
525
|
+
export type UpdateToolResponseBodyFunction = {
|
|
526
|
+
/**
|
|
527
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
528
|
+
*/
|
|
529
|
+
name: string;
|
|
530
|
+
/**
|
|
531
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
532
|
+
*/
|
|
533
|
+
description?: string | undefined;
|
|
534
|
+
/**
|
|
535
|
+
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
536
|
+
*/
|
|
537
|
+
strict?: boolean | undefined;
|
|
538
|
+
/**
|
|
539
|
+
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
540
|
+
*/
|
|
541
|
+
parameters?: { [k: string]: any } | undefined;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
export type UpdateToolResponseBody1 = {
|
|
545
|
+
id?: string | undefined;
|
|
546
|
+
/**
|
|
547
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
548
|
+
*/
|
|
549
|
+
path: string;
|
|
550
|
+
/**
|
|
551
|
+
* Unique key of the tool as it will be displayed in the UI
|
|
552
|
+
*/
|
|
553
|
+
key: string;
|
|
554
|
+
/**
|
|
555
|
+
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
556
|
+
*/
|
|
557
|
+
description: string;
|
|
558
|
+
/**
|
|
559
|
+
* The id of the user that created the tool
|
|
560
|
+
*/
|
|
561
|
+
createdById?: string | undefined;
|
|
562
|
+
/**
|
|
563
|
+
* The id of the user that last updated the tool
|
|
564
|
+
*/
|
|
565
|
+
updatedById?: string | undefined;
|
|
566
|
+
projectId: string;
|
|
567
|
+
workspaceId: string;
|
|
568
|
+
created: string;
|
|
569
|
+
updated: string;
|
|
570
|
+
/**
|
|
571
|
+
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
572
|
+
*/
|
|
573
|
+
status: UpdateToolResponseBodyStatus;
|
|
574
|
+
versionHash: string;
|
|
575
|
+
type: UpdateToolResponseBodyType;
|
|
576
|
+
function: UpdateToolResponseBodyFunction;
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Successfully created the tool.
|
|
581
|
+
*/
|
|
582
|
+
export type UpdateToolResponseBody =
|
|
583
|
+
| UpdateToolResponseBody1
|
|
584
|
+
| UpdateToolResponseBody2
|
|
585
|
+
| UpdateToolResponseBody3;
|
|
586
|
+
|
|
587
|
+
/** @internal */
|
|
588
|
+
export const UpdateToolRequestBodyToolsRequestStatus$inboundSchema:
|
|
589
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> = z
|
|
590
|
+
.nativeEnum(UpdateToolRequestBodyToolsRequestStatus);
|
|
591
|
+
|
|
592
|
+
/** @internal */
|
|
593
|
+
export const UpdateToolRequestBodyToolsRequestStatus$outboundSchema:
|
|
594
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> =
|
|
595
|
+
UpdateToolRequestBodyToolsRequestStatus$inboundSchema;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @internal
|
|
599
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
600
|
+
*/
|
|
601
|
+
export namespace UpdateToolRequestBodyToolsRequestStatus$ {
|
|
602
|
+
/** @deprecated use `UpdateToolRequestBodyToolsRequestStatus$inboundSchema` instead. */
|
|
603
|
+
export const inboundSchema =
|
|
604
|
+
UpdateToolRequestBodyToolsRequestStatus$inboundSchema;
|
|
605
|
+
/** @deprecated use `UpdateToolRequestBodyToolsRequestStatus$outboundSchema` instead. */
|
|
606
|
+
export const outboundSchema =
|
|
607
|
+
UpdateToolRequestBodyToolsRequestStatus$outboundSchema;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/** @internal */
|
|
611
|
+
export const UpdateToolRequestBodyToolsRequestType$inboundSchema:
|
|
612
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestType> = z.nativeEnum(
|
|
613
|
+
UpdateToolRequestBodyToolsRequestType,
|
|
614
|
+
);
|
|
615
|
+
|
|
616
|
+
/** @internal */
|
|
617
|
+
export const UpdateToolRequestBodyToolsRequestType$outboundSchema:
|
|
618
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestType> =
|
|
619
|
+
UpdateToolRequestBodyToolsRequestType$inboundSchema;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* @internal
|
|
623
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
624
|
+
*/
|
|
625
|
+
export namespace UpdateToolRequestBodyToolsRequestType$ {
|
|
626
|
+
/** @deprecated use `UpdateToolRequestBodyToolsRequestType$inboundSchema` instead. */
|
|
627
|
+
export const inboundSchema =
|
|
628
|
+
UpdateToolRequestBodyToolsRequestType$inboundSchema;
|
|
629
|
+
/** @deprecated use `UpdateToolRequestBodyToolsRequestType$outboundSchema` instead. */
|
|
630
|
+
export const outboundSchema =
|
|
631
|
+
UpdateToolRequestBodyToolsRequestType$outboundSchema;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/** @internal */
|
|
635
|
+
export const RequestBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
636
|
+
typeof RequestBodyMethod
|
|
637
|
+
> = z.nativeEnum(RequestBodyMethod);
|
|
638
|
+
|
|
639
|
+
/** @internal */
|
|
640
|
+
export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
641
|
+
typeof RequestBodyMethod
|
|
642
|
+
> = RequestBodyMethod$inboundSchema;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* @internal
|
|
646
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
647
|
+
*/
|
|
648
|
+
export namespace RequestBodyMethod$ {
|
|
649
|
+
/** @deprecated use `RequestBodyMethod$inboundSchema` instead. */
|
|
650
|
+
export const inboundSchema = RequestBodyMethod$inboundSchema;
|
|
651
|
+
/** @deprecated use `RequestBodyMethod$outboundSchema` instead. */
|
|
652
|
+
export const outboundSchema = RequestBodyMethod$outboundSchema;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/** @internal */
|
|
656
|
+
export const RequestBodyBlueprint$inboundSchema: z.ZodType<
|
|
657
|
+
RequestBodyBlueprint,
|
|
658
|
+
z.ZodTypeDef,
|
|
659
|
+
unknown
|
|
660
|
+
> = z.object({
|
|
661
|
+
url: z.string(),
|
|
662
|
+
method: RequestBodyMethod$inboundSchema,
|
|
663
|
+
headers: z.record(z.string()).optional(),
|
|
664
|
+
body: z.record(z.any()).optional(),
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
/** @internal */
|
|
668
|
+
export type RequestBodyBlueprint$Outbound = {
|
|
669
|
+
url: string;
|
|
670
|
+
method: string;
|
|
671
|
+
headers?: { [k: string]: string } | undefined;
|
|
672
|
+
body?: { [k: string]: any } | undefined;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
/** @internal */
|
|
676
|
+
export const RequestBodyBlueprint$outboundSchema: z.ZodType<
|
|
677
|
+
RequestBodyBlueprint$Outbound,
|
|
678
|
+
z.ZodTypeDef,
|
|
679
|
+
RequestBodyBlueprint
|
|
680
|
+
> = z.object({
|
|
681
|
+
url: z.string(),
|
|
682
|
+
method: RequestBodyMethod$outboundSchema,
|
|
683
|
+
headers: z.record(z.string()).optional(),
|
|
684
|
+
body: z.record(z.any()).optional(),
|
|
685
|
+
});
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* @internal
|
|
689
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
690
|
+
*/
|
|
691
|
+
export namespace RequestBodyBlueprint$ {
|
|
692
|
+
/** @deprecated use `RequestBodyBlueprint$inboundSchema` instead. */
|
|
693
|
+
export const inboundSchema = RequestBodyBlueprint$inboundSchema;
|
|
694
|
+
/** @deprecated use `RequestBodyBlueprint$outboundSchema` instead. */
|
|
695
|
+
export const outboundSchema = RequestBodyBlueprint$outboundSchema;
|
|
696
|
+
/** @deprecated use `RequestBodyBlueprint$Outbound` instead. */
|
|
697
|
+
export type Outbound = RequestBodyBlueprint$Outbound;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export function requestBodyBlueprintToJSON(
|
|
701
|
+
requestBodyBlueprint: RequestBodyBlueprint,
|
|
702
|
+
): string {
|
|
703
|
+
return JSON.stringify(
|
|
704
|
+
RequestBodyBlueprint$outboundSchema.parse(requestBodyBlueprint),
|
|
705
|
+
);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
export function requestBodyBlueprintFromJSON(
|
|
709
|
+
jsonString: string,
|
|
710
|
+
): SafeParseResult<RequestBodyBlueprint, SDKValidationError> {
|
|
711
|
+
return safeParse(
|
|
712
|
+
jsonString,
|
|
713
|
+
(x) => RequestBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
714
|
+
`Failed to parse 'RequestBodyBlueprint' from JSON`,
|
|
715
|
+
);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/** @internal */
|
|
719
|
+
export const UpdateToolRequestBodyToolsRequest3Type$inboundSchema:
|
|
720
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
|
|
721
|
+
UpdateToolRequestBodyToolsRequest3Type,
|
|
722
|
+
);
|
|
723
|
+
|
|
724
|
+
/** @internal */
|
|
725
|
+
export const UpdateToolRequestBodyToolsRequest3Type$outboundSchema:
|
|
726
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> =
|
|
727
|
+
UpdateToolRequestBodyToolsRequest3Type$inboundSchema;
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* @internal
|
|
731
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
732
|
+
*/
|
|
733
|
+
export namespace UpdateToolRequestBodyToolsRequest3Type$ {
|
|
734
|
+
/** @deprecated use `UpdateToolRequestBodyToolsRequest3Type$inboundSchema` instead. */
|
|
735
|
+
export const inboundSchema =
|
|
736
|
+
UpdateToolRequestBodyToolsRequest3Type$inboundSchema;
|
|
737
|
+
/** @deprecated use `UpdateToolRequestBodyToolsRequest3Type$outboundSchema` instead. */
|
|
738
|
+
export const outboundSchema =
|
|
739
|
+
UpdateToolRequestBodyToolsRequest3Type$outboundSchema;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/** @internal */
|
|
743
|
+
export const RequestBodyDefaultValue$inboundSchema: z.ZodType<
|
|
744
|
+
RequestBodyDefaultValue,
|
|
745
|
+
z.ZodTypeDef,
|
|
746
|
+
unknown
|
|
747
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
748
|
+
|
|
749
|
+
/** @internal */
|
|
750
|
+
export type RequestBodyDefaultValue$Outbound = string | number | boolean;
|
|
751
|
+
|
|
752
|
+
/** @internal */
|
|
753
|
+
export const RequestBodyDefaultValue$outboundSchema: z.ZodType<
|
|
754
|
+
RequestBodyDefaultValue$Outbound,
|
|
755
|
+
z.ZodTypeDef,
|
|
756
|
+
RequestBodyDefaultValue
|
|
757
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* @internal
|
|
761
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
762
|
+
*/
|
|
763
|
+
export namespace RequestBodyDefaultValue$ {
|
|
764
|
+
/** @deprecated use `RequestBodyDefaultValue$inboundSchema` instead. */
|
|
765
|
+
export const inboundSchema = RequestBodyDefaultValue$inboundSchema;
|
|
766
|
+
/** @deprecated use `RequestBodyDefaultValue$outboundSchema` instead. */
|
|
767
|
+
export const outboundSchema = RequestBodyDefaultValue$outboundSchema;
|
|
768
|
+
/** @deprecated use `RequestBodyDefaultValue$Outbound` instead. */
|
|
769
|
+
export type Outbound = RequestBodyDefaultValue$Outbound;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
export function requestBodyDefaultValueToJSON(
|
|
773
|
+
requestBodyDefaultValue: RequestBodyDefaultValue,
|
|
774
|
+
): string {
|
|
775
|
+
return JSON.stringify(
|
|
776
|
+
RequestBodyDefaultValue$outboundSchema.parse(requestBodyDefaultValue),
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export function requestBodyDefaultValueFromJSON(
|
|
781
|
+
jsonString: string,
|
|
782
|
+
): SafeParseResult<RequestBodyDefaultValue, SDKValidationError> {
|
|
783
|
+
return safeParse(
|
|
784
|
+
jsonString,
|
|
785
|
+
(x) => RequestBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
786
|
+
`Failed to parse 'RequestBodyDefaultValue' from JSON`,
|
|
787
|
+
);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/** @internal */
|
|
791
|
+
export const RequestBodyArguments$inboundSchema: z.ZodType<
|
|
792
|
+
RequestBodyArguments,
|
|
793
|
+
z.ZodTypeDef,
|
|
794
|
+
unknown
|
|
795
|
+
> = z.object({
|
|
796
|
+
type: UpdateToolRequestBodyToolsRequest3Type$inboundSchema,
|
|
797
|
+
description: z.string(),
|
|
798
|
+
send_to_model: z.boolean().default(true),
|
|
799
|
+
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
800
|
+
}).transform((v) => {
|
|
801
|
+
return remap$(v, {
|
|
802
|
+
"send_to_model": "sendToModel",
|
|
803
|
+
"default_value": "defaultValue",
|
|
804
|
+
});
|
|
805
|
+
});
|
|
806
|
+
|
|
807
|
+
/** @internal */
|
|
808
|
+
export type RequestBodyArguments$Outbound = {
|
|
809
|
+
type: string;
|
|
810
|
+
description: string;
|
|
811
|
+
send_to_model: boolean;
|
|
812
|
+
default_value?: string | number | boolean | undefined;
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
/** @internal */
|
|
816
|
+
export const RequestBodyArguments$outboundSchema: z.ZodType<
|
|
817
|
+
RequestBodyArguments$Outbound,
|
|
818
|
+
z.ZodTypeDef,
|
|
819
|
+
RequestBodyArguments
|
|
820
|
+
> = z.object({
|
|
821
|
+
type: UpdateToolRequestBodyToolsRequest3Type$outboundSchema,
|
|
822
|
+
description: z.string(),
|
|
823
|
+
sendToModel: z.boolean().default(true),
|
|
824
|
+
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
825
|
+
}).transform((v) => {
|
|
826
|
+
return remap$(v, {
|
|
827
|
+
sendToModel: "send_to_model",
|
|
828
|
+
defaultValue: "default_value",
|
|
829
|
+
});
|
|
830
|
+
});
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* @internal
|
|
834
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
835
|
+
*/
|
|
836
|
+
export namespace RequestBodyArguments$ {
|
|
837
|
+
/** @deprecated use `RequestBodyArguments$inboundSchema` instead. */
|
|
838
|
+
export const inboundSchema = RequestBodyArguments$inboundSchema;
|
|
839
|
+
/** @deprecated use `RequestBodyArguments$outboundSchema` instead. */
|
|
840
|
+
export const outboundSchema = RequestBodyArguments$outboundSchema;
|
|
841
|
+
/** @deprecated use `RequestBodyArguments$Outbound` instead. */
|
|
842
|
+
export type Outbound = RequestBodyArguments$Outbound;
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
export function requestBodyArgumentsToJSON(
|
|
846
|
+
requestBodyArguments: RequestBodyArguments,
|
|
847
|
+
): string {
|
|
848
|
+
return JSON.stringify(
|
|
849
|
+
RequestBodyArguments$outboundSchema.parse(requestBodyArguments),
|
|
850
|
+
);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
export function requestBodyArgumentsFromJSON(
|
|
854
|
+
jsonString: string,
|
|
855
|
+
): SafeParseResult<RequestBodyArguments, SDKValidationError> {
|
|
856
|
+
return safeParse(
|
|
857
|
+
jsonString,
|
|
858
|
+
(x) => RequestBodyArguments$inboundSchema.parse(JSON.parse(x)),
|
|
859
|
+
`Failed to parse 'RequestBodyArguments' from JSON`,
|
|
860
|
+
);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/** @internal */
|
|
864
|
+
export const RequestBodyHttp$inboundSchema: z.ZodType<
|
|
865
|
+
RequestBodyHttp,
|
|
866
|
+
z.ZodTypeDef,
|
|
867
|
+
unknown
|
|
868
|
+
> = z.object({
|
|
869
|
+
blueprint: z.lazy(() => RequestBodyBlueprint$inboundSchema),
|
|
870
|
+
arguments: z.record(z.lazy(() => RequestBodyArguments$inboundSchema))
|
|
871
|
+
.optional(),
|
|
872
|
+
});
|
|
873
|
+
|
|
874
|
+
/** @internal */
|
|
875
|
+
export type RequestBodyHttp$Outbound = {
|
|
876
|
+
blueprint: RequestBodyBlueprint$Outbound;
|
|
877
|
+
arguments?: { [k: string]: RequestBodyArguments$Outbound } | undefined;
|
|
878
|
+
};
|
|
879
|
+
|
|
880
|
+
/** @internal */
|
|
881
|
+
export const RequestBodyHttp$outboundSchema: z.ZodType<
|
|
882
|
+
RequestBodyHttp$Outbound,
|
|
883
|
+
z.ZodTypeDef,
|
|
884
|
+
RequestBodyHttp
|
|
885
|
+
> = z.object({
|
|
886
|
+
blueprint: z.lazy(() => RequestBodyBlueprint$outboundSchema),
|
|
887
|
+
arguments: z.record(z.lazy(() => RequestBodyArguments$outboundSchema))
|
|
888
|
+
.optional(),
|
|
889
|
+
});
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* @internal
|
|
893
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
894
|
+
*/
|
|
895
|
+
export namespace RequestBodyHttp$ {
|
|
896
|
+
/** @deprecated use `RequestBodyHttp$inboundSchema` instead. */
|
|
897
|
+
export const inboundSchema = RequestBodyHttp$inboundSchema;
|
|
898
|
+
/** @deprecated use `RequestBodyHttp$outboundSchema` instead. */
|
|
899
|
+
export const outboundSchema = RequestBodyHttp$outboundSchema;
|
|
900
|
+
/** @deprecated use `RequestBodyHttp$Outbound` instead. */
|
|
901
|
+
export type Outbound = RequestBodyHttp$Outbound;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export function requestBodyHttpToJSON(
|
|
905
|
+
requestBodyHttp: RequestBodyHttp,
|
|
906
|
+
): string {
|
|
907
|
+
return JSON.stringify(RequestBodyHttp$outboundSchema.parse(requestBodyHttp));
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
export function requestBodyHttpFromJSON(
|
|
911
|
+
jsonString: string,
|
|
912
|
+
): SafeParseResult<RequestBodyHttp, SDKValidationError> {
|
|
913
|
+
return safeParse(
|
|
914
|
+
jsonString,
|
|
915
|
+
(x) => RequestBodyHttp$inboundSchema.parse(JSON.parse(x)),
|
|
916
|
+
`Failed to parse 'RequestBodyHttp' from JSON`,
|
|
917
|
+
);
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
/** @internal */
|
|
921
|
+
export const UpdateToolRequestBody3$inboundSchema: z.ZodType<
|
|
922
|
+
UpdateToolRequestBody3,
|
|
923
|
+
z.ZodTypeDef,
|
|
924
|
+
unknown
|
|
925
|
+
> = z.object({
|
|
926
|
+
path: z.string().optional(),
|
|
927
|
+
description: z.string().optional(),
|
|
928
|
+
status: UpdateToolRequestBodyToolsRequestStatus$inboundSchema,
|
|
929
|
+
version_hash: z.string(),
|
|
930
|
+
type: UpdateToolRequestBodyToolsRequestType$inboundSchema,
|
|
931
|
+
http: z.lazy(() => RequestBodyHttp$inboundSchema).optional(),
|
|
932
|
+
}).transform((v) => {
|
|
933
|
+
return remap$(v, {
|
|
934
|
+
"version_hash": "versionHash",
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
|
|
938
|
+
/** @internal */
|
|
939
|
+
export type UpdateToolRequestBody3$Outbound = {
|
|
940
|
+
path?: string | undefined;
|
|
941
|
+
description?: string | undefined;
|
|
942
|
+
status: string;
|
|
943
|
+
version_hash: string;
|
|
944
|
+
type: string;
|
|
945
|
+
http?: RequestBodyHttp$Outbound | undefined;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
/** @internal */
|
|
949
|
+
export const UpdateToolRequestBody3$outboundSchema: z.ZodType<
|
|
950
|
+
UpdateToolRequestBody3$Outbound,
|
|
951
|
+
z.ZodTypeDef,
|
|
952
|
+
UpdateToolRequestBody3
|
|
953
|
+
> = z.object({
|
|
954
|
+
path: z.string().optional(),
|
|
955
|
+
description: z.string().optional(),
|
|
956
|
+
status: UpdateToolRequestBodyToolsRequestStatus$outboundSchema,
|
|
957
|
+
versionHash: z.string(),
|
|
958
|
+
type: UpdateToolRequestBodyToolsRequestType$outboundSchema,
|
|
959
|
+
http: z.lazy(() => RequestBodyHttp$outboundSchema).optional(),
|
|
960
|
+
}).transform((v) => {
|
|
961
|
+
return remap$(v, {
|
|
962
|
+
versionHash: "version_hash",
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* @internal
|
|
968
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
969
|
+
*/
|
|
970
|
+
export namespace UpdateToolRequestBody3$ {
|
|
971
|
+
/** @deprecated use `UpdateToolRequestBody3$inboundSchema` instead. */
|
|
972
|
+
export const inboundSchema = UpdateToolRequestBody3$inboundSchema;
|
|
973
|
+
/** @deprecated use `UpdateToolRequestBody3$outboundSchema` instead. */
|
|
974
|
+
export const outboundSchema = UpdateToolRequestBody3$outboundSchema;
|
|
975
|
+
/** @deprecated use `UpdateToolRequestBody3$Outbound` instead. */
|
|
976
|
+
export type Outbound = UpdateToolRequestBody3$Outbound;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export function updateToolRequestBody3ToJSON(
|
|
980
|
+
updateToolRequestBody3: UpdateToolRequestBody3,
|
|
981
|
+
): string {
|
|
982
|
+
return JSON.stringify(
|
|
983
|
+
UpdateToolRequestBody3$outboundSchema.parse(updateToolRequestBody3),
|
|
984
|
+
);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
export function updateToolRequestBody3FromJSON(
|
|
988
|
+
jsonString: string,
|
|
989
|
+
): SafeParseResult<UpdateToolRequestBody3, SDKValidationError> {
|
|
990
|
+
return safeParse(
|
|
991
|
+
jsonString,
|
|
992
|
+
(x) => UpdateToolRequestBody3$inboundSchema.parse(JSON.parse(x)),
|
|
993
|
+
`Failed to parse 'UpdateToolRequestBody3' from JSON`,
|
|
994
|
+
);
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
/** @internal */
|
|
998
|
+
export const UpdateToolRequestBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
999
|
+
typeof UpdateToolRequestBodyToolsStatus
|
|
1000
|
+
> = z.nativeEnum(UpdateToolRequestBodyToolsStatus);
|
|
1001
|
+
|
|
1002
|
+
/** @internal */
|
|
1003
|
+
export const UpdateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
|
|
1004
|
+
typeof UpdateToolRequestBodyToolsStatus
|
|
1005
|
+
> = UpdateToolRequestBodyToolsStatus$inboundSchema;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* @internal
|
|
1009
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1010
|
+
*/
|
|
1011
|
+
export namespace UpdateToolRequestBodyToolsStatus$ {
|
|
1012
|
+
/** @deprecated use `UpdateToolRequestBodyToolsStatus$inboundSchema` instead. */
|
|
1013
|
+
export const inboundSchema = UpdateToolRequestBodyToolsStatus$inboundSchema;
|
|
1014
|
+
/** @deprecated use `UpdateToolRequestBodyToolsStatus$outboundSchema` instead. */
|
|
1015
|
+
export const outboundSchema = UpdateToolRequestBodyToolsStatus$outboundSchema;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/** @internal */
|
|
1019
|
+
export const UpdateToolRequestBodyToolsType$inboundSchema: z.ZodNativeEnum<
|
|
1020
|
+
typeof UpdateToolRequestBodyToolsType
|
|
1021
|
+
> = z.nativeEnum(UpdateToolRequestBodyToolsType);
|
|
1022
|
+
|
|
1023
|
+
/** @internal */
|
|
1024
|
+
export const UpdateToolRequestBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
1025
|
+
typeof UpdateToolRequestBodyToolsType
|
|
1026
|
+
> = UpdateToolRequestBodyToolsType$inboundSchema;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* @internal
|
|
1030
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1031
|
+
*/
|
|
1032
|
+
export namespace UpdateToolRequestBodyToolsType$ {
|
|
1033
|
+
/** @deprecated use `UpdateToolRequestBodyToolsType$inboundSchema` instead. */
|
|
1034
|
+
export const inboundSchema = UpdateToolRequestBodyToolsType$inboundSchema;
|
|
1035
|
+
/** @deprecated use `UpdateToolRequestBodyToolsType$outboundSchema` instead. */
|
|
1036
|
+
export const outboundSchema = UpdateToolRequestBodyToolsType$outboundSchema;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
/** @internal */
|
|
1040
|
+
export const UpdateToolRequestBodyJsonSchema$inboundSchema: z.ZodType<
|
|
1041
|
+
UpdateToolRequestBodyJsonSchema,
|
|
1042
|
+
z.ZodTypeDef,
|
|
1043
|
+
unknown
|
|
1044
|
+
> = z.object({
|
|
1045
|
+
name: z.string(),
|
|
1046
|
+
description: z.string().optional(),
|
|
1047
|
+
schema: z.record(z.any()),
|
|
1048
|
+
strict: z.nullable(z.boolean().default(false)),
|
|
1049
|
+
});
|
|
1050
|
+
|
|
1051
|
+
/** @internal */
|
|
1052
|
+
export type UpdateToolRequestBodyJsonSchema$Outbound = {
|
|
1053
|
+
name: string;
|
|
1054
|
+
description?: string | undefined;
|
|
1055
|
+
schema: { [k: string]: any };
|
|
1056
|
+
strict: boolean | null;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
/** @internal */
|
|
1060
|
+
export const UpdateToolRequestBodyJsonSchema$outboundSchema: z.ZodType<
|
|
1061
|
+
UpdateToolRequestBodyJsonSchema$Outbound,
|
|
1062
|
+
z.ZodTypeDef,
|
|
1063
|
+
UpdateToolRequestBodyJsonSchema
|
|
1064
|
+
> = z.object({
|
|
1065
|
+
name: z.string(),
|
|
1066
|
+
description: z.string().optional(),
|
|
1067
|
+
schema: z.record(z.any()),
|
|
1068
|
+
strict: z.nullable(z.boolean().default(false)),
|
|
1069
|
+
});
|
|
1070
|
+
|
|
1071
|
+
/**
|
|
1072
|
+
* @internal
|
|
1073
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1074
|
+
*/
|
|
1075
|
+
export namespace UpdateToolRequestBodyJsonSchema$ {
|
|
1076
|
+
/** @deprecated use `UpdateToolRequestBodyJsonSchema$inboundSchema` instead. */
|
|
1077
|
+
export const inboundSchema = UpdateToolRequestBodyJsonSchema$inboundSchema;
|
|
1078
|
+
/** @deprecated use `UpdateToolRequestBodyJsonSchema$outboundSchema` instead. */
|
|
1079
|
+
export const outboundSchema = UpdateToolRequestBodyJsonSchema$outboundSchema;
|
|
1080
|
+
/** @deprecated use `UpdateToolRequestBodyJsonSchema$Outbound` instead. */
|
|
1081
|
+
export type Outbound = UpdateToolRequestBodyJsonSchema$Outbound;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
export function updateToolRequestBodyJsonSchemaToJSON(
|
|
1085
|
+
updateToolRequestBodyJsonSchema: UpdateToolRequestBodyJsonSchema,
|
|
1086
|
+
): string {
|
|
1087
|
+
return JSON.stringify(
|
|
1088
|
+
UpdateToolRequestBodyJsonSchema$outboundSchema.parse(
|
|
1089
|
+
updateToolRequestBodyJsonSchema,
|
|
1090
|
+
),
|
|
1091
|
+
);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
export function updateToolRequestBodyJsonSchemaFromJSON(
|
|
1095
|
+
jsonString: string,
|
|
1096
|
+
): SafeParseResult<UpdateToolRequestBodyJsonSchema, SDKValidationError> {
|
|
1097
|
+
return safeParse(
|
|
1098
|
+
jsonString,
|
|
1099
|
+
(x) => UpdateToolRequestBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1100
|
+
`Failed to parse 'UpdateToolRequestBodyJsonSchema' from JSON`,
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/** @internal */
|
|
1105
|
+
export const UpdateToolRequestBody2$inboundSchema: z.ZodType<
|
|
1106
|
+
UpdateToolRequestBody2,
|
|
1107
|
+
z.ZodTypeDef,
|
|
1108
|
+
unknown
|
|
1109
|
+
> = z.object({
|
|
1110
|
+
path: z.string().optional(),
|
|
1111
|
+
description: z.string().optional(),
|
|
1112
|
+
status: UpdateToolRequestBodyToolsStatus$inboundSchema,
|
|
1113
|
+
version_hash: z.string(),
|
|
1114
|
+
type: UpdateToolRequestBodyToolsType$inboundSchema,
|
|
1115
|
+
json_schema: z.lazy(() => UpdateToolRequestBodyJsonSchema$inboundSchema)
|
|
1116
|
+
.optional(),
|
|
1117
|
+
}).transform((v) => {
|
|
1118
|
+
return remap$(v, {
|
|
1119
|
+
"version_hash": "versionHash",
|
|
1120
|
+
"json_schema": "jsonSchema",
|
|
1121
|
+
});
|
|
1122
|
+
});
|
|
1123
|
+
|
|
1124
|
+
/** @internal */
|
|
1125
|
+
export type UpdateToolRequestBody2$Outbound = {
|
|
1126
|
+
path?: string | undefined;
|
|
1127
|
+
description?: string | undefined;
|
|
1128
|
+
status: string;
|
|
1129
|
+
version_hash: string;
|
|
1130
|
+
type: string;
|
|
1131
|
+
json_schema?: UpdateToolRequestBodyJsonSchema$Outbound | undefined;
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
/** @internal */
|
|
1135
|
+
export const UpdateToolRequestBody2$outboundSchema: z.ZodType<
|
|
1136
|
+
UpdateToolRequestBody2$Outbound,
|
|
1137
|
+
z.ZodTypeDef,
|
|
1138
|
+
UpdateToolRequestBody2
|
|
1139
|
+
> = z.object({
|
|
1140
|
+
path: z.string().optional(),
|
|
1141
|
+
description: z.string().optional(),
|
|
1142
|
+
status: UpdateToolRequestBodyToolsStatus$outboundSchema,
|
|
1143
|
+
versionHash: z.string(),
|
|
1144
|
+
type: UpdateToolRequestBodyToolsType$outboundSchema,
|
|
1145
|
+
jsonSchema: z.lazy(() => UpdateToolRequestBodyJsonSchema$outboundSchema)
|
|
1146
|
+
.optional(),
|
|
1147
|
+
}).transform((v) => {
|
|
1148
|
+
return remap$(v, {
|
|
1149
|
+
versionHash: "version_hash",
|
|
1150
|
+
jsonSchema: "json_schema",
|
|
1151
|
+
});
|
|
1152
|
+
});
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* @internal
|
|
1156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1157
|
+
*/
|
|
1158
|
+
export namespace UpdateToolRequestBody2$ {
|
|
1159
|
+
/** @deprecated use `UpdateToolRequestBody2$inboundSchema` instead. */
|
|
1160
|
+
export const inboundSchema = UpdateToolRequestBody2$inboundSchema;
|
|
1161
|
+
/** @deprecated use `UpdateToolRequestBody2$outboundSchema` instead. */
|
|
1162
|
+
export const outboundSchema = UpdateToolRequestBody2$outboundSchema;
|
|
1163
|
+
/** @deprecated use `UpdateToolRequestBody2$Outbound` instead. */
|
|
1164
|
+
export type Outbound = UpdateToolRequestBody2$Outbound;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
export function updateToolRequestBody2ToJSON(
|
|
1168
|
+
updateToolRequestBody2: UpdateToolRequestBody2,
|
|
1169
|
+
): string {
|
|
1170
|
+
return JSON.stringify(
|
|
1171
|
+
UpdateToolRequestBody2$outboundSchema.parse(updateToolRequestBody2),
|
|
1172
|
+
);
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
export function updateToolRequestBody2FromJSON(
|
|
1176
|
+
jsonString: string,
|
|
1177
|
+
): SafeParseResult<UpdateToolRequestBody2, SDKValidationError> {
|
|
1178
|
+
return safeParse(
|
|
1179
|
+
jsonString,
|
|
1180
|
+
(x) => UpdateToolRequestBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1181
|
+
`Failed to parse 'UpdateToolRequestBody2' from JSON`,
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/** @internal */
|
|
1186
|
+
export const UpdateToolRequestBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
1187
|
+
typeof UpdateToolRequestBodyStatus
|
|
1188
|
+
> = z.nativeEnum(UpdateToolRequestBodyStatus);
|
|
1189
|
+
|
|
1190
|
+
/** @internal */
|
|
1191
|
+
export const UpdateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
1192
|
+
typeof UpdateToolRequestBodyStatus
|
|
1193
|
+
> = UpdateToolRequestBodyStatus$inboundSchema;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* @internal
|
|
1197
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1198
|
+
*/
|
|
1199
|
+
export namespace UpdateToolRequestBodyStatus$ {
|
|
1200
|
+
/** @deprecated use `UpdateToolRequestBodyStatus$inboundSchema` instead. */
|
|
1201
|
+
export const inboundSchema = UpdateToolRequestBodyStatus$inboundSchema;
|
|
1202
|
+
/** @deprecated use `UpdateToolRequestBodyStatus$outboundSchema` instead. */
|
|
1203
|
+
export const outboundSchema = UpdateToolRequestBodyStatus$outboundSchema;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/** @internal */
|
|
1207
|
+
export const UpdateToolRequestBodyType$inboundSchema: z.ZodNativeEnum<
|
|
1208
|
+
typeof UpdateToolRequestBodyType
|
|
1209
|
+
> = z.nativeEnum(UpdateToolRequestBodyType);
|
|
1210
|
+
|
|
1211
|
+
/** @internal */
|
|
1212
|
+
export const UpdateToolRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
1213
|
+
typeof UpdateToolRequestBodyType
|
|
1214
|
+
> = UpdateToolRequestBodyType$inboundSchema;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* @internal
|
|
1218
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1219
|
+
*/
|
|
1220
|
+
export namespace UpdateToolRequestBodyType$ {
|
|
1221
|
+
/** @deprecated use `UpdateToolRequestBodyType$inboundSchema` instead. */
|
|
1222
|
+
export const inboundSchema = UpdateToolRequestBodyType$inboundSchema;
|
|
1223
|
+
/** @deprecated use `UpdateToolRequestBodyType$outboundSchema` instead. */
|
|
1224
|
+
export const outboundSchema = UpdateToolRequestBodyType$outboundSchema;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/** @internal */
|
|
1228
|
+
export const UpdateToolRequestBodyFunction$inboundSchema: z.ZodType<
|
|
1229
|
+
UpdateToolRequestBodyFunction,
|
|
1230
|
+
z.ZodTypeDef,
|
|
1231
|
+
unknown
|
|
1232
|
+
> = z.object({
|
|
1233
|
+
name: z.string(),
|
|
1234
|
+
description: z.string().optional(),
|
|
1235
|
+
strict: z.boolean().optional(),
|
|
1236
|
+
parameters: z.record(z.any()).optional(),
|
|
1237
|
+
});
|
|
1238
|
+
|
|
1239
|
+
/** @internal */
|
|
1240
|
+
export type UpdateToolRequestBodyFunction$Outbound = {
|
|
1241
|
+
name: string;
|
|
1242
|
+
description?: string | undefined;
|
|
1243
|
+
strict?: boolean | undefined;
|
|
1244
|
+
parameters?: { [k: string]: any } | undefined;
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
/** @internal */
|
|
1248
|
+
export const UpdateToolRequestBodyFunction$outboundSchema: z.ZodType<
|
|
1249
|
+
UpdateToolRequestBodyFunction$Outbound,
|
|
1250
|
+
z.ZodTypeDef,
|
|
1251
|
+
UpdateToolRequestBodyFunction
|
|
1252
|
+
> = z.object({
|
|
1253
|
+
name: z.string(),
|
|
1254
|
+
description: z.string().optional(),
|
|
1255
|
+
strict: z.boolean().optional(),
|
|
1256
|
+
parameters: z.record(z.any()).optional(),
|
|
1257
|
+
});
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* @internal
|
|
1261
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1262
|
+
*/
|
|
1263
|
+
export namespace UpdateToolRequestBodyFunction$ {
|
|
1264
|
+
/** @deprecated use `UpdateToolRequestBodyFunction$inboundSchema` instead. */
|
|
1265
|
+
export const inboundSchema = UpdateToolRequestBodyFunction$inboundSchema;
|
|
1266
|
+
/** @deprecated use `UpdateToolRequestBodyFunction$outboundSchema` instead. */
|
|
1267
|
+
export const outboundSchema = UpdateToolRequestBodyFunction$outboundSchema;
|
|
1268
|
+
/** @deprecated use `UpdateToolRequestBodyFunction$Outbound` instead. */
|
|
1269
|
+
export type Outbound = UpdateToolRequestBodyFunction$Outbound;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
export function updateToolRequestBodyFunctionToJSON(
|
|
1273
|
+
updateToolRequestBodyFunction: UpdateToolRequestBodyFunction,
|
|
1274
|
+
): string {
|
|
1275
|
+
return JSON.stringify(
|
|
1276
|
+
UpdateToolRequestBodyFunction$outboundSchema.parse(
|
|
1277
|
+
updateToolRequestBodyFunction,
|
|
1278
|
+
),
|
|
1279
|
+
);
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
export function updateToolRequestBodyFunctionFromJSON(
|
|
1283
|
+
jsonString: string,
|
|
1284
|
+
): SafeParseResult<UpdateToolRequestBodyFunction, SDKValidationError> {
|
|
1285
|
+
return safeParse(
|
|
1286
|
+
jsonString,
|
|
1287
|
+
(x) => UpdateToolRequestBodyFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1288
|
+
`Failed to parse 'UpdateToolRequestBodyFunction' from JSON`,
|
|
1289
|
+
);
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/** @internal */
|
|
1293
|
+
export const UpdateToolRequestBody1$inboundSchema: z.ZodType<
|
|
1294
|
+
UpdateToolRequestBody1,
|
|
1295
|
+
z.ZodTypeDef,
|
|
1296
|
+
unknown
|
|
1297
|
+
> = z.object({
|
|
1298
|
+
path: z.string().optional(),
|
|
1299
|
+
description: z.string().optional(),
|
|
1300
|
+
status: UpdateToolRequestBodyStatus$inboundSchema,
|
|
1301
|
+
version_hash: z.string(),
|
|
1302
|
+
type: UpdateToolRequestBodyType$inboundSchema,
|
|
1303
|
+
function: z.lazy(() => UpdateToolRequestBodyFunction$inboundSchema)
|
|
1304
|
+
.optional(),
|
|
1305
|
+
}).transform((v) => {
|
|
1306
|
+
return remap$(v, {
|
|
1307
|
+
"version_hash": "versionHash",
|
|
1308
|
+
});
|
|
1309
|
+
});
|
|
1310
|
+
|
|
1311
|
+
/** @internal */
|
|
1312
|
+
export type UpdateToolRequestBody1$Outbound = {
|
|
1313
|
+
path?: string | undefined;
|
|
1314
|
+
description?: string | undefined;
|
|
1315
|
+
status: string;
|
|
1316
|
+
version_hash: string;
|
|
1317
|
+
type: string;
|
|
1318
|
+
function?: UpdateToolRequestBodyFunction$Outbound | undefined;
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
/** @internal */
|
|
1322
|
+
export const UpdateToolRequestBody1$outboundSchema: z.ZodType<
|
|
1323
|
+
UpdateToolRequestBody1$Outbound,
|
|
1324
|
+
z.ZodTypeDef,
|
|
1325
|
+
UpdateToolRequestBody1
|
|
1326
|
+
> = z.object({
|
|
1327
|
+
path: z.string().optional(),
|
|
1328
|
+
description: z.string().optional(),
|
|
1329
|
+
status: UpdateToolRequestBodyStatus$outboundSchema,
|
|
1330
|
+
versionHash: z.string(),
|
|
1331
|
+
type: UpdateToolRequestBodyType$outboundSchema,
|
|
1332
|
+
function: z.lazy(() => UpdateToolRequestBodyFunction$outboundSchema)
|
|
1333
|
+
.optional(),
|
|
1334
|
+
}).transform((v) => {
|
|
1335
|
+
return remap$(v, {
|
|
1336
|
+
versionHash: "version_hash",
|
|
1337
|
+
});
|
|
1338
|
+
});
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* @internal
|
|
1342
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1343
|
+
*/
|
|
1344
|
+
export namespace UpdateToolRequestBody1$ {
|
|
1345
|
+
/** @deprecated use `UpdateToolRequestBody1$inboundSchema` instead. */
|
|
1346
|
+
export const inboundSchema = UpdateToolRequestBody1$inboundSchema;
|
|
1347
|
+
/** @deprecated use `UpdateToolRequestBody1$outboundSchema` instead. */
|
|
1348
|
+
export const outboundSchema = UpdateToolRequestBody1$outboundSchema;
|
|
1349
|
+
/** @deprecated use `UpdateToolRequestBody1$Outbound` instead. */
|
|
1350
|
+
export type Outbound = UpdateToolRequestBody1$Outbound;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
export function updateToolRequestBody1ToJSON(
|
|
1354
|
+
updateToolRequestBody1: UpdateToolRequestBody1,
|
|
1355
|
+
): string {
|
|
1356
|
+
return JSON.stringify(
|
|
1357
|
+
UpdateToolRequestBody1$outboundSchema.parse(updateToolRequestBody1),
|
|
1358
|
+
);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export function updateToolRequestBody1FromJSON(
|
|
1362
|
+
jsonString: string,
|
|
1363
|
+
): SafeParseResult<UpdateToolRequestBody1, SDKValidationError> {
|
|
1364
|
+
return safeParse(
|
|
1365
|
+
jsonString,
|
|
1366
|
+
(x) => UpdateToolRequestBody1$inboundSchema.parse(JSON.parse(x)),
|
|
1367
|
+
`Failed to parse 'UpdateToolRequestBody1' from JSON`,
|
|
1368
|
+
);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
/** @internal */
|
|
1372
|
+
export const UpdateToolRequestBody$inboundSchema: z.ZodType<
|
|
1373
|
+
UpdateToolRequestBody,
|
|
1374
|
+
z.ZodTypeDef,
|
|
1375
|
+
unknown
|
|
1376
|
+
> = z.union([
|
|
1377
|
+
z.lazy(() => UpdateToolRequestBody1$inboundSchema),
|
|
1378
|
+
z.lazy(() => UpdateToolRequestBody2$inboundSchema),
|
|
1379
|
+
z.lazy(() => UpdateToolRequestBody3$inboundSchema),
|
|
1380
|
+
]);
|
|
1381
|
+
|
|
1382
|
+
/** @internal */
|
|
1383
|
+
export type UpdateToolRequestBody$Outbound =
|
|
1384
|
+
| UpdateToolRequestBody1$Outbound
|
|
1385
|
+
| UpdateToolRequestBody2$Outbound
|
|
1386
|
+
| UpdateToolRequestBody3$Outbound;
|
|
1387
|
+
|
|
1388
|
+
/** @internal */
|
|
1389
|
+
export const UpdateToolRequestBody$outboundSchema: z.ZodType<
|
|
1390
|
+
UpdateToolRequestBody$Outbound,
|
|
1391
|
+
z.ZodTypeDef,
|
|
1392
|
+
UpdateToolRequestBody
|
|
1393
|
+
> = z.union([
|
|
1394
|
+
z.lazy(() => UpdateToolRequestBody1$outboundSchema),
|
|
1395
|
+
z.lazy(() => UpdateToolRequestBody2$outboundSchema),
|
|
1396
|
+
z.lazy(() => UpdateToolRequestBody3$outboundSchema),
|
|
1397
|
+
]);
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* @internal
|
|
1401
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1402
|
+
*/
|
|
1403
|
+
export namespace UpdateToolRequestBody$ {
|
|
1404
|
+
/** @deprecated use `UpdateToolRequestBody$inboundSchema` instead. */
|
|
1405
|
+
export const inboundSchema = UpdateToolRequestBody$inboundSchema;
|
|
1406
|
+
/** @deprecated use `UpdateToolRequestBody$outboundSchema` instead. */
|
|
1407
|
+
export const outboundSchema = UpdateToolRequestBody$outboundSchema;
|
|
1408
|
+
/** @deprecated use `UpdateToolRequestBody$Outbound` instead. */
|
|
1409
|
+
export type Outbound = UpdateToolRequestBody$Outbound;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
export function updateToolRequestBodyToJSON(
|
|
1413
|
+
updateToolRequestBody: UpdateToolRequestBody,
|
|
1414
|
+
): string {
|
|
1415
|
+
return JSON.stringify(
|
|
1416
|
+
UpdateToolRequestBody$outboundSchema.parse(updateToolRequestBody),
|
|
1417
|
+
);
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
export function updateToolRequestBodyFromJSON(
|
|
1421
|
+
jsonString: string,
|
|
1422
|
+
): SafeParseResult<UpdateToolRequestBody, SDKValidationError> {
|
|
1423
|
+
return safeParse(
|
|
1424
|
+
jsonString,
|
|
1425
|
+
(x) => UpdateToolRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
1426
|
+
`Failed to parse 'UpdateToolRequestBody' from JSON`,
|
|
1427
|
+
);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/** @internal */
|
|
1431
|
+
export const UpdateToolRequest$inboundSchema: z.ZodType<
|
|
1432
|
+
UpdateToolRequest,
|
|
1433
|
+
z.ZodTypeDef,
|
|
1434
|
+
unknown
|
|
1435
|
+
> = z.object({
|
|
1436
|
+
tool_key: z.string(),
|
|
1437
|
+
RequestBody: z.union([
|
|
1438
|
+
z.lazy(() => UpdateToolRequestBody1$inboundSchema),
|
|
1439
|
+
z.lazy(() => UpdateToolRequestBody2$inboundSchema),
|
|
1440
|
+
z.lazy(() => UpdateToolRequestBody3$inboundSchema),
|
|
1441
|
+
]).optional(),
|
|
1442
|
+
}).transform((v) => {
|
|
1443
|
+
return remap$(v, {
|
|
1444
|
+
"tool_key": "toolKey",
|
|
1445
|
+
"RequestBody": "requestBody",
|
|
1446
|
+
});
|
|
1447
|
+
});
|
|
1448
|
+
|
|
1449
|
+
/** @internal */
|
|
1450
|
+
export type UpdateToolRequest$Outbound = {
|
|
1451
|
+
tool_key: string;
|
|
1452
|
+
RequestBody?:
|
|
1453
|
+
| UpdateToolRequestBody1$Outbound
|
|
1454
|
+
| UpdateToolRequestBody2$Outbound
|
|
1455
|
+
| UpdateToolRequestBody3$Outbound
|
|
1456
|
+
| undefined;
|
|
1457
|
+
};
|
|
1458
|
+
|
|
1459
|
+
/** @internal */
|
|
1460
|
+
export const UpdateToolRequest$outboundSchema: z.ZodType<
|
|
1461
|
+
UpdateToolRequest$Outbound,
|
|
1462
|
+
z.ZodTypeDef,
|
|
1463
|
+
UpdateToolRequest
|
|
1464
|
+
> = z.object({
|
|
1465
|
+
toolKey: z.string(),
|
|
1466
|
+
requestBody: z.union([
|
|
1467
|
+
z.lazy(() => UpdateToolRequestBody1$outboundSchema),
|
|
1468
|
+
z.lazy(() => UpdateToolRequestBody2$outboundSchema),
|
|
1469
|
+
z.lazy(() => UpdateToolRequestBody3$outboundSchema),
|
|
1470
|
+
]).optional(),
|
|
1471
|
+
}).transform((v) => {
|
|
1472
|
+
return remap$(v, {
|
|
1473
|
+
toolKey: "tool_key",
|
|
1474
|
+
requestBody: "RequestBody",
|
|
1475
|
+
});
|
|
1476
|
+
});
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* @internal
|
|
1480
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1481
|
+
*/
|
|
1482
|
+
export namespace UpdateToolRequest$ {
|
|
1483
|
+
/** @deprecated use `UpdateToolRequest$inboundSchema` instead. */
|
|
1484
|
+
export const inboundSchema = UpdateToolRequest$inboundSchema;
|
|
1485
|
+
/** @deprecated use `UpdateToolRequest$outboundSchema` instead. */
|
|
1486
|
+
export const outboundSchema = UpdateToolRequest$outboundSchema;
|
|
1487
|
+
/** @deprecated use `UpdateToolRequest$Outbound` instead. */
|
|
1488
|
+
export type Outbound = UpdateToolRequest$Outbound;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
export function updateToolRequestToJSON(
|
|
1492
|
+
updateToolRequest: UpdateToolRequest,
|
|
1493
|
+
): string {
|
|
1494
|
+
return JSON.stringify(
|
|
1495
|
+
UpdateToolRequest$outboundSchema.parse(updateToolRequest),
|
|
1496
|
+
);
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
export function updateToolRequestFromJSON(
|
|
1500
|
+
jsonString: string,
|
|
1501
|
+
): SafeParseResult<UpdateToolRequest, SDKValidationError> {
|
|
1502
|
+
return safeParse(
|
|
1503
|
+
jsonString,
|
|
1504
|
+
(x) => UpdateToolRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1505
|
+
`Failed to parse 'UpdateToolRequest' from JSON`,
|
|
1506
|
+
);
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
/** @internal */
|
|
1510
|
+
export const UpdateToolResponseBodyToolsResponseStatus$inboundSchema:
|
|
1511
|
+
z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> = z
|
|
1512
|
+
.nativeEnum(UpdateToolResponseBodyToolsResponseStatus);
|
|
1513
|
+
|
|
1514
|
+
/** @internal */
|
|
1515
|
+
export const UpdateToolResponseBodyToolsResponseStatus$outboundSchema:
|
|
1516
|
+
z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> =
|
|
1517
|
+
UpdateToolResponseBodyToolsResponseStatus$inboundSchema;
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* @internal
|
|
1521
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1522
|
+
*/
|
|
1523
|
+
export namespace UpdateToolResponseBodyToolsResponseStatus$ {
|
|
1524
|
+
/** @deprecated use `UpdateToolResponseBodyToolsResponseStatus$inboundSchema` instead. */
|
|
1525
|
+
export const inboundSchema =
|
|
1526
|
+
UpdateToolResponseBodyToolsResponseStatus$inboundSchema;
|
|
1527
|
+
/** @deprecated use `UpdateToolResponseBodyToolsResponseStatus$outboundSchema` instead. */
|
|
1528
|
+
export const outboundSchema =
|
|
1529
|
+
UpdateToolResponseBodyToolsResponseStatus$outboundSchema;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/** @internal */
|
|
1533
|
+
export const UpdateToolResponseBodyToolsResponseType$inboundSchema:
|
|
1534
|
+
z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseType> = z
|
|
1535
|
+
.nativeEnum(UpdateToolResponseBodyToolsResponseType);
|
|
1536
|
+
|
|
1537
|
+
/** @internal */
|
|
1538
|
+
export const UpdateToolResponseBodyToolsResponseType$outboundSchema:
|
|
1539
|
+
z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseType> =
|
|
1540
|
+
UpdateToolResponseBodyToolsResponseType$inboundSchema;
|
|
1541
|
+
|
|
1542
|
+
/**
|
|
1543
|
+
* @internal
|
|
1544
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1545
|
+
*/
|
|
1546
|
+
export namespace UpdateToolResponseBodyToolsResponseType$ {
|
|
1547
|
+
/** @deprecated use `UpdateToolResponseBodyToolsResponseType$inboundSchema` instead. */
|
|
1548
|
+
export const inboundSchema =
|
|
1549
|
+
UpdateToolResponseBodyToolsResponseType$inboundSchema;
|
|
1550
|
+
/** @deprecated use `UpdateToolResponseBodyToolsResponseType$outboundSchema` instead. */
|
|
1551
|
+
export const outboundSchema =
|
|
1552
|
+
UpdateToolResponseBodyToolsResponseType$outboundSchema;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
/** @internal */
|
|
1556
|
+
export const UpdateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
1557
|
+
typeof UpdateToolResponseBodyMethod
|
|
1558
|
+
> = z.nativeEnum(UpdateToolResponseBodyMethod);
|
|
1559
|
+
|
|
1560
|
+
/** @internal */
|
|
1561
|
+
export const UpdateToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
1562
|
+
typeof UpdateToolResponseBodyMethod
|
|
1563
|
+
> = UpdateToolResponseBodyMethod$inboundSchema;
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* @internal
|
|
1567
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1568
|
+
*/
|
|
1569
|
+
export namespace UpdateToolResponseBodyMethod$ {
|
|
1570
|
+
/** @deprecated use `UpdateToolResponseBodyMethod$inboundSchema` instead. */
|
|
1571
|
+
export const inboundSchema = UpdateToolResponseBodyMethod$inboundSchema;
|
|
1572
|
+
/** @deprecated use `UpdateToolResponseBodyMethod$outboundSchema` instead. */
|
|
1573
|
+
export const outboundSchema = UpdateToolResponseBodyMethod$outboundSchema;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/** @internal */
|
|
1577
|
+
export const UpdateToolResponseBodyBlueprint$inboundSchema: z.ZodType<
|
|
1578
|
+
UpdateToolResponseBodyBlueprint,
|
|
1579
|
+
z.ZodTypeDef,
|
|
1580
|
+
unknown
|
|
1581
|
+
> = z.object({
|
|
1582
|
+
url: z.string(),
|
|
1583
|
+
method: UpdateToolResponseBodyMethod$inboundSchema,
|
|
1584
|
+
headers: z.record(z.string()).optional(),
|
|
1585
|
+
body: z.record(z.any()).optional(),
|
|
1586
|
+
});
|
|
1587
|
+
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export type UpdateToolResponseBodyBlueprint$Outbound = {
|
|
1590
|
+
url: string;
|
|
1591
|
+
method: string;
|
|
1592
|
+
headers?: { [k: string]: string } | undefined;
|
|
1593
|
+
body?: { [k: string]: any } | undefined;
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
/** @internal */
|
|
1597
|
+
export const UpdateToolResponseBodyBlueprint$outboundSchema: z.ZodType<
|
|
1598
|
+
UpdateToolResponseBodyBlueprint$Outbound,
|
|
1599
|
+
z.ZodTypeDef,
|
|
1600
|
+
UpdateToolResponseBodyBlueprint
|
|
1601
|
+
> = z.object({
|
|
1602
|
+
url: z.string(),
|
|
1603
|
+
method: UpdateToolResponseBodyMethod$outboundSchema,
|
|
1604
|
+
headers: z.record(z.string()).optional(),
|
|
1605
|
+
body: z.record(z.any()).optional(),
|
|
1606
|
+
});
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* @internal
|
|
1610
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1611
|
+
*/
|
|
1612
|
+
export namespace UpdateToolResponseBodyBlueprint$ {
|
|
1613
|
+
/** @deprecated use `UpdateToolResponseBodyBlueprint$inboundSchema` instead. */
|
|
1614
|
+
export const inboundSchema = UpdateToolResponseBodyBlueprint$inboundSchema;
|
|
1615
|
+
/** @deprecated use `UpdateToolResponseBodyBlueprint$outboundSchema` instead. */
|
|
1616
|
+
export const outboundSchema = UpdateToolResponseBodyBlueprint$outboundSchema;
|
|
1617
|
+
/** @deprecated use `UpdateToolResponseBodyBlueprint$Outbound` instead. */
|
|
1618
|
+
export type Outbound = UpdateToolResponseBodyBlueprint$Outbound;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export function updateToolResponseBodyBlueprintToJSON(
|
|
1622
|
+
updateToolResponseBodyBlueprint: UpdateToolResponseBodyBlueprint,
|
|
1623
|
+
): string {
|
|
1624
|
+
return JSON.stringify(
|
|
1625
|
+
UpdateToolResponseBodyBlueprint$outboundSchema.parse(
|
|
1626
|
+
updateToolResponseBodyBlueprint,
|
|
1627
|
+
),
|
|
1628
|
+
);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
export function updateToolResponseBodyBlueprintFromJSON(
|
|
1632
|
+
jsonString: string,
|
|
1633
|
+
): SafeParseResult<UpdateToolResponseBodyBlueprint, SDKValidationError> {
|
|
1634
|
+
return safeParse(
|
|
1635
|
+
jsonString,
|
|
1636
|
+
(x) => UpdateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
1637
|
+
`Failed to parse 'UpdateToolResponseBodyBlueprint' from JSON`,
|
|
1638
|
+
);
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
/** @internal */
|
|
1642
|
+
export const UpdateToolResponseBodyToolsResponse200Type$inboundSchema:
|
|
1643
|
+
z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Type> = z
|
|
1644
|
+
.nativeEnum(UpdateToolResponseBodyToolsResponse200Type);
|
|
1645
|
+
|
|
1646
|
+
/** @internal */
|
|
1647
|
+
export const UpdateToolResponseBodyToolsResponse200Type$outboundSchema:
|
|
1648
|
+
z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Type> =
|
|
1649
|
+
UpdateToolResponseBodyToolsResponse200Type$inboundSchema;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* @internal
|
|
1653
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1654
|
+
*/
|
|
1655
|
+
export namespace UpdateToolResponseBodyToolsResponse200Type$ {
|
|
1656
|
+
/** @deprecated use `UpdateToolResponseBodyToolsResponse200Type$inboundSchema` instead. */
|
|
1657
|
+
export const inboundSchema =
|
|
1658
|
+
UpdateToolResponseBodyToolsResponse200Type$inboundSchema;
|
|
1659
|
+
/** @deprecated use `UpdateToolResponseBodyToolsResponse200Type$outboundSchema` instead. */
|
|
1660
|
+
export const outboundSchema =
|
|
1661
|
+
UpdateToolResponseBodyToolsResponse200Type$outboundSchema;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
/** @internal */
|
|
1665
|
+
export const UpdateToolResponseBodyDefaultValue$inboundSchema: z.ZodType<
|
|
1666
|
+
UpdateToolResponseBodyDefaultValue,
|
|
1667
|
+
z.ZodTypeDef,
|
|
1668
|
+
unknown
|
|
1669
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1670
|
+
|
|
1671
|
+
/** @internal */
|
|
1672
|
+
export type UpdateToolResponseBodyDefaultValue$Outbound =
|
|
1673
|
+
| string
|
|
1674
|
+
| number
|
|
1675
|
+
| boolean;
|
|
1676
|
+
|
|
1677
|
+
/** @internal */
|
|
1678
|
+
export const UpdateToolResponseBodyDefaultValue$outboundSchema: z.ZodType<
|
|
1679
|
+
UpdateToolResponseBodyDefaultValue$Outbound,
|
|
1680
|
+
z.ZodTypeDef,
|
|
1681
|
+
UpdateToolResponseBodyDefaultValue
|
|
1682
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* @internal
|
|
1686
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1687
|
+
*/
|
|
1688
|
+
export namespace UpdateToolResponseBodyDefaultValue$ {
|
|
1689
|
+
/** @deprecated use `UpdateToolResponseBodyDefaultValue$inboundSchema` instead. */
|
|
1690
|
+
export const inboundSchema = UpdateToolResponseBodyDefaultValue$inboundSchema;
|
|
1691
|
+
/** @deprecated use `UpdateToolResponseBodyDefaultValue$outboundSchema` instead. */
|
|
1692
|
+
export const outboundSchema =
|
|
1693
|
+
UpdateToolResponseBodyDefaultValue$outboundSchema;
|
|
1694
|
+
/** @deprecated use `UpdateToolResponseBodyDefaultValue$Outbound` instead. */
|
|
1695
|
+
export type Outbound = UpdateToolResponseBodyDefaultValue$Outbound;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
export function updateToolResponseBodyDefaultValueToJSON(
|
|
1699
|
+
updateToolResponseBodyDefaultValue: UpdateToolResponseBodyDefaultValue,
|
|
1700
|
+
): string {
|
|
1701
|
+
return JSON.stringify(
|
|
1702
|
+
UpdateToolResponseBodyDefaultValue$outboundSchema.parse(
|
|
1703
|
+
updateToolResponseBodyDefaultValue,
|
|
1704
|
+
),
|
|
1705
|
+
);
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
export function updateToolResponseBodyDefaultValueFromJSON(
|
|
1709
|
+
jsonString: string,
|
|
1710
|
+
): SafeParseResult<UpdateToolResponseBodyDefaultValue, SDKValidationError> {
|
|
1711
|
+
return safeParse(
|
|
1712
|
+
jsonString,
|
|
1713
|
+
(x) =>
|
|
1714
|
+
UpdateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
1715
|
+
`Failed to parse 'UpdateToolResponseBodyDefaultValue' from JSON`,
|
|
1716
|
+
);
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
/** @internal */
|
|
1720
|
+
export const UpdateToolResponseBodyArguments$inboundSchema: z.ZodType<
|
|
1721
|
+
UpdateToolResponseBodyArguments,
|
|
1722
|
+
z.ZodTypeDef,
|
|
1723
|
+
unknown
|
|
1724
|
+
> = z.object({
|
|
1725
|
+
type: UpdateToolResponseBodyToolsResponse200Type$inboundSchema,
|
|
1726
|
+
description: z.string(),
|
|
1727
|
+
send_to_model: z.boolean().default(true),
|
|
1728
|
+
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
1729
|
+
}).transform((v) => {
|
|
1730
|
+
return remap$(v, {
|
|
1731
|
+
"send_to_model": "sendToModel",
|
|
1732
|
+
"default_value": "defaultValue",
|
|
1733
|
+
});
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
/** @internal */
|
|
1737
|
+
export type UpdateToolResponseBodyArguments$Outbound = {
|
|
1738
|
+
type: string;
|
|
1739
|
+
description: string;
|
|
1740
|
+
send_to_model: boolean;
|
|
1741
|
+
default_value?: string | number | boolean | undefined;
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
/** @internal */
|
|
1745
|
+
export const UpdateToolResponseBodyArguments$outboundSchema: z.ZodType<
|
|
1746
|
+
UpdateToolResponseBodyArguments$Outbound,
|
|
1747
|
+
z.ZodTypeDef,
|
|
1748
|
+
UpdateToolResponseBodyArguments
|
|
1749
|
+
> = z.object({
|
|
1750
|
+
type: UpdateToolResponseBodyToolsResponse200Type$outboundSchema,
|
|
1751
|
+
description: z.string(),
|
|
1752
|
+
sendToModel: z.boolean().default(true),
|
|
1753
|
+
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
1754
|
+
}).transform((v) => {
|
|
1755
|
+
return remap$(v, {
|
|
1756
|
+
sendToModel: "send_to_model",
|
|
1757
|
+
defaultValue: "default_value",
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* @internal
|
|
1763
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1764
|
+
*/
|
|
1765
|
+
export namespace UpdateToolResponseBodyArguments$ {
|
|
1766
|
+
/** @deprecated use `UpdateToolResponseBodyArguments$inboundSchema` instead. */
|
|
1767
|
+
export const inboundSchema = UpdateToolResponseBodyArguments$inboundSchema;
|
|
1768
|
+
/** @deprecated use `UpdateToolResponseBodyArguments$outboundSchema` instead. */
|
|
1769
|
+
export const outboundSchema = UpdateToolResponseBodyArguments$outboundSchema;
|
|
1770
|
+
/** @deprecated use `UpdateToolResponseBodyArguments$Outbound` instead. */
|
|
1771
|
+
export type Outbound = UpdateToolResponseBodyArguments$Outbound;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
export function updateToolResponseBodyArgumentsToJSON(
|
|
1775
|
+
updateToolResponseBodyArguments: UpdateToolResponseBodyArguments,
|
|
1776
|
+
): string {
|
|
1777
|
+
return JSON.stringify(
|
|
1778
|
+
UpdateToolResponseBodyArguments$outboundSchema.parse(
|
|
1779
|
+
updateToolResponseBodyArguments,
|
|
1780
|
+
),
|
|
1781
|
+
);
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
export function updateToolResponseBodyArgumentsFromJSON(
|
|
1785
|
+
jsonString: string,
|
|
1786
|
+
): SafeParseResult<UpdateToolResponseBodyArguments, SDKValidationError> {
|
|
1787
|
+
return safeParse(
|
|
1788
|
+
jsonString,
|
|
1789
|
+
(x) => UpdateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
|
|
1790
|
+
`Failed to parse 'UpdateToolResponseBodyArguments' from JSON`,
|
|
1791
|
+
);
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1794
|
+
/** @internal */
|
|
1795
|
+
export const UpdateToolResponseBodyHttp$inboundSchema: z.ZodType<
|
|
1796
|
+
UpdateToolResponseBodyHttp,
|
|
1797
|
+
z.ZodTypeDef,
|
|
1798
|
+
unknown
|
|
1799
|
+
> = z.object({
|
|
1800
|
+
blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$inboundSchema),
|
|
1801
|
+
arguments: z.record(
|
|
1802
|
+
z.lazy(() => UpdateToolResponseBodyArguments$inboundSchema),
|
|
1803
|
+
).optional(),
|
|
1804
|
+
});
|
|
1805
|
+
|
|
1806
|
+
/** @internal */
|
|
1807
|
+
export type UpdateToolResponseBodyHttp$Outbound = {
|
|
1808
|
+
blueprint: UpdateToolResponseBodyBlueprint$Outbound;
|
|
1809
|
+
arguments?:
|
|
1810
|
+
| { [k: string]: UpdateToolResponseBodyArguments$Outbound }
|
|
1811
|
+
| undefined;
|
|
1812
|
+
};
|
|
1813
|
+
|
|
1814
|
+
/** @internal */
|
|
1815
|
+
export const UpdateToolResponseBodyHttp$outboundSchema: z.ZodType<
|
|
1816
|
+
UpdateToolResponseBodyHttp$Outbound,
|
|
1817
|
+
z.ZodTypeDef,
|
|
1818
|
+
UpdateToolResponseBodyHttp
|
|
1819
|
+
> = z.object({
|
|
1820
|
+
blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$outboundSchema),
|
|
1821
|
+
arguments: z.record(
|
|
1822
|
+
z.lazy(() => UpdateToolResponseBodyArguments$outboundSchema),
|
|
1823
|
+
).optional(),
|
|
1824
|
+
});
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* @internal
|
|
1828
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1829
|
+
*/
|
|
1830
|
+
export namespace UpdateToolResponseBodyHttp$ {
|
|
1831
|
+
/** @deprecated use `UpdateToolResponseBodyHttp$inboundSchema` instead. */
|
|
1832
|
+
export const inboundSchema = UpdateToolResponseBodyHttp$inboundSchema;
|
|
1833
|
+
/** @deprecated use `UpdateToolResponseBodyHttp$outboundSchema` instead. */
|
|
1834
|
+
export const outboundSchema = UpdateToolResponseBodyHttp$outboundSchema;
|
|
1835
|
+
/** @deprecated use `UpdateToolResponseBodyHttp$Outbound` instead. */
|
|
1836
|
+
export type Outbound = UpdateToolResponseBodyHttp$Outbound;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
export function updateToolResponseBodyHttpToJSON(
|
|
1840
|
+
updateToolResponseBodyHttp: UpdateToolResponseBodyHttp,
|
|
1841
|
+
): string {
|
|
1842
|
+
return JSON.stringify(
|
|
1843
|
+
UpdateToolResponseBodyHttp$outboundSchema.parse(updateToolResponseBodyHttp),
|
|
1844
|
+
);
|
|
1845
|
+
}
|
|
1846
|
+
|
|
1847
|
+
export function updateToolResponseBodyHttpFromJSON(
|
|
1848
|
+
jsonString: string,
|
|
1849
|
+
): SafeParseResult<UpdateToolResponseBodyHttp, SDKValidationError> {
|
|
1850
|
+
return safeParse(
|
|
1851
|
+
jsonString,
|
|
1852
|
+
(x) => UpdateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
|
|
1853
|
+
`Failed to parse 'UpdateToolResponseBodyHttp' from JSON`,
|
|
1854
|
+
);
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/** @internal */
|
|
1858
|
+
export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
|
|
1859
|
+
UpdateToolResponseBody3,
|
|
1860
|
+
z.ZodTypeDef,
|
|
1861
|
+
unknown
|
|
1862
|
+
> = z.object({
|
|
1863
|
+
_id: z.string().default("tool_01JRT05N2T05XVSBM8AN8Z5TYQ"),
|
|
1864
|
+
path: z.string(),
|
|
1865
|
+
key: z.string(),
|
|
1866
|
+
description: z.string(),
|
|
1867
|
+
created_by_id: z.string().optional(),
|
|
1868
|
+
updated_by_id: z.string().optional(),
|
|
1869
|
+
project_id: z.string(),
|
|
1870
|
+
workspace_id: z.string(),
|
|
1871
|
+
created: z.string(),
|
|
1872
|
+
updated: z.string(),
|
|
1873
|
+
status: UpdateToolResponseBodyToolsResponseStatus$inboundSchema,
|
|
1874
|
+
version_hash: z.string(),
|
|
1875
|
+
type: UpdateToolResponseBodyToolsResponseType$inboundSchema,
|
|
1876
|
+
http: z.lazy(() => UpdateToolResponseBodyHttp$inboundSchema),
|
|
1877
|
+
}).transform((v) => {
|
|
1878
|
+
return remap$(v, {
|
|
1879
|
+
"_id": "id",
|
|
1880
|
+
"created_by_id": "createdById",
|
|
1881
|
+
"updated_by_id": "updatedById",
|
|
1882
|
+
"project_id": "projectId",
|
|
1883
|
+
"workspace_id": "workspaceId",
|
|
1884
|
+
"version_hash": "versionHash",
|
|
1885
|
+
});
|
|
1886
|
+
});
|
|
1887
|
+
|
|
1888
|
+
/** @internal */
|
|
1889
|
+
export type UpdateToolResponseBody3$Outbound = {
|
|
1890
|
+
_id: string;
|
|
1891
|
+
path: string;
|
|
1892
|
+
key: string;
|
|
1893
|
+
description: string;
|
|
1894
|
+
created_by_id?: string | undefined;
|
|
1895
|
+
updated_by_id?: string | undefined;
|
|
1896
|
+
project_id: string;
|
|
1897
|
+
workspace_id: string;
|
|
1898
|
+
created: string;
|
|
1899
|
+
updated: string;
|
|
1900
|
+
status: string;
|
|
1901
|
+
version_hash: string;
|
|
1902
|
+
type: string;
|
|
1903
|
+
http: UpdateToolResponseBodyHttp$Outbound;
|
|
1904
|
+
};
|
|
1905
|
+
|
|
1906
|
+
/** @internal */
|
|
1907
|
+
export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
|
|
1908
|
+
UpdateToolResponseBody3$Outbound,
|
|
1909
|
+
z.ZodTypeDef,
|
|
1910
|
+
UpdateToolResponseBody3
|
|
1911
|
+
> = z.object({
|
|
1912
|
+
id: z.string().default("tool_01JRT05N2T05XVSBM8AN8Z5TYQ"),
|
|
1913
|
+
path: z.string(),
|
|
1914
|
+
key: z.string(),
|
|
1915
|
+
description: z.string(),
|
|
1916
|
+
createdById: z.string().optional(),
|
|
1917
|
+
updatedById: z.string().optional(),
|
|
1918
|
+
projectId: z.string(),
|
|
1919
|
+
workspaceId: z.string(),
|
|
1920
|
+
created: z.string(),
|
|
1921
|
+
updated: z.string(),
|
|
1922
|
+
status: UpdateToolResponseBodyToolsResponseStatus$outboundSchema,
|
|
1923
|
+
versionHash: z.string(),
|
|
1924
|
+
type: UpdateToolResponseBodyToolsResponseType$outboundSchema,
|
|
1925
|
+
http: z.lazy(() => UpdateToolResponseBodyHttp$outboundSchema),
|
|
1926
|
+
}).transform((v) => {
|
|
1927
|
+
return remap$(v, {
|
|
1928
|
+
id: "_id",
|
|
1929
|
+
createdById: "created_by_id",
|
|
1930
|
+
updatedById: "updated_by_id",
|
|
1931
|
+
projectId: "project_id",
|
|
1932
|
+
workspaceId: "workspace_id",
|
|
1933
|
+
versionHash: "version_hash",
|
|
1934
|
+
});
|
|
1935
|
+
});
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* @internal
|
|
1939
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1940
|
+
*/
|
|
1941
|
+
export namespace UpdateToolResponseBody3$ {
|
|
1942
|
+
/** @deprecated use `UpdateToolResponseBody3$inboundSchema` instead. */
|
|
1943
|
+
export const inboundSchema = UpdateToolResponseBody3$inboundSchema;
|
|
1944
|
+
/** @deprecated use `UpdateToolResponseBody3$outboundSchema` instead. */
|
|
1945
|
+
export const outboundSchema = UpdateToolResponseBody3$outboundSchema;
|
|
1946
|
+
/** @deprecated use `UpdateToolResponseBody3$Outbound` instead. */
|
|
1947
|
+
export type Outbound = UpdateToolResponseBody3$Outbound;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
export function updateToolResponseBody3ToJSON(
|
|
1951
|
+
updateToolResponseBody3: UpdateToolResponseBody3,
|
|
1952
|
+
): string {
|
|
1953
|
+
return JSON.stringify(
|
|
1954
|
+
UpdateToolResponseBody3$outboundSchema.parse(updateToolResponseBody3),
|
|
1955
|
+
);
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
export function updateToolResponseBody3FromJSON(
|
|
1959
|
+
jsonString: string,
|
|
1960
|
+
): SafeParseResult<UpdateToolResponseBody3, SDKValidationError> {
|
|
1961
|
+
return safeParse(
|
|
1962
|
+
jsonString,
|
|
1963
|
+
(x) => UpdateToolResponseBody3$inboundSchema.parse(JSON.parse(x)),
|
|
1964
|
+
`Failed to parse 'UpdateToolResponseBody3' from JSON`,
|
|
1965
|
+
);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/** @internal */
|
|
1969
|
+
export const UpdateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1970
|
+
typeof UpdateToolResponseBodyToolsStatus
|
|
1971
|
+
> = z.nativeEnum(UpdateToolResponseBodyToolsStatus);
|
|
1972
|
+
|
|
1973
|
+
/** @internal */
|
|
1974
|
+
export const UpdateToolResponseBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
|
|
1975
|
+
typeof UpdateToolResponseBodyToolsStatus
|
|
1976
|
+
> = UpdateToolResponseBodyToolsStatus$inboundSchema;
|
|
1977
|
+
|
|
1978
|
+
/**
|
|
1979
|
+
* @internal
|
|
1980
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1981
|
+
*/
|
|
1982
|
+
export namespace UpdateToolResponseBodyToolsStatus$ {
|
|
1983
|
+
/** @deprecated use `UpdateToolResponseBodyToolsStatus$inboundSchema` instead. */
|
|
1984
|
+
export const inboundSchema = UpdateToolResponseBodyToolsStatus$inboundSchema;
|
|
1985
|
+
/** @deprecated use `UpdateToolResponseBodyToolsStatus$outboundSchema` instead. */
|
|
1986
|
+
export const outboundSchema =
|
|
1987
|
+
UpdateToolResponseBodyToolsStatus$outboundSchema;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
/** @internal */
|
|
1991
|
+
export const UpdateToolResponseBodyToolsType$inboundSchema: z.ZodNativeEnum<
|
|
1992
|
+
typeof UpdateToolResponseBodyToolsType
|
|
1993
|
+
> = z.nativeEnum(UpdateToolResponseBodyToolsType);
|
|
1994
|
+
|
|
1995
|
+
/** @internal */
|
|
1996
|
+
export const UpdateToolResponseBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
1997
|
+
typeof UpdateToolResponseBodyToolsType
|
|
1998
|
+
> = UpdateToolResponseBodyToolsType$inboundSchema;
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
* @internal
|
|
2002
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2003
|
+
*/
|
|
2004
|
+
export namespace UpdateToolResponseBodyToolsType$ {
|
|
2005
|
+
/** @deprecated use `UpdateToolResponseBodyToolsType$inboundSchema` instead. */
|
|
2006
|
+
export const inboundSchema = UpdateToolResponseBodyToolsType$inboundSchema;
|
|
2007
|
+
/** @deprecated use `UpdateToolResponseBodyToolsType$outboundSchema` instead. */
|
|
2008
|
+
export const outboundSchema = UpdateToolResponseBodyToolsType$outboundSchema;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
/** @internal */
|
|
2012
|
+
export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
|
|
2013
|
+
UpdateToolResponseBodyJsonSchema,
|
|
2014
|
+
z.ZodTypeDef,
|
|
2015
|
+
unknown
|
|
2016
|
+
> = z.object({
|
|
2017
|
+
name: z.string(),
|
|
2018
|
+
description: z.string().optional(),
|
|
2019
|
+
schema: z.record(z.any()),
|
|
2020
|
+
strict: z.nullable(z.boolean().default(false)),
|
|
2021
|
+
});
|
|
2022
|
+
|
|
2023
|
+
/** @internal */
|
|
2024
|
+
export type UpdateToolResponseBodyJsonSchema$Outbound = {
|
|
2025
|
+
name: string;
|
|
2026
|
+
description?: string | undefined;
|
|
2027
|
+
schema: { [k: string]: any };
|
|
2028
|
+
strict: boolean | null;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
/** @internal */
|
|
2032
|
+
export const UpdateToolResponseBodyJsonSchema$outboundSchema: z.ZodType<
|
|
2033
|
+
UpdateToolResponseBodyJsonSchema$Outbound,
|
|
2034
|
+
z.ZodTypeDef,
|
|
2035
|
+
UpdateToolResponseBodyJsonSchema
|
|
2036
|
+
> = z.object({
|
|
2037
|
+
name: z.string(),
|
|
2038
|
+
description: z.string().optional(),
|
|
2039
|
+
schema: z.record(z.any()),
|
|
2040
|
+
strict: z.nullable(z.boolean().default(false)),
|
|
2041
|
+
});
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* @internal
|
|
2045
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2046
|
+
*/
|
|
2047
|
+
export namespace UpdateToolResponseBodyJsonSchema$ {
|
|
2048
|
+
/** @deprecated use `UpdateToolResponseBodyJsonSchema$inboundSchema` instead. */
|
|
2049
|
+
export const inboundSchema = UpdateToolResponseBodyJsonSchema$inboundSchema;
|
|
2050
|
+
/** @deprecated use `UpdateToolResponseBodyJsonSchema$outboundSchema` instead. */
|
|
2051
|
+
export const outboundSchema = UpdateToolResponseBodyJsonSchema$outboundSchema;
|
|
2052
|
+
/** @deprecated use `UpdateToolResponseBodyJsonSchema$Outbound` instead. */
|
|
2053
|
+
export type Outbound = UpdateToolResponseBodyJsonSchema$Outbound;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
export function updateToolResponseBodyJsonSchemaToJSON(
|
|
2057
|
+
updateToolResponseBodyJsonSchema: UpdateToolResponseBodyJsonSchema,
|
|
2058
|
+
): string {
|
|
2059
|
+
return JSON.stringify(
|
|
2060
|
+
UpdateToolResponseBodyJsonSchema$outboundSchema.parse(
|
|
2061
|
+
updateToolResponseBodyJsonSchema,
|
|
2062
|
+
),
|
|
2063
|
+
);
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export function updateToolResponseBodyJsonSchemaFromJSON(
|
|
2067
|
+
jsonString: string,
|
|
2068
|
+
): SafeParseResult<UpdateToolResponseBodyJsonSchema, SDKValidationError> {
|
|
2069
|
+
return safeParse(
|
|
2070
|
+
jsonString,
|
|
2071
|
+
(x) => UpdateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2072
|
+
`Failed to parse 'UpdateToolResponseBodyJsonSchema' from JSON`,
|
|
2073
|
+
);
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
/** @internal */
|
|
2077
|
+
export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
|
|
2078
|
+
UpdateToolResponseBody2,
|
|
2079
|
+
z.ZodTypeDef,
|
|
2080
|
+
unknown
|
|
2081
|
+
> = z.object({
|
|
2082
|
+
_id: z.string().default("tool_01JRT05N2TBDXT1QDT2BRQAFKY"),
|
|
2083
|
+
path: z.string(),
|
|
2084
|
+
key: z.string(),
|
|
2085
|
+
description: z.string(),
|
|
2086
|
+
created_by_id: z.string().optional(),
|
|
2087
|
+
updated_by_id: z.string().optional(),
|
|
2088
|
+
project_id: z.string(),
|
|
2089
|
+
workspace_id: z.string(),
|
|
2090
|
+
created: z.string(),
|
|
2091
|
+
updated: z.string(),
|
|
2092
|
+
status: UpdateToolResponseBodyToolsStatus$inboundSchema,
|
|
2093
|
+
version_hash: z.string(),
|
|
2094
|
+
type: UpdateToolResponseBodyToolsType$inboundSchema,
|
|
2095
|
+
json_schema: z.lazy(() => UpdateToolResponseBodyJsonSchema$inboundSchema),
|
|
2096
|
+
}).transform((v) => {
|
|
2097
|
+
return remap$(v, {
|
|
2098
|
+
"_id": "id",
|
|
2099
|
+
"created_by_id": "createdById",
|
|
2100
|
+
"updated_by_id": "updatedById",
|
|
2101
|
+
"project_id": "projectId",
|
|
2102
|
+
"workspace_id": "workspaceId",
|
|
2103
|
+
"version_hash": "versionHash",
|
|
2104
|
+
"json_schema": "jsonSchema",
|
|
2105
|
+
});
|
|
2106
|
+
});
|
|
2107
|
+
|
|
2108
|
+
/** @internal */
|
|
2109
|
+
export type UpdateToolResponseBody2$Outbound = {
|
|
2110
|
+
_id: string;
|
|
2111
|
+
path: string;
|
|
2112
|
+
key: string;
|
|
2113
|
+
description: string;
|
|
2114
|
+
created_by_id?: string | undefined;
|
|
2115
|
+
updated_by_id?: string | undefined;
|
|
2116
|
+
project_id: string;
|
|
2117
|
+
workspace_id: string;
|
|
2118
|
+
created: string;
|
|
2119
|
+
updated: string;
|
|
2120
|
+
status: string;
|
|
2121
|
+
version_hash: string;
|
|
2122
|
+
type: string;
|
|
2123
|
+
json_schema: UpdateToolResponseBodyJsonSchema$Outbound;
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
/** @internal */
|
|
2127
|
+
export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
|
|
2128
|
+
UpdateToolResponseBody2$Outbound,
|
|
2129
|
+
z.ZodTypeDef,
|
|
2130
|
+
UpdateToolResponseBody2
|
|
2131
|
+
> = z.object({
|
|
2132
|
+
id: z.string().default("tool_01JRT05N2TBDXT1QDT2BRQAFKY"),
|
|
2133
|
+
path: z.string(),
|
|
2134
|
+
key: z.string(),
|
|
2135
|
+
description: z.string(),
|
|
2136
|
+
createdById: z.string().optional(),
|
|
2137
|
+
updatedById: z.string().optional(),
|
|
2138
|
+
projectId: z.string(),
|
|
2139
|
+
workspaceId: z.string(),
|
|
2140
|
+
created: z.string(),
|
|
2141
|
+
updated: z.string(),
|
|
2142
|
+
status: UpdateToolResponseBodyToolsStatus$outboundSchema,
|
|
2143
|
+
versionHash: z.string(),
|
|
2144
|
+
type: UpdateToolResponseBodyToolsType$outboundSchema,
|
|
2145
|
+
jsonSchema: z.lazy(() => UpdateToolResponseBodyJsonSchema$outboundSchema),
|
|
2146
|
+
}).transform((v) => {
|
|
2147
|
+
return remap$(v, {
|
|
2148
|
+
id: "_id",
|
|
2149
|
+
createdById: "created_by_id",
|
|
2150
|
+
updatedById: "updated_by_id",
|
|
2151
|
+
projectId: "project_id",
|
|
2152
|
+
workspaceId: "workspace_id",
|
|
2153
|
+
versionHash: "version_hash",
|
|
2154
|
+
jsonSchema: "json_schema",
|
|
2155
|
+
});
|
|
2156
|
+
});
|
|
2157
|
+
|
|
2158
|
+
/**
|
|
2159
|
+
* @internal
|
|
2160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2161
|
+
*/
|
|
2162
|
+
export namespace UpdateToolResponseBody2$ {
|
|
2163
|
+
/** @deprecated use `UpdateToolResponseBody2$inboundSchema` instead. */
|
|
2164
|
+
export const inboundSchema = UpdateToolResponseBody2$inboundSchema;
|
|
2165
|
+
/** @deprecated use `UpdateToolResponseBody2$outboundSchema` instead. */
|
|
2166
|
+
export const outboundSchema = UpdateToolResponseBody2$outboundSchema;
|
|
2167
|
+
/** @deprecated use `UpdateToolResponseBody2$Outbound` instead. */
|
|
2168
|
+
export type Outbound = UpdateToolResponseBody2$Outbound;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
export function updateToolResponseBody2ToJSON(
|
|
2172
|
+
updateToolResponseBody2: UpdateToolResponseBody2,
|
|
2173
|
+
): string {
|
|
2174
|
+
return JSON.stringify(
|
|
2175
|
+
UpdateToolResponseBody2$outboundSchema.parse(updateToolResponseBody2),
|
|
2176
|
+
);
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
export function updateToolResponseBody2FromJSON(
|
|
2180
|
+
jsonString: string,
|
|
2181
|
+
): SafeParseResult<UpdateToolResponseBody2, SDKValidationError> {
|
|
2182
|
+
return safeParse(
|
|
2183
|
+
jsonString,
|
|
2184
|
+
(x) => UpdateToolResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
2185
|
+
`Failed to parse 'UpdateToolResponseBody2' from JSON`,
|
|
2186
|
+
);
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
/** @internal */
|
|
2190
|
+
export const UpdateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
2191
|
+
typeof UpdateToolResponseBodyStatus
|
|
2192
|
+
> = z.nativeEnum(UpdateToolResponseBodyStatus);
|
|
2193
|
+
|
|
2194
|
+
/** @internal */
|
|
2195
|
+
export const UpdateToolResponseBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
2196
|
+
typeof UpdateToolResponseBodyStatus
|
|
2197
|
+
> = UpdateToolResponseBodyStatus$inboundSchema;
|
|
2198
|
+
|
|
2199
|
+
/**
|
|
2200
|
+
* @internal
|
|
2201
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2202
|
+
*/
|
|
2203
|
+
export namespace UpdateToolResponseBodyStatus$ {
|
|
2204
|
+
/** @deprecated use `UpdateToolResponseBodyStatus$inboundSchema` instead. */
|
|
2205
|
+
export const inboundSchema = UpdateToolResponseBodyStatus$inboundSchema;
|
|
2206
|
+
/** @deprecated use `UpdateToolResponseBodyStatus$outboundSchema` instead. */
|
|
2207
|
+
export const outboundSchema = UpdateToolResponseBodyStatus$outboundSchema;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
/** @internal */
|
|
2211
|
+
export const UpdateToolResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
2212
|
+
typeof UpdateToolResponseBodyType
|
|
2213
|
+
> = z.nativeEnum(UpdateToolResponseBodyType);
|
|
2214
|
+
|
|
2215
|
+
/** @internal */
|
|
2216
|
+
export const UpdateToolResponseBodyType$outboundSchema: z.ZodNativeEnum<
|
|
2217
|
+
typeof UpdateToolResponseBodyType
|
|
2218
|
+
> = UpdateToolResponseBodyType$inboundSchema;
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* @internal
|
|
2222
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2223
|
+
*/
|
|
2224
|
+
export namespace UpdateToolResponseBodyType$ {
|
|
2225
|
+
/** @deprecated use `UpdateToolResponseBodyType$inboundSchema` instead. */
|
|
2226
|
+
export const inboundSchema = UpdateToolResponseBodyType$inboundSchema;
|
|
2227
|
+
/** @deprecated use `UpdateToolResponseBodyType$outboundSchema` instead. */
|
|
2228
|
+
export const outboundSchema = UpdateToolResponseBodyType$outboundSchema;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
/** @internal */
|
|
2232
|
+
export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
2233
|
+
UpdateToolResponseBodyFunction,
|
|
2234
|
+
z.ZodTypeDef,
|
|
2235
|
+
unknown
|
|
2236
|
+
> = z.object({
|
|
2237
|
+
name: z.string(),
|
|
2238
|
+
description: z.string().optional(),
|
|
2239
|
+
strict: z.boolean().optional(),
|
|
2240
|
+
parameters: z.record(z.any()).optional(),
|
|
2241
|
+
});
|
|
2242
|
+
|
|
2243
|
+
/** @internal */
|
|
2244
|
+
export type UpdateToolResponseBodyFunction$Outbound = {
|
|
2245
|
+
name: string;
|
|
2246
|
+
description?: string | undefined;
|
|
2247
|
+
strict?: boolean | undefined;
|
|
2248
|
+
parameters?: { [k: string]: any } | undefined;
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
/** @internal */
|
|
2252
|
+
export const UpdateToolResponseBodyFunction$outboundSchema: z.ZodType<
|
|
2253
|
+
UpdateToolResponseBodyFunction$Outbound,
|
|
2254
|
+
z.ZodTypeDef,
|
|
2255
|
+
UpdateToolResponseBodyFunction
|
|
2256
|
+
> = z.object({
|
|
2257
|
+
name: z.string(),
|
|
2258
|
+
description: z.string().optional(),
|
|
2259
|
+
strict: z.boolean().optional(),
|
|
2260
|
+
parameters: z.record(z.any()).optional(),
|
|
2261
|
+
});
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* @internal
|
|
2265
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2266
|
+
*/
|
|
2267
|
+
export namespace UpdateToolResponseBodyFunction$ {
|
|
2268
|
+
/** @deprecated use `UpdateToolResponseBodyFunction$inboundSchema` instead. */
|
|
2269
|
+
export const inboundSchema = UpdateToolResponseBodyFunction$inboundSchema;
|
|
2270
|
+
/** @deprecated use `UpdateToolResponseBodyFunction$outboundSchema` instead. */
|
|
2271
|
+
export const outboundSchema = UpdateToolResponseBodyFunction$outboundSchema;
|
|
2272
|
+
/** @deprecated use `UpdateToolResponseBodyFunction$Outbound` instead. */
|
|
2273
|
+
export type Outbound = UpdateToolResponseBodyFunction$Outbound;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
export function updateToolResponseBodyFunctionToJSON(
|
|
2277
|
+
updateToolResponseBodyFunction: UpdateToolResponseBodyFunction,
|
|
2278
|
+
): string {
|
|
2279
|
+
return JSON.stringify(
|
|
2280
|
+
UpdateToolResponseBodyFunction$outboundSchema.parse(
|
|
2281
|
+
updateToolResponseBodyFunction,
|
|
2282
|
+
),
|
|
2283
|
+
);
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
export function updateToolResponseBodyFunctionFromJSON(
|
|
2287
|
+
jsonString: string,
|
|
2288
|
+
): SafeParseResult<UpdateToolResponseBodyFunction, SDKValidationError> {
|
|
2289
|
+
return safeParse(
|
|
2290
|
+
jsonString,
|
|
2291
|
+
(x) => UpdateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2292
|
+
`Failed to parse 'UpdateToolResponseBodyFunction' from JSON`,
|
|
2293
|
+
);
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
/** @internal */
|
|
2297
|
+
export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
|
|
2298
|
+
UpdateToolResponseBody1,
|
|
2299
|
+
z.ZodTypeDef,
|
|
2300
|
+
unknown
|
|
2301
|
+
> = z.object({
|
|
2302
|
+
_id: z.string().default("tool_01JRT05N2SECBJNXESEXVY8DV2"),
|
|
2303
|
+
path: z.string(),
|
|
2304
|
+
key: z.string(),
|
|
2305
|
+
description: z.string(),
|
|
2306
|
+
created_by_id: z.string().optional(),
|
|
2307
|
+
updated_by_id: z.string().optional(),
|
|
2308
|
+
project_id: z.string(),
|
|
2309
|
+
workspace_id: z.string(),
|
|
2310
|
+
created: z.string(),
|
|
2311
|
+
updated: z.string(),
|
|
2312
|
+
status: UpdateToolResponseBodyStatus$inboundSchema,
|
|
2313
|
+
version_hash: z.string(),
|
|
2314
|
+
type: UpdateToolResponseBodyType$inboundSchema,
|
|
2315
|
+
function: z.lazy(() => UpdateToolResponseBodyFunction$inboundSchema),
|
|
2316
|
+
}).transform((v) => {
|
|
2317
|
+
return remap$(v, {
|
|
2318
|
+
"_id": "id",
|
|
2319
|
+
"created_by_id": "createdById",
|
|
2320
|
+
"updated_by_id": "updatedById",
|
|
2321
|
+
"project_id": "projectId",
|
|
2322
|
+
"workspace_id": "workspaceId",
|
|
2323
|
+
"version_hash": "versionHash",
|
|
2324
|
+
});
|
|
2325
|
+
});
|
|
2326
|
+
|
|
2327
|
+
/** @internal */
|
|
2328
|
+
export type UpdateToolResponseBody1$Outbound = {
|
|
2329
|
+
_id: string;
|
|
2330
|
+
path: string;
|
|
2331
|
+
key: string;
|
|
2332
|
+
description: string;
|
|
2333
|
+
created_by_id?: string | undefined;
|
|
2334
|
+
updated_by_id?: string | undefined;
|
|
2335
|
+
project_id: string;
|
|
2336
|
+
workspace_id: string;
|
|
2337
|
+
created: string;
|
|
2338
|
+
updated: string;
|
|
2339
|
+
status: string;
|
|
2340
|
+
version_hash: string;
|
|
2341
|
+
type: string;
|
|
2342
|
+
function: UpdateToolResponseBodyFunction$Outbound;
|
|
2343
|
+
};
|
|
2344
|
+
|
|
2345
|
+
/** @internal */
|
|
2346
|
+
export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
|
|
2347
|
+
UpdateToolResponseBody1$Outbound,
|
|
2348
|
+
z.ZodTypeDef,
|
|
2349
|
+
UpdateToolResponseBody1
|
|
2350
|
+
> = z.object({
|
|
2351
|
+
id: z.string().default("tool_01JRT05N2SECBJNXESEXVY8DV2"),
|
|
2352
|
+
path: z.string(),
|
|
2353
|
+
key: z.string(),
|
|
2354
|
+
description: z.string(),
|
|
2355
|
+
createdById: z.string().optional(),
|
|
2356
|
+
updatedById: z.string().optional(),
|
|
2357
|
+
projectId: z.string(),
|
|
2358
|
+
workspaceId: z.string(),
|
|
2359
|
+
created: z.string(),
|
|
2360
|
+
updated: z.string(),
|
|
2361
|
+
status: UpdateToolResponseBodyStatus$outboundSchema,
|
|
2362
|
+
versionHash: z.string(),
|
|
2363
|
+
type: UpdateToolResponseBodyType$outboundSchema,
|
|
2364
|
+
function: z.lazy(() => UpdateToolResponseBodyFunction$outboundSchema),
|
|
2365
|
+
}).transform((v) => {
|
|
2366
|
+
return remap$(v, {
|
|
2367
|
+
id: "_id",
|
|
2368
|
+
createdById: "created_by_id",
|
|
2369
|
+
updatedById: "updated_by_id",
|
|
2370
|
+
projectId: "project_id",
|
|
2371
|
+
workspaceId: "workspace_id",
|
|
2372
|
+
versionHash: "version_hash",
|
|
2373
|
+
});
|
|
2374
|
+
});
|
|
2375
|
+
|
|
2376
|
+
/**
|
|
2377
|
+
* @internal
|
|
2378
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2379
|
+
*/
|
|
2380
|
+
export namespace UpdateToolResponseBody1$ {
|
|
2381
|
+
/** @deprecated use `UpdateToolResponseBody1$inboundSchema` instead. */
|
|
2382
|
+
export const inboundSchema = UpdateToolResponseBody1$inboundSchema;
|
|
2383
|
+
/** @deprecated use `UpdateToolResponseBody1$outboundSchema` instead. */
|
|
2384
|
+
export const outboundSchema = UpdateToolResponseBody1$outboundSchema;
|
|
2385
|
+
/** @deprecated use `UpdateToolResponseBody1$Outbound` instead. */
|
|
2386
|
+
export type Outbound = UpdateToolResponseBody1$Outbound;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
export function updateToolResponseBody1ToJSON(
|
|
2390
|
+
updateToolResponseBody1: UpdateToolResponseBody1,
|
|
2391
|
+
): string {
|
|
2392
|
+
return JSON.stringify(
|
|
2393
|
+
UpdateToolResponseBody1$outboundSchema.parse(updateToolResponseBody1),
|
|
2394
|
+
);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
export function updateToolResponseBody1FromJSON(
|
|
2398
|
+
jsonString: string,
|
|
2399
|
+
): SafeParseResult<UpdateToolResponseBody1, SDKValidationError> {
|
|
2400
|
+
return safeParse(
|
|
2401
|
+
jsonString,
|
|
2402
|
+
(x) => UpdateToolResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
2403
|
+
`Failed to parse 'UpdateToolResponseBody1' from JSON`,
|
|
2404
|
+
);
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
/** @internal */
|
|
2408
|
+
export const UpdateToolResponseBody$inboundSchema: z.ZodType<
|
|
2409
|
+
UpdateToolResponseBody,
|
|
2410
|
+
z.ZodTypeDef,
|
|
2411
|
+
unknown
|
|
2412
|
+
> = z.union([
|
|
2413
|
+
z.lazy(() => UpdateToolResponseBody1$inboundSchema),
|
|
2414
|
+
z.lazy(() => UpdateToolResponseBody2$inboundSchema),
|
|
2415
|
+
z.lazy(() => UpdateToolResponseBody3$inboundSchema),
|
|
2416
|
+
]);
|
|
2417
|
+
|
|
2418
|
+
/** @internal */
|
|
2419
|
+
export type UpdateToolResponseBody$Outbound =
|
|
2420
|
+
| UpdateToolResponseBody1$Outbound
|
|
2421
|
+
| UpdateToolResponseBody2$Outbound
|
|
2422
|
+
| UpdateToolResponseBody3$Outbound;
|
|
2423
|
+
|
|
2424
|
+
/** @internal */
|
|
2425
|
+
export const UpdateToolResponseBody$outboundSchema: z.ZodType<
|
|
2426
|
+
UpdateToolResponseBody$Outbound,
|
|
2427
|
+
z.ZodTypeDef,
|
|
2428
|
+
UpdateToolResponseBody
|
|
2429
|
+
> = z.union([
|
|
2430
|
+
z.lazy(() => UpdateToolResponseBody1$outboundSchema),
|
|
2431
|
+
z.lazy(() => UpdateToolResponseBody2$outboundSchema),
|
|
2432
|
+
z.lazy(() => UpdateToolResponseBody3$outboundSchema),
|
|
2433
|
+
]);
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* @internal
|
|
2437
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2438
|
+
*/
|
|
2439
|
+
export namespace UpdateToolResponseBody$ {
|
|
2440
|
+
/** @deprecated use `UpdateToolResponseBody$inboundSchema` instead. */
|
|
2441
|
+
export const inboundSchema = UpdateToolResponseBody$inboundSchema;
|
|
2442
|
+
/** @deprecated use `UpdateToolResponseBody$outboundSchema` instead. */
|
|
2443
|
+
export const outboundSchema = UpdateToolResponseBody$outboundSchema;
|
|
2444
|
+
/** @deprecated use `UpdateToolResponseBody$Outbound` instead. */
|
|
2445
|
+
export type Outbound = UpdateToolResponseBody$Outbound;
|
|
2446
|
+
}
|
|
2447
|
+
|
|
2448
|
+
export function updateToolResponseBodyToJSON(
|
|
2449
|
+
updateToolResponseBody: UpdateToolResponseBody,
|
|
2450
|
+
): string {
|
|
2451
|
+
return JSON.stringify(
|
|
2452
|
+
UpdateToolResponseBody$outboundSchema.parse(updateToolResponseBody),
|
|
2453
|
+
);
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
export function updateToolResponseBodyFromJSON(
|
|
2457
|
+
jsonString: string,
|
|
2458
|
+
): SafeParseResult<UpdateToolResponseBody, SDKValidationError> {
|
|
2459
|
+
return safeParse(
|
|
2460
|
+
jsonString,
|
|
2461
|
+
(x) => UpdateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2462
|
+
`Failed to parse 'UpdateToolResponseBody' from JSON`,
|
|
2463
|
+
);
|
|
2464
|
+
}
|