@nirvana-labs/nirvana 1.67.0 → 1.68.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.
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/resources/organizations/index.d.mts +1 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +1 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/memberships.d.mts +35 -8
- package/resources/organizations/memberships.d.mts.map +1 -1
- package/resources/organizations/memberships.d.ts +35 -8
- package/resources/organizations/memberships.d.ts.map +1 -1
- package/resources/organizations/memberships.js.map +1 -1
- package/resources/organizations/memberships.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +3 -52
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +3 -52
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs.map +1 -1
- package/src/resources/organizations/api.md +1 -1
- package/src/resources/organizations/index.ts +2 -0
- package/src/resources/organizations/memberships.ts +43 -8
- package/src/resources/organizations/organizations.ts +4 -60
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.68.0 (2026-04-03)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.67.0...v1.68.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.67.0...v1.68.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8ed72d3](https://github.com/nirvana-labs/nirvana-typescript/commit/8ed72d3ed259ff2cdba7845299cfd80cef37a367))
|
|
10
|
+
* **api:** api update ([67fb96a](https://github.com/nirvana-labs/nirvana-typescript/commit/67fb96ae388590b377ddcf55f4bba73078a542eb))
|
|
11
|
+
|
|
3
12
|
## 1.67.0 (2026-04-03)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v1.66.0...v1.67.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.66.0...v1.67.0)
|
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Memberships, type OrganizationMembershipList, type MembershipListParams, type MembershipGetParams, } from "./memberships.mjs";
|
|
1
|
+
export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipListParams, type MembershipGetParams, type OrganizationMembershipsCursor, } from "./memberships.mjs";
|
|
2
2
|
export { Organizations } from "./organizations.mjs";
|
|
3
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,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,GACnC;OACM,EAAE,aAAa,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Memberships, type OrganizationMembershipList, type MembershipListParams, type MembershipGetParams, } from "./memberships.js";
|
|
1
|
+
export { Memberships, type OrganizationMembership, type OrganizationMembershipList, type MembershipListParams, type MembershipGetParams, type OrganizationMembershipsCursor, } from "./memberships.js";
|
|
2
2
|
export { Organizations } from "./organizations.js";
|
|
3
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,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,GACnC;OACM,EAAE,aAAa,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,oDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organizations/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAMZ;OACM,EAAE,aAAa,EAAE"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
|
-
import * as OrganizationsAPI from "./organizations.mjs";
|
|
4
|
-
import { OrganizationMembershipsCursor } from "./organizations.mjs";
|
|
5
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
|
-
import { type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
|
7
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
8
6
|
export declare class Memberships extends APIResource {
|
|
9
7
|
/**
|
|
@@ -19,7 +17,7 @@ export declare class Memberships extends APIResource {
|
|
|
19
17
|
* }
|
|
20
18
|
* ```
|
|
21
19
|
*/
|
|
22
|
-
list(organizationID: string, query?: MembershipListParams | null | undefined, options?: RequestOptions): PagePromise<OrganizationMembershipsCursor,
|
|
20
|
+
list(organizationID: string, query?: MembershipListParams | null | undefined, options?: RequestOptions): PagePromise<OrganizationMembershipsCursor, OrganizationMembership>;
|
|
23
21
|
/**
|
|
24
22
|
* Get details about an organization membership
|
|
25
23
|
*
|
|
@@ -32,10 +30,40 @@ export declare class Memberships extends APIResource {
|
|
|
32
30
|
* );
|
|
33
31
|
* ```
|
|
34
32
|
*/
|
|
35
|
-
get(membershipID: string, params: MembershipGetParams, options?: RequestOptions): APIPromise<
|
|
33
|
+
get(membershipID: string, params: MembershipGetParams, options?: RequestOptions): APIPromise<OrganizationMembership>;
|
|
34
|
+
}
|
|
35
|
+
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
36
|
+
/**
|
|
37
|
+
* Organization membership details.
|
|
38
|
+
*/
|
|
39
|
+
export interface OrganizationMembership {
|
|
40
|
+
/**
|
|
41
|
+
* Membership ID.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* When the membership was created.
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* Organization ID.
|
|
50
|
+
*/
|
|
51
|
+
organization_id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Role of the user in the organization.
|
|
54
|
+
*/
|
|
55
|
+
role: 'owner' | 'member';
|
|
56
|
+
/**
|
|
57
|
+
* When the membership was updated.
|
|
58
|
+
*/
|
|
59
|
+
updated_at: string;
|
|
60
|
+
/**
|
|
61
|
+
* User ID.
|
|
62
|
+
*/
|
|
63
|
+
user_id: string;
|
|
36
64
|
}
|
|
37
65
|
export interface OrganizationMembershipList {
|
|
38
|
-
items: Array<
|
|
66
|
+
items: Array<OrganizationMembership>;
|
|
39
67
|
/**
|
|
40
68
|
* Pagination response details.
|
|
41
69
|
*/
|
|
@@ -50,7 +78,6 @@ export interface MembershipGetParams {
|
|
|
50
78
|
organization_id: string;
|
|
51
79
|
}
|
|
52
80
|
export declare namespace Memberships {
|
|
53
|
-
export { type OrganizationMembershipList as OrganizationMembershipList, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
81
|
+
export { type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
54
82
|
}
|
|
55
|
-
export { type OrganizationMembershipsCursor };
|
|
56
83
|
//# sourceMappingURL=memberships.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memberships.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/memberships.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,
|
|
1
|
+
{"version":3,"file":"memberships.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/memberships.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,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,sBAAsB,CAAC;IAQrE;;;;;;;;;;;OAWG;IACH,GAAG,CACD,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAItC;AAED,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAErC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;CAAG;AAE7D,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
|
-
import * as OrganizationsAPI from "./organizations.js";
|
|
4
|
-
import { OrganizationMembershipsCursor } from "./organizations.js";
|
|
5
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
|
-
import { type CursorParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
|
7
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
8
6
|
export declare class Memberships extends APIResource {
|
|
9
7
|
/**
|
|
@@ -19,7 +17,7 @@ export declare class Memberships extends APIResource {
|
|
|
19
17
|
* }
|
|
20
18
|
* ```
|
|
21
19
|
*/
|
|
22
|
-
list(organizationID: string, query?: MembershipListParams | null | undefined, options?: RequestOptions): PagePromise<OrganizationMembershipsCursor,
|
|
20
|
+
list(organizationID: string, query?: MembershipListParams | null | undefined, options?: RequestOptions): PagePromise<OrganizationMembershipsCursor, OrganizationMembership>;
|
|
23
21
|
/**
|
|
24
22
|
* Get details about an organization membership
|
|
25
23
|
*
|
|
@@ -32,10 +30,40 @@ export declare class Memberships extends APIResource {
|
|
|
32
30
|
* );
|
|
33
31
|
* ```
|
|
34
32
|
*/
|
|
35
|
-
get(membershipID: string, params: MembershipGetParams, options?: RequestOptions): APIPromise<
|
|
33
|
+
get(membershipID: string, params: MembershipGetParams, options?: RequestOptions): APIPromise<OrganizationMembership>;
|
|
34
|
+
}
|
|
35
|
+
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
36
|
+
/**
|
|
37
|
+
* Organization membership details.
|
|
38
|
+
*/
|
|
39
|
+
export interface OrganizationMembership {
|
|
40
|
+
/**
|
|
41
|
+
* Membership ID.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* When the membership was created.
|
|
46
|
+
*/
|
|
47
|
+
created_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* Organization ID.
|
|
50
|
+
*/
|
|
51
|
+
organization_id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Role of the user in the organization.
|
|
54
|
+
*/
|
|
55
|
+
role: 'owner' | 'member';
|
|
56
|
+
/**
|
|
57
|
+
* When the membership was updated.
|
|
58
|
+
*/
|
|
59
|
+
updated_at: string;
|
|
60
|
+
/**
|
|
61
|
+
* User ID.
|
|
62
|
+
*/
|
|
63
|
+
user_id: string;
|
|
36
64
|
}
|
|
37
65
|
export interface OrganizationMembershipList {
|
|
38
|
-
items: Array<
|
|
66
|
+
items: Array<OrganizationMembership>;
|
|
39
67
|
/**
|
|
40
68
|
* Pagination response details.
|
|
41
69
|
*/
|
|
@@ -50,7 +78,6 @@ export interface MembershipGetParams {
|
|
|
50
78
|
organization_id: string;
|
|
51
79
|
}
|
|
52
80
|
export declare namespace Memberships {
|
|
53
|
-
export { type OrganizationMembershipList as OrganizationMembershipList, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
81
|
+
export { type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
54
82
|
}
|
|
55
|
-
export { type OrganizationMembershipsCursor };
|
|
56
83
|
//# sourceMappingURL=memberships.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memberships.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/memberships.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,
|
|
1
|
+
{"version":3,"file":"memberships.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/memberships.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,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,sBAAsB,CAAC;IAQrE;;;;;;;;;;;OAWG;IACH,GAAG,CACD,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CAItC;AAED,MAAM,MAAM,6BAA6B,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAErC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;CAAG;AAE7D,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memberships.js","sourceRoot":"","sources":["../../src/resources/organizations/memberships.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"memberships.js","sourceRoot":"","sources":["../../src/resources/organizations/memberships.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAsB,EACtB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,qBAAqB,cAAc,cAAc,EACrD,CAAA,mBAA8B,CAAA,EAC9B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CACD,YAAoB,EACpB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,eAAe,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;CACF;AA9CD,kCA8CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memberships.mjs","sourceRoot":"","sources":["../../src/resources/organizations/memberships.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"memberships.mjs","sourceRoot":"","sources":["../../src/resources/organizations/memberships.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,cAAsB,EACtB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,qBAAqB,cAAc,cAAc,EACrD,CAAA,MAA8B,CAAA,EAC9B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CACD,YAAoB,EACpB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,eAAe,gBAAgB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3G,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as Shared from "../shared.mjs";
|
|
3
3
|
import * as MembershipsAPI from "./memberships.mjs";
|
|
4
|
-
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembershipList } from "./memberships.mjs";
|
|
4
|
+
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.mjs";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
6
|
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
|
7
7
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -63,7 +63,6 @@ export declare class Organizations extends APIResource {
|
|
|
63
63
|
leave(organizationID: string, options?: RequestOptions): APIPromise<void>;
|
|
64
64
|
}
|
|
65
65
|
export type OrganizationsCursor = Cursor<Organization>;
|
|
66
|
-
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
67
66
|
/**
|
|
68
67
|
* Organization response.
|
|
69
68
|
*/
|
|
@@ -80,10 +79,6 @@ export interface Organization {
|
|
|
80
79
|
* Domains associated with the organization.
|
|
81
80
|
*/
|
|
82
81
|
domains: Array<OrganizationDomain>;
|
|
83
|
-
/**
|
|
84
|
-
* Current user's membership details.
|
|
85
|
-
*/
|
|
86
|
-
membership: Organization.Membership;
|
|
87
82
|
/**
|
|
88
83
|
* Organization name.
|
|
89
84
|
*/
|
|
@@ -105,21 +100,6 @@ export interface Organization {
|
|
|
105
100
|
*/
|
|
106
101
|
auth_id?: string;
|
|
107
102
|
}
|
|
108
|
-
export declare namespace Organization {
|
|
109
|
-
/**
|
|
110
|
-
* Current user's membership details.
|
|
111
|
-
*/
|
|
112
|
-
interface Membership {
|
|
113
|
-
/**
|
|
114
|
-
* Membership ID.
|
|
115
|
-
*/
|
|
116
|
-
id: string;
|
|
117
|
-
/**
|
|
118
|
-
* Role of the user in the organization.
|
|
119
|
-
*/
|
|
120
|
-
role: 'owner' | 'member';
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
103
|
/**
|
|
124
104
|
* Organization domain details.
|
|
125
105
|
*/
|
|
@@ -144,35 +124,6 @@ export interface OrganizationList {
|
|
|
144
124
|
*/
|
|
145
125
|
pagination: Shared.Pagination;
|
|
146
126
|
}
|
|
147
|
-
/**
|
|
148
|
-
* Organization membership details.
|
|
149
|
-
*/
|
|
150
|
-
export interface OrganizationMembership {
|
|
151
|
-
/**
|
|
152
|
-
* Membership ID.
|
|
153
|
-
*/
|
|
154
|
-
id: string;
|
|
155
|
-
/**
|
|
156
|
-
* When the membership was created.
|
|
157
|
-
*/
|
|
158
|
-
created_at: string;
|
|
159
|
-
/**
|
|
160
|
-
* Organization ID.
|
|
161
|
-
*/
|
|
162
|
-
organization_id: string;
|
|
163
|
-
/**
|
|
164
|
-
* Role of the user in the organization.
|
|
165
|
-
*/
|
|
166
|
-
role: 'owner' | 'member';
|
|
167
|
-
/**
|
|
168
|
-
* When the membership was updated.
|
|
169
|
-
*/
|
|
170
|
-
updated_at: string;
|
|
171
|
-
/**
|
|
172
|
-
* User ID.
|
|
173
|
-
*/
|
|
174
|
-
user_id: string;
|
|
175
|
-
}
|
|
176
127
|
/**
|
|
177
128
|
* Services that the Organization has access to.
|
|
178
129
|
*/
|
|
@@ -213,7 +164,7 @@ export interface OrganizationUpdateParams {
|
|
|
213
164
|
export interface OrganizationListParams extends CursorParams {
|
|
214
165
|
}
|
|
215
166
|
export declare namespace Organizations {
|
|
216
|
-
export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type
|
|
217
|
-
export { Memberships as Memberships, type OrganizationMembershipList as OrganizationMembershipList, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
167
|
+
export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type OrganizationServices as OrganizationServices, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
|
|
168
|
+
export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
218
169
|
}
|
|
219
170
|
//# 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,KAAK,cAAc;OACnB,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,0BAA0B,
|
|
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,cAAc;OACnB,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAE1C,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B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as Shared from "../shared.js";
|
|
3
3
|
import * as MembershipsAPI from "./memberships.js";
|
|
4
|
-
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembershipList } from "./memberships.js";
|
|
4
|
+
import { MembershipGetParams, MembershipListParams, Memberships, OrganizationMembership, OrganizationMembershipList, OrganizationMembershipsCursor } from "./memberships.js";
|
|
5
5
|
import { APIPromise } from "../../core/api-promise.js";
|
|
6
6
|
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
|
7
7
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
@@ -63,7 +63,6 @@ export declare class Organizations extends APIResource {
|
|
|
63
63
|
leave(organizationID: string, options?: RequestOptions): APIPromise<void>;
|
|
64
64
|
}
|
|
65
65
|
export type OrganizationsCursor = Cursor<Organization>;
|
|
66
|
-
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
67
66
|
/**
|
|
68
67
|
* Organization response.
|
|
69
68
|
*/
|
|
@@ -80,10 +79,6 @@ export interface Organization {
|
|
|
80
79
|
* Domains associated with the organization.
|
|
81
80
|
*/
|
|
82
81
|
domains: Array<OrganizationDomain>;
|
|
83
|
-
/**
|
|
84
|
-
* Current user's membership details.
|
|
85
|
-
*/
|
|
86
|
-
membership: Organization.Membership;
|
|
87
82
|
/**
|
|
88
83
|
* Organization name.
|
|
89
84
|
*/
|
|
@@ -105,21 +100,6 @@ export interface Organization {
|
|
|
105
100
|
*/
|
|
106
101
|
auth_id?: string;
|
|
107
102
|
}
|
|
108
|
-
export declare namespace Organization {
|
|
109
|
-
/**
|
|
110
|
-
* Current user's membership details.
|
|
111
|
-
*/
|
|
112
|
-
interface Membership {
|
|
113
|
-
/**
|
|
114
|
-
* Membership ID.
|
|
115
|
-
*/
|
|
116
|
-
id: string;
|
|
117
|
-
/**
|
|
118
|
-
* Role of the user in the organization.
|
|
119
|
-
*/
|
|
120
|
-
role: 'owner' | 'member';
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
103
|
/**
|
|
124
104
|
* Organization domain details.
|
|
125
105
|
*/
|
|
@@ -144,35 +124,6 @@ export interface OrganizationList {
|
|
|
144
124
|
*/
|
|
145
125
|
pagination: Shared.Pagination;
|
|
146
126
|
}
|
|
147
|
-
/**
|
|
148
|
-
* Organization membership details.
|
|
149
|
-
*/
|
|
150
|
-
export interface OrganizationMembership {
|
|
151
|
-
/**
|
|
152
|
-
* Membership ID.
|
|
153
|
-
*/
|
|
154
|
-
id: string;
|
|
155
|
-
/**
|
|
156
|
-
* When the membership was created.
|
|
157
|
-
*/
|
|
158
|
-
created_at: string;
|
|
159
|
-
/**
|
|
160
|
-
* Organization ID.
|
|
161
|
-
*/
|
|
162
|
-
organization_id: string;
|
|
163
|
-
/**
|
|
164
|
-
* Role of the user in the organization.
|
|
165
|
-
*/
|
|
166
|
-
role: 'owner' | 'member';
|
|
167
|
-
/**
|
|
168
|
-
* When the membership was updated.
|
|
169
|
-
*/
|
|
170
|
-
updated_at: string;
|
|
171
|
-
/**
|
|
172
|
-
* User ID.
|
|
173
|
-
*/
|
|
174
|
-
user_id: string;
|
|
175
|
-
}
|
|
176
127
|
/**
|
|
177
128
|
* Services that the Organization has access to.
|
|
178
129
|
*/
|
|
@@ -213,7 +164,7 @@ export interface OrganizationUpdateParams {
|
|
|
213
164
|
export interface OrganizationListParams extends CursorParams {
|
|
214
165
|
}
|
|
215
166
|
export declare namespace Organizations {
|
|
216
|
-
export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type
|
|
217
|
-
export { Memberships as Memberships, type OrganizationMembershipList as OrganizationMembershipList, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
167
|
+
export { type Organization as Organization, type OrganizationDomain as OrganizationDomain, type OrganizationList as OrganizationList, type OrganizationServices as OrganizationServices, type OrganizationsCursor as OrganizationsCursor, type OrganizationCreateParams as OrganizationCreateParams, type OrganizationUpdateParams as OrganizationUpdateParams, type OrganizationListParams as OrganizationListParams, };
|
|
168
|
+
export { Memberships as Memberships, type OrganizationMembership as OrganizationMembership, type OrganizationMembershipList as OrganizationMembershipList, type OrganizationMembershipsCursor as OrganizationMembershipsCursor, type MembershipListParams as MembershipListParams, type MembershipGetParams as MembershipGetParams, };
|
|
218
169
|
}
|
|
219
170
|
//# 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,KAAK,cAAc;OACnB,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,0BAA0B,
|
|
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,cAAc;OACnB,EACL,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,EAC9B;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAE1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;;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,wBA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UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;CACd;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,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,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,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,yEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"organizations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cAAc,QAAQ,EAAE;YACxE,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;CACF;AAjFD,sCAiFC;AA4HD,aAAa,CAAC,WAAW,GAAG,yBAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,cAAc;OACnB,EAGL,WAAW,
|
|
1
|
+
{"version":3,"file":"organizations.mjs","sourceRoot":"","sources":["../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,cAAc;OACnB,EAGL,WAAW,GAIZ;OAEM,EAAE,MAAM,EAAkC;OAC1C,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAA9C;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgFzF,CAAC;IA9EC;;;;;;;;;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;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAsB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,cAAc,QAAQ,EAAE;YACxE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA4HD,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -5,7 +5,6 @@ Types:
|
|
|
5
5
|
- <code><a href="./src/resources/organizations/organizations.ts">Organization</a></code>
|
|
6
6
|
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationDomain</a></code>
|
|
7
7
|
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationList</a></code>
|
|
8
|
-
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationMembership</a></code>
|
|
9
8
|
- <code><a href="./src/resources/organizations/organizations.ts">OrganizationServices</a></code>
|
|
10
9
|
|
|
11
10
|
Methods:
|
|
@@ -20,6 +19,7 @@ Methods:
|
|
|
20
19
|
|
|
21
20
|
Types:
|
|
22
21
|
|
|
22
|
+
- <code><a href="./src/resources/organizations/memberships.ts">OrganizationMembership</a></code>
|
|
23
23
|
- <code><a href="./src/resources/organizations/memberships.ts">OrganizationMembershipList</a></code>
|
|
24
24
|
|
|
25
25
|
Methods:
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Memberships,
|
|
5
|
+
type OrganizationMembership,
|
|
5
6
|
type OrganizationMembershipList,
|
|
6
7
|
type MembershipListParams,
|
|
7
8
|
type MembershipGetParams,
|
|
9
|
+
type OrganizationMembershipsCursor,
|
|
8
10
|
} from './memberships';
|
|
9
11
|
export { Organizations } from './organizations';
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
-
import * as OrganizationsAPI from './organizations';
|
|
6
|
-
import { OrganizationMembershipsCursor } from './organizations';
|
|
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';
|
|
@@ -27,10 +25,10 @@ export class Memberships extends APIResource {
|
|
|
27
25
|
organizationID: string,
|
|
28
26
|
query: MembershipListParams | null | undefined = {},
|
|
29
27
|
options?: RequestOptions,
|
|
30
|
-
): PagePromise<OrganizationMembershipsCursor,
|
|
28
|
+
): PagePromise<OrganizationMembershipsCursor, OrganizationMembership> {
|
|
31
29
|
return this._client.getAPIList(
|
|
32
30
|
path`/v1/organizations/${organizationID}/memberships`,
|
|
33
|
-
Cursor<
|
|
31
|
+
Cursor<OrganizationMembership>,
|
|
34
32
|
{ query, ...options },
|
|
35
33
|
);
|
|
36
34
|
}
|
|
@@ -51,14 +49,51 @@ export class Memberships extends APIResource {
|
|
|
51
49
|
membershipID: string,
|
|
52
50
|
params: MembershipGetParams,
|
|
53
51
|
options?: RequestOptions,
|
|
54
|
-
): APIPromise<
|
|
52
|
+
): APIPromise<OrganizationMembership> {
|
|
55
53
|
const { organization_id } = params;
|
|
56
54
|
return this._client.get(path`/v1/organizations/${organization_id}/memberships/${membershipID}`, options);
|
|
57
55
|
}
|
|
58
56
|
}
|
|
59
57
|
|
|
58
|
+
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Organization membership details.
|
|
62
|
+
*/
|
|
63
|
+
export interface OrganizationMembership {
|
|
64
|
+
/**
|
|
65
|
+
* Membership ID.
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* When the membership was created.
|
|
71
|
+
*/
|
|
72
|
+
created_at: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Organization ID.
|
|
76
|
+
*/
|
|
77
|
+
organization_id: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Role of the user in the organization.
|
|
81
|
+
*/
|
|
82
|
+
role: 'owner' | 'member';
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* When the membership was updated.
|
|
86
|
+
*/
|
|
87
|
+
updated_at: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* User ID.
|
|
91
|
+
*/
|
|
92
|
+
user_id: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
60
95
|
export interface OrganizationMembershipList {
|
|
61
|
-
items: Array<
|
|
96
|
+
items: Array<OrganizationMembership>;
|
|
62
97
|
|
|
63
98
|
/**
|
|
64
99
|
* Pagination response details.
|
|
@@ -77,10 +112,10 @@ export interface MembershipGetParams {
|
|
|
77
112
|
|
|
78
113
|
export declare namespace Memberships {
|
|
79
114
|
export {
|
|
115
|
+
type OrganizationMembership as OrganizationMembership,
|
|
80
116
|
type OrganizationMembershipList as OrganizationMembershipList,
|
|
117
|
+
type OrganizationMembershipsCursor as OrganizationMembershipsCursor,
|
|
81
118
|
type MembershipListParams as MembershipListParams,
|
|
82
119
|
type MembershipGetParams as MembershipGetParams,
|
|
83
120
|
};
|
|
84
121
|
}
|
|
85
|
-
|
|
86
|
-
export { type OrganizationMembershipsCursor };
|
|
@@ -7,7 +7,9 @@ import {
|
|
|
7
7
|
MembershipGetParams,
|
|
8
8
|
MembershipListParams,
|
|
9
9
|
Memberships,
|
|
10
|
+
OrganizationMembership,
|
|
10
11
|
OrganizationMembershipList,
|
|
12
|
+
OrganizationMembershipsCursor,
|
|
11
13
|
} from './memberships';
|
|
12
14
|
import { APIPromise } from '../../core/api-promise';
|
|
13
15
|
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
@@ -100,8 +102,6 @@ export class Organizations extends APIResource {
|
|
|
100
102
|
|
|
101
103
|
export type OrganizationsCursor = Cursor<Organization>;
|
|
102
104
|
|
|
103
|
-
export type OrganizationMembershipsCursor = Cursor<OrganizationMembership>;
|
|
104
|
-
|
|
105
105
|
/**
|
|
106
106
|
* Organization response.
|
|
107
107
|
*/
|
|
@@ -121,11 +121,6 @@ export interface Organization {
|
|
|
121
121
|
*/
|
|
122
122
|
domains: Array<OrganizationDomain>;
|
|
123
123
|
|
|
124
|
-
/**
|
|
125
|
-
* Current user's membership details.
|
|
126
|
-
*/
|
|
127
|
-
membership: Organization.Membership;
|
|
128
|
-
|
|
129
124
|
/**
|
|
130
125
|
* Organization name.
|
|
131
126
|
*/
|
|
@@ -152,23 +147,6 @@ export interface Organization {
|
|
|
152
147
|
auth_id?: string;
|
|
153
148
|
}
|
|
154
149
|
|
|
155
|
-
export namespace Organization {
|
|
156
|
-
/**
|
|
157
|
-
* Current user's membership details.
|
|
158
|
-
*/
|
|
159
|
-
export interface Membership {
|
|
160
|
-
/**
|
|
161
|
-
* Membership ID.
|
|
162
|
-
*/
|
|
163
|
-
id: string;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Role of the user in the organization.
|
|
167
|
-
*/
|
|
168
|
-
role: 'owner' | 'member';
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
150
|
/**
|
|
173
151
|
* Organization domain details.
|
|
174
152
|
*/
|
|
@@ -198,41 +176,6 @@ export interface OrganizationList {
|
|
|
198
176
|
pagination: Shared.Pagination;
|
|
199
177
|
}
|
|
200
178
|
|
|
201
|
-
/**
|
|
202
|
-
* Organization membership details.
|
|
203
|
-
*/
|
|
204
|
-
export interface OrganizationMembership {
|
|
205
|
-
/**
|
|
206
|
-
* Membership ID.
|
|
207
|
-
*/
|
|
208
|
-
id: string;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* When the membership was created.
|
|
212
|
-
*/
|
|
213
|
-
created_at: string;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* Organization ID.
|
|
217
|
-
*/
|
|
218
|
-
organization_id: string;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Role of the user in the organization.
|
|
222
|
-
*/
|
|
223
|
-
role: 'owner' | 'member';
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* When the membership was updated.
|
|
227
|
-
*/
|
|
228
|
-
updated_at: string;
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* User ID.
|
|
232
|
-
*/
|
|
233
|
-
user_id: string;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
179
|
/**
|
|
237
180
|
* Services that the Organization has access to.
|
|
238
181
|
*/
|
|
@@ -286,7 +229,6 @@ export declare namespace Organizations {
|
|
|
286
229
|
type Organization as Organization,
|
|
287
230
|
type OrganizationDomain as OrganizationDomain,
|
|
288
231
|
type OrganizationList as OrganizationList,
|
|
289
|
-
type OrganizationMembership as OrganizationMembership,
|
|
290
232
|
type OrganizationServices as OrganizationServices,
|
|
291
233
|
type OrganizationsCursor as OrganizationsCursor,
|
|
292
234
|
type OrganizationCreateParams as OrganizationCreateParams,
|
|
@@ -296,7 +238,9 @@ export declare namespace Organizations {
|
|
|
296
238
|
|
|
297
239
|
export {
|
|
298
240
|
Memberships as Memberships,
|
|
241
|
+
type OrganizationMembership as OrganizationMembership,
|
|
299
242
|
type OrganizationMembershipList as OrganizationMembershipList,
|
|
243
|
+
type OrganizationMembershipsCursor as OrganizationMembershipsCursor,
|
|
300
244
|
type MembershipListParams as MembershipListParams,
|
|
301
245
|
type MembershipGetParams as MembershipGetParams,
|
|
302
246
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.68.0'; // 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.68.0";
|
|
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.68.0";
|
|
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.68.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|