@onkernel/sdk 0.26.0 → 0.28.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 (62) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +5 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/auth/auth.d.mts +4 -0
  12. package/resources/agents/auth/auth.d.mts.map +1 -1
  13. package/resources/agents/auth/auth.d.ts +4 -0
  14. package/resources/agents/auth/auth.d.ts.map +1 -1
  15. package/resources/agents/auth/auth.js.map +1 -1
  16. package/resources/agents/auth/auth.mjs.map +1 -1
  17. package/resources/browser-pools.d.mts +9 -3
  18. package/resources/browser-pools.d.mts.map +1 -1
  19. package/resources/browser-pools.d.ts +9 -3
  20. package/resources/browser-pools.d.ts.map +1 -1
  21. package/resources/browsers/browsers.d.mts +26 -6
  22. package/resources/browsers/browsers.d.mts.map +1 -1
  23. package/resources/browsers/browsers.d.ts +26 -6
  24. package/resources/browsers/browsers.d.ts.map +1 -1
  25. package/resources/browsers/browsers.js +4 -4
  26. package/resources/browsers/browsers.js.map +1 -1
  27. package/resources/browsers/browsers.mjs +4 -4
  28. package/resources/browsers/browsers.mjs.map +1 -1
  29. package/resources/browsers/index.d.mts +1 -1
  30. package/resources/browsers/index.d.mts.map +1 -1
  31. package/resources/browsers/index.d.ts +1 -1
  32. package/resources/browsers/index.d.ts.map +1 -1
  33. package/resources/browsers/index.js.map +1 -1
  34. package/resources/browsers/index.mjs.map +1 -1
  35. package/resources/credential-providers.d.mts +202 -0
  36. package/resources/credential-providers.d.mts.map +1 -0
  37. package/resources/credential-providers.d.ts +202 -0
  38. package/resources/credential-providers.d.ts.map +1 -0
  39. package/resources/credential-providers.js +89 -0
  40. package/resources/credential-providers.js.map +1 -0
  41. package/resources/credential-providers.mjs +85 -0
  42. package/resources/credential-providers.mjs.map +1 -0
  43. package/resources/index.d.mts +2 -1
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +2 -1
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js +3 -1
  48. package/resources/index.js.map +1 -1
  49. package/resources/index.mjs +1 -0
  50. package/resources/index.mjs.map +1 -1
  51. package/src/client.ts +25 -0
  52. package/src/resources/agents/auth/auth.ts +5 -0
  53. package/src/resources/browser-pools.ts +9 -3
  54. package/src/resources/browsers/browsers.ts +35 -6
  55. package/src/resources/browsers/index.ts +1 -0
  56. package/src/resources/credential-providers.ts +265 -0
  57. package/src/resources/index.ts +11 -0
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
  62. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-providers.d.mts","sourceRoot":"","sources":["../src/resources/credential-providers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,8BAA8B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAItG;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC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IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAEvE,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,202 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class CredentialProviders extends APIResource {
5
+ /**
6
+ * Configure an external credential provider (e.g., 1Password) for automatic
7
+ * credential lookup.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const credentialProvider =
12
+ * await client.credentialProviders.create({
13
+ * token: 'ops_eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...',
14
+ * provider_type: 'onepassword',
15
+ * });
16
+ * ```
17
+ */
18
+ create(body: CredentialProviderCreateParams, options?: RequestOptions): APIPromise<CredentialProvider>;
19
+ /**
20
+ * Retrieve a credential provider by its ID.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const credentialProvider =
25
+ * await client.credentialProviders.retrieve('id');
26
+ * ```
27
+ */
28
+ retrieve(id: string, options?: RequestOptions): APIPromise<CredentialProvider>;
29
+ /**
30
+ * Update a credential provider's configuration.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const credentialProvider =
35
+ * await client.credentialProviders.update('id');
36
+ * ```
37
+ */
38
+ update(id: string, body: CredentialProviderUpdateParams, options?: RequestOptions): APIPromise<CredentialProvider>;
39
+ /**
40
+ * List external credential providers configured for the organization.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const credentialProviders =
45
+ * await client.credentialProviders.list();
46
+ * ```
47
+ */
48
+ list(options?: RequestOptions): APIPromise<CredentialProviderListResponse>;
49
+ /**
50
+ * Delete a credential provider by its ID.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * await client.credentialProviders.delete('id');
55
+ * ```
56
+ */
57
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
58
+ /**
59
+ * Validate the credential provider's token and list accessible vaults.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const credentialProviderTestResult =
64
+ * await client.credentialProviders.test('id');
65
+ * ```
66
+ */
67
+ test(id: string, options?: RequestOptions): APIPromise<CredentialProviderTestResult>;
68
+ }
69
+ /**
70
+ * Request to create an external credential provider
71
+ */
72
+ export interface CreateCredentialProviderRequest {
73
+ /**
74
+ * Service account token for the provider (e.g., 1Password service account token)
75
+ */
76
+ token: string;
77
+ /**
78
+ * Type of credential provider
79
+ */
80
+ provider_type: 'onepassword';
81
+ /**
82
+ * How long to cache credential lists (default 300 seconds)
83
+ */
84
+ cache_ttl_seconds?: number;
85
+ }
86
+ /**
87
+ * An external credential provider (e.g., 1Password) for automatic credential
88
+ * lookup
89
+ */
90
+ export interface CredentialProvider {
91
+ /**
92
+ * Unique identifier for the credential provider
93
+ */
94
+ id: string;
95
+ /**
96
+ * When the credential provider was created
97
+ */
98
+ created_at: string;
99
+ /**
100
+ * Whether the provider is enabled for credential lookups
101
+ */
102
+ enabled: boolean;
103
+ /**
104
+ * Priority order for credential lookups (lower numbers are checked first)
105
+ */
106
+ priority: number;
107
+ /**
108
+ * Type of credential provider
109
+ */
110
+ provider_type: 'onepassword';
111
+ /**
112
+ * When the credential provider was last updated
113
+ */
114
+ updated_at: string;
115
+ }
116
+ /**
117
+ * Result of testing a credential provider connection
118
+ */
119
+ export interface CredentialProviderTestResult {
120
+ /**
121
+ * Whether the connection test was successful
122
+ */
123
+ success: boolean;
124
+ /**
125
+ * List of vaults accessible by the service account
126
+ */
127
+ vaults: Array<CredentialProviderTestResult.Vault>;
128
+ /**
129
+ * Error message if the test failed
130
+ */
131
+ error?: string;
132
+ }
133
+ export declare namespace CredentialProviderTestResult {
134
+ interface Vault {
135
+ /**
136
+ * Vault ID
137
+ */
138
+ id: string;
139
+ /**
140
+ * Vault name
141
+ */
142
+ name: string;
143
+ }
144
+ }
145
+ /**
146
+ * Request to update a credential provider
147
+ */
148
+ export interface UpdateCredentialProviderRequest {
149
+ /**
150
+ * New service account token (to rotate credentials)
151
+ */
152
+ token?: string;
153
+ /**
154
+ * How long to cache credential lists
155
+ */
156
+ cache_ttl_seconds?: number;
157
+ /**
158
+ * Whether the provider is enabled for credential lookups
159
+ */
160
+ enabled?: boolean;
161
+ /**
162
+ * Priority order for credential lookups (lower numbers are checked first)
163
+ */
164
+ priority?: number;
165
+ }
166
+ export type CredentialProviderListResponse = Array<CredentialProvider>;
167
+ export interface CredentialProviderCreateParams {
168
+ /**
169
+ * Service account token for the provider (e.g., 1Password service account token)
170
+ */
171
+ token: string;
172
+ /**
173
+ * Type of credential provider
174
+ */
175
+ provider_type: 'onepassword';
176
+ /**
177
+ * How long to cache credential lists (default 300 seconds)
178
+ */
179
+ cache_ttl_seconds?: number;
180
+ }
181
+ export interface CredentialProviderUpdateParams {
182
+ /**
183
+ * New service account token (to rotate credentials)
184
+ */
185
+ token?: string;
186
+ /**
187
+ * How long to cache credential lists
188
+ */
189
+ cache_ttl_seconds?: number;
190
+ /**
191
+ * Whether the provider is enabled for credential lookups
192
+ */
193
+ enabled?: boolean;
194
+ /**
195
+ * Priority order for credential lookups (lower numbers are checked first)
196
+ */
197
+ priority?: number;
198
+ }
199
+ export declare namespace CredentialProviders {
200
+ export { type CreateCredentialProviderRequest as CreateCredentialProviderRequest, type CredentialProvider as CredentialProvider, type CredentialProviderTestResult as CredentialProviderTestResult, type UpdateCredentialProviderRequest as UpdateCredentialProviderRequest, type CredentialProviderListResponse as CredentialProviderListResponse, type CredentialProviderCreateParams as CredentialProviderCreateParams, type CredentialProviderUpdateParams as CredentialProviderUpdateParams, };
201
+ }
202
+ //# sourceMappingURL=credential-providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-providers.d.ts","sourceRoot":"","sources":["../src/resources/credential-providers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,8BAA8B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAItG;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAA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;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,8BAA8B,GAAG,KAAK,CAAC,kBAAkB,CAAC,CAAC;AAEvE,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,aAAa,EAAE,aAAa,CAAC;IAE7B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CredentialProviders = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class CredentialProviders extends resource_1.APIResource {
9
+ /**
10
+ * Configure an external credential provider (e.g., 1Password) for automatic
11
+ * credential lookup.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const credentialProvider =
16
+ * await client.credentialProviders.create({
17
+ * token: 'ops_eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...',
18
+ * provider_type: 'onepassword',
19
+ * });
20
+ * ```
21
+ */
22
+ create(body, options) {
23
+ return this._client.post('/org/credential-providers', { body, ...options });
24
+ }
25
+ /**
26
+ * Retrieve a credential provider by its ID.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const credentialProvider =
31
+ * await client.credentialProviders.retrieve('id');
32
+ * ```
33
+ */
34
+ retrieve(id, options) {
35
+ return this._client.get((0, path_1.path) `/org/credential-providers/${id}`, options);
36
+ }
37
+ /**
38
+ * Update a credential provider's configuration.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * const credentialProvider =
43
+ * await client.credentialProviders.update('id');
44
+ * ```
45
+ */
46
+ update(id, body, options) {
47
+ return this._client.patch((0, path_1.path) `/org/credential-providers/${id}`, { body, ...options });
48
+ }
49
+ /**
50
+ * List external credential providers configured for the organization.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const credentialProviders =
55
+ * await client.credentialProviders.list();
56
+ * ```
57
+ */
58
+ list(options) {
59
+ return this._client.get('/org/credential-providers', options);
60
+ }
61
+ /**
62
+ * Delete a credential provider by its ID.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * await client.credentialProviders.delete('id');
67
+ * ```
68
+ */
69
+ delete(id, options) {
70
+ return this._client.delete((0, path_1.path) `/org/credential-providers/${id}`, {
71
+ ...options,
72
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
73
+ });
74
+ }
75
+ /**
76
+ * Validate the credential provider's token and list accessible vaults.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const credentialProviderTestResult =
81
+ * await client.credentialProviders.test('id');
82
+ * ```
83
+ */
84
+ test(id, options) {
85
+ return this._client.post((0, path_1.path) `/org/credential-providers/${id}/test`, options);
86
+ }
87
+ }
88
+ exports.CredentialProviders = CredentialProviders;
89
+ //# sourceMappingURL=credential-providers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-providers.js","sourceRoot":"","sources":["../src/resources/credential-providers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAoC,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,EAAE,EAAE;YAChE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,6BAA6B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AAxFD,kDAwFC"}
@@ -0,0 +1,85 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class CredentialProviders extends APIResource {
6
+ /**
7
+ * Configure an external credential provider (e.g., 1Password) for automatic
8
+ * credential lookup.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const credentialProvider =
13
+ * await client.credentialProviders.create({
14
+ * token: 'ops_eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...',
15
+ * provider_type: 'onepassword',
16
+ * });
17
+ * ```
18
+ */
19
+ create(body, options) {
20
+ return this._client.post('/org/credential-providers', { body, ...options });
21
+ }
22
+ /**
23
+ * Retrieve a credential provider by its ID.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const credentialProvider =
28
+ * await client.credentialProviders.retrieve('id');
29
+ * ```
30
+ */
31
+ retrieve(id, options) {
32
+ return this._client.get(path `/org/credential-providers/${id}`, options);
33
+ }
34
+ /**
35
+ * Update a credential provider's configuration.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const credentialProvider =
40
+ * await client.credentialProviders.update('id');
41
+ * ```
42
+ */
43
+ update(id, body, options) {
44
+ return this._client.patch(path `/org/credential-providers/${id}`, { body, ...options });
45
+ }
46
+ /**
47
+ * List external credential providers configured for the organization.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const credentialProviders =
52
+ * await client.credentialProviders.list();
53
+ * ```
54
+ */
55
+ list(options) {
56
+ return this._client.get('/org/credential-providers', options);
57
+ }
58
+ /**
59
+ * Delete a credential provider by its ID.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * await client.credentialProviders.delete('id');
64
+ * ```
65
+ */
66
+ delete(id, options) {
67
+ return this._client.delete(path `/org/credential-providers/${id}`, {
68
+ ...options,
69
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
70
+ });
71
+ }
72
+ /**
73
+ * Validate the credential provider's token and list accessible vaults.
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * const credentialProviderTestResult =
78
+ * await client.credentialProviders.test('id');
79
+ * ```
80
+ */
81
+ test(id, options) {
82
+ return this._client.post(path `/org/credential-providers/${id}/test`, options);
83
+ }
84
+ }
85
+ //# sourceMappingURL=credential-providers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-providers.mjs","sourceRoot":"","sources":["../src/resources/credential-providers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAoC,EAAE,OAAwB;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,EAAU,EACV,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,6BAA6B,EAAE,EAAE,EAAE;YAChE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,6BAA6B,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
@@ -2,7 +2,8 @@ export * from "./shared.mjs";
2
2
  export { Agents } from "./agents/agents.mjs";
3
3
  export { Apps, type AppListResponse, type AppListParams, type AppListResponsesOffsetPagination, } from "./apps.mjs";
4
4
  export { BrowserPools, type BrowserPool, type BrowserPoolListResponse, type BrowserPoolAcquireResponse, type BrowserPoolCreateParams, type BrowserPoolUpdateParams, type BrowserPoolDeleteParams, type BrowserPoolAcquireParams, type BrowserPoolReleaseParams, } from "./browser-pools.mjs";
5
- export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserUpdateResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserUpdateParams, type BrowserListParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, type BrowserListResponsesOffsetPagination, } from "./browsers/browsers.mjs";
5
+ export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserUpdateResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserRetrieveParams, type BrowserUpdateParams, type BrowserListParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, type BrowserListResponsesOffsetPagination, } from "./browsers/browsers.mjs";
6
+ export { CredentialProviders, type CreateCredentialProviderRequest, type CredentialProvider, type CredentialProviderTestResult, type UpdateCredentialProviderRequest, type CredentialProviderListResponse, type CredentialProviderCreateParams, type CredentialProviderUpdateParams, } from "./credential-providers.mjs";
6
7
  export { Credentials, type CreateCredentialRequest, type Credential, type UpdateCredentialRequest, type CredentialTotpCodeResponse, type CredentialCreateParams, type CredentialUpdateParams, type CredentialListParams, type CredentialsOffsetPagination, } from "./credentials.mjs";
7
8
  export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, type DeploymentListResponsesOffsetPagination, } from "./deployments.mjs";
8
9
  export { Extensions, type ExtensionListResponse, type ExtensionUploadResponse, type ExtensionDownloadFromChromeStoreParams, type ExtensionUploadParams, } from "./extensions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB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B,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE;OAChE,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,GACvB"}
@@ -2,7 +2,8 @@ export * from "./shared.js";
2
2
  export { Agents } from "./agents/agents.js";
3
3
  export { Apps, type AppListResponse, type AppListParams, type AppListResponsesOffsetPagination, } from "./apps.js";
4
4
  export { BrowserPools, type BrowserPool, type BrowserPoolListResponse, type BrowserPoolAcquireResponse, type BrowserPoolCreateParams, type BrowserPoolUpdateParams, type BrowserPoolDeleteParams, type BrowserPoolAcquireParams, type BrowserPoolReleaseParams, } from "./browser-pools.js";
5
- export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserUpdateResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserUpdateParams, type BrowserListParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, type BrowserListResponsesOffsetPagination, } from "./browsers/browsers.js";
5
+ export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserUpdateResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserRetrieveParams, type BrowserUpdateParams, type BrowserListParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, type BrowserListResponsesOffsetPagination, } from "./browsers/browsers.js";
6
+ export { CredentialProviders, type CreateCredentialProviderRequest, type CredentialProvider, type CredentialProviderTestResult, type UpdateCredentialProviderRequest, type CredentialProviderListResponse, type CredentialProviderCreateParams, type CredentialProviderUpdateParams, } from "./credential-providers.js";
6
7
  export { Credentials, type CreateCredentialRequest, type Credential, type UpdateCredentialRequest, type CredentialTotpCodeResponse, type CredentialCreateParams, type CredentialUpdateParams, type CredentialListParams, type CredentialsOffsetPagination, } from "./credentials.js";
7
8
  export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, type DeploymentListResponsesOffsetPagination, } from "./deployments.js";
8
9
  export { Extensions, type ExtensionListResponse, type ExtensionUploadResponse, type ExtensionDownloadFromChromeStoreParams, type ExtensionUploadParams, } from "./extensions.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,GAC1C;OACM,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK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AAkB,EACvB,KAAK,iBAAiB,GACvB"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Proxies = exports.Profiles = exports.Invocations = exports.Extensions = exports.Deployments = exports.Credentials = exports.Browsers = exports.BrowserPools = exports.Apps = exports.Agents = void 0;
4
+ exports.Proxies = exports.Profiles = exports.Invocations = exports.Extensions = exports.Deployments = exports.Credentials = exports.CredentialProviders = exports.Browsers = exports.BrowserPools = exports.Apps = exports.Agents = void 0;
5
5
  const tslib_1 = require("../internal/tslib.js");
6
6
  tslib_1.__exportStar(require("./shared.js"), exports);
7
7
  var agents_1 = require("./agents/agents.js");
@@ -12,6 +12,8 @@ var browser_pools_1 = require("./browser-pools.js");
12
12
  Object.defineProperty(exports, "BrowserPools", { enumerable: true, get: function () { return browser_pools_1.BrowserPools; } });
13
13
  var browsers_1 = require("./browsers/browsers.js");
14
14
  Object.defineProperty(exports, "Browsers", { enumerable: true, get: function () { return browsers_1.Browsers; } });
15
+ var credential_providers_1 = require("./credential-providers.js");
16
+ Object.defineProperty(exports, "CredentialProviders", { enumerable: true, get: function () { return credential_providers_1.CredentialProviders; } });
15
17
  var credentials_1 = require("./credentials.js");
16
18
  Object.defineProperty(exports, "Credentials", { enumerable: true, get: function () { return credentials_1.Credentials; } });
17
19
  var deployments_1 = require("./deployments.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,6CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAc6B;AAb3B,oGAAA,QAAQ,OAAA;AAcV,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,gDAauB;AAZrB,0GAAA,WAAW,OAAA;AAab,0CAA0F;AAAjF,oGAAA,QAAQ,OAAA;AACjB,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,6CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAe6B;AAd3B,oGAAA,QAAQ,OAAA;AAeV,kEASgC;AAR9B,2HAAA,mBAAmB,OAAA;AASrB,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,gDAauB;AAZrB,0GAAA,WAAW,OAAA;AAab,0CAA0F;AAAjF,oGAAA,QAAQ,OAAA;AACjB,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
@@ -4,6 +4,7 @@ export { Agents } from "./agents/agents.mjs";
4
4
  export { Apps, } from "./apps.mjs";
5
5
  export { BrowserPools, } from "./browser-pools.mjs";
6
6
  export { Browsers, } from "./browsers/browsers.mjs";
7
+ export { CredentialProviders, } from "./credential-providers.mjs";
7
8
  export { Credentials, } from "./credentials.mjs";
8
9
  export { Deployments, } from "./deployments.mjs";
9
10
  export { Extensions, } from "./extensions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAIL;OACM,EACL,YAAY,GASb;OACM,EACL,QAAQ,GAaT;OACM,EACL,WAAW,GASZ;OACM,EACL,WAAW,GAUZ;OACM,EACL,UAAU,GAKX;OACM,EACL,WAAW,GAYZ;OACM,EAAE,QAAQ,EAAsD;OAChE,EACL,OAAO,GAMR"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAIL;OACM,EACL,YAAY,GASb;OACM,EACL,QAAQ,GAcT;OACM,EACL,mBAAmB,GAQpB;OACM,EACL,WAAW,GASZ;OACM,EACL,WAAW,GAUZ;OACM,EACL,UAAU,GAKX;OACM,EACL,WAAW,GAYZ;OACM,EAAE,QAAQ,EAAsD;OAChE,EACL,OAAO,GAMR"}
package/src/client.ts CHANGED
@@ -30,6 +30,16 @@ import {
30
30
  BrowserPoolUpdateParams,
31
31
  BrowserPools,
32
32
  } from './resources/browser-pools';
33
+ import {
34
+ CreateCredentialProviderRequest,
35
+ CredentialProvider,
36
+ CredentialProviderCreateParams,
37
+ CredentialProviderListResponse,
38
+ CredentialProviderTestResult,
39
+ CredentialProviderUpdateParams,
40
+ CredentialProviders,
41
+ UpdateCredentialProviderRequest,
42
+ } from './resources/credential-providers';
33
43
  import {
34
44
  CreateCredentialRequest,
35
45
  Credential,
@@ -94,6 +104,7 @@ import {
94
104
  BrowserListResponsesOffsetPagination,
95
105
  BrowserLoadExtensionsParams,
96
106
  BrowserPersistence,
107
+ BrowserRetrieveParams,
97
108
  BrowserRetrieveResponse,
98
109
  BrowserUpdateParams,
99
110
  BrowserUpdateResponse,
@@ -872,6 +883,7 @@ export class Kernel {
872
883
  browserPools: API.BrowserPools = new API.BrowserPools(this);
873
884
  agents: API.Agents = new API.Agents(this);
874
885
  credentials: API.Credentials = new API.Credentials(this);
886
+ credentialProviders: API.CredentialProviders = new API.CredentialProviders(this);
875
887
  }
876
888
 
877
889
  Kernel.Deployments = Deployments;
@@ -884,6 +896,7 @@ Kernel.Extensions = Extensions;
884
896
  Kernel.BrowserPools = BrowserPools;
885
897
  Kernel.Agents = Agents;
886
898
  Kernel.Credentials = Credentials;
899
+ Kernel.CredentialProviders = CredentialProviders;
887
900
 
888
901
  export declare namespace Kernel {
889
902
  export type RequestOptions = Opts.RequestOptions;
@@ -939,6 +952,7 @@ export declare namespace Kernel {
939
952
  type BrowserListResponse as BrowserListResponse,
940
953
  type BrowserListResponsesOffsetPagination as BrowserListResponsesOffsetPagination,
941
954
  type BrowserCreateParams as BrowserCreateParams,
955
+ type BrowserRetrieveParams as BrowserRetrieveParams,
942
956
  type BrowserUpdateParams as BrowserUpdateParams,
943
957
  type BrowserListParams as BrowserListParams,
944
958
  type BrowserDeleteParams as BrowserDeleteParams,
@@ -994,6 +1008,17 @@ export declare namespace Kernel {
994
1008
  type CredentialListParams as CredentialListParams,
995
1009
  };
996
1010
 
1011
+ export {
1012
+ CredentialProviders as CredentialProviders,
1013
+ type CreateCredentialProviderRequest as CreateCredentialProviderRequest,
1014
+ type CredentialProvider as CredentialProvider,
1015
+ type CredentialProviderTestResult as CredentialProviderTestResult,
1016
+ type UpdateCredentialProviderRequest as UpdateCredentialProviderRequest,
1017
+ type CredentialProviderListResponse as CredentialProviderListResponse,
1018
+ type CredentialProviderCreateParams as CredentialProviderCreateParams,
1019
+ type CredentialProviderUpdateParams as CredentialProviderUpdateParams,
1020
+ };
1021
+
997
1022
  export type AppAction = API.AppAction;
998
1023
  export type BrowserExtension = API.BrowserExtension;
999
1024
  export type BrowserProfile = API.BrowserProfile;
@@ -166,6 +166,11 @@ export interface AgentAuthInvocationResponse {
166
166
  */
167
167
  pending_sso_buttons?: Array<AgentAuthInvocationResponse.PendingSSOButton> | null;
168
168
 
169
+ /**
170
+ * SSO provider being used for authentication (e.g., google, github, microsoft)
171
+ */
172
+ sso_provider?: string | null;
173
+
169
174
  /**
170
175
  * Names of fields that have been submitted (present when step=submitting or later)
171
176
  */
@@ -181,7 +181,9 @@ export namespace BrowserPool {
181
181
  */
182
182
  export interface BrowserPoolConfig {
183
183
  /**
184
- * Number of browsers to create in the pool
184
+ * Number of browsers to maintain in the pool. The maximum size is determined by
185
+ * your organization's pooled sessions limit (the sum of all pool sizes cannot
186
+ * exceed your limit).
185
187
  */
186
188
  size: number;
187
189
 
@@ -330,7 +332,9 @@ export interface BrowserPoolAcquireResponse {
330
332
 
331
333
  export interface BrowserPoolCreateParams {
332
334
  /**
333
- * Number of browsers to create in the pool
335
+ * Number of browsers to maintain in the pool. The maximum size is determined by
336
+ * your organization's pooled sessions limit (the sum of all pool sizes cannot
337
+ * exceed your limit).
334
338
  */
335
339
  size: number;
336
340
 
@@ -400,7 +404,9 @@ export interface BrowserPoolCreateParams {
400
404
 
401
405
  export interface BrowserPoolUpdateParams {
402
406
  /**
403
- * Number of browsers to create in the pool
407
+ * Number of browsers to maintain in the pool. The maximum size is determined by
408
+ * your organization's pooled sessions limit (the sum of all pool sizes cannot
409
+ * exceed your limit).
404
410
  */
405
411
  size: number;
406
412