@nirvana-labs/nirvana 1.52.1 → 1.53.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 +23 -0
- package/bin/migration-config.json +0 -33
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -3
- package/client.js.map +1 -1
- package/client.mjs +6 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs/audit-logs.d.mts +68 -0
- package/resources/audit-logs/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs/audit-logs.d.ts +68 -0
- package/resources/audit-logs/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs/audit-logs.js +26 -0
- package/resources/audit-logs/audit-logs.js.map +1 -0
- package/resources/audit-logs/audit-logs.mjs +22 -0
- package/resources/audit-logs/audit-logs.mjs.map +1 -0
- package/resources/audit-logs/index.d.mts +2 -0
- package/resources/audit-logs/index.d.mts.map +1 -0
- package/resources/audit-logs/index.d.ts +2 -0
- package/resources/audit-logs/index.d.ts.map +1 -0
- package/resources/audit-logs/index.js +7 -0
- package/resources/audit-logs/index.js.map +1 -0
- package/resources/audit-logs/index.mjs +3 -0
- package/resources/audit-logs/index.mjs.map +1 -0
- package/resources/audit-logs.d.mts +2 -0
- package/resources/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs.d.ts +2 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +6 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +3 -0
- package/resources/audit-logs.mjs.map +1 -0
- package/resources/compute/vms/vms.d.mts +3 -3
- package/resources/compute/vms/vms.d.ts +3 -3
- package/resources/compute/vms/volumes.d.mts +2 -2
- package/resources/compute/vms/volumes.d.ts +2 -2
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organizations/index.d.mts +0 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +0 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js +1 -3
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +0 -1
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +0 -4
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +0 -4
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +0 -8
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +0 -7
- package/resources/organizations/organizations.mjs.map +1 -1
- package/src/client.ts +8 -3
- package/src/resources/audit-logs/api.md +11 -0
- package/src/resources/audit-logs/audit-logs.ts +98 -0
- package/src/resources/audit-logs/index.ts +3 -0
- package/src/resources/audit-logs.ts +3 -0
- package/src/resources/compute/vms/vms.ts +3 -3
- package/src/resources/compute/vms/volumes.ts +3 -3
- package/src/resources/index.ts +2 -1
- package/src/resources/organizations/api.md +11 -18
- package/src/resources/organizations/index.ts +0 -1
- package/src/resources/organizations/organizations.ts +0 -12
- 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
- package/resources/organizations/audit-logs.d.mts +0 -47
- package/resources/organizations/audit-logs.d.mts.map +0 -1
- package/resources/organizations/audit-logs.d.ts +0 -47
- package/resources/organizations/audit-logs.d.ts.map +0 -1
- package/resources/organizations/audit-logs.js +0 -42
- package/resources/organizations/audit-logs.js.map +0 -1
- package/resources/organizations/audit-logs.mjs +0 -38
- package/resources/organizations/audit-logs.mjs.map +0 -1
- package/src/resources/organizations/audit-logs.ts +0 -71
|
@@ -9,7 +9,7 @@ import * as OSImagesAPI from './os-images';
|
|
|
9
9
|
import { OSImageListParams, OSImages } from './os-images';
|
|
10
10
|
import * as VolumesAPI from './volumes';
|
|
11
11
|
import { VolumeListParams, Volumes } from './volumes';
|
|
12
|
-
import * as
|
|
12
|
+
import * as ComputeVolumesAPI from '../volumes/volumes';
|
|
13
13
|
import { APIPromise } from '../../../core/api-promise';
|
|
14
14
|
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
15
15
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -365,7 +365,7 @@ export namespace VMCreateParams {
|
|
|
365
365
|
/**
|
|
366
366
|
* Type of the Volume.
|
|
367
367
|
*/
|
|
368
|
-
type:
|
|
368
|
+
type: ComputeVolumesAPI.VolumeType;
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
371
|
* Tags to attach to the Volume.
|
|
@@ -390,7 +390,7 @@ export namespace VMCreateParams {
|
|
|
390
390
|
/**
|
|
391
391
|
* Type of the Volume.
|
|
392
392
|
*/
|
|
393
|
-
type:
|
|
393
|
+
type: ComputeVolumesAPI.VolumeType;
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
396
|
* Tags to attach to the Volume.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as
|
|
4
|
+
import * as ComputeVolumesAPI from '../volumes/volumes';
|
|
5
5
|
import { VolumesCursor } from '../volumes/volumes';
|
|
6
6
|
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
7
7
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -25,8 +25,8 @@ export class Volumes extends APIResource {
|
|
|
25
25
|
vmID: string,
|
|
26
26
|
query: VolumeListParams | null | undefined = {},
|
|
27
27
|
options?: RequestOptions,
|
|
28
|
-
): PagePromise<VolumesCursor,
|
|
29
|
-
return this._client.getAPIList(path`/v1/compute/vms/${vmID}/volumes`, Cursor<
|
|
28
|
+
): PagePromise<VolumesCursor, ComputeVolumesAPI.Volume> {
|
|
29
|
+
return this._client.getAPIList(path`/v1/compute/vms/${vmID}/volumes`, Cursor<ComputeVolumesAPI.Volume>, {
|
|
30
30
|
query,
|
|
31
31
|
...options,
|
|
32
32
|
});
|
package/src/resources/index.ts
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
export * from './shared';
|
|
4
4
|
export { APIKeys } from './api-keys';
|
|
5
|
+
export { AuditLogs } from './audit-logs';
|
|
5
6
|
export { Compute } from './compute/compute';
|
|
6
7
|
export { Networking } from './networking/networking';
|
|
7
8
|
export { Operations } from './operations';
|
|
8
|
-
export { Organizations } from './organizations
|
|
9
|
+
export { Organizations } from './organizations';
|
|
9
10
|
export { Projects } from './projects';
|
|
10
11
|
export { RPCNodes } from './rpc-nodes/rpc-nodes';
|
|
11
12
|
export { Regions } from './regions';
|
|
@@ -2,24 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Types:
|
|
4
4
|
|
|
5
|
-
- <code><a href="./src/resources/organizations
|
|
6
|
-
- <code><a href="./src/resources/organizations
|
|
7
|
-
- <code><a href="./src/resources/organizations
|
|
8
|
-
- <code><a href="./src/resources/organizations
|
|
9
|
-
- <code><a href="./src/resources/organizations
|
|
10
|
-
- <code><a href="./src/resources/organizations
|
|
11
|
-
- <code><a href="./src/resources/organizations
|
|
5
|
+
- <code><a href="./src/resources/organizations.ts">AuditLog</a></code>
|
|
6
|
+
- <code><a href="./src/resources/organizations.ts">AuditLogActor</a></code>
|
|
7
|
+
- <code><a href="./src/resources/organizations.ts">AuditLogType</a></code>
|
|
8
|
+
- <code><a href="./src/resources/organizations.ts">Organization</a></code>
|
|
9
|
+
- <code><a href="./src/resources/organizations.ts">OrganizationList</a></code>
|
|
10
|
+
- <code><a href="./src/resources/organizations.ts">OrganizationMembership</a></code>
|
|
11
|
+
- <code><a href="./src/resources/organizations.ts">Services</a></code>
|
|
12
12
|
|
|
13
13
|
Methods:
|
|
14
14
|
|
|
15
|
-
- <code title="post /v1/organizations">client.organizations.<a href="./src/resources/organizations
|
|
16
|
-
- <code title="patch /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations
|
|
17
|
-
- <code title="get /v1/organizations">client.organizations.<a href="./src/resources/organizations
|
|
18
|
-
- <code title="get /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations
|
|
19
|
-
|
|
20
|
-
## AuditLogs
|
|
21
|
-
|
|
22
|
-
Methods:
|
|
23
|
-
|
|
24
|
-
- <code title="get /v1/organizations/{organization_id}/audit_logs">client.organizations.auditLogs.<a href="./src/resources/organizations/audit-logs.ts">list</a>(organizationID, { ...params }) -> AuditLogsCursor</code>
|
|
25
|
-
- <code title="get /v1/organizations/{organization_id}/audit_logs/{audit_log_id}">client.organizations.auditLogs.<a href="./src/resources/organizations/audit-logs.ts">get</a>(auditLogID, { ...params }) -> AuditLog</code>
|
|
15
|
+
- <code title="post /v1/organizations">client.organizations.<a href="./src/resources/organizations.ts">create</a>({ ...params }) -> Organization</code>
|
|
16
|
+
- <code title="patch /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations.ts">update</a>(organizationID, { ...params }) -> Organization</code>
|
|
17
|
+
- <code title="get /v1/organizations">client.organizations.<a href="./src/resources/organizations.ts">list</a>({ ...params }) -> OrganizationsCursor</code>
|
|
18
|
+
- <code title="get /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations.ts">get</a>(organizationID) -> Organization</code>
|
|
@@ -2,16 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
-
import * as AuditLogsAPI from './audit-logs';
|
|
6
|
-
import { AuditLogGetParams, AuditLogListParams, AuditLogs } from './audit-logs';
|
|
7
5
|
import { APIPromise } from '../../core/api-promise';
|
|
8
6
|
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
9
7
|
import { RequestOptions } from '../../internal/request-options';
|
|
10
8
|
import { path } from '../../internal/utils/path';
|
|
11
9
|
|
|
12
10
|
export class Organizations extends APIResource {
|
|
13
|
-
auditLogs: AuditLogsAPI.AuditLogs = new AuditLogsAPI.AuditLogs(this._client);
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* Create a new organization
|
|
17
13
|
*
|
|
@@ -238,8 +234,6 @@ export interface OrganizationUpdateParams {
|
|
|
238
234
|
|
|
239
235
|
export interface OrganizationListParams extends CursorParams {}
|
|
240
236
|
|
|
241
|
-
Organizations.AuditLogs = AuditLogs;
|
|
242
|
-
|
|
243
237
|
export declare namespace Organizations {
|
|
244
238
|
export {
|
|
245
239
|
type AuditLog as AuditLog,
|
|
@@ -254,10 +248,4 @@ export declare namespace Organizations {
|
|
|
254
248
|
type OrganizationUpdateParams as OrganizationUpdateParams,
|
|
255
249
|
type OrganizationListParams as OrganizationListParams,
|
|
256
250
|
};
|
|
257
|
-
|
|
258
|
-
export {
|
|
259
|
-
AuditLogs as AuditLogs,
|
|
260
|
-
type AuditLogListParams as AuditLogListParams,
|
|
261
|
-
type AuditLogGetParams as AuditLogGetParams,
|
|
262
|
-
};
|
|
263
251
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.53.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.53.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.53.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.53.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as OrganizationsAPI from "./organizations.mjs";
|
|
3
|
-
import { AuditLogsCursor } from "./organizations.mjs";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
-
import { type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
-
export declare class AuditLogs extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* List Audit Log entries for an organization
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // Automatically fetches more pages as needed.
|
|
14
|
-
* for await (const auditLog of client.organizations.auditLogs.list(
|
|
15
|
-
* 'organization_id',
|
|
16
|
-
* )) {
|
|
17
|
-
* // ...
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
list(organizationID: string, query?: AuditLogListParams | null | undefined, options?: RequestOptions): PagePromise<AuditLogsCursor, OrganizationsAPI.AuditLog>;
|
|
22
|
-
/**
|
|
23
|
-
* Get an Audit Log entry
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const auditLog = await client.organizations.auditLogs.get(
|
|
28
|
-
* 'audit_log_id',
|
|
29
|
-
* { organization_id: 'organization_id' },
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
get(auditLogID: string, params: AuditLogGetParams, options?: RequestOptions): APIPromise<OrganizationsAPI.AuditLog>;
|
|
34
|
-
}
|
|
35
|
-
export interface AuditLogListParams extends CursorParams {
|
|
36
|
-
}
|
|
37
|
-
export interface AuditLogGetParams {
|
|
38
|
-
/**
|
|
39
|
-
* Organization ID
|
|
40
|
-
*/
|
|
41
|
-
organization_id: string;
|
|
42
|
-
}
|
|
43
|
-
export declare namespace AuditLogs {
|
|
44
|
-
export { type AuditLogListParams as AuditLogListParams, type AuditLogGetParams as AuditLogGetParams };
|
|
45
|
-
}
|
|
46
|
-
export { type AuditLogsCursor };
|
|
47
|
-
//# sourceMappingURL=audit-logs.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-logs.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/audit-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,eAAe,EAAE;OACnB,EAAE,UAAU,EAAE;OACd,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,eAAe,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IAQ1D;;;;;;;;;;OAUG;IACH,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC;CAIzC;AAED,MAAM,WAAW,kBAAmB,SAAQ,YAAY;CAAG;AAE3D,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACvG;AAED,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as OrganizationsAPI from "./organizations.js";
|
|
3
|
-
import { AuditLogsCursor } from "./organizations.js";
|
|
4
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
-
import { type CursorParams, PagePromise } from "../../core/pagination.js";
|
|
6
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
-
export declare class AuditLogs extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* List Audit Log entries for an organization
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* // Automatically fetches more pages as needed.
|
|
14
|
-
* for await (const auditLog of client.organizations.auditLogs.list(
|
|
15
|
-
* 'organization_id',
|
|
16
|
-
* )) {
|
|
17
|
-
* // ...
|
|
18
|
-
* }
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
list(organizationID: string, query?: AuditLogListParams | null | undefined, options?: RequestOptions): PagePromise<AuditLogsCursor, OrganizationsAPI.AuditLog>;
|
|
22
|
-
/**
|
|
23
|
-
* Get an Audit Log entry
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const auditLog = await client.organizations.auditLogs.get(
|
|
28
|
-
* 'audit_log_id',
|
|
29
|
-
* { organization_id: 'organization_id' },
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
get(auditLogID: string, params: AuditLogGetParams, options?: RequestOptions): APIPromise<OrganizationsAPI.AuditLog>;
|
|
34
|
-
}
|
|
35
|
-
export interface AuditLogListParams extends CursorParams {
|
|
36
|
-
}
|
|
37
|
-
export interface AuditLogGetParams {
|
|
38
|
-
/**
|
|
39
|
-
* Organization ID
|
|
40
|
-
*/
|
|
41
|
-
organization_id: string;
|
|
42
|
-
}
|
|
43
|
-
export declare namespace AuditLogs {
|
|
44
|
-
export { type AuditLogListParams as AuditLogListParams, type AuditLogGetParams as AuditLogGetParams };
|
|
45
|
-
}
|
|
46
|
-
export { type AuditLogsCursor };
|
|
47
|
-
//# sourceMappingURL=audit-logs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-logs.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/audit-logs.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,eAAe,EAAE;OACnB,EAAE,UAAU,EAAE;OACd,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,eAAe,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IAQ1D;;;;;;;;;;OAUG;IACH,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC,QAAQ,CAAC;CAIzC;AAED,MAAM,WAAW,kBAAmB,SAAQ,YAAY;CAAG;AAE3D,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACvG;AAED,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
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.AuditLogs = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
-
class AuditLogs extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List Audit Log entries for an organization
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* // Automatically fetches more pages as needed.
|
|
15
|
-
* for await (const auditLog of client.organizations.auditLogs.list(
|
|
16
|
-
* 'organization_id',
|
|
17
|
-
* )) {
|
|
18
|
-
* // ...
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
list(organizationID, query = {}, options) {
|
|
23
|
-
return this._client.getAPIList((0, path_1.path) `/v1/organizations/${organizationID}/audit_logs`, (pagination_1.Cursor), { query, ...options });
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Get an Audit Log entry
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const auditLog = await client.organizations.auditLogs.get(
|
|
31
|
-
* 'audit_log_id',
|
|
32
|
-
* { organization_id: 'organization_id' },
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
get(auditLogID, params, options) {
|
|
37
|
-
const { organization_id } = params;
|
|
38
|
-
return this._client.get((0, path_1.path) `/v1/organizations/${organization_id}/audit_logs/${auditLogID}`, options);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.AuditLogs = AuditLogs;
|
|
42
|
-
//# sourceMappingURL=audit-logs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-logs.js","sourceRoot":"","sources":["../../src/resources/organizations/audit-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAsB,EACtB,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,cAAc,aAAa,EACpD,CAAA,mBAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,UAAkB,EAClB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,eAAe,eAAe,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;CACF;AA7CD,8BA6CC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { Cursor } from "../../core/pagination.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
-
export class AuditLogs extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* List Audit Log entries for an organization
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* // Automatically fetches more pages as needed.
|
|
12
|
-
* for await (const auditLog of client.organizations.auditLogs.list(
|
|
13
|
-
* 'organization_id',
|
|
14
|
-
* )) {
|
|
15
|
-
* // ...
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
list(organizationID, query = {}, options) {
|
|
20
|
-
return this._client.getAPIList(path `/v1/organizations/${organizationID}/audit_logs`, (Cursor), { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get an Audit Log entry
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const auditLog = await client.organizations.auditLogs.get(
|
|
28
|
-
* 'audit_log_id',
|
|
29
|
-
* { organization_id: 'organization_id' },
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
get(auditLogID, params, options) {
|
|
34
|
-
const { organization_id } = params;
|
|
35
|
-
return this._client.get(path `/v1/organizations/${organization_id}/audit_logs/${auditLogID}`, options);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=audit-logs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"audit-logs.mjs","sourceRoot":"","sources":["../../src/resources/organizations/audit-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAsB,EACtB,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,cAAc,aAAa,EACpD,CAAA,MAAiC,CAAA,EACjC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,UAAkB,EAClB,MAAyB,EACzB,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,eAAe,eAAe,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as OrganizationsAPI from './organizations';
|
|
5
|
-
import { AuditLogsCursor } from './organizations';
|
|
6
|
-
import { APIPromise } from '../../core/api-promise';
|
|
7
|
-
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
8
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
9
|
-
import { path } from '../../internal/utils/path';
|
|
10
|
-
|
|
11
|
-
export class AuditLogs extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* List Audit Log entries for an organization
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* // Automatically fetches more pages as needed.
|
|
18
|
-
* for await (const auditLog of client.organizations.auditLogs.list(
|
|
19
|
-
* 'organization_id',
|
|
20
|
-
* )) {
|
|
21
|
-
* // ...
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
list(
|
|
26
|
-
organizationID: string,
|
|
27
|
-
query: AuditLogListParams | null | undefined = {},
|
|
28
|
-
options?: RequestOptions,
|
|
29
|
-
): PagePromise<AuditLogsCursor, OrganizationsAPI.AuditLog> {
|
|
30
|
-
return this._client.getAPIList(
|
|
31
|
-
path`/v1/organizations/${organizationID}/audit_logs`,
|
|
32
|
-
Cursor<OrganizationsAPI.AuditLog>,
|
|
33
|
-
{ query, ...options },
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Get an Audit Log entry
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* const auditLog = await client.organizations.auditLogs.get(
|
|
43
|
-
* 'audit_log_id',
|
|
44
|
-
* { organization_id: 'organization_id' },
|
|
45
|
-
* );
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
get(
|
|
49
|
-
auditLogID: string,
|
|
50
|
-
params: AuditLogGetParams,
|
|
51
|
-
options?: RequestOptions,
|
|
52
|
-
): APIPromise<OrganizationsAPI.AuditLog> {
|
|
53
|
-
const { organization_id } = params;
|
|
54
|
-
return this._client.get(path`/v1/organizations/${organization_id}/audit_logs/${auditLogID}`, options);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface AuditLogListParams extends CursorParams {}
|
|
59
|
-
|
|
60
|
-
export interface AuditLogGetParams {
|
|
61
|
-
/**
|
|
62
|
-
* Organization ID
|
|
63
|
-
*/
|
|
64
|
-
organization_id: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export declare namespace AuditLogs {
|
|
68
|
-
export { type AuditLogListParams as AuditLogListParams, type AuditLogGetParams as AuditLogGetParams };
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export { type AuditLogsCursor };
|