@orq-ai/node 4.17.0-rc.33 → 4.17.0-rc.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -66
- package/funcs/auditLogDestinationsCreate.d.ts +18 -0
- package/funcs/auditLogDestinationsCreate.d.ts.map +1 -0
- package/funcs/auditLogDestinationsCreate.js +119 -0
- package/funcs/auditLogDestinationsCreate.js.map +1 -0
- package/funcs/auditLogDestinationsDelete.d.ts +19 -0
- package/funcs/auditLogDestinationsDelete.d.ts.map +1 -0
- package/funcs/auditLogDestinationsDelete.js +125 -0
- package/funcs/auditLogDestinationsDelete.js.map +1 -0
- package/funcs/auditLogDestinationsGet.d.ts +19 -0
- package/funcs/auditLogDestinationsGet.d.ts.map +1 -0
- package/funcs/auditLogDestinationsGet.js +125 -0
- package/funcs/auditLogDestinationsGet.js.map +1 -0
- package/funcs/auditLogDestinationsList.d.ts +19 -0
- package/funcs/auditLogDestinationsList.d.ts.map +1 -0
- package/funcs/auditLogDestinationsList.js +125 -0
- package/funcs/auditLogDestinationsList.js.map +1 -0
- package/funcs/auditLogDestinationsListDeliveries.d.ts +19 -0
- package/funcs/auditLogDestinationsListDeliveries.d.ts.map +1 -0
- package/funcs/auditLogDestinationsListDeliveries.js +132 -0
- package/funcs/auditLogDestinationsListDeliveries.js.map +1 -0
- package/funcs/auditLogDestinationsReplay.d.ts +19 -0
- package/funcs/auditLogDestinationsReplay.d.ts.map +1 -0
- package/funcs/auditLogDestinationsReplay.js +128 -0
- package/funcs/auditLogDestinationsReplay.js.map +1 -0
- package/funcs/auditLogDestinationsRotateSecret.d.ts +19 -0
- package/funcs/auditLogDestinationsRotateSecret.d.ts.map +1 -0
- package/funcs/auditLogDestinationsRotateSecret.js +125 -0
- package/funcs/auditLogDestinationsRotateSecret.js.map +1 -0
- package/funcs/auditLogDestinationsTest.d.ts +19 -0
- package/funcs/auditLogDestinationsTest.d.ts.map +1 -0
- package/funcs/auditLogDestinationsTest.js +125 -0
- package/funcs/auditLogDestinationsTest.js.map +1 -0
- package/funcs/auditLogDestinationsUpdate.d.ts +19 -0
- package/funcs/auditLogDestinationsUpdate.d.ts.map +1 -0
- package/funcs/auditLogDestinationsUpdate.js +128 -0
- package/funcs/auditLogDestinationsUpdate.js.map +1 -0
- package/funcs/websearchSearch.d.ts +3 -3
- package/funcs/websearchSearch.js +3 -3
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/auditlogdelivery.d.ts +42 -0
- package/models/components/auditlogdelivery.d.ts.map +1 -0
- package/models/components/auditlogdelivery.js +77 -0
- package/models/components/auditlogdelivery.js.map +1 -0
- package/models/components/auditlogdeliverykind.d.ts +11 -0
- package/models/components/auditlogdeliverykind.d.ts.map +1 -0
- package/models/components/auditlogdeliverykind.js +48 -0
- package/models/components/auditlogdeliverykind.js.map +1 -0
- package/models/components/auditlogdeliverystatus.d.ts +15 -0
- package/models/components/auditlogdeliverystatus.d.ts.map +1 -0
- package/models/components/auditlogdeliverystatus.js +52 -0
- package/models/components/auditlogdeliverystatus.js.map +1 -0
- package/models/components/auditlogdestination.d.ts +36 -0
- package/models/components/auditlogdestination.d.ts.map +1 -0
- package/models/components/auditlogdestination.js +72 -0
- package/models/components/auditlogdestination.js.map +1 -0
- package/models/components/auditlogdestinationstatus.d.ts +12 -0
- package/models/components/auditlogdestinationstatus.d.ts.map +1 -0
- package/models/components/auditlogdestinationstatus.js +49 -0
- package/models/components/auditlogdestinationstatus.js.map +1 -0
- package/models/components/createauditlogdestinationrequest.d.ts +25 -0
- package/models/components/createauditlogdestinationrequest.d.ts.map +1 -0
- package/models/components/createauditlogdestinationrequest.js +56 -0
- package/models/components/createauditlogdestinationrequest.js.map +1 -0
- package/models/components/createauditlogdestinationresponse.d.ts +15 -0
- package/models/components/createauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/createauditlogdestinationresponse.js +57 -0
- package/models/components/createauditlogdestinationresponse.js.map +1 -0
- package/models/components/deleteauditlogdestinationresponse.d.ts +8 -0
- package/models/components/deleteauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/deleteauditlogdestinationresponse.js +48 -0
- package/models/components/deleteauditlogdestinationresponse.js.map +1 -0
- package/models/components/effectiveuserpermissions.d.ts +10 -0
- package/models/components/effectiveuserpermissions.d.ts.map +1 -0
- package/models/components/effectiveuserpermissions.js +50 -0
- package/models/components/effectiveuserpermissions.js.map +1 -0
- package/models/components/getauditlogdestinationresponse.d.ts +11 -0
- package/models/components/getauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/getauditlogdestinationresponse.js +51 -0
- package/models/components/getauditlogdestinationresponse.js.map +1 -0
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listauditlogdeliveriesresponse.d.ts +13 -0
- package/models/components/listauditlogdeliveriesresponse.d.ts.map +1 -0
- package/models/components/listauditlogdeliveriesresponse.js +58 -0
- package/models/components/listauditlogdeliveriesresponse.js.map +1 -0
- package/models/components/listauditlogdestinationsresponse.d.ts +13 -0
- package/models/components/listauditlogdestinationsresponse.d.ts.map +1 -0
- package/models/components/listauditlogdestinationsresponse.js +58 -0
- package/models/components/listauditlogdestinationsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/replayauditlogdeliveriesrequest.d.ts +20 -0
- package/models/components/replayauditlogdeliveriesrequest.d.ts.map +1 -0
- package/models/components/replayauditlogdeliveriesrequest.js +50 -0
- package/models/components/replayauditlogdeliveriesrequest.js.map +1 -0
- package/models/components/replayauditlogdeliveriesresponse.d.ts +14 -0
- package/models/components/replayauditlogdeliveriesresponse.d.ts.map +1 -0
- package/models/components/replayauditlogdeliveriesresponse.js +56 -0
- package/models/components/replayauditlogdeliveriesresponse.js.map +1 -0
- package/models/components/rotateauditlogdestinationsecretresponse.d.ts +15 -0
- package/models/components/rotateauditlogdestinationsecretresponse.d.ts.map +1 -0
- package/models/components/rotateauditlogdestinationsecretresponse.js +57 -0
- package/models/components/rotateauditlogdestinationsecretresponse.js.map +1 -0
- package/models/components/testauditlogdestinationresponse.d.ts +11 -0
- package/models/components/testauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/testauditlogdestinationresponse.js +51 -0
- package/models/components/testauditlogdestinationresponse.js.map +1 -0
- package/models/components/updateauditlogdestinationrequest.d.ts +28 -0
- package/models/components/updateauditlogdestinationrequest.d.ts.map +1 -0
- package/models/components/updateauditlogdestinationrequest.js +58 -0
- package/models/components/updateauditlogdestinationrequest.js.map +1 -0
- package/models/components/updateauditlogdestinationresponse.d.ts +11 -0
- package/models/components/updateauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/updateauditlogdestinationresponse.js +51 -0
- package/models/components/updateauditlogdestinationresponse.js.map +1 -0
- package/models/components/workspacecapabilities.d.ts +2 -0
- package/models/components/workspacecapabilities.d.ts.map +1 -1
- package/models/components/workspacecapabilities.js +7 -0
- package/models/components/workspacecapabilities.js.map +1 -1
- package/models/operations/auditlogdestinationdelete.d.ts +12 -0
- package/models/operations/auditlogdestinationdelete.d.ts.map +1 -0
- package/models/operations/auditlogdestinationdelete.js +54 -0
- package/models/operations/auditlogdestinationdelete.js.map +1 -0
- package/models/operations/auditlogdestinationget.d.ts +12 -0
- package/models/operations/auditlogdestinationget.d.ts.map +1 -0
- package/models/operations/auditlogdestinationget.js +54 -0
- package/models/operations/auditlogdestinationget.js.map +1 -0
- package/models/operations/auditlogdestinationlist.d.ts +16 -0
- package/models/operations/auditlogdestinationlist.d.ts.map +1 -0
- package/models/operations/auditlogdestinationlist.js +57 -0
- package/models/operations/auditlogdestinationlist.js.map +1 -0
- package/models/operations/auditlogdestinationlistdeliveries.d.ts +21 -0
- package/models/operations/auditlogdestinationlistdeliveries.d.ts.map +1 -0
- package/models/operations/auditlogdestinationlistdeliveries.js +61 -0
- package/models/operations/auditlogdestinationlistdeliveries.js.map +1 -0
- package/models/operations/auditlogdestinationreplay.d.ts +15 -0
- package/models/operations/auditlogdestinationreplay.d.ts.map +1 -0
- package/models/operations/auditlogdestinationreplay.js +57 -0
- package/models/operations/auditlogdestinationreplay.js.map +1 -0
- package/models/operations/auditlogdestinationrotatesecret.d.ts +12 -0
- package/models/operations/auditlogdestinationrotatesecret.d.ts.map +1 -0
- package/models/operations/auditlogdestinationrotatesecret.js +54 -0
- package/models/operations/auditlogdestinationrotatesecret.js.map +1 -0
- package/models/operations/auditlogdestinationtest.d.ts +12 -0
- package/models/operations/auditlogdestinationtest.d.ts.map +1 -0
- package/models/operations/auditlogdestinationtest.js +54 -0
- package/models/operations/auditlogdestinationtest.js.map +1 -0
- package/models/operations/auditlogdestinationupdate.d.ts +15 -0
- package/models/operations/auditlogdestinationupdate.d.ts.map +1 -0
- package/models/operations/auditlogdestinationupdate.js +57 -0
- package/models/operations/auditlogdestinationupdate.js.map +1 -0
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +8 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/searchweb.d.ts +3 -1
- package/models/operations/searchweb.d.ts.map +1 -1
- package/models/operations/searchweb.js +2 -0
- package/models/operations/searchweb.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/sdk/auditlogdestinations.d.ts +69 -0
- package/sdk/auditlogdestinations.d.ts.map +1 -0
- package/sdk/auditlogdestinations.js +102 -0
- package/sdk/auditlogdestinations.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/websearch.d.ts +3 -3
- package/sdk/websearch.js +3 -3
- package/src/funcs/auditLogDestinationsCreate.ts +172 -0
- package/src/funcs/auditLogDestinationsDelete.ts +180 -0
- package/src/funcs/auditLogDestinationsGet.ts +180 -0
- package/src/funcs/auditLogDestinationsList.ts +181 -0
- package/src/funcs/auditLogDestinationsListDeliveries.ts +190 -0
- package/src/funcs/auditLogDestinationsReplay.ts +183 -0
- package/src/funcs/auditLogDestinationsRotateSecret.ts +185 -0
- package/src/funcs/auditLogDestinationsTest.ts +180 -0
- package/src/funcs/auditLogDestinationsUpdate.ts +183 -0
- package/src/funcs/websearchSearch.ts +3 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/auditlogdelivery.ts +100 -0
- package/src/models/components/auditlogdeliverykind.ts +18 -0
- package/src/models/components/auditlogdeliverystatus.ts +24 -0
- package/src/models/components/auditlogdestination.ts +83 -0
- package/src/models/components/auditlogdestinationstatus.ts +23 -0
- package/src/models/components/createauditlogdestinationrequest.ts +53 -0
- package/src/models/components/createauditlogdestinationresponse.ts +45 -0
- package/src/models/components/deleteauditlogdestinationresponse.ts +27 -0
- package/src/models/components/effectiveuserpermissions.ts +31 -0
- package/src/models/components/getauditlogdestinationresponse.ts +35 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/listauditlogdeliveriesresponse.ts +44 -0
- package/src/models/components/listauditlogdestinationsresponse.ts +44 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/replayauditlogdeliveriesrequest.ts +42 -0
- package/src/models/components/replayauditlogdeliveriesresponse.ts +41 -0
- package/src/models/components/rotateauditlogdestinationsecretresponse.ts +51 -0
- package/src/models/components/testauditlogdestinationresponse.ts +35 -0
- package/src/models/components/updateauditlogdestinationrequest.ts +60 -0
- package/src/models/components/updateauditlogdestinationresponse.ts +35 -0
- package/src/models/components/workspacecapabilities.ts +11 -0
- package/src/models/operations/auditlogdestinationdelete.ts +38 -0
- package/src/models/operations/auditlogdestinationget.ts +38 -0
- package/src/models/operations/auditlogdestinationlist.ts +45 -0
- package/src/models/operations/auditlogdestinationlistdeliveries.ts +54 -0
- package/src/models/operations/auditlogdestinationreplay.ts +45 -0
- package/src/models/operations/auditlogdestinationrotatesecret.ts +39 -0
- package/src/models/operations/auditlogdestinationtest.ts +38 -0
- package/src/models/operations/auditlogdestinationupdate.ts +45 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/searchweb.ts +3 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/auditlogdestinations.ts +172 -0
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/websearch.ts +3 -3
package/README.md
CHANGED
|
@@ -271,6 +271,18 @@ run();
|
|
|
271
271
|
* [get](docs/sdks/apikeys/README.md#get) - Retrieve an API key
|
|
272
272
|
* [update](docs/sdks/apikeys/README.md#update) - Update an API key
|
|
273
273
|
|
|
274
|
+
### [AuditLogDestinations](docs/sdks/auditlogdestinations/README.md)
|
|
275
|
+
|
|
276
|
+
* [list](docs/sdks/auditlogdestinations/README.md#list) - List audit log destinations
|
|
277
|
+
* [create](docs/sdks/auditlogdestinations/README.md#create) - Create an audit log destination
|
|
278
|
+
* [get](docs/sdks/auditlogdestinations/README.md#get) - Retrieve an audit log destination
|
|
279
|
+
* [delete](docs/sdks/auditlogdestinations/README.md#delete) - Delete an audit log destination
|
|
280
|
+
* [update](docs/sdks/auditlogdestinations/README.md#update) - Update an audit log destination
|
|
281
|
+
* [listDeliveries](docs/sdks/auditlogdestinations/README.md#listdeliveries) - List deliveries
|
|
282
|
+
* [replay](docs/sdks/auditlogdestinations/README.md#replay) - Replay audit events
|
|
283
|
+
* [rotateSecret](docs/sdks/auditlogdestinations/README.md#rotatesecret) - Rotate the signing secret
|
|
284
|
+
* [test](docs/sdks/auditlogdestinations/README.md#test) - Send a test event
|
|
285
|
+
|
|
274
286
|
### [Budgets](docs/sdks/budgets/README.md)
|
|
275
287
|
|
|
276
288
|
* [list](docs/sdks/budgets/README.md#list) - List budgets
|
|
@@ -819,6 +831,15 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
819
831
|
- [`apiKeysList`](docs/sdks/apikeys/README.md#list) - List API keys
|
|
820
832
|
- [`apiKeysListCapabilities`](docs/sdks/apikeys/README.md#listcapabilities) - List capability catalog
|
|
821
833
|
- [`apiKeysUpdate`](docs/sdks/apikeys/README.md#update) - Update an API key
|
|
834
|
+
- [`auditLogDestinationsCreate`](docs/sdks/auditlogdestinations/README.md#create) - Create an audit log destination
|
|
835
|
+
- [`auditLogDestinationsDelete`](docs/sdks/auditlogdestinations/README.md#delete) - Delete an audit log destination
|
|
836
|
+
- [`auditLogDestinationsGet`](docs/sdks/auditlogdestinations/README.md#get) - Retrieve an audit log destination
|
|
837
|
+
- [`auditLogDestinationsList`](docs/sdks/auditlogdestinations/README.md#list) - List audit log destinations
|
|
838
|
+
- [`auditLogDestinationsListDeliveries`](docs/sdks/auditlogdestinations/README.md#listdeliveries) - List deliveries
|
|
839
|
+
- [`auditLogDestinationsReplay`](docs/sdks/auditlogdestinations/README.md#replay) - Replay audit events
|
|
840
|
+
- [`auditLogDestinationsRotateSecret`](docs/sdks/auditlogdestinations/README.md#rotatesecret) - Rotate the signing secret
|
|
841
|
+
- [`auditLogDestinationsTest`](docs/sdks/auditlogdestinations/README.md#test) - Send a test event
|
|
842
|
+
- [`auditLogDestinationsUpdate`](docs/sdks/auditlogdestinations/README.md#update) - Update an audit log destination
|
|
822
843
|
- [`budgetsCreate`](docs/sdks/budgets/README.md#create) - Create a new budget
|
|
823
844
|
- [`budgetsDelete`](docs/sdks/budgets/README.md#delete) - Delete a budget
|
|
824
845
|
- [`budgetsGet`](docs/sdks/budgets/README.md#get) - Retrieve a budget
|
|
@@ -1556,72 +1577,72 @@ run();
|
|
|
1556
1577
|
|
|
1557
1578
|
|
|
1558
1579
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
1559
|
-
* [`ErrorResponse`](./src/models/errors/errorresponse.ts): Applicable to
|
|
1560
|
-
* [`APIErrorResponse`](./src/models/errors/apierrorresponse.ts): Applicable to 12 of
|
|
1561
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 5 of
|
|
1562
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
1563
|
-
* [`CompactResponseResponseBody`](./src/models/errors/compactresponseresponsebody.ts): Model is required or request is invalid. Status code `400`. Applicable to 1 of
|
|
1564
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1565
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1566
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
1567
|
-
* [`SearchWebResponseBody`](./src/models/errors/searchwebresponsebody.ts): Invalid request, unusable workspace integration, or a blocking guardrail. Check the request fields and workspace integration settings. Status code `400`. Applicable to 1 of
|
|
1568
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `400`. Applicable to 1 of
|
|
1569
|
-
* [`CreateClassifyResponseBody`](./src/models/errors/createclassifyresponsebody.ts): Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields. Status code `400`. Applicable to 1 of
|
|
1570
|
-
* [`CreateDecisionsResponseBody`](./src/models/errors/createdecisionsresponsebody.ts): Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields. Status code `400`. Applicable to 1 of
|
|
1571
|
-
* [`CompactResponseResponsesResponseBody`](./src/models/errors/compactresponseresponsesresponsebody.ts): Unauthorized. Status code `401`. Applicable to 1 of
|
|
1572
|
-
* [`SearchWebWebsearchResponseBody`](./src/models/errors/searchwebwebsearchresponsebody.ts): Missing or invalid API key. Send a valid API key in the Authorization header. Status code `401`. Applicable to 1 of
|
|
1573
|
-
* [`CreateClassifyRouterClassifyResponseBody`](./src/models/errors/createclassifyrouterclassifyresponsebody.ts): Missing, invalid, expired or revoked API key. Status code `401`. Applicable to 1 of
|
|
1574
|
-
* [`CreateDecisionsRouterDecisionsResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponsebody.ts): Missing, invalid, expired or revoked API key. Status code `401`. Applicable to 1 of
|
|
1575
|
-
* [`SearchWebWebsearchResponseResponseBody`](./src/models/errors/searchwebwebsearchresponseresponsebody.ts): Managed search requires a positive ORQ credit balance. Add credits before retrying. BYOK does not require ORQ credits. Status code `402`. Applicable to 1 of
|
|
1576
|
-
* [`SearchWebWebsearchResponse403ResponseBody`](./src/models/errors/searchwebwebsearchresponse403responsebody.ts): The API key lacks websearch.execute permission. Status code `403`. Applicable to 1 of
|
|
1577
|
-
* [`CreateClassifyRouterClassifyResponseResponseBody`](./src/models/errors/createclassifyrouterclassifyresponseresponsebody.ts): The API key lacks classify permission, or the workspace or project cannot access the model. Status code `403`. Applicable to 1 of
|
|
1578
|
-
* [`CreateDecisionsRouterDecisionsResponseResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponseresponsebody.ts): The API key lacks classify permission, or the workspace or project cannot access the model. Status code `403`. Applicable to 1 of
|
|
1579
|
-
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of
|
|
1580
|
-
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of
|
|
1581
|
-
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of
|
|
1582
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
1583
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
1584
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1585
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1586
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
1587
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1588
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1589
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
1590
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of
|
|
1591
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1592
|
-
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1593
|
-
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1594
|
-
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of
|
|
1595
|
-
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1596
|
-
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1597
|
-
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of
|
|
1598
|
-
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of
|
|
1599
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1600
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1601
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
1602
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1603
|
-
* [`CreateClassifyRouterClassifyResponse408ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse408responsebody.ts): The final model call exceeded its timeout after available retries and fallbacks were exhausted. Status code `408`. Applicable to 1 of
|
|
1604
|
-
* [`CreateDecisionsRouterDecisionsResponse408ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse408responsebody.ts): The final model call exceeded its timeout after available retries and fallbacks were exhausted. Status code `408`. Applicable to 1 of
|
|
1605
|
-
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of
|
|
1606
|
-
* [`SearchWebWebsearchResponse415ResponseBody`](./src/models/errors/searchwebwebsearchresponse415responsebody.ts): Unsupported or missing Content-Type. Send application/json; an optional charset parameter is accepted. Status code `415`. Applicable to 1 of
|
|
1607
|
-
* [`SearchWebWebsearchResponse422ResponseBody`](./src/models/errors/searchwebwebsearchresponse422responsebody.ts): A configured guardrail evaluator could not complete its evaluation. Status code `422`. Applicable to 1 of
|
|
1608
|
-
* [`CreateClassifyRouterClassifyResponse422ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse422responsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of
|
|
1609
|
-
* [`CreateDecisionsRouterDecisionsResponse422ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse422responsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of
|
|
1610
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1611
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1612
|
-
* [`SearchWebWebsearchResponse429ResponseBody`](./src/models/errors/searchwebwebsearchresponse429responsebody.ts): A workspace or provider rate limit, or a matching budget, was reached. Wait before retrying or raise the budget. Status code `429`. Applicable to 1 of
|
|
1613
|
-
* [`CreateClassifyRouterClassifyResponse429ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse429responsebody.ts): A plan rate limit, budget or provider rate limit was exceeded. Status code `429`. Applicable to 1 of
|
|
1614
|
-
* [`CreateDecisionsRouterDecisionsResponse429ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse429responsebody.ts): A plan rate limit, budget or provider rate limit was exceeded. Status code `429`. Applicable to 1 of
|
|
1615
|
-
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of
|
|
1616
|
-
* [`SearchWebWebsearchResponse500ResponseBody`](./src/models/errors/searchwebwebsearchresponse500responsebody.ts): Unexpected gateway error. Include the trace ID, if available, when reporting the failure. Status code `500`. Applicable to 1 of
|
|
1617
|
-
* [`CreateClassifyRouterClassifyResponse500ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse500responsebody.ts): An internal model-resolution error occurred. Status code `500`. Applicable to 1 of
|
|
1618
|
-
* [`CreateDecisionsRouterDecisionsResponse500ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse500responsebody.ts): An internal model-resolution error occurred. Status code `500`. Applicable to 1 of
|
|
1619
|
-
* [`CompactResponseResponsesResponseResponseBody`](./src/models/errors/compactresponseresponsesresponseresponsebody.ts): Failed to compact conversation. Status code `502`. Applicable to 1 of
|
|
1620
|
-
* [`SearchWebWebsearchResponse502ResponseBody`](./src/models/errors/searchwebwebsearchresponse502responsebody.ts): The search provider, PII detector, or guardrail service failed. Invalid upstream credentials can also produce this response. Status code `502`. Applicable to 1 of
|
|
1621
|
-
* [`CreateClassifyRouterClassifyResponse502ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse502responsebody.ts): The upstream provider failed or returned an invalid classification response. Status code `502`. Applicable to 1 of
|
|
1622
|
-
* [`CreateDecisionsRouterDecisionsResponse502ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse502responsebody.ts): The upstream provider failed or returned an invalid classification response. Status code `502`. Applicable to 1 of
|
|
1623
|
-
* [`SearchWebWebsearchResponse503ResponseBody`](./src/models/errors/searchwebwebsearchresponse503responsebody.ts): The gateway could not load workspace integrations. Retry when the credential store is available. Status code `503`. Applicable to 1 of
|
|
1624
|
-
* [`SearchWebWebsearchResponse504ResponseBody`](./src/models/errors/searchwebwebsearchresponse504responsebody.ts): The provider request timed out or was cancelled. Status code `504`. Applicable to 1 of
|
|
1580
|
+
* [`ErrorResponse`](./src/models/errors/errorresponse.ts): Applicable to 267 of 365 methods.*
|
|
1581
|
+
* [`APIErrorResponse`](./src/models/errors/apierrorresponse.ts): Applicable to 12 of 365 methods.*
|
|
1582
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 5 of 365 methods.*
|
|
1583
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1584
|
+
* [`CompactResponseResponseBody`](./src/models/errors/compactresponseresponsebody.ts): Model is required or request is invalid. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1585
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1586
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1587
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1588
|
+
* [`SearchWebResponseBody`](./src/models/errors/searchwebresponsebody.ts): Invalid request, unusable workspace integration, or a blocking guardrail. Check the request fields and workspace integration settings. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1589
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1590
|
+
* [`CreateClassifyResponseBody`](./src/models/errors/createclassifyresponsebody.ts): Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1591
|
+
* [`CreateDecisionsResponseBody`](./src/models/errors/createdecisionsresponsebody.ts): Malformed JSON, missing or unsupported model, or invalid retry, timeout, or fallback fields. Status code `400`. Applicable to 1 of 365 methods.*
|
|
1592
|
+
* [`CompactResponseResponsesResponseBody`](./src/models/errors/compactresponseresponsesresponsebody.ts): Unauthorized. Status code `401`. Applicable to 1 of 365 methods.*
|
|
1593
|
+
* [`SearchWebWebsearchResponseBody`](./src/models/errors/searchwebwebsearchresponsebody.ts): Missing or invalid API key. Send a valid API key in the Authorization header. Status code `401`. Applicable to 1 of 365 methods.*
|
|
1594
|
+
* [`CreateClassifyRouterClassifyResponseBody`](./src/models/errors/createclassifyrouterclassifyresponsebody.ts): Missing, invalid, expired or revoked API key. Status code `401`. Applicable to 1 of 365 methods.*
|
|
1595
|
+
* [`CreateDecisionsRouterDecisionsResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponsebody.ts): Missing, invalid, expired or revoked API key. Status code `401`. Applicable to 1 of 365 methods.*
|
|
1596
|
+
* [`SearchWebWebsearchResponseResponseBody`](./src/models/errors/searchwebwebsearchresponseresponsebody.ts): Managed search requires a positive ORQ credit balance. Add credits before retrying. BYOK does not require ORQ credits. Status code `402`. Applicable to 1 of 365 methods.*
|
|
1597
|
+
* [`SearchWebWebsearchResponse403ResponseBody`](./src/models/errors/searchwebwebsearchresponse403responsebody.ts): The API key lacks websearch.execute permission. Status code `403`. Applicable to 1 of 365 methods.*
|
|
1598
|
+
* [`CreateClassifyRouterClassifyResponseResponseBody`](./src/models/errors/createclassifyrouterclassifyresponseresponsebody.ts): The API key lacks classify permission, or the workspace or project cannot access the model. Status code `403`. Applicable to 1 of 365 methods.*
|
|
1599
|
+
* [`CreateDecisionsRouterDecisionsResponseResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponseresponsebody.ts): The API key lacks classify permission, or the workspace or project cannot access the model. Status code `403`. Applicable to 1 of 365 methods.*
|
|
1600
|
+
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1601
|
+
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1602
|
+
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1603
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1604
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1605
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1606
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1607
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1608
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1609
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1610
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1611
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace, trace, or feedback property was not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1612
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1613
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1614
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1615
|
+
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1616
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1617
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1618
|
+
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1619
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1620
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1621
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1622
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1623
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 365 methods.*
|
|
1624
|
+
* [`CreateClassifyRouterClassifyResponse408ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse408responsebody.ts): The final model call exceeded its timeout after available retries and fallbacks were exhausted. Status code `408`. Applicable to 1 of 365 methods.*
|
|
1625
|
+
* [`CreateDecisionsRouterDecisionsResponse408ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse408responsebody.ts): The final model call exceeded its timeout after available retries and fallbacks were exhausted. Status code `408`. Applicable to 1 of 365 methods.*
|
|
1626
|
+
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of 365 methods.*
|
|
1627
|
+
* [`SearchWebWebsearchResponse415ResponseBody`](./src/models/errors/searchwebwebsearchresponse415responsebody.ts): Unsupported or missing Content-Type. Send application/json; an optional charset parameter is accepted. Status code `415`. Applicable to 1 of 365 methods.*
|
|
1628
|
+
* [`SearchWebWebsearchResponse422ResponseBody`](./src/models/errors/searchwebwebsearchresponse422responsebody.ts): A configured guardrail evaluator could not complete its evaluation. Status code `422`. Applicable to 1 of 365 methods.*
|
|
1629
|
+
* [`CreateClassifyRouterClassifyResponse422ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse422responsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of 365 methods.*
|
|
1630
|
+
* [`CreateDecisionsRouterDecisionsResponse422ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse422responsebody.ts): The state or a question violates the classification contract. Status code `422`. Applicable to 1 of 365 methods.*
|
|
1631
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 365 methods.*
|
|
1632
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 365 methods.*
|
|
1633
|
+
* [`SearchWebWebsearchResponse429ResponseBody`](./src/models/errors/searchwebwebsearchresponse429responsebody.ts): A workspace or provider rate limit, or a matching budget, was reached. Wait before retrying or raise the budget. Status code `429`. Applicable to 1 of 365 methods.*
|
|
1634
|
+
* [`CreateClassifyRouterClassifyResponse429ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse429responsebody.ts): A plan rate limit, budget or provider rate limit was exceeded. Status code `429`. Applicable to 1 of 365 methods.*
|
|
1635
|
+
* [`CreateDecisionsRouterDecisionsResponse429ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse429responsebody.ts): A plan rate limit, budget or provider rate limit was exceeded. Status code `429`. Applicable to 1 of 365 methods.*
|
|
1636
|
+
* [`KnowledgeApiError`](./src/models/errors/knowledgeapierror.ts): An error has occured. Status code `500`. Applicable to 1 of 365 methods.*
|
|
1637
|
+
* [`SearchWebWebsearchResponse500ResponseBody`](./src/models/errors/searchwebwebsearchresponse500responsebody.ts): Unexpected gateway error. Include the trace ID, if available, when reporting the failure. Status code `500`. Applicable to 1 of 365 methods.*
|
|
1638
|
+
* [`CreateClassifyRouterClassifyResponse500ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse500responsebody.ts): An internal model-resolution error occurred. Status code `500`. Applicable to 1 of 365 methods.*
|
|
1639
|
+
* [`CreateDecisionsRouterDecisionsResponse500ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse500responsebody.ts): An internal model-resolution error occurred. Status code `500`. Applicable to 1 of 365 methods.*
|
|
1640
|
+
* [`CompactResponseResponsesResponseResponseBody`](./src/models/errors/compactresponseresponsesresponseresponsebody.ts): Failed to compact conversation. Status code `502`. Applicable to 1 of 365 methods.*
|
|
1641
|
+
* [`SearchWebWebsearchResponse502ResponseBody`](./src/models/errors/searchwebwebsearchresponse502responsebody.ts): The search provider, PII detector, or guardrail service failed. Invalid upstream credentials can also produce this response. Status code `502`. Applicable to 1 of 365 methods.*
|
|
1642
|
+
* [`CreateClassifyRouterClassifyResponse502ResponseBody`](./src/models/errors/createclassifyrouterclassifyresponse502responsebody.ts): The upstream provider failed or returned an invalid classification response. Status code `502`. Applicable to 1 of 365 methods.*
|
|
1643
|
+
* [`CreateDecisionsRouterDecisionsResponse502ResponseBody`](./src/models/errors/createdecisionsrouterdecisionsresponse502responsebody.ts): The upstream provider failed or returned an invalid classification response. Status code `502`. Applicable to 1 of 365 methods.*
|
|
1644
|
+
* [`SearchWebWebsearchResponse503ResponseBody`](./src/models/errors/searchwebwebsearchresponse503responsebody.ts): The gateway could not load workspace integrations. Retry when the credential store is available. Status code `503`. Applicable to 1 of 365 methods.*
|
|
1645
|
+
* [`SearchWebWebsearchResponse504ResponseBody`](./src/models/errors/searchwebwebsearchresponse504responsebody.ts): The provider request timed out or was cancelled. Status code `504`. Applicable to 1 of 365 methods.*
|
|
1625
1646
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
1626
1647
|
|
|
1627
1648
|
</details>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
7
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Create an audit log destination
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Creates a signed webhook destination that receives every audit log event recorded in the workspace from this point on. The signing secret is returned once in this response and never again.
|
|
16
|
+
*/
|
|
17
|
+
export declare function auditLogDestinationsCreate(client: OrqCore, request: components.CreateAuditLogDestinationRequest, options?: RequestOptions): APIPromise<Result<components.CreateAuditLogDestinationResponse, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=auditLogDestinationsCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.auditLogDestinationsCreate = auditLogDestinationsCreate;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Create an audit log destination
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Creates a signed webhook destination that receives every audit log event recorded in the workspace from this point on. The signing secret is returned once in this response and never again.
|
|
55
|
+
*/
|
|
56
|
+
function auditLogDestinationsCreate(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.CreateAuditLogDestinationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
66
|
+
const path = (0, url_js_1.pathToFunc)("/v3/audit-log-destinations")();
|
|
67
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
68
|
+
"Content-Type": "application/json",
|
|
69
|
+
Accept: "application/json",
|
|
70
|
+
}));
|
|
71
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
72
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
73
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
74
|
+
const context = {
|
|
75
|
+
options: client._options,
|
|
76
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
77
|
+
operationID: "AuditLogDestinationCreate",
|
|
78
|
+
oAuth2Scopes: null,
|
|
79
|
+
resolvedSecurity: requestSecurity,
|
|
80
|
+
securitySource: client._options.apiKey,
|
|
81
|
+
retryConfig: options?.retries
|
|
82
|
+
|| client._options.retryConfig
|
|
83
|
+
|| { strategy: "none" },
|
|
84
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
85
|
+
};
|
|
86
|
+
const requestRes = client._createRequest(context, {
|
|
87
|
+
security: requestSecurity,
|
|
88
|
+
method: "POST",
|
|
89
|
+
baseURL: options?.serverURL,
|
|
90
|
+
path: path,
|
|
91
|
+
headers: headers,
|
|
92
|
+
body: body,
|
|
93
|
+
userAgent: client._options.userAgent,
|
|
94
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
95
|
+
}, options);
|
|
96
|
+
if (!requestRes.ok) {
|
|
97
|
+
return [requestRes, { status: "invalid" }];
|
|
98
|
+
}
|
|
99
|
+
const req = requestRes.value;
|
|
100
|
+
const doResult = await client._do(req, {
|
|
101
|
+
context,
|
|
102
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
103
|
+
retryConfig: context.retryConfig,
|
|
104
|
+
retryCodes: context.retryCodes,
|
|
105
|
+
});
|
|
106
|
+
if (!doResult.ok) {
|
|
107
|
+
return [doResult, { status: "request-error", request: req }];
|
|
108
|
+
}
|
|
109
|
+
const response = doResult.value;
|
|
110
|
+
const responseFields = {
|
|
111
|
+
HttpMeta: { Response: response, Request: req },
|
|
112
|
+
};
|
|
113
|
+
const [result] = await M.match(M.json(200, components.CreateAuditLogDestinationResponse$inboundSchema), M.jsonErr(401, errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
114
|
+
if (!result.ok) {
|
|
115
|
+
return [result, { status: "complete", request: req, response }];
|
|
116
|
+
}
|
|
117
|
+
return [result, { status: "complete", request: req, response }];
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=auditLogDestinationsCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsCreate.js","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,gEAuBC;AApDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAIpD,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,0BAA0B,CACxC,MAAe,EACf,OAAoD,EACpD,O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C,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,+CAA+C,CAAC,EACvE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAClD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
7
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* Delete an audit log destination
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Deletes a destination and cancels its pending deliveries.
|
|
17
|
+
*/
|
|
18
|
+
export declare function auditLogDestinationsDelete(client: OrqCore, request: operations.AuditLogDestinationDeleteRequest, options?: RequestOptions): APIPromise<Result<components.DeleteAuditLogDestinationResponse, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
+
//# sourceMappingURL=auditLogDestinationsDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsDelete.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsDelete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.auditLogDestinationsDelete = auditLogDestinationsDelete;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
+
const async_js_1 = require("../types/async.js");
|
|
51
|
+
/**
|
|
52
|
+
* Delete an audit log destination
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Deletes a destination and cancels its pending deliveries.
|
|
56
|
+
*/
|
|
57
|
+
function auditLogDestinationsDelete(client, request, options) {
|
|
58
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
59
|
+
}
|
|
60
|
+
async function $do(client, request, options) {
|
|
61
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.AuditLogDestinationDeleteRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62
|
+
if (!parsed.ok) {
|
|
63
|
+
return [parsed, { status: "invalid" }];
|
|
64
|
+
}
|
|
65
|
+
const payload = parsed.value;
|
|
66
|
+
const body = null;
|
|
67
|
+
const pathParams = {
|
|
68
|
+
destination_id: (0, encodings_js_1.encodeSimple)("destination_id", payload.destination_id, {
|
|
69
|
+
explode: false,
|
|
70
|
+
charEncoding: "percent",
|
|
71
|
+
}),
|
|
72
|
+
};
|
|
73
|
+
const path = (0, url_js_1.pathToFunc)("/v3/audit-log-destinations/{destination_id}")(pathParams);
|
|
74
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
75
|
+
Accept: "application/json",
|
|
76
|
+
}));
|
|
77
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
78
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
79
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
80
|
+
const context = {
|
|
81
|
+
options: client._options,
|
|
82
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
83
|
+
operationID: "AuditLogDestinationDelete",
|
|
84
|
+
oAuth2Scopes: null,
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
securitySource: client._options.apiKey,
|
|
87
|
+
retryConfig: options?.retries
|
|
88
|
+
|| client._options.retryConfig
|
|
89
|
+
|| { strategy: "none" },
|
|
90
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
91
|
+
};
|
|
92
|
+
const requestRes = client._createRequest(context, {
|
|
93
|
+
security: requestSecurity,
|
|
94
|
+
method: "DELETE",
|
|
95
|
+
baseURL: options?.serverURL,
|
|
96
|
+
path: path,
|
|
97
|
+
headers: headers,
|
|
98
|
+
body: body,
|
|
99
|
+
userAgent: client._options.userAgent,
|
|
100
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
101
|
+
}, options);
|
|
102
|
+
if (!requestRes.ok) {
|
|
103
|
+
return [requestRes, { status: "invalid" }];
|
|
104
|
+
}
|
|
105
|
+
const req = requestRes.value;
|
|
106
|
+
const doResult = await client._do(req, {
|
|
107
|
+
context,
|
|
108
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
109
|
+
retryConfig: context.retryConfig,
|
|
110
|
+
retryCodes: context.retryCodes,
|
|
111
|
+
});
|
|
112
|
+
if (!doResult.ok) {
|
|
113
|
+
return [doResult, { status: "request-error", request: req }];
|
|
114
|
+
}
|
|
115
|
+
const response = doResult.value;
|
|
116
|
+
const responseFields = {
|
|
117
|
+
HttpMeta: { Response: response, Request: req },
|
|
118
|
+
};
|
|
119
|
+
const [result] = await M.match(M.json(200, components.DeleteAuditLogDestinationResponse$inboundSchema), M.jsonErr(401, errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
120
|
+
if (!result.ok) {
|
|
121
|
+
return [result, { status: "complete", request: req, response }];
|
|
122
|
+
}
|
|
123
|
+
return [result, { status: "complete", request: req, response }];
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=auditLogDestinationsDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsDelete.js","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsDelete.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gEAuBC;AArDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,0BAA0B,CACxC,MAAe,EACf,OAAoD,EACpD,OAAwB;IAexB,OAA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OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,+CAA+C,CAAC,EACvE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,CAAC,EAClD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
7
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
8
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { APIPromise } from "../types/async.js";
|
|
11
|
+
import { Result } from "../types/fp.js";
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an audit log destination
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Retrieves an audit log destination by ID. The signing secret is never returned.
|
|
17
|
+
*/
|
|
18
|
+
export declare function auditLogDestinationsGet(client: OrqCore, request: operations.AuditLogDestinationGetRequest, options?: RequestOptions): APIPromise<Result<components.GetAuditLogDestinationResponse, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
+
//# sourceMappingURL=auditLogDestinationsGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsGet.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,aAAa,GACpB,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|