@nirvana-labs/nirvana 1.52.0 → 1.53.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 (82) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/bin/migration-config.json +0 -33
  3. package/client.d.mts +3 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +3 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/audit-logs/audit-logs.d.mts +68 -0
  13. package/resources/audit-logs/audit-logs.d.mts.map +1 -0
  14. package/resources/audit-logs/audit-logs.d.ts +68 -0
  15. package/resources/audit-logs/audit-logs.d.ts.map +1 -0
  16. package/resources/audit-logs/audit-logs.js +26 -0
  17. package/resources/audit-logs/audit-logs.js.map +1 -0
  18. package/resources/audit-logs/audit-logs.mjs +22 -0
  19. package/resources/audit-logs/audit-logs.mjs.map +1 -0
  20. package/resources/audit-logs/index.d.mts +2 -0
  21. package/resources/audit-logs/index.d.mts.map +1 -0
  22. package/resources/audit-logs/index.d.ts +2 -0
  23. package/resources/audit-logs/index.d.ts.map +1 -0
  24. package/resources/audit-logs/index.js +7 -0
  25. package/resources/audit-logs/index.js.map +1 -0
  26. package/resources/audit-logs/index.mjs +3 -0
  27. package/resources/audit-logs/index.mjs.map +1 -0
  28. package/resources/audit-logs.d.mts +2 -0
  29. package/resources/audit-logs.d.mts.map +1 -0
  30. package/resources/audit-logs.d.ts +2 -0
  31. package/resources/audit-logs.d.ts.map +1 -0
  32. package/resources/audit-logs.js +6 -0
  33. package/resources/audit-logs.js.map +1 -0
  34. package/resources/audit-logs.mjs +3 -0
  35. package/resources/audit-logs.mjs.map +1 -0
  36. package/resources/index.d.mts +2 -1
  37. package/resources/index.d.mts.map +1 -1
  38. package/resources/index.d.ts +2 -1
  39. package/resources/index.d.ts.map +1 -1
  40. package/resources/index.js +4 -2
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs +2 -1
  43. package/resources/index.mjs.map +1 -1
  44. package/resources/organizations/index.d.mts +0 -1
  45. package/resources/organizations/index.d.mts.map +1 -1
  46. package/resources/organizations/index.d.ts +0 -1
  47. package/resources/organizations/index.d.ts.map +1 -1
  48. package/resources/organizations/index.js +1 -3
  49. package/resources/organizations/index.js.map +1 -1
  50. package/resources/organizations/index.mjs +0 -1
  51. package/resources/organizations/index.mjs.map +1 -1
  52. package/resources/organizations/organizations.d.mts +0 -4
  53. package/resources/organizations/organizations.d.mts.map +1 -1
  54. package/resources/organizations/organizations.d.ts +0 -4
  55. package/resources/organizations/organizations.d.ts.map +1 -1
  56. package/resources/organizations/organizations.js +0 -8
  57. package/resources/organizations/organizations.js.map +1 -1
  58. package/resources/organizations/organizations.mjs +0 -7
  59. package/resources/organizations/organizations.mjs.map +1 -1
  60. package/src/client.ts +5 -0
  61. package/src/resources/audit-logs/api.md +11 -0
  62. package/src/resources/audit-logs/audit-logs.ts +98 -0
  63. package/src/resources/audit-logs/index.ts +3 -0
  64. package/src/resources/audit-logs.ts +3 -0
  65. package/src/resources/index.ts +2 -1
  66. package/src/resources/organizations/api.md +11 -18
  67. package/src/resources/organizations/index.ts +0 -1
  68. package/src/resources/organizations/organizations.ts +0 -12
  69. package/src/version.ts +1 -1
  70. package/version.d.mts +1 -1
  71. package/version.d.ts +1 -1
  72. package/version.js +1 -1
  73. package/version.mjs +1 -1
  74. package/resources/organizations/audit-logs.d.mts +0 -47
  75. package/resources/organizations/audit-logs.d.mts.map +0 -1
  76. package/resources/organizations/audit-logs.d.ts +0 -47
  77. package/resources/organizations/audit-logs.d.ts.map +0 -1
  78. package/resources/organizations/audit-logs.js +0 -42
  79. package/resources/organizations/audit-logs.js.map +0 -1
  80. package/resources/organizations/audit-logs.mjs +0 -38
  81. package/resources/organizations/audit-logs.mjs.map +0 -1
  82. package/src/resources/organizations/audit-logs.ts +0 -71
@@ -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 };