@orq-ai/node 4.16.0-rc.13 → 4.16.0-rc.14
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/README.md +1 -1
- package/funcs/apiKeysCreate.d.ts +3 -2
- package/funcs/apiKeysCreate.d.ts.map +1 -1
- package/funcs/apiKeysCreate.js +4 -3
- package/funcs/apiKeysCreate.js.map +1 -1
- package/funcs/apiKeysDelete.js +1 -1
- package/funcs/apiKeysDelete.js.map +1 -1
- package/funcs/apiKeysGet.d.ts +1 -1
- package/funcs/apiKeysGet.js +2 -6
- package/funcs/apiKeysGet.js.map +1 -1
- package/funcs/apiKeysList.d.ts +1 -1
- package/funcs/apiKeysList.js +4 -11
- package/funcs/apiKeysList.js.map +1 -1
- package/funcs/apiKeysListCapabilities.d.ts +3 -3
- package/funcs/apiKeysListCapabilities.d.ts.map +1 -1
- package/funcs/apiKeysListCapabilities.js +3 -3
- package/funcs/apiKeysListCapabilities.js.map +1 -1
- package/funcs/apiKeysUpdate.d.ts +1 -1
- package/funcs/apiKeysUpdate.js +3 -5
- package/funcs/apiKeysUpdate.js.map +1 -1
- package/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/classifyanswer.d.ts +2 -2
- package/models/components/constraints.d.ts +12 -0
- package/models/components/constraints.d.ts.map +1 -0
- package/models/components/{singleproject.js → constraints.js} +8 -8
- package/models/components/constraints.js.map +1 -0
- package/models/components/domain.d.ts +30 -31
- package/models/components/domain.d.ts.map +1 -1
- package/models/components/domain.js +20 -11
- package/models/components/domain.js.map +1 -1
- package/models/components/index.d.ts +2 -14
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -14
- package/models/components/index.js.map +1 -1
- package/models/components/owner.d.ts +14 -0
- package/models/components/owner.d.ts.map +1 -0
- package/models/components/{userowner.js → owner.js} +8 -7
- package/models/components/owner.js.map +1 -0
- package/models/components/projectscope.d.ts +4 -13
- package/models/components/projectscope.d.ts.map +1 -1
- package/models/components/projectscope.js +7 -4
- package/models/components/projectscope.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/apikeycreate.d.ts +79 -0
- package/models/operations/apikeycreate.d.ts.map +1 -0
- package/models/{components/createapikeyrequest.js → operations/apikeycreate.js} +35 -21
- package/models/operations/apikeycreate.js.map +1 -0
- package/models/operations/apikeydelete.d.ts +1 -1
- package/models/operations/apikeyget.d.ts +1 -9
- package/models/operations/apikeyget.d.ts.map +1 -1
- package/models/operations/apikeyget.js +0 -2
- package/models/operations/apikeyget.js.map +1 -1
- package/models/operations/apikeylist.d.ts +18 -65
- package/models/operations/apikeylist.d.ts.map +1 -1
- package/models/operations/apikeylist.js +11 -15
- package/models/operations/apikeylist.js.map +1 -1
- package/models/operations/apikeylistcapabilities.d.ts +17 -0
- package/models/operations/apikeylistcapabilities.d.ts.map +1 -0
- package/models/{components/listcapabilitiesresponse.js → operations/apikeylistcapabilities.js} +8 -8
- package/models/operations/apikeylistcapabilities.js.map +1 -0
- package/models/operations/apikeyupdate.d.ts +73 -3
- package/models/operations/apikeyupdate.d.ts.map +1 -1
- package/models/operations/apikeyupdate.js +43 -3
- package/models/operations/apikeyupdate.js.map +1 -1
- package/models/operations/createclassify.d.ts +2 -2
- package/models/operations/createrouterresponse.d.ts +4 -4
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +5 -5
- package/models/operations/createrouterresponse.js.map +1 -1
- 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/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +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/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/apikeys.d.ts +12 -12
- package/sdk/apikeys.d.ts.map +1 -1
- package/sdk/apikeys.js +12 -12
- package/sdk/apikeys.js.map +1 -1
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/apiKeysCreate.ts +6 -5
- package/src/funcs/apiKeysDelete.ts +1 -1
- package/src/funcs/apiKeysGet.ts +3 -8
- package/src/funcs/apiKeysList.ts +4 -11
- package/src/funcs/apiKeysListCapabilities.ts +6 -6
- package/src/funcs/apiKeysUpdate.ts +3 -5
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/classifyanswer.ts +2 -2
- package/src/models/components/constraints.ts +32 -0
- package/src/models/components/domain.ts +42 -39
- package/src/models/components/index.ts +2 -14
- package/src/models/components/owner.ts +35 -0
- package/src/models/components/projectscope.ts +11 -23
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/apikeycreate.ts +116 -0
- package/src/models/operations/apikeydelete.ts +1 -1
- package/src/models/operations/apikeyget.ts +1 -11
- package/src/models/operations/apikeylist.ts +23 -78
- package/src/models/operations/apikeylistcapabilities.ts +39 -0
- package/src/models/operations/apikeyupdate.ts +107 -5
- package/src/models/operations/createclassify.ts +2 -2
- package/src/models/operations/createrouterresponse.ts +6 -6
- 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/index.ts +2 -0
- 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/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/apikeys.ts +18 -18
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/sdk.ts +5 -5
- package/models/components/allprojects.d.ts +0 -8
- package/models/components/allprojects.d.ts.map +0 -1
- package/models/components/allprojects.js +0 -47
- package/models/components/allprojects.js.map +0 -1
- package/models/components/apikeyowner.d.ts +0 -26
- package/models/components/apikeyowner.d.ts.map +0 -1
- package/models/components/apikeyowner.js +0 -57
- package/models/components/apikeyowner.js.map +0 -1
- package/models/components/apikeystatus.d.ts +0 -12
- package/models/components/apikeystatus.d.ts.map +0 -1
- package/models/components/apikeystatus.js +0 -49
- package/models/components/apikeystatus.js.map +0 -1
- package/models/components/createapikeyrequest.d.ts +0 -75
- package/models/components/createapikeyrequest.d.ts.map +0 -1
- package/models/components/createapikeyrequest.js.map +0 -1
- package/models/components/domaingroup.d.ts +0 -11
- package/models/components/domaingroup.d.ts.map +0 -1
- package/models/components/domaingroup.js +0 -49
- package/models/components/domaingroup.js.map +0 -1
- package/models/components/listcapabilitiesresponse.d.ts +0 -17
- package/models/components/listcapabilitiesresponse.d.ts.map +0 -1
- package/models/components/listcapabilitiesresponse.js.map +0 -1
- package/models/components/mcpaccess.d.ts +0 -67
- package/models/components/mcpaccess.d.ts.map +0 -1
- package/models/components/mcpaccess.js +0 -60
- package/models/components/mcpaccess.js.map +0 -1
- package/models/components/ownertype.d.ts +0 -11
- package/models/components/ownertype.d.ts.map +0 -1
- package/models/components/ownertype.js +0 -49
- package/models/components/ownertype.js.map +0 -1
- package/models/components/permissionmode.d.ts +0 -12
- package/models/components/permissionmode.d.ts.map +0 -1
- package/models/components/permissionmode.js +0 -49
- package/models/components/permissionmode.js.map +0 -1
- package/models/components/scopemode.d.ts +0 -10
- package/models/components/scopemode.d.ts.map +0 -1
- package/models/components/scopemode.js +0 -48
- package/models/components/scopemode.js.map +0 -1
- package/models/components/serviceaccountowner.d.ts +0 -8
- package/models/components/serviceaccountowner.d.ts.map +0 -1
- package/models/components/serviceaccountowner.js +0 -47
- package/models/components/serviceaccountowner.js.map +0 -1
- package/models/components/singleproject.d.ts +0 -15
- package/models/components/singleproject.d.ts.map +0 -1
- package/models/components/singleproject.js.map +0 -1
- package/models/components/updateapikeyrequest.d.ts +0 -68
- package/models/components/updateapikeyrequest.d.ts.map +0 -1
- package/models/components/updateapikeyrequest.js +0 -70
- package/models/components/updateapikeyrequest.js.map +0 -1
- package/models/components/userowner.d.ts +0 -15
- package/models/components/userowner.d.ts.map +0 -1
- package/models/components/userowner.js.map +0 -1
- package/src/models/components/allprojects.ts +0 -21
- package/src/models/components/apikeyowner.ts +0 -55
- package/src/models/components/apikeystatus.ts +0 -18
- package/src/models/components/createapikeyrequest.ts +0 -116
- package/src/models/components/domaingroup.ts +0 -17
- package/src/models/components/listcapabilitiesresponse.ts +0 -38
- package/src/models/components/mcpaccess.ts +0 -93
- package/src/models/components/ownertype.ts +0 -17
- package/src/models/components/permissionmode.ts +0 -19
- package/src/models/components/scopemode.ts +0 -16
- package/src/models/components/serviceaccountowner.ts +0 -25
- package/src/models/components/singleproject.ts +0 -35
- package/src/models/components/updateapikeyrequest.ts +0 -110
- package/src/models/components/userowner.ts +0 -35
|
@@ -27,7 +27,7 @@ export type ClassifyAnswer = {
|
|
|
27
27
|
*/
|
|
28
28
|
choice?: string | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* How sure the model is of the answer it selected: on chat models the largest value in probabilities, so it adds nothing the distribution does not; typesafe/jev-latest returns its own calibrated value, which can sit below the largest probability. Present for choice and score answers.
|
|
31
31
|
*/
|
|
32
32
|
confidence?: number | undefined;
|
|
33
33
|
/**
|
|
@@ -43,7 +43,7 @@ export type ClassifyAnswer = {
|
|
|
43
43
|
*/
|
|
44
44
|
probabilities?: { [k: string]: number } | undefined;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Position on the scale, not an index: on chat models the weighted index, each level index multiplied by that level probability and summed, so the value is usually fractional; typesafe/jev-latest returns its own score. Present for score answers.
|
|
47
47
|
*/
|
|
48
48
|
score?: number | undefined;
|
|
49
49
|
/**
|
|
@@ -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 { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type Constraints = {
|
|
9
|
+
expiresAt?: Date | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type Constraints$Outbound = {
|
|
14
|
+
expires_at?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const Constraints$outboundSchema: z.ZodType<
|
|
19
|
+
Constraints$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
Constraints
|
|
22
|
+
> = z.object({
|
|
23
|
+
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
expiresAt: "expires_at",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function constraintsToJSON(constraints: Constraints): string {
|
|
31
|
+
return JSON.stringify(Constraints$outboundSchema.parse(constraints));
|
|
32
|
+
}
|
|
@@ -5,71 +5,74 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import { DomainGroup, DomainGroup$inboundSchema } from "./domaingroup.js";
|
|
11
|
-
import { ScopeMode, ScopeMode$inboundSchema } from "./scopemode.js";
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* API key. Standard verbs are derived from id + group +
|
|
18
|
-
* readable/writable; exceptional write verbs are explicit data.
|
|
13
|
+
* Logical group the entry belongs to.
|
|
19
14
|
*/
|
|
15
|
+
export const Group = {
|
|
16
|
+
DomainGroupUnspecified: "DOMAIN_GROUP_UNSPECIFIED",
|
|
17
|
+
DomainGroupWorkspaceAdmin: "DOMAIN_GROUP_WORKSPACE_ADMIN",
|
|
18
|
+
DomainGroupPlatform: "DOMAIN_GROUP_PLATFORM",
|
|
19
|
+
DomainGroupGateway: "DOMAIN_GROUP_GATEWAY",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* Logical group the entry belongs to.
|
|
23
|
+
*/
|
|
24
|
+
export type Group = ClosedEnum<typeof Group>;
|
|
25
|
+
|
|
20
26
|
export type Domain = {
|
|
21
27
|
/**
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
28
|
+
* Project scopes this domain may be granted under.
|
|
29
|
+
*/
|
|
30
|
+
allowedScopes: Array<string> | null;
|
|
31
|
+
/**
|
|
32
|
+
* Human-readable label.
|
|
27
33
|
*/
|
|
28
|
-
|
|
34
|
+
displayName: string;
|
|
29
35
|
/**
|
|
30
|
-
*
|
|
36
|
+
* Additional verbs granted only with write access.
|
|
31
37
|
*/
|
|
32
|
-
|
|
33
|
-
group?: DomainGroup | undefined;
|
|
38
|
+
extraWriteVerbs: Array<string> | null;
|
|
34
39
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* admin domain like `member` is typically SCOPE_MODE_ALL only.
|
|
40
|
+
* Logical group the entry belongs to.
|
|
39
41
|
*/
|
|
40
|
-
|
|
42
|
+
group: Group;
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
44
|
+
* Stable domain identifier, used as the key in access and as the verb prefix in resolved permissions.
|
|
43
45
|
*/
|
|
44
|
-
|
|
46
|
+
id: string;
|
|
45
47
|
/**
|
|
46
|
-
* Whether
|
|
48
|
+
* Whether the domain can be granted read access.
|
|
47
49
|
*/
|
|
48
|
-
|
|
50
|
+
readable: boolean;
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* additive to the standard group-derived verbs and intentionally does
|
|
54
|
-
* not affect read access (e.g. "insights.run").
|
|
52
|
+
* Whether the domain can be granted write access.
|
|
55
53
|
*/
|
|
56
|
-
|
|
54
|
+
writable: boolean;
|
|
57
55
|
};
|
|
58
56
|
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const Group$inboundSchema: z.ZodNativeEnum<typeof Group> = z.nativeEnum(
|
|
59
|
+
Group,
|
|
60
|
+
);
|
|
61
|
+
|
|
59
62
|
/** @internal */
|
|
60
63
|
export const Domain$inboundSchema: z.ZodType<Domain, z.ZodTypeDef, unknown> = z
|
|
61
64
|
.object({
|
|
62
|
-
|
|
63
|
-
display_name: z.string()
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
allowed_scopes: z.nullable(z.array(z.string())),
|
|
66
|
+
display_name: z.string(),
|
|
67
|
+
extra_write_verbs: z.nullable(z.array(z.string())),
|
|
68
|
+
group: Group$inboundSchema,
|
|
69
|
+
id: z.string(),
|
|
70
|
+
readable: z.boolean(),
|
|
71
|
+
writable: z.boolean(),
|
|
69
72
|
}).transform((v) => {
|
|
70
73
|
return remap$(v, {
|
|
71
|
-
"display_name": "displayName",
|
|
72
74
|
"allowed_scopes": "allowedScopes",
|
|
75
|
+
"display_name": "displayName",
|
|
73
76
|
"extra_write_verbs": "extraWriteVerbs",
|
|
74
77
|
});
|
|
75
78
|
});
|
|
@@ -33,7 +33,6 @@ export * from "./alertquery.js";
|
|
|
33
33
|
export * from "./alertrun.js";
|
|
34
34
|
export * from "./alerttrigger.js";
|
|
35
35
|
export * from "./alerttriggerevent.js";
|
|
36
|
-
export * from "./allprojects.js";
|
|
37
36
|
export * from "./annotationqueue.js";
|
|
38
37
|
export * from "./annotationqueueitem.js";
|
|
39
38
|
export * from "./annotationqueueitemref.js";
|
|
@@ -41,9 +40,7 @@ export * from "./annotationqueuemetadata.js";
|
|
|
41
40
|
export * from "./apierror.js";
|
|
42
41
|
export * from "./apikeybudgetscope.js";
|
|
43
42
|
export * from "./apikeybudgetscoperestresponse.js";
|
|
44
|
-
export * from "./apikeyowner.js";
|
|
45
43
|
export * from "./apikeyrestresponse.js";
|
|
46
|
-
export * from "./apikeystatus.js";
|
|
47
44
|
export * from "./audiocontentpartschema.js";
|
|
48
45
|
export * from "./autorouterconfig.js";
|
|
49
46
|
export * from "./autorouterv2config.js";
|
|
@@ -90,6 +87,7 @@ export * from "./classifyretryconfig.js";
|
|
|
90
87
|
export * from "./classifyusage.js";
|
|
91
88
|
export * from "./codeinterpretertoolinput.js";
|
|
92
89
|
export * from "./codetoolinput.js";
|
|
90
|
+
export * from "./constraints.js";
|
|
93
91
|
export * from "./conversationparam.js";
|
|
94
92
|
export * from "./countmetadata.js";
|
|
95
93
|
export * from "./countwebhooksresponse.js";
|
|
@@ -97,7 +95,6 @@ export * from "./createagentresponse.js";
|
|
|
97
95
|
export * from "./createalertrequest.js";
|
|
98
96
|
export * from "./createalertresponse.js";
|
|
99
97
|
export * from "./createannotationqueuerequest.js";
|
|
100
|
-
export * from "./createapikeyrequest.js";
|
|
101
98
|
export * from "./createbudgetrequest.js";
|
|
102
99
|
export * from "./createbudgetresponse.js";
|
|
103
100
|
export * from "./createdatasetrequest.js";
|
|
@@ -172,7 +169,6 @@ export * from "./deletewikiresponse.js";
|
|
|
172
169
|
export * from "./detectrequest.js";
|
|
173
170
|
export * from "./detectresponse.js";
|
|
174
171
|
export * from "./domain.js";
|
|
175
|
-
export * from "./domaingroup.js";
|
|
176
172
|
export * from "./domainverification.js";
|
|
177
173
|
export * from "./domainverificationstatus.js";
|
|
178
174
|
export * from "./embeddingcacheconfig.js";
|
|
@@ -290,7 +286,6 @@ export * from "./listalerttriggersresponse.js";
|
|
|
290
286
|
export * from "./listannotationqueueitemsresponse.js";
|
|
291
287
|
export * from "./listannotationqueuesresponse.js";
|
|
292
288
|
export * from "./listbudgetsresponse.js";
|
|
293
|
-
export * from "./listcapabilitiesresponse.js";
|
|
294
289
|
export * from "./listdatapointsresponse.js";
|
|
295
290
|
export * from "./listdatasetsresponse.js";
|
|
296
291
|
export * from "./listdomainsresponse.js";
|
|
@@ -347,7 +342,6 @@ export * from "./managementdomaingroup.js";
|
|
|
347
342
|
export * from "./managementkey.js";
|
|
348
343
|
export * from "./managementkeystatus.js";
|
|
349
344
|
export * from "./managementpermissionmode.js";
|
|
350
|
-
export * from "./mcpaccess.js";
|
|
351
345
|
export * from "./mcpauthconfig.js";
|
|
352
346
|
export * from "./mcpauthconfigoutput.js";
|
|
353
347
|
export * from "./mcpauthtype.js";
|
|
@@ -398,12 +392,11 @@ export * from "./openaipromptcacheoptions.js";
|
|
|
398
392
|
export * from "./orqadvisortool.js";
|
|
399
393
|
export * from "./orqsidekicktool.js";
|
|
400
394
|
export * from "./outputtokensdetails.js";
|
|
401
|
-
export * from "./
|
|
395
|
+
export * from "./owner.js";
|
|
402
396
|
export * from "./parseresponse.js";
|
|
403
397
|
export * from "./partdelta.js";
|
|
404
398
|
export * from "./partdeltaevent.js";
|
|
405
399
|
export * from "./partdoneevent.js";
|
|
406
|
-
export * from "./permissionmode.js";
|
|
407
400
|
export * from "./piiredaction.js";
|
|
408
401
|
export * from "./piiredactionconfig.js";
|
|
409
402
|
export * from "./piiredactionplugin.js";
|
|
@@ -543,7 +536,6 @@ export * from "./routingruleexpression.js";
|
|
|
543
536
|
export * from "./routingrulemodel.js";
|
|
544
537
|
export * from "./routingrulemodelsconfig.js";
|
|
545
538
|
export * from "./routingruleplugin.js";
|
|
546
|
-
export * from "./scopemode.js";
|
|
547
539
|
export * from "./searchhubitemsresponse.js";
|
|
548
540
|
export * from "./searchknowledgematch.js";
|
|
549
541
|
export * from "./searchknowledgerequest.js";
|
|
@@ -561,13 +553,11 @@ export * from "./searchwikiresponse.js";
|
|
|
561
553
|
export * from "./security.js";
|
|
562
554
|
export * from "./securityconfig.js";
|
|
563
555
|
export * from "./servertoolusedetails.js";
|
|
564
|
-
export * from "./serviceaccountowner.js";
|
|
565
556
|
export * from "./sessioninterval.js";
|
|
566
557
|
export * from "./sharing.js";
|
|
567
558
|
export * from "./sharingallprojects.js";
|
|
568
559
|
export * from "./sharingselectedprojects.js";
|
|
569
560
|
export * from "./sidekicktoolinput.js";
|
|
570
|
-
export * from "./singleproject.js";
|
|
571
561
|
export * from "./skill.js";
|
|
572
562
|
export * from "./smartrouter.js";
|
|
573
563
|
export * from "./smartrouterprofile.js";
|
|
@@ -634,7 +624,6 @@ export * from "./traceusage.js";
|
|
|
634
624
|
export * from "./updatealertrequest.js";
|
|
635
625
|
export * from "./updatealertresponse.js";
|
|
636
626
|
export * from "./updateannotationqueuerequest.js";
|
|
637
|
-
export * from "./updateapikeyrequest.js";
|
|
638
627
|
export * from "./updatebudgetrequest.js";
|
|
639
628
|
export * from "./updatebudgetresponse.js";
|
|
640
629
|
export * from "./updatedatapointrequest.js";
|
|
@@ -678,7 +667,6 @@ export * from "./updateworkspacesettingsrequest.js";
|
|
|
678
667
|
export * from "./updateworkspacesettingsresponse.js";
|
|
679
668
|
export * from "./uploadpostpolicy.js";
|
|
680
669
|
export * from "./upsertchunk.js";
|
|
681
|
-
export * from "./userowner.js";
|
|
682
670
|
export * from "./verifydomainresponse.js";
|
|
683
671
|
export * from "./vertexcapabilities.js";
|
|
684
672
|
export * from "./vertexconfiguration.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
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 Owner = {
|
|
9
|
+
type: string;
|
|
10
|
+
userId?: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type Owner$Outbound = {
|
|
15
|
+
type: string;
|
|
16
|
+
user_id?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Owner$outboundSchema: z.ZodType<
|
|
21
|
+
Owner$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
Owner
|
|
24
|
+
> = z.object({
|
|
25
|
+
type: z.string(),
|
|
26
|
+
userId: z.string().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
userId: "user_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function ownerToJSON(owner: Owner): string {
|
|
34
|
+
return JSON.stringify(Owner$outboundSchema.parse(owner));
|
|
35
|
+
}
|
|
@@ -3,33 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import {
|
|
7
|
-
AllProjects,
|
|
8
|
-
AllProjects$Outbound,
|
|
9
|
-
AllProjects$outboundSchema,
|
|
10
|
-
} from "./allprojects.js";
|
|
11
|
-
import {
|
|
12
|
-
SingleProject,
|
|
13
|
-
SingleProject$Outbound,
|
|
14
|
-
SingleProject$outboundSchema,
|
|
15
|
-
} from "./singleproject.js";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
16
7
|
|
|
17
|
-
/**
|
|
18
|
-
* Project authorization scope. Single-project or all-projects.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* Multi-project use cases are served by minting per-project keys or by
|
|
22
|
-
* using an all-projects key with `restricted` mode.
|
|
23
|
-
*/
|
|
24
8
|
export type ProjectScope = {
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
mode: string;
|
|
10
|
+
projectId?: string | undefined;
|
|
27
11
|
};
|
|
28
12
|
|
|
29
13
|
/** @internal */
|
|
30
14
|
export type ProjectScope$Outbound = {
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
mode: string;
|
|
16
|
+
project_id?: string | undefined;
|
|
33
17
|
};
|
|
34
18
|
|
|
35
19
|
/** @internal */
|
|
@@ -38,8 +22,12 @@ export const ProjectScope$outboundSchema: z.ZodType<
|
|
|
38
22
|
z.ZodTypeDef,
|
|
39
23
|
ProjectScope
|
|
40
24
|
> = z.object({
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
mode: z.string(),
|
|
26
|
+
projectId: z.string().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
projectId: "project_id",
|
|
30
|
+
});
|
|
43
31
|
});
|
|
44
32
|
|
|
45
33
|
export function projectScopeToJSON(projectScope: ProjectScope): string {
|
|
@@ -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_01m36hs43jws1jys50wh6yp0hc"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,116 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as components from "../components/index.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Permission preset; restricted keys hold only the domains granted in access.
|
|
12
|
+
*/
|
|
13
|
+
export const PermissionMode = {
|
|
14
|
+
All: "all",
|
|
15
|
+
Restricted: "restricted",
|
|
16
|
+
ReadOnly: "read_only",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Permission preset; restricted keys hold only the domains granted in access.
|
|
20
|
+
*/
|
|
21
|
+
export type PermissionMode = ClosedEnum<typeof PermissionMode>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Origin of the key; router keys are minted for the AI router.
|
|
25
|
+
*/
|
|
26
|
+
export const ApiKeyCreateSource = {
|
|
27
|
+
Workspace: "workspace",
|
|
28
|
+
Router: "router",
|
|
29
|
+
} as const;
|
|
30
|
+
/**
|
|
31
|
+
* Origin of the key; router keys are minted for the AI router.
|
|
32
|
+
*/
|
|
33
|
+
export type ApiKeyCreateSource = ClosedEnum<typeof ApiKeyCreateSource>;
|
|
34
|
+
|
|
35
|
+
export type ApiKeyCreateRequestBody = {
|
|
36
|
+
/**
|
|
37
|
+
* Per-domain access level (none, read or write) for restricted keys; domain ids come from the capability catalog.
|
|
38
|
+
*/
|
|
39
|
+
access?: { [k: string]: string } | undefined;
|
|
40
|
+
constraints?: components.Constraints | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Legacy expiry as an RFC 3339 timestamp; prefer constraints.expires_at.
|
|
43
|
+
*/
|
|
44
|
+
expiration?: Date | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Display name of the key.
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
owner?: components.Owner | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Permission preset; restricted keys hold only the domains granted in access.
|
|
52
|
+
*/
|
|
53
|
+
permissionMode?: PermissionMode | undefined;
|
|
54
|
+
projectScope?: components.ProjectScope | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Legacy single-project binding; prefer project_scope.
|
|
57
|
+
*/
|
|
58
|
+
projects?: Array<string> | null | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Origin of the key; router keys are minted for the AI router.
|
|
61
|
+
*/
|
|
62
|
+
source?: ApiKeyCreateSource | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const PermissionMode$outboundSchema: z.ZodNativeEnum<
|
|
67
|
+
typeof PermissionMode
|
|
68
|
+
> = z.nativeEnum(PermissionMode);
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ApiKeyCreateSource$outboundSchema: z.ZodNativeEnum<
|
|
72
|
+
typeof ApiKeyCreateSource
|
|
73
|
+
> = z.nativeEnum(ApiKeyCreateSource);
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export type ApiKeyCreateRequestBody$Outbound = {
|
|
77
|
+
access?: { [k: string]: string } | undefined;
|
|
78
|
+
constraints?: components.Constraints$Outbound | undefined;
|
|
79
|
+
expiration?: string | undefined;
|
|
80
|
+
name: string;
|
|
81
|
+
owner?: components.Owner$Outbound | undefined;
|
|
82
|
+
permission_mode?: string | undefined;
|
|
83
|
+
project_scope?: components.ProjectScope$Outbound | undefined;
|
|
84
|
+
projects?: Array<string> | null | undefined;
|
|
85
|
+
source?: string | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const ApiKeyCreateRequestBody$outboundSchema: z.ZodType<
|
|
90
|
+
ApiKeyCreateRequestBody$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
ApiKeyCreateRequestBody
|
|
93
|
+
> = z.object({
|
|
94
|
+
access: z.record(z.string()).optional(),
|
|
95
|
+
constraints: components.Constraints$outboundSchema.optional(),
|
|
96
|
+
expiration: z.date().transform(v => v.toISOString()).optional(),
|
|
97
|
+
name: z.string(),
|
|
98
|
+
owner: components.Owner$outboundSchema.optional(),
|
|
99
|
+
permissionMode: PermissionMode$outboundSchema.optional(),
|
|
100
|
+
projectScope: components.ProjectScope$outboundSchema.optional(),
|
|
101
|
+
projects: z.nullable(z.array(z.string())).optional(),
|
|
102
|
+
source: ApiKeyCreateSource$outboundSchema.optional(),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
permissionMode: "permission_mode",
|
|
106
|
+
projectScope: "project_scope",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export function apiKeyCreateRequestBodyToJSON(
|
|
111
|
+
apiKeyCreateRequestBody: ApiKeyCreateRequestBody,
|
|
112
|
+
): string {
|
|
113
|
+
return JSON.stringify(
|
|
114
|
+
ApiKeyCreateRequestBody$outboundSchema.parse(apiKeyCreateRequestBody),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
@@ -7,22 +7,14 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
|
|
8
8
|
export type ApiKeyGetRequest = {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Unique identifier of the API key.
|
|
11
11
|
*/
|
|
12
12
|
apiKeyId: string;
|
|
13
|
-
/**
|
|
14
|
-
* When true, embed the api-key-scoped budget (config and limits only,
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* no live usage) on the returned record.
|
|
18
|
-
*/
|
|
19
|
-
includeBudget?: boolean | undefined;
|
|
20
13
|
};
|
|
21
14
|
|
|
22
15
|
/** @internal */
|
|
23
16
|
export type ApiKeyGetRequest$Outbound = {
|
|
24
17
|
api_key_id: string;
|
|
25
|
-
include_budget?: boolean | undefined;
|
|
26
18
|
};
|
|
27
19
|
|
|
28
20
|
/** @internal */
|
|
@@ -32,11 +24,9 @@ export const ApiKeyGetRequest$outboundSchema: z.ZodType<
|
|
|
32
24
|
ApiKeyGetRequest
|
|
33
25
|
> = z.object({
|
|
34
26
|
apiKeyId: z.string(),
|
|
35
|
-
includeBudget: z.boolean().optional(),
|
|
36
27
|
}).transform((v) => {
|
|
37
28
|
return remap$(v, {
|
|
38
29
|
apiKeyId: "api_key_id",
|
|
39
|
-
includeBudget: "include_budget",
|
|
40
30
|
});
|
|
41
31
|
});
|
|
42
32
|
|
|
@@ -4,83 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Only return keys of this source.
|
|
11
|
+
*/
|
|
12
|
+
export const QueryParamSource = {
|
|
13
|
+
Workspace: "workspace",
|
|
14
|
+
Router: "router",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* Only return keys of this source.
|
|
18
|
+
*/
|
|
19
|
+
export type QueryParamSource = ClosedEnum<typeof QueryParamSource>;
|
|
8
20
|
|
|
9
21
|
export type ApiKeyListRequest = {
|
|
10
22
|
/**
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
limit?: number | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Cursor for forward pagination. Set to the `api_key_id` of the last
|
|
16
|
-
*
|
|
17
|
-
* @remarks
|
|
18
|
-
* item from the previous page.
|
|
19
|
-
*/
|
|
20
|
-
startingAfter?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Cursor for backward pagination. Set to the `api_key_id` of the
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* first item from the previous page.
|
|
26
|
-
*/
|
|
27
|
-
endingBefore?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Optional filter: only return keys belonging to this project. When
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* omitted, returns workspace-scoped and any single-project keys.
|
|
23
|
+
* Only return keys bound to this project. When omitted, every key visible to the caller is returned.
|
|
33
24
|
*/
|
|
34
25
|
projectId?: string | undefined;
|
|
35
26
|
/**
|
|
36
|
-
*
|
|
27
|
+
* Only return keys of this source.
|
|
37
28
|
*/
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Optional case-insensitive substring match against the api-key
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* name. Empty means no name filter.
|
|
44
|
-
*/
|
|
45
|
-
search?: string | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Optional filter: only return keys whose `owner.kind` matches
|
|
48
|
-
*
|
|
49
|
-
* @remarks
|
|
50
|
-
* one of the requested types. Combines the user / service-account
|
|
51
|
-
* oneof cases into a single repeated enum so the wire stays flat
|
|
52
|
-
* and multi-select filters travel as a single field. Empty means
|
|
53
|
-
* no owner-type filter.
|
|
54
|
-
*/
|
|
55
|
-
ownerType?: Array<components.OwnerType> | undefined;
|
|
56
|
-
/**
|
|
57
|
-
* Optional filter: only return keys whose permission mode is one
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
* of the listed presets. Empty means no permission-mode filter.
|
|
61
|
-
*/
|
|
62
|
-
permissionMode?: Array<components.PermissionMode> | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* When true, embed each key's api-key-scoped budget (config and limits
|
|
65
|
-
*
|
|
66
|
-
* @remarks
|
|
67
|
-
* only, no live usage) on the returned records. Adds one budget lookup
|
|
68
|
-
* for the page; omit to skip it.
|
|
69
|
-
*/
|
|
70
|
-
includeBudget?: boolean | undefined;
|
|
29
|
+
source?: QueryParamSource | undefined;
|
|
71
30
|
};
|
|
72
31
|
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const QueryParamSource$outboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof QueryParamSource
|
|
35
|
+
> = z.nativeEnum(QueryParamSource);
|
|
36
|
+
|
|
73
37
|
/** @internal */
|
|
74
38
|
export type ApiKeyListRequest$Outbound = {
|
|
75
|
-
limit?: number | undefined;
|
|
76
|
-
starting_after?: string | undefined;
|
|
77
|
-
ending_before?: string | undefined;
|
|
78
39
|
project_id?: string | undefined;
|
|
79
|
-
|
|
80
|
-
search?: string | undefined;
|
|
81
|
-
owner_type?: Array<string> | undefined;
|
|
82
|
-
permission_mode?: Array<string> | undefined;
|
|
83
|
-
include_budget?: boolean | undefined;
|
|
40
|
+
source?: string | undefined;
|
|
84
41
|
};
|
|
85
42
|
|
|
86
43
|
/** @internal */
|
|
@@ -89,23 +46,11 @@ export const ApiKeyListRequest$outboundSchema: z.ZodType<
|
|
|
89
46
|
z.ZodTypeDef,
|
|
90
47
|
ApiKeyListRequest
|
|
91
48
|
> = z.object({
|
|
92
|
-
limit: z.number().int().optional(),
|
|
93
|
-
startingAfter: z.string().optional(),
|
|
94
|
-
endingBefore: z.string().optional(),
|
|
95
49
|
projectId: z.string().optional(),
|
|
96
|
-
|
|
97
|
-
search: z.string().optional(),
|
|
98
|
-
ownerType: z.array(components.OwnerType$outboundSchema).optional(),
|
|
99
|
-
permissionMode: z.array(components.PermissionMode$outboundSchema).optional(),
|
|
100
|
-
includeBudget: z.boolean().optional(),
|
|
50
|
+
source: QueryParamSource$outboundSchema.optional(),
|
|
101
51
|
}).transform((v) => {
|
|
102
52
|
return remap$(v, {
|
|
103
|
-
startingAfter: "starting_after",
|
|
104
|
-
endingBefore: "ending_before",
|
|
105
53
|
projectId: "project_id",
|
|
106
|
-
ownerType: "owner_type",
|
|
107
|
-
permissionMode: "permission_mode",
|
|
108
|
-
includeBudget: "include_budget",
|
|
109
54
|
});
|
|
110
55
|
});
|
|
111
56
|
|