@orq-ai/node 3.2.12 → 3.2.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 +32 -32
- package/bin/mcp-server.js.map +17 -17
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/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/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/package.json +1 -1
- package/packages/orq-rc/README.md +4 -2
- package/packages/orq-rc/docs/sdks/datasets/README.md +6 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +140 -58
- package/packages/orq-rc/docs/sdks/prompts/README.md +6 -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/contactsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsClear.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsList.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/filesDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/filesGet.ts +1 -1
- package/packages/orq-rc/src/funcs/filesList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeList.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/{knowledgeRetrieveFileUrl.ts → knowledgeRetrieveChunk.ts} +25 -34
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +164 -0
- package/packages/orq-rc/src/funcs/promptsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsList.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +1 -1
- 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/server.ts +5 -3
- package/packages/orq-rc/src/mcp-server/tools/{knowledgeRetrieveFileUrl.ts → knowledgeRetrieveChunk.ts} +6 -6
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/createchunk.ts +2 -2
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/createknowledge.ts +324 -2562
- 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/getonechunk.ts +265 -0
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +101 -1282
- package/packages/orq-rc/src/models/operations/index.ts +2 -1
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +101 -1309
- 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 +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +25 -6
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +383 -2710
- package/packages/orq-rc/src/models/operations/updateprompt.ts +7 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +30 -15
- package/src/lib/config.ts +3 -3
- 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/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/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/getonefileuploadurl.ts +0 -157
|
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
146
146
|
file_name: z.string(),
|
|
147
147
|
workspace_id: z.string(),
|
|
148
148
|
created: z.string().datetime({ offset: true }).default(
|
|
149
|
-
"2025-
|
|
149
|
+
"2025-04-01T11:18:15.229Z",
|
|
150
150
|
).transform(v => new Date(v)),
|
|
151
151
|
}).transform((v) => {
|
|
152
152
|
return remap$(v, {
|
|
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
180
180
|
bytes: z.number(),
|
|
181
181
|
fileName: z.string(),
|
|
182
182
|
workspaceId: z.string(),
|
|
183
|
-
created: z.date().default(() => new Date("2025-
|
|
183
|
+
created: z.date().default(() => new Date("2025-04-01T11:18:15.229Z"))
|
|
184
184
|
.transform(v => v.toISOString()),
|
|
185
185
|
}).transform((v) => {
|
|
186
186
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-
|
|
199
|
+
"2025-04-01T11:18:15.229Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -230,7 +230,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
230
230
|
bytes: z.number(),
|
|
231
231
|
fileName: z.string(),
|
|
232
232
|
workspaceId: z.string(),
|
|
233
|
-
created: z.date().default(() => new Date("2025-
|
|
233
|
+
created: z.date().default(() => new Date("2025-04-01T11:18:15.229Z"))
|
|
234
234
|
.transform(v => v.toISOString()),
|
|
235
235
|
}).transform((v) => {
|
|
236
236
|
return remap$(v, {
|
|
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
247
247
|
file_name: z.string(),
|
|
248
248
|
workspace_id: z.string(),
|
|
249
249
|
created: z.string().datetime({ offset: true }).default(
|
|
250
|
-
"2025-
|
|
250
|
+
"2025-04-01T11:18:15.229Z",
|
|
251
251
|
).transform(v => new Date(v)),
|
|
252
252
|
}).transform((v) => {
|
|
253
253
|
return remap$(v, {
|
|
@@ -281,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
281
281
|
bytes: z.number(),
|
|
282
282
|
fileName: z.string(),
|
|
283
283
|
workspaceId: z.string(),
|
|
284
|
-
created: z.date().default(() => new Date("2025-
|
|
284
|
+
created: z.date().default(() => new Date("2025-04-01T11:18:15.229Z"))
|
|
285
285
|
.transform(v => v.toISOString()),
|
|
286
286
|
}).transform((v) => {
|
|
287
287
|
return remap$(v, {
|
|
@@ -0,0 +1,265 @@
|
|
|
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
|
+
export type GetOneChunkRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* The unique identifier of the chunk
|
|
15
|
+
*/
|
|
16
|
+
chunkId: string;
|
|
17
|
+
/**
|
|
18
|
+
* The unique identifier of the data source
|
|
19
|
+
*/
|
|
20
|
+
datasourceId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The unique identifier of the knowledge base
|
|
23
|
+
*/
|
|
24
|
+
knowledgeId: string;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The status of the chunk
|
|
29
|
+
*/
|
|
30
|
+
export const GetOneChunkStatus = {
|
|
31
|
+
Pending: "pending",
|
|
32
|
+
Processing: "processing",
|
|
33
|
+
Completed: "completed",
|
|
34
|
+
Failed: "failed",
|
|
35
|
+
Queued: "queued",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* The status of the chunk
|
|
39
|
+
*/
|
|
40
|
+
export type GetOneChunkStatus = ClosedEnum<typeof GetOneChunkStatus>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Chunk successfully retrieved
|
|
44
|
+
*/
|
|
45
|
+
export type GetOneChunkResponseBody = {
|
|
46
|
+
/**
|
|
47
|
+
* The unique identifier of the chunk
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* The text content of the chunk
|
|
52
|
+
*/
|
|
53
|
+
text: string;
|
|
54
|
+
/**
|
|
55
|
+
* Metadata of the chunk. Can include `page_number` or any other key-value pairs. Only values of type string are supported.
|
|
56
|
+
*/
|
|
57
|
+
metadata?: { [k: string]: string } | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the chunk is enabled
|
|
60
|
+
*/
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* The status of the chunk
|
|
64
|
+
*/
|
|
65
|
+
status: GetOneChunkStatus;
|
|
66
|
+
/**
|
|
67
|
+
* The date and time the chunk was created
|
|
68
|
+
*/
|
|
69
|
+
created: string;
|
|
70
|
+
/**
|
|
71
|
+
* The date and time the chunk was updated
|
|
72
|
+
*/
|
|
73
|
+
updated: string;
|
|
74
|
+
/**
|
|
75
|
+
* The unique identifier of the user who created the chunk
|
|
76
|
+
*/
|
|
77
|
+
createdById?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* The unique identifier of the user who updated the chunk
|
|
80
|
+
*/
|
|
81
|
+
updateById?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const GetOneChunkRequest$inboundSchema: z.ZodType<
|
|
86
|
+
GetOneChunkRequest,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({
|
|
90
|
+
chunk_id: z.string(),
|
|
91
|
+
datasource_id: z.string(),
|
|
92
|
+
knowledge_id: z.string(),
|
|
93
|
+
}).transform((v) => {
|
|
94
|
+
return remap$(v, {
|
|
95
|
+
"chunk_id": "chunkId",
|
|
96
|
+
"datasource_id": "datasourceId",
|
|
97
|
+
"knowledge_id": "knowledgeId",
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type GetOneChunkRequest$Outbound = {
|
|
103
|
+
chunk_id: string;
|
|
104
|
+
datasource_id: string;
|
|
105
|
+
knowledge_id: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const GetOneChunkRequest$outboundSchema: z.ZodType<
|
|
110
|
+
GetOneChunkRequest$Outbound,
|
|
111
|
+
z.ZodTypeDef,
|
|
112
|
+
GetOneChunkRequest
|
|
113
|
+
> = z.object({
|
|
114
|
+
chunkId: z.string(),
|
|
115
|
+
datasourceId: z.string(),
|
|
116
|
+
knowledgeId: z.string(),
|
|
117
|
+
}).transform((v) => {
|
|
118
|
+
return remap$(v, {
|
|
119
|
+
chunkId: "chunk_id",
|
|
120
|
+
datasourceId: "datasource_id",
|
|
121
|
+
knowledgeId: "knowledge_id",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
+
*/
|
|
129
|
+
export namespace GetOneChunkRequest$ {
|
|
130
|
+
/** @deprecated use `GetOneChunkRequest$inboundSchema` instead. */
|
|
131
|
+
export const inboundSchema = GetOneChunkRequest$inboundSchema;
|
|
132
|
+
/** @deprecated use `GetOneChunkRequest$outboundSchema` instead. */
|
|
133
|
+
export const outboundSchema = GetOneChunkRequest$outboundSchema;
|
|
134
|
+
/** @deprecated use `GetOneChunkRequest$Outbound` instead. */
|
|
135
|
+
export type Outbound = GetOneChunkRequest$Outbound;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function getOneChunkRequestToJSON(
|
|
139
|
+
getOneChunkRequest: GetOneChunkRequest,
|
|
140
|
+
): string {
|
|
141
|
+
return JSON.stringify(
|
|
142
|
+
GetOneChunkRequest$outboundSchema.parse(getOneChunkRequest),
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function getOneChunkRequestFromJSON(
|
|
147
|
+
jsonString: string,
|
|
148
|
+
): SafeParseResult<GetOneChunkRequest, SDKValidationError> {
|
|
149
|
+
return safeParse(
|
|
150
|
+
jsonString,
|
|
151
|
+
(x) => GetOneChunkRequest$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
+
`Failed to parse 'GetOneChunkRequest' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export const GetOneChunkStatus$inboundSchema: z.ZodNativeEnum<
|
|
158
|
+
typeof GetOneChunkStatus
|
|
159
|
+
> = z.nativeEnum(GetOneChunkStatus);
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const GetOneChunkStatus$outboundSchema: z.ZodNativeEnum<
|
|
163
|
+
typeof GetOneChunkStatus
|
|
164
|
+
> = GetOneChunkStatus$inboundSchema;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @internal
|
|
168
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
169
|
+
*/
|
|
170
|
+
export namespace GetOneChunkStatus$ {
|
|
171
|
+
/** @deprecated use `GetOneChunkStatus$inboundSchema` instead. */
|
|
172
|
+
export const inboundSchema = GetOneChunkStatus$inboundSchema;
|
|
173
|
+
/** @deprecated use `GetOneChunkStatus$outboundSchema` instead. */
|
|
174
|
+
export const outboundSchema = GetOneChunkStatus$outboundSchema;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export const GetOneChunkResponseBody$inboundSchema: z.ZodType<
|
|
179
|
+
GetOneChunkResponseBody,
|
|
180
|
+
z.ZodTypeDef,
|
|
181
|
+
unknown
|
|
182
|
+
> = z.object({
|
|
183
|
+
_id: z.string(),
|
|
184
|
+
text: z.string(),
|
|
185
|
+
metadata: z.record(z.string()).optional(),
|
|
186
|
+
enabled: z.boolean(),
|
|
187
|
+
status: GetOneChunkStatus$inboundSchema,
|
|
188
|
+
created: z.string(),
|
|
189
|
+
updated: z.string(),
|
|
190
|
+
created_by_id: z.string().optional(),
|
|
191
|
+
update_by_id: z.string().optional(),
|
|
192
|
+
}).transform((v) => {
|
|
193
|
+
return remap$(v, {
|
|
194
|
+
"_id": "id",
|
|
195
|
+
"created_by_id": "createdById",
|
|
196
|
+
"update_by_id": "updateById",
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export type GetOneChunkResponseBody$Outbound = {
|
|
202
|
+
_id: string;
|
|
203
|
+
text: string;
|
|
204
|
+
metadata?: { [k: string]: string } | undefined;
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
status: string;
|
|
207
|
+
created: string;
|
|
208
|
+
updated: string;
|
|
209
|
+
created_by_id?: string | undefined;
|
|
210
|
+
update_by_id?: string | undefined;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/** @internal */
|
|
214
|
+
export const GetOneChunkResponseBody$outboundSchema: z.ZodType<
|
|
215
|
+
GetOneChunkResponseBody$Outbound,
|
|
216
|
+
z.ZodTypeDef,
|
|
217
|
+
GetOneChunkResponseBody
|
|
218
|
+
> = z.object({
|
|
219
|
+
id: z.string(),
|
|
220
|
+
text: z.string(),
|
|
221
|
+
metadata: z.record(z.string()).optional(),
|
|
222
|
+
enabled: z.boolean(),
|
|
223
|
+
status: GetOneChunkStatus$outboundSchema,
|
|
224
|
+
created: z.string(),
|
|
225
|
+
updated: z.string(),
|
|
226
|
+
createdById: z.string().optional(),
|
|
227
|
+
updateById: z.string().optional(),
|
|
228
|
+
}).transform((v) => {
|
|
229
|
+
return remap$(v, {
|
|
230
|
+
id: "_id",
|
|
231
|
+
createdById: "created_by_id",
|
|
232
|
+
updateById: "update_by_id",
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* @internal
|
|
238
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
239
|
+
*/
|
|
240
|
+
export namespace GetOneChunkResponseBody$ {
|
|
241
|
+
/** @deprecated use `GetOneChunkResponseBody$inboundSchema` instead. */
|
|
242
|
+
export const inboundSchema = GetOneChunkResponseBody$inboundSchema;
|
|
243
|
+
/** @deprecated use `GetOneChunkResponseBody$outboundSchema` instead. */
|
|
244
|
+
export const outboundSchema = GetOneChunkResponseBody$outboundSchema;
|
|
245
|
+
/** @deprecated use `GetOneChunkResponseBody$Outbound` instead. */
|
|
246
|
+
export type Outbound = GetOneChunkResponseBody$Outbound;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export function getOneChunkResponseBodyToJSON(
|
|
250
|
+
getOneChunkResponseBody: GetOneChunkResponseBody,
|
|
251
|
+
): string {
|
|
252
|
+
return JSON.stringify(
|
|
253
|
+
GetOneChunkResponseBody$outboundSchema.parse(getOneChunkResponseBody),
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export function getOneChunkResponseBodyFromJSON(
|
|
258
|
+
jsonString: string,
|
|
259
|
+
): SafeParseResult<GetOneChunkResponseBody, SDKValidationError> {
|
|
260
|
+
return safeParse(
|
|
261
|
+
jsonString,
|
|
262
|
+
(x) => GetOneChunkResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
263
|
+
`Failed to parse 'GetOneChunkResponseBody' from JSON`,
|
|
264
|
+
);
|
|
265
|
+
}
|