@orq-ai/node 4.16.6 → 4.16.7

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 (127) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createtool.js +4 -4
  6. package/models/operations/getalltools.js +4 -4
  7. package/models/operations/getv2humanevalsets.js +2 -2
  8. package/models/operations/getv2humanevalsetsid.js +2 -2
  9. package/models/operations/patchv2humanevalsetsid.js +2 -2
  10. package/models/operations/postv2feedbackevaluation.js +4 -4
  11. package/models/operations/postv2humanevalsets.js +2 -2
  12. package/models/operations/retrievetool.js +4 -4
  13. package/models/operations/runagent.js +1 -1
  14. package/models/operations/streamrunagent.js +1 -1
  15. package/models/operations/updatetool.js +4 -4
  16. package/package.json +6 -6
  17. package/packages/orq-rc/src/funcs/agentsExternalCreate.ts +163 -0
  18. package/packages/orq-rc/src/funcs/agentsExternalDelete.ts +169 -0
  19. package/packages/orq-rc/src/funcs/agentsExternalList.ts +172 -0
  20. package/packages/orq-rc/src/funcs/agentsExternalRefreshCard.ts +174 -0
  21. package/packages/orq-rc/src/funcs/agentsExternalRetrieve.ts +168 -0
  22. package/packages/orq-rc/src/funcs/agentsExternalTestConnection.ts +174 -0
  23. package/packages/orq-rc/src/funcs/agentsExternalUpdate.ts +172 -0
  24. package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
  25. package/packages/orq-rc/src/funcs/monitorsCreate.ts +162 -0
  26. package/packages/orq-rc/src/funcs/monitorsDelete.ts +168 -0
  27. package/packages/orq-rc/src/funcs/monitorsGet.ts +168 -0
  28. package/packages/orq-rc/src/funcs/monitorsList.ts +173 -0
  29. package/packages/orq-rc/src/funcs/monitorsListPresets.ts +144 -0
  30. package/packages/orq-rc/src/funcs/monitorsUpdate.ts +171 -0
  31. package/packages/orq-rc/src/funcs/usersCreate.ts +171 -0
  32. package/packages/orq-rc/src/funcs/usersDelete.ts +168 -0
  33. package/packages/orq-rc/src/funcs/usersGet.ts +168 -0
  34. package/packages/orq-rc/src/funcs/usersList.ts +144 -0
  35. package/packages/orq-rc/src/funcs/usersUpdate.ts +169 -0
  36. package/packages/orq-rc/src/lib/config.ts +2 -2
  37. package/packages/orq-rc/src/models/components/autorouterv2config.ts +30 -0
  38. package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +4 -4
  39. package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +24 -0
  40. package/packages/orq-rc/src/models/components/createexternalagentrequest.ts +73 -0
  41. package/packages/orq-rc/src/models/components/createexternalagentresponse.ts +32 -0
  42. package/packages/orq-rc/src/models/components/createmonitorrequest.ts +108 -0
  43. package/packages/orq-rc/src/models/components/createmonitorresponse.ts +35 -0
  44. package/packages/orq-rc/src/models/components/createusersrequest.ts +40 -0
  45. package/packages/orq-rc/src/models/components/createusersresponse.ts +32 -0
  46. package/packages/orq-rc/src/models/components/deleteexternalagentresponse.ts +27 -0
  47. package/packages/orq-rc/src/models/components/deletemonitorresponse.ts +27 -0
  48. package/packages/orq-rc/src/models/components/deleteuserresponse.ts +27 -0
  49. package/packages/orq-rc/src/models/components/externalagent.ts +107 -0
  50. package/packages/orq-rc/src/models/components/externalagentheader.ts +55 -0
  51. package/packages/orq-rc/src/models/components/getexternalagentresponse.ts +32 -0
  52. package/packages/orq-rc/src/models/components/getmonitorresponse.ts +35 -0
  53. package/packages/orq-rc/src/models/components/getuserresponse.ts +35 -0
  54. package/packages/orq-rc/src/models/components/index.ts +40 -0
  55. package/packages/orq-rc/src/models/components/listexternalagentsresponse.ts +41 -0
  56. package/packages/orq-rc/src/models/components/listmonitorpresetsresponse.ts +40 -0
  57. package/packages/orq-rc/src/models/components/listmonitorsresponse.ts +53 -0
  58. package/packages/orq-rc/src/models/components/listusersresponse.ts +32 -0
  59. package/packages/orq-rc/src/models/components/monitor.ts +133 -0
  60. package/packages/orq-rc/src/models/components/monitorpreset.ts +120 -0
  61. package/packages/orq-rc/src/models/components/monitortelemetrysource.ts +23 -0
  62. package/packages/orq-rc/src/models/components/monitorwidget.ts +145 -0
  63. package/packages/orq-rc/src/models/components/monitorwidgetcompute.ts +61 -0
  64. package/packages/orq-rc/src/models/components/monitorwidgetdisplay.ts +196 -0
  65. package/packages/orq-rc/src/models/components/monitorwidgetlayout.ts +75 -0
  66. package/packages/orq-rc/src/models/components/monitorwidgetquery.ts +165 -0
  67. package/packages/orq-rc/src/models/components/openaicontextmanagement.ts +43 -0
  68. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  69. package/packages/orq-rc/src/models/components/refreshexternalagentcardrequest.ts +27 -0
  70. package/packages/orq-rc/src/models/components/refreshexternalagentcardresponse.ts +32 -0
  71. package/packages/orq-rc/src/models/components/testexternalagentconnectionrequest.ts +27 -0
  72. package/packages/orq-rc/src/models/components/testexternalagentconnectionresponse.ts +50 -0
  73. package/packages/orq-rc/src/models/components/thinkingparam.ts +112 -0
  74. package/packages/orq-rc/src/models/components/updateexternalagentrequest.ts +74 -0
  75. package/packages/orq-rc/src/models/components/updateexternalagentresponse.ts +32 -0
  76. package/packages/orq-rc/src/models/components/updatemonitorrequest.ts +80 -0
  77. package/packages/orq-rc/src/models/components/updatemonitorresponse.ts +35 -0
  78. package/packages/orq-rc/src/models/components/updateuserrequest.ts +42 -0
  79. package/packages/orq-rc/src/models/components/updateuserresponse.ts +35 -0
  80. package/packages/orq-rc/src/models/components/user.ts +90 -0
  81. package/packages/orq-rc/src/models/components/userinvitationdata.ts +38 -0
  82. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +24 -0
  83. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  84. package/packages/orq-rc/src/models/operations/externalagentdelete.ts +36 -0
  85. package/packages/orq-rc/src/models/operations/externalagentget.ts +36 -0
  86. package/packages/orq-rc/src/models/operations/externalagentlist.ts +43 -0
  87. package/packages/orq-rc/src/models/operations/externalagentrefreshcard.ts +45 -0
  88. package/packages/orq-rc/src/models/operations/externalagenttestconnection.ts +46 -0
  89. package/packages/orq-rc/src/models/operations/externalagentupdate.ts +42 -0
  90. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  91. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/index.ts +14 -0
  94. package/packages/orq-rc/src/models/operations/monitordelete.ts +39 -0
  95. package/packages/orq-rc/src/models/operations/monitorget.ts +39 -0
  96. package/packages/orq-rc/src/models/operations/monitorlist.ts +84 -0
  97. package/packages/orq-rc/src/models/operations/monitorupdate.ts +44 -0
  98. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  100. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  102. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  103. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  104. package/packages/orq-rc/src/models/operations/updateagent.ts +16 -11
  105. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  106. package/packages/orq-rc/src/models/operations/usercreate.ts +44 -0
  107. package/packages/orq-rc/src/models/operations/userdelete.ts +39 -0
  108. package/packages/orq-rc/src/models/operations/userget.ts +35 -0
  109. package/packages/orq-rc/src/models/operations/userupdate.ts +44 -0
  110. package/packages/orq-rc/src/sdk/agents.ts +7 -1
  111. package/packages/orq-rc/src/sdk/external.ts +136 -0
  112. package/packages/orq-rc/src/sdk/monitors.ts +116 -0
  113. package/packages/orq-rc/src/sdk/sdk.ts +12 -0
  114. package/packages/orq-rc/src/sdk/users.ts +98 -0
  115. package/src/lib/config.ts +2 -2
  116. package/src/models/components/reasoningpart.ts +1 -1
  117. package/src/models/operations/createtool.ts +4 -4
  118. package/src/models/operations/getalltools.ts +4 -4
  119. package/src/models/operations/getv2humanevalsets.ts +2 -2
  120. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  121. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  122. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  123. package/src/models/operations/postv2humanevalsets.ts +2 -2
  124. package/src/models/operations/retrievetool.ts +4 -4
  125. package/src/models/operations/runagent.ts +1 -1
  126. package/src/models/operations/streamrunagent.ts +1 -1
  127. package/src/models/operations/updatetool.ts +4 -4
@@ -0,0 +1,112 @@
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
+
9
+ /**
10
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
11
+ */
12
+ export const Display = {
13
+ Summarized: "summarized",
14
+ Omitted: "omitted",
15
+ Updates: "updates",
16
+ } as const;
17
+ /**
18
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
19
+ */
20
+ export type Display = ClosedEnum<typeof Display>;
21
+
22
+ /**
23
+ * The level of thinking to use for the model. Only supported by Google AI.
24
+ */
25
+ export const ThinkingParamThinkingLevel = {
26
+ Minimal: "minimal",
27
+ Low: "low",
28
+ Medium: "medium",
29
+ High: "high",
30
+ } as const;
31
+ /**
32
+ * The level of thinking to use for the model. Only supported by Google AI.
33
+ */
34
+ export type ThinkingParamThinkingLevel = ClosedEnum<
35
+ typeof ThinkingParamThinkingLevel
36
+ >;
37
+
38
+ /**
39
+ * The thinking mode to use for the model. Sonnet 5.5 supports between_tools for progress updates without extended thinking.
40
+ */
41
+ export const ThinkingParamType = {
42
+ Enabled: "enabled",
43
+ Disabled: "disabled",
44
+ Adaptive: "adaptive",
45
+ BetweenTools: "between_tools",
46
+ } as const;
47
+ /**
48
+ * The thinking mode to use for the model. Sonnet 5.5 supports between_tools for progress updates without extended thinking.
49
+ */
50
+ export type ThinkingParamType = ClosedEnum<typeof ThinkingParamType>;
51
+
52
+ export type ThinkingParam = {
53
+ /**
54
+ * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking where supported. Budget tokens should never exceed the max output tokens parameter. Supported by budget-based models such as Anthropic and Gemini 2.5.
55
+ */
56
+ budgetTokens: number | null;
57
+ /**
58
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
59
+ */
60
+ display?: Display | undefined;
61
+ /**
62
+ * The level of thinking to use for the model. Only supported by Google AI.
63
+ */
64
+ thinkingLevel?: ThinkingParamThinkingLevel | undefined;
65
+ /**
66
+ * The thinking mode to use for the model. Sonnet 5.5 supports between_tools for progress updates without extended thinking.
67
+ */
68
+ type: ThinkingParamType | null;
69
+ };
70
+
71
+ /** @internal */
72
+ export const Display$outboundSchema: z.ZodNativeEnum<typeof Display> = z
73
+ .nativeEnum(Display);
74
+
75
+ /** @internal */
76
+ export const ThinkingParamThinkingLevel$outboundSchema: z.ZodNativeEnum<
77
+ typeof ThinkingParamThinkingLevel
78
+ > = z.nativeEnum(ThinkingParamThinkingLevel);
79
+
80
+ /** @internal */
81
+ export const ThinkingParamType$outboundSchema: z.ZodNativeEnum<
82
+ typeof ThinkingParamType
83
+ > = z.nativeEnum(ThinkingParamType);
84
+
85
+ /** @internal */
86
+ export type ThinkingParam$Outbound = {
87
+ budget_tokens: number | null;
88
+ display?: string | undefined;
89
+ thinking_level?: string | undefined;
90
+ type: string | null;
91
+ };
92
+
93
+ /** @internal */
94
+ export const ThinkingParam$outboundSchema: z.ZodType<
95
+ ThinkingParam$Outbound,
96
+ z.ZodTypeDef,
97
+ ThinkingParam
98
+ > = z.object({
99
+ budgetTokens: z.nullable(z.number().int()),
100
+ display: Display$outboundSchema.optional(),
101
+ thinkingLevel: ThinkingParamThinkingLevel$outboundSchema.optional(),
102
+ type: z.nullable(ThinkingParamType$outboundSchema),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ budgetTokens: "budget_tokens",
106
+ thinkingLevel: "thinking_level",
107
+ });
108
+ });
109
+
110
+ export function thinkingParamToJSON(thinkingParam: ThinkingParam): string {
111
+ return JSON.stringify(ThinkingParam$outboundSchema.parse(thinkingParam));
112
+ }
@@ -0,0 +1,74 @@
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 {
8
+ ExternalAgentHeader,
9
+ ExternalAgentHeader$Outbound,
10
+ ExternalAgentHeader$outboundSchema,
11
+ } from "./externalagentheader.js";
12
+
13
+ export type UpdateExternalAgentRequest = {
14
+ displayName?: string | undefined;
15
+ description?: string | undefined;
16
+ path?: string | undefined;
17
+ projectId?: string | undefined;
18
+ agentUrl?: string | undefined;
19
+ cardUrl?: string | undefined;
20
+ headers?: { [k: string]: ExternalAgentHeader } | undefined;
21
+ protocolVersion?: string | undefined;
22
+ preferredTransport?: string | undefined;
23
+ clearHeaders?: boolean | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export type UpdateExternalAgentRequest$Outbound = {
28
+ display_name?: string | undefined;
29
+ description?: string | undefined;
30
+ path?: string | undefined;
31
+ project_id?: string | undefined;
32
+ agent_url?: string | undefined;
33
+ card_url?: string | undefined;
34
+ headers?: { [k: string]: ExternalAgentHeader$Outbound } | undefined;
35
+ protocol_version?: string | undefined;
36
+ preferred_transport?: string | undefined;
37
+ clear_headers?: boolean | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const UpdateExternalAgentRequest$outboundSchema: z.ZodType<
42
+ UpdateExternalAgentRequest$Outbound,
43
+ z.ZodTypeDef,
44
+ UpdateExternalAgentRequest
45
+ > = z.object({
46
+ displayName: z.string().optional(),
47
+ description: z.string().optional(),
48
+ path: z.string().optional(),
49
+ projectId: z.string().optional(),
50
+ agentUrl: z.string().optional(),
51
+ cardUrl: z.string().optional(),
52
+ headers: z.record(ExternalAgentHeader$outboundSchema).optional(),
53
+ protocolVersion: z.string().optional(),
54
+ preferredTransport: z.string().optional(),
55
+ clearHeaders: z.boolean().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ displayName: "display_name",
59
+ projectId: "project_id",
60
+ agentUrl: "agent_url",
61
+ cardUrl: "card_url",
62
+ protocolVersion: "protocol_version",
63
+ preferredTransport: "preferred_transport",
64
+ clearHeaders: "clear_headers",
65
+ });
66
+ });
67
+
68
+ export function updateExternalAgentRequestToJSON(
69
+ updateExternalAgentRequest: UpdateExternalAgentRequest,
70
+ ): string {
71
+ return JSON.stringify(
72
+ UpdateExternalAgentRequest$outboundSchema.parse(updateExternalAgentRequest),
73
+ );
74
+ }
@@ -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 { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { ExternalAgent, ExternalAgent$inboundSchema } from "./externalagent.js";
10
+
11
+ export type UpdateExternalAgentResponse = {
12
+ agent?: ExternalAgent | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const UpdateExternalAgentResponse$inboundSchema: z.ZodType<
17
+ UpdateExternalAgentResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ agent: ExternalAgent$inboundSchema.optional(),
22
+ });
23
+
24
+ export function updateExternalAgentResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<UpdateExternalAgentResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => UpdateExternalAgentResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'UpdateExternalAgentResponse' from JSON`,
31
+ );
32
+ }
@@ -0,0 +1,80 @@
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 {
8
+ MonitorWidget,
9
+ MonitorWidget$Outbound,
10
+ MonitorWidget$outboundSchema,
11
+ } from "./monitorwidget.js";
12
+
13
+ export type UpdateMonitorRequest = {
14
+ /**
15
+ * New workspace-unique display name. Omit to keep the current name.
16
+ */
17
+ displayName?: string | undefined;
18
+ /**
19
+ * New description. Omit to keep the current description.
20
+ */
21
+ description?: string | undefined;
22
+ /**
23
+ * Replacement widget set. When update_mask contains `widgets`, this value
24
+ *
25
+ * @remarks
26
+ * replaces the full set and may be empty. Without update_mask, a non-empty
27
+ * array replaces all widgets while an empty or omitted array keeps them.
28
+ */
29
+ widgets?: Array<MonitorWidget> | undefined;
30
+ /**
31
+ * New default relative time range. Omit to keep the current value unless
32
+ *
33
+ * @remarks
34
+ * update_mask contains `default_range`, which clears it.
35
+ */
36
+ defaultRange?: string | undefined;
37
+ /**
38
+ * Optional explicit update presence. Listed paths are replaced; omitting
39
+ *
40
+ * @remarks
41
+ * the mask preserves the legacy partial-update behavior.
42
+ */
43
+ updateMask?: string | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export type UpdateMonitorRequest$Outbound = {
48
+ display_name?: string | undefined;
49
+ description?: string | undefined;
50
+ widgets?: Array<MonitorWidget$Outbound> | undefined;
51
+ default_range?: string | undefined;
52
+ update_mask?: string | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const UpdateMonitorRequest$outboundSchema: z.ZodType<
57
+ UpdateMonitorRequest$Outbound,
58
+ z.ZodTypeDef,
59
+ UpdateMonitorRequest
60
+ > = z.object({
61
+ displayName: z.string().optional(),
62
+ description: z.string().optional(),
63
+ widgets: z.array(MonitorWidget$outboundSchema).optional(),
64
+ defaultRange: z.string().optional(),
65
+ updateMask: z.string().optional(),
66
+ }).transform((v) => {
67
+ return remap$(v, {
68
+ displayName: "display_name",
69
+ defaultRange: "default_range",
70
+ updateMask: "update_mask",
71
+ });
72
+ });
73
+
74
+ export function updateMonitorRequestToJSON(
75
+ updateMonitorRequest: UpdateMonitorRequest,
76
+ ): string {
77
+ return JSON.stringify(
78
+ UpdateMonitorRequest$outboundSchema.parse(updateMonitorRequest),
79
+ );
80
+ }
@@ -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 { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { Monitor, Monitor$inboundSchema } from "./monitor.js";
10
+
11
+ export type UpdateMonitorResponse = {
12
+ /**
13
+ * Updated monitor.
14
+ */
15
+ monitor: Monitor;
16
+ };
17
+
18
+ /** @internal */
19
+ export const UpdateMonitorResponse$inboundSchema: z.ZodType<
20
+ UpdateMonitorResponse,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ monitor: Monitor$inboundSchema,
25
+ });
26
+
27
+ export function updateMonitorResponseFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<UpdateMonitorResponse, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => UpdateMonitorResponse$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'UpdateMonitorResponse' from JSON`,
34
+ );
35
+ }
@@ -0,0 +1,42 @@
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 UpdateUserRequest = {
9
+ lastActivity?: Date | undefined;
10
+ /**
11
+ * One effective workspace role. Omit to preserve the existing role.
12
+ */
13
+ role?: string | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export type UpdateUserRequest$Outbound = {
18
+ last_activity?: string | undefined;
19
+ role?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const UpdateUserRequest$outboundSchema: z.ZodType<
24
+ UpdateUserRequest$Outbound,
25
+ z.ZodTypeDef,
26
+ UpdateUserRequest
27
+ > = z.object({
28
+ lastActivity: z.date().transform(v => v.toISOString()).optional(),
29
+ role: z.string().optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ lastActivity: "last_activity",
33
+ });
34
+ });
35
+
36
+ export function updateUserRequestToJSON(
37
+ updateUserRequest: UpdateUserRequest,
38
+ ): string {
39
+ return JSON.stringify(
40
+ UpdateUserRequest$outboundSchema.parse(updateUserRequest),
41
+ );
42
+ }
@@ -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 { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { User, User$inboundSchema } from "./user.js";
10
+
11
+ export type UpdateUserResponse = {
12
+ /**
13
+ * User is the canonical workspace-user record.
14
+ */
15
+ user?: User | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const UpdateUserResponse$inboundSchema: z.ZodType<
20
+ UpdateUserResponse,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ user: User$inboundSchema.optional(),
25
+ });
26
+
27
+ export function updateUserResponseFromJSON(
28
+ jsonString: string,
29
+ ): SafeParseResult<UpdateUserResponse, SDKValidationError> {
30
+ return safeParse(
31
+ jsonString,
32
+ (x) => UpdateUserResponse$inboundSchema.parse(JSON.parse(x)),
33
+ `Failed to parse 'UpdateUserResponse' from JSON`,
34
+ );
35
+ }
@@ -0,0 +1,90 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ UserInvitationData,
12
+ UserInvitationData$inboundSchema,
13
+ } from "./userinvitationdata.js";
14
+
15
+ /**
16
+ * User is the canonical workspace-user record.
17
+ */
18
+ export type User = {
19
+ /**
20
+ * Workspace-user identifier.
21
+ */
22
+ id?: string | undefined;
23
+ /**
24
+ * Account identifier.
25
+ */
26
+ accountId?: string | undefined;
27
+ /**
28
+ * Account email.
29
+ */
30
+ email?: string | undefined;
31
+ /**
32
+ * Account display name.
33
+ */
34
+ displayName?: string | undefined;
35
+ /**
36
+ * Avatar URL.
37
+ */
38
+ logoUrl?: string | undefined;
39
+ /**
40
+ * Team identifiers. The support-only team is excluded.
41
+ */
42
+ teamIds?: Array<string> | undefined;
43
+ /**
44
+ * Effective workspace roles.
45
+ */
46
+ roles?: Array<string> | undefined;
47
+ /**
48
+ * Last activity timestamp. Absent when never active.
49
+ */
50
+ lastActivity?: Date | undefined;
51
+ /**
52
+ * Outstanding invitation metadata. Absent for active accounts.
53
+ */
54
+ invitationData?: UserInvitationData | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
59
+ .object({
60
+ id: z.string().optional(),
61
+ account_id: z.string().optional(),
62
+ email: z.string().optional(),
63
+ display_name: z.string().optional(),
64
+ logo_url: z.string().optional(),
65
+ team_ids: z.array(z.string()).optional(),
66
+ roles: z.array(z.string()).optional(),
67
+ last_activity: z.string().datetime({ offset: true }).transform(v =>
68
+ new Date(v)
69
+ ).optional(),
70
+ invitation_data: UserInvitationData$inboundSchema.optional(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ "account_id": "accountId",
74
+ "display_name": "displayName",
75
+ "logo_url": "logoUrl",
76
+ "team_ids": "teamIds",
77
+ "last_activity": "lastActivity",
78
+ "invitation_data": "invitationData",
79
+ });
80
+ });
81
+
82
+ export function userFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<User, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => User$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'User' from JSON`,
89
+ );
90
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type UserInvitationData = {
12
+ email?: string | undefined;
13
+ displayName?: string | undefined;
14
+ };
15
+
16
+ /** @internal */
17
+ export const UserInvitationData$inboundSchema: z.ZodType<
18
+ UserInvitationData,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ email: z.string().optional(),
23
+ display_name: z.string().optional(),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ "display_name": "displayName",
27
+ });
28
+ });
29
+
30
+ export function userInvitationDataFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<UserInvitationData, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) => UserInvitationData$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'UserInvitationData' from JSON`,
37
+ );
38
+ }
@@ -882,6 +882,13 @@ export type CreateRouterResponseRequestBody = {
882
882
  * Top-level cache control automatically applies a cache_control marker to the last cacheable block in the request.
883
883
  */
884
884
  cacheControl?: CreateRouterResponseCacheControl | undefined;
885
+ /**
886
+ * Context management entries. One compaction entry summarizes history older than compact_threshold into a single item. See the [Context Compaction](https://docs.orq.ai/ai-gateway/features/context-compaction) guide.
887
+ */
888
+ contextManagement?:
889
+ | Array<components.OpenAIContextManagement>
890
+ | null
891
+ | undefined;
885
892
  conversation?: components.ConversationParam | undefined;
886
893
  /**
887
894
  * HTTP status codes that trigger fallback. Defaults to [408,429,500,502,503,504,529]. Each code must be unique and between 400 and 599.
@@ -900,6 +907,10 @@ export type CreateRouterResponseRequestBody = {
900
907
  */
901
908
  guardrails?: Array<components.EvaluatorRef> | undefined;
902
909
  identity?: components.ResponseIdentity | undefined;
910
+ /**
911
+ * Additional fields to include in the response. Use web_search_call.action.sources to add source URLs and titles to a web search action, or web_search_call.results for detailed results. See the [Web search](https://docs.orq.ai/ai-gateway/features/web-search) guide for the supported values.
912
+ */
913
+ include?: Array<string> | undefined;
903
914
  /**
904
915
  * Input to the model: a string or an array of input items (messages, files, etc.).
905
916
  */
@@ -988,6 +999,7 @@ export type CreateRouterResponseRequestBody = {
988
999
  * Configuration for text output.
989
1000
  */
990
1001
  text?: CreateRouterResponseText | undefined;
1002
+ thinking?: components.ThinkingParam | undefined;
991
1003
  thread?: components.ResponseThread | undefined;
992
1004
  timeout?: components.TimeoutConfig | undefined;
993
1005
  /**
@@ -2100,12 +2112,17 @@ export type CreateRouterResponseRequestBody$Outbound = {
2100
2112
  background?: boolean | undefined;
2101
2113
  cache?: components.CacheConfig$Outbound | undefined;
2102
2114
  cache_control?: CreateRouterResponseCacheControl$Outbound | undefined;
2115
+ context_management?:
2116
+ | Array<components.OpenAIContextManagement$Outbound>
2117
+ | null
2118
+ | undefined;
2103
2119
  conversation?: components.ConversationParam$Outbound | undefined;
2104
2120
  fallback_on_codes?: Array<number> | null | undefined;
2105
2121
  fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
2106
2122
  frequency_penalty?: number | undefined;
2107
2123
  guardrails?: Array<components.EvaluatorRef$Outbound> | undefined;
2108
2124
  identity?: components.ResponseIdentity$Outbound | undefined;
2125
+ include?: Array<string> | undefined;
2109
2126
  input?: string | Array<CreateRouterResponseInput2$Outbound> | undefined;
2110
2127
  instructions?: string | undefined;
2111
2128
  integration_id?: string | undefined;
@@ -2136,6 +2153,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
2136
2153
  temperature?: number | undefined;
2137
2154
  template_engine?: string | undefined;
2138
2155
  text?: CreateRouterResponseText$Outbound | undefined;
2156
+ thinking?: components.ThinkingParam$Outbound | undefined;
2139
2157
  thread?: components.ResponseThread$Outbound | undefined;
2140
2158
  timeout?: components.TimeoutConfig$Outbound | undefined;
2141
2159
  tool_choice?: SpecificFunction$Outbound | string | undefined;
@@ -2183,6 +2201,9 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2183
2201
  cache: components.CacheConfig$outboundSchema.optional(),
2184
2202
  cacheControl: z.lazy(() => CreateRouterResponseCacheControl$outboundSchema)
2185
2203
  .optional(),
2204
+ contextManagement: z.nullable(
2205
+ z.array(components.OpenAIContextManagement$outboundSchema),
2206
+ ).optional(),
2186
2207
  conversation: components.ConversationParam$outboundSchema.optional(),
2187
2208
  fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
2188
2209
  fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
@@ -2190,6 +2211,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2190
2211
  frequencyPenalty: z.number().optional(),
2191
2212
  guardrails: z.array(components.EvaluatorRef$outboundSchema).optional(),
2192
2213
  identity: components.ResponseIdentity$outboundSchema.optional(),
2214
+ include: z.array(z.string()).optional(),
2193
2215
  input: z.union([
2194
2216
  z.string(),
2195
2217
  z.array(z.lazy(() => CreateRouterResponseInput2$outboundSchema)),
@@ -2223,6 +2245,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2223
2245
  temperature: z.number().optional(),
2224
2246
  templateEngine: TemplateEngine$outboundSchema.optional(),
2225
2247
  text: z.lazy(() => CreateRouterResponseText$outboundSchema).optional(),
2248
+ thinking: components.ThinkingParam$outboundSchema.optional(),
2226
2249
  thread: components.ResponseThread$outboundSchema.optional(),
2227
2250
  timeout: components.TimeoutConfig$outboundSchema.optional(),
2228
2251
  toolChoice: z.union([
@@ -2304,6 +2327,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
2304
2327
  }).transform((v) => {
2305
2328
  return remap$(v, {
2306
2329
  cacheControl: "cache_control",
2330
+ contextManagement: "context_management",
2307
2331
  fallbackOnCodes: "fallback_on_codes",
2308
2332
  frequencyPenalty: "frequency_penalty",
2309
2333
  integrationId: "integration_id",
@@ -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_01M4TYMSA3WR4ZEGGZ685JE58K"),
1578
+ _id: z.string().default("tool_01M4WK5NCEGX3TQ29NR4ZS1APK"),
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_01M4TYMSA25Z7TTSXDH249A59W"),
1764
+ _id: z.string().default("tool_01M4WK5NCDH0P9Y7TQFRNYA2CN"),
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_01M4TYMSA1QDPAKBHFQ4353SG8"),
1857
+ _id: z.string().default("tool_01M4WK5NCDYK4GRMAGSQD3GAVT"),
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_01M4TYMSA0R0DV9CT61DZ2TQFG"),
1958
+ _id: z.string().default("tool_01M4WK5NCCQJBHN08EMX00RVAW"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  display_name: z.string().optional(),