@orq-ai/node 4.17.14 → 4.17.16

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.
Files changed (105) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createtool.js +4 -4
  7. package/models/operations/getalltools.js +4 -4
  8. package/models/operations/getv2humanevalsets.js +2 -2
  9. package/models/operations/getv2humanevalsetsid.js +2 -2
  10. package/models/operations/listdeploymentversions.js +1 -1
  11. package/models/operations/patchv2humanevalsetsid.js +2 -2
  12. package/models/operations/postv2humanevalsets.js +2 -2
  13. package/models/operations/retrievetool.js +4 -4
  14. package/models/operations/runagent.js +1 -1
  15. package/models/operations/streamrunagent.js +1 -1
  16. package/models/operations/updatetool.js +4 -4
  17. package/package.json +5 -5
  18. package/packages/orq-rc/src/lib/config.ts +3 -3
  19. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +11 -0
  20. package/packages/orq-rc/src/models/components/index.ts +0 -27
  21. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +67 -10
  22. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +57 -8
  23. package/packages/orq-rc/src/models/components/mcpgateway.ts +15 -0
  24. package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +19 -1
  25. package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +17 -1
  26. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  27. package/packages/orq-rc/src/models/components/spansummary.ts +22 -0
  28. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
  29. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  30. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  31. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  32. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  33. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  34. package/packages/orq-rc/src/models/operations/index.ts +0 -10
  35. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  36. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  37. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  38. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  39. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  40. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  41. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  42. package/packages/orq-rc/src/sdk/sdk.ts +0 -6
  43. package/src/lib/config.ts +3 -3
  44. package/src/models/components/reasoningpart.ts +1 -1
  45. package/src/models/operations/createtool.ts +4 -4
  46. package/src/models/operations/getalltools.ts +4 -4
  47. package/src/models/operations/getv2humanevalsets.ts +2 -2
  48. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  49. package/src/models/operations/listdeploymentversions.ts +1 -1
  50. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  51. package/src/models/operations/postv2humanevalsets.ts +2 -2
  52. package/src/models/operations/retrievetool.ts +4 -4
  53. package/src/models/operations/runagent.ts +1 -1
  54. package/src/models/operations/streamrunagent.ts +1 -1
  55. package/src/models/operations/updatetool.ts +4 -4
  56. package/packages/orq-rc/src/funcs/wikisCreate.ts +0 -165
  57. package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -171
  58. package/packages/orq-rc/src/funcs/wikisGet.ts +0 -171
  59. package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -177
  60. package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -171
  61. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +0 -166
  62. package/packages/orq-rc/src/funcs/wikisList.ts +0 -176
  63. package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -176
  64. package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -174
  65. package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -177
  66. package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -172
  67. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -174
  68. package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
  69. package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
  70. package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
  71. package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
  72. package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
  73. package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
  74. package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
  75. package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
  76. package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
  77. package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
  78. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +0 -72
  79. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
  80. package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
  81. package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
  82. package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
  83. package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
  84. package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
  85. package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
  86. package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
  87. package/packages/orq-rc/src/models/components/wiki.ts +0 -91
  88. package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
  89. package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
  90. package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
  91. package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
  92. package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
  93. package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
  94. package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
  95. package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
  96. package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
  97. package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
  98. package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
  99. package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
  100. package/packages/orq-rc/src/models/operations/listwikis.ts +0 -54
  101. package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
  102. package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
  103. package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
  104. package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
  105. package/packages/orq-rc/src/sdk/wikis.ts +0 -154
@@ -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 credentials the gateway presents to the upstream authorization server; set when type is OAUTH_CLIENT_CREDENTIALS.
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
- * Client for the upstream authorization server; set when type is ENTERPRISE_MANAGED.
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?: McpEnterpriseAuthConfigOutput | undefined;
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: McpEnterpriseAuthConfigOutput$inboundSchema.optional(),
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 the gateway calls to mint upstream access tokens.
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 the gateway calls to mint upstream access tokens.
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",
@@ -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("reasoning_01m5y34ekwp6dmtq9r6h89fdft"),
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;
@@ -45,8 +47,26 @@ export type SpanSummary = {
45
47
  * Why the span's generation stopped, for example stop, length or content_filter.
46
48
  */
47
49
  finishReasons?: Array<string> | undefined;
50
+ ruleAttributes?: RuleAttributes | undefined;
48
51
  };
49
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
+
50
70
  /** @internal */
51
71
  export const SpanSummary$inboundSchema: z.ZodType<
52
72
  SpanSummary,
@@ -77,6 +97,7 @@ export const SpanSummary$inboundSchema: z.ZodType<
77
97
  leading_span_type: z.string().optional(),
78
98
  guardrail_enabled: z.boolean().optional(),
79
99
  finish_reasons: z.array(z.string()).optional(),
100
+ rule_attributes: z.lazy(() => RuleAttributes$inboundSchema).optional(),
80
101
  }).transform((v) => {
81
102
  return remap$(v, {
82
103
  "trace_id": "traceId",
@@ -91,6 +112,7 @@ export const SpanSummary$inboundSchema: z.ZodType<
91
112
  "leading_span_type": "leadingSpanType",
92
113
  "guardrail_enabled": "guardrailEnabled",
93
114
  "finish_reasons": "finishReasons",
115
+ "rule_attributes": "ruleAttributes",
94
116
  });
95
117
  });
96
118
 
@@ -4,6 +4,11 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ GuardrailRuleGuardrail,
9
+ GuardrailRuleGuardrail$Outbound,
10
+ GuardrailRuleGuardrail$outboundSchema,
11
+ } from "./guardrailruleguardrail.js";
7
12
  import {
8
13
  McpGatewayMode,
9
14
  McpGatewayMode$outboundSchema,
@@ -88,6 +93,10 @@ export type UpdateMcpGatewayRequest = {
88
93
  * Empty restores the default ORQ documentation website.
89
94
  */
90
95
  websiteUrl?: string | undefined;
96
+ /**
97
+ * Guardrails run on the arguments and result of every tool call this gateway serves.
98
+ */
99
+ guardrails?: Array<GuardrailRuleGuardrail> | undefined;
91
100
  };
92
101
 
93
102
  /** @internal */
@@ -106,6 +115,7 @@ export type UpdateMcpGatewayRequest$Outbound = {
106
115
  icons?: Array<McpIcon$Outbound> | undefined;
107
116
  replace_icons?: boolean | undefined;
108
117
  website_url?: string | undefined;
118
+ guardrails?: Array<GuardrailRuleGuardrail$Outbound> | undefined;
109
119
  };
110
120
 
111
121
  /** @internal */
@@ -128,6 +138,7 @@ export const UpdateMcpGatewayRequest$outboundSchema: z.ZodType<
128
138
  icons: z.array(McpIcon$outboundSchema).optional(),
129
139
  replaceIcons: z.boolean().optional(),
130
140
  websiteUrl: z.string().optional(),
141
+ guardrails: z.array(GuardrailRuleGuardrail$outboundSchema).optional(),
131
142
  }).transform((v) => {
132
143
  return remap$(v, {
133
144
  displayName: "display_name",
@@ -26,6 +26,7 @@ export type UpdateWorkspaceRequest = {
26
26
  enforceEnabledModels?: boolean | undefined;
27
27
  chatKit?: ChatKitResources | undefined;
28
28
  tracingEnabled?: boolean | undefined;
29
+ retentionPeriod?: number | undefined;
29
30
  };
30
31
 
31
32
  /** @internal */
@@ -58,6 +59,7 @@ export type UpdateWorkspaceRequest$Outbound = {
58
59
  enforce_enabled_models?: boolean | undefined;
59
60
  chat_kit?: ChatKitResources$Outbound | undefined;
60
61
  tracing_enabled?: boolean | undefined;
62
+ retention_period?: number | undefined;
61
63
  };
62
64
 
63
65
  /** @internal */
@@ -75,6 +77,7 @@ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
75
77
  enforceEnabledModels: z.boolean().optional(),
76
78
  chatKit: ChatKitResources$outboundSchema.optional(),
77
79
  tracingEnabled: z.boolean().optional(),
80
+ retentionPeriod: z.number().int().optional(),
78
81
  }).transform((v) => {
79
82
  return remap$(v, {
80
83
  displayName: "display_name",
@@ -82,6 +85,7 @@ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
82
85
  enforceEnabledModels: "enforce_enabled_models",
83
86
  chatKit: "chat_kit",
84
87
  tracingEnabled: "tracing_enabled",
88
+ retentionPeriod: "retention_period",
85
89
  });
86
90
  });
87
91
 
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1575
1575
  z.ZodTypeDef,
1576
1576
  unknown
1577
1577
  > = z.object({
1578
- _id: z.string().default("tool_01M5Y34ENQ4SYNHHTSWADAHXHB"),
1578
+ _id: z.string().default("tool_01M613CWQVJAW5SNHSBA19Y52M"),
1579
1579
  path: z.string(),
1580
1580
  key: z.string(),
1581
1581
  display_name: z.string().optional(),
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
1761
1761
  z.ZodTypeDef,
1762
1762
  unknown
1763
1763
  > = z.object({
1764
- _id: z.string().default("tool_01M5Y34ENQVTK5JEBJ85BY01WH"),
1764
+ _id: z.string().default("tool_01M613CWQTF50EK8E5WN64SR5K"),
1765
1765
  path: z.string(),
1766
1766
  key: z.string(),
1767
1767
  display_name: z.string().optional(),
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1854
1854
  z.ZodTypeDef,
1855
1855
  unknown
1856
1856
  > = z.object({
1857
- _id: z.string().default("tool_01M5Y34ENQ58FS1TRJ0XABM4JA"),
1857
+ _id: z.string().default("tool_01M613CWQTFQ82JJNMEDNV7SQJ"),
1858
1858
  path: z.string(),
1859
1859
  key: z.string(),
1860
1860
  display_name: z.string().optional(),
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
1955
1955
  z.ZodTypeDef,
1956
1956
  unknown
1957
1957
  > = z.object({
1958
- _id: z.string().default("tool_01M5Y34ENQYMK3J436JXWJRYTA"),
1958
+ _id: z.string().default("tool_01M613CWQTM5Z6ZH7CXMRNGMTY"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
639
639
  z.ZodTypeDef,
640
640
  unknown
641
641
  > = z.object({
642
- _id: z.string().default("tool_01M5Y34ENMTT3DDY273B5B65CF"),
642
+ _id: z.string().default("tool_01M613CWQQRKH81DCNX5EFEFA3"),
643
643
  path: z.string(),
644
644
  key: z.string(),
645
645
  display_name: z.string().optional(),
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
821
821
  z.ZodTypeDef,
822
822
  unknown
823
823
  > = z.object({
824
- _id: z.string().default("tool_01M5Y34ENKH3K2D2AXWKVPWA36"),
824
+ _id: z.string().default("tool_01M613CWQQFVA0ZPCTJGA6RD5H"),
825
825
  path: z.string(),
826
826
  key: z.string(),
827
827
  display_name: z.string().optional(),
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
914
914
  z.ZodTypeDef,
915
915
  unknown
916
916
  > = z.object({
917
- _id: z.string().default("tool_01M5Y34ENKSG6X7FTC53F72NB8"),
917
+ _id: z.string().default("tool_01M613CWQPHE82HW35Q1F52FVN"),
918
918
  path: z.string(),
919
919
  key: z.string(),
920
920
  display_name: z.string().optional(),
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1012
1012
  z.ZodTypeDef,
1013
1013
  unknown
1014
1014
  > = z.object({
1015
- _id: z.string().default("tool_01M5Y34ENKFSDJMYBJYRT158FN"),
1015
+ _id: z.string().default("tool_01M613CWQPNY4EKEAYD57ZF4CA"),
1016
1016
  path: z.string(),
1017
1017
  key: z.string(),
1018
1018
  display_name: z.string().optional(),
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-10-27T07:10:24.115Z",
143
+ "2026-10-28T11:12:42.542Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-10-27T07:10:24.115Z",
188
+ "2026-10-28T11:12:42.542Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-10-27T07:10:24.115Z",
144
+ "2026-10-28T11:12:42.542Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-10-27T07:10:24.115Z",
189
+ "2026-10-28T11:12:42.542Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -82,7 +82,6 @@ export * from "./deleteprompt.js";
82
82
  export * from "./deletesession.js";
83
83
  export * from "./deletetool.js";
84
84
  export * from "./deletev2humanevalsetsid.js";
85
- export * from "./deletewiki.js";
86
85
  export * from "./deploymentgetconfig.js";
87
86
  export * from "./deploymentinvoke.js";
88
87
  export * from "./deployments.js";
@@ -125,9 +124,6 @@ export * from "./getv2humanevalsets.js";
125
124
  export * from "./getv2humanevalsetsid.js";
126
125
  export * from "./getv2toolstoolidversions.js";
127
126
  export * from "./getv2toolstoolidversionsversionid.js";
128
- export * from "./getwiki.js";
129
- export * from "./getwikipage.js";
130
- export * from "./getwikitree.js";
131
127
  export * from "./guardrailruledelete.js";
132
128
  export * from "./guardrailruleget.js";
133
129
  export * from "./guardrailrulelist.js";
@@ -156,8 +152,6 @@ export * from "./listlogfacetvalues.js";
156
152
  export * from "./listmodels.js";
157
153
  export * from "./listpromptversions.js";
158
154
  export * from "./listtracelogs.js";
159
- export * from "./listwikiruns.js";
160
- export * from "./listwikis.js";
161
155
  export * from "./managementkeydelete.js";
162
156
  export * from "./managementkeyget.js";
163
157
  export * from "./managementkeylist.js";
@@ -219,7 +213,6 @@ export * from "./projectdelete.js";
219
213
  export * from "./projectget.js";
220
214
  export * from "./projectlist.js";
221
215
  export * from "./projectupdate.js";
222
- export * from "./refreshwiki.js";
223
216
  export * from "./removeannotationqueueitems.js";
224
217
  export * from "./retrieveagentrequest.js";
225
218
  export * from "./retrieveagentschedule.js";
@@ -243,7 +236,6 @@ export * from "./routingruleupdate.js";
243
236
  export * from "./runagent.js";
244
237
  export * from "./searchknowledge.js";
245
238
  export * from "./searchweb.js";
246
- export * from "./searchwiki.js";
247
239
  export * from "./skilldelete.js";
248
240
  export * from "./skillget.js";
249
241
  export * from "./skilllist.js";
@@ -281,8 +273,6 @@ export * from "./updatememorystore.js";
281
273
  export * from "./updateprompt.js";
282
274
  export * from "./updatesession.js";
283
275
  export * from "./updatetool.js";
284
- export * from "./updatewiki.js";
285
- export * from "./updatewikipage.js";
286
276
  export * from "./usercreate.js";
287
277
  export * from "./userdelete.js";
288
278
  export * from "./userget.js";
@@ -2529,7 +2529,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
2529
2529
  z.ZodTypeDef,
2530
2530
  unknown
2531
2531
  > = z.object({
2532
- id: z.string().default("01M5Y34EK9KQ02RN3N4F39EJDB"),
2532
+ id: z.string().default("01M613CWMMCD47WY7ZVAP14021"),
2533
2533
  knowledge_id: z.string(),
2534
2534
  configuration: z.union([
2535
2535
  z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-10-27T07:10:24.115Z",
321
+ "2026-10-28T11:12:42.542Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-10-27T07:10:24.115Z",
367
+ "2026-10-28T11:12:42.542Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -257,7 +257,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
257
257
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
258
258
  .optional(),
259
259
  updated: z.string().datetime({ offset: true }).default(
260
- "2026-10-27T07:10:24.115Z",
260
+ "2026-10-28T11:12:42.542Z",
261
261
  ).transform(v => new Date(v)),
262
262
  filter_type: z.literal("name"),
263
263
  filter_value: z.string(),
@@ -302,7 +302,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2026-10-27T07:10:24.115Z",
305
+ "2026-10-28T11:12:42.542Z",
306
306
  ).transform(v => new Date(v)),
307
307
  filter_type: z.literal("span_type"),
308
308
  filter_values: z.array(z.string()),
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
624
624
  z.ZodTypeDef,
625
625
  unknown
626
626
  > = z.object({
627
- _id: z.string().default("tool_01M5Y34ENWFWMXBQQQEEMXQMDR"),
627
+ _id: z.string().default("tool_01M613CWR3ZREJXKS80680ZXPX"),
628
628
  path: z.string(),
629
629
  key: z.string(),
630
630
  display_name: z.string().optional(),
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
820
820
  z.ZodTypeDef,
821
821
  unknown
822
822
  > = z.object({
823
- _id: z.string().default("tool_01M5Y34ENWTZPZPMZF5NPCPDYH"),
823
+ _id: z.string().default("tool_01M613CWR3Q3A8FNRFTZYX85V6"),
824
824
  path: z.string(),
825
825
  key: z.string(),
826
826
  display_name: z.string().optional(),
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
916
916
  z.ZodTypeDef,
917
917
  unknown
918
918
  > = z.object({
919
- _id: z.string().default("tool_01M5Y34ENWJ2QNRSPF4276VHZK"),
919
+ _id: z.string().default("tool_01M613CWR32W4A24GBZ48KQVDN"),
920
920
  path: z.string(),
921
921
  key: z.string(),
922
922
  display_name: z.string().optional(),
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1022
1022
  z.ZodTypeDef,
1023
1023
  unknown
1024
1024
  > = z.object({
1025
- _id: z.string().default("tool_01M5Y34ENVDVRMTANAG4DVTWBQ"),
1025
+ _id: z.string().default("tool_01M613CWR1MKZVEA72B81JV90R"),
1026
1026
  path: z.string(),
1027
1027
  key: z.string(),
1028
1028
  display_name: z.string().optional(),
@@ -3918,7 +3918,7 @@ export const Tools$outboundSchema: z.ZodType<
3918
3918
  z.ZodTypeDef,
3919
3919
  Tools
3920
3920
  > = z.object({
3921
- id: z.string().default("01M5Y34EMPSP3SQSXN7XHSH8YB"),
3921
+ id: z.string().default("01M613CWPDTWJ2BK4D2Y1G3CCK"),
3922
3922
  name: z.string(),
3923
3923
  description: z.string().optional(),
3924
3924
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -3977,7 +3977,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3977
3977
  z.ZodTypeDef,
3978
3978
  AgentToolInputRunTools
3979
3979
  > = z.object({
3980
- id: z.string().default("01M5Y34EMYB5RJ7TT03ZEQDF2V"),
3980
+ id: z.string().default("01M613CWPSMDNFGD141YK5888W"),
3981
3981
  name: z.string(),
3982
3982
  description: z.string().optional(),
3983
3983
  schema: z.lazy(() =>