@orq-ai/node 4.8.8 → 4.8.10
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/jsr.json +1 -1
- package/langchain/async-handler.d.mts.map +1 -1
- package/langchain/async-handler.mjs +10 -2
- package/langchain/async-handler.mjs.map +1 -1
- package/langchain/handler.d.mts.map +1 -1
- package/langchain/handler.mjs +10 -2
- package/langchain/handler.mjs.map +1 -1
- package/langchain/utils.d.mts.map +1 -1
- package/langchain/utils.mjs +17 -0
- package/langchain/utils.mjs.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/reasoningpart.js +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/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- 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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- 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 +6 -6
- package/packages/orq-rc/src/funcs/projectsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/projectsDelete.ts +165 -0
- package/packages/orq-rc/src/funcs/projectsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/projectsList.ts +170 -0
- package/packages/orq-rc/src/funcs/projectsUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +34 -0
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/createskillrequest.ts +0 -3
- package/packages/orq-rc/src/models/components/deleteprojectresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +8 -0
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/project.ts +64 -0
- package/packages/orq-rc/src/models/components/publicschedule.ts +0 -3
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/skill.ts +0 -2
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +0 -3
- package/packages/orq-rc/src/models/operations/createagentschedule.ts +0 -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/createtool.ts +6 -6
- 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/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +4 -0
- 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/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/projectget.ts +36 -0
- package/packages/orq-rc/src/models/operations/projectlist.ts +43 -0
- package/packages/orq-rc/src/models/operations/projectupdate.ts +41 -0
- package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +0 -3
- 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/updateagentschedule.ts +0 -3
- 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/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/projects.ts +97 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -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/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- 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
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update a project
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Updates the specified project by setting the values of the parameters passed.
|
|
34
|
+
*/
|
|
35
|
+
export function projectsUpdate(
|
|
36
|
+
client: OrqCore,
|
|
37
|
+
request: operations.ProjectUpdateRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.UpdateProjectResponse,
|
|
42
|
+
| OrqError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: OrqCore,
|
|
61
|
+
request: operations.ProjectUpdateRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.UpdateProjectResponse,
|
|
67
|
+
| OrqError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) => operations.ProjectUpdateRequest$outboundSchema.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = encodeJSON("body", payload.UpdateProjectRequest, {
|
|
89
|
+
explode: true,
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
project_id: encodeSimple("project_id", payload.project_id, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
const path = pathToFunc("/v2/projects/{project_id}")(pathParams);
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "ProjectUpdate",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.apiKey,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "PATCH",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
142
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const [result] = await M.match<
|
|
152
|
+
components.UpdateProjectResponse,
|
|
153
|
+
| OrqError
|
|
154
|
+
| ResponseValidationError
|
|
155
|
+
| ConnectionError
|
|
156
|
+
| RequestAbortedError
|
|
157
|
+
| RequestTimeoutError
|
|
158
|
+
| InvalidRequestError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| SDKValidationError
|
|
161
|
+
>(
|
|
162
|
+
M.json(200, components.UpdateProjectResponse$inboundSchema),
|
|
163
|
+
M.fail("4XX"),
|
|
164
|
+
M.fail("5XX"),
|
|
165
|
+
)(response, req);
|
|
166
|
+
if (!result.ok) {
|
|
167
|
+
return [result, { status: "complete", request: req, response }];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
|
@@ -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.9.0-rc.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.9.0-rc.
|
|
71
|
+
sdkVersion: "4.9.0-rc.35",
|
|
72
|
+
genVersion: "2.882.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.9.0-rc.35 2.882.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type CreateProjectRequest = {
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
teams?: Array<string> | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type CreateProjectRequest$Outbound = {
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
teams?: Array<string> | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const CreateProjectRequest$outboundSchema: z.ZodType<
|
|
20
|
+
CreateProjectRequest$Outbound,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
CreateProjectRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
name: z.string().optional(),
|
|
25
|
+
teams: z.array(z.string()).optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function createProjectRequestToJSON(
|
|
29
|
+
createProjectRequest: CreateProjectRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
CreateProjectRequest$outboundSchema.parse(createProjectRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Project, Project$inboundSchema } from "./project.js";
|
|
10
|
+
|
|
11
|
+
export type CreateProjectResponse = {
|
|
12
|
+
project?: Project | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CreateProjectResponse$inboundSchema: z.ZodType<
|
|
17
|
+
CreateProjectResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
project: Project$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function createProjectResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<CreateProjectResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => CreateProjectResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'CreateProjectResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -8,7 +8,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
8
8
|
export type CreateSkillRequest = {
|
|
9
9
|
displayName?: string | undefined;
|
|
10
10
|
description?: string | undefined;
|
|
11
|
-
enabled?: boolean | undefined;
|
|
12
11
|
tags?: Array<string> | undefined;
|
|
13
12
|
path?: string | undefined;
|
|
14
13
|
projectId?: string | undefined;
|
|
@@ -19,7 +18,6 @@ export type CreateSkillRequest = {
|
|
|
19
18
|
export type CreateSkillRequest$Outbound = {
|
|
20
19
|
display_name?: string | undefined;
|
|
21
20
|
description?: string | undefined;
|
|
22
|
-
enabled?: boolean | undefined;
|
|
23
21
|
tags?: Array<string> | undefined;
|
|
24
22
|
path?: string | undefined;
|
|
25
23
|
project_id?: string | undefined;
|
|
@@ -34,7 +32,6 @@ export const CreateSkillRequest$outboundSchema: z.ZodType<
|
|
|
34
32
|
> = z.object({
|
|
35
33
|
displayName: z.string().optional(),
|
|
36
34
|
description: z.string().optional(),
|
|
37
|
-
enabled: z.boolean().optional(),
|
|
38
35
|
tags: z.array(z.string()).optional(),
|
|
39
36
|
path: z.string().optional(),
|
|
40
37
|
projectId: z.string().optional(),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeleteProjectResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteProjectResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteProjectResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteProjectResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteProjectResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteProjectResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteProjectResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Project, Project$inboundSchema } from "./project.js";
|
|
10
|
+
|
|
11
|
+
export type GetProjectResponse = {
|
|
12
|
+
project?: Project | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const GetProjectResponse$inboundSchema: z.ZodType<
|
|
17
|
+
GetProjectResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
project: Project$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function getProjectResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<GetProjectResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => GetProjectResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'GetProjectResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -18,10 +18,13 @@ export * from "./conversationparam.js";
|
|
|
18
18
|
export * from "./createagentresponse.js";
|
|
19
19
|
export * from "./createfilerequest.js";
|
|
20
20
|
export * from "./createfileresponse.js";
|
|
21
|
+
export * from "./createprojectrequest.js";
|
|
22
|
+
export * from "./createprojectresponse.js";
|
|
21
23
|
export * from "./createskillrequest.js";
|
|
22
24
|
export * from "./createskillresponse.js";
|
|
23
25
|
export * from "./datapart.js";
|
|
24
26
|
export * from "./deletefileresponse.js";
|
|
27
|
+
export * from "./deleteprojectresponse.js";
|
|
25
28
|
export * from "./deleteskillresponse.js";
|
|
26
29
|
export * from "./errorpart.js";
|
|
27
30
|
export * from "./errorstreamingevent.js";
|
|
@@ -39,6 +42,7 @@ export * from "./filepart.js";
|
|
|
39
42
|
export * from "./getagentresponse.js";
|
|
40
43
|
export * from "./getfilecontentresponse.js";
|
|
41
44
|
export * from "./getfileresponse.js";
|
|
45
|
+
export * from "./getprojectresponse.js";
|
|
42
46
|
export * from "./getskillresponse.js";
|
|
43
47
|
export * from "./guardrailref.js";
|
|
44
48
|
export * from "./guardrailrule.js";
|
|
@@ -48,6 +52,7 @@ export * from "./inputtokensdetails.js";
|
|
|
48
52
|
export * from "./invokedeploymentrequest.js";
|
|
49
53
|
export * from "./limits.js";
|
|
50
54
|
export * from "./listfilesresponse.js";
|
|
55
|
+
export * from "./listprojectsresponse.js";
|
|
51
56
|
export * from "./listskillsresponse.js";
|
|
52
57
|
export * from "./memoryparam.js";
|
|
53
58
|
export * from "./modelref.js";
|
|
@@ -58,6 +63,7 @@ export * from "./partdeltaevent.js";
|
|
|
58
63
|
export * from "./partdoneevent.js";
|
|
59
64
|
export * from "./policy.js";
|
|
60
65
|
export * from "./policyretryconfig.js";
|
|
66
|
+
export * from "./project.js";
|
|
61
67
|
export * from "./publiccontact.js";
|
|
62
68
|
export * from "./publicidentity.js";
|
|
63
69
|
export * from "./publicschedule.js";
|
|
@@ -105,5 +111,7 @@ export * from "./toolreviewrequestedevent.js";
|
|
|
105
111
|
export * from "./toolstartedevent.js";
|
|
106
112
|
export * from "./updatefilerequest.js";
|
|
107
113
|
export * from "./updatefileresponse.js";
|
|
114
|
+
export * from "./updateprojectrequest.js";
|
|
115
|
+
export * from "./updateprojectresponse.js";
|
|
108
116
|
export * from "./updateskillrequest.js";
|
|
109
117
|
export * from "./updateskillresponse.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Project, Project$inboundSchema } from "./project.js";
|
|
11
|
+
|
|
12
|
+
export type ListProjectsResponse = {
|
|
13
|
+
object?: string | undefined;
|
|
14
|
+
data?: Array<Project> | undefined;
|
|
15
|
+
hasMore?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ListProjectsResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ListProjectsResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
object: z.string().optional(),
|
|
25
|
+
data: z.array(Project$inboundSchema).optional(),
|
|
26
|
+
has_more: z.boolean().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"has_more": "hasMore",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listProjectsResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListProjectsResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListProjectsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListProjectsResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type Project = {
|
|
12
|
+
projectId?: string | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
key?: string | undefined;
|
|
15
|
+
workspaceId?: string | undefined;
|
|
16
|
+
isArchived?: boolean | undefined;
|
|
17
|
+
isDefault?: boolean | undefined;
|
|
18
|
+
teams?: Array<string> | undefined;
|
|
19
|
+
createdAt?: Date | undefined;
|
|
20
|
+
updatedAt?: Date | undefined;
|
|
21
|
+
createdById?: string | undefined;
|
|
22
|
+
updatedById?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
27
|
+
z.object({
|
|
28
|
+
project_id: z.string().optional(),
|
|
29
|
+
name: z.string().optional(),
|
|
30
|
+
key: z.string().optional(),
|
|
31
|
+
workspace_id: z.string().optional(),
|
|
32
|
+
is_archived: z.boolean().optional(),
|
|
33
|
+
is_default: z.boolean().optional(),
|
|
34
|
+
teams: z.array(z.string()).optional(),
|
|
35
|
+
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
36
|
+
new Date(v)
|
|
37
|
+
).optional(),
|
|
38
|
+
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
39
|
+
new Date(v)
|
|
40
|
+
).optional(),
|
|
41
|
+
created_by_id: z.string().optional(),
|
|
42
|
+
updated_by_id: z.string().optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"project_id": "projectId",
|
|
46
|
+
"workspace_id": "workspaceId",
|
|
47
|
+
"is_archived": "isArchived",
|
|
48
|
+
"is_default": "isDefault",
|
|
49
|
+
"created_at": "createdAt",
|
|
50
|
+
"updated_at": "updatedAt",
|
|
51
|
+
"created_by_id": "createdById",
|
|
52
|
+
"updated_by_id": "updatedById",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function projectFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<Project, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => Project$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'Project' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -67,7 +67,6 @@ export type PublicSchedule = {
|
|
|
67
67
|
*/
|
|
68
68
|
type: PublicScheduleType;
|
|
69
69
|
updated: Date;
|
|
70
|
-
workspaceId: string;
|
|
71
70
|
};
|
|
72
71
|
|
|
73
72
|
/** @internal */
|
|
@@ -96,7 +95,6 @@ export const PublicSchedule$inboundSchema: z.ZodType<
|
|
|
96
95
|
trigger_count: z.number().int(),
|
|
97
96
|
type: PublicScheduleType$inboundSchema,
|
|
98
97
|
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
99
|
-
workspace_id: z.string(),
|
|
100
98
|
}).transform((v) => {
|
|
101
99
|
return remap$(v, {
|
|
102
100
|
"_id": "id",
|
|
@@ -106,7 +104,6 @@ export const PublicSchedule$inboundSchema: z.ZodType<
|
|
|
106
104
|
"is_active": "isActive",
|
|
107
105
|
"last_triggered_at": "lastTriggeredAt",
|
|
108
106
|
"trigger_count": "triggerCount",
|
|
109
|
-
"workspace_id": "workspaceId",
|
|
110
107
|
});
|
|
111
108
|
});
|
|
112
109
|
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kr3n6t2zyaqnaebdyek8exsc"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -12,7 +12,6 @@ export type Skill = {
|
|
|
12
12
|
skillId?: string | undefined;
|
|
13
13
|
displayName?: string | undefined;
|
|
14
14
|
description?: string | undefined;
|
|
15
|
-
enabled?: boolean | undefined;
|
|
16
15
|
tags?: Array<string> | undefined;
|
|
17
16
|
projectId?: string | undefined;
|
|
18
17
|
path?: string | undefined;
|
|
@@ -38,7 +37,6 @@ export const Skill$inboundSchema: z.ZodType<Skill, z.ZodTypeDef, unknown> = z
|
|
|
38
37
|
skill_id: z.string().optional(),
|
|
39
38
|
display_name: z.string().optional(),
|
|
40
39
|
description: z.string().optional(),
|
|
41
|
-
enabled: z.boolean().optional(),
|
|
42
40
|
tags: z.array(z.string()).optional(),
|
|
43
41
|
project_id: z.string().optional(),
|
|
44
42
|
path: z.string().optional(),
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type UpdateProjectRequest = {
|
|
9
|
+
projectId?: string | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
|
+
teams?: Array<string> | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type UpdateProjectRequest$Outbound = {
|
|
16
|
+
project_id?: string | undefined;
|
|
17
|
+
name?: string | undefined;
|
|
18
|
+
teams?: Array<string> | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const UpdateProjectRequest$outboundSchema: z.ZodType<
|
|
23
|
+
UpdateProjectRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
UpdateProjectRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
projectId: z.string().optional(),
|
|
28
|
+
name: z.string().optional(),
|
|
29
|
+
teams: z.array(z.string()).optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
projectId: "project_id",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function updateProjectRequestToJSON(
|
|
37
|
+
updateProjectRequest: UpdateProjectRequest,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
UpdateProjectRequest$outboundSchema.parse(updateProjectRequest),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Project, Project$inboundSchema } from "./project.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateProjectResponse = {
|
|
12
|
+
project?: Project | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateProjectResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateProjectResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
project: Project$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateProjectResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateProjectResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateProjectResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateProjectResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -9,7 +9,6 @@ export type UpdateSkillRequest = {
|
|
|
9
9
|
skillId?: string | undefined;
|
|
10
10
|
displayName?: string | undefined;
|
|
11
11
|
description?: string | undefined;
|
|
12
|
-
enabled?: boolean | undefined;
|
|
13
12
|
tags?: Array<string> | undefined;
|
|
14
13
|
path?: string | undefined;
|
|
15
14
|
instructions?: string | undefined;
|
|
@@ -21,7 +20,6 @@ export type UpdateSkillRequest$Outbound = {
|
|
|
21
20
|
skill_id?: string | undefined;
|
|
22
21
|
display_name?: string | undefined;
|
|
23
22
|
description?: string | undefined;
|
|
24
|
-
enabled?: boolean | undefined;
|
|
25
23
|
tags?: Array<string> | undefined;
|
|
26
24
|
path?: string | undefined;
|
|
27
25
|
instructions?: string | undefined;
|
|
@@ -37,7 +35,6 @@ export const UpdateSkillRequest$outboundSchema: z.ZodType<
|
|
|
37
35
|
skillId: z.string().optional(),
|
|
38
36
|
displayName: z.string().optional(),
|
|
39
37
|
description: z.string().optional(),
|
|
40
|
-
enabled: z.boolean().optional(),
|
|
41
38
|
tags: z.array(z.string()).optional(),
|
|
42
39
|
path: z.string().optional(),
|
|
43
40
|
instructions: z.string().optional(),
|
|
@@ -108,7 +108,6 @@ export type CreateAgentScheduleResponseBody = {
|
|
|
108
108
|
*/
|
|
109
109
|
type: CreateAgentScheduleSchedulesType;
|
|
110
110
|
updated: Date;
|
|
111
|
-
workspaceId: string;
|
|
112
111
|
};
|
|
113
112
|
|
|
114
113
|
/** @internal */
|
|
@@ -205,7 +204,6 @@ export const CreateAgentScheduleResponseBody$inboundSchema: z.ZodType<
|
|
|
205
204
|
trigger_count: z.number().int(),
|
|
206
205
|
type: CreateAgentScheduleSchedulesType$inboundSchema,
|
|
207
206
|
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
208
|
-
workspace_id: z.string(),
|
|
209
207
|
}).transform((v) => {
|
|
210
208
|
return remap$(v, {
|
|
211
209
|
"_id": "id",
|
|
@@ -215,7 +213,6 @@ export const CreateAgentScheduleResponseBody$inboundSchema: z.ZodType<
|
|
|
215
213
|
"is_active": "isActive",
|
|
216
214
|
"last_triggered_at": "lastTriggeredAt",
|
|
217
215
|
"trigger_count": "triggerCount",
|
|
218
|
-
"workspace_id": "workspaceId",
|
|
219
216
|
});
|
|
220
217
|
});
|
|
221
218
|
|
|
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
134
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
135
|
.optional(),
|
|
136
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-05-
|
|
137
|
+
"2026-05-08T11:22:32.258Z",
|
|
138
138
|
).transform(v => new Date(v)),
|
|
139
139
|
}).transform((v) => {
|
|
140
140
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-05-
|
|
141
|
+
"2026-05-08T11:22:32.258Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|