@onkernel/sdk 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +15 -19
  3. package/client.d.mts +3 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +3 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agents/agents.d.mts +10 -0
  13. package/resources/agents/agents.d.mts.map +1 -0
  14. package/resources/agents/agents.d.ts +10 -0
  15. package/resources/agents/agents.d.ts.map +1 -0
  16. package/resources/agents/agents.js +17 -0
  17. package/resources/agents/agents.js.map +1 -0
  18. package/resources/agents/agents.mjs +12 -0
  19. package/resources/agents/agents.mjs.map +1 -0
  20. package/resources/agents/auth/auth.d.mts +294 -0
  21. package/resources/agents/auth/auth.d.mts.map +1 -0
  22. package/resources/agents/auth/auth.d.ts +294 -0
  23. package/resources/agents/auth/auth.d.ts.map +1 -0
  24. package/resources/agents/auth/auth.js +62 -0
  25. package/resources/agents/auth/auth.js.map +1 -0
  26. package/resources/agents/auth/auth.mjs +57 -0
  27. package/resources/agents/auth/auth.mjs.map +1 -0
  28. package/resources/agents/auth/index.d.mts +3 -0
  29. package/resources/agents/auth/index.d.mts.map +1 -0
  30. package/resources/agents/auth/index.d.ts +3 -0
  31. package/resources/agents/auth/index.d.ts.map +1 -0
  32. package/resources/agents/auth/index.js +9 -0
  33. package/resources/agents/auth/index.js.map +1 -0
  34. package/resources/agents/auth/index.mjs +4 -0
  35. package/resources/agents/auth/index.mjs.map +1 -0
  36. package/resources/agents/auth/invocations.d.mts +124 -0
  37. package/resources/agents/auth/invocations.d.mts.map +1 -0
  38. package/resources/agents/auth/invocations.d.ts +124 -0
  39. package/resources/agents/auth/invocations.d.ts.map +1 -0
  40. package/resources/agents/auth/invocations.js +94 -0
  41. package/resources/agents/auth/invocations.js.map +1 -0
  42. package/resources/agents/auth/invocations.mjs +90 -0
  43. package/resources/agents/auth/invocations.mjs.map +1 -0
  44. package/resources/agents/auth.d.mts +2 -0
  45. package/resources/agents/auth.d.mts.map +1 -0
  46. package/resources/agents/auth.d.ts +2 -0
  47. package/resources/agents/auth.d.ts.map +1 -0
  48. package/resources/agents/auth.js +6 -0
  49. package/resources/agents/auth.js.map +1 -0
  50. package/resources/agents/auth.mjs +3 -0
  51. package/resources/agents/auth.mjs.map +1 -0
  52. package/resources/agents/index.d.mts +3 -0
  53. package/resources/agents/index.d.mts.map +1 -0
  54. package/resources/agents/index.d.ts +3 -0
  55. package/resources/agents/index.d.ts.map +1 -0
  56. package/resources/agents/index.js +9 -0
  57. package/resources/agents/index.js.map +1 -0
  58. package/resources/agents/index.mjs +4 -0
  59. package/resources/agents/index.mjs.map +1 -0
  60. package/resources/agents.d.mts +2 -0
  61. package/resources/agents.d.mts.map +1 -0
  62. package/resources/agents.d.ts +2 -0
  63. package/resources/agents.d.ts.map +1 -0
  64. package/resources/agents.js +6 -0
  65. package/resources/agents.js.map +1 -0
  66. package/resources/agents.mjs +3 -0
  67. package/resources/agents.mjs.map +1 -0
  68. package/resources/browser-pools.d.mts +24 -23
  69. package/resources/browser-pools.d.mts.map +1 -1
  70. package/resources/browser-pools.d.ts +24 -23
  71. package/resources/browser-pools.d.ts.map +1 -1
  72. package/resources/browsers/browsers.d.mts +38 -38
  73. package/resources/browsers/browsers.d.mts.map +1 -1
  74. package/resources/browsers/browsers.d.ts +38 -38
  75. package/resources/browsers/browsers.d.ts.map +1 -1
  76. package/resources/browsers/browsers.js +3 -7
  77. package/resources/browsers/browsers.js.map +1 -1
  78. package/resources/browsers/browsers.mjs +3 -7
  79. package/resources/browsers/browsers.mjs.map +1 -1
  80. package/resources/index.d.mts +1 -0
  81. package/resources/index.d.mts.map +1 -1
  82. package/resources/index.d.ts +1 -0
  83. package/resources/index.d.ts.map +1 -1
  84. package/resources/index.js +3 -1
  85. package/resources/index.js.map +1 -1
  86. package/resources/index.mjs +1 -0
  87. package/resources/index.mjs.map +1 -1
  88. package/resources/invocations.d.mts +5 -0
  89. package/resources/invocations.d.mts.map +1 -1
  90. package/resources/invocations.d.ts +5 -0
  91. package/resources/invocations.d.ts.map +1 -1
  92. package/resources/shared.d.mts +5 -5
  93. package/resources/shared.d.ts +5 -5
  94. package/src/client.ts +5 -0
  95. package/src/resources/agents/agents.ts +41 -0
  96. package/src/resources/agents/auth/auth.ts +385 -0
  97. package/src/resources/agents/auth/index.ts +24 -0
  98. package/src/resources/agents/auth/invocations.ts +167 -0
  99. package/src/resources/agents/auth.ts +3 -0
  100. package/src/resources/agents/index.ts +17 -0
  101. package/src/resources/agents.ts +3 -0
  102. package/src/resources/browser-pools.ts +24 -23
  103. package/src/resources/browsers/browsers.ts +38 -38
  104. package/src/resources/index.ts +1 -0
  105. package/src/resources/invocations.ts +6 -0
  106. package/src/resources/shared.ts +5 -5
  107. package/src/version.ts +1 -1
  108. package/version.d.mts +1 -1
  109. package/version.d.ts +1 -1
  110. package/version.js +1 -1
  111. package/version.mjs +1 -1
@@ -0,0 +1,385 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as InvocationsAPI from './invocations';
5
+ import {
6
+ InvocationCreateParams,
7
+ InvocationDiscoverParams,
8
+ InvocationExchangeParams,
9
+ InvocationExchangeResponse,
10
+ InvocationSubmitParams,
11
+ Invocations,
12
+ } from './invocations';
13
+ import { APIPromise } from '../../../core/api-promise';
14
+ import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../../../core/pagination';
15
+ import { RequestOptions } from '../../../internal/request-options';
16
+ import { path } from '../../../internal/utils/path';
17
+
18
+ export class Auth extends APIResource {
19
+ invocations: InvocationsAPI.Invocations = new InvocationsAPI.Invocations(this._client);
20
+
21
+ /**
22
+ * Creates a new auth agent for the specified domain and profile combination, or
23
+ * returns an existing one if it already exists. This is idempotent - calling with
24
+ * the same domain and profile will return the same agent. Does NOT start an
25
+ * invocation - use POST /agents/auth/invocations to start an auth flow.
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const authAgent = await client.agents.auth.create({
30
+ * profile_name: 'user-123',
31
+ * target_domain: 'netflix.com',
32
+ * });
33
+ * ```
34
+ */
35
+ create(body: AuthCreateParams, options?: RequestOptions): APIPromise<AuthAgent> {
36
+ return this._client.post('/agents/auth', { body, ...options });
37
+ }
38
+
39
+ /**
40
+ * Retrieve an auth agent by its ID. Returns the current authentication status of
41
+ * the managed profile.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const authAgent = await client.agents.auth.retrieve('id');
46
+ * ```
47
+ */
48
+ retrieve(id: string, options?: RequestOptions): APIPromise<AuthAgent> {
49
+ return this._client.get(path`/agents/auth/${id}`, options);
50
+ }
51
+
52
+ /**
53
+ * List auth agents with optional filters for profile_name and target_domain.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * // Automatically fetches more pages as needed.
58
+ * for await (const authAgent of client.agents.auth.list()) {
59
+ * // ...
60
+ * }
61
+ * ```
62
+ */
63
+ list(
64
+ query: AuthListParams | null | undefined = {},
65
+ options?: RequestOptions,
66
+ ): PagePromise<AuthAgentsOffsetPagination, AuthAgent> {
67
+ return this._client.getAPIList('/agents/auth', OffsetPagination<AuthAgent>, { query, ...options });
68
+ }
69
+ }
70
+
71
+ export type AuthAgentsOffsetPagination = OffsetPagination<AuthAgent>;
72
+
73
+ /**
74
+ * Response from discover endpoint matching AuthBlueprint schema
75
+ */
76
+ export interface AgentAuthDiscoverResponse {
77
+ /**
78
+ * Whether discovery succeeded
79
+ */
80
+ success: boolean;
81
+
82
+ /**
83
+ * Error message if discovery failed
84
+ */
85
+ error_message?: string;
86
+
87
+ /**
88
+ * Discovered form fields (present when success is true)
89
+ */
90
+ fields?: Array<DiscoveredField>;
91
+
92
+ /**
93
+ * Whether user is already logged in
94
+ */
95
+ logged_in?: boolean;
96
+
97
+ /**
98
+ * URL of the discovered login page
99
+ */
100
+ login_url?: string;
101
+
102
+ /**
103
+ * Title of the login page
104
+ */
105
+ page_title?: string;
106
+ }
107
+
108
+ /**
109
+ * Response from get invocation endpoint
110
+ */
111
+ export interface AgentAuthInvocationResponse {
112
+ /**
113
+ * App name (org name at time of invocation creation)
114
+ */
115
+ app_name: string;
116
+
117
+ /**
118
+ * When the handoff code expires
119
+ */
120
+ expires_at: string;
121
+
122
+ /**
123
+ * Invocation status
124
+ */
125
+ status: 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED';
126
+
127
+ /**
128
+ * Target domain for authentication
129
+ */
130
+ target_domain: string;
131
+ }
132
+
133
+ /**
134
+ * Response from submit endpoint matching SubmitResult schema
135
+ */
136
+ export interface AgentAuthSubmitResponse {
137
+ /**
138
+ * Whether submission succeeded
139
+ */
140
+ success: boolean;
141
+
142
+ /**
143
+ * Additional fields needed (e.g., OTP) - present when needs_additional_auth is
144
+ * true
145
+ */
146
+ additional_fields?: Array<DiscoveredField>;
147
+
148
+ /**
149
+ * App name (only present when logged_in is true)
150
+ */
151
+ app_name?: string;
152
+
153
+ /**
154
+ * Error message if submission failed
155
+ */
156
+ error_message?: string;
157
+
158
+ /**
159
+ * Whether user is now logged in
160
+ */
161
+ logged_in?: boolean;
162
+
163
+ /**
164
+ * Whether additional authentication fields are needed
165
+ */
166
+ needs_additional_auth?: boolean;
167
+
168
+ /**
169
+ * Target domain (only present when logged_in is true)
170
+ */
171
+ target_domain?: string;
172
+ }
173
+
174
+ /**
175
+ * An auth agent that manages authentication for a specific domain and profile
176
+ * combination
177
+ */
178
+ export interface AuthAgent {
179
+ /**
180
+ * Unique identifier for the auth agent
181
+ */
182
+ id: string;
183
+
184
+ /**
185
+ * Target domain for authentication
186
+ */
187
+ domain: string;
188
+
189
+ /**
190
+ * Name of the profile associated with this auth agent
191
+ */
192
+ profile_name: string;
193
+
194
+ /**
195
+ * Current authentication status of the managed profile
196
+ */
197
+ status: 'AUTHENTICATED' | 'NEEDS_AUTH';
198
+
199
+ /**
200
+ * When the last authentication check was performed
201
+ */
202
+ last_auth_check_at?: string;
203
+ }
204
+
205
+ /**
206
+ * Request to create or find an auth agent
207
+ */
208
+ export interface AuthAgentCreateRequest {
209
+ /**
210
+ * Name of the profile to use for this auth agent
211
+ */
212
+ profile_name: string;
213
+
214
+ /**
215
+ * Target domain for authentication
216
+ */
217
+ target_domain: string;
218
+
219
+ /**
220
+ * Optional login page URL. If provided, will be stored on the agent and used to
221
+ * skip discovery in future invocations.
222
+ */
223
+ login_url?: string;
224
+
225
+ /**
226
+ * Optional proxy configuration
227
+ */
228
+ proxy?: AuthAgentCreateRequest.Proxy;
229
+ }
230
+
231
+ export namespace AuthAgentCreateRequest {
232
+ /**
233
+ * Optional proxy configuration
234
+ */
235
+ export interface Proxy {
236
+ /**
237
+ * ID of the proxy to use
238
+ */
239
+ proxy_id?: string;
240
+ }
241
+ }
242
+
243
+ /**
244
+ * Request to create an invocation for an existing auth agent
245
+ */
246
+ export interface AuthAgentInvocationCreateRequest {
247
+ /**
248
+ * ID of the auth agent to create an invocation for
249
+ */
250
+ auth_agent_id: string;
251
+ }
252
+
253
+ /**
254
+ * Response from creating an auth agent invocation
255
+ */
256
+ export interface AuthAgentInvocationCreateResponse {
257
+ /**
258
+ * When the handoff code expires
259
+ */
260
+ expires_at: string;
261
+
262
+ /**
263
+ * One-time code for handoff
264
+ */
265
+ handoff_code: string;
266
+
267
+ /**
268
+ * URL to redirect user to
269
+ */
270
+ hosted_url: string;
271
+
272
+ /**
273
+ * Unique identifier for the invocation
274
+ */
275
+ invocation_id: string;
276
+ }
277
+
278
+ /**
279
+ * A discovered form field
280
+ */
281
+ export interface DiscoveredField {
282
+ /**
283
+ * Field label
284
+ */
285
+ label: string;
286
+
287
+ /**
288
+ * Field name
289
+ */
290
+ name: string;
291
+
292
+ /**
293
+ * CSS selector for the field
294
+ */
295
+ selector: string;
296
+
297
+ /**
298
+ * Field type
299
+ */
300
+ type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code';
301
+
302
+ /**
303
+ * Field placeholder
304
+ */
305
+ placeholder?: string;
306
+
307
+ /**
308
+ * Whether field is required
309
+ */
310
+ required?: boolean;
311
+ }
312
+
313
+ export interface AuthCreateParams {
314
+ /**
315
+ * Name of the profile to use for this auth agent
316
+ */
317
+ profile_name: string;
318
+
319
+ /**
320
+ * Target domain for authentication
321
+ */
322
+ target_domain: string;
323
+
324
+ /**
325
+ * Optional login page URL. If provided, will be stored on the agent and used to
326
+ * skip discovery in future invocations.
327
+ */
328
+ login_url?: string;
329
+
330
+ /**
331
+ * Optional proxy configuration
332
+ */
333
+ proxy?: AuthCreateParams.Proxy;
334
+ }
335
+
336
+ export namespace AuthCreateParams {
337
+ /**
338
+ * Optional proxy configuration
339
+ */
340
+ export interface Proxy {
341
+ /**
342
+ * ID of the proxy to use
343
+ */
344
+ proxy_id?: string;
345
+ }
346
+ }
347
+
348
+ export interface AuthListParams extends OffsetPaginationParams {
349
+ /**
350
+ * Filter by profile name
351
+ */
352
+ profile_name?: string;
353
+
354
+ /**
355
+ * Filter by target domain
356
+ */
357
+ target_domain?: string;
358
+ }
359
+
360
+ Auth.Invocations = Invocations;
361
+
362
+ export declare namespace Auth {
363
+ export {
364
+ type AgentAuthDiscoverResponse as AgentAuthDiscoverResponse,
365
+ type AgentAuthInvocationResponse as AgentAuthInvocationResponse,
366
+ type AgentAuthSubmitResponse as AgentAuthSubmitResponse,
367
+ type AuthAgent as AuthAgent,
368
+ type AuthAgentCreateRequest as AuthAgentCreateRequest,
369
+ type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest,
370
+ type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse,
371
+ type DiscoveredField as DiscoveredField,
372
+ type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination,
373
+ type AuthCreateParams as AuthCreateParams,
374
+ type AuthListParams as AuthListParams,
375
+ };
376
+
377
+ export {
378
+ Invocations as Invocations,
379
+ type InvocationExchangeResponse as InvocationExchangeResponse,
380
+ type InvocationCreateParams as InvocationCreateParams,
381
+ type InvocationDiscoverParams as InvocationDiscoverParams,
382
+ type InvocationExchangeParams as InvocationExchangeParams,
383
+ type InvocationSubmitParams as InvocationSubmitParams,
384
+ };
385
+ }
@@ -0,0 +1,24 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Auth,
5
+ type AgentAuthDiscoverResponse,
6
+ type AgentAuthInvocationResponse,
7
+ type AgentAuthSubmitResponse,
8
+ type AuthAgent,
9
+ type AuthAgentCreateRequest,
10
+ type AuthAgentInvocationCreateRequest,
11
+ type AuthAgentInvocationCreateResponse,
12
+ type DiscoveredField,
13
+ type AuthCreateParams,
14
+ type AuthListParams,
15
+ type AuthAgentsOffsetPagination,
16
+ } from './auth';
17
+ export {
18
+ Invocations,
19
+ type InvocationExchangeResponse,
20
+ type InvocationCreateParams,
21
+ type InvocationDiscoverParams,
22
+ type InvocationExchangeParams,
23
+ type InvocationSubmitParams,
24
+ } from './invocations';
@@ -0,0 +1,167 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as AuthAPI from './auth';
5
+ import { APIPromise } from '../../../core/api-promise';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+ import { path } from '../../../internal/utils/path';
8
+
9
+ export class Invocations extends APIResource {
10
+ /**
11
+ * Creates a new authentication invocation for the specified auth agent. This
12
+ * starts the auth flow and returns a hosted URL for the user to complete
13
+ * authentication.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const authAgentInvocationCreateResponse =
18
+ * await client.agents.auth.invocations.create({
19
+ * auth_agent_id: 'abc123xyz',
20
+ * });
21
+ * ```
22
+ */
23
+ create(
24
+ body: InvocationCreateParams,
25
+ options?: RequestOptions,
26
+ ): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse> {
27
+ return this._client.post('/agents/auth/invocations', { body, ...options });
28
+ }
29
+
30
+ /**
31
+ * Returns invocation details including app_name and target_domain. Uses the JWT
32
+ * returned by the exchange endpoint, or standard API key or JWT authentication.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const agentAuthInvocationResponse =
37
+ * await client.agents.auth.invocations.retrieve(
38
+ * 'invocation_id',
39
+ * );
40
+ * ```
41
+ */
42
+ retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse> {
43
+ return this._client.get(path`/agents/auth/invocations/${invocationID}`, options);
44
+ }
45
+
46
+ /**
47
+ * Inspects the target site to detect logged-in state or discover required fields.
48
+ * Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
49
+ * Requires the JWT returned by the exchange endpoint.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const agentAuthDiscoverResponse =
54
+ * await client.agents.auth.invocations.discover(
55
+ * 'invocation_id',
56
+ * );
57
+ * ```
58
+ */
59
+ discover(
60
+ invocationID: string,
61
+ body: InvocationDiscoverParams | null | undefined = {},
62
+ options?: RequestOptions,
63
+ ): APIPromise<AuthAPI.AgentAuthDiscoverResponse> {
64
+ return this._client.post(path`/agents/auth/invocations/${invocationID}/discover`, { body, ...options });
65
+ }
66
+
67
+ /**
68
+ * Validates the handoff code and returns a JWT token for subsequent requests. No
69
+ * authentication required (the handoff code serves as the credential).
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const response =
74
+ * await client.agents.auth.invocations.exchange(
75
+ * 'invocation_id',
76
+ * { code: 'abc123xyz' },
77
+ * );
78
+ * ```
79
+ */
80
+ exchange(
81
+ invocationID: string,
82
+ body: InvocationExchangeParams,
83
+ options?: RequestOptions,
84
+ ): APIPromise<InvocationExchangeResponse> {
85
+ return this._client.post(path`/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
86
+ }
87
+
88
+ /**
89
+ * Submits field values for the discovered login form and may return additional
90
+ * auth fields or success. Requires the JWT returned by the exchange endpoint.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * const agentAuthSubmitResponse =
95
+ * await client.agents.auth.invocations.submit(
96
+ * 'invocation_id',
97
+ * {
98
+ * field_values: {
99
+ * email: 'user@example.com',
100
+ * password: '********',
101
+ * },
102
+ * },
103
+ * );
104
+ * ```
105
+ */
106
+ submit(
107
+ invocationID: string,
108
+ body: InvocationSubmitParams,
109
+ options?: RequestOptions,
110
+ ): APIPromise<AuthAPI.AgentAuthSubmitResponse> {
111
+ return this._client.post(path`/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
112
+ }
113
+ }
114
+
115
+ /**
116
+ * Response from exchange endpoint
117
+ */
118
+ export interface InvocationExchangeResponse {
119
+ /**
120
+ * Invocation ID
121
+ */
122
+ invocation_id: string;
123
+
124
+ /**
125
+ * JWT token with invocation_id claim (30 minute TTL)
126
+ */
127
+ jwt: string;
128
+ }
129
+
130
+ export interface InvocationCreateParams {
131
+ /**
132
+ * ID of the auth agent to create an invocation for
133
+ */
134
+ auth_agent_id: string;
135
+ }
136
+
137
+ export interface InvocationDiscoverParams {
138
+ /**
139
+ * Optional login page URL. If provided, will override the stored login URL for
140
+ * this discovery invocation and skip Phase 1 discovery.
141
+ */
142
+ login_url?: string;
143
+ }
144
+
145
+ export interface InvocationExchangeParams {
146
+ /**
147
+ * Handoff code from start endpoint
148
+ */
149
+ code: string;
150
+ }
151
+
152
+ export interface InvocationSubmitParams {
153
+ /**
154
+ * Values for the discovered login fields
155
+ */
156
+ field_values: { [key: string]: string };
157
+ }
158
+
159
+ export declare namespace Invocations {
160
+ export {
161
+ type InvocationExchangeResponse as InvocationExchangeResponse,
162
+ type InvocationCreateParams as InvocationCreateParams,
163
+ type InvocationDiscoverParams as InvocationDiscoverParams,
164
+ type InvocationExchangeParams as InvocationExchangeParams,
165
+ type InvocationSubmitParams as InvocationSubmitParams,
166
+ };
167
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './auth/index';
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Agents } from './agents';
4
+ export {
5
+ Auth,
6
+ type AgentAuthDiscoverResponse,
7
+ type AgentAuthInvocationResponse,
8
+ type AgentAuthSubmitResponse,
9
+ type AuthAgent,
10
+ type AuthAgentCreateRequest,
11
+ type AuthAgentInvocationCreateRequest,
12
+ type AuthAgentInvocationCreateResponse,
13
+ type DiscoveredField,
14
+ type AuthCreateParams,
15
+ type AuthListParams,
16
+ type AuthAgentsOffsetPagination,
17
+ } from './auth/index';
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './agents/index';
@@ -266,11 +266,11 @@ export interface BrowserPoolRequest {
266
266
 
267
267
  /**
268
268
  * Initial browser window size in pixels with optional refresh rate. If omitted,
269
- * image defaults apply (commonly 1024x768@60). Only specific viewport
270
- * configurations are supported. The server will reject unsupported combinations.
271
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
272
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
273
- * be automatically determined from the width and height if they match a supported
269
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
270
+ * supported. The server will reject unsupported combinations. Supported
271
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
272
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
273
+ * automatically determined from the width and height if they match a supported
274
274
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
275
275
  * live view browser
276
276
  */
@@ -284,7 +284,7 @@ export interface BrowserPoolRequest {
284
284
  export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
285
285
  /**
286
286
  * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
287
- * to true.
287
+ * to false.
288
288
  */
289
289
  discard_all_idle?: boolean;
290
290
  }
@@ -339,7 +339,8 @@ export interface BrowserPoolAcquireResponse {
339
339
  kiosk_mode?: boolean;
340
340
 
341
341
  /**
342
- * Optional persistence configuration for the browser session.
342
+ * @deprecated DEPRECATED: Use timeout_seconds (up to 72 hours) and Profiles
343
+ * instead.
343
344
  */
344
345
  persistence?: BrowsersAPI.BrowserPersistence;
345
346
 
@@ -355,11 +356,11 @@ export interface BrowserPoolAcquireResponse {
355
356
 
356
357
  /**
357
358
  * Initial browser window size in pixels with optional refresh rate. If omitted,
358
- * image defaults apply (commonly 1024x768@60). Only specific viewport
359
- * configurations are supported. The server will reject unsupported combinations.
360
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
361
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
362
- * be automatically determined from the width and height if they match a supported
359
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
360
+ * supported. The server will reject unsupported combinations. Supported
361
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
362
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
363
+ * automatically determined from the width and height if they match a supported
363
364
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
364
365
  * live view browser
365
366
  */
@@ -425,11 +426,11 @@ export interface BrowserPoolCreateParams {
425
426
 
426
427
  /**
427
428
  * Initial browser window size in pixels with optional refresh rate. If omitted,
428
- * image defaults apply (commonly 1024x768@60). Only specific viewport
429
- * configurations are supported. The server will reject unsupported combinations.
430
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
431
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
432
- * be automatically determined from the width and height if they match a supported
429
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
430
+ * supported. The server will reject unsupported combinations. Supported
431
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
432
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
433
+ * automatically determined from the width and height if they match a supported
433
434
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
434
435
  * live view browser
435
436
  */
@@ -444,7 +445,7 @@ export interface BrowserPoolUpdateParams {
444
445
 
445
446
  /**
446
447
  * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
447
- * to true.
448
+ * to false.
448
449
  */
449
450
  discard_all_idle?: boolean;
450
451
 
@@ -501,11 +502,11 @@ export interface BrowserPoolUpdateParams {
501
502
 
502
503
  /**
503
504
  * Initial browser window size in pixels with optional refresh rate. If omitted,
504
- * image defaults apply (commonly 1024x768@60). Only specific viewport
505
- * configurations are supported. The server will reject unsupported combinations.
506
- * Supported resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25,
507
- * 1440x900@25, 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will
508
- * be automatically determined from the width and height if they match a supported
505
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
506
+ * supported. The server will reject unsupported combinations. Supported
507
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
508
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
509
+ * automatically determined from the width and height if they match a supported
509
510
  * configuration exactly. Note: Higher resolutions may affect the responsiveness of
510
511
  * live view browser
511
512
  */