@orq-ai/node 4.17.13 → 4.17.15
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/config.js.map +1 -1
- package/models/components/reasoningpart.js +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/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- 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 +5 -5
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/budgetscope.ts +2 -2
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/budgetusage.ts +1 -4
- package/packages/orq-rc/src/models/components/classifypromptcacheoptions.ts +76 -0
- package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +11 -0
- package/packages/orq-rc/src/models/components/index.ts +2 -27
- package/packages/orq-rc/src/models/components/mcpauthconfig.ts +67 -10
- package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +57 -8
- package/packages/orq-rc/src/models/components/mcpgateway.ts +15 -0
- package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +19 -1
- package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +17 -1
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +13 -8
- package/packages/orq-rc/src/models/components/providerbudgetscope.ts +2 -2
- package/packages/orq-rc/src/models/components/querylogsresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/spansummary.ts +29 -5
- package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
- package/packages/orq-rc/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +27 -0
- package/packages/orq-rc/src/models/components/thinkingparam.ts +7 -6
- package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -6
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8 -2
- package/packages/orq-rc/src/models/operations/createclassify.ts +25 -11
- package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -2
- package/packages/orq-rc/src/models/operations/createdecisions.ts +25 -11
- package/packages/orq-rc/src/models/operations/createprompt.ts +13 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +5 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +5 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +5 -1
- 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 +0 -10
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -2
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +5 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +10 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +17 -5
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +17 -5
- package/packages/orq-rc/src/models/operations/updateagent.ts +26 -6
- package/packages/orq-rc/src/models/operations/updateprompt.ts +13 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/sdk.ts +0 -6
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- 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/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- 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/packages/orq-rc/src/funcs/wikisCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -171
- package/packages/orq-rc/src/funcs/wikisGet.ts +0 -171
- package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -177
- package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -171
- package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +0 -166
- package/packages/orq-rc/src/funcs/wikisList.ts +0 -176
- package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -176
- package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -174
- package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -177
- package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -172
- package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -174
- package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
- package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
- package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
- package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
- package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
- package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +0 -72
- package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
- package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
- package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
- package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
- package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
- package/packages/orq-rc/src/models/components/wiki.ts +0 -91
- package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
- package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
- package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
- package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
- package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
- package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
- package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
- package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
- package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
- package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
- package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
- package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
- package/packages/orq-rc/src/models/operations/listwikis.ts +0 -54
- package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
- package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
- package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
- package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
- package/packages/orq-rc/src/sdk/wikis.ts +0 -154
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { McpAuthType, McpAuthType$outboundSchema } from "./mcpauthtype.js";
|
|
8
|
-
import {
|
|
9
|
-
McpEnterpriseAuthConfig,
|
|
10
|
-
McpEnterpriseAuthConfig$Outbound,
|
|
11
|
-
McpEnterpriseAuthConfig$outboundSchema,
|
|
12
|
-
} from "./mcpenterpriseauthconfig.js";
|
|
13
8
|
import {
|
|
14
9
|
McpHeaderSecret,
|
|
15
10
|
McpHeaderSecret$Outbound,
|
|
@@ -21,6 +16,34 @@ import {
|
|
|
21
16
|
McpOAuthConfig$outboundSchema,
|
|
22
17
|
} from "./mcpoauthconfig.js";
|
|
23
18
|
|
|
19
|
+
/**
|
|
20
|
+
* Superseded by `oauth` for ENTERPRISE_MANAGED; accepted on write and mirrored on read.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
23
|
+
*/
|
|
24
|
+
export type Enterprise = {
|
|
25
|
+
/**
|
|
26
|
+
* RFC 9728 resource identifier the tokens are bound to; defaults to the connection URL.
|
|
27
|
+
*/
|
|
28
|
+
resource?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* OAuth client identifier registered at the upstream authorization server.
|
|
31
|
+
*/
|
|
32
|
+
clientId?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* OAuth client secret; accepted on write and never returned.
|
|
35
|
+
*/
|
|
36
|
+
clientSecret?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Redacted preview of `client_secret`, returned in its place.
|
|
39
|
+
*/
|
|
40
|
+
maskedValue?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Scopes requested when redeeming the identity assertion grant.
|
|
43
|
+
*/
|
|
44
|
+
scopes?: Array<string> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
24
47
|
export type McpAuthConfig = {
|
|
25
48
|
type: McpAuthType;
|
|
26
49
|
/**
|
|
@@ -28,21 +51,55 @@ export type McpAuthConfig = {
|
|
|
28
51
|
*/
|
|
29
52
|
staticHeaders?: Array<McpHeaderSecret> | undefined;
|
|
30
53
|
/**
|
|
31
|
-
* OAuth client
|
|
54
|
+
* OAuth client for the upstream authorization server; set when type is OAUTH_CLIENT_CREDENTIALS, PER_USER_OAUTH or ENTERPRISE_MANAGED.
|
|
32
55
|
*/
|
|
33
56
|
oauth?: McpOAuthConfig | undefined;
|
|
34
57
|
/**
|
|
35
|
-
*
|
|
58
|
+
* Superseded by `oauth` for ENTERPRISE_MANAGED; accepted on write and mirrored on read.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
61
|
*/
|
|
37
|
-
enterprise?:
|
|
62
|
+
enterprise?: Enterprise | undefined;
|
|
38
63
|
};
|
|
39
64
|
|
|
65
|
+
/** @internal */
|
|
66
|
+
export type Enterprise$Outbound = {
|
|
67
|
+
resource?: string | undefined;
|
|
68
|
+
client_id?: string | undefined;
|
|
69
|
+
client_secret?: string | undefined;
|
|
70
|
+
masked_value?: string | undefined;
|
|
71
|
+
scopes?: Array<string> | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const Enterprise$outboundSchema: z.ZodType<
|
|
76
|
+
Enterprise$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
Enterprise
|
|
79
|
+
> = z.object({
|
|
80
|
+
resource: z.string().optional(),
|
|
81
|
+
clientId: z.string().optional(),
|
|
82
|
+
clientSecret: z.string().optional(),
|
|
83
|
+
maskedValue: z.string().optional(),
|
|
84
|
+
scopes: z.array(z.string()).optional(),
|
|
85
|
+
}).transform((v) => {
|
|
86
|
+
return remap$(v, {
|
|
87
|
+
clientId: "client_id",
|
|
88
|
+
clientSecret: "client_secret",
|
|
89
|
+
maskedValue: "masked_value",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export function enterpriseToJSON(enterprise: Enterprise): string {
|
|
94
|
+
return JSON.stringify(Enterprise$outboundSchema.parse(enterprise));
|
|
95
|
+
}
|
|
96
|
+
|
|
40
97
|
/** @internal */
|
|
41
98
|
export type McpAuthConfig$Outbound = {
|
|
42
99
|
type: string;
|
|
43
100
|
static_headers?: Array<McpHeaderSecret$Outbound> | undefined;
|
|
44
101
|
oauth?: McpOAuthConfig$Outbound | undefined;
|
|
45
|
-
enterprise?:
|
|
102
|
+
enterprise?: Enterprise$Outbound | undefined;
|
|
46
103
|
};
|
|
47
104
|
|
|
48
105
|
/** @internal */
|
|
@@ -54,7 +111,7 @@ export const McpAuthConfig$outboundSchema: z.ZodType<
|
|
|
54
111
|
type: McpAuthType$outboundSchema,
|
|
55
112
|
staticHeaders: z.array(McpHeaderSecret$outboundSchema).optional(),
|
|
56
113
|
oauth: McpOAuthConfig$outboundSchema.optional(),
|
|
57
|
-
enterprise:
|
|
114
|
+
enterprise: z.lazy(() => Enterprise$outboundSchema).optional(),
|
|
58
115
|
}).transform((v) => {
|
|
59
116
|
return remap$(v, {
|
|
60
117
|
staticHeaders: "static_headers",
|
|
@@ -8,10 +8,6 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import { McpAuthType, McpAuthType$inboundSchema } from "./mcpauthtype.js";
|
|
11
|
-
import {
|
|
12
|
-
McpEnterpriseAuthConfigOutput,
|
|
13
|
-
McpEnterpriseAuthConfigOutput$inboundSchema,
|
|
14
|
-
} from "./mcpenterpriseauthconfigoutput.js";
|
|
15
11
|
import {
|
|
16
12
|
McpHeaderSecretOutput,
|
|
17
13
|
McpHeaderSecretOutput$inboundSchema,
|
|
@@ -21,6 +17,30 @@ import {
|
|
|
21
17
|
McpOAuthConfigOutput$inboundSchema,
|
|
22
18
|
} from "./mcpoauthconfigoutput.js";
|
|
23
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Superseded by `oauth` for ENTERPRISE_MANAGED; accepted on write and mirrored on read.
|
|
22
|
+
*
|
|
23
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
24
|
+
*/
|
|
25
|
+
export type McpAuthConfigEnterprise = {
|
|
26
|
+
/**
|
|
27
|
+
* RFC 9728 resource identifier the tokens are bound to; defaults to the connection URL.
|
|
28
|
+
*/
|
|
29
|
+
resource?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* OAuth client identifier registered at the upstream authorization server.
|
|
32
|
+
*/
|
|
33
|
+
clientId?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Redacted preview of `client_secret`, returned in its place.
|
|
36
|
+
*/
|
|
37
|
+
maskedValue?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Scopes requested when redeeming the identity assertion grant.
|
|
40
|
+
*/
|
|
41
|
+
scopes?: Array<string> | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
24
44
|
export type McpAuthConfigOutput = {
|
|
25
45
|
type: McpAuthType;
|
|
26
46
|
/**
|
|
@@ -28,15 +48,44 @@ export type McpAuthConfigOutput = {
|
|
|
28
48
|
*/
|
|
29
49
|
staticHeaders?: Array<McpHeaderSecretOutput> | undefined;
|
|
30
50
|
/**
|
|
31
|
-
* OAuth client
|
|
51
|
+
* OAuth client for the upstream authorization server; set when type is OAUTH_CLIENT_CREDENTIALS, PER_USER_OAUTH or ENTERPRISE_MANAGED.
|
|
32
52
|
*/
|
|
33
53
|
oauth?: McpOAuthConfigOutput | undefined;
|
|
34
54
|
/**
|
|
35
|
-
*
|
|
55
|
+
* Superseded by `oauth` for ENTERPRISE_MANAGED; accepted on write and mirrored on read.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
36
58
|
*/
|
|
37
|
-
enterprise?:
|
|
59
|
+
enterprise?: McpAuthConfigEnterprise | undefined;
|
|
38
60
|
};
|
|
39
61
|
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const McpAuthConfigEnterprise$inboundSchema: z.ZodType<
|
|
64
|
+
McpAuthConfigEnterprise,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
resource: z.string().optional(),
|
|
69
|
+
client_id: z.string().optional(),
|
|
70
|
+
masked_value: z.string().optional(),
|
|
71
|
+
scopes: z.array(z.string()).optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
"client_id": "clientId",
|
|
75
|
+
"masked_value": "maskedValue",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export function mcpAuthConfigEnterpriseFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<McpAuthConfigEnterprise, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => McpAuthConfigEnterprise$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'McpAuthConfigEnterprise' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
40
89
|
/** @internal */
|
|
41
90
|
export const McpAuthConfigOutput$inboundSchema: z.ZodType<
|
|
42
91
|
McpAuthConfigOutput,
|
|
@@ -46,7 +95,7 @@ export const McpAuthConfigOutput$inboundSchema: z.ZodType<
|
|
|
46
95
|
type: McpAuthType$inboundSchema,
|
|
47
96
|
static_headers: z.array(McpHeaderSecretOutput$inboundSchema).optional(),
|
|
48
97
|
oauth: McpOAuthConfigOutput$inboundSchema.optional(),
|
|
49
|
-
enterprise:
|
|
98
|
+
enterprise: z.lazy(() => McpAuthConfigEnterprise$inboundSchema).optional(),
|
|
50
99
|
}).transform((v) => {
|
|
51
100
|
return remap$(v, {
|
|
52
101
|
"static_headers": "staticHeaders",
|
|
@@ -7,6 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
GuardrailRuleGuardrail,
|
|
12
|
+
GuardrailRuleGuardrail$inboundSchema,
|
|
13
|
+
} from "./guardrailruleguardrail.js";
|
|
10
14
|
import {
|
|
11
15
|
McpGatewayMode,
|
|
12
16
|
McpGatewayMode$inboundSchema,
|
|
@@ -82,6 +86,14 @@ export type McpGateway = {
|
|
|
82
86
|
* Website advertised to MCP clients; defaults to ORQ documentation when empty.
|
|
83
87
|
*/
|
|
84
88
|
websiteUrl?: string | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Guardrails run on the arguments and result of every tool call this gateway serves.
|
|
91
|
+
*/
|
|
92
|
+
guardrails?: Array<GuardrailRuleGuardrail> | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Account that created the gateway.
|
|
95
|
+
*/
|
|
96
|
+
createdById?: string | undefined;
|
|
85
97
|
};
|
|
86
98
|
|
|
87
99
|
/** @internal */
|
|
@@ -106,6 +118,8 @@ export const McpGateway$inboundSchema: z.ZodType<
|
|
|
106
118
|
skill_ids: z.array(z.string()).optional(),
|
|
107
119
|
icons: z.array(McpIcon$inboundSchema).optional(),
|
|
108
120
|
website_url: z.string().optional(),
|
|
121
|
+
guardrails: z.array(GuardrailRuleGuardrail$inboundSchema).optional(),
|
|
122
|
+
created_by_id: z.string().optional(),
|
|
109
123
|
}).transform((v) => {
|
|
110
124
|
return remap$(v, {
|
|
111
125
|
"display_name": "displayName",
|
|
@@ -115,6 +129,7 @@ export const McpGateway$inboundSchema: z.ZodType<
|
|
|
115
129
|
"exposed_tools_count": "exposedToolsCount",
|
|
116
130
|
"skill_ids": "skillIds",
|
|
117
131
|
"website_url": "websiteUrl",
|
|
132
|
+
"created_by_id": "createdById",
|
|
118
133
|
});
|
|
119
134
|
});
|
|
120
135
|
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* McpOAuthConfig is the OAuth client orq presents to the upstream authorization
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* server for OAUTH_CLIENT_CREDENTIALS, PER_USER_OAUTH and ENTERPRISE_MANAGED.
|
|
13
|
+
*/
|
|
8
14
|
export type McpOAuthConfig = {
|
|
9
15
|
/**
|
|
10
16
|
* OAuth client identifier presented to the upstream authorization server.
|
|
@@ -15,7 +21,7 @@ export type McpOAuthConfig = {
|
|
|
15
21
|
*/
|
|
16
22
|
clientSecret?: string | undefined;
|
|
17
23
|
/**
|
|
18
|
-
* Token endpoint
|
|
24
|
+
* Token endpoint for OAUTH_CLIENT_CREDENTIALS; PER_USER_OAUTH and ENTERPRISE_MANAGED discover it from `resource`.
|
|
19
25
|
*/
|
|
20
26
|
tokenUrl?: string | undefined;
|
|
21
27
|
/**
|
|
@@ -26,6 +32,14 @@ export type McpOAuthConfig = {
|
|
|
26
32
|
* Redacted preview of `client_secret`, returned in its place.
|
|
27
33
|
*/
|
|
28
34
|
maskedValue?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Exact authorization-server issuer; pins discovery for PER_USER_OAUTH and ENTERPRISE_MANAGED.
|
|
37
|
+
*/
|
|
38
|
+
issuer?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Protected resource identifier; defaults to the upstream connection URL.
|
|
41
|
+
*/
|
|
42
|
+
resource?: string | undefined;
|
|
29
43
|
};
|
|
30
44
|
|
|
31
45
|
/** @internal */
|
|
@@ -35,6 +49,8 @@ export type McpOAuthConfig$Outbound = {
|
|
|
35
49
|
token_url?: string | undefined;
|
|
36
50
|
scopes?: Array<string> | undefined;
|
|
37
51
|
masked_value?: string | undefined;
|
|
52
|
+
issuer?: string | undefined;
|
|
53
|
+
resource?: string | undefined;
|
|
38
54
|
};
|
|
39
55
|
|
|
40
56
|
/** @internal */
|
|
@@ -48,6 +64,8 @@ export const McpOAuthConfig$outboundSchema: z.ZodType<
|
|
|
48
64
|
tokenUrl: z.string().optional(),
|
|
49
65
|
scopes: z.array(z.string()).optional(),
|
|
50
66
|
maskedValue: z.string().optional(),
|
|
67
|
+
issuer: z.string().optional(),
|
|
68
|
+
resource: z.string().optional(),
|
|
51
69
|
}).transform((v) => {
|
|
52
70
|
return remap$(v, {
|
|
53
71
|
clientId: "client_id",
|
|
@@ -8,13 +8,19 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* McpOAuthConfig is the OAuth client orq presents to the upstream authorization
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* server for OAUTH_CLIENT_CREDENTIALS, PER_USER_OAUTH and ENTERPRISE_MANAGED.
|
|
16
|
+
*/
|
|
11
17
|
export type McpOAuthConfigOutput = {
|
|
12
18
|
/**
|
|
13
19
|
* OAuth client identifier presented to the upstream authorization server.
|
|
14
20
|
*/
|
|
15
21
|
clientId?: string | undefined;
|
|
16
22
|
/**
|
|
17
|
-
* Token endpoint
|
|
23
|
+
* Token endpoint for OAUTH_CLIENT_CREDENTIALS; PER_USER_OAUTH and ENTERPRISE_MANAGED discover it from `resource`.
|
|
18
24
|
*/
|
|
19
25
|
tokenUrl?: string | undefined;
|
|
20
26
|
/**
|
|
@@ -25,6 +31,14 @@ export type McpOAuthConfigOutput = {
|
|
|
25
31
|
* Redacted preview of `client_secret`, returned in its place.
|
|
26
32
|
*/
|
|
27
33
|
maskedValue?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Exact authorization-server issuer; pins discovery for PER_USER_OAUTH and ENTERPRISE_MANAGED.
|
|
36
|
+
*/
|
|
37
|
+
issuer?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Protected resource identifier; defaults to the upstream connection URL.
|
|
40
|
+
*/
|
|
41
|
+
resource?: string | undefined;
|
|
28
42
|
};
|
|
29
43
|
|
|
30
44
|
/** @internal */
|
|
@@ -37,6 +51,8 @@ export const McpOAuthConfigOutput$inboundSchema: z.ZodType<
|
|
|
37
51
|
token_url: z.string().optional(),
|
|
38
52
|
scopes: z.array(z.string()).optional(),
|
|
39
53
|
masked_value: z.string().optional(),
|
|
54
|
+
issuer: z.string().optional(),
|
|
55
|
+
resource: z.string().optional(),
|
|
40
56
|
}).transform((v) => {
|
|
41
57
|
return remap$(v, {
|
|
42
58
|
"client_id": "clientId",
|
|
@@ -43,6 +43,7 @@ export type ModelMetadata = {
|
|
|
43
43
|
contextWindow?: number | undefined;
|
|
44
44
|
costEfficiencyRating?: number | undefined;
|
|
45
45
|
costPerImage?: number | undefined;
|
|
46
|
+
defaultMaxOutputTokens?: number | undefined;
|
|
46
47
|
defaultSpeechResponseFormat?: string | undefined;
|
|
47
48
|
deprecationDate?: string | undefined;
|
|
48
49
|
embeddingDimensions?: number | undefined;
|
|
@@ -183,6 +184,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
183
184
|
context_window: z.number().int().optional(),
|
|
184
185
|
cost_efficiency_rating: z.number().int().optional(),
|
|
185
186
|
cost_per_image: z.number().optional(),
|
|
187
|
+
default_max_output_tokens: z.number().int().optional(),
|
|
186
188
|
default_speech_response_format: z.string().optional(),
|
|
187
189
|
deprecation_date: z.string().optional(),
|
|
188
190
|
embedding_dimensions: z.number().int().optional(),
|
|
@@ -317,6 +319,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
317
319
|
"context_window": "contextWindow",
|
|
318
320
|
"cost_efficiency_rating": "costEfficiencyRating",
|
|
319
321
|
"cost_per_image": "costPerImage",
|
|
322
|
+
"default_max_output_tokens": "defaultMaxOutputTokens",
|
|
320
323
|
"default_speech_response_format": "defaultSpeechResponseFormat",
|
|
321
324
|
"deprecation_date": "deprecationDate",
|
|
322
325
|
"embedding_dimensions": "embeddingDimensions",
|
|
@@ -452,6 +455,7 @@ export type ModelMetadata$Outbound = {
|
|
|
452
455
|
context_window?: number | undefined;
|
|
453
456
|
cost_efficiency_rating?: number | undefined;
|
|
454
457
|
cost_per_image?: number | undefined;
|
|
458
|
+
default_max_output_tokens?: number | undefined;
|
|
455
459
|
default_speech_response_format?: string | undefined;
|
|
456
460
|
deprecation_date?: string | undefined;
|
|
457
461
|
embedding_dimensions?: number | undefined;
|
|
@@ -594,6 +598,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
594
598
|
contextWindow: z.number().int().optional(),
|
|
595
599
|
costEfficiencyRating: z.number().int().optional(),
|
|
596
600
|
costPerImage: z.number().optional(),
|
|
601
|
+
defaultMaxOutputTokens: z.number().int().optional(),
|
|
597
602
|
defaultSpeechResponseFormat: z.string().optional(),
|
|
598
603
|
deprecationDate: z.string().optional(),
|
|
599
604
|
embeddingDimensions: z.number().int().optional(),
|
|
@@ -728,6 +733,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
728
733
|
contextWindow: "context_window",
|
|
729
734
|
costEfficiencyRating: "cost_efficiency_rating",
|
|
730
735
|
costPerImage: "cost_per_image",
|
|
736
|
+
defaultMaxOutputTokens: "default_max_output_tokens",
|
|
731
737
|
defaultSpeechResponseFormat: "default_speech_response_format",
|
|
732
738
|
deprecationDate: "deprecation_date",
|
|
733
739
|
embeddingDimensions: "embedding_dimensions",
|
|
@@ -16,15 +16,17 @@ export type OpenAIPromptCacheOptionsMode = ClosedEnum<
|
|
|
16
16
|
typeof OpenAIPromptCacheOptionsMode
|
|
17
17
|
>;
|
|
18
18
|
|
|
19
|
-
export const
|
|
19
|
+
export const OpenAIPromptCacheOptionsTtl = {
|
|
20
20
|
Thirtym: "30m",
|
|
21
21
|
Twelveh: "12h",
|
|
22
22
|
} as const;
|
|
23
|
-
export type
|
|
23
|
+
export type OpenAIPromptCacheOptionsTtl = ClosedEnum<
|
|
24
|
+
typeof OpenAIPromptCacheOptionsTtl
|
|
25
|
+
>;
|
|
24
26
|
|
|
25
27
|
export type OpenAIPromptCacheOptions = {
|
|
26
28
|
mode?: OpenAIPromptCacheOptionsMode | undefined;
|
|
27
|
-
ttl?:
|
|
29
|
+
ttl?: OpenAIPromptCacheOptionsTtl | undefined;
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
/** @internal */
|
|
@@ -37,10 +39,13 @@ export const OpenAIPromptCacheOptionsMode$outboundSchema: z.ZodNativeEnum<
|
|
|
37
39
|
> = OpenAIPromptCacheOptionsMode$inboundSchema;
|
|
38
40
|
|
|
39
41
|
/** @internal */
|
|
40
|
-
export const
|
|
42
|
+
export const OpenAIPromptCacheOptionsTtl$inboundSchema: z.ZodNativeEnum<
|
|
43
|
+
typeof OpenAIPromptCacheOptionsTtl
|
|
44
|
+
> = z.nativeEnum(OpenAIPromptCacheOptionsTtl);
|
|
41
45
|
/** @internal */
|
|
42
|
-
export const
|
|
43
|
-
|
|
46
|
+
export const OpenAIPromptCacheOptionsTtl$outboundSchema: z.ZodNativeEnum<
|
|
47
|
+
typeof OpenAIPromptCacheOptionsTtl
|
|
48
|
+
> = OpenAIPromptCacheOptionsTtl$inboundSchema;
|
|
44
49
|
|
|
45
50
|
/** @internal */
|
|
46
51
|
export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
|
|
@@ -49,7 +54,7 @@ export const OpenAIPromptCacheOptions$inboundSchema: z.ZodType<
|
|
|
49
54
|
unknown
|
|
50
55
|
> = z.object({
|
|
51
56
|
mode: OpenAIPromptCacheOptionsMode$inboundSchema.optional(),
|
|
52
|
-
ttl:
|
|
57
|
+
ttl: OpenAIPromptCacheOptionsTtl$inboundSchema.optional(),
|
|
53
58
|
});
|
|
54
59
|
/** @internal */
|
|
55
60
|
export type OpenAIPromptCacheOptions$Outbound = {
|
|
@@ -64,7 +69,7 @@ export const OpenAIPromptCacheOptions$outboundSchema: z.ZodType<
|
|
|
64
69
|
OpenAIPromptCacheOptions
|
|
65
70
|
> = z.object({
|
|
66
71
|
mode: OpenAIPromptCacheOptionsMode$outboundSchema.optional(),
|
|
67
|
-
ttl:
|
|
72
|
+
ttl: OpenAIPromptCacheOptionsTtl$outboundSchema.optional(),
|
|
68
73
|
});
|
|
69
74
|
|
|
70
75
|
export function openAIPromptCacheOptionsToJSON(
|
|
@@ -8,10 +8,10 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Per-provider cap. The value is the provider
|
|
11
|
+
* Per-provider cap. The value is the provider identifier, for example
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* "openai"
|
|
14
|
+
* "openai" or "anthropic".
|
|
15
15
|
*/
|
|
16
16
|
export type ProviderBudgetScope = {
|
|
17
17
|
provider?: string | undefined;
|
|
@@ -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_01m613cwnch2h1s6nsn6f6k1kt"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -10,6 +10,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { TraceCost, TraceCost$inboundSchema } from "./tracecost.js";
|
|
11
11
|
import { TraceUsage, TraceUsage$inboundSchema } from "./traceusage.js";
|
|
12
12
|
|
|
13
|
+
export type RuleAttributes = {};
|
|
14
|
+
|
|
13
15
|
export type SpanSummary = {
|
|
14
16
|
object?: string | undefined;
|
|
15
17
|
traceId?: string | undefined;
|
|
@@ -30,21 +32,41 @@ export type SpanSummary = {
|
|
|
30
32
|
level?: number | undefined;
|
|
31
33
|
hasChildren?: boolean | undefined;
|
|
32
34
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* trace_framework is set on the trace root, leading_span_type where the
|
|
37
|
-
* ingest marked one, guardrail_enabled on evaluator spans run as guardrails.
|
|
35
|
+
* Framework that produced the trace, recorded on the root span.
|
|
38
36
|
*/
|
|
39
37
|
traceFramework?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Span type assigned at ingest when the trace has one.
|
|
40
|
+
*/
|
|
40
41
|
leadingSpanType?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the span is an evaluator span running as a guardrail.
|
|
44
|
+
*/
|
|
41
45
|
guardrailEnabled?: boolean | undefined;
|
|
42
46
|
/**
|
|
43
47
|
* Why the span's generation stopped, for example stop, length or content_filter.
|
|
44
48
|
*/
|
|
45
49
|
finishReasons?: Array<string> | undefined;
|
|
50
|
+
ruleAttributes?: RuleAttributes | undefined;
|
|
46
51
|
};
|
|
47
52
|
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const RuleAttributes$inboundSchema: z.ZodType<
|
|
55
|
+
RuleAttributes,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
unknown
|
|
58
|
+
> = z.object({});
|
|
59
|
+
|
|
60
|
+
export function ruleAttributesFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<RuleAttributes, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => RuleAttributes$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'RuleAttributes' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
48
70
|
/** @internal */
|
|
49
71
|
export const SpanSummary$inboundSchema: z.ZodType<
|
|
50
72
|
SpanSummary,
|
|
@@ -75,6 +97,7 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
75
97
|
leading_span_type: z.string().optional(),
|
|
76
98
|
guardrail_enabled: z.boolean().optional(),
|
|
77
99
|
finish_reasons: z.array(z.string()).optional(),
|
|
100
|
+
rule_attributes: z.lazy(() => RuleAttributes$inboundSchema).optional(),
|
|
78
101
|
}).transform((v) => {
|
|
79
102
|
return remap$(v, {
|
|
80
103
|
"trace_id": "traceId",
|
|
@@ -89,6 +112,7 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
89
112
|
"leading_span_type": "leadingSpanType",
|
|
90
113
|
"guardrail_enabled": "guardrailEnabled",
|
|
91
114
|
"finish_reasons": "finishReasons",
|
|
115
|
+
"rule_attributes": "ruleAttributes",
|
|
92
116
|
});
|
|
93
117
|
});
|
|
94
118
|
|
|
@@ -4,9 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
13
|
+
*/
|
|
14
|
+
export const ThinkingConfigAdaptiveSchemaDisplay = {
|
|
15
|
+
Summarized: "summarized",
|
|
16
|
+
Omitted: "omitted",
|
|
17
|
+
Updates: "updates",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
21
|
+
*/
|
|
22
|
+
export type ThinkingConfigAdaptiveSchemaDisplay = ClosedEnum<
|
|
23
|
+
typeof ThinkingConfigAdaptiveSchemaDisplay
|
|
24
|
+
>;
|
|
25
|
+
|
|
10
26
|
/**
|
|
11
27
|
* Enables adaptive thinking mode where the model dynamically determines thinking depth
|
|
12
28
|
*/
|
|
@@ -15,8 +31,21 @@ export type ThinkingConfigAdaptiveSchema = {
|
|
|
15
31
|
* Lets the model dynamically determine when and how much to use extended thinking based on the complexity of each request. Supported on Claude Opus 4.6 and Sonnet 4.6.
|
|
16
32
|
*/
|
|
17
33
|
type: "adaptive";
|
|
34
|
+
/**
|
|
35
|
+
* Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
|
|
36
|
+
*/
|
|
37
|
+
display?: ThinkingConfigAdaptiveSchemaDisplay | undefined;
|
|
18
38
|
};
|
|
19
39
|
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ThinkingConfigAdaptiveSchemaDisplay$inboundSchema: z.ZodNativeEnum<
|
|
42
|
+
typeof ThinkingConfigAdaptiveSchemaDisplay
|
|
43
|
+
> = z.nativeEnum(ThinkingConfigAdaptiveSchemaDisplay);
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ThinkingConfigAdaptiveSchemaDisplay$outboundSchema:
|
|
46
|
+
z.ZodNativeEnum<typeof ThinkingConfigAdaptiveSchemaDisplay> =
|
|
47
|
+
ThinkingConfigAdaptiveSchemaDisplay$inboundSchema;
|
|
48
|
+
|
|
20
49
|
/** @internal */
|
|
21
50
|
export const ThinkingConfigAdaptiveSchema$inboundSchema: z.ZodType<
|
|
22
51
|
ThinkingConfigAdaptiveSchema,
|
|
@@ -24,10 +53,12 @@ export const ThinkingConfigAdaptiveSchema$inboundSchema: z.ZodType<
|
|
|
24
53
|
unknown
|
|
25
54
|
> = z.object({
|
|
26
55
|
type: z.literal("adaptive"),
|
|
56
|
+
display: ThinkingConfigAdaptiveSchemaDisplay$inboundSchema.optional(),
|
|
27
57
|
});
|
|
28
58
|
/** @internal */
|
|
29
59
|
export type ThinkingConfigAdaptiveSchema$Outbound = {
|
|
30
60
|
type: "adaptive";
|
|
61
|
+
display?: string | undefined;
|
|
31
62
|
};
|
|
32
63
|
|
|
33
64
|
/** @internal */
|
|
@@ -37,6 +68,7 @@ export const ThinkingConfigAdaptiveSchema$outboundSchema: z.ZodType<
|
|
|
37
68
|
ThinkingConfigAdaptiveSchema
|
|
38
69
|
> = z.object({
|
|
39
70
|
type: z.literal("adaptive"),
|
|
71
|
+
display: ThinkingConfigAdaptiveSchemaDisplay$outboundSchema.optional(),
|
|
40
72
|
});
|
|
41
73
|
|
|
42
74
|
export function thinkingConfigAdaptiveSchemaToJSON(
|