@tembo-io/sdk 0.22.0 → 0.23.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/api.md +165 -7
- package/dist/cjs/client.d.ts +7 -4
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +3 -0
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/resources/agents/runs.d.ts +6 -1
- package/dist/cjs/resources/agents/runs.d.ts.map +1 -1
- package/dist/cjs/resources/agents/runs.js +1 -1
- package/dist/cjs/resources/artifacts.d.ts +24 -1
- package/dist/cjs/resources/artifacts.d.ts.map +1 -1
- package/dist/cjs/resources/artifacts.js +15 -0
- package/dist/cjs/resources/artifacts.js.map +1 -1
- package/dist/cjs/resources/billing.d.ts +1 -0
- package/dist/cjs/resources/billing.d.ts.map +1 -1
- package/dist/cjs/resources/folders.d.ts +213 -0
- package/dist/cjs/resources/folders.d.ts.map +1 -0
- package/dist/cjs/resources/folders.js +72 -0
- package/dist/cjs/resources/folders.js.map +1 -0
- package/dist/cjs/resources/index.d.ts +4 -2
- package/dist/cjs/resources/index.d.ts.map +1 -1
- package/dist/cjs/resources/index.js +3 -1
- package/dist/cjs/resources/index.js.map +1 -1
- package/dist/cjs/resources/insights.d.ts +22 -8
- package/dist/cjs/resources/insights.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/index.d.ts +2 -0
- package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/index.js +3 -1
- package/dist/cjs/resources/organizations/index.js.map +1 -1
- package/dist/cjs/resources/organizations/members.d.ts +259 -92
- package/dist/cjs/resources/organizations/members.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/members.js +1 -2
- package/dist/cjs/resources/organizations/members.js.map +1 -1
- package/dist/cjs/resources/organizations/organizations.d.ts +55 -21
- package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
- package/dist/cjs/resources/organizations/organizations.js +5 -1
- package/dist/cjs/resources/organizations/organizations.js.map +1 -1
- package/dist/cjs/resources/organizations/roles.d.ts +189 -0
- package/dist/cjs/resources/organizations/roles.d.ts.map +1 -0
- package/dist/cjs/resources/organizations/roles.js +110 -0
- package/dist/cjs/resources/organizations/roles.js.map +1 -0
- package/dist/cjs/resources/pins.d.ts +63 -25
- package/dist/cjs/resources/pins.d.ts.map +1 -1
- package/dist/cjs/resources/pins.js +5 -5
- package/dist/cjs/resources/projects/index.d.ts +1 -1
- package/dist/cjs/resources/projects/index.d.ts.map +1 -1
- package/dist/cjs/resources/projects/index.js.map +1 -1
- package/dist/cjs/resources/projects/projects.d.ts +23 -1
- package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
- package/dist/cjs/resources/projects/projects.js +14 -0
- package/dist/cjs/resources/projects/projects.js.map +1 -1
- package/dist/cjs/resources/sessions/sessions.d.ts +41 -2
- package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
- package/dist/cjs/resources/sessions/sessions.js.map +1 -1
- package/dist/cjs/resources.d.ts +2 -2
- package/dist/cjs/resources.d.ts.map +1 -1
- package/dist/cjs/resources.js +2 -1
- package/dist/cjs/resources.js.map +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/client.d.ts +7 -4
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +3 -0
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/resources/agents/runs.d.ts +6 -1
- package/dist/esm/resources/agents/runs.d.ts.map +1 -1
- package/dist/esm/resources/agents/runs.js +1 -1
- package/dist/esm/resources/artifacts.d.ts +24 -1
- package/dist/esm/resources/artifacts.d.ts.map +1 -1
- package/dist/esm/resources/artifacts.js +15 -0
- package/dist/esm/resources/artifacts.js.map +1 -1
- package/dist/esm/resources/billing.d.ts +1 -0
- package/dist/esm/resources/billing.d.ts.map +1 -1
- package/dist/esm/resources/folders.d.ts +213 -0
- package/dist/esm/resources/folders.d.ts.map +1 -0
- package/dist/esm/resources/folders.js +68 -0
- package/dist/esm/resources/folders.js.map +1 -0
- package/dist/esm/resources/index.d.ts +4 -2
- package/dist/esm/resources/index.d.ts.map +1 -1
- package/dist/esm/resources/index.js +1 -0
- package/dist/esm/resources/index.js.map +1 -1
- package/dist/esm/resources/insights.d.ts +22 -8
- package/dist/esm/resources/insights.d.ts.map +1 -1
- package/dist/esm/resources/organizations/index.d.ts +2 -0
- package/dist/esm/resources/organizations/index.d.ts.map +1 -1
- package/dist/esm/resources/organizations/index.js +1 -0
- package/dist/esm/resources/organizations/index.js.map +1 -1
- package/dist/esm/resources/organizations/members.d.ts +259 -92
- package/dist/esm/resources/organizations/members.d.ts.map +1 -1
- package/dist/esm/resources/organizations/members.js +1 -2
- package/dist/esm/resources/organizations/members.js.map +1 -1
- package/dist/esm/resources/organizations/organizations.d.ts +55 -21
- package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
- package/dist/esm/resources/organizations/organizations.js +5 -1
- package/dist/esm/resources/organizations/organizations.js.map +1 -1
- package/dist/esm/resources/organizations/roles.d.ts +189 -0
- package/dist/esm/resources/organizations/roles.d.ts.map +1 -0
- package/dist/esm/resources/organizations/roles.js +106 -0
- package/dist/esm/resources/organizations/roles.js.map +1 -0
- package/dist/esm/resources/pins.d.ts +63 -25
- package/dist/esm/resources/pins.d.ts.map +1 -1
- package/dist/esm/resources/pins.js +5 -5
- package/dist/esm/resources/projects/index.d.ts +1 -1
- package/dist/esm/resources/projects/index.d.ts.map +1 -1
- package/dist/esm/resources/projects/index.js.map +1 -1
- package/dist/esm/resources/projects/projects.d.ts +23 -1
- package/dist/esm/resources/projects/projects.d.ts.map +1 -1
- package/dist/esm/resources/projects/projects.js +14 -0
- package/dist/esm/resources/projects/projects.js.map +1 -1
- package/dist/esm/resources/sessions/sessions.d.ts +41 -2
- package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
- package/dist/esm/resources/sessions/sessions.js.map +1 -1
- package/dist/esm/resources.d.ts +2 -2
- package/dist/esm/resources.d.ts.map +1 -1
- package/dist/esm/resources.js +1 -1
- package/dist/esm/resources.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,kCAAkC,EACvC,KAAK,mBAAmB,EACxB,KAAK,gCAAgC,EACtC,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,gBAAgB,MAAM,iBAAiB,CAAC;AACpD,O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,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE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BAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;IAEF,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -3,6 +3,8 @@ import { APIResource } from '../../resource.js';
|
|
|
3
3
|
import { path as __scalarPath } from '../../internal/utils/path.js';
|
|
4
4
|
import * as MembersAPI from './members.js';
|
|
5
5
|
import { Members, } from './members.js';
|
|
6
|
+
import * as RolesAPI from './roles.js';
|
|
7
|
+
import { Roles, } from './roles.js';
|
|
6
8
|
import * as SecretsAPI from './secrets.js';
|
|
7
9
|
import { Secrets, } from './secrets.js';
|
|
8
10
|
import * as SettingsAPI from './settings.js';
|
|
@@ -11,6 +13,7 @@ import * as SubscriptionsAPI from './subscriptions.js';
|
|
|
11
13
|
import { Subscriptions } from './subscriptions.js';
|
|
12
14
|
export class Organizations extends APIResource {
|
|
13
15
|
members = new MembersAPI.Members(this._client);
|
|
16
|
+
roles = new RolesAPI.Roles(this._client);
|
|
14
17
|
secrets = new SecretsAPI.Secrets(this._client);
|
|
15
18
|
settings = new SettingsAPI.Settings(this._client);
|
|
16
19
|
subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
@@ -32,7 +35,7 @@ export class Organizations extends APIResource {
|
|
|
32
35
|
return this._client.post('/v1/organizations', { body, ...options });
|
|
33
36
|
}
|
|
34
37
|
/**
|
|
35
|
-
*
|
|
38
|
+
* Return self membership and workspace eligibility; include the full profile with organization read permission.
|
|
36
39
|
*
|
|
37
40
|
* @param {string} organizationID
|
|
38
41
|
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
@@ -79,6 +82,7 @@ export class Organizations extends APIResource {
|
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
Organizations.Members = Members;
|
|
85
|
+
Organizations.Roles = Roles;
|
|
82
86
|
Organizations.Secrets = Secrets;
|
|
83
87
|
Organizations.Settings = Settings;
|
|
84
88
|
Organizations.Subscriptions = Subscriptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,OAAO,GAWR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EACL,OAAO,GAWR,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,WAAW,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,QAAQ,GAMT,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,gBAAgB,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAqC,MAAM,iBAAiB,CAAC;AAEnF,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C,OAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnE,OAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnE,QAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxE,aAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEjG;;;;;;;;;;;;;OAaG;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;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,cAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../../src/resources/organizations/organizations.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,UAA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C;IACtF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,cAAsB,EACtB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAA,qBAAqB,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAA,qBAAqB,cAAc,EAAE,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACF;AAgnBD,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC;AAC5B,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAClC,aAAa,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { APIResource } from '../../resource.js';
|
|
2
|
+
import { APIPromise } from '../../api-promise.js';
|
|
3
|
+
import type { RequestOptions } from '../../internal/request-options.js';
|
|
4
|
+
export declare class Roles extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List organization roles
|
|
7
|
+
*
|
|
8
|
+
* @param {string} organizationID
|
|
9
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
10
|
+
* @returns {APIPromise<RoleListResponse>} List organization roles
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const role = await client.organizations.roles.list('organizationId');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(organizationID: string, options?: RequestOptions): APIPromise<RoleListResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a organization role
|
|
20
|
+
*
|
|
21
|
+
* @param {string} organizationID
|
|
22
|
+
* @param {RoleCreateParams} body - The request body to send.
|
|
23
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
24
|
+
* @returns {APIPromise<RoleCreateResponse>} Create a organization role
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const role = await client.organizations.roles.create('organizationId', {
|
|
29
|
+
* name: 'x',
|
|
30
|
+
* description: '',
|
|
31
|
+
* permissions: ['organization:read'],
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(organizationID: string, body: RoleCreateParams, options?: RequestOptions): APIPromise<RoleCreateResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve an organization role
|
|
38
|
+
*
|
|
39
|
+
* @param {string} roleID
|
|
40
|
+
* @param {RoleRetrieveParams} params - The parameters to send with the request.
|
|
41
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
42
|
+
* @returns {APIPromise<RoleRetrieveResponse>} Retrieve an organization role
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const role = await client.organizations.roles.retrieve('roleId', {
|
|
47
|
+
* organizationId: 'organizationId',
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
retrieve(roleID: string, params: RoleRetrieveParams, options?: RequestOptions): APIPromise<RoleRetrieveResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Update a organization role
|
|
54
|
+
*
|
|
55
|
+
* @param {string} roleID
|
|
56
|
+
* @param {RoleUpdateParams} params - The parameters to send with the request.
|
|
57
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
58
|
+
* @returns {APIPromise<RoleUpdateResponse>} Update a organization role
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const role = await client.organizations.roles.update('roleId', {
|
|
63
|
+
* organizationId: 'organizationId',
|
|
64
|
+
* description: '',
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
update(roleID: string, params: RoleUpdateParams, options?: RequestOptions): APIPromise<RoleUpdateResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Archive a role with an explicit replacement
|
|
71
|
+
*
|
|
72
|
+
* @param {string} roleID
|
|
73
|
+
* @param {RoleDeleteParams} params - The parameters to send with the request.
|
|
74
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
75
|
+
* @returns {APIPromise<RoleDeleteResponse>} Archive a role with an explicit replacement
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const role = await client.organizations.roles.delete('roleId', {
|
|
80
|
+
* organizationId: 'organizationId',
|
|
81
|
+
* replacementRoleId: 'x',
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
delete(roleID: string, params: RoleDeleteParams, options?: RequestOptions): APIPromise<RoleDeleteResponse>;
|
|
86
|
+
}
|
|
87
|
+
export type RoleListResponse = Array<RoleListResponse.RoleListResponseItem>;
|
|
88
|
+
export declare namespace RoleListResponse {
|
|
89
|
+
interface RoleListResponseItem {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
isDefault: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @maxItems 238
|
|
96
|
+
*/
|
|
97
|
+
permissions: Array<'organization:read' | 'organization:write' | 'organization:member:read' | 'organization:member:write' | 'organization:invitation:read' | 'organization:invitation:write' | 'organization:role:read' | 'organization:role:write' | 'organization:secret:read' | 'organization:secret:write' | 'organization:setting:read' | 'organization:setting:write' | 'organization:configuration:read' | 'organization:configuration:write' | 'organization:subscription:read' | 'organization:subscription:write' | 'organization:onboarding:read' | 'organization:onboarding:write' | 'organization:logo:read' | 'organization:logo:write' | 'organization:slack_connect:read' | 'organization:slack_connect:write' | 'billing:read' | 'billing:write' | 'billing:trial:read' | 'billing:trial:write' | 'billing:usage:read' | 'billing:usage:write' | 'billing:payment:read' | 'billing:payment:write' | 'billing:payment_method:read' | 'billing:payment_method:write' | 'billing:checkout:read' | 'billing:checkout:write' | 'billing:subscription_checkout:read' | 'billing:subscription_checkout:write' | 'billing:portal:read' | 'billing:portal:write' | 'billing:on_demand:read' | 'billing:on_demand:write' | 'billing:credit:read' | 'billing:credit:write' | 'billing:custom_price:read' | 'billing:custom_price:write' | 'billing:custom_plan:read' | 'billing:custom_plan:write' | 'billing:overage_report:read' | 'billing:overage_report:write' | 'api_key:read' | 'api_key:write' | 'user:read' | 'user:write' | 'user:setting:read' | 'user:setting:write' | 'user:environment_variable:read' | 'user:environment_variable:write' | 'user:subscription:read' | 'user:subscription:write' | 'user:connected_account:read' | 'user:connected_account:write' | 'user:organization:read' | 'user:organization:write' | 'user:profile_picture:read' | 'user:profile_picture:write' | 'user:deletion:read' | 'user:deletion:write' | 'agent:read' | 'agent:write' | 'agent:schedule:read' | 'agent:schedule:write' | 'agent:trigger:read' | 'agent:trigger:write' | 'agent:run:read' | 'agent:run:write' | 'agent:instruction_revision:read' | 'agent:instruction_revision:write' | 'agent:template:read' | 'agent:template:write' | 'session:read' | 'session:write' | 'session:message:read' | 'session:message:write' | 'session:artifact:read' | 'session:artifact:write' | 'session:source:read' | 'session:source:write' | 'session:command:read' | 'session:command:write' | 'session:input:read' | 'session:input:write' | 'session:queue:read' | 'session:queue:write' | 'session:event:read' | 'session:event:write' | 'session:file:read' | 'session:file:write' | 'session:diff:read' | 'session:diff:write' | 'session:workspace:read' | 'session:workspace:write' | 'session:workspace_file:read' | 'session:workspace_file:write' | 'session:workspace_diff:read' | 'session:workspace_diff:write' | 'session:workspace_preview:read' | 'session:workspace_preview:write' | 'pull_request:read' | 'pull_request:write' | 'pull_request:merge:read' | 'pull_request:merge:write' | 'pull_request:attachment:read' | 'pull_request:attachment:write' | 'pull_request:session:read' | 'pull_request:session:write' | 'pull_request:message:read' | 'pull_request:message:write' | 'pull_request:comment:read' | 'pull_request:comment:write' | 'pull_request:review:read' | 'pull_request:review:write' | 'pull_request:reaction:read' | 'pull_request:reaction:write' | 'pull_request:commit:read' | 'pull_request:commit:write' | 'pull_request:check:read' | 'pull_request:check:write' | 'pull_request:file:read' | 'pull_request:file:write' | 'pull_request:reviewer:read' | 'pull_request:reviewer:write' | 'pull_request:label:read' | 'pull_request:label:write' | 'pull_request:thread:read' | 'pull_request:thread:write' | 'pull_request:tour:read' | 'pull_request:tour:write' | 'pull_request:branch_status:read' | 'pull_request:branch_status:write' | 'pull_request:stack:read' | 'pull_request:stack:write' | 'repository:read' | 'repository:write' | 'repository:branch:read' | 'repository:branch:write' | 'repository:file:read' | 'repository:file:write' | 'repository:pull_request:read' | 'repository:pull_request:write' | 'repository:user:read' | 'repository:user:write' | 'repository:label:read' | 'repository:label:write' | 'integration:read' | 'integration:write' | 'integration:trigger:read' | 'integration:trigger:write' | 'integration:provider:read' | 'integration:provider:write' | 'integration:configuration:read' | 'integration:configuration:write' | 'integration:snyk_organization:read' | 'integration:snyk_organization:write' | 'integration:sentry_environment:read' | 'integration:sentry_environment:write' | 'integration:slack_channel:read' | 'integration:slack_channel:write' | 'integration:rate_limit:read' | 'integration:rate_limit:write' | 'mcp_connection:read' | 'mcp_connection:write' | 'mcp_connection:shared:read' | 'mcp_connection:shared:write' | 'model:read' | 'model:write' | 'project:read' | 'project:write' | 'project:environment_variable:read' | 'project:environment_variable:write' | 'project:snapshot:read' | 'project:snapshot:write' | 'project:build:read' | 'project:build:write' | 'project:build_detail:read' | 'project:build_detail:write' | 'project:schedule:read' | 'project:schedule:write' | 'project:default:read' | 'project:default:write' | 'project:system_snapshot:read' | 'project:system_snapshot:write' | 'project:organization_snapshot:read' | 'project:organization_snapshot:write' | 'sandbox:read' | 'sandbox:write' | 'sandbox:metric:read' | 'sandbox:metric:write' | 'sandbox:event:read' | 'sandbox:event:write' | 'sandbox:size:read' | 'sandbox:size:write' | 'sandbox:virtual_machine:read' | 'sandbox:virtual_machine:write' | 'device:read' | 'device:write' | 'skill:read' | 'skill:write' | 'skill:marketplace:read' | 'skill:marketplace:write' | 'insight:read' | 'insight:write' | 'insight:member:read' | 'insight:member:write' | 'insight:repository:read' | 'insight:repository:write' | 'insight:usage:read' | 'insight:usage:write' | 'file:read' | 'file:write' | 'pin:read' | 'pin:write' | 'folder:read' | 'folder:write' | 'queue:job:read' | 'queue:job:write' | 'queue:host_manager_job:read' | 'queue:host_manager_job:write' | 'queue:worker:read' | 'queue:worker:write' | 'queue:scheduled_job:read' | 'queue:scheduled_job:write' | 'queue:triggered_job:read' | 'queue:triggered_job:write' | 'runtime:read' | 'runtime:write' | 'session:source_credential:read' | 'session:source_credential:write' | 'device:all:write' | 'insight:user:read'>;
|
|
98
|
+
/**
|
|
99
|
+
* @minimum 0
|
|
100
|
+
*/
|
|
101
|
+
memberCount: number;
|
|
102
|
+
isCurrentRole: boolean;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export interface RoleCreateParams {
|
|
106
|
+
/**
|
|
107
|
+
* @minLength 1
|
|
108
|
+
* @maxLength 100
|
|
109
|
+
*/
|
|
110
|
+
name: string;
|
|
111
|
+
/**
|
|
112
|
+
* @maxItems 238
|
|
113
|
+
*/
|
|
114
|
+
permissions: Array<'organization:read' | 'organization:write' | 'organization:member:read' | 'organization:member:write' | 'organization:invitation:read' | 'organization:invitation:write' | 'organization:role:read' | 'organization:role:write' | 'organization:secret:read' | 'organization:secret:write' | 'organization:setting:read' | 'organization:setting:write' | 'organization:configuration:read' | 'organization:configuration:write' | 'organization:subscription:read' | 'organization:subscription:write' | 'organization:onboarding:read' | 'organization:onboarding:write' | 'organization:logo:read' | 'organization:logo:write' | 'organization:slack_connect:read' | 'organization:slack_connect:write' | 'billing:read' | 'billing:write' | 'billing:trial:read' | 'billing:trial:write' | 'billing:usage:read' | 'billing:usage:write' | 'billing:payment:read' | 'billing:payment:write' | 'billing:payment_method:read' | 'billing:payment_method:write' | 'billing:checkout:read' | 'billing:checkout:write' | 'billing:subscription_checkout:read' | 'billing:subscription_checkout:write' | 'billing:portal:read' | 'billing:portal:write' | 'billing:on_demand:read' | 'billing:on_demand:write' | 'billing:credit:read' | 'billing:credit:write' | 'billing:custom_price:read' | 'billing:custom_price:write' | 'billing:custom_plan:read' | 'billing:custom_plan:write' | 'billing:overage_report:read' | 'billing:overage_report:write' | 'api_key:read' | 'api_key:write' | 'user:read' | 'user:write' | 'user:setting:read' | 'user:setting:write' | 'user:environment_variable:read' | 'user:environment_variable:write' | 'user:subscription:read' | 'user:subscription:write' | 'user:connected_account:read' | 'user:connected_account:write' | 'user:organization:read' | 'user:organization:write' | 'user:profile_picture:read' | 'user:profile_picture:write' | 'user:deletion:read' | 'user:deletion:write' | 'agent:read' | 'agent:write' | 'agent:schedule:read' | 'agent:schedule:write' | 'agent:trigger:read' | 'agent:trigger:write' | 'agent:run:read' | 'agent:run:write' | 'agent:instruction_revision:read' | 'agent:instruction_revision:write' | 'agent:template:read' | 'agent:template:write' | 'session:read' | 'session:write' | 'session:message:read' | 'session:message:write' | 'session:artifact:read' | 'session:artifact:write' | 'session:source:read' | 'session:source:write' | 'session:command:read' | 'session:command:write' | 'session:input:read' | 'session:input:write' | 'session:queue:read' | 'session:queue:write' | 'session:event:read' | 'session:event:write' | 'session:file:read' | 'session:file:write' | 'session:diff:read' | 'session:diff:write' | 'session:workspace:read' | 'session:workspace:write' | 'session:workspace_file:read' | 'session:workspace_file:write' | 'session:workspace_diff:read' | 'session:workspace_diff:write' | 'session:workspace_preview:read' | 'session:workspace_preview:write' | 'pull_request:read' | 'pull_request:write' | 'pull_request:merge:read' | 'pull_request:merge:write' | 'pull_request:attachment:read' | 'pull_request:attachment:write' | 'pull_request:session:read' | 'pull_request:session:write' | 'pull_request:message:read' | 'pull_request:message:write' | 'pull_request:comment:read' | 'pull_request:comment:write' | 'pull_request:review:read' | 'pull_request:review:write' | 'pull_request:reaction:read' | 'pull_request:reaction:write' | 'pull_request:commit:read' | 'pull_request:commit:write' | 'pull_request:check:read' | 'pull_request:check:write' | 'pull_request:file:read' | 'pull_request:file:write' | 'pull_request:reviewer:read' | 'pull_request:reviewer:write' | 'pull_request:label:read' | 'pull_request:label:write' | 'pull_request:thread:read' | 'pull_request:thread:write' | 'pull_request:tour:read' | 'pull_request:tour:write' | 'pull_request:branch_status:read' | 'pull_request:branch_status:write' | 'pull_request:stack:read' | 'pull_request:stack:write' | 'repository:read' | 'repository:write' | 'repository:branch:read' | 'repository:branch:write' | 'repository:file:read' | 'repository:file:write' | 'repository:pull_request:read' | 'repository:pull_request:write' | 'repository:user:read' | 'repository:user:write' | 'repository:label:read' | 'repository:label:write' | 'integration:read' | 'integration:write' | 'integration:trigger:read' | 'integration:trigger:write' | 'integration:provider:read' | 'integration:provider:write' | 'integration:configuration:read' | 'integration:configuration:write' | 'integration:snyk_organization:read' | 'integration:snyk_organization:write' | 'integration:sentry_environment:read' | 'integration:sentry_environment:write' | 'integration:slack_channel:read' | 'integration:slack_channel:write' | 'integration:rate_limit:read' | 'integration:rate_limit:write' | 'mcp_connection:read' | 'mcp_connection:write' | 'mcp_connection:shared:read' | 'mcp_connection:shared:write' | 'model:read' | 'model:write' | 'project:read' | 'project:write' | 'project:environment_variable:read' | 'project:environment_variable:write' | 'project:snapshot:read' | 'project:snapshot:write' | 'project:build:read' | 'project:build:write' | 'project:build_detail:read' | 'project:build_detail:write' | 'project:schedule:read' | 'project:schedule:write' | 'project:default:read' | 'project:default:write' | 'project:system_snapshot:read' | 'project:system_snapshot:write' | 'project:organization_snapshot:read' | 'project:organization_snapshot:write' | 'sandbox:read' | 'sandbox:write' | 'sandbox:metric:read' | 'sandbox:metric:write' | 'sandbox:event:read' | 'sandbox:event:write' | 'sandbox:size:read' | 'sandbox:size:write' | 'sandbox:virtual_machine:read' | 'sandbox:virtual_machine:write' | 'device:read' | 'device:write' | 'skill:read' | 'skill:write' | 'skill:marketplace:read' | 'skill:marketplace:write' | 'insight:read' | 'insight:write' | 'insight:member:read' | 'insight:member:write' | 'insight:repository:read' | 'insight:repository:write' | 'insight:usage:read' | 'insight:usage:write' | 'file:read' | 'file:write' | 'pin:read' | 'pin:write' | 'folder:read' | 'folder:write' | 'queue:job:read' | 'queue:job:write' | 'queue:host_manager_job:read' | 'queue:host_manager_job:write' | 'queue:worker:read' | 'queue:worker:write' | 'queue:scheduled_job:read' | 'queue:scheduled_job:write' | 'queue:triggered_job:read' | 'queue:triggered_job:write' | 'runtime:read' | 'runtime:write' | 'session:source_credential:read' | 'session:source_credential:write' | 'device:all:write' | 'insight:user:read'>;
|
|
115
|
+
/**
|
|
116
|
+
* @default ""
|
|
117
|
+
* @maxLength 1000
|
|
118
|
+
*/
|
|
119
|
+
description?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface RoleCreateResponse {
|
|
122
|
+
id: string;
|
|
123
|
+
}
|
|
124
|
+
export interface RoleRetrieveParams {
|
|
125
|
+
organizationId: string;
|
|
126
|
+
}
|
|
127
|
+
export interface RoleRetrieveResponse {
|
|
128
|
+
id: string;
|
|
129
|
+
name: string;
|
|
130
|
+
description: string;
|
|
131
|
+
isDefault: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* @maxItems 238
|
|
134
|
+
*/
|
|
135
|
+
permissions: Array<'organization:read' | 'organization:write' | 'organization:member:read' | 'organization:member:write' | 'organization:invitation:read' | 'organization:invitation:write' | 'organization:role:read' | 'organization:role:write' | 'organization:secret:read' | 'organization:secret:write' | 'organization:setting:read' | 'organization:setting:write' | 'organization:configuration:read' | 'organization:configuration:write' | 'organization:subscription:read' | 'organization:subscription:write' | 'organization:onboarding:read' | 'organization:onboarding:write' | 'organization:logo:read' | 'organization:logo:write' | 'organization:slack_connect:read' | 'organization:slack_connect:write' | 'billing:read' | 'billing:write' | 'billing:trial:read' | 'billing:trial:write' | 'billing:usage:read' | 'billing:usage:write' | 'billing:payment:read' | 'billing:payment:write' | 'billing:payment_method:read' | 'billing:payment_method:write' | 'billing:checkout:read' | 'billing:checkout:write' | 'billing:subscription_checkout:read' | 'billing:subscription_checkout:write' | 'billing:portal:read' | 'billing:portal:write' | 'billing:on_demand:read' | 'billing:on_demand:write' | 'billing:credit:read' | 'billing:credit:write' | 'billing:custom_price:read' | 'billing:custom_price:write' | 'billing:custom_plan:read' | 'billing:custom_plan:write' | 'billing:overage_report:read' | 'billing:overage_report:write' | 'api_key:read' | 'api_key:write' | 'user:read' | 'user:write' | 'user:setting:read' | 'user:setting:write' | 'user:environment_variable:read' | 'user:environment_variable:write' | 'user:subscription:read' | 'user:subscription:write' | 'user:connected_account:read' | 'user:connected_account:write' | 'user:organization:read' | 'user:organization:write' | 'user:profile_picture:read' | 'user:profile_picture:write' | 'user:deletion:read' | 'user:deletion:write' | 'agent:read' | 'agent:write' | 'agent:schedule:read' | 'agent:schedule:write' | 'agent:trigger:read' | 'agent:trigger:write' | 'agent:run:read' | 'agent:run:write' | 'agent:instruction_revision:read' | 'agent:instruction_revision:write' | 'agent:template:read' | 'agent:template:write' | 'session:read' | 'session:write' | 'session:message:read' | 'session:message:write' | 'session:artifact:read' | 'session:artifact:write' | 'session:source:read' | 'session:source:write' | 'session:command:read' | 'session:command:write' | 'session:input:read' | 'session:input:write' | 'session:queue:read' | 'session:queue:write' | 'session:event:read' | 'session:event:write' | 'session:file:read' | 'session:file:write' | 'session:diff:read' | 'session:diff:write' | 'session:workspace:read' | 'session:workspace:write' | 'session:workspace_file:read' | 'session:workspace_file:write' | 'session:workspace_diff:read' | 'session:workspace_diff:write' | 'session:workspace_preview:read' | 'session:workspace_preview:write' | 'pull_request:read' | 'pull_request:write' | 'pull_request:merge:read' | 'pull_request:merge:write' | 'pull_request:attachment:read' | 'pull_request:attachment:write' | 'pull_request:session:read' | 'pull_request:session:write' | 'pull_request:message:read' | 'pull_request:message:write' | 'pull_request:comment:read' | 'pull_request:comment:write' | 'pull_request:review:read' | 'pull_request:review:write' | 'pull_request:reaction:read' | 'pull_request:reaction:write' | 'pull_request:commit:read' | 'pull_request:commit:write' | 'pull_request:check:read' | 'pull_request:check:write' | 'pull_request:file:read' | 'pull_request:file:write' | 'pull_request:reviewer:read' | 'pull_request:reviewer:write' | 'pull_request:label:read' | 'pull_request:label:write' | 'pull_request:thread:read' | 'pull_request:thread:write' | 'pull_request:tour:read' | 'pull_request:tour:write' | 'pull_request:branch_status:read' | 'pull_request:branch_status:write' | 'pull_request:stack:read' | 'pull_request:stack:write' | 'repository:read' | 'repository:write' | 'repository:branch:read' | 'repository:branch:write' | 'repository:file:read' | 'repository:file:write' | 'repository:pull_request:read' | 'repository:pull_request:write' | 'repository:user:read' | 'repository:user:write' | 'repository:label:read' | 'repository:label:write' | 'integration:read' | 'integration:write' | 'integration:trigger:read' | 'integration:trigger:write' | 'integration:provider:read' | 'integration:provider:write' | 'integration:configuration:read' | 'integration:configuration:write' | 'integration:snyk_organization:read' | 'integration:snyk_organization:write' | 'integration:sentry_environment:read' | 'integration:sentry_environment:write' | 'integration:slack_channel:read' | 'integration:slack_channel:write' | 'integration:rate_limit:read' | 'integration:rate_limit:write' | 'mcp_connection:read' | 'mcp_connection:write' | 'mcp_connection:shared:read' | 'mcp_connection:shared:write' | 'model:read' | 'model:write' | 'project:read' | 'project:write' | 'project:environment_variable:read' | 'project:environment_variable:write' | 'project:snapshot:read' | 'project:snapshot:write' | 'project:build:read' | 'project:build:write' | 'project:build_detail:read' | 'project:build_detail:write' | 'project:schedule:read' | 'project:schedule:write' | 'project:default:read' | 'project:default:write' | 'project:system_snapshot:read' | 'project:system_snapshot:write' | 'project:organization_snapshot:read' | 'project:organization_snapshot:write' | 'sandbox:read' | 'sandbox:write' | 'sandbox:metric:read' | 'sandbox:metric:write' | 'sandbox:event:read' | 'sandbox:event:write' | 'sandbox:size:read' | 'sandbox:size:write' | 'sandbox:virtual_machine:read' | 'sandbox:virtual_machine:write' | 'device:read' | 'device:write' | 'skill:read' | 'skill:write' | 'skill:marketplace:read' | 'skill:marketplace:write' | 'insight:read' | 'insight:write' | 'insight:member:read' | 'insight:member:write' | 'insight:repository:read' | 'insight:repository:write' | 'insight:usage:read' | 'insight:usage:write' | 'file:read' | 'file:write' | 'pin:read' | 'pin:write' | 'folder:read' | 'folder:write' | 'queue:job:read' | 'queue:job:write' | 'queue:host_manager_job:read' | 'queue:host_manager_job:write' | 'queue:worker:read' | 'queue:worker:write' | 'queue:scheduled_job:read' | 'queue:scheduled_job:write' | 'queue:triggered_job:read' | 'queue:triggered_job:write' | 'runtime:read' | 'runtime:write' | 'session:source_credential:read' | 'session:source_credential:write' | 'device:all:write' | 'insight:user:read'>;
|
|
136
|
+
/**
|
|
137
|
+
* @minimum 0
|
|
138
|
+
*/
|
|
139
|
+
memberCount: number;
|
|
140
|
+
isCurrentRole: boolean;
|
|
141
|
+
}
|
|
142
|
+
export interface RoleUpdateParams {
|
|
143
|
+
/**
|
|
144
|
+
* Path param
|
|
145
|
+
*/
|
|
146
|
+
organizationId: string;
|
|
147
|
+
/**
|
|
148
|
+
* Body param
|
|
149
|
+
* @minLength 1
|
|
150
|
+
* @maxLength 100
|
|
151
|
+
*/
|
|
152
|
+
name?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Body param
|
|
155
|
+
* @default ""
|
|
156
|
+
* @maxLength 1000
|
|
157
|
+
*/
|
|
158
|
+
description?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Body param
|
|
161
|
+
* @maxItems 238
|
|
162
|
+
*/
|
|
163
|
+
permissions?: Array<'organization:read' | 'organization:write' | 'organization:member:read' | 'organization:member:write' | 'organization:invitation:read' | 'organization:invitation:write' | 'organization:role:read' | 'organization:role:write' | 'organization:secret:read' | 'organization:secret:write' | 'organization:setting:read' | 'organization:setting:write' | 'organization:configuration:read' | 'organization:configuration:write' | 'organization:subscription:read' | 'organization:subscription:write' | 'organization:onboarding:read' | 'organization:onboarding:write' | 'organization:logo:read' | 'organization:logo:write' | 'organization:slack_connect:read' | 'organization:slack_connect:write' | 'billing:read' | 'billing:write' | 'billing:trial:read' | 'billing:trial:write' | 'billing:usage:read' | 'billing:usage:write' | 'billing:payment:read' | 'billing:payment:write' | 'billing:payment_method:read' | 'billing:payment_method:write' | 'billing:checkout:read' | 'billing:checkout:write' | 'billing:subscription_checkout:read' | 'billing:subscription_checkout:write' | 'billing:portal:read' | 'billing:portal:write' | 'billing:on_demand:read' | 'billing:on_demand:write' | 'billing:credit:read' | 'billing:credit:write' | 'billing:custom_price:read' | 'billing:custom_price:write' | 'billing:custom_plan:read' | 'billing:custom_plan:write' | 'billing:overage_report:read' | 'billing:overage_report:write' | 'api_key:read' | 'api_key:write' | 'user:read' | 'user:write' | 'user:setting:read' | 'user:setting:write' | 'user:environment_variable:read' | 'user:environment_variable:write' | 'user:subscription:read' | 'user:subscription:write' | 'user:connected_account:read' | 'user:connected_account:write' | 'user:organization:read' | 'user:organization:write' | 'user:profile_picture:read' | 'user:profile_picture:write' | 'user:deletion:read' | 'user:deletion:write' | 'agent:read' | 'agent:write' | 'agent:schedule:read' | 'agent:schedule:write' | 'agent:trigger:read' | 'agent:trigger:write' | 'agent:run:read' | 'agent:run:write' | 'agent:instruction_revision:read' | 'agent:instruction_revision:write' | 'agent:template:read' | 'agent:template:write' | 'session:read' | 'session:write' | 'session:message:read' | 'session:message:write' | 'session:artifact:read' | 'session:artifact:write' | 'session:source:read' | 'session:source:write' | 'session:command:read' | 'session:command:write' | 'session:input:read' | 'session:input:write' | 'session:queue:read' | 'session:queue:write' | 'session:event:read' | 'session:event:write' | 'session:file:read' | 'session:file:write' | 'session:diff:read' | 'session:diff:write' | 'session:workspace:read' | 'session:workspace:write' | 'session:workspace_file:read' | 'session:workspace_file:write' | 'session:workspace_diff:read' | 'session:workspace_diff:write' | 'session:workspace_preview:read' | 'session:workspace_preview:write' | 'pull_request:read' | 'pull_request:write' | 'pull_request:merge:read' | 'pull_request:merge:write' | 'pull_request:attachment:read' | 'pull_request:attachment:write' | 'pull_request:session:read' | 'pull_request:session:write' | 'pull_request:message:read' | 'pull_request:message:write' | 'pull_request:comment:read' | 'pull_request:comment:write' | 'pull_request:review:read' | 'pull_request:review:write' | 'pull_request:reaction:read' | 'pull_request:reaction:write' | 'pull_request:commit:read' | 'pull_request:commit:write' | 'pull_request:check:read' | 'pull_request:check:write' | 'pull_request:file:read' | 'pull_request:file:write' | 'pull_request:reviewer:read' | 'pull_request:reviewer:write' | 'pull_request:label:read' | 'pull_request:label:write' | 'pull_request:thread:read' | 'pull_request:thread:write' | 'pull_request:tour:read' | 'pull_request:tour:write' | 'pull_request:branch_status:read' | 'pull_request:branch_status:write' | 'pull_request:stack:read' | 'pull_request:stack:write' | 'repository:read' | 'repository:write' | 'repository:branch:read' | 'repository:branch:write' | 'repository:file:read' | 'repository:file:write' | 'repository:pull_request:read' | 'repository:pull_request:write' | 'repository:user:read' | 'repository:user:write' | 'repository:label:read' | 'repository:label:write' | 'integration:read' | 'integration:write' | 'integration:trigger:read' | 'integration:trigger:write' | 'integration:provider:read' | 'integration:provider:write' | 'integration:configuration:read' | 'integration:configuration:write' | 'integration:snyk_organization:read' | 'integration:snyk_organization:write' | 'integration:sentry_environment:read' | 'integration:sentry_environment:write' | 'integration:slack_channel:read' | 'integration:slack_channel:write' | 'integration:rate_limit:read' | 'integration:rate_limit:write' | 'mcp_connection:read' | 'mcp_connection:write' | 'mcp_connection:shared:read' | 'mcp_connection:shared:write' | 'model:read' | 'model:write' | 'project:read' | 'project:write' | 'project:environment_variable:read' | 'project:environment_variable:write' | 'project:snapshot:read' | 'project:snapshot:write' | 'project:build:read' | 'project:build:write' | 'project:build_detail:read' | 'project:build_detail:write' | 'project:schedule:read' | 'project:schedule:write' | 'project:default:read' | 'project:default:write' | 'project:system_snapshot:read' | 'project:system_snapshot:write' | 'project:organization_snapshot:read' | 'project:organization_snapshot:write' | 'sandbox:read' | 'sandbox:write' | 'sandbox:metric:read' | 'sandbox:metric:write' | 'sandbox:event:read' | 'sandbox:event:write' | 'sandbox:size:read' | 'sandbox:size:write' | 'sandbox:virtual_machine:read' | 'sandbox:virtual_machine:write' | 'device:read' | 'device:write' | 'skill:read' | 'skill:write' | 'skill:marketplace:read' | 'skill:marketplace:write' | 'insight:read' | 'insight:write' | 'insight:member:read' | 'insight:member:write' | 'insight:repository:read' | 'insight:repository:write' | 'insight:usage:read' | 'insight:usage:write' | 'file:read' | 'file:write' | 'pin:read' | 'pin:write' | 'folder:read' | 'folder:write' | 'queue:job:read' | 'queue:job:write' | 'queue:host_manager_job:read' | 'queue:host_manager_job:write' | 'queue:worker:read' | 'queue:worker:write' | 'queue:scheduled_job:read' | 'queue:scheduled_job:write' | 'queue:triggered_job:read' | 'queue:triggered_job:write' | 'runtime:read' | 'runtime:write' | 'session:source_credential:read' | 'session:source_credential:write' | 'device:all:write' | 'insight:user:read'>;
|
|
164
|
+
/**
|
|
165
|
+
* Body param
|
|
166
|
+
*/
|
|
167
|
+
isDefault?: boolean;
|
|
168
|
+
}
|
|
169
|
+
export interface RoleUpdateResponse {
|
|
170
|
+
id: string;
|
|
171
|
+
}
|
|
172
|
+
export interface RoleDeleteParams {
|
|
173
|
+
/**
|
|
174
|
+
* Path param
|
|
175
|
+
*/
|
|
176
|
+
organizationId: string;
|
|
177
|
+
/**
|
|
178
|
+
* Body param
|
|
179
|
+
* @minLength 1
|
|
180
|
+
*/
|
|
181
|
+
replacementRoleId: string;
|
|
182
|
+
}
|
|
183
|
+
export interface RoleDeleteResponse {
|
|
184
|
+
id: string;
|
|
185
|
+
}
|
|
186
|
+
export declare namespace Roles {
|
|
187
|
+
export { type RoleListResponse as RoleListResponse, type RoleCreateResponse as RoleCreateResponse, type RoleRetrieveResponse as RoleRetrieveResponse, type RoleUpdateResponse as RoleUpdateResponse, type RoleDeleteResponse as RoleDeleteResponse, type RoleCreateParams as RoleCreateParams, type RoleRetrieveParams as RoleRetrieveParams, type RoleUpdateParams as RoleUpdateParams, type RoleDeleteParams as RoleDeleteParams, };
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=roles.d.ts.map
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W,gBAAgB;IAC/B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Scalar. See README.md for details.
|
|
2
|
+
import { APIResource } from '../../resource.js';
|
|
3
|
+
import { path as __scalarPath } from '../../internal/utils/path.js';
|
|
4
|
+
export class Roles extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List organization roles
|
|
7
|
+
*
|
|
8
|
+
* @param {string} organizationID
|
|
9
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
10
|
+
* @returns {APIPromise<RoleListResponse>} List organization roles
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const role = await client.organizations.roles.list('organizationId');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(organizationID, options) {
|
|
18
|
+
return this._client.get(__scalarPath `/v1/organizations/${organizationID}/roles`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Create a organization role
|
|
22
|
+
*
|
|
23
|
+
* @param {string} organizationID
|
|
24
|
+
* @param {RoleCreateParams} body - The request body to send.
|
|
25
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
26
|
+
* @returns {APIPromise<RoleCreateResponse>} Create a organization role
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const role = await client.organizations.roles.create('organizationId', {
|
|
31
|
+
* name: 'x',
|
|
32
|
+
* description: '',
|
|
33
|
+
* permissions: ['organization:read'],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
create(organizationID, body, options) {
|
|
38
|
+
return this._client.post(__scalarPath `/v1/organizations/${organizationID}/roles`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve an organization role
|
|
42
|
+
*
|
|
43
|
+
* @param {string} roleID
|
|
44
|
+
* @param {RoleRetrieveParams} params - The parameters to send with the request.
|
|
45
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
46
|
+
* @returns {APIPromise<RoleRetrieveResponse>} Retrieve an organization role
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const role = await client.organizations.roles.retrieve('roleId', {
|
|
51
|
+
* organizationId: 'organizationId',
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
retrieve(roleID, params, options) {
|
|
56
|
+
const { organizationId } = params;
|
|
57
|
+
return this._client.get(__scalarPath `/v1/organizations/${organizationId}/roles/${roleID}`, options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Update a organization role
|
|
61
|
+
*
|
|
62
|
+
* @param {string} roleID
|
|
63
|
+
* @param {RoleUpdateParams} params - The parameters to send with the request.
|
|
64
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
65
|
+
* @returns {APIPromise<RoleUpdateResponse>} Update a organization role
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const role = await client.organizations.roles.update('roleId', {
|
|
70
|
+
* organizationId: 'organizationId',
|
|
71
|
+
* description: '',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
update(roleID, params, options) {
|
|
76
|
+
const { organizationId, ...body } = params;
|
|
77
|
+
return this._client.patch(__scalarPath `/v1/organizations/${organizationId}/roles/${roleID}`, {
|
|
78
|
+
body,
|
|
79
|
+
...options,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Archive a role with an explicit replacement
|
|
84
|
+
*
|
|
85
|
+
* @param {string} roleID
|
|
86
|
+
* @param {RoleDeleteParams} params - The parameters to send with the request.
|
|
87
|
+
* @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
|
|
88
|
+
* @returns {APIPromise<RoleDeleteResponse>} Archive a role with an explicit replacement
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* const role = await client.organizations.roles.delete('roleId', {
|
|
93
|
+
* organizationId: 'organizationId',
|
|
94
|
+
* replacementRoleId: 'x',
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
delete(roleID, params, options) {
|
|
99
|
+
const { organizationId, ...body } = params;
|
|
100
|
+
return this._client.delete(__scalarPath `/v1/organizations/${organizationId}/roles/${roleID}`, {
|
|
101
|
+
body,
|
|
102
|
+
...options,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=roles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../../src/resources/organizations/roles.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAA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