@orq-ai/node 4.16.6 → 4.16.8

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 (130) 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 +1 -1
  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/piiredactionconfig.ts +3 -2
  69. package/packages/orq-rc/src/models/components/piiredactionplugin.ts +1 -1
  70. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  71. package/packages/orq-rc/src/models/components/refreshexternalagentcardrequest.ts +27 -0
  72. package/packages/orq-rc/src/models/components/refreshexternalagentcardresponse.ts +32 -0
  73. package/packages/orq-rc/src/models/components/testexternalagentconnectionrequest.ts +27 -0
  74. package/packages/orq-rc/src/models/components/testexternalagentconnectionresponse.ts +50 -0
  75. package/packages/orq-rc/src/models/components/thinkingparam.ts +112 -0
  76. package/packages/orq-rc/src/models/components/updateexternalagentrequest.ts +74 -0
  77. package/packages/orq-rc/src/models/components/updateexternalagentresponse.ts +32 -0
  78. package/packages/orq-rc/src/models/components/updatemonitorrequest.ts +80 -0
  79. package/packages/orq-rc/src/models/components/updatemonitorresponse.ts +35 -0
  80. package/packages/orq-rc/src/models/components/updateuserrequest.ts +42 -0
  81. package/packages/orq-rc/src/models/components/updateuserresponse.ts +35 -0
  82. package/packages/orq-rc/src/models/components/user.ts +90 -0
  83. package/packages/orq-rc/src/models/components/userinvitationdata.ts +38 -0
  84. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +24 -0
  85. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  86. package/packages/orq-rc/src/models/operations/externalagentdelete.ts +36 -0
  87. package/packages/orq-rc/src/models/operations/externalagentget.ts +36 -0
  88. package/packages/orq-rc/src/models/operations/externalagentlist.ts +43 -0
  89. package/packages/orq-rc/src/models/operations/externalagentrefreshcard.ts +45 -0
  90. package/packages/orq-rc/src/models/operations/externalagenttestconnection.ts +46 -0
  91. package/packages/orq-rc/src/models/operations/externalagentupdate.ts +42 -0
  92. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  93. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/index.ts +14 -0
  96. package/packages/orq-rc/src/models/operations/monitordelete.ts +39 -0
  97. package/packages/orq-rc/src/models/operations/monitorget.ts +39 -0
  98. package/packages/orq-rc/src/models/operations/monitorlist.ts +84 -0
  99. package/packages/orq-rc/src/models/operations/monitorupdate.ts +44 -0
  100. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  102. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  104. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  105. package/packages/orq-rc/src/models/operations/searchweb.ts +1 -1
  106. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  107. package/packages/orq-rc/src/models/operations/updateagent.ts +16 -11
  108. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  109. package/packages/orq-rc/src/models/operations/usercreate.ts +44 -0
  110. package/packages/orq-rc/src/models/operations/userdelete.ts +39 -0
  111. package/packages/orq-rc/src/models/operations/userget.ts +35 -0
  112. package/packages/orq-rc/src/models/operations/userupdate.ts +44 -0
  113. package/packages/orq-rc/src/sdk/agents.ts +7 -1
  114. package/packages/orq-rc/src/sdk/external.ts +136 -0
  115. package/packages/orq-rc/src/sdk/monitors.ts +116 -0
  116. package/packages/orq-rc/src/sdk/sdk.ts +12 -0
  117. package/packages/orq-rc/src/sdk/users.ts +98 -0
  118. package/src/lib/config.ts +2 -2
  119. package/src/models/components/reasoningpart.ts +1 -1
  120. package/src/models/operations/createtool.ts +4 -4
  121. package/src/models/operations/getalltools.ts +4 -4
  122. package/src/models/operations/getv2humanevalsets.ts +2 -2
  123. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  124. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  125. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  126. package/src/models/operations/postv2humanevalsets.ts +2 -2
  127. package/src/models/operations/retrievetool.ts +4 -4
  128. package/src/models/operations/runagent.ts +1 -1
  129. package/src/models/operations/streamrunagent.ts +1 -1
  130. package/src/models/operations/updatetool.ts +4 -4
@@ -0,0 +1,39 @@
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 UserDeleteRequest = {
9
+ /**
10
+ * Workspace-user UUID returned by List workspace users. This is not the account ID.
11
+ */
12
+ userId: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export type UserDeleteRequest$Outbound = {
17
+ user_id: string;
18
+ };
19
+
20
+ /** @internal */
21
+ export const UserDeleteRequest$outboundSchema: z.ZodType<
22
+ UserDeleteRequest$Outbound,
23
+ z.ZodTypeDef,
24
+ UserDeleteRequest
25
+ > = z.object({
26
+ userId: z.string(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ userId: "user_id",
30
+ });
31
+ });
32
+
33
+ export function userDeleteRequestToJSON(
34
+ userDeleteRequest: UserDeleteRequest,
35
+ ): string {
36
+ return JSON.stringify(
37
+ UserDeleteRequest$outboundSchema.parse(userDeleteRequest),
38
+ );
39
+ }
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type UserGetRequest = {
9
+ /**
10
+ * Workspace-user UUID returned by List workspace users. This is not the account ID.
11
+ */
12
+ userId: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export type UserGetRequest$Outbound = {
17
+ user_id: string;
18
+ };
19
+
20
+ /** @internal */
21
+ export const UserGetRequest$outboundSchema: z.ZodType<
22
+ UserGetRequest$Outbound,
23
+ z.ZodTypeDef,
24
+ UserGetRequest
25
+ > = z.object({
26
+ userId: z.string(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ userId: "user_id",
30
+ });
31
+ });
32
+
33
+ export function userGetRequestToJSON(userGetRequest: UserGetRequest): string {
34
+ return JSON.stringify(UserGetRequest$outboundSchema.parse(userGetRequest));
35
+ }
@@ -0,0 +1,44 @@
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 * as components from "../components/index.js";
8
+
9
+ export type UserUpdateRequest = {
10
+ /**
11
+ * Workspace-user UUID returned by List workspace users. This is not the account ID.
12
+ */
13
+ userId: string;
14
+ updateUserRequest: components.UpdateUserRequest;
15
+ };
16
+
17
+ /** @internal */
18
+ export type UserUpdateRequest$Outbound = {
19
+ user_id: string;
20
+ UpdateUserRequest: components.UpdateUserRequest$Outbound;
21
+ };
22
+
23
+ /** @internal */
24
+ export const UserUpdateRequest$outboundSchema: z.ZodType<
25
+ UserUpdateRequest$Outbound,
26
+ z.ZodTypeDef,
27
+ UserUpdateRequest
28
+ > = z.object({
29
+ userId: z.string(),
30
+ updateUserRequest: components.UpdateUserRequest$outboundSchema,
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ userId: "user_id",
34
+ updateUserRequest: "UpdateUserRequest",
35
+ });
36
+ });
37
+
38
+ export function userUpdateRequestToJSON(
39
+ userUpdateRequest: UserUpdateRequest,
40
+ ): string {
41
+ return JSON.stringify(
42
+ UserUpdateRequest$outboundSchema.parse(userUpdateRequest),
43
+ );
44
+ }
@@ -15,6 +15,7 @@ import { EventStream } from "../lib/event-streams.js";
15
15
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
16
16
  import * as operations from "../models/operations/index.js";
17
17
  import { unwrapAsync } from "../types/fp.js";
18
+ import { External } from "./external.js";
18
19
  import { OrqResponses } from "./orqresponses.js";
19
20
 
20
21
  export class Agents extends ClientSDK {
@@ -23,6 +24,11 @@ export class Agents extends ClientSDK {
23
24
  return (this._responses ??= new OrqResponses(this._options));
24
25
  }
25
26
 
27
+ private _external?: External;
28
+ get external(): External {
29
+ return (this._external ??= new External(this._options));
30
+ }
31
+
26
32
  /**
27
33
  * Create agent
28
34
  *
@@ -104,7 +110,7 @@ export class Agents extends ClientSDK {
104
110
  * Partially update an existing agent configuration including models, instructions, tools, knowledge bases, and execution parameters.
105
111
  */
106
112
  async update(
107
- requestBody: operations.UpdateAgentRequestBody,
113
+ requestBody: operations.UpdateAgentUpdateAgentRequest,
108
114
  agentKey: string,
109
115
  options?: RequestOptions,
110
116
  ): Promise<operations.UpdateAgentResponseBody> {
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { agentsExternalCreate } from "../funcs/agentsExternalCreate.js";
6
+ import { agentsExternalDelete } from "../funcs/agentsExternalDelete.js";
7
+ import { agentsExternalList } from "../funcs/agentsExternalList.js";
8
+ import { agentsExternalRefreshCard } from "../funcs/agentsExternalRefreshCard.js";
9
+ import { agentsExternalRetrieve } from "../funcs/agentsExternalRetrieve.js";
10
+ import { agentsExternalTestConnection } from "../funcs/agentsExternalTestConnection.js";
11
+ import { agentsExternalUpdate } from "../funcs/agentsExternalUpdate.js";
12
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
13
+ import * as components from "../models/components/index.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { unwrapAsync } from "../types/fp.js";
16
+
17
+ export class External extends ClientSDK {
18
+ /**
19
+ * List external agents
20
+ *
21
+ * @remarks
22
+ * Returns the external A2A agents visible to the caller, ordered newest first.
23
+ */
24
+ async list(
25
+ request?: operations.ExternalAgentListRequest | undefined,
26
+ options?: RequestOptions,
27
+ ): Promise<components.ListExternalAgentsResponse> {
28
+ return unwrapAsync(agentsExternalList(
29
+ this,
30
+ request,
31
+ options,
32
+ ));
33
+ }
34
+
35
+ /**
36
+ * Create external agent
37
+ *
38
+ * @remarks
39
+ * Registers an external A2A agent after securely fetching and validating its agent card.
40
+ */
41
+ async create(
42
+ request: components.CreateExternalAgentRequest,
43
+ options?: RequestOptions,
44
+ ): Promise<components.CreateExternalAgentResponse> {
45
+ return unwrapAsync(agentsExternalCreate(
46
+ this,
47
+ request,
48
+ options,
49
+ ));
50
+ }
51
+
52
+ /**
53
+ * Retrieve external agent
54
+ *
55
+ * @remarks
56
+ * Retrieves a registered external A2A agent by key or ID. Encrypted header values are always masked.
57
+ */
58
+ async retrieve(
59
+ request: operations.ExternalAgentGetRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<components.GetExternalAgentResponse> {
62
+ return unwrapAsync(agentsExternalRetrieve(
63
+ this,
64
+ request,
65
+ options,
66
+ ));
67
+ }
68
+
69
+ /**
70
+ * Delete external agent
71
+ *
72
+ * @remarks
73
+ * Deletes a registered external A2A agent.
74
+ */
75
+ async delete(
76
+ request: operations.ExternalAgentDeleteRequest,
77
+ options?: RequestOptions,
78
+ ): Promise<components.DeleteExternalAgentResponse> {
79
+ return unwrapAsync(agentsExternalDelete(
80
+ this,
81
+ request,
82
+ options,
83
+ ));
84
+ }
85
+
86
+ /**
87
+ * Update external agent
88
+ *
89
+ * @remarks
90
+ * Updates mutable registry and A2A connection fields. An empty encrypted header value preserves the stored secret.
91
+ */
92
+ async update(
93
+ request: operations.ExternalAgentUpdateRequest,
94
+ options?: RequestOptions,
95
+ ): Promise<components.UpdateExternalAgentResponse> {
96
+ return unwrapAsync(agentsExternalUpdate(
97
+ this,
98
+ request,
99
+ options,
100
+ ));
101
+ }
102
+
103
+ /**
104
+ * Refresh external agent card
105
+ *
106
+ * @remarks
107
+ * Securely fetches the current agent card and replaces the cached card metadata.
108
+ */
109
+ async refreshCard(
110
+ request: operations.ExternalAgentRefreshCardRequest,
111
+ options?: RequestOptions,
112
+ ): Promise<components.RefreshExternalAgentCardResponse> {
113
+ return unwrapAsync(agentsExternalRefreshCard(
114
+ this,
115
+ request,
116
+ options,
117
+ ));
118
+ }
119
+
120
+ /**
121
+ * Test external agent connection
122
+ *
123
+ * @remarks
124
+ * Validates the stored connection configuration and securely fetches the external agent card without persisting changes.
125
+ */
126
+ async testConnection(
127
+ request: operations.ExternalAgentTestConnectionRequest,
128
+ options?: RequestOptions,
129
+ ): Promise<components.TestExternalAgentConnectionResponse> {
130
+ return unwrapAsync(agentsExternalTestConnection(
131
+ this,
132
+ request,
133
+ options,
134
+ ));
135
+ }
136
+ }
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { monitorsCreate } from "../funcs/monitorsCreate.js";
6
+ import { monitorsDelete } from "../funcs/monitorsDelete.js";
7
+ import { monitorsGet } from "../funcs/monitorsGet.js";
8
+ import { monitorsList } from "../funcs/monitorsList.js";
9
+ import { monitorsListPresets } from "../funcs/monitorsListPresets.js";
10
+ import { monitorsUpdate } from "../funcs/monitorsUpdate.js";
11
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
12
+ import * as components from "../models/components/index.js";
13
+ import * as operations from "../models/operations/index.js";
14
+ import { unwrapAsync } from "../types/fp.js";
15
+
16
+ export class Monitors extends ClientSDK {
17
+ /**
18
+ * List monitors
19
+ *
20
+ * @remarks
21
+ * Returns the monitors visible to the caller, newest first. A human filtering by project sees that project's monitors plus workspace-wide monitors. A project-scoped API key sees only monitors in its strict project scope. Use `starting_after` or `ending_before` to page.
22
+ */
23
+ async list(
24
+ request?: operations.MonitorListRequest | undefined,
25
+ options?: RequestOptions,
26
+ ): Promise<components.ListMonitorsResponse> {
27
+ return unwrapAsync(monitorsList(
28
+ this,
29
+ request,
30
+ options,
31
+ ));
32
+ }
33
+
34
+ /**
35
+ * Create a monitor
36
+ *
37
+ * @remarks
38
+ * Creates a monitor (custom observability dashboard) in the workspace. Set `project_id` to scope the monitor to a project; omit it to create a workspace-wide monitor, which requires admin access.
39
+ */
40
+ async create(
41
+ request: components.CreateMonitorRequest,
42
+ options?: RequestOptions,
43
+ ): Promise<components.CreateMonitorResponse> {
44
+ return unwrapAsync(monitorsCreate(
45
+ this,
46
+ request,
47
+ options,
48
+ ));
49
+ }
50
+
51
+ /**
52
+ * List monitor presets
53
+ *
54
+ * @remarks
55
+ * Returns the built-in monitor templates (preset dashboards and preset widgets). Presets are defined by the platform and versioned with it; create a monitor from a preset by copying its widgets into a create request and stamping `preset_key`.
56
+ */
57
+ async listPresets(
58
+ options?: RequestOptions,
59
+ ): Promise<components.ListMonitorPresetsResponse> {
60
+ return unwrapAsync(monitorsListPresets(
61
+ this,
62
+ options,
63
+ ));
64
+ }
65
+
66
+ /**
67
+ * Retrieve a monitor
68
+ *
69
+ * @remarks
70
+ * Retrieves a monitor by ID.
71
+ */
72
+ async get(
73
+ request: operations.MonitorGetRequest,
74
+ options?: RequestOptions,
75
+ ): Promise<components.GetMonitorResponse> {
76
+ return unwrapAsync(monitorsGet(
77
+ this,
78
+ request,
79
+ options,
80
+ ));
81
+ }
82
+
83
+ /**
84
+ * Delete a monitor
85
+ *
86
+ * @remarks
87
+ * Permanently deletes a monitor. Widgets are stored inline, so no other resources are affected.
88
+ */
89
+ async delete(
90
+ request: operations.MonitorDeleteRequest,
91
+ options?: RequestOptions,
92
+ ): Promise<components.DeleteMonitorResponse> {
93
+ return unwrapAsync(monitorsDelete(
94
+ this,
95
+ request,
96
+ options,
97
+ ));
98
+ }
99
+
100
+ /**
101
+ * Update a monitor
102
+ *
103
+ * @remarks
104
+ * Updates monitor metadata and widgets. With `update_mask`, listed paths are replaced and `widgets` may be explicitly cleared. Without `update_mask`, legacy behavior is preserved: a non-empty `widgets` array replaces the set and an empty or omitted array keeps it. `project_id` is immutable.
105
+ */
106
+ async update(
107
+ request: operations.MonitorUpdateRequest,
108
+ options?: RequestOptions,
109
+ ): Promise<components.UpdateMonitorResponse> {
110
+ return unwrapAsync(monitorsUpdate(
111
+ this,
112
+ request,
113
+ options,
114
+ ));
115
+ }
116
+ }
@@ -30,6 +30,7 @@ import { MemoryStores } from "./memorystores.js";
30
30
  import { ModelCatalog } from "./modelcatalog.js";
31
31
  import { ModelFusions } from "./modelfusions.js";
32
32
  import { Models } from "./models.js";
33
+ import { Monitors } from "./monitors.js";
33
34
  import { Notifiers } from "./notifiers.js";
34
35
  import { Pii } from "./pii.js";
35
36
  import { Policies } from "./policies.js";
@@ -46,6 +47,7 @@ import { SmartRouters } from "./smartrouters.js";
46
47
  import { Telemetry } from "./telemetry.js";
47
48
  import { Tools } from "./tools.js";
48
49
  import { Traces } from "./traces.js";
50
+ import { Users } from "./users.js";
49
51
  import { Views } from "./views.js";
50
52
  import { Webhooks } from "./webhooks.js";
51
53
  import { Websearch } from "./websearch.js";
@@ -235,6 +237,11 @@ export class Orq extends ClientSDK {
235
237
  return (this._modelFusions ??= new ModelFusions(this._options));
236
238
  }
237
239
 
240
+ private _monitors?: Monitors;
241
+ get monitors(): Monitors {
242
+ return (this._monitors ??= new Monitors(this._options));
243
+ }
244
+
238
245
  private _notifiers?: Notifiers;
239
246
  get notifiers(): Notifiers {
240
247
  return (this._notifiers ??= new Notifiers(this._options));
@@ -265,6 +272,11 @@ export class Orq extends ClientSDK {
265
272
  return (this._smartRouters ??= new SmartRouters(this._options));
266
273
  }
267
274
 
275
+ private _users?: Users;
276
+ get users(): Users {
277
+ return (this._users ??= new Users(this._options));
278
+ }
279
+
268
280
  private _webhooks?: Webhooks;
269
281
  get webhooks(): Webhooks {
270
282
  return (this._webhooks ??= new Webhooks(this._options));
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { usersCreate } from "../funcs/usersCreate.js";
6
+ import { usersDelete } from "../funcs/usersDelete.js";
7
+ import { usersGet } from "../funcs/usersGet.js";
8
+ import { usersList } from "../funcs/usersList.js";
9
+ import { usersUpdate } from "../funcs/usersUpdate.js";
10
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as components from "../models/components/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+
15
+ export class Users extends ClientSDK {
16
+ /**
17
+ * List workspace users
18
+ *
19
+ * @remarks
20
+ * Returns all users in the current workspace, including their team memberships and workspace roles. Requires a Management Key with user permissions or an authenticated workspace admin session. Standard API keys are not supported.
21
+ */
22
+ async list(
23
+ options?: RequestOptions,
24
+ ): Promise<components.ListUsersResponse> {
25
+ return unwrapAsync(usersList(
26
+ this,
27
+ options,
28
+ ));
29
+ }
30
+
31
+ /**
32
+ * Retrieve a workspace user
33
+ *
34
+ * @remarks
35
+ * Retrieves one workspace user by workspace-user ID. Requires a Management Key with user permissions or an authenticated workspace admin session. Standard API keys are not supported.
36
+ */
37
+ async get(
38
+ request: operations.UserGetRequest,
39
+ options?: RequestOptions,
40
+ ): Promise<components.GetUserResponse> {
41
+ return unwrapAsync(usersGet(
42
+ this,
43
+ request,
44
+ options,
45
+ ));
46
+ }
47
+
48
+ /**
49
+ * Delete a workspace user
50
+ *
51
+ * @remarks
52
+ * Removes a user from the current workspace, refreshes membership state, and revokes API keys owned by that workspace user. Requires a Management Key with user permissions or an authenticated workspace admin session. Standard API keys are not supported.
53
+ */
54
+ async delete(
55
+ request: operations.UserDeleteRequest,
56
+ options?: RequestOptions,
57
+ ): Promise<components.DeleteUserResponse> {
58
+ return unwrapAsync(usersDelete(
59
+ this,
60
+ request,
61
+ options,
62
+ ));
63
+ }
64
+
65
+ /**
66
+ * Update a workspace user
67
+ *
68
+ * @remarks
69
+ * Updates a user's last-activity timestamp and/or workspace role. Omitted fields remain unchanged. Requires a Management Key with user permissions or an authenticated workspace admin session. Standard API keys are not supported.
70
+ */
71
+ async update(
72
+ request: operations.UserUpdateRequest,
73
+ options?: RequestOptions,
74
+ ): Promise<components.UpdateUserResponse> {
75
+ return unwrapAsync(usersUpdate(
76
+ this,
77
+ request,
78
+ options,
79
+ ));
80
+ }
81
+
82
+ /**
83
+ * Create or add workspace users
84
+ *
85
+ * @remarks
86
+ * Creates accounts when necessary, adds each user to the current workspace and specified team, assigns the workspace role, and sends the welcome email for newly created accounts. Requires a Management Key with user permissions or an authenticated workspace admin session. Standard API keys are not supported.
87
+ */
88
+ async create(
89
+ request: operations.UserCreateRequest,
90
+ options?: RequestOptions,
91
+ ): Promise<components.CreateUsersResponse> {
92
+ return unwrapAsync(usersCreate(
93
+ this,
94
+ request,
95
+ options,
96
+ ));
97
+ }
98
+ }
package/src/lib/config.ts CHANGED
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.16.6",
61
+ sdkVersion: "4.16.8",
62
62
  genVersion: "2.948.4",
63
- userAgent: "speakeasy-sdk/typescript 4.16.6 2.948.4 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.16.8 2.948.4 2.0 @orq-ai/node",
64
64
  } as const;
@@ -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_01m4v6s1w9kjtjacknxvxhqv2v"),
43
+ _id: z.string().default("reasoning_01m4xqynakzazssj94swnwkwfn"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -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_01M4V6S20YFDZA1TY15HDVHJBQ"),
1578
+ _id: z.string().default("tool_01M4XQYNDWP7MC58C5FM0FKSWG"),
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_01M4V6S20XYWAMCMTHC5HJ1TS3"),
1764
+ _id: z.string().default("tool_01M4XQYNDVC1CW6HEVRD0JCKSR"),
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_01M4V6S20W52NCEBT43Y593WQN"),
1857
+ _id: z.string().default("tool_01M4XQYNDVVD1V3NPWYKVPBXCC"),
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_01M4V6S20VV4PB9QTC6JF8HS05"),
1958
+ _id: z.string().default("tool_01M4XQYNDT5FNES82HNVR4N6EA"),
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_01M4V6S20QMZ385TH17M5J0CP5"),
642
+ _id: z.string().default("tool_01M4XQYNDQ6YQCNBY84DGF7PXV"),
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_01M4V6S20PFYABM4C7F0YQSZ66"),
824
+ _id: z.string().default("tool_01M4XQYNDPP4GG36TK1P8S8YV8"),
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_01M4V6S20NPXWKK82EECX6HYR5"),
917
+ _id: z.string().default("tool_01M4XQYNDPVBB9ZJHK8QYGBB1P"),
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_01M4V6S20MR6PD7CV9MGV2KQFC"),
1015
+ _id: z.string().default("tool_01M4XQYNDNACS96K1J2WD19BPF"),
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-13T18:00:36.063Z",
143
+ "2026-10-14T17:39:16.489Z",
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-13T18:00:36.063Z",
188
+ "2026-10-14T17:39:16.489Z",
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-13T18:00:36.063Z",
144
+ "2026-10-14T17:39:16.489Z",
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-13T18:00:36.063Z",
189
+ "2026-10-14T17:39:16.489Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -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-13T18:00:36.063Z",
321
+ "2026-10-14T17:39:16.489Z",
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-13T18:00:36.063Z",
367
+ "2026-10-14T17:39:16.489Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),