@orq-ai/node 4.16.10 → 4.16.12

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 (155) hide show
  1. package/funcs/websearchSearch.d.ts +3 -3
  2. package/funcs/websearchSearch.js +3 -3
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/reasoningpart.js +1 -1
  7. package/models/operations/createtool.js +4 -4
  8. package/models/operations/getalltools.js +4 -4
  9. package/models/operations/getv2humanevalsets.js +2 -2
  10. package/models/operations/getv2humanevalsetsid.js +2 -2
  11. package/models/operations/listdeploymentversions.js +1 -1
  12. package/models/operations/patchv2humanevalsetsid.js +2 -2
  13. package/models/operations/postv2feedbackevaluation.js +4 -4
  14. package/models/operations/postv2humanevalsets.js +2 -2
  15. package/models/operations/retrievetool.js +4 -4
  16. package/models/operations/runagent.js +1 -1
  17. package/models/operations/searchweb.d.ts +3 -1
  18. package/models/operations/searchweb.d.ts.map +1 -1
  19. package/models/operations/searchweb.js +2 -0
  20. package/models/operations/searchweb.js.map +1 -1
  21. package/models/operations/streamrunagent.js +1 -1
  22. package/models/operations/updatetool.js +4 -4
  23. package/package.json +1 -1
  24. package/packages/orq-rc/src/funcs/auditLogDestinationsCreate.ts +172 -0
  25. package/packages/orq-rc/src/funcs/auditLogDestinationsDelete.ts +180 -0
  26. package/packages/orq-rc/src/funcs/auditLogDestinationsGet.ts +180 -0
  27. package/packages/orq-rc/src/funcs/auditLogDestinationsList.ts +181 -0
  28. package/packages/orq-rc/src/funcs/auditLogDestinationsListDeliveries.ts +190 -0
  29. package/packages/orq-rc/src/funcs/auditLogDestinationsReplay.ts +183 -0
  30. package/packages/orq-rc/src/funcs/auditLogDestinationsRotateSecret.ts +185 -0
  31. package/packages/orq-rc/src/funcs/auditLogDestinationsTest.ts +180 -0
  32. package/packages/orq-rc/src/funcs/auditLogDestinationsUpdate.ts +183 -0
  33. package/packages/orq-rc/src/funcs/modelsAzureFoundryDeployments.ts +1 -1
  34. package/packages/orq-rc/src/funcs/modelsUpdate.ts +1 -1
  35. package/packages/orq-rc/src/funcs/websearchSearch.ts +3 -3
  36. package/packages/orq-rc/src/lib/config.ts +2 -2
  37. package/packages/orq-rc/src/models/components/alertscope.ts +0 -1
  38. package/packages/orq-rc/src/models/components/alerttelemetrysource.ts +0 -1
  39. package/packages/orq-rc/src/models/components/auditlogdelivery.ts +100 -0
  40. package/packages/orq-rc/src/models/components/auditlogdeliverykind.ts +18 -0
  41. package/packages/orq-rc/src/models/components/auditlogdeliverystatus.ts +24 -0
  42. package/packages/orq-rc/src/models/components/auditlogdestination.ts +83 -0
  43. package/packages/orq-rc/src/models/components/auditlogdestinationstatus.ts +23 -0
  44. package/packages/orq-rc/src/models/components/budgetalertdimension.ts +0 -1
  45. package/packages/orq-rc/src/models/components/budgetperiod.ts +0 -1
  46. package/packages/orq-rc/src/models/components/budgetscopekind.ts +0 -1
  47. package/packages/orq-rc/src/models/components/budgetsortfield.ts +0 -1
  48. package/packages/orq-rc/src/models/components/createauditlogdestinationrequest.ts +53 -0
  49. package/packages/orq-rc/src/models/components/createauditlogdestinationresponse.ts +45 -0
  50. package/packages/orq-rc/src/models/components/createmanagementkeyrequest.ts +2 -3
  51. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +7 -0
  52. package/packages/orq-rc/src/models/components/deleteauditlogdestinationresponse.ts +27 -0
  53. package/packages/orq-rc/src/models/components/domainverificationstatus.ts +0 -1
  54. package/packages/orq-rc/src/models/components/effectiveuserpermissions.ts +31 -0
  55. package/packages/orq-rc/src/models/components/filepurpose.ts +0 -1
  56. package/packages/orq-rc/src/models/components/getauditlogdestinationresponse.ts +35 -0
  57. package/packages/orq-rc/src/models/components/getlogcontextresponse.ts +1 -1
  58. package/packages/orq-rc/src/models/components/getlogresponse.ts +1 -1
  59. package/packages/orq-rc/src/models/components/identitysortfield.ts +0 -1
  60. package/packages/orq-rc/src/models/components/index.ts +21 -0
  61. package/packages/orq-rc/src/models/components/listauditlogdeliveriesresponse.ts +44 -0
  62. package/packages/orq-rc/src/models/components/listauditlogdestinationsresponse.ts +44 -0
  63. package/packages/orq-rc/src/models/components/log.ts +1 -1
  64. package/packages/orq-rc/src/models/components/managementkey.ts +2 -2
  65. package/packages/orq-rc/src/models/components/managementkeystatus.ts +0 -1
  66. package/packages/orq-rc/src/models/components/managementpermissionmode.ts +0 -1
  67. package/packages/orq-rc/src/models/components/mcpauthtype.ts +0 -1
  68. package/packages/orq-rc/src/models/components/mcpconnectiontype.ts +0 -1
  69. package/packages/orq-rc/src/models/components/mcpgateway.ts +6 -0
  70. package/packages/orq-rc/src/models/components/mcpgatewaymode.ts +0 -1
  71. package/packages/orq-rc/src/models/components/mcpgatewayserverlink.ts +15 -0
  72. package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -1
  73. package/packages/orq-rc/src/models/components/mcpserver.ts +6 -0
  74. package/packages/orq-rc/src/models/components/mcpskill.ts +85 -0
  75. package/packages/orq-rc/src/models/components/mcpskillexposure.ts +72 -0
  76. package/packages/orq-rc/src/models/components/mcpskillfile.ts +47 -0
  77. package/packages/orq-rc/src/models/components/mcpsyncstate.ts +6 -0
  78. package/packages/orq-rc/src/models/components/mcptoolexposuremode.ts +0 -1
  79. package/packages/orq-rc/src/models/components/mcptoolnaming.ts +0 -1
  80. package/packages/orq-rc/src/models/components/modeldocument.ts +3 -0
  81. package/packages/orq-rc/src/models/components/modelfusionpreset.ts +0 -1
  82. package/packages/orq-rc/src/models/components/modelfusionsynthesismode.ts +0 -2
  83. package/packages/orq-rc/src/models/components/monitortelemetrysource.ts +0 -1
  84. package/packages/orq-rc/src/models/components/notifiertype.ts +0 -1
  85. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  86. package/packages/orq-rc/src/models/components/replayauditlogdeliveriesrequest.ts +42 -0
  87. package/packages/orq-rc/src/models/components/replayauditlogdeliveriesresponse.ts +41 -0
  88. package/packages/orq-rc/src/models/components/rotateauditlogdestinationsecretresponse.ts +51 -0
  89. package/packages/orq-rc/src/models/components/sessioninterval.ts +0 -1
  90. package/packages/orq-rc/src/models/components/smartrouterprofile.ts +0 -1
  91. package/packages/orq-rc/src/models/components/syncstatus.ts +0 -1
  92. package/packages/orq-rc/src/models/components/telemetryquerymode.ts +0 -1
  93. package/packages/orq-rc/src/models/components/telemetryresultkind.ts +0 -1
  94. package/packages/orq-rc/src/models/components/telemetrysource.ts +0 -1
  95. package/packages/orq-rc/src/models/components/telemetryvaluecardinality.ts +0 -2
  96. package/packages/orq-rc/src/models/components/testauditlogdestinationresponse.ts +35 -0
  97. package/packages/orq-rc/src/models/components/threadkind.ts +0 -1
  98. package/packages/orq-rc/src/models/components/updateauditlogdestinationrequest.ts +60 -0
  99. package/packages/orq-rc/src/models/components/updateauditlogdestinationresponse.ts +35 -0
  100. package/packages/orq-rc/src/models/components/updateidentityrequest.ts +1 -1
  101. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +14 -0
  102. package/packages/orq-rc/src/models/components/updateworkspacesettingsrequest.ts +2 -4
  103. package/packages/orq-rc/src/models/components/workspacecapabilities.ts +11 -0
  104. package/packages/orq-rc/src/models/operations/auditlogdestinationdelete.ts +38 -0
  105. package/packages/orq-rc/src/models/operations/auditlogdestinationget.ts +38 -0
  106. package/packages/orq-rc/src/models/operations/auditlogdestinationlist.ts +45 -0
  107. package/packages/orq-rc/src/models/operations/auditlogdestinationlistdeliveries.ts +54 -0
  108. package/packages/orq-rc/src/models/operations/auditlogdestinationreplay.ts +45 -0
  109. package/packages/orq-rc/src/models/operations/auditlogdestinationrotatesecret.ts +39 -0
  110. package/packages/orq-rc/src/models/operations/auditlogdestinationtest.ts +38 -0
  111. package/packages/orq-rc/src/models/operations/auditlogdestinationupdate.ts +45 -0
  112. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  113. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  114. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  115. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  116. package/packages/orq-rc/src/models/operations/index.ts +8 -0
  117. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  118. package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
  119. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +3 -0
  120. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +3 -0
  121. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +3 -0
  122. package/packages/orq-rc/src/models/operations/modelupdate.ts +3 -0
  123. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
  124. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
  125. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  126. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  127. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  128. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  129. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  130. package/packages/orq-rc/src/models/operations/searchweb.ts +3 -1
  131. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  132. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  133. package/packages/orq-rc/src/sdk/auditlogdestinations.ts +172 -0
  134. package/packages/orq-rc/src/sdk/models.ts +2 -2
  135. package/packages/orq-rc/src/sdk/sdk.ts +8 -0
  136. package/packages/orq-rc/src/sdk/websearch.ts +3 -3
  137. package/sdk/websearch.d.ts +3 -3
  138. package/sdk/websearch.js +3 -3
  139. package/src/funcs/websearchSearch.ts +3 -3
  140. package/src/lib/config.ts +2 -2
  141. package/src/models/components/reasoningpart.ts +1 -1
  142. package/src/models/operations/createtool.ts +4 -4
  143. package/src/models/operations/getalltools.ts +4 -4
  144. package/src/models/operations/getv2humanevalsets.ts +2 -2
  145. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  146. package/src/models/operations/listdeploymentversions.ts +1 -1
  147. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  148. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  149. package/src/models/operations/postv2humanevalsets.ts +2 -2
  150. package/src/models/operations/retrievetool.ts +4 -4
  151. package/src/models/operations/runagent.ts +1 -1
  152. package/src/models/operations/searchweb.ts +3 -1
  153. package/src/models/operations/streamrunagent.ts +1 -1
  154. package/src/models/operations/updatetool.ts +4 -4
  155. package/src/sdk/websearch.ts +3 -3
@@ -0,0 +1,180 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OrqCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { OrqError } from "../models/errors/orqerror.js";
24
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Send a test event
32
+ *
33
+ * @remarks
34
+ * Sends a signed synthetic `audit_log.test` event to the destination synchronously and returns the receiver outcome. Test deliveries appear in the delivery history.
35
+ */
36
+ export function auditLogDestinationsTest(
37
+ client: OrqCore,
38
+ request: operations.AuditLogDestinationTestRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ components.TestAuditLogDestinationResponse,
43
+ | errors.ErrorResponse
44
+ | OrqError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError
52
+ >
53
+ > {
54
+ return new APIPromise($do(
55
+ client,
56
+ request,
57
+ options,
58
+ ));
59
+ }
60
+
61
+ async function $do(
62
+ client: OrqCore,
63
+ request: operations.AuditLogDestinationTestRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<
66
+ [
67
+ Result<
68
+ components.TestAuditLogDestinationResponse,
69
+ | errors.ErrorResponse
70
+ | OrqError
71
+ | ResponseValidationError
72
+ | ConnectionError
73
+ | RequestAbortedError
74
+ | RequestTimeoutError
75
+ | InvalidRequestError
76
+ | UnexpectedClientError
77
+ | SDKValidationError
78
+ >,
79
+ APICall,
80
+ ]
81
+ > {
82
+ const parsed = safeParse(
83
+ request,
84
+ (value) =>
85
+ operations.AuditLogDestinationTestRequest$outboundSchema.parse(value),
86
+ "Input validation failed",
87
+ );
88
+ if (!parsed.ok) {
89
+ return [parsed, { status: "invalid" }];
90
+ }
91
+ const payload = parsed.value;
92
+ const body = null;
93
+
94
+ const pathParams = {
95
+ destination_id: encodeSimple("destination_id", payload.destination_id, {
96
+ explode: false,
97
+ charEncoding: "percent",
98
+ }),
99
+ };
100
+ const path = pathToFunc("/v3/audit-log-destinations/{destination_id}/test")(
101
+ pathParams,
102
+ );
103
+
104
+ const headers = new Headers(compactMap({
105
+ Accept: "application/json",
106
+ }));
107
+
108
+ const secConfig = await extractSecurity(client._options.apiKey);
109
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
110
+ const requestSecurity = resolveGlobalSecurity(securityInput);
111
+
112
+ const context = {
113
+ options: client._options,
114
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
115
+ operationID: "AuditLogDestinationTest",
116
+ oAuth2Scopes: null,
117
+
118
+ resolvedSecurity: requestSecurity,
119
+
120
+ securitySource: client._options.apiKey,
121
+ retryConfig: options?.retries
122
+ || client._options.retryConfig
123
+ || { strategy: "none" },
124
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
125
+ };
126
+
127
+ const requestRes = client._createRequest(context, {
128
+ security: requestSecurity,
129
+ method: "POST",
130
+ baseURL: options?.serverURL,
131
+ path: path,
132
+ headers: headers,
133
+ body: body,
134
+ userAgent: client._options.userAgent,
135
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
136
+ }, options);
137
+ if (!requestRes.ok) {
138
+ return [requestRes, { status: "invalid" }];
139
+ }
140
+ const req = requestRes.value;
141
+
142
+ const doResult = await client._do(req, {
143
+ context,
144
+ isErrorStatusCode: (statusCode: number) =>
145
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
146
+ retryConfig: context.retryConfig,
147
+ retryCodes: context.retryCodes,
148
+ });
149
+ if (!doResult.ok) {
150
+ return [doResult, { status: "request-error", request: req }];
151
+ }
152
+ const response = doResult.value;
153
+
154
+ const responseFields = {
155
+ HttpMeta: { Response: response, Request: req },
156
+ };
157
+
158
+ const [result] = await M.match<
159
+ components.TestAuditLogDestinationResponse,
160
+ | errors.ErrorResponse
161
+ | OrqError
162
+ | ResponseValidationError
163
+ | ConnectionError
164
+ | RequestAbortedError
165
+ | RequestTimeoutError
166
+ | InvalidRequestError
167
+ | UnexpectedClientError
168
+ | SDKValidationError
169
+ >(
170
+ M.json(200, components.TestAuditLogDestinationResponse$inboundSchema),
171
+ M.jsonErr(401, errors.ErrorResponse$inboundSchema),
172
+ M.fail("4XX"),
173
+ M.fail("5XX"),
174
+ )(response, req, { extraFields: responseFields });
175
+ if (!result.ok) {
176
+ return [result, { status: "complete", request: req, response }];
177
+ }
178
+
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
@@ -0,0 +1,183 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { OrqCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { OrqError } from "../models/errors/orqerror.js";
24
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Update an audit log destination
32
+ *
33
+ * @remarks
34
+ * Partially updates a destination. Set `status` to `AUDIT_LOG_DESTINATION_STATUS_PAUSED` to stop deliveries while retaining the backlog, and back to `AUDIT_LOG_DESTINATION_STATUS_ACTIVE` to drain it. The URL can only change while the destination is paused.
35
+ */
36
+ export function auditLogDestinationsUpdate(
37
+ client: OrqCore,
38
+ request: operations.AuditLogDestinationUpdateRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ components.UpdateAuditLogDestinationResponse,
43
+ | errors.ErrorResponse
44
+ | OrqError
45
+ | ResponseValidationError
46
+ | ConnectionError
47
+ | RequestAbortedError
48
+ | RequestTimeoutError
49
+ | InvalidRequestError
50
+ | UnexpectedClientError
51
+ | SDKValidationError
52
+ >
53
+ > {
54
+ return new APIPromise($do(
55
+ client,
56
+ request,
57
+ options,
58
+ ));
59
+ }
60
+
61
+ async function $do(
62
+ client: OrqCore,
63
+ request: operations.AuditLogDestinationUpdateRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<
66
+ [
67
+ Result<
68
+ components.UpdateAuditLogDestinationResponse,
69
+ | errors.ErrorResponse
70
+ | OrqError
71
+ | ResponseValidationError
72
+ | ConnectionError
73
+ | RequestAbortedError
74
+ | RequestTimeoutError
75
+ | InvalidRequestError
76
+ | UnexpectedClientError
77
+ | SDKValidationError
78
+ >,
79
+ APICall,
80
+ ]
81
+ > {
82
+ const parsed = safeParse(
83
+ request,
84
+ (value) =>
85
+ operations.AuditLogDestinationUpdateRequest$outboundSchema.parse(value),
86
+ "Input validation failed",
87
+ );
88
+ if (!parsed.ok) {
89
+ return [parsed, { status: "invalid" }];
90
+ }
91
+ const payload = parsed.value;
92
+ const body = encodeJSON("body", payload.UpdateAuditLogDestinationRequest, {
93
+ explode: true,
94
+ });
95
+
96
+ const pathParams = {
97
+ destination_id: encodeSimple("destination_id", payload.destination_id, {
98
+ explode: false,
99
+ charEncoding: "percent",
100
+ }),
101
+ };
102
+ const path = pathToFunc("/v3/audit-log-destinations/{destination_id}")(
103
+ pathParams,
104
+ );
105
+
106
+ const headers = new Headers(compactMap({
107
+ "Content-Type": "application/json",
108
+ Accept: "application/json",
109
+ }));
110
+
111
+ const secConfig = await extractSecurity(client._options.apiKey);
112
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
113
+ const requestSecurity = resolveGlobalSecurity(securityInput);
114
+
115
+ const context = {
116
+ options: client._options,
117
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
118
+ operationID: "AuditLogDestinationUpdate",
119
+ oAuth2Scopes: null,
120
+
121
+ resolvedSecurity: requestSecurity,
122
+
123
+ securitySource: client._options.apiKey,
124
+ retryConfig: options?.retries
125
+ || client._options.retryConfig
126
+ || { strategy: "none" },
127
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
128
+ };
129
+
130
+ const requestRes = client._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "PATCH",
133
+ baseURL: options?.serverURL,
134
+ path: path,
135
+ headers: headers,
136
+ body: body,
137
+ userAgent: client._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
139
+ }, options);
140
+ if (!requestRes.ok) {
141
+ return [requestRes, { status: "invalid" }];
142
+ }
143
+ const req = requestRes.value;
144
+
145
+ const doResult = await client._do(req, {
146
+ context,
147
+ isErrorStatusCode: (statusCode: number) =>
148
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req }];
154
+ }
155
+ const response = doResult.value;
156
+
157
+ const responseFields = {
158
+ HttpMeta: { Response: response, Request: req },
159
+ };
160
+
161
+ const [result] = await M.match<
162
+ components.UpdateAuditLogDestinationResponse,
163
+ | errors.ErrorResponse
164
+ | OrqError
165
+ | ResponseValidationError
166
+ | ConnectionError
167
+ | RequestAbortedError
168
+ | RequestTimeoutError
169
+ | InvalidRequestError
170
+ | UnexpectedClientError
171
+ | SDKValidationError
172
+ >(
173
+ M.json(200, components.UpdateAuditLogDestinationResponse$inboundSchema),
174
+ M.jsonErr(401, errors.ErrorResponse$inboundSchema),
175
+ M.fail("4XX"),
176
+ M.fail("5XX"),
177
+ )(response, req, { extraFields: responseFields });
178
+ if (!result.ok) {
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
181
+
182
+ return [result, { status: "complete", request: req, response }];
183
+ }
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * List Azure Foundry deployments under a resource
30
30
  *
31
31
  * @remarks
32
- * Lists Azure Foundry deployments under the given base_url and joins each entry with the Orq master-data row. Only OpenAI-developed deployments in succeeded state with chat/completion/embedding/vision model types are returned.
32
+ * Lists Azure Foundry deployments under the given base_url and merges each entry with the matching Orq model catalog entry. Only OpenAI-developed deployments in succeeded state with chat/completion/embedding/vision model types are returned.
33
33
  */
34
34
  export function modelsAzureFoundryDeployments(
35
35
  client: OrqCore,
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
29
29
  * Update custom model
30
30
  *
31
31
  * @remarks
32
- * Updates a custom model. Only fields present in the request body are modified, except for `metadata` and `parameters`, which are fully replaced when present (preserved from the legacy handler's behavior).
32
+ * Updates a custom model. Only fields present in the request body are modified, except for `metadata` and `parameters`, which are fully replaced when present.
33
33
  */
34
34
  export function modelsUpdate(
35
35
  client: OrqCore,
@@ -30,11 +30,11 @@ import { Result } from "../types/fp.js";
30
30
  * Search the web with a selected provider
31
31
  *
32
32
  * @remarks
33
- * Search with Exa, Ceramic, Linkup, Tavily, Serper, OpenAI, or Perplexity and return page URLs, titles, and descriptions in one response format. Authenticate with an API key that grants **websearch.execute** and send **Content-Type: application/json**.
33
+ * Search with Exa, Ceramic, Linkup, Tavily, Serper, OpenAI, Perplexity, or DeepSeek and return page URLs, titles, and descriptions in one response format. Authenticate with an API key that grants **websearch.execute** and send **Content-Type: application/json**.
34
34
  *
35
35
  * ### Provider and credentials
36
36
  *
37
- * Each request uses the selected provider. Exa uses **auto** search, Linkup uses **standard** depth, Tavily uses **basic** depth, and Perplexity uses its standard Search API. OpenAI runs one forced **web_search** tool call on gpt-5.6-luna through the Responses API and returns the raw search results.
37
+ * Each request uses the selected provider. Exa uses **auto** search, Linkup uses **standard** depth, Tavily uses **basic** depth, and Perplexity and DeepSeek use their standard Search APIs. DeepSeek accepts queries of at most 128 characters. OpenAI runs one forced **web_search** tool call on gpt-5.6-luna through the Responses API and returns the raw search results.
38
38
  *
39
39
  * Credentials are selected from the authenticated workspace. A configured provider integration takes precedence over ORQ-managed credentials: the default integration is used, or the first configured integration if no default is set. Configure BYOK in the workspace integrations settings. Invalid integration credentials cause an error.
40
40
  *
@@ -44,7 +44,7 @@ import { Result } from "../types/fp.js";
44
44
  *
45
45
  * Exa's published auto rate is **US$7 per 1,000 requests** for up to 10 results, or **US$8 per 1,000** including the ORQ markup. Exa charges use the actual cost reported by the provider.
46
46
  *
47
- * Perplexity's published Search API rate is **US$5 per 1,000 requests**. OpenAI web search costs **US$10 per 1,000 tool calls** plus the gpt-5.6-luna tokens of the Responses call, computed from the usage reported by OpenAI, so each search is typically US$0.012 to US$0.015 before the ORQ markup.
47
+ * Perplexity's published Search API rate is **US$5 per 1,000 requests** and DeepSeek's is **US$0.75 per 1,000 requests**. OpenAI web search costs **US$10 per 1,000 tool calls** plus the gpt-5.6-luna tokens of the Responses call, computed from the usage reported by OpenAI, so each search is typically US$0.012 to US$0.015 before the ORQ markup.
48
48
  *
49
49
  * A successful managed search is billable even if an output guardrail or output redaction failure prevents the results from being returned.
50
50
  *
@@ -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.17.0-rc.32",
61
+ sdkVersion: "4.17.0-rc.34",
62
62
  genVersion: "2.948.4",
63
- userAgent: "speakeasy-sdk/typescript 4.17.0-rc.32 2.948.4 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.17.0-rc.34 2.948.4 2.0 @orq-ai/node",
64
64
  } as const;
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AlertScope = {
9
- AlertScopeUnspecified: "ALERT_SCOPE_UNSPECIFIED",
10
9
  AlertScopeProject: "ALERT_SCOPE_PROJECT",
11
10
  AlertScopeWorkspace: "ALERT_SCOPE_WORKSPACE",
12
11
  } as const;
@@ -6,7 +6,6 @@ import * as z from "zod/v3";
6
6
  import { ClosedEnum } from "../../types/enums.js";
7
7
 
8
8
  export const AlertTelemetrySource = {
9
- AlertTelemetrySourceUnspecified: "ALERT_TELEMETRY_SOURCE_UNSPECIFIED",
10
9
  AlertTelemetrySourceTraces: "ALERT_TELEMETRY_SOURCE_TRACES",
11
10
  AlertTelemetrySourceMetrics: "ALERT_TELEMETRY_SOURCE_METRICS",
12
11
  } as const;
@@ -0,0 +1,100 @@
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
+ AuditLogDeliveryKind,
12
+ AuditLogDeliveryKind$inboundSchema,
13
+ } from "./auditlogdeliverykind.js";
14
+ import {
15
+ AuditLogDeliveryStatus,
16
+ AuditLogDeliveryStatus$inboundSchema,
17
+ } from "./auditlogdeliverystatus.js";
18
+
19
+ export type AuditLogDelivery = {
20
+ id: string;
21
+ destinationId: string;
22
+ /**
23
+ * Audit log entry ID carried in the payload. Replays reuse the original event ID.
24
+ */
25
+ eventId: string;
26
+ kind: AuditLogDeliveryKind;
27
+ status: AuditLogDeliveryStatus;
28
+ /**
29
+ * Number of HTTP attempts made so far.
30
+ */
31
+ attempts: number;
32
+ /**
33
+ * When the next attempt is due, while pending.
34
+ */
35
+ nextAttemptAt?: Date | undefined;
36
+ lastAttemptAt?: Date | undefined;
37
+ /**
38
+ * HTTP status of the last attempt, 0 when the request never completed.
39
+ */
40
+ lastStatusCode?: number | undefined;
41
+ /**
42
+ * Short description of the last failure.
43
+ */
44
+ lastError?: string | undefined;
45
+ deliveredAt?: Date | undefined;
46
+ createdAt: Date;
47
+ /**
48
+ * Replay request that queued this delivery, empty for live deliveries.
49
+ */
50
+ replayId?: string | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const AuditLogDelivery$inboundSchema: z.ZodType<
55
+ AuditLogDelivery,
56
+ z.ZodTypeDef,
57
+ unknown
58
+ > = z.object({
59
+ id: z.string(),
60
+ destination_id: z.string(),
61
+ event_id: z.string(),
62
+ kind: AuditLogDeliveryKind$inboundSchema,
63
+ status: AuditLogDeliveryStatus$inboundSchema,
64
+ attempts: z.number().int(),
65
+ next_attempt_at: z.string().datetime({ offset: true }).transform(v =>
66
+ new Date(v)
67
+ ).optional(),
68
+ last_attempt_at: z.string().datetime({ offset: true }).transform(v =>
69
+ new Date(v)
70
+ ).optional(),
71
+ last_status_code: z.number().int().optional(),
72
+ last_error: z.string().optional(),
73
+ delivered_at: z.string().datetime({ offset: true }).transform(v =>
74
+ new Date(v)
75
+ ).optional(),
76
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
77
+ replay_id: z.string().optional(),
78
+ }).transform((v) => {
79
+ return remap$(v, {
80
+ "destination_id": "destinationId",
81
+ "event_id": "eventId",
82
+ "next_attempt_at": "nextAttemptAt",
83
+ "last_attempt_at": "lastAttemptAt",
84
+ "last_status_code": "lastStatusCode",
85
+ "last_error": "lastError",
86
+ "delivered_at": "deliveredAt",
87
+ "created_at": "createdAt",
88
+ "replay_id": "replayId",
89
+ });
90
+ });
91
+
92
+ export function auditLogDeliveryFromJSON(
93
+ jsonString: string,
94
+ ): SafeParseResult<AuditLogDelivery, SDKValidationError> {
95
+ return safeParse(
96
+ jsonString,
97
+ (x) => AuditLogDelivery$inboundSchema.parse(JSON.parse(x)),
98
+ `Failed to parse 'AuditLogDelivery' from JSON`,
99
+ );
100
+ }
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const AuditLogDeliveryKind = {
9
+ AuditLogDeliveryKindEvent: "AUDIT_LOG_DELIVERY_KIND_EVENT",
10
+ AuditLogDeliveryKindReplay: "AUDIT_LOG_DELIVERY_KIND_REPLAY",
11
+ AuditLogDeliveryKindTest: "AUDIT_LOG_DELIVERY_KIND_TEST",
12
+ } as const;
13
+ export type AuditLogDeliveryKind = ClosedEnum<typeof AuditLogDeliveryKind>;
14
+
15
+ /** @internal */
16
+ export const AuditLogDeliveryKind$inboundSchema: z.ZodNativeEnum<
17
+ typeof AuditLogDeliveryKind
18
+ > = z.nativeEnum(AuditLogDeliveryKind);
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const AuditLogDeliveryStatus = {
9
+ AuditLogDeliveryStatusPending: "AUDIT_LOG_DELIVERY_STATUS_PENDING",
10
+ AuditLogDeliveryStatusDelivering: "AUDIT_LOG_DELIVERY_STATUS_DELIVERING",
11
+ AuditLogDeliveryStatusSucceeded: "AUDIT_LOG_DELIVERY_STATUS_SUCCEEDED",
12
+ AuditLogDeliveryStatusFailed: "AUDIT_LOG_DELIVERY_STATUS_FAILED",
13
+ AuditLogDeliveryStatusCancelled: "AUDIT_LOG_DELIVERY_STATUS_CANCELLED",
14
+ } as const;
15
+ export type AuditLogDeliveryStatus = ClosedEnum<typeof AuditLogDeliveryStatus>;
16
+
17
+ /** @internal */
18
+ export const AuditLogDeliveryStatus$inboundSchema: z.ZodNativeEnum<
19
+ typeof AuditLogDeliveryStatus
20
+ > = z.nativeEnum(AuditLogDeliveryStatus);
21
+ /** @internal */
22
+ export const AuditLogDeliveryStatus$outboundSchema: z.ZodNativeEnum<
23
+ typeof AuditLogDeliveryStatus
24
+ > = AuditLogDeliveryStatus$inboundSchema;
@@ -0,0 +1,83 @@
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
+ AuditLogDestinationStatus,
12
+ AuditLogDestinationStatus$inboundSchema,
13
+ } from "./auditlogdestinationstatus.js";
14
+
15
+ export type AuditLogDestination = {
16
+ id: string;
17
+ /**
18
+ * Human-readable destination name, unique within the workspace.
19
+ */
20
+ displayName: string;
21
+ /**
22
+ * Optional description of the receiving system.
23
+ */
24
+ description?: string | undefined;
25
+ /**
26
+ * HTTPS endpoint that receives signed audit log events.
27
+ */
28
+ url: string;
29
+ status: AuditLogDestinationStatus;
30
+ /**
31
+ * Last four characters of the current signing secret, to tell rotations apart.
32
+ */
33
+ signingSecretHint?: string | undefined;
34
+ /**
35
+ * Time the current signing secret was issued.
36
+ */
37
+ secretRotatedAt?: Date | undefined;
38
+ createdAt: Date;
39
+ updatedAt: Date;
40
+ createdById?: string | undefined;
41
+ updatedById?: string | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const AuditLogDestination$inboundSchema: z.ZodType<
46
+ AuditLogDestination,
47
+ z.ZodTypeDef,
48
+ unknown
49
+ > = z.object({
50
+ id: z.string(),
51
+ display_name: z.string(),
52
+ description: z.string().optional(),
53
+ url: z.string(),
54
+ status: AuditLogDestinationStatus$inboundSchema,
55
+ signing_secret_hint: z.string().optional(),
56
+ secret_rotated_at: z.string().datetime({ offset: true }).transform(v =>
57
+ new Date(v)
58
+ ).optional(),
59
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
60
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
61
+ created_by_id: z.string().optional(),
62
+ updated_by_id: z.string().optional(),
63
+ }).transform((v) => {
64
+ return remap$(v, {
65
+ "display_name": "displayName",
66
+ "signing_secret_hint": "signingSecretHint",
67
+ "secret_rotated_at": "secretRotatedAt",
68
+ "created_at": "createdAt",
69
+ "updated_at": "updatedAt",
70
+ "created_by_id": "createdById",
71
+ "updated_by_id": "updatedById",
72
+ });
73
+ });
74
+
75
+ export function auditLogDestinationFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<AuditLogDestination, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => AuditLogDestination$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'AuditLogDestination' from JSON`,
82
+ );
83
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const AuditLogDestinationStatus = {
9
+ AuditLogDestinationStatusActive: "AUDIT_LOG_DESTINATION_STATUS_ACTIVE",
10
+ AuditLogDestinationStatusPaused: "AUDIT_LOG_DESTINATION_STATUS_PAUSED",
11
+ } as const;
12
+ export type AuditLogDestinationStatus = ClosedEnum<
13
+ typeof AuditLogDestinationStatus
14
+ >;
15
+
16
+ /** @internal */
17
+ export const AuditLogDestinationStatus$inboundSchema: z.ZodNativeEnum<
18
+ typeof AuditLogDestinationStatus
19
+ > = z.nativeEnum(AuditLogDestinationStatus);
20
+ /** @internal */
21
+ export const AuditLogDestinationStatus$outboundSchema: z.ZodNativeEnum<
22
+ typeof AuditLogDestinationStatus
23
+ > = AuditLogDestinationStatus$inboundSchema;