@onkernel/sdk 0.32.0 → 0.33.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 +16 -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 +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.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 +164 -59
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +164 -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/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/src/client.ts +0 -5
- package/src/resources/auth/auth.ts +0 -2
- package/src/resources/auth/connections.ts +185 -60
- package/src/resources/auth/index.ts +0 -1
- package/src/resources/credentials.ts +5 -0
- package/src/resources/index.ts +0 -1
- 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
|
@@ -1,474 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as InvocationsAPI from "./invocations.mjs";
|
|
3
|
-
import { InvocationCreateParams, InvocationExchangeParams, InvocationExchangeResponse, InvocationSubmitParams, Invocations } from "./invocations.mjs";
|
|
4
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
-
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../../core/pagination.mjs";
|
|
6
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
-
export declare class Auth extends APIResource {
|
|
8
|
-
invocations: InvocationsAPI.Invocations;
|
|
9
|
-
/**
|
|
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.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
create(body: AuthCreateParams, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
19
|
-
/**
|
|
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.
|
|
22
|
-
*
|
|
23
|
-
* @deprecated
|
|
24
|
-
*/
|
|
25
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
26
|
-
/**
|
|
27
|
-
* **Deprecated: Use GET /auth/connections instead.** List auth agents with
|
|
28
|
-
* optional filters for profile_name and domain.
|
|
29
|
-
*
|
|
30
|
-
* @deprecated
|
|
31
|
-
*/
|
|
32
|
-
list(query?: AuthListParams | null | undefined, options?: RequestOptions): PagePromise<AuthAgentsOffsetPagination, AuthAgent>;
|
|
33
|
-
/**
|
|
34
|
-
* **Deprecated: Use DELETE /auth/connections/{id} instead.** Deletes an auth agent
|
|
35
|
-
* and terminates its workflow. This will:
|
|
36
|
-
*
|
|
37
|
-
* - Soft delete the auth agent record
|
|
38
|
-
* - Gracefully terminate the agent's Temporal workflow
|
|
39
|
-
* - Cancel any in-progress invocations
|
|
40
|
-
*
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
44
|
-
}
|
|
45
|
-
export type AuthAgentsOffsetPagination = OffsetPagination<AuthAgent>;
|
|
46
|
-
/**
|
|
47
|
-
* Response from get invocation endpoint
|
|
48
|
-
*/
|
|
49
|
-
export interface AgentAuthInvocationResponse {
|
|
50
|
-
/**
|
|
51
|
-
* App name (org name at time of invocation creation)
|
|
52
|
-
*/
|
|
53
|
-
app_name: string;
|
|
54
|
-
/**
|
|
55
|
-
* Domain for authentication
|
|
56
|
-
*/
|
|
57
|
-
domain: string;
|
|
58
|
-
/**
|
|
59
|
-
* When the handoff code expires
|
|
60
|
-
*/
|
|
61
|
-
expires_at: string;
|
|
62
|
-
/**
|
|
63
|
-
* Invocation status
|
|
64
|
-
*/
|
|
65
|
-
status: 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED' | 'FAILED';
|
|
66
|
-
/**
|
|
67
|
-
* Current step in the invocation workflow
|
|
68
|
-
*/
|
|
69
|
-
step: 'initialized' | 'discovering' | 'awaiting_input' | 'awaiting_external_action' | 'submitting' | 'completed' | 'expired';
|
|
70
|
-
/**
|
|
71
|
-
* The session type:
|
|
72
|
-
*
|
|
73
|
-
* - login: User-initiated authentication
|
|
74
|
-
* - reauth: System-triggered re-authentication (via health check)
|
|
75
|
-
*/
|
|
76
|
-
type: 'login' | 'reauth';
|
|
77
|
-
/**
|
|
78
|
-
* Error message explaining why the invocation failed (present when status=FAILED)
|
|
79
|
-
*/
|
|
80
|
-
error_message?: string | null;
|
|
81
|
-
/**
|
|
82
|
-
* Instructions for user when external action is required (present when
|
|
83
|
-
* step=awaiting_external_action)
|
|
84
|
-
*/
|
|
85
|
-
external_action_message?: string | null;
|
|
86
|
-
/**
|
|
87
|
-
* Browser live view URL for debugging the invocation
|
|
88
|
-
*/
|
|
89
|
-
live_view_url?: string | null;
|
|
90
|
-
/**
|
|
91
|
-
* MFA method options to choose from (present when step=awaiting_input and MFA
|
|
92
|
-
* selection is required)
|
|
93
|
-
*/
|
|
94
|
-
mfa_options?: Array<AgentAuthInvocationResponse.MfaOption> | null;
|
|
95
|
-
/**
|
|
96
|
-
* Fields currently awaiting input (present when step=awaiting_input)
|
|
97
|
-
*/
|
|
98
|
-
pending_fields?: Array<DiscoveredField> | null;
|
|
99
|
-
/**
|
|
100
|
-
* SSO buttons available on the page (present when step=awaiting_input)
|
|
101
|
-
*/
|
|
102
|
-
pending_sso_buttons?: Array<AgentAuthInvocationResponse.PendingSSOButton> | null;
|
|
103
|
-
/**
|
|
104
|
-
* SSO provider being used for authentication (e.g., google, github, microsoft)
|
|
105
|
-
*/
|
|
106
|
-
sso_provider?: string | null;
|
|
107
|
-
/**
|
|
108
|
-
* Names of fields that have been submitted (present when step=submitting or later)
|
|
109
|
-
*/
|
|
110
|
-
submitted_fields?: Array<string> | null;
|
|
111
|
-
}
|
|
112
|
-
export declare namespace AgentAuthInvocationResponse {
|
|
113
|
-
/**
|
|
114
|
-
* An MFA method option for verification
|
|
115
|
-
*/
|
|
116
|
-
interface MfaOption {
|
|
117
|
-
/**
|
|
118
|
-
* The visible option text
|
|
119
|
-
*/
|
|
120
|
-
label: string;
|
|
121
|
-
/**
|
|
122
|
-
* The MFA delivery method type (includes password for auth method selection pages)
|
|
123
|
-
*/
|
|
124
|
-
type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
|
|
125
|
-
/**
|
|
126
|
-
* Additional instructions from the site
|
|
127
|
-
*/
|
|
128
|
-
description?: string | null;
|
|
129
|
-
/**
|
|
130
|
-
* The masked destination (phone/email) if shown
|
|
131
|
-
*/
|
|
132
|
-
target?: string | null;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* An SSO button for signing in with an external identity provider
|
|
136
|
-
*/
|
|
137
|
-
interface PendingSSOButton {
|
|
138
|
-
/**
|
|
139
|
-
* Visible button text
|
|
140
|
-
*/
|
|
141
|
-
label: string;
|
|
142
|
-
/**
|
|
143
|
-
* Identity provider name
|
|
144
|
-
*/
|
|
145
|
-
provider: string;
|
|
146
|
-
/**
|
|
147
|
-
* XPath selector for the button
|
|
148
|
-
*/
|
|
149
|
-
selector: string;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Response from submit endpoint - returns immediately after submission is accepted
|
|
154
|
-
*/
|
|
155
|
-
export interface AgentAuthSubmitResponse {
|
|
156
|
-
/**
|
|
157
|
-
* Whether the submission was accepted for processing
|
|
158
|
-
*/
|
|
159
|
-
accepted: boolean;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* An auth agent that manages authentication for a specific domain and profile
|
|
163
|
-
* combination
|
|
164
|
-
*/
|
|
165
|
-
export interface AuthAgent {
|
|
166
|
-
/**
|
|
167
|
-
* Unique identifier for the auth agent
|
|
168
|
-
*/
|
|
169
|
-
id: string;
|
|
170
|
-
/**
|
|
171
|
-
* Target domain for authentication
|
|
172
|
-
*/
|
|
173
|
-
domain: string;
|
|
174
|
-
/**
|
|
175
|
-
* Name of the profile associated with this auth agent
|
|
176
|
-
*/
|
|
177
|
-
profile_name: string;
|
|
178
|
-
/**
|
|
179
|
-
* Current authentication status of the managed profile
|
|
180
|
-
*/
|
|
181
|
-
status: 'AUTHENTICATED' | 'NEEDS_AUTH';
|
|
182
|
-
/**
|
|
183
|
-
* Additional domains that are valid for this auth agent's authentication flow
|
|
184
|
-
* (besides the primary domain). Useful when login pages redirect to different
|
|
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
|
|
201
|
-
*/
|
|
202
|
-
allowed_domains?: Array<string>;
|
|
203
|
-
/**
|
|
204
|
-
* Whether automatic re-authentication is possible (has credential_id, selectors,
|
|
205
|
-
* and login_url)
|
|
206
|
-
*/
|
|
207
|
-
can_reauth?: boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Reason why automatic re-authentication is or is not possible
|
|
210
|
-
*/
|
|
211
|
-
can_reauth_reason?: string;
|
|
212
|
-
/**
|
|
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
|
|
218
|
-
*/
|
|
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;
|
|
225
|
-
/**
|
|
226
|
-
* Whether this auth agent has stored selectors for deterministic re-authentication
|
|
227
|
-
*/
|
|
228
|
-
has_selectors?: boolean;
|
|
229
|
-
/**
|
|
230
|
-
* When the last authentication check was performed
|
|
231
|
-
*/
|
|
232
|
-
last_auth_check_at?: string;
|
|
233
|
-
/**
|
|
234
|
-
* URL where the browser landed after successful login. Query parameters and
|
|
235
|
-
* fragments are stripped for privacy.
|
|
236
|
-
*/
|
|
237
|
-
post_login_url?: string;
|
|
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
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Request to create or find an auth agent
|
|
268
|
-
*/
|
|
269
|
-
export interface AuthAgentCreateRequest {
|
|
270
|
-
/**
|
|
271
|
-
* Domain for authentication
|
|
272
|
-
*/
|
|
273
|
-
domain: string;
|
|
274
|
-
/**
|
|
275
|
-
* Name of the profile to use for this auth agent
|
|
276
|
-
*/
|
|
277
|
-
profile_name: string;
|
|
278
|
-
/**
|
|
279
|
-
* Additional domains that are valid for this auth agent's authentication flow
|
|
280
|
-
* (besides the primary domain). Useful when login pages redirect to different
|
|
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
|
|
297
|
-
*/
|
|
298
|
-
allowed_domains?: Array<string>;
|
|
299
|
-
/**
|
|
300
|
-
* Optional name of an existing credential to use for this auth agent. If provided,
|
|
301
|
-
* the credential will be linked to the agent and its values will be used to
|
|
302
|
-
* auto-fill the login form on invocation.
|
|
303
|
-
*/
|
|
304
|
-
credential_name?: string;
|
|
305
|
-
/**
|
|
306
|
-
* Optional login page URL. If provided, will be stored on the agent and used to
|
|
307
|
-
* skip discovery in future invocations.
|
|
308
|
-
*/
|
|
309
|
-
login_url?: string;
|
|
310
|
-
/**
|
|
311
|
-
* Optional proxy configuration
|
|
312
|
-
*/
|
|
313
|
-
proxy?: AuthAgentCreateRequest.Proxy;
|
|
314
|
-
}
|
|
315
|
-
export declare namespace AuthAgentCreateRequest {
|
|
316
|
-
/**
|
|
317
|
-
* Optional proxy configuration
|
|
318
|
-
*/
|
|
319
|
-
interface Proxy {
|
|
320
|
-
/**
|
|
321
|
-
* ID of the proxy to use
|
|
322
|
-
*/
|
|
323
|
-
proxy_id?: string;
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Request to create an invocation for an existing auth agent
|
|
328
|
-
*/
|
|
329
|
-
export interface AuthAgentInvocationCreateRequest {
|
|
330
|
-
/**
|
|
331
|
-
* ID of the auth agent to create an invocation for
|
|
332
|
-
*/
|
|
333
|
-
auth_agent_id: string;
|
|
334
|
-
/**
|
|
335
|
-
* If provided, saves the submitted credentials under this name upon successful
|
|
336
|
-
* login. The credential will be linked to the auth agent for automatic
|
|
337
|
-
* re-authentication.
|
|
338
|
-
*/
|
|
339
|
-
save_credential_as?: string;
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
* Response from creating an invocation. Always returns an invocation_id.
|
|
343
|
-
*/
|
|
344
|
-
export interface AuthAgentInvocationCreateResponse {
|
|
345
|
-
/**
|
|
346
|
-
* When the handoff code expires.
|
|
347
|
-
*/
|
|
348
|
-
expires_at: string;
|
|
349
|
-
/**
|
|
350
|
-
* One-time code for handoff.
|
|
351
|
-
*/
|
|
352
|
-
handoff_code: string;
|
|
353
|
-
/**
|
|
354
|
-
* URL to redirect user to.
|
|
355
|
-
*/
|
|
356
|
-
hosted_url: string;
|
|
357
|
-
/**
|
|
358
|
-
* Unique identifier for the invocation.
|
|
359
|
-
*/
|
|
360
|
-
invocation_id: string;
|
|
361
|
-
/**
|
|
362
|
-
* The session type:
|
|
363
|
-
*
|
|
364
|
-
* - login: User-initiated authentication
|
|
365
|
-
* - reauth: System-triggered re-authentication (via health check)
|
|
366
|
-
*/
|
|
367
|
-
type: 'login' | 'reauth';
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* A discovered form field
|
|
371
|
-
*/
|
|
372
|
-
export interface DiscoveredField {
|
|
373
|
-
/**
|
|
374
|
-
* Field label
|
|
375
|
-
*/
|
|
376
|
-
label: string;
|
|
377
|
-
/**
|
|
378
|
-
* Field name
|
|
379
|
-
*/
|
|
380
|
-
name: string;
|
|
381
|
-
/**
|
|
382
|
-
* CSS selector for the field
|
|
383
|
-
*/
|
|
384
|
-
selector: string;
|
|
385
|
-
/**
|
|
386
|
-
* Field type
|
|
387
|
-
*/
|
|
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;
|
|
394
|
-
/**
|
|
395
|
-
* Field placeholder
|
|
396
|
-
*/
|
|
397
|
-
placeholder?: string;
|
|
398
|
-
/**
|
|
399
|
-
* Whether field is required
|
|
400
|
-
*/
|
|
401
|
-
required?: boolean;
|
|
402
|
-
}
|
|
403
|
-
export interface AuthCreateParams {
|
|
404
|
-
/**
|
|
405
|
-
* Domain for authentication
|
|
406
|
-
*/
|
|
407
|
-
domain: string;
|
|
408
|
-
/**
|
|
409
|
-
* Name of the profile to use for this auth agent
|
|
410
|
-
*/
|
|
411
|
-
profile_name: string;
|
|
412
|
-
/**
|
|
413
|
-
* Additional domains that are valid for this auth agent's authentication flow
|
|
414
|
-
* (besides the primary domain). Useful when login pages redirect to different
|
|
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
|
|
431
|
-
*/
|
|
432
|
-
allowed_domains?: Array<string>;
|
|
433
|
-
/**
|
|
434
|
-
* Optional name of an existing credential to use for this auth agent. If provided,
|
|
435
|
-
* the credential will be linked to the agent and its values will be used to
|
|
436
|
-
* auto-fill the login form on invocation.
|
|
437
|
-
*/
|
|
438
|
-
credential_name?: string;
|
|
439
|
-
/**
|
|
440
|
-
* Optional login page URL. If provided, will be stored on the agent and used to
|
|
441
|
-
* skip discovery in future invocations.
|
|
442
|
-
*/
|
|
443
|
-
login_url?: string;
|
|
444
|
-
/**
|
|
445
|
-
* Optional proxy configuration
|
|
446
|
-
*/
|
|
447
|
-
proxy?: AuthCreateParams.Proxy;
|
|
448
|
-
}
|
|
449
|
-
export declare namespace AuthCreateParams {
|
|
450
|
-
/**
|
|
451
|
-
* Optional proxy configuration
|
|
452
|
-
*/
|
|
453
|
-
interface Proxy {
|
|
454
|
-
/**
|
|
455
|
-
* ID of the proxy to use
|
|
456
|
-
*/
|
|
457
|
-
proxy_id?: string;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
export interface AuthListParams extends OffsetPaginationParams {
|
|
461
|
-
/**
|
|
462
|
-
* Filter by domain
|
|
463
|
-
*/
|
|
464
|
-
domain?: string;
|
|
465
|
-
/**
|
|
466
|
-
* Filter by profile name
|
|
467
|
-
*/
|
|
468
|
-
profile_name?: string;
|
|
469
|
-
}
|
|
470
|
-
export declare namespace Auth {
|
|
471
|
-
export { type AgentAuthInvocationResponse as AgentAuthInvocationResponse, type AgentAuthSubmitResponse as AgentAuthSubmitResponse, type AuthAgent as AuthAgent, type AuthAgentCreateRequest as AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse, type DiscoveredField as DiscoveredField, type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination, type AuthCreateParams as AuthCreateParams, type AuthListParams as AuthListParams, };
|
|
472
|
-
export { Invocations as Invocations, type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
|
|
473
|
-
}
|
|
474
|
-
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,SA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