@orq-ai/node 4.16.0-rc.12 → 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/components/wiki.d.ts +1 -1
- package/models/components/wiki.d.ts.map +1 -1
- package/models/components/wiki.js +2 -2
- package/models/components/wiki.js.map +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/filelist.d.ts +3 -3
- 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/modelcataloglist.d.ts +2 -2
- package/models/operations/modelcataloglistofferings.d.ts +2 -2
- 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/components/wiki.ts +3 -3
- 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/filelist.ts +3 -3
- 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/modelcataloglist.ts +2 -2
- package/src/models/operations/modelcataloglistofferings.ts +2 -2
- 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
|
@@ -9,7 +9,6 @@ import { compactMap } from "../lib/primitives.js";
|
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
11
|
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import * as components from "../models/components/index.js";
|
|
13
12
|
import {
|
|
14
13
|
ConnectionError,
|
|
15
14
|
InvalidRequestError,
|
|
@@ -20,6 +19,7 @@ import {
|
|
|
20
19
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
21
20
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
23
|
import { APICall, APIPromise } from "../types/async.js";
|
|
24
24
|
import { Result } from "../types/fp.js";
|
|
25
25
|
|
|
@@ -27,14 +27,14 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* List capability catalog
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Returns the capability catalog: the set of permission domains that can be granted to an API key. Each entry includes the domain id, display name, group, allowed project scopes
|
|
30
|
+
* Returns the capability catalog: the set of permission domains that can be granted to an API key. Each entry includes the domain id, display name, group, allowed project scopes and whether it can be granted read or write access. No credentials are required.
|
|
31
31
|
*/
|
|
32
32
|
export function apiKeysListCapabilities(
|
|
33
33
|
client: OrqCore,
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
|
|
37
|
+
operations.ApiKeyListCapabilitiesResponseBody,
|
|
38
38
|
| OrqError
|
|
39
39
|
| ResponseValidationError
|
|
40
40
|
| ConnectionError
|
|
@@ -57,7 +57,7 @@ async function $do(
|
|
|
57
57
|
): Promise<
|
|
58
58
|
[
|
|
59
59
|
Result<
|
|
60
|
-
|
|
60
|
+
operations.ApiKeyListCapabilitiesResponseBody,
|
|
61
61
|
| OrqError
|
|
62
62
|
| ResponseValidationError
|
|
63
63
|
| ConnectionError
|
|
@@ -122,7 +122,7 @@ async function $do(
|
|
|
122
122
|
const response = doResult.value;
|
|
123
123
|
|
|
124
124
|
const [result] = await M.match<
|
|
125
|
-
|
|
125
|
+
operations.ApiKeyListCapabilitiesResponseBody,
|
|
126
126
|
| OrqError
|
|
127
127
|
| ResponseValidationError
|
|
128
128
|
| ConnectionError
|
|
@@ -132,7 +132,7 @@ async function $do(
|
|
|
132
132
|
| UnexpectedClientError
|
|
133
133
|
| SDKValidationError
|
|
134
134
|
>(
|
|
135
|
-
M.json(200,
|
|
135
|
+
M.json(200, operations.ApiKeyListCapabilitiesResponseBody$inboundSchema),
|
|
136
136
|
M.fail("4XX"),
|
|
137
137
|
M.fail("5XX"),
|
|
138
138
|
)(response, req);
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Update an API key
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Updates mutable fields of an API key: display name, status (active / disabled / revoked), permission mode and access map, project scope
|
|
33
|
+
* Updates mutable fields of an API key: display name, status (active / disabled / revoked), permission mode and access map, project scope and constraints. Omitted fields keep their current values. Unknown body fields are rejected.
|
|
34
34
|
*/
|
|
35
35
|
export function apiKeysUpdate(
|
|
36
36
|
client: OrqCore,
|
|
@@ -85,9 +85,7 @@ async function $do(
|
|
|
85
85
|
return [parsed, { status: "invalid" }];
|
|
86
86
|
}
|
|
87
87
|
const payload = parsed.value;
|
|
88
|
-
const body = encodeJSON("body", payload.
|
|
89
|
-
explode: true,
|
|
90
|
-
});
|
|
88
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
91
89
|
|
|
92
90
|
const pathParams = {
|
|
93
91
|
api_key_id: encodeSimple("api_key_id", payload.api_key_id, {
|
|
@@ -160,7 +158,7 @@ async function $do(
|
|
|
160
158
|
| SDKValidationError
|
|
161
159
|
>(
|
|
162
160
|
M.json(200, components.ApiKeyRestResponse$inboundSchema),
|
|
163
|
-
M.fail("4XX"),
|
|
161
|
+
M.fail([400, 401, 403, 404, 409, "4XX"]),
|
|
164
162
|
M.fail("5XX"),
|
|
165
163
|
)(response, req);
|
|
166
164
|
if (!result.ok) {
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Classify
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify
|
|
33
|
+
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
|
|
34
34
|
*/
|
|
35
35
|
export function routerClassifyCreate(
|
|
36
36
|
client: OrqCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -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.14",
|
|
62
62
|
genVersion: "2.938.0",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.16.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.16.0-rc.14 2.938.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -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(),
|
|
@@ -23,7 +23,7 @@ export type Wiki = {
|
|
|
23
23
|
branch?: string | undefined;
|
|
24
24
|
scmConnectionId?: string | undefined;
|
|
25
25
|
settings?: WikiSettings | undefined;
|
|
26
|
-
|
|
26
|
+
loopId?: string | undefined;
|
|
27
27
|
status?: string | undefined;
|
|
28
28
|
currentRunId?: string | undefined;
|
|
29
29
|
lastGeneratedCommit?: string | undefined;
|
|
@@ -46,7 +46,7 @@ export const Wiki$inboundSchema: z.ZodType<Wiki, z.ZodTypeDef, unknown> = z
|
|
|
46
46
|
branch: z.string().optional(),
|
|
47
47
|
scm_connection_id: z.string().optional(),
|
|
48
48
|
settings: WikiSettings$inboundSchema.optional(),
|
|
49
|
-
|
|
49
|
+
loop_id: z.string().optional(),
|
|
50
50
|
status: z.string().optional(),
|
|
51
51
|
current_run_id: z.string().optional(),
|
|
52
52
|
last_generated_commit: z.string().optional(),
|
|
@@ -69,7 +69,7 @@ export const Wiki$inboundSchema: z.ZodType<Wiki, z.ZodTypeDef, unknown> = z
|
|
|
69
69
|
"display_name": "displayName",
|
|
70
70
|
"repository_key": "repositoryKey",
|
|
71
71
|
"scm_connection_id": "scmConnectionId",
|
|
72
|
-
"
|
|
72
|
+
"loop_id": "loopId",
|
|
73
73
|
"current_run_id": "currentRunId",
|
|
74
74
|
"last_generated_commit": "lastGeneratedCommit",
|
|
75
75
|
"last_generated_at": "lastGeneratedAt",
|
|
@@ -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
|
+
}
|