@orq-ai/node 4.14.3 → 4.14.6
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 +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.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/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- 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/retrieveannotationqueue.js +1 -1
- 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/updateannotationqueue.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 +3 -3
- package/packages/orq-rc/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
- package/packages/orq-rc/src/funcs/annotationQueuesAddItems.ts +9 -10
- package/packages/orq-rc/src/funcs/annotationQueuesClear.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +10 -13
- package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +8 -8
- package/packages/orq-rc/src/funcs/annotationQueuesList.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesListItems.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRemoveItems.ts +12 -10
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieve.ts +6 -5
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
- package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +10 -7
- package/packages/orq-rc/src/funcs/auditLogsQuery.ts +162 -0
- package/packages/orq-rc/src/funcs/evalsAll.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsCreate.ts +10 -35
- package/packages/orq-rc/src/funcs/evalsDelete.ts +6 -19
- package/packages/orq-rc/src/funcs/evalsGet.ts +6 -14
- package/packages/orq-rc/src/funcs/evalsGetVersion.ts +174 -0
- package/packages/orq-rc/src/funcs/evalsListVersions.ts +11 -20
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +6 -14
- package/packages/orq-rc/src/funcs/workspacesGet.ts +168 -0
- package/packages/orq-rc/src/funcs/workspacesList.ts +170 -0
- package/packages/orq-rc/src/funcs/workspacesUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +58 -23
- package/packages/orq-rc/src/models/components/addannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/addannotationqueueitemsresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +17 -10
- package/packages/orq-rc/src/models/components/annotationqueue.ts +101 -0
- package/packages/orq-rc/src/models/components/annotationqueueitem.ts +80 -0
- package/packages/orq-rc/src/models/components/annotationqueueitemref.ts +43 -0
- package/packages/orq-rc/src/models/components/annotationqueuemetadata.ts +42 -0
- package/packages/orq-rc/src/models/components/auditlog.ts +122 -0
- package/packages/orq-rc/src/models/components/auditlogfilter.ts +51 -0
- package/packages/orq-rc/src/models/components/auditlogfilterquery.ts +54 -0
- package/packages/orq-rc/src/models/components/auditlogpagination.ts +55 -0
- package/packages/orq-rc/src/models/components/auditlogsort.ts +39 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +1 -7
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -5
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -5
- package/packages/orq-rc/src/models/components/clearannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/createannotationqueuerequest.ts +54 -0
- package/packages/orq-rc/src/models/components/createapikeyrequest.ts +9 -0
- package/packages/orq-rc/src/models/components/deleteannotationqueueresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deleteevaluatorresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatordocumentresponse.ts +50 -0
- package/packages/orq-rc/src/models/components/filesystemtoolinput.ts +63 -6
- package/packages/orq-rc/src/models/components/getevaluatorversionresponse.ts +58 -0
- package/packages/orq-rc/src/models/components/getworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/index.ts +35 -8
- package/packages/orq-rc/src/models/components/listannotationqueueitemsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listannotationqueuesresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listevaluatorsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/listevaluatorversionsresponse.ts +59 -0
- package/packages/orq-rc/src/models/components/listworkspacesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +10 -11
- package/packages/orq-rc/src/models/components/piiredactionconfig.ts +7 -9
- package/packages/orq-rc/src/models/components/pricing.ts +12 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +12 -0
- package/packages/orq-rc/src/models/components/queryauditlogsrequest.ts +64 -0
- package/packages/orq-rc/src/models/components/queryauditlogsresponse.ts +55 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +37 -58
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +19 -23
- package/packages/orq-rc/src/models/components/updateannotationqueuerequest.ts +61 -0
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +81 -0
- package/packages/orq-rc/src/models/components/updateworkspaceresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/value.ts +20 -0
- package/packages/orq-rc/src/models/components/workspace.ts +116 -0
- package/packages/orq-rc/src/models/components/workspacecapabilities.ts +33 -0
- package/packages/orq-rc/src/models/components/workspaceorganization.ts +33 -0
- package/packages/orq-rc/src/models/components/workspacesettingsfields.ts +135 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -6
- package/packages/orq-rc/src/models/operations/addannotationqueueitems.ts +7 -139
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +20 -31
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
- package/packages/orq-rc/src/models/operations/createeval.ts +3 -644
- package/packages/orq-rc/src/models/operations/createprompt.ts +19 -22
- package/packages/orq-rc/src/models/operations/createtool.ts +55 -56
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +16 -18
- package/packages/orq-rc/src/models/operations/deployments.ts +43 -46
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/geteval.ts +0 -2770
- package/packages/orq-rc/src/models/operations/getevals.ts +5 -119
- package/packages/orq-rc/src/models/operations/getevalversion.ts +39 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- 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 +5 -2
- package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +5 -183
- package/packages/orq-rc/src/models/operations/listannotationqueues.ts +7 -173
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listevalversions.ts +49 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/parse.ts +7 -7
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +14 -20
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/removeannotationqueueitems.ts +8 -41
- package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +0 -123
- package/packages/orq-rc/src/models/operations/retrieveannotationqueueitem.ts +31 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- 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/updateagent.ts +31 -40
- package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +7 -182
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +6 -404
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/workspaceget.ts +31 -0
- package/packages/orq-rc/src/models/operations/workspacelist.ts +43 -0
- package/packages/orq-rc/src/models/operations/workspaceupdate.ts +40 -0
- package/packages/orq-rc/src/sdk/annotationqueues.ts +31 -31
- package/packages/orq-rc/src/sdk/auditlogs.ts +27 -0
- package/packages/orq-rc/src/sdk/evals.ts +41 -23
- package/packages/orq-rc/src/sdk/sdk.ts +22 -10
- package/packages/orq-rc/src/sdk/workspaces.ts +64 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.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/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- 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/retrieveannotationqueue.ts +1 -1
- 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/updateannotationqueue.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
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +0 -922
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +0 -77
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +0 -310
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +0 -60
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +0 -84
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +0 -60
- package/packages/orq-rc/src/models/components/publicspan.ts +0 -135
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -96
- package/packages/orq-rc/src/models/errors/geteval.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/createannotationqueue.ts +0 -176
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
|
@@ -0,0 +1,122 @@
|
|
|
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 { Value, Value$inboundSchema } from "./value.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
14
|
+
*/
|
|
15
|
+
export type AuditLogMetadata = {};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* An audit log entry for an entity event in the authenticated workspace.
|
|
19
|
+
*/
|
|
20
|
+
export type AuditLog = {
|
|
21
|
+
/**
|
|
22
|
+
* Unique identifier for the audit log entry.
|
|
23
|
+
*/
|
|
24
|
+
auditLogId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Project associated with the event, when the audited entity belongs to a project.
|
|
27
|
+
*/
|
|
28
|
+
projectId?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Identifier of the entity that changed.
|
|
31
|
+
*/
|
|
32
|
+
entityId: string;
|
|
33
|
+
entityType: Value;
|
|
34
|
+
action: Value;
|
|
35
|
+
/**
|
|
36
|
+
* User or system actor that caused the event, when available.
|
|
37
|
+
*/
|
|
38
|
+
actorId?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* IP address observed for the actor, when available.
|
|
41
|
+
*/
|
|
42
|
+
actorIp?: string | undefined;
|
|
43
|
+
actorType?: Value | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Human readable actor name captured when the action happened.
|
|
46
|
+
*/
|
|
47
|
+
actorDisplay?: string | undefined;
|
|
48
|
+
origin?: Value | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Correlates the entry with the originating request.
|
|
51
|
+
*/
|
|
52
|
+
requestId?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Time when the audit log entry was created.
|
|
55
|
+
*/
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
59
|
+
*/
|
|
60
|
+
metadata?: AuditLogMetadata | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const AuditLogMetadata$inboundSchema: z.ZodType<
|
|
65
|
+
AuditLogMetadata,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
unknown
|
|
68
|
+
> = z.object({});
|
|
69
|
+
|
|
70
|
+
export function auditLogMetadataFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<AuditLogMetadata, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) => AuditLogMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
+
`Failed to parse 'AuditLogMetadata' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const AuditLog$inboundSchema: z.ZodType<
|
|
82
|
+
AuditLog,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
audit_log_id: z.string(),
|
|
87
|
+
project_id: z.string().optional(),
|
|
88
|
+
entity_id: z.string(),
|
|
89
|
+
entity_type: Value$inboundSchema,
|
|
90
|
+
action: Value$inboundSchema,
|
|
91
|
+
actor_id: z.string().optional(),
|
|
92
|
+
actor_ip: z.string().optional(),
|
|
93
|
+
actor_type: Value$inboundSchema.optional(),
|
|
94
|
+
actor_display: z.string().optional(),
|
|
95
|
+
origin: Value$inboundSchema.optional(),
|
|
96
|
+
request_id: z.string().optional(),
|
|
97
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
98
|
+
metadata: z.lazy(() => AuditLogMetadata$inboundSchema).optional(),
|
|
99
|
+
}).transform((v) => {
|
|
100
|
+
return remap$(v, {
|
|
101
|
+
"audit_log_id": "auditLogId",
|
|
102
|
+
"project_id": "projectId",
|
|
103
|
+
"entity_id": "entityId",
|
|
104
|
+
"entity_type": "entityType",
|
|
105
|
+
"actor_id": "actorId",
|
|
106
|
+
"actor_ip": "actorIp",
|
|
107
|
+
"actor_type": "actorType",
|
|
108
|
+
"actor_display": "actorDisplay",
|
|
109
|
+
"request_id": "requestId",
|
|
110
|
+
"created_at": "createdAt",
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
export function auditLogFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<AuditLog, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => AuditLog$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'AuditLog' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A single advanced filter applied to audit logs.
|
|
9
|
+
*/
|
|
10
|
+
export type AuditLogFilter = {
|
|
11
|
+
/**
|
|
12
|
+
* Filter value type, such as string, date, number, boolean, or array.
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, and metadata.display_name.
|
|
17
|
+
*/
|
|
18
|
+
path: string;
|
|
19
|
+
/**
|
|
20
|
+
* Filter operator supported by the selected field type.
|
|
21
|
+
*/
|
|
22
|
+
operator: string;
|
|
23
|
+
/**
|
|
24
|
+
* Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
|
|
25
|
+
*/
|
|
26
|
+
value?: any | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type AuditLogFilter$Outbound = {
|
|
31
|
+
type: string;
|
|
32
|
+
path: string;
|
|
33
|
+
operator: string;
|
|
34
|
+
value?: any | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AuditLogFilter$outboundSchema: z.ZodType<
|
|
39
|
+
AuditLogFilter$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
AuditLogFilter
|
|
42
|
+
> = z.object({
|
|
43
|
+
type: z.string(),
|
|
44
|
+
path: z.string(),
|
|
45
|
+
operator: z.string(),
|
|
46
|
+
value: z.any().optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function auditLogFilterToJSON(auditLogFilter: AuditLogFilter): string {
|
|
50
|
+
return JSON.stringify(AuditLogFilter$outboundSchema.parse(auditLogFilter));
|
|
51
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
AuditLogFilter,
|
|
8
|
+
AuditLogFilter$Outbound,
|
|
9
|
+
AuditLogFilter$outboundSchema,
|
|
10
|
+
} from "./auditlogfilter.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Search and advanced filters for querying audit logs.
|
|
14
|
+
*/
|
|
15
|
+
export type AuditLogFilterQuery = {
|
|
16
|
+
/**
|
|
17
|
+
* Optional text search applied to supported display fields.
|
|
18
|
+
*/
|
|
19
|
+
search?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Logical operator used to combine filters.
|
|
22
|
+
*/
|
|
23
|
+
operator: string;
|
|
24
|
+
/**
|
|
25
|
+
* Advanced filters applied to the query.
|
|
26
|
+
*/
|
|
27
|
+
filters: Array<AuditLogFilter>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type AuditLogFilterQuery$Outbound = {
|
|
32
|
+
search?: string | undefined;
|
|
33
|
+
operator: string;
|
|
34
|
+
filters: Array<AuditLogFilter$Outbound>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const AuditLogFilterQuery$outboundSchema: z.ZodType<
|
|
39
|
+
AuditLogFilterQuery$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
AuditLogFilterQuery
|
|
42
|
+
> = z.object({
|
|
43
|
+
search: z.string().optional(),
|
|
44
|
+
operator: z.string(),
|
|
45
|
+
filters: z.array(AuditLogFilter$outboundSchema),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function auditLogFilterQueryToJSON(
|
|
49
|
+
auditLogFilterQuery: AuditLogFilterQuery,
|
|
50
|
+
): string {
|
|
51
|
+
return JSON.stringify(
|
|
52
|
+
AuditLogFilterQuery$outboundSchema.parse(auditLogFilterQuery),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Cursor pagination settings for audit log queries.
|
|
10
|
+
*/
|
|
11
|
+
export type AuditLogPagination = {
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of audit logs to return. Defaults to 50 when omitted.
|
|
14
|
+
*/
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Cursor for the next page. Use the last audit_log_id from the previous page.
|
|
18
|
+
*/
|
|
19
|
+
startingAfter?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Cursor for the previous page. Use the first audit_log_id from the current page.
|
|
22
|
+
*/
|
|
23
|
+
endingBefore?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type AuditLogPagination$Outbound = {
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
starting_after?: string | undefined;
|
|
30
|
+
ending_before?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const AuditLogPagination$outboundSchema: z.ZodType<
|
|
35
|
+
AuditLogPagination$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
AuditLogPagination
|
|
38
|
+
> = z.object({
|
|
39
|
+
limit: z.number().int().optional(),
|
|
40
|
+
startingAfter: z.string().optional(),
|
|
41
|
+
endingBefore: z.string().optional(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
startingAfter: "starting_after",
|
|
45
|
+
endingBefore: "ending_before",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function auditLogPaginationToJSON(
|
|
50
|
+
auditLogPagination: AuditLogPagination,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
AuditLogPagination$outboundSchema.parse(auditLogPagination),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -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
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A sort expression for audit log queries.
|
|
9
|
+
*/
|
|
10
|
+
export type AuditLogSort = {
|
|
11
|
+
/**
|
|
12
|
+
* Audit log field to sort by. Supported keys include _id, created_at, entity_type, entity_id, action, and actor_id.
|
|
13
|
+
*/
|
|
14
|
+
key: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sort direction. Defaults to desc when omitted or invalid.
|
|
17
|
+
*/
|
|
18
|
+
direction?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type AuditLogSort$Outbound = {
|
|
23
|
+
key: string;
|
|
24
|
+
direction?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const AuditLogSort$outboundSchema: z.ZodType<
|
|
29
|
+
AuditLogSort$Outbound,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
AuditLogSort
|
|
32
|
+
> = z.object({
|
|
33
|
+
key: z.string(),
|
|
34
|
+
direction: z.string().optional(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function auditLogSortToJSON(auditLogSort: AuditLogSort): string {
|
|
38
|
+
return JSON.stringify(AuditLogSort$outboundSchema.parse(auditLogSort));
|
|
39
|
+
}
|
|
@@ -8,13 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* applies to a request. Available variables: `model`, `provider`,
|
|
15
|
-
* `model_id`, `api_key`, `identity`, `project`, `metadata` (map),
|
|
16
|
-
* `headers` (map, lowercase keys). An empty expression always matches.
|
|
17
|
-
* Expressions are syntax-validated at write time.
|
|
11
|
+
* CEL expression that decides whether a budget applies to a request. Available variables: `model`, `provider`, `model_id`, `api_key`, `api_key_labels` (map), `identity`, `project`, `metadata` (map), `headers` (map, lowercase keys). An empty expression always matches. Expressions are syntax-validated at write time.
|
|
18
12
|
*/
|
|
19
13
|
export type BudgetMatch = {
|
|
20
14
|
cel?: string | undefined;
|
|
@@ -45,11 +45,7 @@ import {
|
|
|
45
45
|
} from "./workspacebudgetscope.js";
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* six variants are ordered by enforcement precedence (most specific to
|
|
52
|
-
* most general) and mirror the BudgetScopeKind filter enum.
|
|
48
|
+
* Closed oneof of workspace, project, identity, api_key, provider, or model. Exactly one variant must be set. Variants are ordered by enforcement precedence (most specific to most general).
|
|
53
49
|
*/
|
|
54
50
|
export type BudgetScope = {
|
|
55
51
|
/**
|
|
@@ -32,11 +32,7 @@ import {
|
|
|
32
32
|
} from "./workspacebudgetscope.js";
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* six variants are ordered by enforcement precedence (most specific to
|
|
39
|
-
* most general) and mirror the BudgetScopeKind filter enum.
|
|
35
|
+
* Closed oneof of workspace, project, identity, api_key, provider, or model. Exactly one variant must be set. Variants are ordered by enforcement precedence (most specific to most general).
|
|
40
36
|
*/
|
|
41
37
|
export type BudgetScopeRestResponse = {
|
|
42
38
|
/**
|
|
@@ -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 ClearAnnotationQueueResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ClearAnnotationQueueResponse$inboundSchema: z.ZodType<
|
|
14
|
+
ClearAnnotationQueueResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function clearAnnotationQueueResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<ClearAnnotationQueueResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => ClearAnnotationQueueResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'ClearAnnotationQueueResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 CreateAnnotationQueueRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Required. The display name of the annotation queue.
|
|
11
|
+
*/
|
|
12
|
+
displayName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Required. The description of the annotation queue.
|
|
15
|
+
*/
|
|
16
|
+
description: string;
|
|
17
|
+
/**
|
|
18
|
+
* Required. The project to link this annotation queue to.
|
|
19
|
+
*/
|
|
20
|
+
projectId: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type CreateAnnotationQueueRequest$Outbound = {
|
|
25
|
+
display_name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
project_id: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CreateAnnotationQueueRequest$outboundSchema: z.ZodType<
|
|
32
|
+
CreateAnnotationQueueRequest$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
CreateAnnotationQueueRequest
|
|
35
|
+
> = z.object({
|
|
36
|
+
displayName: z.string(),
|
|
37
|
+
description: z.string(),
|
|
38
|
+
projectId: z.string(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
displayName: "display_name",
|
|
42
|
+
projectId: "project_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function createAnnotationQueueRequestToJSON(
|
|
47
|
+
createAnnotationQueueRequest: CreateAnnotationQueueRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
CreateAnnotationQueueRequest$outboundSchema.parse(
|
|
51
|
+
createAnnotationQueueRequest,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -63,6 +63,13 @@ export type CreateApiKeyRequest = {
|
|
|
63
63
|
* restriction. See McpAccess for the deny_all / allow-list semantics.
|
|
64
64
|
*/
|
|
65
65
|
mcpAccess?: McpAccess | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Optional attribution labels (at most 10; keys `^[a-z0-9_.-]{1,32}$`,
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* values up to 64 characters). See ApiKey.labels.
|
|
71
|
+
*/
|
|
72
|
+
labels?: { [k: string]: string } | undefined;
|
|
66
73
|
};
|
|
67
74
|
|
|
68
75
|
/** @internal */
|
|
@@ -74,6 +81,7 @@ export type CreateApiKeyRequest$Outbound = {
|
|
|
74
81
|
access?: { [k: string]: string } | undefined;
|
|
75
82
|
expires_at?: string | undefined;
|
|
76
83
|
mcp_access?: McpAccess$Outbound | undefined;
|
|
84
|
+
labels?: { [k: string]: string } | undefined;
|
|
77
85
|
};
|
|
78
86
|
|
|
79
87
|
/** @internal */
|
|
@@ -89,6 +97,7 @@ export const CreateApiKeyRequest$outboundSchema: z.ZodType<
|
|
|
89
97
|
access: z.record(AccessLevel$outboundSchema).optional(),
|
|
90
98
|
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
91
99
|
mcpAccess: McpAccess$outboundSchema.optional(),
|
|
100
|
+
labels: z.record(z.string()).optional(),
|
|
92
101
|
}).transform((v) => {
|
|
93
102
|
return remap$(v, {
|
|
94
103
|
projectScope: "project_scope",
|
|
@@ -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 DeleteAnnotationQueueResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteAnnotationQueueResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteAnnotationQueueResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteAnnotationQueueResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteAnnotationQueueResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteAnnotationQueueResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteAnnotationQueueResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -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 DeleteEvaluatorResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteEvaluatorResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteEvaluatorResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteEvaluatorResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteEvaluatorResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteEvaluatorResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteEvaluatorResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 Document = {};
|
|
11
|
+
|
|
12
|
+
export type EvaluatorDocumentResponse = {
|
|
13
|
+
document?: Document | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Document$inboundSchema: z.ZodType<
|
|
18
|
+
Document,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({});
|
|
22
|
+
|
|
23
|
+
export function documentFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<Document, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => Document$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'Document' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const EvaluatorDocumentResponse$inboundSchema: z.ZodType<
|
|
35
|
+
EvaluatorDocumentResponse,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
document: z.lazy(() => Document$inboundSchema).optional(),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function evaluatorDocumentResponseFromJSON(
|
|
43
|
+
jsonString: string,
|
|
44
|
+
): SafeParseResult<EvaluatorDocumentResponse, SDKValidationError> {
|
|
45
|
+
return safeParse(
|
|
46
|
+
jsonString,
|
|
47
|
+
(x) => EvaluatorDocumentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
48
|
+
`Failed to parse 'EvaluatorDocumentResponse' from JSON`,
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -4,6 +4,34 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Whether the agent may only read this file system, or also write to it.
|
|
11
|
+
*/
|
|
12
|
+
export const AccessMode = {
|
|
13
|
+
ReadOnly: "read_only",
|
|
14
|
+
ReadWrite: "read_write",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the agent may only read this file system, or also write to it.
|
|
18
|
+
*/
|
|
19
|
+
export type AccessMode = ClosedEnum<typeof AccessMode>;
|
|
20
|
+
|
|
21
|
+
export type Configuration = {
|
|
22
|
+
/**
|
|
23
|
+
* The id of the file system to attach.
|
|
24
|
+
*/
|
|
25
|
+
fileSystemId?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The key of the file system to attach.
|
|
28
|
+
*/
|
|
29
|
+
fileSystemKey?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the agent may only read this file system, or also write to it.
|
|
32
|
+
*/
|
|
33
|
+
accessMode?: AccessMode | undefined;
|
|
34
|
+
};
|
|
7
35
|
|
|
8
36
|
/**
|
|
9
37
|
* Attaches a persistent file system to the agent, named by file_system_id or file_system_key in the configuration. The agent may only read it unless the configured access_mode is read_write.
|
|
@@ -14,17 +42,46 @@ export type FileSystemToolInput = {
|
|
|
14
42
|
* Whether this tool requires approval before execution
|
|
15
43
|
*/
|
|
16
44
|
requiresApproval?: boolean | undefined;
|
|
17
|
-
|
|
18
|
-
* Static tool configuration set at design time. Merged over LLM-provided arguments at execution time.
|
|
19
|
-
*/
|
|
20
|
-
configuration?: { [k: string]: any } | undefined;
|
|
45
|
+
configuration: Configuration;
|
|
21
46
|
};
|
|
22
47
|
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const AccessMode$outboundSchema: z.ZodNativeEnum<typeof AccessMode> = z
|
|
50
|
+
.nativeEnum(AccessMode);
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type Configuration$Outbound = {
|
|
54
|
+
file_system_id?: string | undefined;
|
|
55
|
+
file_system_key?: string | undefined;
|
|
56
|
+
access_mode: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const Configuration$outboundSchema: z.ZodType<
|
|
61
|
+
Configuration$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
Configuration
|
|
64
|
+
> = z.object({
|
|
65
|
+
fileSystemId: z.string().optional(),
|
|
66
|
+
fileSystemKey: z.string().optional(),
|
|
67
|
+
accessMode: AccessMode$outboundSchema.default("read_only"),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
fileSystemId: "file_system_id",
|
|
71
|
+
fileSystemKey: "file_system_key",
|
|
72
|
+
accessMode: "access_mode",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function configurationToJSON(configuration: Configuration): string {
|
|
77
|
+
return JSON.stringify(Configuration$outboundSchema.parse(configuration));
|
|
78
|
+
}
|
|
79
|
+
|
|
23
80
|
/** @internal */
|
|
24
81
|
export type FileSystemToolInput$Outbound = {
|
|
25
82
|
type: "file_system";
|
|
26
83
|
requires_approval?: boolean | undefined;
|
|
27
|
-
configuration
|
|
84
|
+
configuration: Configuration$Outbound;
|
|
28
85
|
};
|
|
29
86
|
|
|
30
87
|
/** @internal */
|
|
@@ -35,7 +92,7 @@ export const FileSystemToolInput$outboundSchema: z.ZodType<
|
|
|
35
92
|
> = z.object({
|
|
36
93
|
type: z.literal("file_system"),
|
|
37
94
|
requiresApproval: z.boolean().optional(),
|
|
38
|
-
configuration: z.
|
|
95
|
+
configuration: z.lazy(() => Configuration$outboundSchema),
|
|
39
96
|
}).transform((v) => {
|
|
40
97
|
return remap$(v, {
|
|
41
98
|
requiresApproval: "requires_approval",
|