@onkernel/sdk 0.30.0 → 0.32.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 +48 -0
- package/client.d.mts +8 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -4
- package/client.d.ts.map +1 -1
- package/client.js +12 -2
- package/client.js.map +1 -1
- package/client.mjs +12 -2
- package/client.mjs.map +1 -1
- package/package.json +3 -2
- package/resources/agents/auth/auth.d.mts +115 -46
- package/resources/agents/auth/auth.d.mts.map +1 -1
- package/resources/agents/auth/auth.d.ts +115 -46
- package/resources/agents/auth/auth.d.ts.map +1 -1
- package/resources/agents/auth/auth.js +15 -30
- package/resources/agents/auth/auth.js.map +1 -1
- package/resources/agents/auth/auth.mjs +15 -30
- package/resources/agents/auth/auth.mjs.map +1 -1
- package/resources/agents/auth/invocations.d.mts +18 -47
- package/resources/agents/auth/invocations.d.mts.map +1 -1
- package/resources/agents/auth/invocations.d.ts +18 -47
- package/resources/agents/auth/invocations.d.ts.map +1 -1
- package/resources/agents/auth/invocations.js +16 -45
- package/resources/agents/auth/invocations.js.map +1 -1
- package/resources/agents/auth/invocations.mjs +16 -45
- package/resources/agents/auth/invocations.mjs.map +1 -1
- package/resources/auth/auth.d.mts +10 -0
- package/resources/auth/auth.d.mts.map +1 -0
- package/resources/auth/auth.d.ts +10 -0
- package/resources/auth/auth.d.ts.map +1 -0
- package/resources/auth/auth.js +17 -0
- package/resources/auth/auth.js.map +1 -0
- package/resources/auth/auth.mjs +12 -0
- package/resources/auth/auth.mjs.map +1 -0
- package/resources/auth/connections.d.mts +688 -0
- package/resources/auth/connections.d.mts.map +1 -0
- package/resources/auth/connections.d.ts +688 -0
- package/resources/auth/connections.d.ts.map +1 -0
- package/resources/auth/connections.js +123 -0
- package/resources/auth/connections.js.map +1 -0
- package/resources/auth/connections.mjs +119 -0
- package/resources/auth/connections.mjs.map +1 -0
- package/resources/auth/index.d.mts +3 -0
- package/resources/auth/index.d.mts.map +1 -0
- package/resources/auth/index.d.ts +3 -0
- package/resources/auth/index.d.ts.map +1 -0
- package/resources/auth/index.js +9 -0
- package/resources/auth/index.js.map +1 -0
- package/resources/auth/index.mjs +4 -0
- package/resources/auth/index.mjs.map +1 -0
- package/resources/auth.d.mts +2 -0
- package/resources/auth.d.mts.map +1 -0
- package/resources/auth.d.ts +2 -0
- package/resources/auth.d.ts.map +1 -0
- package/resources/auth.js +6 -0
- package/resources/auth.js.map +1 -0
- package/resources/auth.mjs +3 -0
- package/resources/auth.mjs.map +1 -0
- package/resources/browsers/browsers.d.mts +2 -2
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +2 -2
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/computer.d.mts +199 -1
- package/resources/browsers/computer.d.mts.map +1 -1
- package/resources/browsers/computer.d.ts +199 -1
- package/resources/browsers/computer.d.ts.map +1 -1
- package/resources/browsers/computer.js +31 -0
- package/resources/browsers/computer.js.map +1 -1
- package/resources/browsers/computer.mjs +31 -0
- package/resources/browsers/computer.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/credential-providers.d.mts +66 -1
- package/resources/credential-providers.d.mts.map +1 -1
- package/resources/credential-providers.d.ts +66 -1
- package/resources/credential-providers.d.ts.map +1 -1
- package/resources/credential-providers.js +21 -6
- package/resources/credential-providers.js.map +1 -1
- package/resources/credential-providers.mjs +21 -6
- package/resources/credential-providers.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +24 -4
- package/src/resources/agents/auth/auth.ts +121 -46
- package/src/resources/agents/auth/invocations.ts +18 -47
- package/src/resources/auth/auth.ts +43 -0
- package/src/resources/auth/connections.ts +848 -0
- package/src/resources/auth/index.ts +18 -0
- package/src/resources/auth.ts +3 -0
- package/src/resources/browsers/browsers.ts +4 -0
- package/src/resources/browsers/computer.ts +257 -0
- package/src/resources/browsers/index.ts +2 -0
- package/src/resources/credential-providers.ts +88 -6
- package/src/resources/index.ts +3 -0
- 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
|
@@ -7,53 +7,38 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
|
7
7
|
export declare class Auth extends APIResource {
|
|
8
8
|
invocations: InvocationsAPI.Invocations;
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new auth agent for
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* **Deprecated: Use POST /auth/connections instead.** Creates a new auth agent for
|
|
11
|
+
* the specified domain and profile combination, or returns an existing one if it
|
|
12
|
+
* already exists. This is idempotent - calling with the same domain and profile
|
|
13
|
+
* will return the same agent. Does NOT start an invocation - use POST
|
|
14
|
+
* /agents/auth/invocations to start an auth flow.
|
|
14
15
|
*
|
|
15
|
-
* @
|
|
16
|
-
* ```ts
|
|
17
|
-
* const authAgent = await client.agents.auth.create({
|
|
18
|
-
* domain: 'netflix.com',
|
|
19
|
-
* profile_name: 'user-123',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
16
|
+
* @deprecated
|
|
22
17
|
*/
|
|
23
18
|
create(body: AuthCreateParams, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
24
19
|
/**
|
|
25
|
-
*
|
|
26
|
-
* the managed profile.
|
|
20
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Retrieve an auth agent
|
|
21
|
+
* by its ID. Returns the current authentication status of the managed profile.
|
|
27
22
|
*
|
|
28
|
-
* @
|
|
29
|
-
* ```ts
|
|
30
|
-
* const authAgent = await client.agents.auth.retrieve('id');
|
|
31
|
-
* ```
|
|
23
|
+
* @deprecated
|
|
32
24
|
*/
|
|
33
25
|
retrieve(id: string, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
34
26
|
/**
|
|
35
|
-
*
|
|
27
|
+
* **Deprecated: Use GET /auth/connections instead.** List auth agents with
|
|
28
|
+
* optional filters for profile_name and domain.
|
|
36
29
|
*
|
|
37
|
-
* @
|
|
38
|
-
* ```ts
|
|
39
|
-
* // Automatically fetches more pages as needed.
|
|
40
|
-
* for await (const authAgent of client.agents.auth.list()) {
|
|
41
|
-
* // ...
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
30
|
+
* @deprecated
|
|
44
31
|
*/
|
|
45
32
|
list(query?: AuthListParams | null | undefined, options?: RequestOptions): PagePromise<AuthAgentsOffsetPagination, AuthAgent>;
|
|
46
33
|
/**
|
|
47
|
-
*
|
|
34
|
+
* **Deprecated: Use DELETE /auth/connections/{id} instead.** Deletes an auth agent
|
|
35
|
+
* and terminates its workflow. This will:
|
|
48
36
|
*
|
|
49
37
|
* - Soft delete the auth agent record
|
|
50
38
|
* - Gracefully terminate the agent's Temporal workflow
|
|
51
39
|
* - Cancel any in-progress invocations
|
|
52
40
|
*
|
|
53
|
-
* @
|
|
54
|
-
* ```ts
|
|
55
|
-
* await client.agents.auth.delete('id');
|
|
56
|
-
* ```
|
|
41
|
+
* @deprecated
|
|
57
42
|
*/
|
|
58
43
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
59
44
|
}
|
|
@@ -83,13 +68,12 @@ export interface AgentAuthInvocationResponse {
|
|
|
83
68
|
*/
|
|
84
69
|
step: 'initialized' | 'discovering' | 'awaiting_input' | 'awaiting_external_action' | 'submitting' | 'completed' | 'expired';
|
|
85
70
|
/**
|
|
86
|
-
* The
|
|
71
|
+
* The session type:
|
|
87
72
|
*
|
|
88
|
-
* - login:
|
|
89
|
-
* - reauth:
|
|
90
|
-
* - auto_login: Legacy type (no longer created, kept for backward compatibility)
|
|
73
|
+
* - login: User-initiated authentication
|
|
74
|
+
* - reauth: System-triggered re-authentication (via health check)
|
|
91
75
|
*/
|
|
92
|
-
type: 'login' | '
|
|
76
|
+
type: 'login' | 'reauth';
|
|
93
77
|
/**
|
|
94
78
|
* Error message explaining why the invocation failed (present when status=FAILED)
|
|
95
79
|
*/
|
|
@@ -135,9 +119,9 @@ export declare namespace AgentAuthInvocationResponse {
|
|
|
135
119
|
*/
|
|
136
120
|
label: string;
|
|
137
121
|
/**
|
|
138
|
-
* The MFA delivery method type
|
|
122
|
+
* The MFA delivery method type (includes password for auth method selection pages)
|
|
139
123
|
*/
|
|
140
|
-
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | '
|
|
124
|
+
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
|
|
141
125
|
/**
|
|
142
126
|
* Additional instructions from the site
|
|
143
127
|
*/
|
|
@@ -199,6 +183,21 @@ export interface AuthAgent {
|
|
|
199
183
|
* Additional domains that are valid for this auth agent's authentication flow
|
|
200
184
|
* (besides the primary domain). Useful when login pages redirect to different
|
|
201
185
|
* domains.
|
|
186
|
+
*
|
|
187
|
+
* The following SSO/OAuth provider domains are automatically allowed by default
|
|
188
|
+
* and do not need to be specified:
|
|
189
|
+
*
|
|
190
|
+
* - Google: accounts.google.com
|
|
191
|
+
* - Microsoft/Azure AD: login.microsoftonline.com, login.live.com
|
|
192
|
+
* - Okta: _.okta.com, _.oktapreview.com
|
|
193
|
+
* - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com
|
|
194
|
+
* - Apple: appleid.apple.com
|
|
195
|
+
* - GitHub: github.com
|
|
196
|
+
* - Facebook/Meta: www.facebook.com
|
|
197
|
+
* - LinkedIn: www.linkedin.com
|
|
198
|
+
* - Amazon Cognito: \*.amazoncognito.com
|
|
199
|
+
* - OneLogin: \*.onelogin.com
|
|
200
|
+
* - Ping Identity: _.pingone.com, _.pingidentity.com
|
|
202
201
|
*/
|
|
203
202
|
allowed_domains?: Array<string>;
|
|
204
203
|
/**
|
|
@@ -207,13 +206,22 @@ export interface AuthAgent {
|
|
|
207
206
|
*/
|
|
208
207
|
can_reauth?: boolean;
|
|
209
208
|
/**
|
|
210
|
-
*
|
|
209
|
+
* Reason why automatic re-authentication is or is not possible
|
|
211
210
|
*/
|
|
212
|
-
|
|
211
|
+
can_reauth_reason?: string;
|
|
213
212
|
/**
|
|
214
|
-
*
|
|
213
|
+
* Reference to credentials for managed auth. Use one of:
|
|
214
|
+
*
|
|
215
|
+
* - { name } for Kernel credentials
|
|
216
|
+
* - { provider, path } for external provider item
|
|
217
|
+
* - { provider, auto: true } for external provider domain lookup
|
|
215
218
|
*/
|
|
216
|
-
|
|
219
|
+
credential?: AuthAgent.Credential;
|
|
220
|
+
/**
|
|
221
|
+
* ID of the linked Kernel credential for automatic re-authentication (deprecated,
|
|
222
|
+
* use credential)
|
|
223
|
+
*/
|
|
224
|
+
credential_id?: string;
|
|
217
225
|
/**
|
|
218
226
|
* Whether this auth agent has stored selectors for deterministic re-authentication
|
|
219
227
|
*/
|
|
@@ -228,6 +236,33 @@ export interface AuthAgent {
|
|
|
228
236
|
*/
|
|
229
237
|
post_login_url?: string;
|
|
230
238
|
}
|
|
239
|
+
export declare namespace AuthAgent {
|
|
240
|
+
/**
|
|
241
|
+
* Reference to credentials for managed auth. Use one of:
|
|
242
|
+
*
|
|
243
|
+
* - { name } for Kernel credentials
|
|
244
|
+
* - { provider, path } for external provider item
|
|
245
|
+
* - { provider, auto: true } for external provider domain lookup
|
|
246
|
+
*/
|
|
247
|
+
interface Credential {
|
|
248
|
+
/**
|
|
249
|
+
* If true, lookup by domain from the specified provider
|
|
250
|
+
*/
|
|
251
|
+
auto?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Kernel credential name
|
|
254
|
+
*/
|
|
255
|
+
name?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Provider-specific path (e.g., "VaultName/ItemName" for 1Password)
|
|
258
|
+
*/
|
|
259
|
+
path?: string;
|
|
260
|
+
/**
|
|
261
|
+
* External provider name (e.g., "my-1p")
|
|
262
|
+
*/
|
|
263
|
+
provider?: string;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
231
266
|
/**
|
|
232
267
|
* Request to create or find an auth agent
|
|
233
268
|
*/
|
|
@@ -244,6 +279,21 @@ export interface AuthAgentCreateRequest {
|
|
|
244
279
|
* Additional domains that are valid for this auth agent's authentication flow
|
|
245
280
|
* (besides the primary domain). Useful when login pages redirect to different
|
|
246
281
|
* domains.
|
|
282
|
+
*
|
|
283
|
+
* The following SSO/OAuth provider domains are automatically allowed by default
|
|
284
|
+
* and do not need to be specified:
|
|
285
|
+
*
|
|
286
|
+
* - Google: accounts.google.com
|
|
287
|
+
* - Microsoft/Azure AD: login.microsoftonline.com, login.live.com
|
|
288
|
+
* - Okta: _.okta.com, _.oktapreview.com
|
|
289
|
+
* - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com
|
|
290
|
+
* - Apple: appleid.apple.com
|
|
291
|
+
* - GitHub: github.com
|
|
292
|
+
* - Facebook/Meta: www.facebook.com
|
|
293
|
+
* - LinkedIn: www.linkedin.com
|
|
294
|
+
* - Amazon Cognito: \*.amazoncognito.com
|
|
295
|
+
* - OneLogin: \*.onelogin.com
|
|
296
|
+
* - Ping Identity: _.pingone.com, _.pingidentity.com
|
|
247
297
|
*/
|
|
248
298
|
allowed_domains?: Array<string>;
|
|
249
299
|
/**
|
|
@@ -309,13 +359,12 @@ export interface AuthAgentInvocationCreateResponse {
|
|
|
309
359
|
*/
|
|
310
360
|
invocation_id: string;
|
|
311
361
|
/**
|
|
312
|
-
* The
|
|
362
|
+
* The session type:
|
|
313
363
|
*
|
|
314
|
-
* - login:
|
|
315
|
-
* - reauth:
|
|
316
|
-
* - auto_login: Legacy type (no longer created, kept for backward compatibility)
|
|
364
|
+
* - login: User-initiated authentication
|
|
365
|
+
* - reauth: System-triggered re-authentication (via health check)
|
|
317
366
|
*/
|
|
318
|
-
type: 'login' | '
|
|
367
|
+
type: 'login' | 'reauth';
|
|
319
368
|
}
|
|
320
369
|
/**
|
|
321
370
|
* A discovered form field
|
|
@@ -337,6 +386,11 @@ export interface DiscoveredField {
|
|
|
337
386
|
* Field type
|
|
338
387
|
*/
|
|
339
388
|
type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code' | 'totp';
|
|
389
|
+
/**
|
|
390
|
+
* If this field is associated with an MFA option, the type of that option (e.g.,
|
|
391
|
+
* password field linked to "Enter password" option)
|
|
392
|
+
*/
|
|
393
|
+
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | null;
|
|
340
394
|
/**
|
|
341
395
|
* Field placeholder
|
|
342
396
|
*/
|
|
@@ -359,6 +413,21 @@ export interface AuthCreateParams {
|
|
|
359
413
|
* Additional domains that are valid for this auth agent's authentication flow
|
|
360
414
|
* (besides the primary domain). Useful when login pages redirect to different
|
|
361
415
|
* domains.
|
|
416
|
+
*
|
|
417
|
+
* The following SSO/OAuth provider domains are automatically allowed by default
|
|
418
|
+
* and do not need to be specified:
|
|
419
|
+
*
|
|
420
|
+
* - Google: accounts.google.com
|
|
421
|
+
* - Microsoft/Azure AD: login.microsoftonline.com, login.live.com
|
|
422
|
+
* - Okta: _.okta.com, _.oktapreview.com
|
|
423
|
+
* - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com
|
|
424
|
+
* - Apple: appleid.apple.com
|
|
425
|
+
* - GitHub: github.com
|
|
426
|
+
* - Facebook/Meta: www.facebook.com
|
|
427
|
+
* - LinkedIn: www.linkedin.com
|
|
428
|
+
* - Amazon Cognito: \*.amazoncognito.com
|
|
429
|
+
* - OneLogin: \*.onelogin.com
|
|
430
|
+
* - Ping Identity: _.pingone.com, _.pingidentity.com
|
|
362
431
|
*/
|
|
363
432
|
allowed_domains?: Array<string>;
|
|
364
433
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF
|
|
1
|
+
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI/E;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIrE;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAA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M,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -7,53 +7,38 @@ import { RequestOptions } from "../../../internal/request-options.js";
|
|
|
7
7
|
export declare class Auth extends APIResource {
|
|
8
8
|
invocations: InvocationsAPI.Invocations;
|
|
9
9
|
/**
|
|
10
|
-
* Creates a new auth agent for
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* **Deprecated: Use POST /auth/connections instead.** Creates a new auth agent for
|
|
11
|
+
* the specified domain and profile combination, or returns an existing one if it
|
|
12
|
+
* already exists. This is idempotent - calling with the same domain and profile
|
|
13
|
+
* will return the same agent. Does NOT start an invocation - use POST
|
|
14
|
+
* /agents/auth/invocations to start an auth flow.
|
|
14
15
|
*
|
|
15
|
-
* @
|
|
16
|
-
* ```ts
|
|
17
|
-
* const authAgent = await client.agents.auth.create({
|
|
18
|
-
* domain: 'netflix.com',
|
|
19
|
-
* profile_name: 'user-123',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
16
|
+
* @deprecated
|
|
22
17
|
*/
|
|
23
18
|
create(body: AuthCreateParams, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
24
19
|
/**
|
|
25
|
-
*
|
|
26
|
-
* the managed profile.
|
|
20
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Retrieve an auth agent
|
|
21
|
+
* by its ID. Returns the current authentication status of the managed profile.
|
|
27
22
|
*
|
|
28
|
-
* @
|
|
29
|
-
* ```ts
|
|
30
|
-
* const authAgent = await client.agents.auth.retrieve('id');
|
|
31
|
-
* ```
|
|
23
|
+
* @deprecated
|
|
32
24
|
*/
|
|
33
25
|
retrieve(id: string, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
34
26
|
/**
|
|
35
|
-
*
|
|
27
|
+
* **Deprecated: Use GET /auth/connections instead.** List auth agents with
|
|
28
|
+
* optional filters for profile_name and domain.
|
|
36
29
|
*
|
|
37
|
-
* @
|
|
38
|
-
* ```ts
|
|
39
|
-
* // Automatically fetches more pages as needed.
|
|
40
|
-
* for await (const authAgent of client.agents.auth.list()) {
|
|
41
|
-
* // ...
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
30
|
+
* @deprecated
|
|
44
31
|
*/
|
|
45
32
|
list(query?: AuthListParams | null | undefined, options?: RequestOptions): PagePromise<AuthAgentsOffsetPagination, AuthAgent>;
|
|
46
33
|
/**
|
|
47
|
-
*
|
|
34
|
+
* **Deprecated: Use DELETE /auth/connections/{id} instead.** Deletes an auth agent
|
|
35
|
+
* and terminates its workflow. This will:
|
|
48
36
|
*
|
|
49
37
|
* - Soft delete the auth agent record
|
|
50
38
|
* - Gracefully terminate the agent's Temporal workflow
|
|
51
39
|
* - Cancel any in-progress invocations
|
|
52
40
|
*
|
|
53
|
-
* @
|
|
54
|
-
* ```ts
|
|
55
|
-
* await client.agents.auth.delete('id');
|
|
56
|
-
* ```
|
|
41
|
+
* @deprecated
|
|
57
42
|
*/
|
|
58
43
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
59
44
|
}
|
|
@@ -83,13 +68,12 @@ export interface AgentAuthInvocationResponse {
|
|
|
83
68
|
*/
|
|
84
69
|
step: 'initialized' | 'discovering' | 'awaiting_input' | 'awaiting_external_action' | 'submitting' | 'completed' | 'expired';
|
|
85
70
|
/**
|
|
86
|
-
* The
|
|
71
|
+
* The session type:
|
|
87
72
|
*
|
|
88
|
-
* - login:
|
|
89
|
-
* - reauth:
|
|
90
|
-
* - auto_login: Legacy type (no longer created, kept for backward compatibility)
|
|
73
|
+
* - login: User-initiated authentication
|
|
74
|
+
* - reauth: System-triggered re-authentication (via health check)
|
|
91
75
|
*/
|
|
92
|
-
type: 'login' | '
|
|
76
|
+
type: 'login' | 'reauth';
|
|
93
77
|
/**
|
|
94
78
|
* Error message explaining why the invocation failed (present when status=FAILED)
|
|
95
79
|
*/
|
|
@@ -135,9 +119,9 @@ export declare namespace AgentAuthInvocationResponse {
|
|
|
135
119
|
*/
|
|
136
120
|
label: string;
|
|
137
121
|
/**
|
|
138
|
-
* The MFA delivery method type
|
|
122
|
+
* The MFA delivery method type (includes password for auth method selection pages)
|
|
139
123
|
*/
|
|
140
|
-
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | '
|
|
124
|
+
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
|
|
141
125
|
/**
|
|
142
126
|
* Additional instructions from the site
|
|
143
127
|
*/
|
|
@@ -199,6 +183,21 @@ export interface AuthAgent {
|
|
|
199
183
|
* Additional domains that are valid for this auth agent's authentication flow
|
|
200
184
|
* (besides the primary domain). Useful when login pages redirect to different
|
|
201
185
|
* domains.
|
|
186
|
+
*
|
|
187
|
+
* The following SSO/OAuth provider domains are automatically allowed by default
|
|
188
|
+
* and do not need to be specified:
|
|
189
|
+
*
|
|
190
|
+
* - Google: accounts.google.com
|
|
191
|
+
* - Microsoft/Azure AD: login.microsoftonline.com, login.live.com
|
|
192
|
+
* - Okta: _.okta.com, _.oktapreview.com
|
|
193
|
+
* - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com
|
|
194
|
+
* - Apple: appleid.apple.com
|
|
195
|
+
* - GitHub: github.com
|
|
196
|
+
* - Facebook/Meta: www.facebook.com
|
|
197
|
+
* - LinkedIn: www.linkedin.com
|
|
198
|
+
* - Amazon Cognito: \*.amazoncognito.com
|
|
199
|
+
* - OneLogin: \*.onelogin.com
|
|
200
|
+
* - Ping Identity: _.pingone.com, _.pingidentity.com
|
|
202
201
|
*/
|
|
203
202
|
allowed_domains?: Array<string>;
|
|
204
203
|
/**
|
|
@@ -207,13 +206,22 @@ export interface AuthAgent {
|
|
|
207
206
|
*/
|
|
208
207
|
can_reauth?: boolean;
|
|
209
208
|
/**
|
|
210
|
-
*
|
|
209
|
+
* Reason why automatic re-authentication is or is not possible
|
|
211
210
|
*/
|
|
212
|
-
|
|
211
|
+
can_reauth_reason?: string;
|
|
213
212
|
/**
|
|
214
|
-
*
|
|
213
|
+
* Reference to credentials for managed auth. Use one of:
|
|
214
|
+
*
|
|
215
|
+
* - { name } for Kernel credentials
|
|
216
|
+
* - { provider, path } for external provider item
|
|
217
|
+
* - { provider, auto: true } for external provider domain lookup
|
|
215
218
|
*/
|
|
216
|
-
|
|
219
|
+
credential?: AuthAgent.Credential;
|
|
220
|
+
/**
|
|
221
|
+
* ID of the linked Kernel credential for automatic re-authentication (deprecated,
|
|
222
|
+
* use credential)
|
|
223
|
+
*/
|
|
224
|
+
credential_id?: string;
|
|
217
225
|
/**
|
|
218
226
|
* Whether this auth agent has stored selectors for deterministic re-authentication
|
|
219
227
|
*/
|
|
@@ -228,6 +236,33 @@ export interface AuthAgent {
|
|
|
228
236
|
*/
|
|
229
237
|
post_login_url?: string;
|
|
230
238
|
}
|
|
239
|
+
export declare namespace AuthAgent {
|
|
240
|
+
/**
|
|
241
|
+
* Reference to credentials for managed auth. Use one of:
|
|
242
|
+
*
|
|
243
|
+
* - { name } for Kernel credentials
|
|
244
|
+
* - { provider, path } for external provider item
|
|
245
|
+
* - { provider, auto: true } for external provider domain lookup
|
|
246
|
+
*/
|
|
247
|
+
interface Credential {
|
|
248
|
+
/**
|
|
249
|
+
* If true, lookup by domain from the specified provider
|
|
250
|
+
*/
|
|
251
|
+
auto?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Kernel credential name
|
|
254
|
+
*/
|
|
255
|
+
name?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Provider-specific path (e.g., "VaultName/ItemName" for 1Password)
|
|
258
|
+
*/
|
|
259
|
+
path?: string;
|
|
260
|
+
/**
|
|
261
|
+
* External provider name (e.g., "my-1p")
|
|
262
|
+
*/
|
|
263
|
+
provider?: string;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
231
266
|
/**
|
|
232
267
|
* Request to create or find an auth agent
|
|
233
268
|
*/
|
|
@@ -244,6 +279,21 @@ export interface AuthAgentCreateRequest {
|
|
|
244
279
|
* Additional domains that are valid for this auth agent's authentication flow
|
|
245
280
|
* (besides the primary domain). Useful when login pages redirect to different
|
|
246
281
|
* domains.
|
|
282
|
+
*
|
|
283
|
+
* The following SSO/OAuth provider domains are automatically allowed by default
|
|
284
|
+
* and do not need to be specified:
|
|
285
|
+
*
|
|
286
|
+
* - Google: accounts.google.com
|
|
287
|
+
* - Microsoft/Azure AD: login.microsoftonline.com, login.live.com
|
|
288
|
+
* - Okta: _.okta.com, _.oktapreview.com
|
|
289
|
+
* - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com
|
|
290
|
+
* - Apple: appleid.apple.com
|
|
291
|
+
* - GitHub: github.com
|
|
292
|
+
* - Facebook/Meta: www.facebook.com
|
|
293
|
+
* - LinkedIn: www.linkedin.com
|
|
294
|
+
* - Amazon Cognito: \*.amazoncognito.com
|
|
295
|
+
* - OneLogin: \*.onelogin.com
|
|
296
|
+
* - Ping Identity: _.pingone.com, _.pingidentity.com
|
|
247
297
|
*/
|
|
248
298
|
allowed_domains?: Array<string>;
|
|
249
299
|
/**
|
|
@@ -309,13 +359,12 @@ export interface AuthAgentInvocationCreateResponse {
|
|
|
309
359
|
*/
|
|
310
360
|
invocation_id: string;
|
|
311
361
|
/**
|
|
312
|
-
* The
|
|
362
|
+
* The session type:
|
|
313
363
|
*
|
|
314
|
-
* - login:
|
|
315
|
-
* - reauth:
|
|
316
|
-
* - auto_login: Legacy type (no longer created, kept for backward compatibility)
|
|
364
|
+
* - login: User-initiated authentication
|
|
365
|
+
* - reauth: System-triggered re-authentication (via health check)
|
|
317
366
|
*/
|
|
318
|
-
type: 'login' | '
|
|
367
|
+
type: 'login' | 'reauth';
|
|
319
368
|
}
|
|
320
369
|
/**
|
|
321
370
|
* A discovered form field
|
|
@@ -337,6 +386,11 @@ export interface DiscoveredField {
|
|
|
337
386
|
* Field type
|
|
338
387
|
*/
|
|
339
388
|
type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code' | 'totp';
|
|
389
|
+
/**
|
|
390
|
+
* If this field is associated with an MFA option, the type of that option (e.g.,
|
|
391
|
+
* password field linked to "Enter password" option)
|
|
392
|
+
*/
|
|
393
|
+
linked_mfa_type?: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password' | null;
|
|
340
394
|
/**
|
|
341
395
|
* Field placeholder
|
|
342
396
|
*/
|
|
@@ -359,6 +413,21 @@ export interface AuthCreateParams {
|
|
|
359
413
|
* Additional domains that are valid for this auth agent's authentication flow
|
|
360
414
|
* (besides the primary domain). Useful when login pages redirect to different
|
|
361
415
|
* domains.
|
|
416
|
+
*
|
|
417
|
+
* The following SSO/OAuth provider domains are automatically allowed by default
|
|
418
|
+
* and do not need to be specified:
|
|
419
|
+
*
|
|
420
|
+
* - Google: accounts.google.com
|
|
421
|
+
* - Microsoft/Azure AD: login.microsoftonline.com, login.live.com
|
|
422
|
+
* - Okta: _.okta.com, _.oktapreview.com
|
|
423
|
+
* - Auth0: _.auth0.com, _.us.auth0.com, _.eu.auth0.com, _.au.auth0.com
|
|
424
|
+
* - Apple: appleid.apple.com
|
|
425
|
+
* - GitHub: github.com
|
|
426
|
+
* - Facebook/Meta: www.facebook.com
|
|
427
|
+
* - LinkedIn: www.linkedin.com
|
|
428
|
+
* - Amazon Cognito: \*.amazoncognito.com
|
|
429
|
+
* - OneLogin: \*.onelogin.com
|
|
430
|
+
* - Ping Identity: _.pingone.com, _.pingidentity.com
|
|
362
431
|
*/
|
|
363
432
|
allowed_domains?: Array<string>;
|
|
364
433
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,WAAW,EACZ;OACM,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;IAEvF;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAI/E;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CA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AAsB;IAC5D;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -15,59 +15,44 @@ class Auth extends resource_1.APIResource {
|
|
|
15
15
|
this.invocations = new InvocationsAPI.Invocations(this._client);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Creates a new auth agent for
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
18
|
+
* **Deprecated: Use POST /auth/connections instead.** Creates a new auth agent for
|
|
19
|
+
* the specified domain and profile combination, or returns an existing one if it
|
|
20
|
+
* already exists. This is idempotent - calling with the same domain and profile
|
|
21
|
+
* will return the same agent. Does NOT start an invocation - use POST
|
|
22
|
+
* /agents/auth/invocations to start an auth flow.
|
|
22
23
|
*
|
|
23
|
-
* @
|
|
24
|
-
* ```ts
|
|
25
|
-
* const authAgent = await client.agents.auth.create({
|
|
26
|
-
* domain: 'netflix.com',
|
|
27
|
-
* profile_name: 'user-123',
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
24
|
+
* @deprecated
|
|
30
25
|
*/
|
|
31
26
|
create(body, options) {
|
|
32
27
|
return this._client.post('/agents/auth', { body, ...options });
|
|
33
28
|
}
|
|
34
29
|
/**
|
|
35
|
-
*
|
|
36
|
-
* the managed profile.
|
|
30
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Retrieve an auth agent
|
|
31
|
+
* by its ID. Returns the current authentication status of the managed profile.
|
|
37
32
|
*
|
|
38
|
-
* @
|
|
39
|
-
* ```ts
|
|
40
|
-
* const authAgent = await client.agents.auth.retrieve('id');
|
|
41
|
-
* ```
|
|
33
|
+
* @deprecated
|
|
42
34
|
*/
|
|
43
35
|
retrieve(id, options) {
|
|
44
36
|
return this._client.get((0, path_1.path) `/agents/auth/${id}`, options);
|
|
45
37
|
}
|
|
46
38
|
/**
|
|
47
|
-
*
|
|
39
|
+
* **Deprecated: Use GET /auth/connections instead.** List auth agents with
|
|
40
|
+
* optional filters for profile_name and domain.
|
|
48
41
|
*
|
|
49
|
-
* @
|
|
50
|
-
* ```ts
|
|
51
|
-
* // Automatically fetches more pages as needed.
|
|
52
|
-
* for await (const authAgent of client.agents.auth.list()) {
|
|
53
|
-
* // ...
|
|
54
|
-
* }
|
|
55
|
-
* ```
|
|
42
|
+
* @deprecated
|
|
56
43
|
*/
|
|
57
44
|
list(query = {}, options) {
|
|
58
45
|
return this._client.getAPIList('/agents/auth', (pagination_1.OffsetPagination), { query, ...options });
|
|
59
46
|
}
|
|
60
47
|
/**
|
|
61
|
-
*
|
|
48
|
+
* **Deprecated: Use DELETE /auth/connections/{id} instead.** Deletes an auth agent
|
|
49
|
+
* and terminates its workflow. This will:
|
|
62
50
|
*
|
|
63
51
|
* - Soft delete the auth agent record
|
|
64
52
|
* - Gracefully terminate the agent's Temporal workflow
|
|
65
53
|
* - Cancel any in-progress invocations
|
|
66
54
|
*
|
|
67
|
-
* @
|
|
68
|
-
* ```ts
|
|
69
|
-
* await client.agents.auth.delete('id');
|
|
70
|
-
* ```
|
|
55
|
+
* @deprecated
|
|
71
56
|
*/
|
|
72
57
|
delete(id, options) {
|
|
73
58
|
return this._client.delete((0, path_1.path) `/agents/auth/${id}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAMuB;AAEvB,4DAAsG;AACtG,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAMuB;AAEvB,4DAAsG;AACtG,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsDzF,CAAC;IApDC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAw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