@nirvana-labs/nirvana 1.50.1 → 1.51.0

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/bin/migration-config.json +33 -0
  3. package/package.json +1 -1
  4. package/resources/index.d.mts +1 -1
  5. package/resources/index.d.ts +1 -1
  6. package/resources/index.js +1 -1
  7. package/resources/index.js.map +1 -1
  8. package/resources/index.mjs +1 -1
  9. package/resources/organizations/audit-logs.d.mts +47 -0
  10. package/resources/organizations/audit-logs.d.mts.map +1 -0
  11. package/resources/organizations/audit-logs.d.ts +47 -0
  12. package/resources/organizations/audit-logs.d.ts.map +1 -0
  13. package/resources/organizations/audit-logs.js +42 -0
  14. package/resources/organizations/audit-logs.js.map +1 -0
  15. package/resources/organizations/audit-logs.mjs +38 -0
  16. package/resources/organizations/audit-logs.mjs.map +1 -0
  17. package/resources/organizations/index.d.mts +1 -0
  18. package/resources/organizations/index.d.mts.map +1 -1
  19. package/resources/organizations/index.d.ts +1 -0
  20. package/resources/organizations/index.d.ts.map +1 -1
  21. package/resources/organizations/index.js +3 -1
  22. package/resources/organizations/index.js.map +1 -1
  23. package/resources/organizations/index.mjs +1 -0
  24. package/resources/organizations/index.mjs.map +1 -1
  25. package/resources/organizations/organizations.d.mts +60 -1
  26. package/resources/organizations/organizations.d.mts.map +1 -1
  27. package/resources/organizations/organizations.d.ts +60 -1
  28. package/resources/organizations/organizations.d.ts.map +1 -1
  29. package/resources/organizations/organizations.js +8 -0
  30. package/resources/organizations/organizations.js.map +1 -1
  31. package/resources/organizations/organizations.mjs +7 -0
  32. package/resources/organizations/organizations.mjs.map +1 -1
  33. package/src/resources/index.ts +1 -1
  34. package/src/resources/organizations/api.md +18 -8
  35. package/src/resources/organizations/audit-logs.ts +71 -0
  36. package/src/resources/organizations/index.ts +1 -0
  37. package/src/resources/organizations/organizations.ts +82 -0
  38. package/src/version.ts +1 -1
  39. package/version.d.mts +1 -1
  40. package/version.d.ts +1 -1
  41. package/version.js +1 -1
  42. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.51.0 (2026-02-26)
4
+
5
+ Full Changelog: [v1.50.1...v1.51.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.50.1...v1.51.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([9e83acc](https://github.com/nirvana-labs/nirvana-typescript/commit/9e83acc9b0964504f4763ae145cafc204f1bfbcd))
10
+ * **api:** api update ([e5d6f95](https://github.com/nirvana-labs/nirvana-typescript/commit/e5d6f95a97d11328633cd58c7614cecfb440096e))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **internal:** codegen related update ([2b80ee7](https://github.com/nirvana-labs/nirvana-typescript/commit/2b80ee773eb80b701e976b959f7448407e8caa7f))
16
+ * **internal:** make MCP code execution location configurable via a flag ([dc6dff2](https://github.com/nirvana-labs/nirvana-typescript/commit/dc6dff21593ada59fdc0edba739a4dddf06b91f5))
17
+
3
18
  ## 1.50.1 (2026-02-24)
4
19
 
5
20
  Full Changelog: [v1.50.0...v1.50.1](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.50.0...v1.50.1)
@@ -3,6 +3,39 @@
3
3
  "githubRepo": "https://github.com/nirvana-labs/nirvana-typescript",
4
4
  "clientClass": "NirvanaLabs",
5
5
  "methods": [
6
+ {
7
+ "base": "organizations.auditLogs",
8
+ "name": "get",
9
+ "params": [
10
+ {
11
+ "type": "param",
12
+ "key": "audit_log_id",
13
+ "location": "path"
14
+ },
15
+ {
16
+ "type": "params",
17
+ "maybeOverload": false
18
+ },
19
+ {
20
+ "type": "options"
21
+ }
22
+ ],
23
+ "oldParams": [
24
+ {
25
+ "type": "param",
26
+ "key": "organization_id",
27
+ "location": "path"
28
+ },
29
+ {
30
+ "type": "param",
31
+ "key": "audit_log_id",
32
+ "location": "path"
33
+ },
34
+ {
35
+ "type": "options"
36
+ }
37
+ ]
38
+ },
6
39
  {
7
40
  "base": "networking.firewallRules",
8
41
  "name": "update",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nirvana-labs/nirvana",
3
- "version": "1.50.1",
3
+ "version": "1.51.0",
4
4
  "description": "The official TypeScript library for the Nirvana Labs API",
5
5
  "author": "Nirvana Labs <engineering@nirvanalabs.io>",
6
6
  "types": "./index.d.ts",
@@ -3,7 +3,7 @@ export { APIKeys } from "./api-keys.mjs";
3
3
  export { Compute } from "./compute/compute.mjs";
4
4
  export { Networking } from "./networking/networking.mjs";
5
5
  export { Operations } from "./operations.mjs";
6
- export { Organizations } from "./organizations.mjs";
6
+ export { Organizations } from "./organizations/organizations.mjs";
7
7
  export { Projects } from "./projects.mjs";
8
8
  export { RPCNodes } from "./rpc-nodes/rpc-nodes.mjs";
9
9
  export { Regions } from "./regions.mjs";
@@ -3,7 +3,7 @@ export { APIKeys } from "./api-keys.js";
3
3
  export { Compute } from "./compute/compute.js";
4
4
  export { Networking } from "./networking/networking.js";
5
5
  export { Operations } from "./operations.js";
6
- export { Organizations } from "./organizations.js";
6
+ export { Organizations } from "./organizations/organizations.js";
7
7
  export { Projects } from "./projects.js";
8
8
  export { RPCNodes } from "./rpc-nodes/rpc-nodes.js";
9
9
  export { Regions } from "./regions.js";
@@ -12,7 +12,7 @@ var networking_1 = require("./networking/networking.js");
12
12
  Object.defineProperty(exports, "Networking", { enumerable: true, get: function () { return networking_1.Networking; } });
13
13
  var operations_1 = require("./operations.js");
14
14
  Object.defineProperty(exports, "Operations", { enumerable: true, get: function () { return operations_1.Operations; } });
15
- var organizations_1 = require("./organizations.js");
15
+ var organizations_1 = require("./organizations/organizations.js");
16
16
  Object.defineProperty(exports, "Organizations", { enumerable: true, get: function () { return organizations_1.Organizations; } });
17
17
  var projects_1 = require("./projects.js");
18
18
  Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,yDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,8CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,oDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,sDAAiD;AAAxC,qGAAA,QAAQ,OAAA;AACjB,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,uCAA2C;AAAlC,oGAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,0CAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,yDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,8CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,kEAA8D;AAArD,8GAAA,aAAa,OAAA;AACtB,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,sDAAiD;AAAxC,qGAAA,QAAQ,OAAA;AACjB,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,uCAA2C;AAAlC,oGAAA,YAAY,OAAA"}
@@ -4,7 +4,7 @@ export { APIKeys } from "./api-keys.mjs";
4
4
  export { Compute } from "./compute/compute.mjs";
5
5
  export { Networking } from "./networking/networking.mjs";
6
6
  export { Operations } from "./operations.mjs";
7
- export { Organizations } from "./organizations.mjs";
7
+ export { Organizations } from "./organizations/organizations.mjs";
8
8
  export { Projects } from "./projects.mjs";
9
9
  export { RPCNodes } from "./rpc-nodes/rpc-nodes.mjs";
10
10
  export { Regions } from "./regions.mjs";
@@ -0,0 +1,47 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,47 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,42 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,38 @@
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
@@ -0,0 +1 @@
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,2 +1,3 @@
1
+ export { AuditLogs, type AuditLogListParams, type AuditLogGetParams } from "./audit-logs.mjs";
1
2
  export { Organizations } from "./organizations.mjs";
2
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE;OAC9D,EAAE,aAAa,EAAE"}
@@ -1,2 +1,3 @@
1
+ export { AuditLogs, type AuditLogListParams, type AuditLogGetParams } from "./audit-logs.js";
1
2
  export { Organizations } from "./organizations.js";
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"OAEO,EAAE,aAAa,EAAE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE;OAC9D,EAAE,aAAa,EAAE"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Organizations = void 0;
4
+ exports.Organizations = 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; } });
5
7
  var organizations_1 = require("./organizations.js");
6
8
  Object.defineProperty(exports, "Organizations", { enumerable: true, get: function () { return organizations_1.Organizations; } });
7
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA0F;AAAjF,uGAAA,SAAS,OAAA;AAClB,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
@@ -1,3 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { AuditLogs } from "./audit-logs.mjs";
2
3
  export { Organizations } from "./organizations.mjs";
3
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,aAAa,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAmD;OAC9D,EAAE,aAAa,EAAE"}
@@ -1,9 +1,12 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as Shared from "../shared.mjs";
3
+ import * as AuditLogsAPI from "./audit-logs.mjs";
4
+ import { AuditLogGetParams, AuditLogListParams, AuditLogs } from "./audit-logs.mjs";
3
5
  import { APIPromise } from "../../core/api-promise.mjs";
4
6
  import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
5
7
  import { RequestOptions } from "../../internal/request-options.mjs";
6
8
  export declare class Organizations extends APIResource {
9
+ auditLogs: AuditLogsAPI.AuditLogs;
7
10
  /**
8
11
  * Create a new organization
9
12
  *
@@ -51,6 +54,61 @@ export declare class Organizations extends APIResource {
51
54
  get(organizationID: string, options?: RequestOptions): APIPromise<Organization>;
52
55
  }
53
56
  export type OrganizationsCursor = Cursor<Organization>;
57
+ export type AuditLogsCursor = Cursor<AuditLog>;
58
+ /**
59
+ * Audit log entry.
60
+ */
61
+ export interface AuditLog {
62
+ /**
63
+ * Unique identifier for the audit log entry.
64
+ */
65
+ id: string;
66
+ /**
67
+ * The entity that performed the action.
68
+ */
69
+ actor: AuditLogActor;
70
+ /**
71
+ * Client IP address.
72
+ */
73
+ client_ip: string;
74
+ /**
75
+ * When the action occurred.
76
+ */
77
+ created_at: string;
78
+ /**
79
+ * HTTP method of the request.
80
+ */
81
+ method: string;
82
+ /**
83
+ * Request path.
84
+ */
85
+ path: string;
86
+ /**
87
+ * HTTP status code of the response.
88
+ */
89
+ status_code: number;
90
+ /**
91
+ * User agent string.
92
+ */
93
+ user_agent: string;
94
+ }
95
+ /**
96
+ * The entity that performed the action.
97
+ */
98
+ export interface AuditLogActor {
99
+ /**
100
+ * Unique identifier for the actor.
101
+ */
102
+ id: string;
103
+ /**
104
+ * Type of actor.
105
+ */
106
+ type: AuditLogType;
107
+ }
108
+ /**
109
+ * Type of actor.
110
+ */
111
+ export type AuditLogType = 'user' | 'api_key';
54
112
  /**
55
113
  * Organization response.
56
114
  */
@@ -129,6 +187,7 @@ export interface OrganizationUpdateParams {
129
187
  export interface OrganizationListParams extends CursorParams {
130
188
  }
131
189
  export declare namespace Organizations {
132
- export { type Organization as Organization, type OrganizationList as OrganizationList, type OrganizationMembership as OrganizationMembership, type Services as Services, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
190
+ export { type AuditLog as AuditLog, type AuditLogActor as AuditLogActor, type AuditLogType as AuditLogType, type Organization as Organization, type OrganizationList as OrganizationList, type OrganizationMembership as OrganizationMembership, type Services as Services, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
191
+ export { AuditLogs as AuditLogs, type AuditLogListParams as AuditLogListParams, type AuditLogGetParams as AuditLogGetParams, };
133
192
  }
134
193
  //# sourceMappingURL=organizations.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IA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;IACH,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;CAAG;AAE/D,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
1
+ {"version":3,"file":"organizations.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,YAAY;OACjB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE;OACpD,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAA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,SAAS,EACtB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,9 +1,12 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as Shared from "../shared.js";
3
+ import * as AuditLogsAPI from "./audit-logs.js";
4
+ import { AuditLogGetParams, AuditLogListParams, AuditLogs } from "./audit-logs.js";
3
5
  import { APIPromise } from "../../core/api-promise.js";
4
6
  import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
5
7
  import { RequestOptions } from "../../internal/request-options.js";
6
8
  export declare class Organizations extends APIResource {
9
+ auditLogs: AuditLogsAPI.AuditLogs;
7
10
  /**
8
11
  * Create a new organization
9
12
  *
@@ -51,6 +54,61 @@ export declare class Organizations extends APIResource {
51
54
  get(organizationID: string, options?: RequestOptions): APIPromise<Organization>;
52
55
  }
53
56
  export type OrganizationsCursor = Cursor<Organization>;
57
+ export type AuditLogsCursor = Cursor<AuditLog>;
58
+ /**
59
+ * Audit log entry.
60
+ */
61
+ export interface AuditLog {
62
+ /**
63
+ * Unique identifier for the audit log entry.
64
+ */
65
+ id: string;
66
+ /**
67
+ * The entity that performed the action.
68
+ */
69
+ actor: AuditLogActor;
70
+ /**
71
+ * Client IP address.
72
+ */
73
+ client_ip: string;
74
+ /**
75
+ * When the action occurred.
76
+ */
77
+ created_at: string;
78
+ /**
79
+ * HTTP method of the request.
80
+ */
81
+ method: string;
82
+ /**
83
+ * Request path.
84
+ */
85
+ path: string;
86
+ /**
87
+ * HTTP status code of the response.
88
+ */
89
+ status_code: number;
90
+ /**
91
+ * User agent string.
92
+ */
93
+ user_agent: string;
94
+ }
95
+ /**
96
+ * The entity that performed the action.
97
+ */
98
+ export interface AuditLogActor {
99
+ /**
100
+ * Unique identifier for the actor.
101
+ */
102
+ id: string;
103
+ /**
104
+ * Type of actor.
105
+ */
106
+ type: AuditLogType;
107
+ }
108
+ /**
109
+ * Type of actor.
110
+ */
111
+ export type AuditLogType = 'user' | 'api_key';
54
112
  /**
55
113
  * Organization response.
56
114
  */
@@ -129,6 +187,7 @@ export interface OrganizationUpdateParams {
129
187
  export interface OrganizationListParams extends CursorParams {
130
188
  }
131
189
  export declare namespace Organizations {
132
- export { type Organization as Organization, type OrganizationList as OrganizationList, type OrganizationMembership as OrganizationMembership, type Services as Services, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
190
+ export { type AuditLog as AuditLog, type AuditLogActor as AuditLogActor, type AuditLogType as AuditLogType, type Organization as Organization, type OrganizationList as OrganizationList, type OrganizationMembership as OrganizationMembership, type Services as Services, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
191
+ export { AuditLogs as AuditLogs, type AuditLogListParams as AuditLogListParams, type AuditLogGetParams as AuditLogGetParams, };
133
192
  }
134
193
  //# sourceMappingURL=organizations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;OAUG;I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AM,WAAW,sBAAuB,SAAQ,YAAY;CAAG;AAE/D,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
1
+ {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,YAAY;OACjB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE;OACpD,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1F;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC;IAI3B;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,mBAAmB,EAAE,YAAY,CAAC;IAIjD;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM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C,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAuB,SAAQ,YAAY;CAAG;AAI/D,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -2,10 +2,17 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Organizations = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
5
6
  const resource_1 = require("../../core/resource.js");
7
+ const AuditLogsAPI = tslib_1.__importStar(require("./audit-logs.js"));
8
+ const audit_logs_1 = require("./audit-logs.js");
6
9
  const pagination_1 = require("../../core/pagination.js");
7
10
  const path_1 = require("../../internal/utils/path.js");
8
11
  class Organizations extends resource_1.APIResource {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.auditLogs = new AuditLogsAPI.AuditLogs(this._client);
15
+ }
9
16
  /**
10
17
  * Create a new organization
11
18
  *
@@ -61,4 +68,5 @@ class Organizations extends resource_1.APIResource {
61
68
  }
62
69
  }
63
70
  exports.Organizations = Organizations;
71
+ Organizations.AuditLogs = audit_logs_1.AuditLogs;
64
72
  //# sourceMappingURL=organizations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAhED,sCAgEC"}
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,sEAA6C;AAC7C,gDAAgF;AAEhF,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAA9C;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE/E,CAAC;IA/DC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,mBAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAlED,sCAkEC;AAmKD,aAAa,CAAC,SAAS,GAAG,sBAAS,CAAC"}
@@ -1,8 +1,14 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import * as AuditLogsAPI from "./audit-logs.mjs";
4
+ import { AuditLogs } from "./audit-logs.mjs";
3
5
  import { Cursor } from "../../core/pagination.mjs";
4
6
  import { path } from "../../internal/utils/path.mjs";
5
7
  export class Organizations extends APIResource {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.auditLogs = new AuditLogsAPI.AuditLogs(this._client);
11
+ }
6
12
  /**
7
13
  * Create a new organization
8
14
  *
@@ -57,4 +63,5 @@ export class Organizations extends APIResource {
57
63
  return this._client.get(path `/v1/organizations/${organizationID}`, options);
58
64
  }
59
65
  }
66
+ Organizations.AuditLogs = AuditLogs;
60
67
  //# sourceMappingURL=organizations.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF"}
1
+ {"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,YAAY;OACjB,EAAyC,SAAS,EAAE;OAEpD,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAiE/E,CAAC;IA/DC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAAoB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF;AAmKD,aAAa,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -5,7 +5,7 @@ export { APIKeys } from './api-keys';
5
5
  export { Compute } from './compute/compute';
6
6
  export { Networking } from './networking/networking';
7
7
  export { Operations } from './operations';
8
- export { Organizations } from './organizations';
8
+ export { Organizations } from './organizations/organizations';
9
9
  export { Projects } from './projects';
10
10
  export { RPCNodes } from './rpc-nodes/rpc-nodes';
11
11
  export { Regions } from './regions';
@@ -2,14 +2,24 @@
2
2
 
3
3
  Types:
4
4
 
5
- - <code><a href="./src/resources/organizations.ts">Organization</a></code>
6
- - <code><a href="./src/resources/organizations.ts">OrganizationList</a></code>
7
- - <code><a href="./src/resources/organizations.ts">OrganizationMembership</a></code>
8
- - <code><a href="./src/resources/organizations.ts">Services</a></code>
5
+ - <code><a href="./src/resources/organizations/organizations.ts">AuditLog</a></code>
6
+ - <code><a href="./src/resources/organizations/organizations.ts">AuditLogActor</a></code>
7
+ - <code><a href="./src/resources/organizations/organizations.ts">AuditLogType</a></code>
8
+ - <code><a href="./src/resources/organizations/organizations.ts">Organization</a></code>
9
+ - <code><a href="./src/resources/organizations/organizations.ts">OrganizationList</a></code>
10
+ - <code><a href="./src/resources/organizations/organizations.ts">OrganizationMembership</a></code>
11
+ - <code><a href="./src/resources/organizations/organizations.ts">Services</a></code>
9
12
 
10
13
  Methods:
11
14
 
12
- - <code title="post /v1/organizations">client.organizations.<a href="./src/resources/organizations.ts">create</a>({ ...params }) -> Organization</code>
13
- - <code title="patch /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations.ts">update</a>(organizationID, { ...params }) -> Organization</code>
14
- - <code title="get /v1/organizations">client.organizations.<a href="./src/resources/organizations.ts">list</a>({ ...params }) -> OrganizationsCursor</code>
15
- - <code title="get /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations.ts">get</a>(organizationID) -> Organization</code>
15
+ - <code title="post /v1/organizations">client.organizations.<a href="./src/resources/organizations/organizations.ts">create</a>({ ...params }) -> Organization</code>
16
+ - <code title="patch /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations/organizations.ts">update</a>(organizationID, { ...params }) -> Organization</code>
17
+ - <code title="get /v1/organizations">client.organizations.<a href="./src/resources/organizations/organizations.ts">list</a>({ ...params }) -> OrganizationsCursor</code>
18
+ - <code title="get /v1/organizations/{organization_id}">client.organizations.<a href="./src/resources/organizations/organizations.ts">get</a>(organizationID) -> Organization</code>
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>
@@ -0,0 +1,71 @@
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 };
@@ -1,3 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export { AuditLogs, type AuditLogListParams, type AuditLogGetParams } from './audit-logs';
3
4
  export { Organizations } from './organizations';
@@ -2,12 +2,16 @@
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';
5
7
  import { APIPromise } from '../../core/api-promise';
6
8
  import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
7
9
  import { RequestOptions } from '../../internal/request-options';
8
10
  import { path } from '../../internal/utils/path';
9
11
 
10
12
  export class Organizations extends APIResource {
13
+ auditLogs: AuditLogsAPI.AuditLogs = new AuditLogsAPI.AuditLogs(this._client);
14
+
11
15
  /**
12
16
  * Create a new organization
13
17
  *
@@ -75,6 +79,73 @@ export class Organizations extends APIResource {
75
79
 
76
80
  export type OrganizationsCursor = Cursor<Organization>;
77
81
 
82
+ export type AuditLogsCursor = Cursor<AuditLog>;
83
+
84
+ /**
85
+ * Audit log entry.
86
+ */
87
+ export interface AuditLog {
88
+ /**
89
+ * Unique identifier for the audit log entry.
90
+ */
91
+ id: string;
92
+
93
+ /**
94
+ * The entity that performed the action.
95
+ */
96
+ actor: AuditLogActor;
97
+
98
+ /**
99
+ * Client IP address.
100
+ */
101
+ client_ip: string;
102
+
103
+ /**
104
+ * When the action occurred.
105
+ */
106
+ created_at: string;
107
+
108
+ /**
109
+ * HTTP method of the request.
110
+ */
111
+ method: string;
112
+
113
+ /**
114
+ * Request path.
115
+ */
116
+ path: string;
117
+
118
+ /**
119
+ * HTTP status code of the response.
120
+ */
121
+ status_code: number;
122
+
123
+ /**
124
+ * User agent string.
125
+ */
126
+ user_agent: string;
127
+ }
128
+
129
+ /**
130
+ * The entity that performed the action.
131
+ */
132
+ export interface AuditLogActor {
133
+ /**
134
+ * Unique identifier for the actor.
135
+ */
136
+ id: string;
137
+
138
+ /**
139
+ * Type of actor.
140
+ */
141
+ type: AuditLogType;
142
+ }
143
+
144
+ /**
145
+ * Type of actor.
146
+ */
147
+ export type AuditLogType = 'user' | 'api_key';
148
+
78
149
  /**
79
150
  * Organization response.
80
151
  */
@@ -167,8 +238,13 @@ export interface OrganizationUpdateParams {
167
238
 
168
239
  export interface OrganizationListParams extends CursorParams {}
169
240
 
241
+ Organizations.AuditLogs = AuditLogs;
242
+
170
243
  export declare namespace Organizations {
171
244
  export {
245
+ type AuditLog as AuditLog,
246
+ type AuditLogActor as AuditLogActor,
247
+ type AuditLogType as AuditLogType,
172
248
  type Organization as Organization,
173
249
  type OrganizationList as OrganizationList,
174
250
  type OrganizationMembership as OrganizationMembership,
@@ -178,4 +254,10 @@ export declare namespace Organizations {
178
254
  type OrganizationUpdateParams as OrganizationUpdateParams,
179
255
  type OrganizationListParams as OrganizationListParams,
180
256
  };
257
+
258
+ export {
259
+ AuditLogs as AuditLogs,
260
+ type AuditLogListParams as AuditLogListParams,
261
+ type AuditLogGetParams as AuditLogGetParams,
262
+ };
181
263
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.50.1'; // x-release-please-version
1
+ export const VERSION = '1.51.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.50.1";
1
+ export declare const VERSION = "1.51.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.50.1";
1
+ export declare const VERSION = "1.51.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.50.1'; // x-release-please-version
4
+ exports.VERSION = '1.51.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.50.1'; // x-release-please-version
1
+ export const VERSION = '1.51.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map