@onkernel/sdk 0.86.1 → 0.87.1
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/CHANGELOG.md +19 -1
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/lib/browser-routing.js +3 -3
- package/lib/browser-routing.js.map +1 -1
- package/lib/browser-routing.mjs +3 -3
- package/lib/browser-routing.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs/audit-logs.d.mts +169 -0
- package/resources/audit-logs/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs/audit-logs.d.ts +169 -0
- package/resources/audit-logs/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs/audit-logs.js +53 -0
- package/resources/audit-logs/audit-logs.js.map +1 -0
- package/resources/audit-logs/audit-logs.mjs +48 -0
- package/resources/audit-logs/audit-logs.mjs.map +1 -0
- package/resources/audit-logs/export-destinations.d.mts +163 -0
- package/resources/audit-logs/export-destinations.d.mts.map +1 -0
- package/resources/audit-logs/export-destinations.d.ts +163 -0
- package/resources/audit-logs/export-destinations.d.ts.map +1 -0
- package/resources/audit-logs/export-destinations.js +62 -0
- package/resources/audit-logs/export-destinations.js.map +1 -0
- package/resources/audit-logs/export-destinations.mjs +58 -0
- package/resources/audit-logs/export-destinations.mjs.map +1 -0
- package/resources/audit-logs/index.d.mts +3 -0
- package/resources/audit-logs/index.d.mts.map +1 -0
- package/resources/audit-logs/index.d.ts +3 -0
- package/resources/audit-logs/index.d.ts.map +1 -0
- package/resources/audit-logs/index.js +9 -0
- package/resources/audit-logs/index.js.map +1 -0
- package/resources/audit-logs/index.mjs +4 -0
- package/resources/audit-logs/index.mjs.map +1 -0
- package/resources/audit-logs.d.mts +1 -164
- package/resources/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs.d.ts +1 -164
- package/resources/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs.js +2 -41
- package/resources/audit-logs.js.map +1 -1
- package/resources/audit-logs.mjs +1 -39
- package/resources/audit-logs.mjs.map +1 -1
- package/resources/auth/auth.d.mts +4 -0
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +4 -0
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.js +4 -0
- package/resources/auth/auth.js.map +1 -1
- package/resources/auth/auth.mjs +4 -0
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/context.d.mts +106 -0
- package/resources/auth/context.d.mts.map +1 -0
- package/resources/auth/context.d.ts +106 -0
- package/resources/auth/context.d.ts.map +1 -0
- package/resources/auth/context.js +25 -0
- package/resources/auth/context.js.map +1 -0
- package/resources/auth/context.mjs +21 -0
- package/resources/auth/context.mjs.map +1 -0
- package/resources/auth/index.d.mts +1 -0
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -0
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.js +3 -1
- package/resources/auth/index.js.map +1 -1
- package/resources/auth/index.mjs +1 -0
- package/resources/auth/index.mjs.map +1 -1
- package/resources/browser-pools.d.mts +5 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +5 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +20 -0
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +20 -0
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +5 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +5 -0
- package/resources/invocations.d.ts.map +1 -1
- package/src/client.ts +7 -7
- package/src/lib/browser-routing.ts +3 -2
- package/src/resources/audit-logs/audit-logs.ts +281 -0
- package/src/resources/audit-logs/export-destinations.ts +262 -0
- package/src/resources/audit-logs/index.ts +25 -0
- package/src/resources/audit-logs.ts +1 -249
- package/src/resources/auth/auth.ts +6 -0
- package/src/resources/auth/context.ts +125 -0
- package/src/resources/auth/index.ts +1 -0
- package/src/resources/browser-pools.ts +6 -0
- package/src/resources/browsers/browsers.ts +24 -0
- package/src/resources/index.ts +1 -1
- package/src/resources/invocations.ts +6 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Read audit log records for the authenticated organization.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ExportDestinations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a paused destination. Activate it with a status update once the
|
|
11
|
+
* destination test passes. Requires an active Enterprise plan.
|
|
12
|
+
*/
|
|
13
|
+
create(body: ExportDestinationCreateParams, options?: RequestOptions): APIPromise<AuditLogExportDestination>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve details for a single audit log export destination by its ID.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<AuditLogExportDestination>;
|
|
18
|
+
/**
|
|
19
|
+
* Apply a partial update to a destination. Requires an active Enterprise plan.
|
|
20
|
+
* Returns 409 when the destination was changed concurrently, because the merged
|
|
21
|
+
* configuration this request validated is no longer the one that would be stored;
|
|
22
|
+
* retry against fresh state. Pausing prevents new delivery attempts, but an S3
|
|
23
|
+
* upload already in progress may complete after the response.
|
|
24
|
+
*/
|
|
25
|
+
update(id: string, body: ExportDestinationUpdateParams, options?: RequestOptions): APIPromise<AuditLogExportDestination>;
|
|
26
|
+
/**
|
|
27
|
+
* List audit log export destinations for the organization with pagination support.
|
|
28
|
+
*/
|
|
29
|
+
list(query?: ExportDestinationListParams | null | undefined, options?: RequestOptions): PagePromise<AuditLogExportDestinationsOffsetPagination, AuditLogExportDestination>;
|
|
30
|
+
/**
|
|
31
|
+
* Soft delete the destination and prevent new delivery attempts. An S3 upload
|
|
32
|
+
* already in progress may complete after the response.
|
|
33
|
+
*/
|
|
34
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Verify the destination is writable by assuming the configured role and uploading
|
|
37
|
+
* a temporary probe object with the same request metadata as a real delivery.
|
|
38
|
+
* Requires an active Enterprise plan.
|
|
39
|
+
*/
|
|
40
|
+
test(id: string, options?: RequestOptions): APIPromise<AuditLogExportDestinationTestResult>;
|
|
41
|
+
}
|
|
42
|
+
export type AuditLogExportDestinationsOffsetPagination = OffsetPagination<AuditLogExportDestination>;
|
|
43
|
+
/**
|
|
44
|
+
* An organization-scoped audit log export destination.
|
|
45
|
+
*
|
|
46
|
+
* Delivery is at-least-once for rows visible when their window is committed: a
|
|
47
|
+
* delivery that is retried rewrites the same object, and the same `event_id` can
|
|
48
|
+
* appear in more than one object, so consumers must deduplicate on `event_id`.
|
|
49
|
+
* Each event-time window is held for ten minutes before it commits; a row that
|
|
50
|
+
* becomes visible after its window is committed may not be delivered.
|
|
51
|
+
*
|
|
52
|
+
* Objects are written as
|
|
53
|
+
* `<prefix>/destination_id=<destination>/org_id=<org>/date=<YYYY-MM-DD>/hour=<HH>/<window>-<chunk>.jsonl.gz`,
|
|
54
|
+
* where `date` and `hour` are the UTC calendar hour that fully contains every row
|
|
55
|
+
* in the object, so the layout is safe to register as a Hive-partitioned table.
|
|
56
|
+
* The object name is derived from the rows it holds, so a retried delivery
|
|
57
|
+
* rewrites its own object.
|
|
58
|
+
*/
|
|
59
|
+
export interface AuditLogExportDestination {
|
|
60
|
+
id: string;
|
|
61
|
+
bucket: string;
|
|
62
|
+
consecutive_failures: number;
|
|
63
|
+
created_at: string;
|
|
64
|
+
external_id: string;
|
|
65
|
+
format: 'jsonl.gz';
|
|
66
|
+
/**
|
|
67
|
+
* The Kernel role that assumes `role_arn` in your account to deliver logs. Allow
|
|
68
|
+
* this role as the principal in your role's trust policy, and require
|
|
69
|
+
* `external_id` as the `sts:ExternalId` condition.
|
|
70
|
+
*
|
|
71
|
+
* Recreating a destination issues a new `external_id`, which the trust policy has
|
|
72
|
+
* to be updated to match.
|
|
73
|
+
*/
|
|
74
|
+
kernel_role_arn: string;
|
|
75
|
+
prefix: string;
|
|
76
|
+
region: string;
|
|
77
|
+
role_arn: string;
|
|
78
|
+
/**
|
|
79
|
+
* Pausing prevents new delivery attempts. An S3 upload already in progress may
|
|
80
|
+
* complete after the pause response; its rows can appear again after the
|
|
81
|
+
* destination is resumed.
|
|
82
|
+
*/
|
|
83
|
+
status: 'active' | 'paused';
|
|
84
|
+
type: 's3';
|
|
85
|
+
updated_at: string;
|
|
86
|
+
kms_key_id?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Sanitized description of the most recent delivery failure.
|
|
89
|
+
*/
|
|
90
|
+
last_error?: string;
|
|
91
|
+
last_error_at?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Opaque, versioned checkpoint for forward-only continuous export. This value is
|
|
94
|
+
* not compatible with audit-log list page tokens.
|
|
95
|
+
*
|
|
96
|
+
* Delivery starts at the moment the destination is activated, so events recorded
|
|
97
|
+
* before that are not delivered. Pausing stops delivery and resuming starts again
|
|
98
|
+
* from the time of the resume: events recorded while a destination was paused are
|
|
99
|
+
* never exported, and pausing is not a way to defer delivery.
|
|
100
|
+
*/
|
|
101
|
+
last_exported_cursor?: string;
|
|
102
|
+
last_success_at?: string;
|
|
103
|
+
next_attempt_at?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface AuditLogExportDestinationTestResult {
|
|
106
|
+
stage: 'assume_role' | 'put_object' | 'complete';
|
|
107
|
+
success: boolean;
|
|
108
|
+
error?: AuditLogExportDestinationTestResult.Error;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace AuditLogExportDestinationTestResult {
|
|
111
|
+
interface Error {
|
|
112
|
+
code: 'assume_role_failed' | 'put_object_failed';
|
|
113
|
+
message: string;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
export interface CreateAuditLogExportDestinationRequest {
|
|
117
|
+
bucket: string;
|
|
118
|
+
format: 'jsonl.gz';
|
|
119
|
+
prefix: string;
|
|
120
|
+
region: string;
|
|
121
|
+
role_arn: string;
|
|
122
|
+
type: 's3';
|
|
123
|
+
kms_key_id?: string;
|
|
124
|
+
}
|
|
125
|
+
export interface UpdateAuditLogExportDestinationRequest {
|
|
126
|
+
bucket?: string;
|
|
127
|
+
/**
|
|
128
|
+
* KMS key ID, alias, or ARN. Set to an empty string to remove the configured KMS
|
|
129
|
+
* key; omit or send null to leave unchanged.
|
|
130
|
+
*/
|
|
131
|
+
kms_key_id?: string;
|
|
132
|
+
prefix?: string;
|
|
133
|
+
region?: string;
|
|
134
|
+
role_arn?: string;
|
|
135
|
+
status?: 'active' | 'paused';
|
|
136
|
+
}
|
|
137
|
+
export interface ExportDestinationCreateParams {
|
|
138
|
+
bucket: string;
|
|
139
|
+
format: 'jsonl.gz';
|
|
140
|
+
prefix: string;
|
|
141
|
+
region: string;
|
|
142
|
+
role_arn: string;
|
|
143
|
+
type: 's3';
|
|
144
|
+
kms_key_id?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface ExportDestinationUpdateParams {
|
|
147
|
+
bucket?: string;
|
|
148
|
+
/**
|
|
149
|
+
* KMS key ID, alias, or ARN. Set to an empty string to remove the configured KMS
|
|
150
|
+
* key; omit or send null to leave unchanged.
|
|
151
|
+
*/
|
|
152
|
+
kms_key_id?: string;
|
|
153
|
+
prefix?: string;
|
|
154
|
+
region?: string;
|
|
155
|
+
role_arn?: string;
|
|
156
|
+
status?: 'active' | 'paused';
|
|
157
|
+
}
|
|
158
|
+
export interface ExportDestinationListParams extends OffsetPaginationParams {
|
|
159
|
+
}
|
|
160
|
+
export declare namespace ExportDestinations {
|
|
161
|
+
export { type AuditLogExportDestination as AuditLogExportDestination, type AuditLogExportDestinationTestResult as AuditLogExportDestinationTestResult, type CreateAuditLogExportDestinationRequest as CreateAuditLogExportDestinationRequest, type UpdateAuditLogExportDestinationRequest as UpdateAuditLogExportDestinationRequest, type AuditLogExportDestinationsOffsetPagination as AuditLogExportDestinationsOffsetPagination, type ExportDestinationCreateParams as ExportDestinationCreateParams, type ExportDestinationUpdateParams as ExportDestinationUpdateParams, type ExportDestinationListParams as ExportDestinationListParams, };
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=export-destinations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-destinations.d.ts","sourceRoot":"","sources":["../../src/resources/audit-logs/export-destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,6BAA6B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIrF;;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A6B;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC9B;AAED,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;CAAG;AAE9E,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExportDestinations = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
/**
|
|
10
|
+
* Read audit log records for the authenticated organization.
|
|
11
|
+
*/
|
|
12
|
+
class ExportDestinations extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Create a paused destination. Activate it with a status update once the
|
|
15
|
+
* destination test passes. Requires an active Enterprise plan.
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/audit-logs/export/destinations', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve details for a single audit log export destination by its ID.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(id, options) {
|
|
24
|
+
return this._client.get((0, path_1.path) `/audit-logs/export/destinations/${id}`, options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Apply a partial update to a destination. Requires an active Enterprise plan.
|
|
28
|
+
* Returns 409 when the destination was changed concurrently, because the merged
|
|
29
|
+
* configuration this request validated is no longer the one that would be stored;
|
|
30
|
+
* retry against fresh state. Pausing prevents new delivery attempts, but an S3
|
|
31
|
+
* upload already in progress may complete after the response.
|
|
32
|
+
*/
|
|
33
|
+
update(id, body, options) {
|
|
34
|
+
return this._client.patch((0, path_1.path) `/audit-logs/export/destinations/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* List audit log export destinations for the organization with pagination support.
|
|
38
|
+
*/
|
|
39
|
+
list(query = {}, options) {
|
|
40
|
+
return this._client.getAPIList('/audit-logs/export/destinations', (pagination_1.OffsetPagination), { query, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Soft delete the destination and prevent new delivery attempts. An S3 upload
|
|
44
|
+
* already in progress may complete after the response.
|
|
45
|
+
*/
|
|
46
|
+
delete(id, options) {
|
|
47
|
+
return this._client.delete((0, path_1.path) `/audit-logs/export/destinations/${id}`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Verify the destination is writable by assuming the configured role and uploading
|
|
54
|
+
* a temporary probe object with the same request metadata as a real delivery.
|
|
55
|
+
* Requires an active Enterprise plan.
|
|
56
|
+
*/
|
|
57
|
+
test(id, options) {
|
|
58
|
+
return this._client.post((0, path_1.path) `/audit-logs/export/destinations/${id}/test`, options);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ExportDestinations = ExportDestinations;
|
|
62
|
+
//# sourceMappingURL=export-destinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-destinations.js","sourceRoot":"","sources":["../../src/resources/audit-logs/export-destinations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;;OAGG;IACH,MAAM,CACJ,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mCAAmC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,EAAU,EACV,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mCAAmC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,iCAAiC,EACjC,CAAA,6BAA2C,CAAA,EAC3C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mCAAmC,EAAE,EAAE,EAAE;YACtE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mCAAmC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAnED,gDAmEC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { OffsetPagination } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Read audit log records for the authenticated organization.
|
|
8
|
+
*/
|
|
9
|
+
export class ExportDestinations extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a paused destination. Activate it with a status update once the
|
|
12
|
+
* destination test passes. Requires an active Enterprise plan.
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this._client.post('/audit-logs/export/destinations', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve details for a single audit log export destination by its ID.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id, options) {
|
|
21
|
+
return this._client.get(path `/audit-logs/export/destinations/${id}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Apply a partial update to a destination. Requires an active Enterprise plan.
|
|
25
|
+
* Returns 409 when the destination was changed concurrently, because the merged
|
|
26
|
+
* configuration this request validated is no longer the one that would be stored;
|
|
27
|
+
* retry against fresh state. Pausing prevents new delivery attempts, but an S3
|
|
28
|
+
* upload already in progress may complete after the response.
|
|
29
|
+
*/
|
|
30
|
+
update(id, body, options) {
|
|
31
|
+
return this._client.patch(path `/audit-logs/export/destinations/${id}`, { body, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* List audit log export destinations for the organization with pagination support.
|
|
35
|
+
*/
|
|
36
|
+
list(query = {}, options) {
|
|
37
|
+
return this._client.getAPIList('/audit-logs/export/destinations', (OffsetPagination), { query, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Soft delete the destination and prevent new delivery attempts. An S3 upload
|
|
41
|
+
* already in progress may complete after the response.
|
|
42
|
+
*/
|
|
43
|
+
delete(id, options) {
|
|
44
|
+
return this._client.delete(path `/audit-logs/export/destinations/${id}`, {
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Verify the destination is writable by assuming the configured role and uploading
|
|
51
|
+
* a temporary probe object with the same request metadata as a real delivery.
|
|
52
|
+
* Requires an active Enterprise plan.
|
|
53
|
+
*/
|
|
54
|
+
test(id, options) {
|
|
55
|
+
return this._client.post(path `/audit-logs/export/destinations/${id}/test`, options);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=export-destinations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-destinations.mjs","sourceRoot":"","sources":["../../src/resources/audit-logs/export-destinations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;;OAGG;IACH,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
1
|
+
export { AuditLogs, type AuditLogEntry, type AuditLogListParams, type AuditLogExportChunkParams, type AuditLogEntriesPageTokenPagination, type AuditLogDownloadDestination, type AuditLogDownloadOptions, type AuditLogDownloadParams, type AuditLogDownloadProgress, type AuditLogDownloadResult, } from "./audit-logs.mjs";
|
|
2
|
+
export { ExportDestinations, type AuditLogExportDestination, type AuditLogExportDestinationTestResult, type CreateAuditLogExportDestinationRequest, type UpdateAuditLogExportDestinationRequest, type ExportDestinationCreateParams, type ExportDestinationUpdateParams, type ExportDestinationListParams, type AuditLogExportDestinationsOffsetPagination, } from "./export-destinations.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/audit-logs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,yBAAqB;AACtB,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,GAChD,kCAA8B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AuditLogs, type AuditLogEntry, type AuditLogListParams, type AuditLogExportChunkParams, type AuditLogEntriesPageTokenPagination, type AuditLogDownloadDestination, type AuditLogDownloadOptions, type AuditLogDownloadParams, type AuditLogDownloadProgress, type AuditLogDownloadResult, } from "./audit-logs.js";
|
|
2
|
+
export { ExportDestinations, type AuditLogExportDestination, type AuditLogExportDestinationTestResult, type CreateAuditLogExportDestinationRequest, type UpdateAuditLogExportDestinationRequest, type ExportDestinationCreateParams, type ExportDestinationUpdateParams, type ExportDestinationListParams, type AuditLogExportDestinationsOffsetPagination, } from "./export-destinations.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/audit-logs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B,wBAAqB;AACtB,OAAO,EACL,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,sCAAsC,EAC3C,KAAK,sCAAsC,EAC3C,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,GAChD,iCAA8B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ExportDestinations = exports.AuditLogs = void 0;
|
|
5
|
+
var audit_logs_1 = require("./audit-logs.js");
|
|
6
|
+
Object.defineProperty(exports, "AuditLogs", { enumerable: true, get: function () { return audit_logs_1.AuditLogs; } });
|
|
7
|
+
var export_destinations_1 = require("./export-destinations.js");
|
|
8
|
+
Object.defineProperty(exports, "ExportDestinations", { enumerable: true, get: function () { return export_destinations_1.ExportDestinations; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/audit-logs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAWsB;AAVpB,uGAAA,SAAS,OAAA;AAWX,gEAU+B;AAT7B,yHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/audit-logs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAUV,yBAAqB;AACtB,OAAO,EACL,kBAAkB,GASnB,kCAA8B"}
|
|
@@ -1,165 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { PagePromise, PageTokenPagination, type PageTokenPaginationParams } from "../core/pagination.mjs";
|
|
4
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
-
import { type AuditLogDownloadDestination, type AuditLogDownloadOptions, type AuditLogDownloadParams, type AuditLogDownloadProgress, type AuditLogDownloadResult } from "../lib/audit-log-download.mjs";
|
|
6
|
-
export type { AuditLogDownloadDestination, AuditLogDownloadOptions, AuditLogDownloadParams, AuditLogDownloadProgress, AuditLogDownloadResult, } from "../lib/audit-log-download.mjs";
|
|
7
|
-
/**
|
|
8
|
-
* Read audit log records for the authenticated organization.
|
|
9
|
-
*/
|
|
10
|
-
export declare class AuditLogs extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* API for searching audit logs. Limited to at most 30 day search, returns up to
|
|
13
|
-
* 100 records per page. Not recommended for bulk export.
|
|
14
|
-
*/
|
|
15
|
-
list(query: AuditLogListParams, options?: RequestOptions): PagePromise<AuditLogEntriesPageTokenPagination, AuditLogEntry>;
|
|
16
|
-
/**
|
|
17
|
-
* Download an organization's audit log records for a time range as a file, for
|
|
18
|
-
* archival, compliance, or offline analysis. For interactive browsing, use GET
|
|
19
|
-
* /audit-logs.
|
|
20
|
-
*/
|
|
21
|
-
exportChunk(query: AuditLogExportChunkParams, options?: RequestOptions): APIPromise<Response>;
|
|
22
|
-
/**
|
|
23
|
-
* Download a complete gzip-compressed JSON Lines audit log export to a writable
|
|
24
|
-
* destination. The SDK verifies every chunk and retries transient transfer
|
|
25
|
-
* failures. It does not close the destination. If the download fails, the
|
|
26
|
-
* destination may contain a partial export; use a temporary file and atomic
|
|
27
|
-
* rename when the completed export must be published atomically.
|
|
28
|
-
*/
|
|
29
|
-
download(query: AuditLogDownloadParams, destination: AuditLogDownloadDestination, options?: AuditLogDownloadOptions): Promise<AuditLogDownloadResult>;
|
|
30
|
-
}
|
|
31
|
-
export type AuditLogEntriesPageTokenPagination = PageTokenPagination<AuditLogEntry>;
|
|
32
|
-
export interface AuditLogEntry {
|
|
33
|
-
/**
|
|
34
|
-
* Authentication strategy used for the request.
|
|
35
|
-
*/
|
|
36
|
-
auth_strategy: string;
|
|
37
|
-
/**
|
|
38
|
-
* Client IP address.
|
|
39
|
-
*/
|
|
40
|
-
client_ip: string;
|
|
41
|
-
/**
|
|
42
|
-
* Request host.
|
|
43
|
-
*/
|
|
44
|
-
domain: string;
|
|
45
|
-
/**
|
|
46
|
-
* Request duration in milliseconds.
|
|
47
|
-
*/
|
|
48
|
-
duration_ms: number;
|
|
49
|
-
/**
|
|
50
|
-
* Email of the authenticated user at request time, if any.
|
|
51
|
-
*/
|
|
52
|
-
email: string;
|
|
53
|
-
/**
|
|
54
|
-
* HTTP method.
|
|
55
|
-
*/
|
|
56
|
-
method: string;
|
|
57
|
-
/**
|
|
58
|
-
* Request path.
|
|
59
|
-
*/
|
|
60
|
-
path: string;
|
|
61
|
-
/**
|
|
62
|
-
* Matched API route pattern, if available.
|
|
63
|
-
*/
|
|
64
|
-
route: string;
|
|
65
|
-
/**
|
|
66
|
-
* HTTP response status code.
|
|
67
|
-
*/
|
|
68
|
-
status: number;
|
|
69
|
-
/**
|
|
70
|
-
* UTC time when the request was received.
|
|
71
|
-
*/
|
|
72
|
-
timestamp: string;
|
|
73
|
-
/**
|
|
74
|
-
* User agent header.
|
|
75
|
-
*/
|
|
76
|
-
user_agent: string;
|
|
77
|
-
/**
|
|
78
|
-
* ID of the authenticated user, if any.
|
|
79
|
-
*/
|
|
80
|
-
user_id: string;
|
|
81
|
-
}
|
|
82
|
-
export interface AuditLogListParams extends PageTokenPaginationParams {
|
|
83
|
-
/**
|
|
84
|
-
* Upper bound (exclusive) for the audit record timestamp.
|
|
85
|
-
*/
|
|
86
|
-
end: string;
|
|
87
|
-
/**
|
|
88
|
-
* Lower bound (inclusive) for the audit record timestamp.
|
|
89
|
-
*/
|
|
90
|
-
start: string;
|
|
91
|
-
/**
|
|
92
|
-
* Filter by authentication strategy.
|
|
93
|
-
*/
|
|
94
|
-
auth_strategy?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Filter out results by HTTP method.
|
|
97
|
-
*/
|
|
98
|
-
exclude_method?: Array<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Filter by HTTP method.
|
|
101
|
-
*/
|
|
102
|
-
method?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Free-text search over path, user ID, email, client IP, and status.
|
|
105
|
-
*/
|
|
106
|
-
search?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Additional user IDs to OR into free-text search.
|
|
109
|
-
*/
|
|
110
|
-
search_user_id?: Array<string>;
|
|
111
|
-
/**
|
|
112
|
-
* Filter by service name.
|
|
113
|
-
*/
|
|
114
|
-
service?: string;
|
|
115
|
-
}
|
|
116
|
-
export interface AuditLogExportChunkParams {
|
|
117
|
-
/**
|
|
118
|
-
* Upper bound (exclusive) for the audit record timestamp.
|
|
119
|
-
*/
|
|
120
|
-
end: string;
|
|
121
|
-
/**
|
|
122
|
-
* Lower bound (inclusive) for the audit record timestamp.
|
|
123
|
-
*/
|
|
124
|
-
start: string;
|
|
125
|
-
/**
|
|
126
|
-
* Filter by authentication strategy.
|
|
127
|
-
*/
|
|
128
|
-
auth_strategy?: string;
|
|
129
|
-
/**
|
|
130
|
-
* Opaque cursor from X-Next-Cursor for the next chunk of older records.
|
|
131
|
-
*/
|
|
132
|
-
cursor?: string;
|
|
133
|
-
/**
|
|
134
|
-
* Filter out results by HTTP method.
|
|
135
|
-
*/
|
|
136
|
-
exclude_method?: Array<string>;
|
|
137
|
-
/**
|
|
138
|
-
* Encoding for the returned chunk.
|
|
139
|
-
*/
|
|
140
|
-
format?: 'jsonl' | 'jsonl.gz';
|
|
141
|
-
/**
|
|
142
|
-
* Maximum number of records to return in this chunk.
|
|
143
|
-
*/
|
|
144
|
-
limit?: number;
|
|
145
|
-
/**
|
|
146
|
-
* Filter by HTTP method.
|
|
147
|
-
*/
|
|
148
|
-
method?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Free-text search over path, user ID, email, client IP, and status.
|
|
151
|
-
*/
|
|
152
|
-
search?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Additional user IDs to OR into free-text search.
|
|
155
|
-
*/
|
|
156
|
-
search_user_id?: Array<string>;
|
|
157
|
-
/**
|
|
158
|
-
* Filter by service name.
|
|
159
|
-
*/
|
|
160
|
-
service?: string;
|
|
161
|
-
}
|
|
162
|
-
export declare namespace AuditLogs {
|
|
163
|
-
export { type AuditLogEntry as AuditLogEntry, type AuditLogEntriesPageTokenPagination as AuditLogEntriesPageTokenPagination, type AuditLogListParams as AuditLogListParams, type AuditLogExportChunkParams as AuditLogExportChunkParams, type AuditLogDownloadDestination as AuditLogDownloadDestination, type AuditLogDownloadOptions as AuditLogDownloadOptions, type AuditLogDownloadParams as AuditLogDownloadParams, type AuditLogDownloadProgress as AuditLogDownloadProgress, type AuditLogDownloadResult as AuditLogDownloadResult, };
|
|
164
|
-
}
|
|
1
|
+
export * from "./audit-logs/index.mjs";
|
|
165
2
|
//# sourceMappingURL=audit-logs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-logs.d.mts","sourceRoot":"","sources":["../src/resources/audit-logs.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"audit-logs.d.mts","sourceRoot":"","sources":["../src/resources/audit-logs.ts"],"names":[],"mappings":"AAEA,uCAAmC"}
|