@onkernel/sdk 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/client.d.mts +0 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -3
- package/client.d.ts.map +1 -1
- package/client.js +7 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -3
- package/client.mjs.map +1 -1
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/auth.d.mts +2 -2
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +2 -2
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.js.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/connections.d.mts +172 -59
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +172 -59
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/connections.js +12 -17
- package/resources/auth/connections.js.map +1 -1
- package/resources/auth/connections.mjs +12 -17
- package/resources/auth/connections.mjs.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.js.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/browser-pools.d.mts +28 -28
- package/resources/browser-pools.d.ts +28 -28
- package/resources/browsers/browsers.d.mts +35 -35
- package/resources/browsers/browsers.d.ts +35 -35
- package/resources/credentials.d.mts +4 -0
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts +4 -0
- package/resources/credentials.d.ts.map +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +7 -7
- package/resources/invocations.d.ts +7 -7
- package/resources/shared.d.mts +21 -7
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +21 -7
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +9 -6
- package/src/core/streaming.ts +2 -2
- package/src/resources/auth/auth.ts +0 -2
- package/src/resources/auth/connections.ts +195 -60
- package/src/resources/auth/index.ts +0 -1
- package/src/resources/browser-pools.ts +28 -28
- package/src/resources/browsers/browsers.ts +35 -35
- package/src/resources/credentials.ts +5 -0
- package/src/resources/index.ts +0 -1
- package/src/resources/invocations.ts +7 -7
- package/src/resources/shared.ts +19 -7
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/agents/agents.d.mts +0 -10
- package/resources/agents/agents.d.mts.map +0 -1
- package/resources/agents/agents.d.ts +0 -10
- package/resources/agents/agents.d.ts.map +0 -1
- package/resources/agents/agents.js +0 -17
- package/resources/agents/agents.js.map +0 -1
- package/resources/agents/agents.mjs +0 -12
- package/resources/agents/agents.mjs.map +0 -1
- package/resources/agents/auth/auth.d.mts +0 -474
- package/resources/agents/auth/auth.d.mts.map +0 -1
- package/resources/agents/auth/auth.d.ts +0 -474
- package/resources/agents/auth/auth.d.ts.map +0 -1
- package/resources/agents/auth/auth.js +0 -66
- package/resources/agents/auth/auth.js.map +0 -1
- package/resources/agents/auth/auth.mjs +0 -61
- package/resources/agents/auth/auth.mjs.map +0 -1
- package/resources/agents/auth/index.d.mts +0 -3
- package/resources/agents/auth/index.d.mts.map +0 -1
- package/resources/agents/auth/index.d.ts +0 -3
- package/resources/agents/auth/index.d.ts.map +0 -1
- package/resources/agents/auth/index.js +0 -9
- package/resources/agents/auth/index.js.map +0 -1
- package/resources/agents/auth/index.mjs +0 -4
- package/resources/agents/auth/index.mjs.map +0 -1
- package/resources/agents/auth/invocations.d.mts +0 -96
- package/resources/agents/auth/invocations.d.mts.map +0 -1
- package/resources/agents/auth/invocations.d.ts +0 -96
- package/resources/agents/auth/invocations.d.ts.map +0 -1
- package/resources/agents/auth/invocations.js +0 -50
- package/resources/agents/auth/invocations.js.map +0 -1
- package/resources/agents/auth/invocations.mjs +0 -46
- package/resources/agents/auth/invocations.mjs.map +0 -1
- package/resources/agents/auth.d.mts +0 -2
- package/resources/agents/auth.d.mts.map +0 -1
- package/resources/agents/auth.d.ts +0 -2
- package/resources/agents/auth.d.ts.map +0 -1
- package/resources/agents/auth.js +0 -6
- package/resources/agents/auth.js.map +0 -1
- package/resources/agents/auth.mjs +0 -3
- package/resources/agents/auth.mjs.map +0 -1
- package/resources/agents/index.d.mts +0 -3
- package/resources/agents/index.d.mts.map +0 -1
- package/resources/agents/index.d.ts +0 -3
- package/resources/agents/index.d.ts.map +0 -1
- package/resources/agents/index.js +0 -9
- package/resources/agents/index.js.map +0 -1
- package/resources/agents/index.mjs +0 -4
- package/resources/agents/index.mjs.map +0 -1
- package/resources/agents.d.mts +0 -2
- package/resources/agents.d.mts.map +0 -1
- package/resources/agents.d.ts +0 -2
- package/resources/agents.d.ts.map +0 -1
- package/resources/agents.js +0 -6
- package/resources/agents.js.map +0 -1
- package/resources/agents.mjs +0 -3
- package/resources/agents.mjs.map +0 -1
- package/src/resources/agents/agents.ts +0 -39
- package/src/resources/agents/auth/auth.ts +0 -599
- package/src/resources/agents/auth/index.ts +0 -22
- package/src/resources/agents/auth/invocations.ts +0 -137
- package/src/resources/agents/auth.ts +0 -3
- package/src/resources/agents/index.ts +0 -16
- package/src/resources/agents.ts +0 -3
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
-
import * as AuthAPI from '../agents/auth/auth';
|
|
6
5
|
import { APIPromise } from '../../core/api-promise';
|
|
7
6
|
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../../core/pagination';
|
|
8
7
|
import { Stream } from '../../core/streaming';
|
|
@@ -12,8 +11,8 @@ import { path } from '../../internal/utils/path';
|
|
|
12
11
|
|
|
13
12
|
export class Connections extends APIResource {
|
|
14
13
|
/**
|
|
15
|
-
* Creates
|
|
16
|
-
* Conflict if
|
|
14
|
+
* Creates an auth connection for a profile and domain combination. Returns 409
|
|
15
|
+
* Conflict if an auth connection already exists for the given profile and domain.
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* ```ts
|
|
@@ -28,8 +27,8 @@ export class Connections extends APIResource {
|
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
|
-
* Retrieve
|
|
32
|
-
* progress.
|
|
30
|
+
* Retrieve an auth connection by its ID. Includes current flow state if a login is
|
|
31
|
+
* in progress.
|
|
33
32
|
*
|
|
34
33
|
* @example
|
|
35
34
|
* ```ts
|
|
@@ -43,7 +42,7 @@ export class Connections extends APIResource {
|
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
|
-
* List
|
|
45
|
+
* List auth connections with optional filters for profile_name and domain.
|
|
47
46
|
*
|
|
48
47
|
* @example
|
|
49
48
|
* ```ts
|
|
@@ -61,9 +60,9 @@ export class Connections extends APIResource {
|
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
/**
|
|
64
|
-
* Deletes
|
|
63
|
+
* Deletes an auth connection and terminates its workflow. This will:
|
|
65
64
|
*
|
|
66
|
-
* - Delete the
|
|
65
|
+
* - Delete the auth connection record
|
|
67
66
|
* - Terminate the Temporal workflow
|
|
68
67
|
* - Cancel any in-progress login flows
|
|
69
68
|
*
|
|
@@ -98,8 +97,8 @@ export class Connections extends APIResource {
|
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
|
-
* Starts a login flow for the
|
|
102
|
-
* for the user to complete authentication, or triggers automatic re-auth if
|
|
100
|
+
* Starts a login flow for the auth connection. Returns immediately with a hosted
|
|
101
|
+
* URL for the user to complete authentication, or triggers automatic re-auth if
|
|
103
102
|
* credentials are stored.
|
|
104
103
|
*
|
|
105
104
|
* @example
|
|
@@ -118,18 +117,13 @@ export class Connections extends APIResource {
|
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
/**
|
|
121
|
-
* Submits field values for the login form. Poll the
|
|
122
|
-
* and get results.
|
|
120
|
+
* Submits field values for the login form. Poll the auth connection to track
|
|
121
|
+
* progress and get results.
|
|
123
122
|
*
|
|
124
123
|
* @example
|
|
125
124
|
* ```ts
|
|
126
125
|
* const submitFieldsResponse =
|
|
127
|
-
* await client.auth.connections.submit('id'
|
|
128
|
-
* fields: {
|
|
129
|
-
* email: 'user@example.com',
|
|
130
|
-
* password: 'secret',
|
|
131
|
-
* },
|
|
132
|
-
* });
|
|
126
|
+
* await client.auth.connections.submit('id');
|
|
133
127
|
* ```
|
|
134
128
|
*/
|
|
135
129
|
submit(
|
|
@@ -143,22 +137,12 @@ export class Connections extends APIResource {
|
|
|
143
137
|
|
|
144
138
|
export type ManagedAuthsOffsetPagination = OffsetPagination<ManagedAuth>;
|
|
145
139
|
|
|
146
|
-
/**
|
|
147
|
-
* Request to start a login flow
|
|
148
|
-
*/
|
|
149
|
-
export interface LoginRequest {
|
|
150
|
-
/**
|
|
151
|
-
* If provided, saves credentials under this name upon successful login
|
|
152
|
-
*/
|
|
153
|
-
save_credential_as?: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
140
|
/**
|
|
157
141
|
* Response from starting a login flow
|
|
158
142
|
*/
|
|
159
143
|
export interface LoginResponse {
|
|
160
144
|
/**
|
|
161
|
-
*
|
|
145
|
+
* Auth connection ID
|
|
162
146
|
*/
|
|
163
147
|
id: string;
|
|
164
148
|
|
|
@@ -195,7 +179,7 @@ export interface LoginResponse {
|
|
|
195
179
|
*/
|
|
196
180
|
export interface ManagedAuth {
|
|
197
181
|
/**
|
|
198
|
-
* Unique identifier for the
|
|
182
|
+
* Unique identifier for the auth connection
|
|
199
183
|
*/
|
|
200
184
|
id: string;
|
|
201
185
|
|
|
@@ -205,10 +189,16 @@ export interface ManagedAuth {
|
|
|
205
189
|
domain: string;
|
|
206
190
|
|
|
207
191
|
/**
|
|
208
|
-
* Name of the profile associated with this
|
|
192
|
+
* Name of the profile associated with this auth connection
|
|
209
193
|
*/
|
|
210
194
|
profile_name: string;
|
|
211
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Whether credentials are saved after every successful login. One-time codes
|
|
198
|
+
* (TOTP, SMS, etc.) are not saved.
|
|
199
|
+
*/
|
|
200
|
+
save_credentials: boolean;
|
|
201
|
+
|
|
212
202
|
/**
|
|
213
203
|
* Current authentication status of the managed profile
|
|
214
204
|
*/
|
|
@@ -247,7 +237,7 @@ export interface ManagedAuth {
|
|
|
247
237
|
can_reauth_reason?: string;
|
|
248
238
|
|
|
249
239
|
/**
|
|
250
|
-
* Reference to credentials for
|
|
240
|
+
* Reference to credentials for the auth connection. Use one of:
|
|
251
241
|
*
|
|
252
242
|
* - { name } for Kernel credentials
|
|
253
243
|
* - { provider, path } for external provider item
|
|
@@ -258,7 +248,12 @@ export interface ManagedAuth {
|
|
|
258
248
|
/**
|
|
259
249
|
* Fields awaiting input (present when flow_step=awaiting_input)
|
|
260
250
|
*/
|
|
261
|
-
discovered_fields?: Array<
|
|
251
|
+
discovered_fields?: Array<ManagedAuth.DiscoveredField> | null;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Machine-readable error code (present when flow_status=failed)
|
|
255
|
+
*/
|
|
256
|
+
error_code?: string | null;
|
|
262
257
|
|
|
263
258
|
/**
|
|
264
259
|
* Error message (present when flow_status=failed)
|
|
@@ -300,8 +295,9 @@ export interface ManagedAuth {
|
|
|
300
295
|
/**
|
|
301
296
|
* Interval in seconds between automatic health checks. When set, the system
|
|
302
297
|
* periodically verifies the authentication status and triggers re-authentication
|
|
303
|
-
* if needed.
|
|
304
|
-
* (
|
|
298
|
+
* if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
|
|
299
|
+
* depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
|
|
300
|
+
* Hobbyist: 3600 (1 hour).
|
|
305
301
|
*/
|
|
306
302
|
health_check_interval?: number | null;
|
|
307
303
|
|
|
@@ -336,6 +332,11 @@ export interface ManagedAuth {
|
|
|
336
332
|
*/
|
|
337
333
|
post_login_url?: string;
|
|
338
334
|
|
|
335
|
+
/**
|
|
336
|
+
* ID of the proxy associated with this connection, if any.
|
|
337
|
+
*/
|
|
338
|
+
proxy_id?: string;
|
|
339
|
+
|
|
339
340
|
/**
|
|
340
341
|
* SSO provider being used (e.g., google, github, microsoft)
|
|
341
342
|
*/
|
|
@@ -350,7 +351,7 @@ export interface ManagedAuth {
|
|
|
350
351
|
|
|
351
352
|
export namespace ManagedAuth {
|
|
352
353
|
/**
|
|
353
|
-
* Reference to credentials for
|
|
354
|
+
* Reference to credentials for the auth connection. Use one of:
|
|
354
355
|
*
|
|
355
356
|
* - { name } for Kernel credentials
|
|
356
357
|
* - { provider, path } for external provider item
|
|
@@ -378,6 +379,47 @@ export namespace ManagedAuth {
|
|
|
378
379
|
provider?: string;
|
|
379
380
|
}
|
|
380
381
|
|
|
382
|
+
/**
|
|
383
|
+
* A discovered form field
|
|
384
|
+
*/
|
|
385
|
+
export interface DiscoveredField {
|
|
386
|
+
/**
|
|
387
|
+
* Field label
|
|
388
|
+
*/
|
|
389
|
+
label: string;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Field name
|
|
393
|
+
*/
|
|
394
|
+
name: string;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* CSS selector for the field
|
|
398
|
+
*/
|
|
399
|
+
selector: string;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Field type
|
|
403
|
+
*/
|
|
404
|
+
type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code' | 'totp';
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* If this field is associated with an MFA option, the type of that option (e.g.,
|
|
408
|
+
* password field linked to "Enter password" option)
|
|
409
|
+
*/
|
|
410
|
+
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | null;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Field placeholder
|
|
414
|
+
*/
|
|
415
|
+
placeholder?: string;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Whether field is required
|
|
419
|
+
*/
|
|
420
|
+
required?: boolean;
|
|
421
|
+
}
|
|
422
|
+
|
|
381
423
|
/**
|
|
382
424
|
* An MFA method option for verification
|
|
383
425
|
*/
|
|
@@ -425,7 +467,7 @@ export namespace ManagedAuth {
|
|
|
425
467
|
}
|
|
426
468
|
|
|
427
469
|
/**
|
|
428
|
-
* Request to create
|
|
470
|
+
* Request to create an auth connection for a profile and domain
|
|
429
471
|
*/
|
|
430
472
|
export interface ManagedAuthCreateRequest {
|
|
431
473
|
/**
|
|
@@ -460,7 +502,7 @@ export interface ManagedAuthCreateRequest {
|
|
|
460
502
|
allowed_domains?: Array<string>;
|
|
461
503
|
|
|
462
504
|
/**
|
|
463
|
-
* Reference to credentials for
|
|
505
|
+
* Reference to credentials for the auth connection. Use one of:
|
|
464
506
|
*
|
|
465
507
|
* - { name } for Kernel credentials
|
|
466
508
|
* - { provider, path } for external provider item
|
|
@@ -471,8 +513,9 @@ export interface ManagedAuthCreateRequest {
|
|
|
471
513
|
/**
|
|
472
514
|
* Interval in seconds between automatic health checks. When set, the system
|
|
473
515
|
* periodically verifies the authentication status and triggers re-authentication
|
|
474
|
-
* if needed.
|
|
475
|
-
* (
|
|
516
|
+
* if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
|
|
517
|
+
* depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
|
|
518
|
+
* Hobbyist: 3600 (1 hour).
|
|
476
519
|
*/
|
|
477
520
|
health_check_interval?: number;
|
|
478
521
|
|
|
@@ -482,14 +525,21 @@ export interface ManagedAuthCreateRequest {
|
|
|
482
525
|
login_url?: string;
|
|
483
526
|
|
|
484
527
|
/**
|
|
485
|
-
*
|
|
528
|
+
* Proxy selection. Provide either id or name. The proxy must belong to the
|
|
529
|
+
* caller's org.
|
|
486
530
|
*/
|
|
487
531
|
proxy?: ManagedAuthCreateRequest.Proxy;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Whether to save credentials after every successful login. Defaults to true.
|
|
535
|
+
* One-time codes (TOTP, SMS, etc.) are not saved.
|
|
536
|
+
*/
|
|
537
|
+
save_credentials?: boolean;
|
|
488
538
|
}
|
|
489
539
|
|
|
490
540
|
export namespace ManagedAuthCreateRequest {
|
|
491
541
|
/**
|
|
492
|
-
* Reference to credentials for
|
|
542
|
+
* Reference to credentials for the auth connection. Use one of:
|
|
493
543
|
*
|
|
494
544
|
* - { name } for Kernel credentials
|
|
495
545
|
* - { provider, path } for external provider item
|
|
@@ -518,24 +568,31 @@ export namespace ManagedAuthCreateRequest {
|
|
|
518
568
|
}
|
|
519
569
|
|
|
520
570
|
/**
|
|
521
|
-
*
|
|
571
|
+
* Proxy selection. Provide either id or name. The proxy must belong to the
|
|
572
|
+
* caller's org.
|
|
522
573
|
*/
|
|
523
574
|
export interface Proxy {
|
|
524
575
|
/**
|
|
525
|
-
* ID
|
|
576
|
+
* Proxy ID
|
|
577
|
+
*/
|
|
578
|
+
id?: string;
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Proxy name
|
|
526
582
|
*/
|
|
527
|
-
|
|
583
|
+
name?: string;
|
|
528
584
|
}
|
|
529
585
|
}
|
|
530
586
|
|
|
531
587
|
/**
|
|
532
|
-
* Request to submit field values
|
|
588
|
+
* Request to submit field values, click an SSO button, or select an MFA method.
|
|
589
|
+
* Provide exactly one of fields, sso_button_selector, or mfa_option_id.
|
|
533
590
|
*/
|
|
534
591
|
export interface SubmitFieldsRequest {
|
|
535
592
|
/**
|
|
536
593
|
* Map of field name to value
|
|
537
594
|
*/
|
|
538
|
-
fields
|
|
595
|
+
fields?: { [key: string]: string };
|
|
539
596
|
|
|
540
597
|
/**
|
|
541
598
|
* Optional MFA option ID if user selected an MFA method
|
|
@@ -594,7 +651,12 @@ export namespace ConnectionFollowResponse {
|
|
|
594
651
|
/**
|
|
595
652
|
* Fields awaiting input (present when flow_step=AWAITING_INPUT).
|
|
596
653
|
*/
|
|
597
|
-
discovered_fields?: Array<
|
|
654
|
+
discovered_fields?: Array<ManagedAuthStateEvent.DiscoveredField>;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Machine-readable error code (present when flow_status=FAILED).
|
|
658
|
+
*/
|
|
659
|
+
error_code?: string;
|
|
598
660
|
|
|
599
661
|
/**
|
|
600
662
|
* Error message (present when flow_status=FAILED).
|
|
@@ -646,6 +708,47 @@ export namespace ConnectionFollowResponse {
|
|
|
646
708
|
}
|
|
647
709
|
|
|
648
710
|
export namespace ManagedAuthStateEvent {
|
|
711
|
+
/**
|
|
712
|
+
* A discovered form field
|
|
713
|
+
*/
|
|
714
|
+
export interface DiscoveredField {
|
|
715
|
+
/**
|
|
716
|
+
* Field label
|
|
717
|
+
*/
|
|
718
|
+
label: string;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Field name
|
|
722
|
+
*/
|
|
723
|
+
name: string;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* CSS selector for the field
|
|
727
|
+
*/
|
|
728
|
+
selector: string;
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Field type
|
|
732
|
+
*/
|
|
733
|
+
type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code' | 'totp';
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* If this field is associated with an MFA option, the type of that option (e.g.,
|
|
737
|
+
* password field linked to "Enter password" option)
|
|
738
|
+
*/
|
|
739
|
+
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | null;
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Field placeholder
|
|
743
|
+
*/
|
|
744
|
+
placeholder?: string;
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Whether field is required
|
|
748
|
+
*/
|
|
749
|
+
required?: boolean;
|
|
750
|
+
}
|
|
751
|
+
|
|
649
752
|
/**
|
|
650
753
|
* An MFA method option for verification
|
|
651
754
|
*/
|
|
@@ -726,7 +829,7 @@ export interface ConnectionCreateParams {
|
|
|
726
829
|
allowed_domains?: Array<string>;
|
|
727
830
|
|
|
728
831
|
/**
|
|
729
|
-
* Reference to credentials for
|
|
832
|
+
* Reference to credentials for the auth connection. Use one of:
|
|
730
833
|
*
|
|
731
834
|
* - { name } for Kernel credentials
|
|
732
835
|
* - { provider, path } for external provider item
|
|
@@ -737,8 +840,9 @@ export interface ConnectionCreateParams {
|
|
|
737
840
|
/**
|
|
738
841
|
* Interval in seconds between automatic health checks. When set, the system
|
|
739
842
|
* periodically verifies the authentication status and triggers re-authentication
|
|
740
|
-
* if needed.
|
|
741
|
-
* (
|
|
843
|
+
* if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
|
|
844
|
+
* depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
|
|
845
|
+
* Hobbyist: 3600 (1 hour).
|
|
742
846
|
*/
|
|
743
847
|
health_check_interval?: number;
|
|
744
848
|
|
|
@@ -748,14 +852,21 @@ export interface ConnectionCreateParams {
|
|
|
748
852
|
login_url?: string;
|
|
749
853
|
|
|
750
854
|
/**
|
|
751
|
-
*
|
|
855
|
+
* Proxy selection. Provide either id or name. The proxy must belong to the
|
|
856
|
+
* caller's org.
|
|
752
857
|
*/
|
|
753
858
|
proxy?: ConnectionCreateParams.Proxy;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Whether to save credentials after every successful login. Defaults to true.
|
|
862
|
+
* One-time codes (TOTP, SMS, etc.) are not saved.
|
|
863
|
+
*/
|
|
864
|
+
save_credentials?: boolean;
|
|
754
865
|
}
|
|
755
866
|
|
|
756
867
|
export namespace ConnectionCreateParams {
|
|
757
868
|
/**
|
|
758
|
-
* Reference to credentials for
|
|
869
|
+
* Reference to credentials for the auth connection. Use one of:
|
|
759
870
|
*
|
|
760
871
|
* - { name } for Kernel credentials
|
|
761
872
|
* - { provider, path } for external provider item
|
|
@@ -784,13 +895,19 @@ export namespace ConnectionCreateParams {
|
|
|
784
895
|
}
|
|
785
896
|
|
|
786
897
|
/**
|
|
787
|
-
*
|
|
898
|
+
* Proxy selection. Provide either id or name. The proxy must belong to the
|
|
899
|
+
* caller's org.
|
|
788
900
|
*/
|
|
789
901
|
export interface Proxy {
|
|
790
902
|
/**
|
|
791
|
-
* ID
|
|
903
|
+
* Proxy ID
|
|
904
|
+
*/
|
|
905
|
+
id?: string;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Proxy name
|
|
792
909
|
*/
|
|
793
|
-
|
|
910
|
+
name?: string;
|
|
794
911
|
}
|
|
795
912
|
}
|
|
796
913
|
|
|
@@ -808,16 +925,35 @@ export interface ConnectionListParams extends OffsetPaginationParams {
|
|
|
808
925
|
|
|
809
926
|
export interface ConnectionLoginParams {
|
|
810
927
|
/**
|
|
811
|
-
*
|
|
928
|
+
* Proxy selection. Provide either id or name. The proxy must belong to the
|
|
929
|
+
* caller's org.
|
|
812
930
|
*/
|
|
813
|
-
|
|
931
|
+
proxy?: ConnectionLoginParams.Proxy;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
export namespace ConnectionLoginParams {
|
|
935
|
+
/**
|
|
936
|
+
* Proxy selection. Provide either id or name. The proxy must belong to the
|
|
937
|
+
* caller's org.
|
|
938
|
+
*/
|
|
939
|
+
export interface Proxy {
|
|
940
|
+
/**
|
|
941
|
+
* Proxy ID
|
|
942
|
+
*/
|
|
943
|
+
id?: string;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Proxy name
|
|
947
|
+
*/
|
|
948
|
+
name?: string;
|
|
949
|
+
}
|
|
814
950
|
}
|
|
815
951
|
|
|
816
952
|
export interface ConnectionSubmitParams {
|
|
817
953
|
/**
|
|
818
954
|
* Map of field name to value
|
|
819
955
|
*/
|
|
820
|
-
fields
|
|
956
|
+
fields?: { [key: string]: string };
|
|
821
957
|
|
|
822
958
|
/**
|
|
823
959
|
* Optional MFA option ID if user selected an MFA method
|
|
@@ -832,7 +968,6 @@ export interface ConnectionSubmitParams {
|
|
|
832
968
|
|
|
833
969
|
export declare namespace Connections {
|
|
834
970
|
export {
|
|
835
|
-
type LoginRequest as LoginRequest,
|
|
836
971
|
type LoginResponse as LoginResponse,
|
|
837
972
|
type ManagedAuth as ManagedAuth,
|
|
838
973
|
type ManagedAuthCreateRequest as ManagedAuthCreateRequest,
|
|
@@ -240,13 +240,13 @@ export namespace BrowserPool {
|
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
243
|
-
* image defaults apply (1920x1080@25).
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
243
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
244
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
245
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
246
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
247
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
248
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
249
|
+
* bandwidth reasonable).
|
|
250
250
|
*/
|
|
251
251
|
viewport?: Shared.BrowserViewport;
|
|
252
252
|
}
|
|
@@ -319,13 +319,13 @@ export interface BrowserPoolAcquireResponse {
|
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
322
|
-
* image defaults apply (1920x1080@25).
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
322
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
323
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
324
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
325
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
326
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
327
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
328
|
+
* bandwidth reasonable).
|
|
329
329
|
*/
|
|
330
330
|
viewport?: Shared.BrowserViewport;
|
|
331
331
|
}
|
|
@@ -391,13 +391,13 @@ export interface BrowserPoolCreateParams {
|
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
394
|
-
* image defaults apply (1920x1080@25).
|
|
395
|
-
*
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
394
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
395
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
396
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
397
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
398
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
399
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
400
|
+
* bandwidth reasonable).
|
|
401
401
|
*/
|
|
402
402
|
viewport?: Shared.BrowserViewport;
|
|
403
403
|
}
|
|
@@ -469,13 +469,13 @@ export interface BrowserPoolUpdateParams {
|
|
|
469
469
|
|
|
470
470
|
/**
|
|
471
471
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
472
|
-
* image defaults apply (1920x1080@25).
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
472
|
+
* image defaults apply (1920x1080@25). Arbitrary viewport dimensions are accepted,
|
|
473
|
+
* but the following configurations are known-good and fully tested: 2560x1440@10,
|
|
474
|
+
* 1920x1080@25, 1920x1200@25, 1440x900@25, 1280x800@60, 1024x768@60, 1200x800@60.
|
|
475
|
+
* Viewports outside this list may exhibit unstable live view or recording
|
|
476
|
+
* behavior. If refresh_rate is not provided, it will be automatically determined
|
|
477
|
+
* based on the resolution (higher resolutions use lower refresh rates to keep
|
|
478
|
+
* bandwidth reasonable).
|
|
479
479
|
*/
|
|
480
480
|
viewport?: Shared.BrowserViewport;
|
|
481
481
|
}
|