@orq-ai/node 4.15.15 → 4.15.17
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/logsSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/tracesSearch.ts +1 -1
- package/packages/orq-rc/src/funcs/viewsCreate.ts +159 -0
- package/packages/orq-rc/src/funcs/viewsDelete.ts +165 -0
- package/packages/orq-rc/src/funcs/viewsGet.ts +165 -0
- package/packages/orq-rc/src/funcs/viewsList.ts +168 -0
- package/packages/orq-rc/src/funcs/viewsUpdate.ts +166 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/createviewrequest.ts +64 -0
- package/packages/orq-rc/src/models/components/createviewresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deleteviewresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/getviewresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +8 -0
- package/packages/orq-rc/src/models/components/listviewsresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/piiredactionplugin.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/updateviewrequest.ts +65 -0
- package/packages/orq-rc/src/models/components/updateviewresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/view.ts +74 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- 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/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- 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/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/viewdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/viewget.ts +32 -0
- package/packages/orq-rc/src/models/operations/viewlist.ts +44 -0
- package/packages/orq-rc/src/models/operations/viewupdate.ts +41 -0
- package/packages/orq-rc/src/sdk/logs.ts +1 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/traces.ts +1 -1
- package/packages/orq-rc/src/sdk/views.ts +85 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -0,0 +1,166 @@
|
|
|
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 saved view
|
|
31
|
+
*/
|
|
32
|
+
export function viewsUpdate(
|
|
33
|
+
client: OrqCore,
|
|
34
|
+
request: operations.ViewUpdateRequest,
|
|
35
|
+
options?: RequestOptions,
|
|
36
|
+
): APIPromise<
|
|
37
|
+
Result<
|
|
38
|
+
components.UpdateViewResponse,
|
|
39
|
+
| OrqError
|
|
40
|
+
| ResponseValidationError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| SDKValidationError
|
|
47
|
+
>
|
|
48
|
+
> {
|
|
49
|
+
return new APIPromise($do(
|
|
50
|
+
client,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async function $do(
|
|
57
|
+
client: OrqCore,
|
|
58
|
+
request: operations.ViewUpdateRequest,
|
|
59
|
+
options?: RequestOptions,
|
|
60
|
+
): Promise<
|
|
61
|
+
[
|
|
62
|
+
Result<
|
|
63
|
+
components.UpdateViewResponse,
|
|
64
|
+
| OrqError
|
|
65
|
+
| ResponseValidationError
|
|
66
|
+
| ConnectionError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
75
|
+
> {
|
|
76
|
+
const parsed = safeParse(
|
|
77
|
+
request,
|
|
78
|
+
(value) => operations.ViewUpdateRequest$outboundSchema.parse(value),
|
|
79
|
+
"Input validation failed",
|
|
80
|
+
);
|
|
81
|
+
if (!parsed.ok) {
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
83
|
+
}
|
|
84
|
+
const payload = parsed.value;
|
|
85
|
+
const body = encodeJSON("body", payload.UpdateViewRequest, { explode: true });
|
|
86
|
+
|
|
87
|
+
const pathParams = {
|
|
88
|
+
view_id: encodeSimple("view_id", payload.view_id, {
|
|
89
|
+
explode: false,
|
|
90
|
+
charEncoding: "percent",
|
|
91
|
+
}),
|
|
92
|
+
};
|
|
93
|
+
const path = pathToFunc("/v3/views/{view_id}")(pathParams);
|
|
94
|
+
|
|
95
|
+
const headers = new Headers(compactMap({
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
Accept: "application/json",
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
101
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
102
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
|
+
|
|
104
|
+
const context = {
|
|
105
|
+
options: client._options,
|
|
106
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
107
|
+
operationID: "ViewUpdate",
|
|
108
|
+
oAuth2Scopes: null,
|
|
109
|
+
|
|
110
|
+
resolvedSecurity: requestSecurity,
|
|
111
|
+
|
|
112
|
+
securitySource: client._options.apiKey,
|
|
113
|
+
retryConfig: options?.retries
|
|
114
|
+
|| client._options.retryConfig
|
|
115
|
+
|| { strategy: "none" },
|
|
116
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const requestRes = client._createRequest(context, {
|
|
120
|
+
security: requestSecurity,
|
|
121
|
+
method: "PATCH",
|
|
122
|
+
baseURL: options?.serverURL,
|
|
123
|
+
path: path,
|
|
124
|
+
headers: headers,
|
|
125
|
+
body: body,
|
|
126
|
+
userAgent: client._options.userAgent,
|
|
127
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
128
|
+
}, options);
|
|
129
|
+
if (!requestRes.ok) {
|
|
130
|
+
return [requestRes, { status: "invalid" }];
|
|
131
|
+
}
|
|
132
|
+
const req = requestRes.value;
|
|
133
|
+
|
|
134
|
+
const doResult = await client._do(req, {
|
|
135
|
+
context,
|
|
136
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
137
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
138
|
+
retryConfig: context.retryConfig,
|
|
139
|
+
retryCodes: context.retryCodes,
|
|
140
|
+
});
|
|
141
|
+
if (!doResult.ok) {
|
|
142
|
+
return [doResult, { status: "request-error", request: req }];
|
|
143
|
+
}
|
|
144
|
+
const response = doResult.value;
|
|
145
|
+
|
|
146
|
+
const [result] = await M.match<
|
|
147
|
+
components.UpdateViewResponse,
|
|
148
|
+
| OrqError
|
|
149
|
+
| ResponseValidationError
|
|
150
|
+
| ConnectionError
|
|
151
|
+
| RequestAbortedError
|
|
152
|
+
| RequestTimeoutError
|
|
153
|
+
| InvalidRequestError
|
|
154
|
+
| UnexpectedClientError
|
|
155
|
+
| SDKValidationError
|
|
156
|
+
>(
|
|
157
|
+
M.json(200, components.UpdateViewResponse$inboundSchema),
|
|
158
|
+
M.fail("4XX"),
|
|
159
|
+
M.fail("5XX"),
|
|
160
|
+
)(response, req);
|
|
161
|
+
if (!result.ok) {
|
|
162
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
|
+
}
|
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.16.0-rc.
|
|
61
|
+
sdkVersion: "4.16.0-rc.48",
|
|
62
62
|
genVersion: "2.943.0",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.16.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.16.0-rc.48 2.943.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -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
|
+
|
|
8
|
+
export type CreateViewRequest = {
|
|
9
|
+
displayName?: string | undefined;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
page?: string | undefined;
|
|
12
|
+
filterBy?: string | undefined;
|
|
13
|
+
columns?: Array<string> | undefined;
|
|
14
|
+
columnLabels?: { [k: string]: string } | undefined;
|
|
15
|
+
isDefault?: boolean | undefined;
|
|
16
|
+
isPrivate?: boolean | undefined;
|
|
17
|
+
version?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type CreateViewRequest$Outbound = {
|
|
22
|
+
display_name?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
page?: string | undefined;
|
|
25
|
+
filter_by?: string | undefined;
|
|
26
|
+
columns?: Array<string> | undefined;
|
|
27
|
+
column_labels?: { [k: string]: string } | undefined;
|
|
28
|
+
is_default?: boolean | undefined;
|
|
29
|
+
is_private?: boolean | undefined;
|
|
30
|
+
version?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const CreateViewRequest$outboundSchema: z.ZodType<
|
|
35
|
+
CreateViewRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
CreateViewRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
displayName: z.string().optional(),
|
|
40
|
+
description: z.string().optional(),
|
|
41
|
+
page: z.string().optional(),
|
|
42
|
+
filterBy: z.string().optional(),
|
|
43
|
+
columns: z.array(z.string()).optional(),
|
|
44
|
+
columnLabels: z.record(z.string()).optional(),
|
|
45
|
+
isDefault: z.boolean().optional(),
|
|
46
|
+
isPrivate: z.boolean().optional(),
|
|
47
|
+
version: z.number().int().optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
displayName: "display_name",
|
|
51
|
+
filterBy: "filter_by",
|
|
52
|
+
columnLabels: "column_labels",
|
|
53
|
+
isDefault: "is_default",
|
|
54
|
+
isPrivate: "is_private",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export function createViewRequestToJSON(
|
|
59
|
+
createViewRequest: CreateViewRequest,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
CreateViewRequest$outboundSchema.parse(createViewRequest),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -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 { View, View$inboundSchema } from "./view.js";
|
|
10
|
+
|
|
11
|
+
export type CreateViewResponse = {
|
|
12
|
+
view?: View | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CreateViewResponse$inboundSchema: z.ZodType<
|
|
17
|
+
CreateViewResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
view: View$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function createViewResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<CreateViewResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => CreateViewResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'CreateViewResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -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 DeleteViewResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteViewResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteViewResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteViewResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteViewResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteViewResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteViewResponse' 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 { View, View$inboundSchema } from "./view.js";
|
|
10
|
+
|
|
11
|
+
export type GetViewResponse = {
|
|
12
|
+
view?: View | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const GetViewResponse$inboundSchema: z.ZodType<
|
|
17
|
+
GetViewResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
view: View$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function getViewResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<GetViewResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => GetViewResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'GetViewResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -135,6 +135,8 @@ export * from "./createskillresponse.js";
|
|
|
135
135
|
export * from "./createsmartrouterrequest.js";
|
|
136
136
|
export * from "./createsmartrouterresponse.js";
|
|
137
137
|
export * from "./createthreadrequest.js";
|
|
138
|
+
export * from "./createviewrequest.js";
|
|
139
|
+
export * from "./createviewresponse.js";
|
|
138
140
|
export * from "./createwebhookrequest.js";
|
|
139
141
|
export * from "./createwikirequest.js";
|
|
140
142
|
export * from "./createwikiresponse.js";
|
|
@@ -172,6 +174,7 @@ export * from "./deletenotifierresponse.js";
|
|
|
172
174
|
export * from "./deleteprojectresponse.js";
|
|
173
175
|
export * from "./deleteskillresponse.js";
|
|
174
176
|
export * from "./deletesmartrouterresponse.js";
|
|
177
|
+
export * from "./deleteviewresponse.js";
|
|
175
178
|
export * from "./deletewebhookresponse.js";
|
|
176
179
|
export * from "./deletewikiresponse.js";
|
|
177
180
|
export * from "./detectrequest.js";
|
|
@@ -254,6 +257,7 @@ export * from "./gettraceconversationresponse.js";
|
|
|
254
257
|
export * from "./gettraceresponse.js";
|
|
255
258
|
export * from "./gettracespanresponse.js";
|
|
256
259
|
export * from "./getuploadfileurlresponse.js";
|
|
260
|
+
export * from "./getviewresponse.js";
|
|
257
261
|
export * from "./getwikipageresponse.js";
|
|
258
262
|
export * from "./getwikiresponse.js";
|
|
259
263
|
export * from "./getwikitreeresponse.js";
|
|
@@ -341,6 +345,7 @@ export * from "./listtracefieldsresponse.js";
|
|
|
341
345
|
export * from "./listtracefiltersresponse.js";
|
|
342
346
|
export * from "./listtracelogsresponse.js";
|
|
343
347
|
export * from "./listtracespansresponse.js";
|
|
348
|
+
export * from "./listviewsresponse.js";
|
|
344
349
|
export * from "./listwebhooksresponse.js";
|
|
345
350
|
export * from "./listwikirunsresponse.js";
|
|
346
351
|
export * from "./listwikisresponse.js";
|
|
@@ -688,6 +693,8 @@ export * from "./updateskillresponse.js";
|
|
|
688
693
|
export * from "./updatesmartrouterrequest.js";
|
|
689
694
|
export * from "./updatesmartrouterresponse.js";
|
|
690
695
|
export * from "./updatethreadrequest.js";
|
|
696
|
+
export * from "./updateviewrequest.js";
|
|
697
|
+
export * from "./updateviewresponse.js";
|
|
691
698
|
export * from "./updatewikipagerequest.js";
|
|
692
699
|
export * from "./updatewikipageresponse.js";
|
|
693
700
|
export * from "./updatewikirequest.js";
|
|
@@ -705,6 +712,7 @@ export * from "./vertexmodelconfiguration.js";
|
|
|
705
712
|
export * from "./vertexparameters.js";
|
|
706
713
|
export * from "./vertexparamrange.js";
|
|
707
714
|
export * from "./vertexparamrangeint.js";
|
|
715
|
+
export * from "./view.js";
|
|
708
716
|
export * from "./webhook.js";
|
|
709
717
|
export * from "./webscrapertoolinput.js";
|
|
710
718
|
export * from "./wiki.js";
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { View, View$inboundSchema } from "./view.js";
|
|
11
|
+
|
|
12
|
+
export type ListViewsResponse = {
|
|
13
|
+
data?: Array<View> | undefined;
|
|
14
|
+
hasMore?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ListViewsResponse$inboundSchema: z.ZodType<
|
|
19
|
+
ListViewsResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
data: z.array(View$inboundSchema).optional(),
|
|
24
|
+
has_more: z.boolean().optional(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"has_more": "hasMore",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function listViewsResponseFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<ListViewsResponse, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => ListViewsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'ListViewsResponse' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -38,7 +38,7 @@ export type PIIRedactionPlugin = {
|
|
|
38
38
|
*/
|
|
39
39
|
id: Id;
|
|
40
40
|
/**
|
|
41
|
-
* Detector language.
|
|
41
|
+
* Detector language. Accepts "auto" to detect the language per request; GET /v2/pii/capabilities lists the concrete languages and does not include "auto". Omitting the field falls back to en.
|
|
42
42
|
*/
|
|
43
43
|
language?: string | undefined;
|
|
44
44
|
/**
|
|
@@ -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_01m45skzphpv17pe2brw4rd2hg"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,65 @@
|
|
|
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 UpdateViewRequest = {
|
|
9
|
+
displayName?: string | undefined;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
filterBy?: string | undefined;
|
|
12
|
+
columns?: Array<string> | undefined;
|
|
13
|
+
columnLabels?: { [k: string]: string } | undefined;
|
|
14
|
+
isDefault?: boolean | undefined;
|
|
15
|
+
isPrivate?: boolean | undefined;
|
|
16
|
+
version?: number | undefined;
|
|
17
|
+
updateMask?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type UpdateViewRequest$Outbound = {
|
|
22
|
+
display_name?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
filter_by?: string | undefined;
|
|
25
|
+
columns?: Array<string> | undefined;
|
|
26
|
+
column_labels?: { [k: string]: string } | undefined;
|
|
27
|
+
is_default?: boolean | undefined;
|
|
28
|
+
is_private?: boolean | undefined;
|
|
29
|
+
version?: number | undefined;
|
|
30
|
+
update_mask?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const UpdateViewRequest$outboundSchema: z.ZodType<
|
|
35
|
+
UpdateViewRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
UpdateViewRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
displayName: z.string().optional(),
|
|
40
|
+
description: z.string().optional(),
|
|
41
|
+
filterBy: z.string().optional(),
|
|
42
|
+
columns: z.array(z.string()).optional(),
|
|
43
|
+
columnLabels: z.record(z.string()).optional(),
|
|
44
|
+
isDefault: z.boolean().optional(),
|
|
45
|
+
isPrivate: z.boolean().optional(),
|
|
46
|
+
version: z.number().int().optional(),
|
|
47
|
+
updateMask: z.string().optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
displayName: "display_name",
|
|
51
|
+
filterBy: "filter_by",
|
|
52
|
+
columnLabels: "column_labels",
|
|
53
|
+
isDefault: "is_default",
|
|
54
|
+
isPrivate: "is_private",
|
|
55
|
+
updateMask: "update_mask",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function updateViewRequestToJSON(
|
|
60
|
+
updateViewRequest: UpdateViewRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
UpdateViewRequest$outboundSchema.parse(updateViewRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -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 { View, View$inboundSchema } from "./view.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateViewResponse = {
|
|
12
|
+
view?: View | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const UpdateViewResponse$inboundSchema: z.ZodType<
|
|
17
|
+
UpdateViewResponse,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
view: View$inboundSchema.optional(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function updateViewResponseFromJSON(
|
|
25
|
+
jsonString: string,
|
|
26
|
+
): SafeParseResult<UpdateViewResponse, SDKValidationError> {
|
|
27
|
+
return safeParse(
|
|
28
|
+
jsonString,
|
|
29
|
+
(x) => UpdateViewResponse$inboundSchema.parse(JSON.parse(x)),
|
|
30
|
+
`Failed to parse 'UpdateViewResponse' from JSON`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 View = {
|
|
12
|
+
id?: string | undefined;
|
|
13
|
+
displayName?: string | undefined;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
workspaceId?: string | undefined;
|
|
16
|
+
page?: string | undefined;
|
|
17
|
+
filterBy?: string | undefined;
|
|
18
|
+
columns?: Array<string> | undefined;
|
|
19
|
+
columnLabels?: { [k: string]: string } | undefined;
|
|
20
|
+
isDefault?: boolean | undefined;
|
|
21
|
+
privateForIds?: Array<string> | undefined;
|
|
22
|
+
version?: number | undefined;
|
|
23
|
+
createdById?: string | undefined;
|
|
24
|
+
updatedById?: string | undefined;
|
|
25
|
+
createdAt?: Date | undefined;
|
|
26
|
+
updatedAt?: Date | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const View$inboundSchema: z.ZodType<View, z.ZodTypeDef, unknown> = z
|
|
31
|
+
.object({
|
|
32
|
+
id: z.string().optional(),
|
|
33
|
+
display_name: z.string().optional(),
|
|
34
|
+
description: z.string().optional(),
|
|
35
|
+
workspace_id: z.string().optional(),
|
|
36
|
+
page: z.string().optional(),
|
|
37
|
+
filter_by: z.string().optional(),
|
|
38
|
+
columns: z.array(z.string()).optional(),
|
|
39
|
+
column_labels: z.record(z.string()).optional(),
|
|
40
|
+
is_default: z.boolean().optional(),
|
|
41
|
+
private_for_ids: z.array(z.string()).optional(),
|
|
42
|
+
version: z.number().int().optional(),
|
|
43
|
+
created_by_id: z.string().optional(),
|
|
44
|
+
updated_by_id: z.string().optional(),
|
|
45
|
+
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
46
|
+
new Date(v)
|
|
47
|
+
).optional(),
|
|
48
|
+
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
49
|
+
new Date(v)
|
|
50
|
+
).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"display_name": "displayName",
|
|
54
|
+
"workspace_id": "workspaceId",
|
|
55
|
+
"filter_by": "filterBy",
|
|
56
|
+
"column_labels": "columnLabels",
|
|
57
|
+
"is_default": "isDefault",
|
|
58
|
+
"private_for_ids": "privateForIds",
|
|
59
|
+
"created_by_id": "createdById",
|
|
60
|
+
"updated_by_id": "updatedById",
|
|
61
|
+
"created_at": "createdAt",
|
|
62
|
+
"updated_at": "updatedAt",
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function viewFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<View, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => View$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'View' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M45SKZSYHEK4M04K7S8KJWVA"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M45SKZSY8YWRDFQ9S9WAHVYQ"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M45SKZSXY3KXC097XS5TW5NR"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M45SKZSXYY1T2CTD623ZDB8Q"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|