@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsRotateSecret.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsRotateSecret.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,gCAAgC,CAC9C,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,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.auditLogDestinationsRotateSecret = auditLogDestinationsRotateSecret;
|
|
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
|
+
* Rotate the signing secret
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Generates a new signing secret for the destination. Deliveries attempted after the rotation are signed with the new secret. The new secret is returned once in this response and never again.
|
|
56
|
+
*/
|
|
57
|
+
function auditLogDestinationsRotateSecret(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.AuditLogDestinationRotateSecretRequest$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}/rotate-secret")(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: "AuditLogDestinationRotateSecret",
|
|
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: "POST",
|
|
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.RotateAuditLogDestinationSecretResponse$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=auditLogDestinationsRotateSecret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsRotateSecret.js","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsRotateSecret.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;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C,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
|
+
* Send a test event
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Sends a signed synthetic `audit_log.test` event to the destination synchronously and returns the receiver outcome. Test deliveries appear in the delivery history.
|
|
17
|
+
*/
|
|
18
|
+
export declare function auditLogDestinationsTest(client: OrqCore, request: operations.AuditLogDestinationTestRequest, options?: RequestOptions): APIPromise<Result<components.TestAuditLogDestinationResponse, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
+
//# sourceMappingURL=auditLogDestinationsTest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsTest.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsTest.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,wBAAwB,CACtC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,+BAA+B,EACxC,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.auditLogDestinationsTest = auditLogDestinationsTest;
|
|
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
|
+
* Send a test event
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* Sends a signed synthetic `audit_log.test` event to the destination synchronously and returns the receiver outcome. Test deliveries appear in the delivery history.
|
|
56
|
+
*/
|
|
57
|
+
function auditLogDestinationsTest(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.AuditLogDestinationTestRequest$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}/test")(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: "AuditLogDestinationTest",
|
|
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: "POST",
|
|
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.TestAuditLogDestinationResponse$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=auditLogDestinationsTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsTest.js","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsTest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,4DAuBC;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,wBAAwB,CACtC,MAAe,EACf,OAAkD,EAClD,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAkD,EAClD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,6CAA6C,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,cAAc,EAAE,IAAA,2BAAY,EAAC,gBAAgB,EAAE,OAAO,CAAC,cAAc,EAAE;YACrE,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CAAC;IACF,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,kDAAkD,CAAC,CACzE,UAAU,CACX,CAAC;IAEF,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAA,0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AAE,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
|
+
* Update an audit log destination
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
export declare function auditLogDestinationsUpdate(client: OrqCore, request: operations.AuditLogDestinationUpdateRequest, options?: RequestOptions): APIPromise<Result<components.UpdateAuditLogDestinationResponse, errors.ErrorResponse | OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
|
+
//# sourceMappingURL=auditLogDestinationsUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsUpdate.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsUpdate.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,128 @@
|
|
|
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.auditLogDestinationsUpdate = auditLogDestinationsUpdate;
|
|
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
|
+
* Update an audit log destination
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
* 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.
|
|
56
|
+
*/
|
|
57
|
+
function auditLogDestinationsUpdate(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.AuditLogDestinationUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
62
|
+
if (!parsed.ok) {
|
|
63
|
+
return [parsed, { status: "invalid" }];
|
|
64
|
+
}
|
|
65
|
+
const payload = parsed.value;
|
|
66
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.UpdateAuditLogDestinationRequest, {
|
|
67
|
+
explode: true,
|
|
68
|
+
});
|
|
69
|
+
const pathParams = {
|
|
70
|
+
destination_id: (0, encodings_js_1.encodeSimple)("destination_id", payload.destination_id, {
|
|
71
|
+
explode: false,
|
|
72
|
+
charEncoding: "percent",
|
|
73
|
+
}),
|
|
74
|
+
};
|
|
75
|
+
const path = (0, url_js_1.pathToFunc)("/v3/audit-log-destinations/{destination_id}")(pathParams);
|
|
76
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
77
|
+
"Content-Type": "application/json",
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
81
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
82
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
83
|
+
const context = {
|
|
84
|
+
options: client._options,
|
|
85
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
86
|
+
operationID: "AuditLogDestinationUpdate",
|
|
87
|
+
oAuth2Scopes: null,
|
|
88
|
+
resolvedSecurity: requestSecurity,
|
|
89
|
+
securitySource: client._options.apiKey,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
const requestRes = client._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "PATCH",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path,
|
|
100
|
+
headers: headers,
|
|
101
|
+
body: body,
|
|
102
|
+
userAgent: client._options.userAgent,
|
|
103
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return [requestRes, { status: "invalid" }];
|
|
107
|
+
}
|
|
108
|
+
const req = requestRes.value;
|
|
109
|
+
const doResult = await client._do(req, {
|
|
110
|
+
context,
|
|
111
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
112
|
+
retryConfig: context.retryConfig,
|
|
113
|
+
retryCodes: context.retryCodes,
|
|
114
|
+
});
|
|
115
|
+
if (!doResult.ok) {
|
|
116
|
+
return [doResult, { status: "request-error", request: req }];
|
|
117
|
+
}
|
|
118
|
+
const response = doResult.value;
|
|
119
|
+
const responseFields = {
|
|
120
|
+
HttpMeta: { Response: response, Request: req },
|
|
121
|
+
};
|
|
122
|
+
const [result] = await M.match(M.json(200, components.UpdateAuditLogDestinationResponse$inboundSchema), M.jsonErr(401, errors.ErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
123
|
+
if (!result.ok) {
|
|
124
|
+
return [result, { status: "complete", request: req, response }];
|
|
125
|
+
}
|
|
126
|
+
return [result, { status: "complete", request: req, response }];
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=auditLogDestinationsUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditLogDestinationsUpdate.js","sourceRoot":"","sources":["../src/funcs/auditLogDestinationsUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gEAuBC;AArDD,sDAA+D;AAC/D,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,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAoD,EACpD,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,+CAA+C,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE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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"}
|
|
@@ -12,11 +12,11 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Search the web with a selected provider
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Search with Exa, Ceramic, Linkup, Tavily, Serper, OpenAI, or
|
|
15
|
+
* 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**.
|
|
16
16
|
*
|
|
17
17
|
* ### Provider and credentials
|
|
18
18
|
*
|
|
19
|
-
* Each request uses the selected provider. Exa uses **auto** search, Linkup uses **standard** depth, Tavily uses **basic** depth, and Perplexity
|
|
19
|
+
* 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.
|
|
20
20
|
*
|
|
21
21
|
* 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.
|
|
22
22
|
*
|
|
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
|
|
|
26
26
|
*
|
|
27
27
|
* 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.
|
|
28
28
|
*
|
|
29
|
-
* 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.
|
|
29
|
+
* 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.
|
|
30
30
|
*
|
|
31
31
|
* A successful managed search is billable even if an output guardrail or output redaction failure prevents the results from being returned.
|
|
32
32
|
*
|
package/funcs/websearchSearch.js
CHANGED
|
@@ -51,11 +51,11 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* Search the web with a selected provider
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Search with Exa, Ceramic, Linkup, Tavily, Serper, OpenAI, or
|
|
54
|
+
* 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**.
|
|
55
55
|
*
|
|
56
56
|
* ### Provider and credentials
|
|
57
57
|
*
|
|
58
|
-
* Each request uses the selected provider. Exa uses **auto** search, Linkup uses **standard** depth, Tavily uses **basic** depth, and Perplexity
|
|
58
|
+
* 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.
|
|
59
59
|
*
|
|
60
60
|
* 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.
|
|
61
61
|
*
|
|
@@ -65,7 +65,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
65
65
|
*
|
|
66
66
|
* 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.
|
|
67
67
|
*
|
|
68
|
-
* 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.
|
|
68
|
+
* 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.
|
|
69
69
|
*
|
|
70
70
|
* A successful managed search is billable even if an output guardrail or output redaction failure prevents the results from being returned.
|
|
71
71
|
*
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "2.0";
|
|
34
|
-
readonly sdkVersion: "4.17.0-rc.
|
|
34
|
+
readonly sdkVersion: "4.17.0-rc.34";
|
|
35
35
|
readonly genVersion: "2.948.4";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.17.0-rc.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.17.0-rc.34 2.948.4 2.0 @orq-ai/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "4.17.0-rc.
|
|
31
|
+
sdkVersion: "4.17.0-rc.34",
|
|
32
32
|
genVersion: "2.948.4",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.34 2.948.4 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AuditLogDeliveryKind } from "./auditlogdeliverykind.js";
|
|
5
|
+
import { AuditLogDeliveryStatus } from "./auditlogdeliverystatus.js";
|
|
6
|
+
export type AuditLogDelivery = {
|
|
7
|
+
id: string;
|
|
8
|
+
destinationId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Audit log entry ID carried in the payload. Replays reuse the original event ID.
|
|
11
|
+
*/
|
|
12
|
+
eventId: string;
|
|
13
|
+
kind: AuditLogDeliveryKind;
|
|
14
|
+
status: AuditLogDeliveryStatus;
|
|
15
|
+
/**
|
|
16
|
+
* Number of HTTP attempts made so far.
|
|
17
|
+
*/
|
|
18
|
+
attempts: number;
|
|
19
|
+
/**
|
|
20
|
+
* When the next attempt is due, while pending.
|
|
21
|
+
*/
|
|
22
|
+
nextAttemptAt?: Date | undefined;
|
|
23
|
+
lastAttemptAt?: Date | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* HTTP status of the last attempt, 0 when the request never completed.
|
|
26
|
+
*/
|
|
27
|
+
lastStatusCode?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Short description of the last failure.
|
|
30
|
+
*/
|
|
31
|
+
lastError?: string | undefined;
|
|
32
|
+
deliveredAt?: Date | undefined;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
/**
|
|
35
|
+
* Replay request that queued this delivery, empty for live deliveries.
|
|
36
|
+
*/
|
|
37
|
+
replayId?: string | undefined;
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const AuditLogDelivery$inboundSchema: z.ZodType<AuditLogDelivery, z.ZodTypeDef, unknown>;
|
|
41
|
+
export declare function auditLogDeliveryFromJSON(jsonString: string): SafeParseResult<AuditLogDelivery, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=auditlogdelivery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogdelivery.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlogdelivery.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EAEvB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,EAAE,MA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