@orq-ai/node 4.15.0-rc.6 → 4.15.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -28
- package/funcs/auditLogsQuery.d.ts +17 -0
- package/funcs/auditLogsQuery.d.ts.map +1 -0
- package/funcs/auditLogsQuery.js +115 -0
- package/funcs/auditLogsQuery.js.map +1 -0
- package/funcs/workspacesGet.d.ts +18 -0
- package/funcs/workspacesGet.d.ts.map +1 -0
- package/funcs/workspacesGet.js +121 -0
- package/funcs/workspacesGet.js.map +1 -0
- package/funcs/workspacesList.d.ts +18 -0
- package/funcs/workspacesList.d.ts.map +1 -0
- package/funcs/workspacesList.js +121 -0
- package/funcs/workspacesList.js.map +1 -0
- package/funcs/workspacesUpdate.d.ts +18 -0
- package/funcs/workspacesUpdate.d.ts.map +1 -0
- package/funcs/workspacesUpdate.js +124 -0
- package/funcs/workspacesUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/auditlog.d.ts +60 -0
- package/models/components/auditlog.d.ts.map +1 -0
- package/models/components/auditlog.js +83 -0
- package/models/components/auditlog.js.map +1 -0
- package/models/components/auditlogfilter.d.ts +33 -0
- package/models/components/auditlogfilter.d.ts.map +1 -0
- package/models/components/auditlogfilter.js +52 -0
- package/models/components/auditlogfilter.js.map +1 -0
- package/models/components/auditlogfilterquery.d.ts +29 -0
- package/models/components/auditlogfilterquery.d.ts.map +1 -0
- package/models/components/auditlogfilterquery.js +52 -0
- package/models/components/auditlogfilterquery.js.map +1 -0
- package/models/components/auditlogpagination.d.ts +28 -0
- package/models/components/auditlogpagination.d.ts.map +1 -0
- package/models/components/auditlogpagination.js +57 -0
- package/models/components/auditlogpagination.js.map +1 -0
- package/models/components/auditlogsort.d.ts +23 -0
- package/models/components/auditlogsort.d.ts.map +1 -0
- package/models/components/{policyprofileidlist.js → auditlogsort.js} +8 -7
- package/models/components/auditlogsort.js.map +1 -0
- package/models/components/budgetmatch.d.ts +1 -7
- package/models/components/budgetmatch.d.ts.map +1 -1
- package/models/components/budgetmatch.js.map +1 -1
- package/models/components/budgetscope.d.ts +1 -14
- package/models/components/budgetscope.d.ts.map +1 -1
- package/models/components/budgetscope.js +0 -3
- package/models/components/budgetscope.js.map +1 -1
- package/models/components/budgetscopekind.d.ts +0 -1
- package/models/components/budgetscopekind.d.ts.map +1 -1
- package/models/components/budgetscopekind.js +0 -1
- package/models/components/budgetscopekind.js.map +1 -1
- package/models/components/budgetscoperestresponse.d.ts +1 -13
- package/models/components/budgetscoperestresponse.d.ts.map +1 -1
- package/models/components/budgetscoperestresponse.js +0 -2
- package/models/components/budgetscoperestresponse.js.map +1 -1
- package/models/components/getworkspaceresponse.d.ts +11 -0
- package/models/components/getworkspaceresponse.d.ts.map +1 -0
- package/models/components/{factorybudgetscoperestresponse.js → getworkspaceresponse.js} +8 -7
- package/models/components/getworkspaceresponse.js.map +1 -0
- package/models/components/index.d.ts +16 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +16 -3
- package/models/components/index.js.map +1 -1
- package/models/components/listworkspacesresponse.d.ts +13 -0
- package/models/components/listworkspacesresponse.d.ts.map +1 -0
- package/models/components/{factorybudgetscope.js → listworkspacesresponse.js} +11 -20
- package/models/components/listworkspacesresponse.js.map +1 -0
- package/models/components/piiredactionconfig.d.ts +7 -9
- package/models/components/piiredactionconfig.d.ts.map +1 -1
- package/models/components/piiredactionconfig.js.map +1 -1
- package/models/components/queryauditlogsrequest.d.ts +31 -0
- package/models/components/queryauditlogsrequest.d.ts.map +1 -0
- package/models/components/queryauditlogsrequest.js +54 -0
- package/models/components/queryauditlogsrequest.js.map +1 -0
- package/models/components/queryauditlogsresponse.d.ts +25 -0
- package/models/components/queryauditlogsresponse.d.ts.map +1 -0
- package/models/components/queryauditlogsresponse.js +60 -0
- package/models/components/queryauditlogsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/updateworkspacerequest.d.ts +29 -0
- package/models/components/updateworkspacerequest.d.ts.map +1 -0
- package/models/components/updateworkspacerequest.js +69 -0
- package/models/components/updateworkspacerequest.js.map +1 -0
- package/models/components/updateworkspaceresponse.d.ts +11 -0
- package/models/components/updateworkspaceresponse.d.ts.map +1 -0
- package/models/components/updateworkspaceresponse.js +51 -0
- package/models/components/updateworkspaceresponse.js.map +1 -0
- package/models/components/updateworkspacesettingsrequest.d.ts +0 -3
- package/models/components/updateworkspacesettingsrequest.d.ts.map +1 -1
- package/models/components/updateworkspacesettingsrequest.js +0 -3
- package/models/components/updateworkspacesettingsrequest.js.map +1 -1
- package/models/components/value.d.ts +13 -0
- package/models/components/value.d.ts.map +1 -0
- package/models/components/value.js +50 -0
- package/models/components/value.js.map +1 -0
- package/models/components/workspace.d.ts +33 -0
- package/models/components/workspace.d.ts.map +1 -0
- package/models/components/workspace.js +88 -0
- package/models/components/workspace.js.map +1 -0
- package/models/components/workspacecapabilities.d.ts +11 -0
- package/models/components/workspacecapabilities.d.ts.map +1 -0
- package/models/components/workspacecapabilities.js +51 -0
- package/models/components/workspacecapabilities.js.map +1 -0
- package/models/components/workspaceorganization.d.ts +11 -0
- package/models/components/workspaceorganization.d.ts.map +1 -0
- package/models/components/workspaceorganization.js +51 -0
- package/models/components/workspaceorganization.js.map +1 -0
- package/models/components/workspacesettings.d.ts +0 -1
- package/models/components/workspacesettings.d.ts.map +1 -1
- package/models/components/workspacesettings.js +0 -2
- package/models/components/workspacesettings.js.map +1 -1
- package/models/components/workspacesettingsfields.d.ts +39 -0
- package/models/components/workspacesettingsfields.d.ts.map +1 -0
- package/models/components/workspacesettingsfields.js +99 -0
- package/models/components/workspacesettingsfields.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- 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 +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.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/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/models/operations/workspaceget.d.ts +12 -0
- package/models/operations/workspaceget.d.ts.map +1 -0
- package/models/operations/workspaceget.js +49 -0
- package/models/operations/workspaceget.js.map +1 -0
- package/models/operations/workspacelist.d.ts +16 -0
- package/models/operations/workspacelist.d.ts.map +1 -0
- package/models/operations/workspacelist.js +57 -0
- package/models/operations/workspacelist.js.map +1 -0
- package/models/operations/workspaceupdate.d.ts +15 -0
- package/models/operations/workspaceupdate.d.ts.map +1 -0
- package/models/operations/workspaceupdate.js +56 -0
- package/models/operations/workspaceupdate.js.map +1 -0
- package/package.json +6 -6
- package/sdk/auditlogs.d.ts +12 -0
- package/sdk/auditlogs.d.ts.map +1 -0
- package/sdk/auditlogs.js +22 -0
- package/sdk/auditlogs.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/workspaces.d.ts +27 -0
- package/sdk/workspaces.d.ts.map +1 -0
- package/sdk/workspaces.js +42 -0
- package/sdk/workspaces.js.map +1 -0
- package/src/funcs/auditLogsQuery.ts +162 -0
- package/src/funcs/workspacesGet.ts +168 -0
- package/src/funcs/workspacesList.ts +170 -0
- package/src/funcs/workspacesUpdate.ts +171 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/auditlog.ts +122 -0
- package/src/models/components/auditlogfilter.ts +51 -0
- package/src/models/components/auditlogfilterquery.ts +54 -0
- package/src/models/components/auditlogpagination.ts +55 -0
- package/src/models/components/auditlogsort.ts +39 -0
- package/src/models/components/budgetmatch.ts +1 -7
- package/src/models/components/budgetscope.ts +1 -21
- package/src/models/components/budgetscopekind.ts +0 -1
- package/src/models/components/budgetscoperestresponse.ts +1 -17
- package/src/models/components/getworkspaceresponse.ts +32 -0
- package/src/models/components/index.ts +16 -3
- package/src/models/components/listworkspacesresponse.ts +41 -0
- package/src/models/components/piiredactionconfig.ts +7 -9
- package/src/models/components/queryauditlogsrequest.ts +64 -0
- package/src/models/components/queryauditlogsresponse.ts +55 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/updateworkspacerequest.ts +81 -0
- package/src/models/components/updateworkspaceresponse.ts +32 -0
- package/src/models/components/updateworkspacesettingsrequest.ts +0 -9
- package/src/models/components/value.ts +20 -0
- package/src/models/components/workspace.ts +116 -0
- package/src/models/components/workspacecapabilities.ts +33 -0
- package/src/models/components/workspaceorganization.ts +33 -0
- package/src/models/components/workspacesettings.ts +0 -3
- package/src/models/components/workspacesettingsfields.ts +135 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- 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 +3 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.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/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/models/operations/workspaceget.ts +31 -0
- package/src/models/operations/workspacelist.ts +43 -0
- package/src/models/operations/workspaceupdate.ts +40 -0
- package/src/sdk/auditlogs.ts +27 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/workspaces.ts +64 -0
- package/models/components/factorybudgetscope.d.ts +0 -23
- package/models/components/factorybudgetscope.d.ts.map +0 -1
- package/models/components/factorybudgetscope.js.map +0 -1
- package/models/components/factorybudgetscoperestresponse.d.ts +0 -16
- package/models/components/factorybudgetscoperestresponse.d.ts.map +0 -1
- package/models/components/factorybudgetscoperestresponse.js.map +0 -1
- package/models/components/policyprofileidlist.d.ts +0 -12
- package/models/components/policyprofileidlist.d.ts.map +0 -1
- package/models/components/policyprofileidlist.js.map +0 -1
- package/src/models/components/factorybudgetscope.ts +0 -66
- package/src/models/components/factorybudgetscoperestresponse.ts +0 -37
- package/src/models/components/policyprofileidlist.ts +0 -31
|
@@ -0,0 +1,124 @@
|
|
|
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.workspacesUpdate = workspacesUpdate;
|
|
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 operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Update a workspace
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Partially updates a workspace. Omit a field to leave it unchanged. Set `archived` to true to archive, false to restore. The workspace key cannot be changed.
|
|
55
|
+
*/
|
|
56
|
+
function workspacesUpdate(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) => operations.WorkspaceUpdateRequest$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.UpdateWorkspaceRequest, {
|
|
66
|
+
explode: true,
|
|
67
|
+
});
|
|
68
|
+
const pathParams = {
|
|
69
|
+
key: (0, encodings_js_1.encodeSimple)("key", payload.key, {
|
|
70
|
+
explode: false,
|
|
71
|
+
charEncoding: "percent",
|
|
72
|
+
}),
|
|
73
|
+
};
|
|
74
|
+
const path = (0, url_js_1.pathToFunc)("/v2/workspaces/{key}")(pathParams);
|
|
75
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
76
|
+
"Content-Type": "application/json",
|
|
77
|
+
Accept: "application/json",
|
|
78
|
+
}));
|
|
79
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
80
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
81
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
82
|
+
const context = {
|
|
83
|
+
options: client._options,
|
|
84
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
|
+
operationID: "WorkspaceUpdate",
|
|
86
|
+
oAuth2Scopes: null,
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
securitySource: client._options.apiKey,
|
|
89
|
+
retryConfig: options?.retries
|
|
90
|
+
|| client._options.retryConfig
|
|
91
|
+
|| { strategy: "none" },
|
|
92
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
93
|
+
};
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "PATCH",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
body: body,
|
|
101
|
+
userAgent: client._options.userAgent,
|
|
102
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
103
|
+
}, options);
|
|
104
|
+
if (!requestRes.ok) {
|
|
105
|
+
return [requestRes, { status: "invalid" }];
|
|
106
|
+
}
|
|
107
|
+
const req = requestRes.value;
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return [doResult, { status: "request-error", request: req }];
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
const [result] = await M.match(M.json(200, components.UpdateWorkspaceResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
119
|
+
if (!result.ok) {
|
|
120
|
+
return [result, { status: "complete", request: req, response }];
|
|
121
|
+
}
|
|
122
|
+
return [result, { status: "complete", request: req, response }];
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=workspacesUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspacesUpdate.js","sourceRoot":"","sources":["../src/funcs/workspacesUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,4CAsBC;AAnDD,sDA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,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.15.0-rc.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
34
|
+
readonly sdkVersion: "4.15.0-rc.8";
|
|
35
|
+
readonly genVersion: "2.933.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.15.0-rc.8 2.933.0 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.15.0-rc.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
31
|
+
sdkVersion: "4.15.0-rc.8",
|
|
32
|
+
genVersion: "2.933.0",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.8 2.933.0 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAsCH,oDAeC;AAhDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,mBAAmB;CACX,CAAC;AA0BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IA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,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,+DAA+D;CAClE,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { Value } from "./value.js";
|
|
5
|
+
/**
|
|
6
|
+
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
7
|
+
*/
|
|
8
|
+
export type AuditLogMetadata = {};
|
|
9
|
+
/**
|
|
10
|
+
* An audit log entry for an entity event in the authenticated workspace.
|
|
11
|
+
*/
|
|
12
|
+
export type AuditLog = {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the audit log entry.
|
|
15
|
+
*/
|
|
16
|
+
auditLogId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Project associated with the event, when the audited entity belongs to a project.
|
|
19
|
+
*/
|
|
20
|
+
projectId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Identifier of the entity that changed.
|
|
23
|
+
*/
|
|
24
|
+
entityId: string;
|
|
25
|
+
entityType: Value;
|
|
26
|
+
action: Value;
|
|
27
|
+
/**
|
|
28
|
+
* User or system actor that caused the event, when available.
|
|
29
|
+
*/
|
|
30
|
+
actorId?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* IP address observed for the actor, when available.
|
|
33
|
+
*/
|
|
34
|
+
actorIp?: string | undefined;
|
|
35
|
+
actorType?: Value | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Human readable actor name captured when the action happened.
|
|
38
|
+
*/
|
|
39
|
+
actorDisplay?: string | undefined;
|
|
40
|
+
origin?: Value | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Correlates the entry with the originating request.
|
|
43
|
+
*/
|
|
44
|
+
requestId?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Time when the audit log entry was created.
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
51
|
+
*/
|
|
52
|
+
metadata?: AuditLogMetadata | undefined;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const AuditLogMetadata$inboundSchema: z.ZodType<AuditLogMetadata, z.ZodTypeDef, unknown>;
|
|
56
|
+
export declare function auditLogMetadataFromJSON(jsonString: string): SafeParseResult<AuditLogMetadata, SDKValidationError>;
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const AuditLog$inboundSchema: z.ZodType<AuditLog, z.ZodTypeDef, unknown>;
|
|
59
|
+
export declare function auditLogFromJSON(jsonString: string): SafeParseResult<AuditLog, SDKValidationError>;
|
|
60
|
+
//# sourceMappingURL=auditlog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlog.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlog.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,EAAE,KAAK,EAAuB,MAAM,YAAY,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CACO,CAAC;AAEjB,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD;AAED,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CA4BP,CAAC;AAEH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.AuditLog$inboundSchema = exports.AuditLogMetadata$inboundSchema = void 0;
|
|
40
|
+
exports.auditLogMetadataFromJSON = auditLogMetadataFromJSON;
|
|
41
|
+
exports.auditLogFromJSON = auditLogFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const value_js_1 = require("./value.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.AuditLogMetadata$inboundSchema = z.object({});
|
|
48
|
+
function auditLogMetadataFromJSON(jsonString) {
|
|
49
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AuditLogMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLogMetadata' from JSON`);
|
|
50
|
+
}
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.AuditLog$inboundSchema = z.object({
|
|
53
|
+
audit_log_id: z.string(),
|
|
54
|
+
project_id: z.string().optional(),
|
|
55
|
+
entity_id: z.string(),
|
|
56
|
+
entity_type: value_js_1.Value$inboundSchema,
|
|
57
|
+
action: value_js_1.Value$inboundSchema,
|
|
58
|
+
actor_id: z.string().optional(),
|
|
59
|
+
actor_ip: z.string().optional(),
|
|
60
|
+
actor_type: value_js_1.Value$inboundSchema.optional(),
|
|
61
|
+
actor_display: z.string().optional(),
|
|
62
|
+
origin: value_js_1.Value$inboundSchema.optional(),
|
|
63
|
+
request_id: z.string().optional(),
|
|
64
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
65
|
+
metadata: z.lazy(() => exports.AuditLogMetadata$inboundSchema).optional(),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return (0, primitives_js_1.remap)(v, {
|
|
68
|
+
"audit_log_id": "auditLogId",
|
|
69
|
+
"project_id": "projectId",
|
|
70
|
+
"entity_id": "entityId",
|
|
71
|
+
"entity_type": "entityType",
|
|
72
|
+
"actor_id": "actorId",
|
|
73
|
+
"actor_ip": "actorIp",
|
|
74
|
+
"actor_type": "actorType",
|
|
75
|
+
"actor_display": "actorDisplay",
|
|
76
|
+
"request_id": "requestId",
|
|
77
|
+
"created_at": "createdAt",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
function auditLogFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AuditLog$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLog' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=auditlog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlog.js","sourceRoot":"","sources":["../../src/models/components/auditlog.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEH,4DAQC;AAoCD,4CAQC;AArHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,yCAAwD;AAqDxD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,8BAAmB;IAChC,MAAM,EAAE,8BAAmB;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,8BAAmB,CAAC,QAAQ,EAAE;IAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,8BAAmB,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAA8B,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,YAAY;QAC5B,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;QACvB,aAAa,EAAE,YAAY;QAC3B,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* A single advanced filter applied to audit logs.
|
|
4
|
+
*/
|
|
5
|
+
export type AuditLogFilter = {
|
|
6
|
+
/**
|
|
7
|
+
* Filter value type, such as string, date, number, boolean, or array.
|
|
8
|
+
*/
|
|
9
|
+
type: string;
|
|
10
|
+
/**
|
|
11
|
+
* Audit log field path to filter on. Supported paths include created_at, entity_id, entity_type, action, actor_id, and metadata.display_name.
|
|
12
|
+
*/
|
|
13
|
+
path: string;
|
|
14
|
+
/**
|
|
15
|
+
* Filter operator supported by the selected field type.
|
|
16
|
+
*/
|
|
17
|
+
operator: string;
|
|
18
|
+
/**
|
|
19
|
+
* Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
|
|
20
|
+
*/
|
|
21
|
+
value?: any | undefined;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type AuditLogFilter$Outbound = {
|
|
25
|
+
type: string;
|
|
26
|
+
path: string;
|
|
27
|
+
operator: string;
|
|
28
|
+
value?: any | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const AuditLogFilter$outboundSchema: z.ZodType<AuditLogFilter$Outbound, z.ZodTypeDef, AuditLogFilter>;
|
|
32
|
+
export declare function auditLogFilterToJSON(auditLogFilter: AuditLogFilter): string;
|
|
33
|
+
//# sourceMappingURL=auditlogfilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlogfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAMd,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.AuditLogFilter$outboundSchema = void 0;
|
|
40
|
+
exports.auditLogFilterToJSON = auditLogFilterToJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.AuditLogFilter$outboundSchema = z.object({
|
|
44
|
+
type: z.string(),
|
|
45
|
+
path: z.string(),
|
|
46
|
+
operator: z.string(),
|
|
47
|
+
value: z.any().optional(),
|
|
48
|
+
});
|
|
49
|
+
function auditLogFilterToJSON(auditLogFilter) {
|
|
50
|
+
return JSON.stringify(exports.AuditLogFilter$outboundSchema.parse(auditLogFilter));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=auditlogfilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogfilter.js","sourceRoot":"","sources":["../../src/models/components/auditlogfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,oDAEC;AA9CD,0CAA4B;AAgC5B,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC1B,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { AuditLogFilter, AuditLogFilter$Outbound } from "./auditlogfilter.js";
|
|
3
|
+
/**
|
|
4
|
+
* Search and advanced filters for querying audit logs.
|
|
5
|
+
*/
|
|
6
|
+
export type AuditLogFilterQuery = {
|
|
7
|
+
/**
|
|
8
|
+
* Optional text search applied to supported display fields.
|
|
9
|
+
*/
|
|
10
|
+
search?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Logical operator used to combine filters.
|
|
13
|
+
*/
|
|
14
|
+
operator: string;
|
|
15
|
+
/**
|
|
16
|
+
* Advanced filters applied to the query.
|
|
17
|
+
*/
|
|
18
|
+
filters: Array<AuditLogFilter>;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type AuditLogFilterQuery$Outbound = {
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
operator: string;
|
|
24
|
+
filters: Array<AuditLogFilter$Outbound>;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const AuditLogFilterQuery$outboundSchema: z.ZodType<AuditLogFilterQuery$Outbound, z.ZodTypeDef, AuditLogFilterQuery>;
|
|
28
|
+
export declare function auditLogFilterQueryToJSON(auditLogFilterQuery: AuditLogFilterQuery): string;
|
|
29
|
+
//# sourceMappingURL=auditlogfilterquery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogfilterquery.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlogfilterquery.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAKnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.AuditLogFilterQuery$outboundSchema = void 0;
|
|
40
|
+
exports.auditLogFilterQueryToJSON = auditLogFilterQueryToJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const auditlogfilter_js_1 = require("./auditlogfilter.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.AuditLogFilterQuery$outboundSchema = z.object({
|
|
45
|
+
search: z.string().optional(),
|
|
46
|
+
operator: z.string(),
|
|
47
|
+
filters: z.array(auditlogfilter_js_1.AuditLogFilter$outboundSchema),
|
|
48
|
+
});
|
|
49
|
+
function auditLogFilterQueryToJSON(auditLogFilterQuery) {
|
|
50
|
+
return JSON.stringify(exports.AuditLogFilterQuery$outboundSchema.parse(auditLogFilterQuery));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=auditlogfilterquery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogfilterquery.js","sourceRoot":"","sources":["../../src/models/components/auditlogfilterquery.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CH,8DAMC;AAjDD,0CAA4B;AAC5B,2DAI6B;AA2B7B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,iDAA6B,CAAC;CAChD,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* Cursor pagination settings for audit log queries.
|
|
4
|
+
*/
|
|
5
|
+
export type AuditLogPagination = {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of audit logs to return. Defaults to 50 when omitted.
|
|
8
|
+
*/
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Cursor for the next page. Use the last audit_log_id from the previous page.
|
|
12
|
+
*/
|
|
13
|
+
startingAfter?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Cursor for the previous page. Use the first audit_log_id from the current page.
|
|
16
|
+
*/
|
|
17
|
+
endingBefore?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type AuditLogPagination$Outbound = {
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
starting_after?: string | undefined;
|
|
23
|
+
ending_before?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const AuditLogPagination$outboundSchema: z.ZodType<AuditLogPagination$Outbound, z.ZodTypeDef, AuditLogPagination>;
|
|
27
|
+
export declare function auditLogPaginationToJSON(auditLogPagination: AuditLogPagination): string;
|
|
28
|
+
//# sourceMappingURL=auditlogpagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogpagination.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlogpagination.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAUlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.AuditLogPagination$outboundSchema = void 0;
|
|
40
|
+
exports.auditLogPaginationToJSON = auditLogPaginationToJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.AuditLogPagination$outboundSchema = z.object({
|
|
45
|
+
limit: z.number().int().optional(),
|
|
46
|
+
startingAfter: z.string().optional(),
|
|
47
|
+
endingBefore: z.string().optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return (0, primitives_js_1.remap)(v, {
|
|
50
|
+
startingAfter: "starting_after",
|
|
51
|
+
endingBefore: "ending_before",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
function auditLogPaginationToJSON(auditLogPagination) {
|
|
55
|
+
return JSON.stringify(exports.AuditLogPagination$outboundSchema.parse(auditLogPagination));
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=auditlogpagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogpagination.js","sourceRoot":"","sources":["../../src/models/components/auditlogpagination.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,4DAMC;AAlDD,0CAA4B;AAC5B,2DAA0D;AA2B1D,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
/**
|
|
3
|
+
* A sort expression for audit log queries.
|
|
4
|
+
*/
|
|
5
|
+
export type AuditLogSort = {
|
|
6
|
+
/**
|
|
7
|
+
* Audit log field to sort by. Supported keys include _id, created_at, entity_type, entity_id, action, and actor_id.
|
|
8
|
+
*/
|
|
9
|
+
key: string;
|
|
10
|
+
/**
|
|
11
|
+
* Sort direction. Defaults to desc when omitted or invalid.
|
|
12
|
+
*/
|
|
13
|
+
direction?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type AuditLogSort$Outbound = {
|
|
17
|
+
key: string;
|
|
18
|
+
direction?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const AuditLogSort$outboundSchema: z.ZodType<AuditLogSort$Outbound, z.ZodTypeDef, AuditLogSort>;
|
|
22
|
+
export declare function auditLogSortToJSON(auditLogSort: AuditLogSort): string;
|
|
23
|
+
//# sourceMappingURL=auditlogsort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditlogsort.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlogsort.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAIZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE"}
|