@onkernel/sdk 0.22.0 → 0.24.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 +37 -0
- package/README.md +15 -19
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +10 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +10 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +17 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +12 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/auth/auth.d.mts +392 -0
- package/resources/agents/auth/auth.d.mts.map +1 -0
- package/resources/agents/auth/auth.d.ts +392 -0
- package/resources/agents/auth/auth.d.ts.map +1 -0
- package/resources/agents/auth/auth.js +97 -0
- package/resources/agents/auth/auth.js.map +1 -0
- package/resources/agents/auth/auth.mjs +92 -0
- package/resources/agents/auth/auth.mjs.map +1 -0
- package/resources/agents/auth/index.d.mts +3 -0
- package/resources/agents/auth/index.d.mts.map +1 -0
- package/resources/agents/auth/index.d.ts +3 -0
- package/resources/agents/auth/index.d.ts.map +1 -0
- package/resources/agents/auth/index.js +9 -0
- package/resources/agents/auth/index.js.map +1 -0
- package/resources/agents/auth/index.mjs +4 -0
- package/resources/agents/auth/index.mjs.map +1 -0
- package/resources/agents/auth/invocations.d.mts +130 -0
- package/resources/agents/auth/invocations.d.mts.map +1 -0
- package/resources/agents/auth/invocations.d.ts +130 -0
- package/resources/agents/auth/invocations.d.ts.map +1 -0
- package/resources/agents/auth/invocations.js +94 -0
- package/resources/agents/auth/invocations.js.map +1 -0
- package/resources/agents/auth/invocations.mjs +90 -0
- package/resources/agents/auth/invocations.mjs.map +1 -0
- package/resources/agents/auth.d.mts +2 -0
- package/resources/agents/auth.d.mts.map +1 -0
- package/resources/agents/auth.d.ts +2 -0
- package/resources/agents/auth.d.ts.map +1 -0
- package/resources/agents/auth.js +6 -0
- package/resources/agents/auth.js.map +1 -0
- package/resources/agents/auth.mjs +3 -0
- package/resources/agents/auth.mjs.map +1 -0
- package/resources/agents/index.d.mts +3 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +9 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +4 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/browser-pools.d.mts +81 -115
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +81 -115
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +38 -38
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +38 -38
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +3 -7
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +3 -7
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/credentials.d.mts +163 -0
- package/resources/credentials.d.mts.map +1 -0
- package/resources/credentials.d.ts +163 -0
- package/resources/credentials.d.ts.map +1 -0
- package/resources/credentials.js +82 -0
- package/resources/credentials.js.map +1 -0
- package/resources/credentials.mjs +78 -0
- package/resources/credentials.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +5 -5
- package/resources/shared.d.ts +5 -5
- package/src/client.ts +28 -8
- package/src/resources/agents/agents.ts +43 -0
- package/src/resources/agents/auth/auth.ts +509 -0
- package/src/resources/agents/auth/index.ts +25 -0
- package/src/resources/agents/auth/invocations.ts +174 -0
- package/src/resources/agents/auth.ts +3 -0
- package/src/resources/agents/index.ts +18 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/browser-pools.ts +90 -132
- package/src/resources/browsers/browsers.ts +38 -38
- package/src/resources/credentials.ts +205 -0
- package/src/resources/index.ts +11 -4
- package/src/resources/shared.ts +5 -5
- 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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as AuthAPI from "./auth/auth.mjs";
|
|
4
|
+
import { Auth, } from "./auth/auth.mjs";
|
|
5
|
+
export class Agents extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.auth = new AuthAPI.Auth(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Agents.Auth = Auth;
|
|
12
|
+
//# sourceMappingURL=agents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAIL,IAAI,GAUL;AAED,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as InvocationsAPI from "./invocations.mjs";
|
|
3
|
+
import { InvocationCreateParams, InvocationDiscoverParams, 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
|
+
* Creates a new auth agent for the specified domain and profile combination, or
|
|
11
|
+
* returns an existing one if it already exists. This is idempotent - calling with
|
|
12
|
+
* the same domain and profile will return the same agent. Does NOT start an
|
|
13
|
+
* invocation - use POST /agents/auth/invocations to start an auth flow.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const authAgent = await client.agents.auth.create({
|
|
18
|
+
* profile_name: 'user-123',
|
|
19
|
+
* target_domain: 'netflix.com',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: AuthCreateParams, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve an auth agent by its ID. Returns the current authentication status of
|
|
26
|
+
* the managed profile.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const authAgent = await client.agents.auth.retrieve('id');
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<AuthAgent>;
|
|
34
|
+
/**
|
|
35
|
+
* List auth agents with optional filters for profile_name and target_domain.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* // Automatically fetches more pages as needed.
|
|
40
|
+
* for await (const authAgent of client.agents.auth.list()) {
|
|
41
|
+
* // ...
|
|
42
|
+
* }
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
list(query?: AuthListParams | null | undefined, options?: RequestOptions): PagePromise<AuthAgentsOffsetPagination, AuthAgent>;
|
|
46
|
+
/**
|
|
47
|
+
* Deletes an auth agent and terminates its workflow. This will:
|
|
48
|
+
*
|
|
49
|
+
* - Soft delete the auth agent record
|
|
50
|
+
* - Gracefully terminate the agent's Temporal workflow
|
|
51
|
+
* - Cancel any in-progress invocations
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* await client.agents.auth.delete('id');
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Triggers automatic re-authentication for an auth agent using stored credentials.
|
|
61
|
+
* Requires the auth agent to have a linked credential, stored selectors, and
|
|
62
|
+
* login_url. Returns immediately with status indicating whether re-auth was
|
|
63
|
+
* started.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const reauthResponse = await client.agents.auth.reauth(
|
|
68
|
+
* 'id',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
reauth(id: string, options?: RequestOptions): APIPromise<ReauthResponse>;
|
|
73
|
+
}
|
|
74
|
+
export type AuthAgentsOffsetPagination = OffsetPagination<AuthAgent>;
|
|
75
|
+
/**
|
|
76
|
+
* Response from discover endpoint matching AuthBlueprint schema
|
|
77
|
+
*/
|
|
78
|
+
export interface AgentAuthDiscoverResponse {
|
|
79
|
+
/**
|
|
80
|
+
* Whether discovery succeeded
|
|
81
|
+
*/
|
|
82
|
+
success: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Error message if discovery failed
|
|
85
|
+
*/
|
|
86
|
+
error_message?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Discovered form fields (present when success is true)
|
|
89
|
+
*/
|
|
90
|
+
fields?: Array<DiscoveredField>;
|
|
91
|
+
/**
|
|
92
|
+
* Whether user is already logged in
|
|
93
|
+
*/
|
|
94
|
+
logged_in?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* URL of the discovered login page
|
|
97
|
+
*/
|
|
98
|
+
login_url?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Title of the login page
|
|
101
|
+
*/
|
|
102
|
+
page_title?: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Response from get invocation endpoint
|
|
106
|
+
*/
|
|
107
|
+
export interface AgentAuthInvocationResponse {
|
|
108
|
+
/**
|
|
109
|
+
* App name (org name at time of invocation creation)
|
|
110
|
+
*/
|
|
111
|
+
app_name: string;
|
|
112
|
+
/**
|
|
113
|
+
* When the handoff code expires
|
|
114
|
+
*/
|
|
115
|
+
expires_at: string;
|
|
116
|
+
/**
|
|
117
|
+
* Invocation status
|
|
118
|
+
*/
|
|
119
|
+
status: 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED';
|
|
120
|
+
/**
|
|
121
|
+
* Target domain for authentication
|
|
122
|
+
*/
|
|
123
|
+
target_domain: string;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Response from submit endpoint matching SubmitResult schema
|
|
127
|
+
*/
|
|
128
|
+
export interface AgentAuthSubmitResponse {
|
|
129
|
+
/**
|
|
130
|
+
* Whether submission succeeded
|
|
131
|
+
*/
|
|
132
|
+
success: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Additional fields needed (e.g., OTP) - present when needs_additional_auth is
|
|
135
|
+
* true
|
|
136
|
+
*/
|
|
137
|
+
additional_fields?: Array<DiscoveredField>;
|
|
138
|
+
/**
|
|
139
|
+
* App name (only present when logged_in is true)
|
|
140
|
+
*/
|
|
141
|
+
app_name?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Error message if submission failed
|
|
144
|
+
*/
|
|
145
|
+
error_message?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Whether user is now logged in
|
|
148
|
+
*/
|
|
149
|
+
logged_in?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Whether additional authentication fields are needed
|
|
152
|
+
*/
|
|
153
|
+
needs_additional_auth?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Target domain (only present when logged_in is true)
|
|
156
|
+
*/
|
|
157
|
+
target_domain?: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* An auth agent that manages authentication for a specific domain and profile
|
|
161
|
+
* combination
|
|
162
|
+
*/
|
|
163
|
+
export interface AuthAgent {
|
|
164
|
+
/**
|
|
165
|
+
* Unique identifier for the auth agent
|
|
166
|
+
*/
|
|
167
|
+
id: string;
|
|
168
|
+
/**
|
|
169
|
+
* Target domain for authentication
|
|
170
|
+
*/
|
|
171
|
+
domain: string;
|
|
172
|
+
/**
|
|
173
|
+
* Name of the profile associated with this auth agent
|
|
174
|
+
*/
|
|
175
|
+
profile_name: string;
|
|
176
|
+
/**
|
|
177
|
+
* Current authentication status of the managed profile
|
|
178
|
+
*/
|
|
179
|
+
status: 'AUTHENTICATED' | 'NEEDS_AUTH';
|
|
180
|
+
/**
|
|
181
|
+
* Whether automatic re-authentication is possible (has credential_id, selectors,
|
|
182
|
+
* and login_url)
|
|
183
|
+
*/
|
|
184
|
+
can_reauth?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* ID of the linked credential for automatic re-authentication
|
|
187
|
+
*/
|
|
188
|
+
credential_id?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Name of the linked credential for automatic re-authentication
|
|
191
|
+
*/
|
|
192
|
+
credential_name?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Whether this auth agent has stored selectors for deterministic re-authentication
|
|
195
|
+
*/
|
|
196
|
+
has_selectors?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* When the last authentication check was performed
|
|
199
|
+
*/
|
|
200
|
+
last_auth_check_at?: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Request to create or find an auth agent
|
|
204
|
+
*/
|
|
205
|
+
export interface AuthAgentCreateRequest {
|
|
206
|
+
/**
|
|
207
|
+
* Name of the profile to use for this auth agent
|
|
208
|
+
*/
|
|
209
|
+
profile_name: string;
|
|
210
|
+
/**
|
|
211
|
+
* Target domain for authentication
|
|
212
|
+
*/
|
|
213
|
+
target_domain: string;
|
|
214
|
+
/**
|
|
215
|
+
* Optional name of an existing credential to use for this auth agent. If provided,
|
|
216
|
+
* the credential will be linked to the agent and its values will be used to
|
|
217
|
+
* auto-fill the login form on invocation.
|
|
218
|
+
*/
|
|
219
|
+
credential_name?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Optional login page URL. If provided, will be stored on the agent and used to
|
|
222
|
+
* skip discovery in future invocations.
|
|
223
|
+
*/
|
|
224
|
+
login_url?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Optional proxy configuration
|
|
227
|
+
*/
|
|
228
|
+
proxy?: AuthAgentCreateRequest.Proxy;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace AuthAgentCreateRequest {
|
|
231
|
+
/**
|
|
232
|
+
* Optional proxy configuration
|
|
233
|
+
*/
|
|
234
|
+
interface Proxy {
|
|
235
|
+
/**
|
|
236
|
+
* ID of the proxy to use
|
|
237
|
+
*/
|
|
238
|
+
proxy_id?: string;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Request to create an invocation for an existing auth agent
|
|
243
|
+
*/
|
|
244
|
+
export interface AuthAgentInvocationCreateRequest {
|
|
245
|
+
/**
|
|
246
|
+
* ID of the auth agent to create an invocation for
|
|
247
|
+
*/
|
|
248
|
+
auth_agent_id: string;
|
|
249
|
+
/**
|
|
250
|
+
* If provided, saves the submitted credentials under this name upon successful
|
|
251
|
+
* login. The credential will be linked to the auth agent for automatic
|
|
252
|
+
* re-authentication.
|
|
253
|
+
*/
|
|
254
|
+
save_credential_as?: string;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Response when the agent is already authenticated.
|
|
258
|
+
*/
|
|
259
|
+
export type AuthAgentInvocationCreateResponse = AuthAgentInvocationCreateResponse.AuthAgentAlreadyAuthenticated | AuthAgentInvocationCreateResponse.AuthAgentInvocationCreated;
|
|
260
|
+
export declare namespace AuthAgentInvocationCreateResponse {
|
|
261
|
+
/**
|
|
262
|
+
* Response when the agent is already authenticated.
|
|
263
|
+
*/
|
|
264
|
+
interface AuthAgentAlreadyAuthenticated {
|
|
265
|
+
/**
|
|
266
|
+
* Indicates the agent is already authenticated and no invocation was created.
|
|
267
|
+
*/
|
|
268
|
+
status: 'already_authenticated';
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Response when a new invocation was created.
|
|
272
|
+
*/
|
|
273
|
+
interface AuthAgentInvocationCreated {
|
|
274
|
+
/**
|
|
275
|
+
* When the handoff code expires.
|
|
276
|
+
*/
|
|
277
|
+
expires_at: string;
|
|
278
|
+
/**
|
|
279
|
+
* One-time code for handoff.
|
|
280
|
+
*/
|
|
281
|
+
handoff_code: string;
|
|
282
|
+
/**
|
|
283
|
+
* URL to redirect user to.
|
|
284
|
+
*/
|
|
285
|
+
hosted_url: string;
|
|
286
|
+
/**
|
|
287
|
+
* Unique identifier for the invocation.
|
|
288
|
+
*/
|
|
289
|
+
invocation_id: string;
|
|
290
|
+
/**
|
|
291
|
+
* Indicates an invocation was created.
|
|
292
|
+
*/
|
|
293
|
+
status: 'invocation_created';
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* A discovered form field
|
|
298
|
+
*/
|
|
299
|
+
export interface DiscoveredField {
|
|
300
|
+
/**
|
|
301
|
+
* Field label
|
|
302
|
+
*/
|
|
303
|
+
label: string;
|
|
304
|
+
/**
|
|
305
|
+
* Field name
|
|
306
|
+
*/
|
|
307
|
+
name: string;
|
|
308
|
+
/**
|
|
309
|
+
* CSS selector for the field
|
|
310
|
+
*/
|
|
311
|
+
selector: string;
|
|
312
|
+
/**
|
|
313
|
+
* Field type
|
|
314
|
+
*/
|
|
315
|
+
type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code';
|
|
316
|
+
/**
|
|
317
|
+
* Field placeholder
|
|
318
|
+
*/
|
|
319
|
+
placeholder?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Whether field is required
|
|
322
|
+
*/
|
|
323
|
+
required?: boolean;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Response from triggering re-authentication
|
|
327
|
+
*/
|
|
328
|
+
export interface ReauthResponse {
|
|
329
|
+
/**
|
|
330
|
+
* Result of the re-authentication attempt
|
|
331
|
+
*/
|
|
332
|
+
status: 'reauth_started' | 'already_authenticated' | 'cannot_reauth';
|
|
333
|
+
/**
|
|
334
|
+
* ID of the re-auth invocation if one was created
|
|
335
|
+
*/
|
|
336
|
+
invocation_id?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Human-readable description of the result
|
|
339
|
+
*/
|
|
340
|
+
message?: string;
|
|
341
|
+
}
|
|
342
|
+
export interface AuthCreateParams {
|
|
343
|
+
/**
|
|
344
|
+
* Name of the profile to use for this auth agent
|
|
345
|
+
*/
|
|
346
|
+
profile_name: string;
|
|
347
|
+
/**
|
|
348
|
+
* Target domain for authentication
|
|
349
|
+
*/
|
|
350
|
+
target_domain: string;
|
|
351
|
+
/**
|
|
352
|
+
* Optional name of an existing credential to use for this auth agent. If provided,
|
|
353
|
+
* the credential will be linked to the agent and its values will be used to
|
|
354
|
+
* auto-fill the login form on invocation.
|
|
355
|
+
*/
|
|
356
|
+
credential_name?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Optional login page URL. If provided, will be stored on the agent and used to
|
|
359
|
+
* skip discovery in future invocations.
|
|
360
|
+
*/
|
|
361
|
+
login_url?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Optional proxy configuration
|
|
364
|
+
*/
|
|
365
|
+
proxy?: AuthCreateParams.Proxy;
|
|
366
|
+
}
|
|
367
|
+
export declare namespace AuthCreateParams {
|
|
368
|
+
/**
|
|
369
|
+
* Optional proxy configuration
|
|
370
|
+
*/
|
|
371
|
+
interface Proxy {
|
|
372
|
+
/**
|
|
373
|
+
* ID of the proxy to use
|
|
374
|
+
*/
|
|
375
|
+
proxy_id?: string;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
export interface AuthListParams extends OffsetPaginationParams {
|
|
379
|
+
/**
|
|
380
|
+
* Filter by profile name
|
|
381
|
+
*/
|
|
382
|
+
profile_name?: string;
|
|
383
|
+
/**
|
|
384
|
+
* Filter by target domain
|
|
385
|
+
*/
|
|
386
|
+
target_domain?: string;
|
|
387
|
+
}
|
|
388
|
+
export declare namespace Auth {
|
|
389
|
+
export { type AgentAuthDiscoverResponse as AgentAuthDiscoverResponse, 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 ReauthResponse as ReauthResponse, type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination, type AuthCreateParams as AuthCreateParams, type AuthListParams as AuthListParams, };
|
|
390
|
+
export { Invocations as Invocations, type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationDiscoverParams as InvocationDiscoverParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
|
|
391
|
+
}
|
|
392
|
+
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.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