@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
|
@@ -11,59 +11,44 @@ export class Auth extends APIResource {
|
|
|
11
11
|
this.invocations = new InvocationsAPI.Invocations(this._client);
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* Creates a new auth agent for
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* **Deprecated: Use POST /auth/connections instead.** Creates a new auth agent for
|
|
15
|
+
* the specified domain and profile combination, or returns an existing one if it
|
|
16
|
+
* already exists. This is idempotent - calling with the same domain and profile
|
|
17
|
+
* will return the same agent. Does NOT start an invocation - use POST
|
|
18
|
+
* /agents/auth/invocations to start an auth flow.
|
|
18
19
|
*
|
|
19
|
-
* @
|
|
20
|
-
* ```ts
|
|
21
|
-
* const authAgent = await client.agents.auth.create({
|
|
22
|
-
* domain: 'netflix.com',
|
|
23
|
-
* profile_name: 'user-123',
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
20
|
+
* @deprecated
|
|
26
21
|
*/
|
|
27
22
|
create(body, options) {
|
|
28
23
|
return this._client.post('/agents/auth', { body, ...options });
|
|
29
24
|
}
|
|
30
25
|
/**
|
|
31
|
-
*
|
|
32
|
-
* the managed profile.
|
|
26
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Retrieve an auth agent
|
|
27
|
+
* by its ID. Returns the current authentication status of the managed profile.
|
|
33
28
|
*
|
|
34
|
-
* @
|
|
35
|
-
* ```ts
|
|
36
|
-
* const authAgent = await client.agents.auth.retrieve('id');
|
|
37
|
-
* ```
|
|
29
|
+
* @deprecated
|
|
38
30
|
*/
|
|
39
31
|
retrieve(id, options) {
|
|
40
32
|
return this._client.get(path `/agents/auth/${id}`, options);
|
|
41
33
|
}
|
|
42
34
|
/**
|
|
43
|
-
*
|
|
35
|
+
* **Deprecated: Use GET /auth/connections instead.** List auth agents with
|
|
36
|
+
* optional filters for profile_name and domain.
|
|
44
37
|
*
|
|
45
|
-
* @
|
|
46
|
-
* ```ts
|
|
47
|
-
* // Automatically fetches more pages as needed.
|
|
48
|
-
* for await (const authAgent of client.agents.auth.list()) {
|
|
49
|
-
* // ...
|
|
50
|
-
* }
|
|
51
|
-
* ```
|
|
38
|
+
* @deprecated
|
|
52
39
|
*/
|
|
53
40
|
list(query = {}, options) {
|
|
54
41
|
return this._client.getAPIList('/agents/auth', (OffsetPagination), { query, ...options });
|
|
55
42
|
}
|
|
56
43
|
/**
|
|
57
|
-
*
|
|
44
|
+
* **Deprecated: Use DELETE /auth/connections/{id} instead.** Deletes an auth agent
|
|
45
|
+
* and terminates its workflow. This will:
|
|
58
46
|
*
|
|
59
47
|
* - Soft delete the auth agent record
|
|
60
48
|
* - Gracefully terminate the agent's Temporal workflow
|
|
61
49
|
* - Cancel any in-progress invocations
|
|
62
50
|
*
|
|
63
|
-
* @
|
|
64
|
-
* ```ts
|
|
65
|
-
* await client.agents.auth.delete('id');
|
|
66
|
-
* ```
|
|
51
|
+
* @deprecated
|
|
67
52
|
*/
|
|
68
53
|
delete(id, options) {
|
|
69
54
|
return this._client.delete(path `/agents/auth/${id}`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAKL,WAAW,GACZ;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAKL,WAAW,GACZ;OAEM,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;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,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,gBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAufD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -4,64 +4,35 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
export declare class Invocations extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* authentication.
|
|
7
|
+
* **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
|
|
8
|
+
* authentication invocation for the specified auth agent. This starts the auth
|
|
9
|
+
* flow and returns a hosted URL for the user to complete authentication.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
12
|
-
* ```ts
|
|
13
|
-
* const authAgentInvocationCreateResponse =
|
|
14
|
-
* await client.agents.auth.invocations.create({
|
|
15
|
-
* auth_agent_id: 'abc123xyz',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
11
|
+
* @deprecated
|
|
18
12
|
*/
|
|
19
13
|
create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
|
|
20
14
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
|
|
16
|
+
* details including status, app_name, and domain. Supports both API key and JWT
|
|
17
|
+
* (from exchange endpoint) authentication.
|
|
23
18
|
*
|
|
24
|
-
* @
|
|
25
|
-
* ```ts
|
|
26
|
-
* const agentAuthInvocationResponse =
|
|
27
|
-
* await client.agents.auth.invocations.retrieve(
|
|
28
|
-
* 'invocation_id',
|
|
29
|
-
* );
|
|
30
|
-
* ```
|
|
19
|
+
* @deprecated
|
|
31
20
|
*/
|
|
32
21
|
retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse>;
|
|
33
22
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
23
|
+
* **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
|
|
24
|
+
* handoff code and returns a JWT token for subsequent requests. No authentication
|
|
25
|
+
* required (the handoff code serves as the credential).
|
|
36
26
|
*
|
|
37
|
-
* @
|
|
38
|
-
* ```ts
|
|
39
|
-
* const response =
|
|
40
|
-
* await client.agents.auth.invocations.exchange(
|
|
41
|
-
* 'invocation_id',
|
|
42
|
-
* { code: 'abc123xyz' },
|
|
43
|
-
* );
|
|
44
|
-
* ```
|
|
27
|
+
* @deprecated
|
|
45
28
|
*/
|
|
46
29
|
exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
|
|
47
30
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* results.
|
|
31
|
+
* **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
|
|
32
|
+
* values for the discovered login form. Returns immediately after submission is
|
|
33
|
+
* accepted. Poll the invocation endpoint to track progress and get results.
|
|
51
34
|
*
|
|
52
|
-
* @
|
|
53
|
-
* ```ts
|
|
54
|
-
* const agentAuthSubmitResponse =
|
|
55
|
-
* await client.agents.auth.invocations.submit(
|
|
56
|
-
* 'invocation_id',
|
|
57
|
-
* {
|
|
58
|
-
* field_values: {
|
|
59
|
-
* email: 'user@example.com',
|
|
60
|
-
* password: '********',
|
|
61
|
-
* },
|
|
62
|
-
* },
|
|
63
|
-
* );
|
|
64
|
-
* ```
|
|
35
|
+
* @deprecated
|
|
65
36
|
*/
|
|
66
37
|
submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
|
|
67
38
|
}
|
|
@@ -114,9 +85,9 @@ export declare namespace InvocationSubmitParams {
|
|
|
114
85
|
}
|
|
115
86
|
interface Variant2 {
|
|
116
87
|
/**
|
|
117
|
-
* The MFA delivery method type
|
|
88
|
+
* The MFA delivery method type (includes password for auth method selection pages)
|
|
118
89
|
*/
|
|
119
|
-
selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | '
|
|
90
|
+
selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
|
|
120
91
|
}
|
|
121
92
|
}
|
|
122
93
|
export declare namespace Invocations {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"invocations.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAIxD;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAIzG;;;;;;OAMG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;OAMG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;WAEG;QACH,YAAY,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACzC;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;KAC5E;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -4,64 +4,35 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class Invocations extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* authentication.
|
|
7
|
+
* **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
|
|
8
|
+
* authentication invocation for the specified auth agent. This starts the auth
|
|
9
|
+
* flow and returns a hosted URL for the user to complete authentication.
|
|
10
10
|
*
|
|
11
|
-
* @
|
|
12
|
-
* ```ts
|
|
13
|
-
* const authAgentInvocationCreateResponse =
|
|
14
|
-
* await client.agents.auth.invocations.create({
|
|
15
|
-
* auth_agent_id: 'abc123xyz',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
11
|
+
* @deprecated
|
|
18
12
|
*/
|
|
19
13
|
create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
|
|
20
14
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
15
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
|
|
16
|
+
* details including status, app_name, and domain. Supports both API key and JWT
|
|
17
|
+
* (from exchange endpoint) authentication.
|
|
23
18
|
*
|
|
24
|
-
* @
|
|
25
|
-
* ```ts
|
|
26
|
-
* const agentAuthInvocationResponse =
|
|
27
|
-
* await client.agents.auth.invocations.retrieve(
|
|
28
|
-
* 'invocation_id',
|
|
29
|
-
* );
|
|
30
|
-
* ```
|
|
19
|
+
* @deprecated
|
|
31
20
|
*/
|
|
32
21
|
retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse>;
|
|
33
22
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
23
|
+
* **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
|
|
24
|
+
* handoff code and returns a JWT token for subsequent requests. No authentication
|
|
25
|
+
* required (the handoff code serves as the credential).
|
|
36
26
|
*
|
|
37
|
-
* @
|
|
38
|
-
* ```ts
|
|
39
|
-
* const response =
|
|
40
|
-
* await client.agents.auth.invocations.exchange(
|
|
41
|
-
* 'invocation_id',
|
|
42
|
-
* { code: 'abc123xyz' },
|
|
43
|
-
* );
|
|
44
|
-
* ```
|
|
27
|
+
* @deprecated
|
|
45
28
|
*/
|
|
46
29
|
exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
|
|
47
30
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* results.
|
|
31
|
+
* **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
|
|
32
|
+
* values for the discovered login form. Returns immediately after submission is
|
|
33
|
+
* accepted. Poll the invocation endpoint to track progress and get results.
|
|
51
34
|
*
|
|
52
|
-
* @
|
|
53
|
-
* ```ts
|
|
54
|
-
* const agentAuthSubmitResponse =
|
|
55
|
-
* await client.agents.auth.invocations.submit(
|
|
56
|
-
* 'invocation_id',
|
|
57
|
-
* {
|
|
58
|
-
* field_values: {
|
|
59
|
-
* email: 'user@example.com',
|
|
60
|
-
* password: '********',
|
|
61
|
-
* },
|
|
62
|
-
* },
|
|
63
|
-
* );
|
|
64
|
-
* ```
|
|
35
|
+
* @deprecated
|
|
65
36
|
*/
|
|
66
37
|
submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
|
|
67
38
|
}
|
|
@@ -114,9 +85,9 @@ export declare namespace InvocationSubmitParams {
|
|
|
114
85
|
}
|
|
115
86
|
interface Variant2 {
|
|
116
87
|
/**
|
|
117
|
-
* The MFA delivery method type
|
|
88
|
+
* The MFA delivery method type (includes password for auth method selection pages)
|
|
118
89
|
*/
|
|
119
|
-
selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | '
|
|
90
|
+
selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'password';
|
|
120
91
|
}
|
|
121
92
|
}
|
|
122
93
|
export declare namespace Invocations {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAIxD;;;;;;OAMG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAIzG;;;;;;OAMG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;OAMG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;WAEG;QACH,YAAY,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACzC;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;KAC5E;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -6,70 +6,41 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
6
6
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
7
|
class Invocations extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* authentication.
|
|
9
|
+
* **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
|
|
10
|
+
* authentication invocation for the specified auth agent. This starts the auth
|
|
11
|
+
* flow and returns a hosted URL for the user to complete authentication.
|
|
12
12
|
*
|
|
13
|
-
* @
|
|
14
|
-
* ```ts
|
|
15
|
-
* const authAgentInvocationCreateResponse =
|
|
16
|
-
* await client.agents.auth.invocations.create({
|
|
17
|
-
* auth_agent_id: 'abc123xyz',
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
13
|
+
* @deprecated
|
|
20
14
|
*/
|
|
21
15
|
create(body, options) {
|
|
22
16
|
return this._client.post('/agents/auth/invocations', { body, ...options });
|
|
23
17
|
}
|
|
24
18
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
19
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
|
|
20
|
+
* details including status, app_name, and domain. Supports both API key and JWT
|
|
21
|
+
* (from exchange endpoint) authentication.
|
|
27
22
|
*
|
|
28
|
-
* @
|
|
29
|
-
* ```ts
|
|
30
|
-
* const agentAuthInvocationResponse =
|
|
31
|
-
* await client.agents.auth.invocations.retrieve(
|
|
32
|
-
* 'invocation_id',
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
23
|
+
* @deprecated
|
|
35
24
|
*/
|
|
36
25
|
retrieve(invocationID, options) {
|
|
37
26
|
return this._client.get((0, path_1.path) `/agents/auth/invocations/${invocationID}`, options);
|
|
38
27
|
}
|
|
39
28
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
29
|
+
* **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
|
|
30
|
+
* handoff code and returns a JWT token for subsequent requests. No authentication
|
|
31
|
+
* required (the handoff code serves as the credential).
|
|
42
32
|
*
|
|
43
|
-
* @
|
|
44
|
-
* ```ts
|
|
45
|
-
* const response =
|
|
46
|
-
* await client.agents.auth.invocations.exchange(
|
|
47
|
-
* 'invocation_id',
|
|
48
|
-
* { code: 'abc123xyz' },
|
|
49
|
-
* );
|
|
50
|
-
* ```
|
|
33
|
+
* @deprecated
|
|
51
34
|
*/
|
|
52
35
|
exchange(invocationID, body, options) {
|
|
53
36
|
return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
|
|
54
37
|
}
|
|
55
38
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* results.
|
|
39
|
+
* **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
|
|
40
|
+
* values for the discovered login form. Returns immediately after submission is
|
|
41
|
+
* accepted. Poll the invocation endpoint to track progress and get results.
|
|
59
42
|
*
|
|
60
|
-
* @
|
|
61
|
-
* ```ts
|
|
62
|
-
* const agentAuthSubmitResponse =
|
|
63
|
-
* await client.agents.auth.invocations.submit(
|
|
64
|
-
* 'invocation_id',
|
|
65
|
-
* {
|
|
66
|
-
* field_values: {
|
|
67
|
-
* email: 'user@example.com',
|
|
68
|
-
* password: '********',
|
|
69
|
-
* },
|
|
70
|
-
* },
|
|
71
|
-
* );
|
|
72
|
-
* ```
|
|
43
|
+
* @deprecated
|
|
73
44
|
*/
|
|
74
45
|
submit(invocationID, body, options) {
|
|
75
46
|
return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"invocations.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,YAAoB,EACpB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF;AAvDD,kCAuDC"}
|
|
@@ -3,70 +3,41 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
4
|
export class Invocations extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* authentication.
|
|
6
|
+
* **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
|
|
7
|
+
* authentication invocation for the specified auth agent. This starts the auth
|
|
8
|
+
* flow and returns a hosted URL for the user to complete authentication.
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
11
|
-
* ```ts
|
|
12
|
-
* const authAgentInvocationCreateResponse =
|
|
13
|
-
* await client.agents.auth.invocations.create({
|
|
14
|
-
* auth_agent_id: 'abc123xyz',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
10
|
+
* @deprecated
|
|
17
11
|
*/
|
|
18
12
|
create(body, options) {
|
|
19
13
|
return this._client.post('/agents/auth/invocations', { body, ...options });
|
|
20
14
|
}
|
|
21
15
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
16
|
+
* **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
|
|
17
|
+
* details including status, app_name, and domain. Supports both API key and JWT
|
|
18
|
+
* (from exchange endpoint) authentication.
|
|
24
19
|
*
|
|
25
|
-
* @
|
|
26
|
-
* ```ts
|
|
27
|
-
* const agentAuthInvocationResponse =
|
|
28
|
-
* await client.agents.auth.invocations.retrieve(
|
|
29
|
-
* 'invocation_id',
|
|
30
|
-
* );
|
|
31
|
-
* ```
|
|
20
|
+
* @deprecated
|
|
32
21
|
*/
|
|
33
22
|
retrieve(invocationID, options) {
|
|
34
23
|
return this._client.get(path `/agents/auth/invocations/${invocationID}`, options);
|
|
35
24
|
}
|
|
36
25
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
26
|
+
* **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
|
|
27
|
+
* handoff code and returns a JWT token for subsequent requests. No authentication
|
|
28
|
+
* required (the handoff code serves as the credential).
|
|
39
29
|
*
|
|
40
|
-
* @
|
|
41
|
-
* ```ts
|
|
42
|
-
* const response =
|
|
43
|
-
* await client.agents.auth.invocations.exchange(
|
|
44
|
-
* 'invocation_id',
|
|
45
|
-
* { code: 'abc123xyz' },
|
|
46
|
-
* );
|
|
47
|
-
* ```
|
|
30
|
+
* @deprecated
|
|
48
31
|
*/
|
|
49
32
|
exchange(invocationID, body, options) {
|
|
50
33
|
return this._client.post(path `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
|
|
51
34
|
}
|
|
52
35
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* results.
|
|
36
|
+
* **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
|
|
37
|
+
* values for the discovered login form. Returns immediately after submission is
|
|
38
|
+
* accepted. Poll the invocation endpoint to track progress and get results.
|
|
56
39
|
*
|
|
57
|
-
* @
|
|
58
|
-
* ```ts
|
|
59
|
-
* const agentAuthSubmitResponse =
|
|
60
|
-
* await client.agents.auth.invocations.submit(
|
|
61
|
-
* 'invocation_id',
|
|
62
|
-
* {
|
|
63
|
-
* field_values: {
|
|
64
|
-
* email: 'user@example.com',
|
|
65
|
-
* password: '********',
|
|
66
|
-
* },
|
|
67
|
-
* },
|
|
68
|
-
* );
|
|
69
|
-
* ```
|
|
40
|
+
* @deprecated
|
|
70
41
|
*/
|
|
71
42
|
submit(invocationID, body, options) {
|
|
72
43
|
return this._client.post(path `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invocations.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"invocations.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;OAMG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,YAAoB,EACpB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,YAAY,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,YAAoB,EACpB,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,YAAY,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ConnectionsAPI from "./connections.mjs";
|
|
3
|
+
import { ConnectionCreateParams, ConnectionFollowResponse, ConnectionListParams, ConnectionLoginParams, ConnectionSubmitParams, Connections, LoginRequest, LoginResponse, ManagedAuth, ManagedAuthCreateRequest, ManagedAuthsOffsetPagination, SubmitFieldsRequest, SubmitFieldsResponse } from "./connections.mjs";
|
|
4
|
+
export declare class Auth extends APIResource {
|
|
5
|
+
connections: ConnectionsAPI.Connections;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Auth {
|
|
8
|
+
export { Connections as Connections, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type ManagedAuth as ManagedAuth, type ManagedAuthCreateRequest as ManagedAuthCreateRequest, type SubmitFieldsRequest as SubmitFieldsRequest, type SubmitFieldsResponse as SubmitFieldsResponse, type ConnectionFollowResponse as ConnectionFollowResponse, type ManagedAuthsOffsetPagination as ManagedAuthsOffsetPagination, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionListParams as ConnectionListParams, type ConnectionLoginParams as ConnectionLoginParams, type ConnectionSubmitParams as ConnectionSubmitParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,EACX,wBAAwB,EACxB,4BAA4B,EAC5B,mBAAmB,EACnB,oBAAoB,EACrB;AAED,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ConnectionsAPI from "./connections.js";
|
|
3
|
+
import { ConnectionCreateParams, ConnectionFollowResponse, ConnectionListParams, ConnectionLoginParams, ConnectionSubmitParams, Connections, LoginRequest, LoginResponse, ManagedAuth, ManagedAuthCreateRequest, ManagedAuthsOffsetPagination, SubmitFieldsRequest, SubmitFieldsResponse } from "./connections.js";
|
|
4
|
+
export declare class Auth extends APIResource {
|
|
5
|
+
connections: ConnectionsAPI.Connections;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Auth {
|
|
8
|
+
export { Connections as Connections, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type ManagedAuth as ManagedAuth, type ManagedAuthCreateRequest as ManagedAuthCreateRequest, type SubmitFieldsRequest as SubmitFieldsRequest, type SubmitFieldsResponse as SubmitFieldsResponse, type ConnectionFollowResponse as ConnectionFollowResponse, type ManagedAuthsOffsetPagination as ManagedAuthsOffsetPagination, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionListParams as ConnectionListParams, type ConnectionLoginParams as ConnectionLoginParams, type ConnectionSubmitParams as ConnectionSubmitParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,EACX,wBAAwB,EACxB,4BAA4B,EAC5B,mBAAmB,EACnB,oBAAoB,EACrB;AAED,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Auth = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ConnectionsAPI = tslib_1.__importStar(require("./connections.js"));
|
|
8
|
+
const connections_1 = require("./connections.js");
|
|
9
|
+
class Auth extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.connections = new ConnectionsAPI.Connections(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Auth = Auth;
|
|
16
|
+
Auth.Connections = connections_1.Connections;
|
|
17
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAcuB;AAEvB,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAFD,oBAEC;AAED,IAAI,CAAC,WAAW,GAAG,yBAAW,CAAC"}
|
|
@@ -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 ConnectionsAPI from "./connections.mjs";
|
|
4
|
+
import { Connections, } from "./connections.mjs";
|
|
5
|
+
export class Auth extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.connections = new ConnectionsAPI.Connections(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Auth.Connections = Connections;
|
|
12
|
+
//# sourceMappingURL=auth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAML,WAAW,GAQZ;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|