@tembo-io/sdk 0.22.1 → 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.
Files changed (118) hide show
  1. package/api.md +164 -6
  2. package/dist/cjs/client.d.ts +7 -4
  3. package/dist/cjs/client.d.ts.map +1 -1
  4. package/dist/cjs/client.js +3 -0
  5. package/dist/cjs/client.js.map +1 -1
  6. package/dist/cjs/resources/agents/runs.d.ts +6 -1
  7. package/dist/cjs/resources/agents/runs.d.ts.map +1 -1
  8. package/dist/cjs/resources/agents/runs.js +1 -1
  9. package/dist/cjs/resources/artifacts.d.ts +24 -1
  10. package/dist/cjs/resources/artifacts.d.ts.map +1 -1
  11. package/dist/cjs/resources/artifacts.js +15 -0
  12. package/dist/cjs/resources/artifacts.js.map +1 -1
  13. package/dist/cjs/resources/billing.d.ts +1 -0
  14. package/dist/cjs/resources/billing.d.ts.map +1 -1
  15. package/dist/cjs/resources/folders.d.ts +213 -0
  16. package/dist/cjs/resources/folders.d.ts.map +1 -0
  17. package/dist/cjs/resources/folders.js +72 -0
  18. package/dist/cjs/resources/folders.js.map +1 -0
  19. package/dist/cjs/resources/index.d.ts +4 -2
  20. package/dist/cjs/resources/index.d.ts.map +1 -1
  21. package/dist/cjs/resources/index.js +3 -1
  22. package/dist/cjs/resources/index.js.map +1 -1
  23. package/dist/cjs/resources/insights.d.ts +22 -8
  24. package/dist/cjs/resources/insights.d.ts.map +1 -1
  25. package/dist/cjs/resources/organizations/index.d.ts +2 -0
  26. package/dist/cjs/resources/organizations/index.d.ts.map +1 -1
  27. package/dist/cjs/resources/organizations/index.js +3 -1
  28. package/dist/cjs/resources/organizations/index.js.map +1 -1
  29. package/dist/cjs/resources/organizations/members.d.ts +259 -92
  30. package/dist/cjs/resources/organizations/members.d.ts.map +1 -1
  31. package/dist/cjs/resources/organizations/members.js +1 -2
  32. package/dist/cjs/resources/organizations/members.js.map +1 -1
  33. package/dist/cjs/resources/organizations/organizations.d.ts +6 -2
  34. package/dist/cjs/resources/organizations/organizations.d.ts.map +1 -1
  35. package/dist/cjs/resources/organizations/organizations.js +4 -0
  36. package/dist/cjs/resources/organizations/organizations.js.map +1 -1
  37. package/dist/cjs/resources/organizations/roles.d.ts +189 -0
  38. package/dist/cjs/resources/organizations/roles.d.ts.map +1 -0
  39. package/dist/cjs/resources/organizations/roles.js +110 -0
  40. package/dist/cjs/resources/organizations/roles.js.map +1 -0
  41. package/dist/cjs/resources/pins.d.ts +63 -25
  42. package/dist/cjs/resources/pins.d.ts.map +1 -1
  43. package/dist/cjs/resources/pins.js +5 -5
  44. package/dist/cjs/resources/projects/index.d.ts +1 -1
  45. package/dist/cjs/resources/projects/index.d.ts.map +1 -1
  46. package/dist/cjs/resources/projects/index.js.map +1 -1
  47. package/dist/cjs/resources/projects/projects.d.ts +23 -1
  48. package/dist/cjs/resources/projects/projects.d.ts.map +1 -1
  49. package/dist/cjs/resources/projects/projects.js +14 -0
  50. package/dist/cjs/resources/projects/projects.js.map +1 -1
  51. package/dist/cjs/resources/sessions/sessions.d.ts +41 -2
  52. package/dist/cjs/resources/sessions/sessions.d.ts.map +1 -1
  53. package/dist/cjs/resources/sessions/sessions.js.map +1 -1
  54. package/dist/cjs/resources.d.ts +2 -2
  55. package/dist/cjs/resources.d.ts.map +1 -1
  56. package/dist/cjs/resources.js +2 -1
  57. package/dist/cjs/resources.js.map +1 -1
  58. package/dist/cjs/version.d.ts +1 -1
  59. package/dist/cjs/version.js +1 -1
  60. package/dist/esm/client.d.ts +7 -4
  61. package/dist/esm/client.d.ts.map +1 -1
  62. package/dist/esm/client.js +3 -0
  63. package/dist/esm/client.js.map +1 -1
  64. package/dist/esm/resources/agents/runs.d.ts +6 -1
  65. package/dist/esm/resources/agents/runs.d.ts.map +1 -1
  66. package/dist/esm/resources/agents/runs.js +1 -1
  67. package/dist/esm/resources/artifacts.d.ts +24 -1
  68. package/dist/esm/resources/artifacts.d.ts.map +1 -1
  69. package/dist/esm/resources/artifacts.js +15 -0
  70. package/dist/esm/resources/artifacts.js.map +1 -1
  71. package/dist/esm/resources/billing.d.ts +1 -0
  72. package/dist/esm/resources/billing.d.ts.map +1 -1
  73. package/dist/esm/resources/folders.d.ts +213 -0
  74. package/dist/esm/resources/folders.d.ts.map +1 -0
  75. package/dist/esm/resources/folders.js +68 -0
  76. package/dist/esm/resources/folders.js.map +1 -0
  77. package/dist/esm/resources/index.d.ts +4 -2
  78. package/dist/esm/resources/index.d.ts.map +1 -1
  79. package/dist/esm/resources/index.js +1 -0
  80. package/dist/esm/resources/index.js.map +1 -1
  81. package/dist/esm/resources/insights.d.ts +22 -8
  82. package/dist/esm/resources/insights.d.ts.map +1 -1
  83. package/dist/esm/resources/organizations/index.d.ts +2 -0
  84. package/dist/esm/resources/organizations/index.d.ts.map +1 -1
  85. package/dist/esm/resources/organizations/index.js +1 -0
  86. package/dist/esm/resources/organizations/index.js.map +1 -1
  87. package/dist/esm/resources/organizations/members.d.ts +259 -92
  88. package/dist/esm/resources/organizations/members.d.ts.map +1 -1
  89. package/dist/esm/resources/organizations/members.js +1 -2
  90. package/dist/esm/resources/organizations/members.js.map +1 -1
  91. package/dist/esm/resources/organizations/organizations.d.ts +6 -2
  92. package/dist/esm/resources/organizations/organizations.d.ts.map +1 -1
  93. package/dist/esm/resources/organizations/organizations.js +4 -0
  94. package/dist/esm/resources/organizations/organizations.js.map +1 -1
  95. package/dist/esm/resources/organizations/roles.d.ts +189 -0
  96. package/dist/esm/resources/organizations/roles.d.ts.map +1 -0
  97. package/dist/esm/resources/organizations/roles.js +106 -0
  98. package/dist/esm/resources/organizations/roles.js.map +1 -0
  99. package/dist/esm/resources/pins.d.ts +63 -25
  100. package/dist/esm/resources/pins.d.ts.map +1 -1
  101. package/dist/esm/resources/pins.js +5 -5
  102. package/dist/esm/resources/projects/index.d.ts +1 -1
  103. package/dist/esm/resources/projects/index.d.ts.map +1 -1
  104. package/dist/esm/resources/projects/index.js.map +1 -1
  105. package/dist/esm/resources/projects/projects.d.ts +23 -1
  106. package/dist/esm/resources/projects/projects.d.ts.map +1 -1
  107. package/dist/esm/resources/projects/projects.js +14 -0
  108. package/dist/esm/resources/projects/projects.js.map +1 -1
  109. package/dist/esm/resources/sessions/sessions.d.ts +41 -2
  110. package/dist/esm/resources/sessions/sessions.d.ts.map +1 -1
  111. package/dist/esm/resources/sessions/sessions.js.map +1 -1
  112. package/dist/esm/resources.d.ts +2 -2
  113. package/dist/esm/resources.d.ts.map +1 -1
  114. package/dist/esm/resources.js +1 -1
  115. package/dist/esm/resources.js.map +1 -1
  116. package/dist/esm/version.d.ts +1 -1
  117. package/dist/esm/version.js +1 -1
  118. package/package.json +1 -1
@@ -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);
@@ -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,O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,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;AA4mBD,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,aAAa,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAClC,aAAa,CAAC,aAAa,GAAG,aAAa,CAAC"}
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,QAAQ,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,KAAK,GAUN,MAAM,SAAS,CAAC;AACjB,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,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,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../src/resources/organizations/roles.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;AAGrE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIpF;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN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,cAAc,GACd,YAAY,GACZ,aAAa,GACb,wBAAwB,GACxB,yBAAyB,GACzB,cAAc,GACd,eAAe,GACf,qBAAqB,GACrB,sBAAsB,GACtB,yBAAyB,GACzB,0BAA0B,GAC1B,oBAAoB,GACpB,qBAAqB,GACrB,WAAW,GACX,YAAY,GACZ,UAAU,GACV,WAAW,GACX,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,iBAAiB,GACjB,6BAA6B,GAC7B,8BAA8B,GAC9B,mBAAmB,GACnB,oBAAoB,GACpB,0BAA0B,GAC1B,2BAA2B,GAC3B,0BAA0B,GAC1B,2BAA2B,GAC3B,cAAc,GACd,eAAe,GACf,gCAAgC,GAChC,iCAAiC,GACjC,kBAAkB,GAClB,mBAAmB,CACtB,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,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,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,cAAsB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA,qBAAqB,cAAc,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAA,qBAAqB,cAAc,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAA,qBAAqB,cAAc,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAA,qBAAqB,cAAc,UAAU,MAAM,EAAE,EAAE;YAC3F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAA,qBAAqB,cAAc,UAAU,MAAM,EAAE,EAAE;YAC5F,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -18,7 +18,7 @@ export declare class Pins extends APIResource {
18
18
  */
19
19
  list(query?: PinListParams | null | undefined, options?: RequestOptions): APIPromise<PinListResponse>;
20
20
  /**
21
- * Pin a session, pull request, or project you have permission to access.
21
+ * Pin a session, pull request, or project you have permission to access, or one of your folders.
22
22
  *
23
23
  * @param {PinCreateParams} body - The request body to send.
24
24
  * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
@@ -34,9 +34,9 @@ export declare class Pins extends APIResource {
34
34
  */
35
35
  create(body: PinCreateParams, options?: RequestOptions): APIPromise<PinCreateResponse>;
36
36
  /**
37
- * Reorder a pinned session, pull request, or project before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it.
37
+ * Reorder a pinned session, pull request, project, or folder before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it.
38
38
  *
39
- * @param {string} resourceID - ID of the pinned session, pull request, or project, not a separate pin ID.
39
+ * @param {string} resourceID - ID of the pinned session, pull request, project, or folder, not a separate pin ID.
40
40
  * @param {PinUpdateParams} params - The parameters to send with the request.
41
41
  * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
42
42
  * @returns {APIPromise<PinUpdateResponse>} Update a pin
@@ -57,9 +57,9 @@ export declare class Pins extends APIResource {
57
57
  */
58
58
  update(resourceID: string, params: PinUpdateParams, options?: RequestOptions): APIPromise<PinUpdateResponse>;
59
59
  /**
60
- * Unpin a session, pull request, or project for the authenticated user without deleting or archiving the resource.
60
+ * Unpin a session, pull request, project, or folder for the authenticated user without deleting or archiving the resource.
61
61
  *
62
- * @param {string} resourceID - ID of the pinned session, pull request, or project, not a separate pin ID.
62
+ * @param {string} resourceID - ID of the pinned session, pull request, project, or folder, not a separate pin ID.
63
63
  * @param {PinDeleteParams} params - The parameters to send with the request.
64
64
  * @param {RequestOptions} [options] - Options to apply to the request, such as headers and an abort signal.
65
65
  * @returns {APIPromise<PinDeleteResponse>} Delete a pin
@@ -76,7 +76,7 @@ export declare class Pins extends APIResource {
76
76
  export interface PinListParams {
77
77
  /**
78
78
  * Continuation cursor from the previous response nextCursor. Omit for the first page; null nextCursor means there are no more pages.
79
- * @pattern ^(session|pull_request|project):[0-9a-f-]{36}$
79
+ * @pattern ^(session|pull_request|project|folder):[0-9a-f-]{36}$
80
80
  */
81
81
  cursor?: string;
82
82
  /**
@@ -91,10 +91,10 @@ export interface PinListResponse {
91
91
  /**
92
92
  * Accessible pinned resources in pin order.
93
93
  */
94
- resources: Array<PinListResponse.Resource | PinListResponse.Resource2 | PinListResponse.Resource3>;
94
+ resources: Array<PinListResponse.Resource | PinListResponse.Resource2 | PinListResponse.Resource3 | PinListResponse.Resource4>;
95
95
  /**
96
96
  * Cursor for the next page, even when resources is empty; null at the end.
97
- * @pattern ^(session|pull_request|project):[0-9a-f-]{36}$
97
+ * @pattern ^(session|pull_request|project|folder):[0-9a-f-]{36}$
98
98
  */
99
99
  nextCursor: string | null;
100
100
  }
@@ -130,6 +130,11 @@ export declare namespace PinListResponse {
130
130
  sessionSource: Resource.SessionSource;
131
131
  pullRequests: Array<Resource.PullRequest>;
132
132
  diffSummary: Resource.DiffSummary | null;
133
+ /**
134
+ * Sidebar folder you filed this session in.
135
+ * @format uuid
136
+ */
137
+ folderId: string | null;
133
138
  state: Resource.State;
134
139
  /**
135
140
  * Whether the latest turn finished after the caller last viewed the session.
@@ -231,14 +236,28 @@ export declare namespace PinListResponse {
231
236
  color: 'neutral' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
232
237
  }
233
238
  }
239
+ interface Resource4 {
240
+ type: 'folder';
241
+ resource: Resource4.Resource;
242
+ }
243
+ namespace Resource4 {
244
+ interface Resource {
245
+ /**
246
+ * @format uuid
247
+ */
248
+ id: string;
249
+ name: string;
250
+ color: 'neutral' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
251
+ }
252
+ }
234
253
  }
235
254
  export interface PinCreateParams {
236
255
  /**
237
- * Kind of resource to pin or unpin: session, pull_request, or project.
256
+ * Kind of resource to pin or unpin: session, pull_request, project, or folder.
238
257
  */
239
- type: 'session' | 'pull_request' | 'project';
258
+ type: 'session' | 'pull_request' | 'project' | 'folder';
240
259
  /**
241
- * ID of the session, pull request, or project, not a separate pin ID.
260
+ * ID of the session, pull request, project, or folder, not a separate pin ID.
242
261
  * @format uuid
243
262
  */
244
263
  id: string;
@@ -261,18 +280,18 @@ export declare namespace PinCreateParams {
261
280
  namespace Placement {
262
281
  interface Target {
263
282
  /**
264
- * Kind of resource to pin or unpin: session, pull_request, or project.
283
+ * Kind of resource to pin or unpin: session, pull_request, project, or folder.
265
284
  */
266
- type: 'session' | 'pull_request' | 'project';
285
+ type: 'session' | 'pull_request' | 'project' | 'folder';
267
286
  /**
268
- * ID of the session, pull request, or project, not a separate pin ID.
287
+ * ID of the session, pull request, project, or folder, not a separate pin ID.
269
288
  * @format uuid
270
289
  */
271
290
  id: string;
272
291
  }
273
292
  }
274
293
  }
275
- export type PinCreateResponse = PinCreateResponse.PinCreateResponseItem | PinCreateResponse.PinCreateResponseItem2 | PinCreateResponse.PinCreateResponseItem3;
294
+ export type PinCreateResponse = PinCreateResponse.PinCreateResponseItem | PinCreateResponse.PinCreateResponseItem2 | PinCreateResponse.PinCreateResponseItem3 | PinCreateResponse.PinCreateResponseItem4;
276
295
  export declare namespace PinCreateResponse {
277
296
  interface PinCreateResponseItem {
278
297
  type: 'session';
@@ -305,6 +324,11 @@ export declare namespace PinCreateResponse {
305
324
  sessionSource: Resource.SessionSource;
306
325
  pullRequests: Array<Resource.PullRequest>;
307
326
  diffSummary: Resource.DiffSummary | null;
327
+ /**
328
+ * Sidebar folder you filed this session in.
329
+ * @format uuid
330
+ */
331
+ folderId: string | null;
308
332
  state: Resource.State;
309
333
  /**
310
334
  * Whether the latest turn finished after the caller last viewed the session.
@@ -406,12 +430,26 @@ export declare namespace PinCreateResponse {
406
430
  color: 'neutral' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
407
431
  }
408
432
  }
433
+ interface PinCreateResponseItem4 {
434
+ type: 'folder';
435
+ resource: PinCreateResponseItem4.Resource;
436
+ }
437
+ namespace PinCreateResponseItem4 {
438
+ interface Resource {
439
+ /**
440
+ * @format uuid
441
+ */
442
+ id: string;
443
+ name: string;
444
+ color: 'neutral' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink';
445
+ }
446
+ }
409
447
  }
410
448
  export interface PinUpdateParams {
411
449
  /**
412
- * Path param: Kind of resource to pin or unpin: session, pull_request, or project.
450
+ * Path param: Kind of resource to pin or unpin: session, pull_request, project, or folder.
413
451
  */
414
- resourceType: 'session' | 'pull_request' | 'project';
452
+ resourceType: 'session' | 'pull_request' | 'project' | 'folder';
415
453
  /**
416
454
  * Body param: Reorder an existing pin before or after another pin. Use createPin to pin a resource and deletePin to unpin it.
417
455
  */
@@ -431,11 +469,11 @@ export declare namespace PinUpdateParams {
431
469
  namespace Placement {
432
470
  interface Target {
433
471
  /**
434
- * Kind of resource to pin or unpin: session, pull_request, or project.
472
+ * Kind of resource to pin or unpin: session, pull_request, project, or folder.
435
473
  */
436
- type: 'session' | 'pull_request' | 'project';
474
+ type: 'session' | 'pull_request' | 'project' | 'folder';
437
475
  /**
438
- * ID of the session, pull request, or project, not a separate pin ID.
476
+ * ID of the session, pull request, project, or folder, not a separate pin ID.
439
477
  * @format uuid
440
478
  */
441
479
  id: string;
@@ -447,17 +485,17 @@ export interface PinUpdateResponse {
447
485
  }
448
486
  export interface PinDeleteParams {
449
487
  /**
450
- * Kind of resource to pin or unpin: session, pull_request, or project.
488
+ * Kind of resource to pin or unpin: session, pull_request, project, or folder.
451
489
  */
452
- resourceType: 'session' | 'pull_request' | 'project';
490
+ resourceType: 'session' | 'pull_request' | 'project' | 'folder';
453
491
  }
454
492
  export interface PinDeleteResponse {
455
493
  /**
456
- * Kind of resource to pin or unpin: session, pull_request, or project.
494
+ * Kind of resource to pin or unpin: session, pull_request, project, or folder.
457
495
  */
458
- type: 'session' | 'pull_request' | 'project';
496
+ type: 'session' | 'pull_request' | 'project' | 'folder';
459
497
  /**
460
- * ID of the session, pull request, or project, not a separate pin ID.
498
+ * ID of the session, pull request, project, or folder, not a separate pin ID.
461
499
  * @format uuid
462
500
  */
463
501
  id: string;