@orq-ai/node 4.4.10 → 4.4.12
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/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +2 -1
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +2 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/src/funcs/agentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +4 -1
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +4 -1
- package/packages/orq-rc/src/funcs/filesCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/event-streams.ts +10 -1
- package/packages/orq-rc/src/lib/matchers.ts +3 -2
- package/packages/orq-rc/src/lib/security.ts +1 -2
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +2 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +14 -3
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -3
- package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createresponse.ts +2 -1
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +3 -62
- package/packages/orq-rc/src/models/operations/updatetool.ts +96 -7
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +2 -1
- package/src/models/operations/createchatcompletion.ts +2 -1
- package/src/models/operations/createcompletion.ts +2 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -2097,8 +2097,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
|
|
|
2097
2097
|
> = z.object({
|
|
2098
2098
|
_id: z.string(),
|
|
2099
2099
|
description: z.string(),
|
|
2100
|
-
created: z.string().default("2026-03-
|
|
2101
|
-
updated: z.string().default("2026-03-
|
|
2100
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
2101
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
2102
2102
|
guardrail_config: z.union([
|
|
2103
2103
|
z.lazy(() =>
|
|
2104
2104
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -2251,8 +2251,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
|
|
|
2251
2251
|
> = z.object({
|
|
2252
2252
|
_id: z.string(),
|
|
2253
2253
|
description: z.string(),
|
|
2254
|
-
created: z.string().default("2026-03-
|
|
2255
|
-
updated: z.string().default("2026-03-
|
|
2254
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
2255
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
2256
2256
|
guardrail_config: z.union([
|
|
2257
2257
|
z.lazy(() =>
|
|
2258
2258
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -3071,8 +3071,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3071
3071
|
> = z.object({
|
|
3072
3072
|
_id: z.string(),
|
|
3073
3073
|
description: z.string(),
|
|
3074
|
-
created: z.string().default("2026-03-
|
|
3075
|
-
updated: z.string().default("2026-03-
|
|
3074
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
3075
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
3076
3076
|
guardrail_config: z.union([
|
|
3077
3077
|
z.lazy(() =>
|
|
3078
3078
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -3253,8 +3253,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3253
3253
|
> = z.object({
|
|
3254
3254
|
_id: z.string(),
|
|
3255
3255
|
description: z.string(),
|
|
3256
|
-
created: z.string().default("2026-03-
|
|
3257
|
-
updated: z.string().default("2026-03-
|
|
3256
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
3257
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
3258
3258
|
guardrail_config: z.union([
|
|
3259
3259
|
z.lazy(() =>
|
|
3260
3260
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -3401,8 +3401,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3401
3401
|
> = z.object({
|
|
3402
3402
|
_id: z.string(),
|
|
3403
3403
|
description: z.string(),
|
|
3404
|
-
created: z.string().default("2026-03-
|
|
3405
|
-
updated: z.string().default("2026-03-
|
|
3404
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
3405
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
3406
3406
|
guardrail_config: z.union([
|
|
3407
3407
|
z.lazy(() =>
|
|
3408
3408
|
UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3538,8 +3538,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3538
3538
|
> = z.object({
|
|
3539
3539
|
_id: z.string(),
|
|
3540
3540
|
description: z.string(),
|
|
3541
|
-
created: z.string().default("2026-03-
|
|
3542
|
-
updated: z.string().default("2026-03-
|
|
3541
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
3542
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
3543
3543
|
guardrail_config: z.union([
|
|
3544
3544
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3545
3545
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3840,8 +3840,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3840
3840
|
> = z.object({
|
|
3841
3841
|
_id: z.string(),
|
|
3842
3842
|
description: z.string(),
|
|
3843
|
-
created: z.string().default("2026-03-
|
|
3844
|
-
updated: z.string().default("2026-03-
|
|
3843
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
3844
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
3845
3845
|
guardrail_config: z.union([
|
|
3846
3846
|
z.lazy(() =>
|
|
3847
3847
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
@@ -3984,8 +3984,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
3984
3984
|
> = z.object({
|
|
3985
3985
|
_id: z.string(),
|
|
3986
3986
|
description: z.string(),
|
|
3987
|
-
created: z.string().default("2026-03-
|
|
3988
|
-
updated: z.string().default("2026-03-
|
|
3987
|
+
created: z.string().default("2026-03-03T10:04:53.396Z"),
|
|
3988
|
+
updated: z.string().default("2026-03-03T10:04:53.397Z"),
|
|
3989
3989
|
guardrail_config: z.union([
|
|
3990
3990
|
z.lazy(() =>
|
|
3991
3991
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2026-03-
|
|
170
|
+
"2026-03-03T10:04:52.010Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
@@ -29,49 +28,11 @@ export type UpdateMemoryStoreRequest = {
|
|
|
29
28
|
requestBody?: UpdateMemoryStoreRequestBody | undefined;
|
|
30
29
|
};
|
|
31
30
|
|
|
32
|
-
export const UpdateMemoryStoreProvider = {
|
|
33
|
-
Openai: "openai",
|
|
34
|
-
Groq: "groq",
|
|
35
|
-
Cohere: "cohere",
|
|
36
|
-
Azure: "azure",
|
|
37
|
-
Aws: "aws",
|
|
38
|
-
Google: "google",
|
|
39
|
-
GoogleAi: "google-ai",
|
|
40
|
-
Huggingface: "huggingface",
|
|
41
|
-
Togetherai: "togetherai",
|
|
42
|
-
Perplexity: "perplexity",
|
|
43
|
-
Anthropic: "anthropic",
|
|
44
|
-
Leonardoai: "leonardoai",
|
|
45
|
-
Fal: "fal",
|
|
46
|
-
Nvidia: "nvidia",
|
|
47
|
-
Jina: "jina",
|
|
48
|
-
Elevenlabs: "elevenlabs",
|
|
49
|
-
Litellm: "litellm",
|
|
50
|
-
Cerebras: "cerebras",
|
|
51
|
-
Openailike: "openailike",
|
|
52
|
-
Bytedance: "bytedance",
|
|
53
|
-
Mistral: "mistral",
|
|
54
|
-
Deepseek: "deepseek",
|
|
55
|
-
Contextualai: "contextualai",
|
|
56
|
-
Moonshotai: "moonshotai",
|
|
57
|
-
Zai: "zai",
|
|
58
|
-
Minimax: "minimax",
|
|
59
|
-
Xai: "xai",
|
|
60
|
-
Alibaba: "alibaba",
|
|
61
|
-
Slack: "slack",
|
|
62
|
-
} as const;
|
|
63
|
-
export type UpdateMemoryStoreProvider = ClosedEnum<
|
|
64
|
-
typeof UpdateMemoryStoreProvider
|
|
65
|
-
>;
|
|
66
|
-
|
|
67
31
|
export type UpdateMemoryStoreEmbeddingConfig = {
|
|
68
|
-
modelId: string;
|
|
69
|
-
integrationId?: string | undefined;
|
|
70
32
|
/**
|
|
71
|
-
*
|
|
33
|
+
* The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base. Refer to the (Supported models)[/docs/proxy/supported-models] to browse available models.
|
|
72
34
|
*/
|
|
73
|
-
|
|
74
|
-
provider: UpdateMemoryStoreProvider;
|
|
35
|
+
model: string;
|
|
75
36
|
};
|
|
76
37
|
|
|
77
38
|
/**
|
|
@@ -86,10 +47,6 @@ export type UpdateMemoryStoreResponseBody = {
|
|
|
86
47
|
* The unique key of the memory store. The key is unique and inmmutable and cannot be repeated within the same workspace.
|
|
87
48
|
*/
|
|
88
49
|
key: string;
|
|
89
|
-
/**
|
|
90
|
-
* The project unique identifier. This entity is assigned based on the provided `path` property
|
|
91
|
-
*/
|
|
92
|
-
projectId: string;
|
|
93
50
|
/**
|
|
94
51
|
* The description of the memory store. Be as precise as possible to help the AI to understand the purpose of the memory store.
|
|
95
52
|
*/
|
|
@@ -175,27 +132,13 @@ export function updateMemoryStoreRequestToJSON(
|
|
|
175
132
|
);
|
|
176
133
|
}
|
|
177
134
|
|
|
178
|
-
/** @internal */
|
|
179
|
-
export const UpdateMemoryStoreProvider$inboundSchema: z.ZodNativeEnum<
|
|
180
|
-
typeof UpdateMemoryStoreProvider
|
|
181
|
-
> = z.nativeEnum(UpdateMemoryStoreProvider);
|
|
182
|
-
|
|
183
135
|
/** @internal */
|
|
184
136
|
export const UpdateMemoryStoreEmbeddingConfig$inboundSchema: z.ZodType<
|
|
185
137
|
UpdateMemoryStoreEmbeddingConfig,
|
|
186
138
|
z.ZodTypeDef,
|
|
187
139
|
unknown
|
|
188
140
|
> = z.object({
|
|
189
|
-
|
|
190
|
-
integration_id: z.string().optional(),
|
|
191
|
-
top_k: z.number().optional(),
|
|
192
|
-
provider: UpdateMemoryStoreProvider$inboundSchema,
|
|
193
|
-
}).transform((v) => {
|
|
194
|
-
return remap$(v, {
|
|
195
|
-
"model_id": "modelId",
|
|
196
|
-
"integration_id": "integrationId",
|
|
197
|
-
"top_k": "topK",
|
|
198
|
-
});
|
|
141
|
+
model: z.string(),
|
|
199
142
|
});
|
|
200
143
|
|
|
201
144
|
export function updateMemoryStoreEmbeddingConfigFromJSON(
|
|
@@ -216,7 +159,6 @@ export const UpdateMemoryStoreResponseBody$inboundSchema: z.ZodType<
|
|
|
216
159
|
> = z.object({
|
|
217
160
|
_id: z.string(),
|
|
218
161
|
key: z.string(),
|
|
219
|
-
project_id: z.string(),
|
|
220
162
|
description: z.string(),
|
|
221
163
|
created_by_id: z.string().optional(),
|
|
222
164
|
updated_by_id: z.string().optional(),
|
|
@@ -229,7 +171,6 @@ export const UpdateMemoryStoreResponseBody$inboundSchema: z.ZodType<
|
|
|
229
171
|
}).transform((v) => {
|
|
230
172
|
return remap$(v, {
|
|
231
173
|
"_id": "id",
|
|
232
|
-
"project_id": "projectId",
|
|
233
174
|
"created_by_id": "createdById",
|
|
234
175
|
"updated_by_id": "updatedById",
|
|
235
176
|
"embedding_config": "embeddingConfig",
|
|
@@ -79,6 +79,15 @@ export type UpdateToolRequestBodyCodeTool = {
|
|
|
79
79
|
code: string;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
export const UpdateToolRequestBodyToolsRequestVersionIncrement = {
|
|
83
|
+
Major: "major",
|
|
84
|
+
Minor: "minor",
|
|
85
|
+
Patch: "patch",
|
|
86
|
+
} as const;
|
|
87
|
+
export type UpdateToolRequestBodyToolsRequestVersionIncrement = ClosedEnum<
|
|
88
|
+
typeof UpdateToolRequestBodyToolsRequestVersionIncrement
|
|
89
|
+
>;
|
|
90
|
+
|
|
82
91
|
/**
|
|
83
92
|
* Updates an existing code execution tool configuration.
|
|
84
93
|
*/
|
|
@@ -111,6 +120,9 @@ export type UpdateCodeExecutionTool = {
|
|
|
111
120
|
status?: UpdateToolRequestBodyToolsRequest5Status | undefined;
|
|
112
121
|
type: "code";
|
|
113
122
|
codeTool?: UpdateToolRequestBodyCodeTool | undefined;
|
|
123
|
+
versionIncrement?:
|
|
124
|
+
| UpdateToolRequestBodyToolsRequestVersionIncrement
|
|
125
|
+
| undefined;
|
|
114
126
|
};
|
|
115
127
|
|
|
116
128
|
/**
|
|
@@ -187,6 +199,15 @@ export type UpdateToolRequestBodyMcp = {
|
|
|
187
199
|
connectionType?: UpdateToolRequestBodyConnectionType | undefined;
|
|
188
200
|
};
|
|
189
201
|
|
|
202
|
+
export const UpdateToolRequestBodyToolsVersionIncrement = {
|
|
203
|
+
Major: "major",
|
|
204
|
+
Minor: "minor",
|
|
205
|
+
Patch: "patch",
|
|
206
|
+
} as const;
|
|
207
|
+
export type UpdateToolRequestBodyToolsVersionIncrement = ClosedEnum<
|
|
208
|
+
typeof UpdateToolRequestBodyToolsVersionIncrement
|
|
209
|
+
>;
|
|
210
|
+
|
|
190
211
|
/**
|
|
191
212
|
* Updates an existing MCP tool configuration.
|
|
192
213
|
*/
|
|
@@ -219,6 +240,7 @@ export type UpdateMCPTool = {
|
|
|
219
240
|
status?: UpdateToolRequestBodyToolsRequest4Status | undefined;
|
|
220
241
|
type: "mcp";
|
|
221
242
|
mcp?: UpdateToolRequestBodyMcp | undefined;
|
|
243
|
+
versionIncrement?: UpdateToolRequestBodyToolsVersionIncrement | undefined;
|
|
222
244
|
};
|
|
223
245
|
|
|
224
246
|
/**
|
|
@@ -332,6 +354,15 @@ export type UpdateToolRequestBodyHttp = {
|
|
|
332
354
|
arguments?: { [k: string]: UpdateToolRequestBodyArguments } | undefined;
|
|
333
355
|
};
|
|
334
356
|
|
|
357
|
+
export const UpdateToolRequestBodyVersionIncrement = {
|
|
358
|
+
Major: "major",
|
|
359
|
+
Minor: "minor",
|
|
360
|
+
Patch: "patch",
|
|
361
|
+
} as const;
|
|
362
|
+
export type UpdateToolRequestBodyVersionIncrement = ClosedEnum<
|
|
363
|
+
typeof UpdateToolRequestBodyVersionIncrement
|
|
364
|
+
>;
|
|
365
|
+
|
|
335
366
|
/**
|
|
336
367
|
* Updates an existing HTTP tool configuration.
|
|
337
368
|
*/
|
|
@@ -364,6 +395,7 @@ export type UpdateHTTPTool = {
|
|
|
364
395
|
status?: UpdateToolRequestBodyToolsRequestStatus | undefined;
|
|
365
396
|
type: "http";
|
|
366
397
|
http?: UpdateToolRequestBodyHttp | undefined;
|
|
398
|
+
versionIncrement?: UpdateToolRequestBodyVersionIncrement | undefined;
|
|
367
399
|
};
|
|
368
400
|
|
|
369
401
|
/**
|
|
@@ -420,6 +452,15 @@ export type UpdateToolRequestBodyJsonSchema = {
|
|
|
420
452
|
strict?: boolean | undefined;
|
|
421
453
|
};
|
|
422
454
|
|
|
455
|
+
export const RequestBodyVersionIncrement = {
|
|
456
|
+
Major: "major",
|
|
457
|
+
Minor: "minor",
|
|
458
|
+
Patch: "patch",
|
|
459
|
+
} as const;
|
|
460
|
+
export type RequestBodyVersionIncrement = ClosedEnum<
|
|
461
|
+
typeof RequestBodyVersionIncrement
|
|
462
|
+
>;
|
|
463
|
+
|
|
423
464
|
/**
|
|
424
465
|
* Updates an existing JSON Schema tool configuration.
|
|
425
466
|
*/
|
|
@@ -452,6 +493,7 @@ export type UpdateJSONSchemaTool = {
|
|
|
452
493
|
status?: UpdateToolRequestBodyToolsStatus | undefined;
|
|
453
494
|
type: "json_schema";
|
|
454
495
|
jsonSchema?: UpdateToolRequestBodyJsonSchema | undefined;
|
|
496
|
+
versionIncrement?: RequestBodyVersionIncrement | undefined;
|
|
455
497
|
};
|
|
456
498
|
|
|
457
499
|
/**
|
|
@@ -521,6 +563,13 @@ export type UpdateToolRequestBodyFunction = {
|
|
|
521
563
|
parameters?: UpdateToolRequestBodyParameters | undefined;
|
|
522
564
|
};
|
|
523
565
|
|
|
566
|
+
export const VersionIncrement = {
|
|
567
|
+
Major: "major",
|
|
568
|
+
Minor: "minor",
|
|
569
|
+
Patch: "patch",
|
|
570
|
+
} as const;
|
|
571
|
+
export type VersionIncrement = ClosedEnum<typeof VersionIncrement>;
|
|
572
|
+
|
|
524
573
|
/**
|
|
525
574
|
* Updates an existing function tool configuration.
|
|
526
575
|
*/
|
|
@@ -553,6 +602,7 @@ export type UpdateFunctionTool = {
|
|
|
553
602
|
status?: UpdateToolRequestBodyStatus | undefined;
|
|
554
603
|
type: "function";
|
|
555
604
|
function?: UpdateToolRequestBodyFunction | undefined;
|
|
605
|
+
versionIncrement?: VersionIncrement | undefined;
|
|
556
606
|
};
|
|
557
607
|
|
|
558
608
|
/**
|
|
@@ -1282,6 +1332,11 @@ export function updateToolRequestBodyCodeToolToJSON(
|
|
|
1282
1332
|
);
|
|
1283
1333
|
}
|
|
1284
1334
|
|
|
1335
|
+
/** @internal */
|
|
1336
|
+
export const UpdateToolRequestBodyToolsRequestVersionIncrement$outboundSchema:
|
|
1337
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestVersionIncrement> = z
|
|
1338
|
+
.nativeEnum(UpdateToolRequestBodyToolsRequestVersionIncrement);
|
|
1339
|
+
|
|
1285
1340
|
/** @internal */
|
|
1286
1341
|
export type UpdateCodeExecutionTool$Outbound = {
|
|
1287
1342
|
path?: string | undefined;
|
|
@@ -1291,6 +1346,7 @@ export type UpdateCodeExecutionTool$Outbound = {
|
|
|
1291
1346
|
status: string;
|
|
1292
1347
|
type: "code";
|
|
1293
1348
|
code_tool?: UpdateToolRequestBodyCodeTool$Outbound | undefined;
|
|
1349
|
+
versionIncrement?: string | undefined;
|
|
1294
1350
|
};
|
|
1295
1351
|
|
|
1296
1352
|
/** @internal */
|
|
@@ -1309,6 +1365,8 @@ export const UpdateCodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
1309
1365
|
type: z.literal("code"),
|
|
1310
1366
|
codeTool: z.lazy(() => UpdateToolRequestBodyCodeTool$outboundSchema)
|
|
1311
1367
|
.optional(),
|
|
1368
|
+
versionIncrement:
|
|
1369
|
+
UpdateToolRequestBodyToolsRequestVersionIncrement$outboundSchema.optional(),
|
|
1312
1370
|
}).transform((v) => {
|
|
1313
1371
|
return remap$(v, {
|
|
1314
1372
|
displayName: "display_name",
|
|
@@ -1402,7 +1460,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1402
1460
|
z.ZodTypeDef,
|
|
1403
1461
|
RequestBodyTools
|
|
1404
1462
|
> = z.object({
|
|
1405
|
-
id: z.string().default("
|
|
1463
|
+
id: z.string().default("01KJSJH5Y9T3X0CKGH3FH7RF0Q"),
|
|
1406
1464
|
name: z.string(),
|
|
1407
1465
|
description: z.string().optional(),
|
|
1408
1466
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -1456,6 +1514,11 @@ export function updateToolRequestBodyMcpToJSON(
|
|
|
1456
1514
|
);
|
|
1457
1515
|
}
|
|
1458
1516
|
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export const UpdateToolRequestBodyToolsVersionIncrement$outboundSchema:
|
|
1519
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsVersionIncrement> = z
|
|
1520
|
+
.nativeEnum(UpdateToolRequestBodyToolsVersionIncrement);
|
|
1521
|
+
|
|
1459
1522
|
/** @internal */
|
|
1460
1523
|
export type UpdateMCPTool$Outbound = {
|
|
1461
1524
|
path?: string | undefined;
|
|
@@ -1465,6 +1528,7 @@ export type UpdateMCPTool$Outbound = {
|
|
|
1465
1528
|
status: string;
|
|
1466
1529
|
type: "mcp";
|
|
1467
1530
|
mcp?: UpdateToolRequestBodyMcp$Outbound | undefined;
|
|
1531
|
+
versionIncrement?: string | undefined;
|
|
1468
1532
|
};
|
|
1469
1533
|
|
|
1470
1534
|
/** @internal */
|
|
@@ -1482,6 +1546,8 @@ export const UpdateMCPTool$outboundSchema: z.ZodType<
|
|
|
1482
1546
|
),
|
|
1483
1547
|
type: z.literal("mcp"),
|
|
1484
1548
|
mcp: z.lazy(() => UpdateToolRequestBodyMcp$outboundSchema).optional(),
|
|
1549
|
+
versionIncrement: UpdateToolRequestBodyToolsVersionIncrement$outboundSchema
|
|
1550
|
+
.optional(),
|
|
1485
1551
|
}).transform((v) => {
|
|
1486
1552
|
return remap$(v, {
|
|
1487
1553
|
displayName: "display_name",
|
|
@@ -1672,6 +1738,12 @@ export function updateToolRequestBodyHttpToJSON(
|
|
|
1672
1738
|
);
|
|
1673
1739
|
}
|
|
1674
1740
|
|
|
1741
|
+
/** @internal */
|
|
1742
|
+
export const UpdateToolRequestBodyVersionIncrement$outboundSchema:
|
|
1743
|
+
z.ZodNativeEnum<typeof UpdateToolRequestBodyVersionIncrement> = z.nativeEnum(
|
|
1744
|
+
UpdateToolRequestBodyVersionIncrement,
|
|
1745
|
+
);
|
|
1746
|
+
|
|
1675
1747
|
/** @internal */
|
|
1676
1748
|
export type UpdateHTTPTool$Outbound = {
|
|
1677
1749
|
path?: string | undefined;
|
|
@@ -1681,6 +1753,7 @@ export type UpdateHTTPTool$Outbound = {
|
|
|
1681
1753
|
status: string;
|
|
1682
1754
|
type: "http";
|
|
1683
1755
|
http?: UpdateToolRequestBodyHttp$Outbound | undefined;
|
|
1756
|
+
versionIncrement?: string | undefined;
|
|
1684
1757
|
};
|
|
1685
1758
|
|
|
1686
1759
|
/** @internal */
|
|
@@ -1698,6 +1771,8 @@ export const UpdateHTTPTool$outboundSchema: z.ZodType<
|
|
|
1698
1771
|
),
|
|
1699
1772
|
type: z.literal("http"),
|
|
1700
1773
|
http: z.lazy(() => UpdateToolRequestBodyHttp$outboundSchema).optional(),
|
|
1774
|
+
versionIncrement: UpdateToolRequestBodyVersionIncrement$outboundSchema
|
|
1775
|
+
.optional(),
|
|
1701
1776
|
}).transform((v) => {
|
|
1702
1777
|
return remap$(v, {
|
|
1703
1778
|
displayName: "display_name",
|
|
@@ -1780,6 +1855,11 @@ export function updateToolRequestBodyJsonSchemaToJSON(
|
|
|
1780
1855
|
);
|
|
1781
1856
|
}
|
|
1782
1857
|
|
|
1858
|
+
/** @internal */
|
|
1859
|
+
export const RequestBodyVersionIncrement$outboundSchema: z.ZodNativeEnum<
|
|
1860
|
+
typeof RequestBodyVersionIncrement
|
|
1861
|
+
> = z.nativeEnum(RequestBodyVersionIncrement);
|
|
1862
|
+
|
|
1783
1863
|
/** @internal */
|
|
1784
1864
|
export type UpdateJSONSchemaTool$Outbound = {
|
|
1785
1865
|
path?: string | undefined;
|
|
@@ -1789,6 +1869,7 @@ export type UpdateJSONSchemaTool$Outbound = {
|
|
|
1789
1869
|
status: string;
|
|
1790
1870
|
type: "json_schema";
|
|
1791
1871
|
json_schema?: UpdateToolRequestBodyJsonSchema$Outbound | undefined;
|
|
1872
|
+
versionIncrement?: string | undefined;
|
|
1792
1873
|
};
|
|
1793
1874
|
|
|
1794
1875
|
/** @internal */
|
|
@@ -1805,6 +1886,7 @@ export const UpdateJSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
1805
1886
|
type: z.literal("json_schema"),
|
|
1806
1887
|
jsonSchema: z.lazy(() => UpdateToolRequestBodyJsonSchema$outboundSchema)
|
|
1807
1888
|
.optional(),
|
|
1889
|
+
versionIncrement: RequestBodyVersionIncrement$outboundSchema.optional(),
|
|
1808
1890
|
}).transform((v) => {
|
|
1809
1891
|
return remap$(v, {
|
|
1810
1892
|
displayName: "display_name",
|
|
@@ -1899,6 +1981,11 @@ export function updateToolRequestBodyFunctionToJSON(
|
|
|
1899
1981
|
);
|
|
1900
1982
|
}
|
|
1901
1983
|
|
|
1984
|
+
/** @internal */
|
|
1985
|
+
export const VersionIncrement$outboundSchema: z.ZodNativeEnum<
|
|
1986
|
+
typeof VersionIncrement
|
|
1987
|
+
> = z.nativeEnum(VersionIncrement);
|
|
1988
|
+
|
|
1902
1989
|
/** @internal */
|
|
1903
1990
|
export type UpdateFunctionTool$Outbound = {
|
|
1904
1991
|
path?: string | undefined;
|
|
@@ -1908,6 +1995,7 @@ export type UpdateFunctionTool$Outbound = {
|
|
|
1908
1995
|
status: string;
|
|
1909
1996
|
type: "function";
|
|
1910
1997
|
function?: UpdateToolRequestBodyFunction$Outbound | undefined;
|
|
1998
|
+
versionIncrement?: string | undefined;
|
|
1911
1999
|
};
|
|
1912
2000
|
|
|
1913
2001
|
/** @internal */
|
|
@@ -1924,6 +2012,7 @@ export const UpdateFunctionTool$outboundSchema: z.ZodType<
|
|
|
1924
2012
|
type: z.literal("function"),
|
|
1925
2013
|
function: z.lazy(() => UpdateToolRequestBodyFunction$outboundSchema)
|
|
1926
2014
|
.optional(),
|
|
2015
|
+
versionIncrement: VersionIncrement$outboundSchema.optional(),
|
|
1927
2016
|
}).transform((v) => {
|
|
1928
2017
|
return remap$(v, {
|
|
1929
2018
|
displayName: "display_name",
|
|
@@ -2080,7 +2169,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2080
2169
|
z.ZodTypeDef,
|
|
2081
2170
|
unknown
|
|
2082
2171
|
> = z.object({
|
|
2083
|
-
_id: z.string().default("
|
|
2172
|
+
_id: z.string().default("tool_01KJSJH5XQKNG7EPY846F7FHP1"),
|
|
2084
2173
|
path: z.string(),
|
|
2085
2174
|
key: z.string(),
|
|
2086
2175
|
display_name: z.string().optional(),
|
|
@@ -2185,7 +2274,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2185
2274
|
z.ZodTypeDef,
|
|
2186
2275
|
unknown
|
|
2187
2276
|
> = z.object({
|
|
2188
|
-
id: z.string().default("
|
|
2277
|
+
id: z.string().default("01KJSJH5XPTMTWJBXJ4C1PM3XN"),
|
|
2189
2278
|
name: z.string(),
|
|
2190
2279
|
description: z.string().optional(),
|
|
2191
2280
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2241,7 +2330,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2241
2330
|
z.ZodTypeDef,
|
|
2242
2331
|
unknown
|
|
2243
2332
|
> = z.object({
|
|
2244
|
-
_id: z.string().default("
|
|
2333
|
+
_id: z.string().default("tool_01KJSJH5XM5ZF9JY9KQCM5XW4A"),
|
|
2245
2334
|
path: z.string(),
|
|
2246
2335
|
key: z.string(),
|
|
2247
2336
|
display_name: z.string().optional(),
|
|
@@ -2432,7 +2521,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2432
2521
|
z.ZodTypeDef,
|
|
2433
2522
|
unknown
|
|
2434
2523
|
> = z.object({
|
|
2435
|
-
_id: z.string().default("
|
|
2524
|
+
_id: z.string().default("tool_01KJSJH5XHR45PM8KWZG0DAJN3"),
|
|
2436
2525
|
path: z.string(),
|
|
2437
2526
|
key: z.string(),
|
|
2438
2527
|
display_name: z.string().optional(),
|
|
@@ -2529,7 +2618,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2529
2618
|
z.ZodTypeDef,
|
|
2530
2619
|
unknown
|
|
2531
2620
|
> = z.object({
|
|
2532
|
-
_id: z.string().default("
|
|
2621
|
+
_id: z.string().default("tool_01KJSJH5XF9VXB83S83YCPWYBY"),
|
|
2533
2622
|
path: z.string(),
|
|
2534
2623
|
key: z.string(),
|
|
2535
2624
|
display_name: z.string().optional(),
|
|
@@ -2634,7 +2723,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2634
2723
|
z.ZodTypeDef,
|
|
2635
2724
|
unknown
|
|
2636
2725
|
> = z.object({
|
|
2637
|
-
_id: z.string().default("
|
|
2726
|
+
_id: z.string().default("tool_01KJSJH5XDYGQCWDDXQRM3TKWW"),
|
|
2638
2727
|
path: z.string(),
|
|
2639
2728
|
key: z.string(),
|
|
2640
2729
|
display_name: z.string().optional(),
|
|
@@ -180,8 +180,11 @@ async function $do(
|
|
|
180
180
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
181
181
|
.transform(stream => {
|
|
182
182
|
return new EventStream(stream, rawEvent => {
|
|
183
|
-
if (rawEvent.data === "[DONE]")
|
|
183
|
+
if (rawEvent.data === "[DONE]") {
|
|
184
|
+
return { done: true, value: undefined };
|
|
185
|
+
}
|
|
184
186
|
return {
|
|
187
|
+
done: false,
|
|
185
188
|
value: operations.StreamAgentResponseBody$inboundSchema.parse(
|
|
186
189
|
rawEvent,
|
|
187
190
|
),
|
|
@@ -165,8 +165,11 @@ async function $do(
|
|
|
165
165
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
166
166
|
.transform(stream => {
|
|
167
167
|
return new EventStream(stream, rawEvent => {
|
|
168
|
-
if (rawEvent.data === "[DONE]")
|
|
168
|
+
if (rawEvent.data === "[DONE]") {
|
|
169
|
+
return { done: true, value: undefined };
|
|
170
|
+
}
|
|
169
171
|
return {
|
|
172
|
+
done: false,
|
|
170
173
|
value: operations.StreamRunAgentResponseBody$inboundSchema.parse(
|
|
171
174
|
rawEvent,
|
|
172
175
|
),
|
|
@@ -164,8 +164,11 @@ async function $do(
|
|
|
164
164
|
z.instanceof(ReadableStream<Uint8Array>)
|
|
165
165
|
.transform(stream => {
|
|
166
166
|
return new EventStream(stream, rawEvent => {
|
|
167
|
-
if (rawEvent.data === "[DONE]")
|
|
167
|
+
if (rawEvent.data === "[DONE]") {
|
|
168
|
+
return { done: true, value: undefined };
|
|
169
|
+
}
|
|
168
170
|
return {
|
|
171
|
+
done: false,
|
|
169
172
|
value: operations.DeploymentStreamResponseBody$inboundSchema
|
|
170
173
|
.parse(rawEvent),
|
|
171
174
|
};
|
package/src/funcs/filesCreate.ts
CHANGED
|
@@ -99,6 +99,17 @@ async function $do(
|
|
|
99
99
|
|| "application/octet-stream";
|
|
100
100
|
const blob = new Blob([buffer], { type: contentType });
|
|
101
101
|
appendForm(body, "file", blob, payload.file.fileName);
|
|
102
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
103
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
104
|
+
|| "application/octet-stream";
|
|
105
|
+
appendForm(
|
|
106
|
+
body,
|
|
107
|
+
"file",
|
|
108
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
109
|
+
type: contentType,
|
|
110
|
+
}),
|
|
111
|
+
payload.file.fileName,
|
|
112
|
+
);
|
|
102
113
|
} else {
|
|
103
114
|
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
104
115
|
|| "application/octet-stream";
|
|
@@ -115,6 +115,17 @@ async function $do(
|
|
|
115
115
|
|| "application/octet-stream";
|
|
116
116
|
const blob = new Blob([buffer], { type: contentType });
|
|
117
117
|
appendForm(body, "file", blob, payload.file.fileName);
|
|
118
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
119
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
|
+
|| "application/octet-stream";
|
|
121
|
+
appendForm(
|
|
122
|
+
body,
|
|
123
|
+
"file",
|
|
124
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
125
|
+
type: contentType,
|
|
126
|
+
}),
|
|
127
|
+
payload.file.fileName,
|
|
128
|
+
);
|
|
118
129
|
} else {
|
|
119
130
|
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
131
|
|| "application/octet-stream";
|
|
@@ -115,6 +115,17 @@ async function $do(
|
|
|
115
115
|
|| "application/octet-stream";
|
|
116
116
|
const blob = new Blob([buffer], { type: contentType });
|
|
117
117
|
appendForm(body, "file", blob, payload.file.fileName);
|
|
118
|
+
} else if (payload.file.content instanceof Uint8Array) {
|
|
119
|
+
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
|
+
|| "application/octet-stream";
|
|
121
|
+
appendForm(
|
|
122
|
+
body,
|
|
123
|
+
"file",
|
|
124
|
+
new Blob([new Uint8Array(payload.file.content).buffer], {
|
|
125
|
+
type: contentType,
|
|
126
|
+
}),
|
|
127
|
+
payload.file.fileName,
|
|
128
|
+
);
|
|
118
129
|
} else {
|
|
119
130
|
const contentType = getContentTypeFromFileName(payload.file.fileName)
|
|
120
131
|
|| "application/octet-stream";
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.4.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.4.
|
|
71
|
+
sdkVersion: "4.4.12",
|
|
72
|
+
genVersion: "2.846.1",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.4.12 2.846.1 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/lib/event-streams.ts
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
// Ensure ReadableStream always declares [Symbol.asyncIterator] so the
|
|
6
|
+
// override keyword works consistently regardless of installed type
|
|
7
|
+
// definitions (e.g. bun-types omits it from its ReadableStream).
|
|
8
|
+
declare global {
|
|
9
|
+
interface ReadableStream<R = any> {
|
|
10
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
5
14
|
export type SseMessage<T> = {
|
|
6
15
|
data?: T | undefined;
|
|
7
16
|
event?: string | null | undefined;
|
|
@@ -48,7 +57,7 @@ export class EventStream<T extends SseMessage<unknown>>
|
|
|
48
57
|
}
|
|
49
58
|
|
|
50
59
|
// Polyfill for older browsers
|
|
51
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<T> {
|
|
60
|
+
override [Symbol.asyncIterator](): AsyncIterableIterator<T> {
|
|
52
61
|
const fn = (ReadableStream.prototype as any)[Symbol.asyncIterator];
|
|
53
62
|
if (typeof fn === "function") return fn.call(this);
|
|
54
63
|
const reader = this.getReader();
|
package/src/lib/matchers.ts
CHANGED
|
@@ -248,8 +248,9 @@ export function match<T, E>(
|
|
|
248
248
|
raw = body;
|
|
249
249
|
break;
|
|
250
250
|
default:
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
throw new Error(
|
|
252
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
253
|
+
);
|
|
253
254
|
}
|
|
254
255
|
|
|
255
256
|
if (matcher.enc === "fail") {
|