@onkernel/sdk 0.21.0 → 0.23.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 +41 -0
- package/README.md +15 -19
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -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 +294 -0
- package/resources/agents/auth/auth.d.mts.map +1 -0
- package/resources/agents/auth/auth.d.ts +294 -0
- package/resources/agents/auth/auth.d.ts.map +1 -0
- package/resources/agents/auth/auth.js +62 -0
- package/resources/agents/auth/auth.js.map +1 -0
- package/resources/agents/auth/auth.mjs +57 -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 +124 -0
- package/resources/agents/auth/invocations.d.mts.map +1 -0
- package/resources/agents/auth/invocations.d.ts +124 -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 +24 -23
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +24 -23
- 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/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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/resources/invocations.d.mts +5 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +5 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/shared.d.mts +5 -5
- package/resources/shared.d.ts +5 -5
- package/src/client.ts +5 -0
- package/src/resources/agents/agents.ts +41 -0
- package/src/resources/agents/auth/auth.ts +385 -0
- package/src/resources/agents/auth/index.ts +24 -0
- package/src/resources/agents/auth/invocations.ts +167 -0
- package/src/resources/agents/auth.ts +3 -0
- package/src/resources/agents/index.ts +17 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/browser-pools.ts +24 -23
- package/src/resources/browsers/browsers.ts +38 -38
- package/src/resources/index.ts +1 -0
- package/src/resources/invocations.ts +6 -0
- 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,57 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as InvocationsAPI from "./invocations.mjs";
|
|
4
|
+
import { Invocations, } from "./invocations.mjs";
|
|
5
|
+
import { OffsetPagination } from "../../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
+
export class Auth extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.invocations = new InvocationsAPI.Invocations(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new auth agent for the specified domain and profile combination, or
|
|
14
|
+
* returns an existing one if it already exists. This is idempotent - calling with
|
|
15
|
+
* the same domain and profile will return the same agent. Does NOT start an
|
|
16
|
+
* invocation - use POST /agents/auth/invocations to start an auth flow.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const authAgent = await client.agents.auth.create({
|
|
21
|
+
* profile_name: 'user-123',
|
|
22
|
+
* target_domain: 'netflix.com',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body, options) {
|
|
27
|
+
return this._client.post('/agents/auth', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve an auth agent by its ID. Returns the current authentication status of
|
|
31
|
+
* the managed profile.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const authAgent = await client.agents.auth.retrieve('id');
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieve(id, options) {
|
|
39
|
+
return this._client.get(path `/agents/auth/${id}`, options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* List auth agents with optional filters for profile_name and target_domain.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* // Automatically fetches more pages as needed.
|
|
47
|
+
* for await (const authAgent of client.agents.auth.list()) {
|
|
48
|
+
* // ...
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
list(query = {}, options) {
|
|
53
|
+
return this._client.getAPIList('/agents/auth', (OffsetPagination), { query, ...options });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
Auth.Invocations = Invocations;
|
|
57
|
+
//# sourceMappingURL=auth.mjs.map
|
|
@@ -0,0 +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,EAML,WAAW,GACZ;OAEM,EAAE,gBAAgB,EAA4C;OAE9D,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkDzF,CAAC;IAhDC;;;;;;;;;;;;;OAaG;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;;;;;;;;OAQG;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;;;;;;;;;;OAUG;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;CACF;AAmSD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Auth, type AgentAuthDiscoverResponse, type AgentAuthInvocationResponse, type AgentAuthSubmitResponse, type AuthAgent, type AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse, type DiscoveredField, type AuthCreateParams, type AuthListParams, type AuthAgentsOffsetPagination, } from "./auth.mjs";
|
|
2
|
+
export { Invocations, type InvocationExchangeResponse, type InvocationCreateParams, type InvocationDiscoverParams, type InvocationExchangeParams, type InvocationSubmitParams, } from "./invocations.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC;OACM,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Auth, type AgentAuthDiscoverResponse, type AgentAuthInvocationResponse, type AgentAuthSubmitResponse, type AuthAgent, type AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse, type DiscoveredField, type AuthCreateParams, type AuthListParams, type AuthAgentsOffsetPagination, } from "./auth.js";
|
|
2
|
+
export { Invocations, type InvocationExchangeResponse, type InvocationCreateParams, type InvocationDiscoverParams, type InvocationExchangeParams, type InvocationSubmitParams, } from "./invocations.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/auth/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC;OACM,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,GAC5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Invocations = exports.Auth = void 0;
|
|
5
|
+
var auth_1 = require("./auth.js");
|
|
6
|
+
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_1.Auth; } });
|
|
7
|
+
var invocations_1 = require("./invocations.js");
|
|
8
|
+
Object.defineProperty(exports, "Invocations", { enumerable: true, get: function () { return invocations_1.Invocations; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAagB;AAZd,4FAAA,IAAI,OAAA;AAaN,gDAOuB;AANrB,0GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAYL;OACM,EACL,WAAW,GAMZ"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as AuthAPI from "./auth.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
export declare class Invocations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new authentication invocation for the specified auth agent. This
|
|
8
|
+
* starts the auth flow and returns a hosted URL for the user to complete
|
|
9
|
+
* authentication.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const authAgentInvocationCreateResponse =
|
|
14
|
+
* await client.agents.auth.invocations.create({
|
|
15
|
+
* auth_agent_id: 'abc123xyz',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns invocation details including app_name and target_domain. Uses the JWT
|
|
22
|
+
* returned by the exchange endpoint, or standard API key or JWT authentication.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const agentAuthInvocationResponse =
|
|
27
|
+
* await client.agents.auth.invocations.retrieve(
|
|
28
|
+
* 'invocation_id',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Inspects the target site to detect logged-in state or discover required fields.
|
|
35
|
+
* Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
|
|
36
|
+
* Requires the JWT returned by the exchange endpoint.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const agentAuthDiscoverResponse =
|
|
41
|
+
* await client.agents.auth.invocations.discover(
|
|
42
|
+
* 'invocation_id',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
discover(invocationID: string, body?: InvocationDiscoverParams | null | undefined, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthDiscoverResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Validates the handoff code and returns a JWT token for subsequent requests. No
|
|
49
|
+
* authentication required (the handoff code serves as the credential).
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response =
|
|
54
|
+
* await client.agents.auth.invocations.exchange(
|
|
55
|
+
* 'invocation_id',
|
|
56
|
+
* { code: 'abc123xyz' },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Submits field values for the discovered login form and may return additional
|
|
63
|
+
* auth fields or success. Requires the JWT returned by the exchange endpoint.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const agentAuthSubmitResponse =
|
|
68
|
+
* await client.agents.auth.invocations.submit(
|
|
69
|
+
* 'invocation_id',
|
|
70
|
+
* {
|
|
71
|
+
* field_values: {
|
|
72
|
+
* email: 'user@example.com',
|
|
73
|
+
* password: '********',
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Response from exchange endpoint
|
|
83
|
+
*/
|
|
84
|
+
export interface InvocationExchangeResponse {
|
|
85
|
+
/**
|
|
86
|
+
* Invocation ID
|
|
87
|
+
*/
|
|
88
|
+
invocation_id: string;
|
|
89
|
+
/**
|
|
90
|
+
* JWT token with invocation_id claim (30 minute TTL)
|
|
91
|
+
*/
|
|
92
|
+
jwt: string;
|
|
93
|
+
}
|
|
94
|
+
export interface InvocationCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* ID of the auth agent to create an invocation for
|
|
97
|
+
*/
|
|
98
|
+
auth_agent_id: string;
|
|
99
|
+
}
|
|
100
|
+
export interface InvocationDiscoverParams {
|
|
101
|
+
/**
|
|
102
|
+
* Optional login page URL. If provided, will override the stored login URL for
|
|
103
|
+
* this discovery invocation and skip Phase 1 discovery.
|
|
104
|
+
*/
|
|
105
|
+
login_url?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface InvocationExchangeParams {
|
|
108
|
+
/**
|
|
109
|
+
* Handoff code from start endpoint
|
|
110
|
+
*/
|
|
111
|
+
code: string;
|
|
112
|
+
}
|
|
113
|
+
export interface InvocationSubmitParams {
|
|
114
|
+
/**
|
|
115
|
+
* Values for the discovered login fields
|
|
116
|
+
*/
|
|
117
|
+
field_values: {
|
|
118
|
+
[key: string]: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export declare namespace Invocations {
|
|
122
|
+
export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationDiscoverParams as InvocationDiscoverParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=invocations.d.mts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAIxD;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAIzG;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,yBAAyB,CAAC;IAIhD;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;;;;;;;;;OAiBG;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;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;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,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as AuthAPI from "./auth.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
export declare class Invocations extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new authentication invocation for the specified auth agent. This
|
|
8
|
+
* starts the auth flow and returns a hosted URL for the user to complete
|
|
9
|
+
* authentication.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const authAgentInvocationCreateResponse =
|
|
14
|
+
* await client.agents.auth.invocations.create({
|
|
15
|
+
* auth_agent_id: 'abc123xyz',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Returns invocation details including app_name and target_domain. Uses the JWT
|
|
22
|
+
* returned by the exchange endpoint, or standard API key or JWT authentication.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const agentAuthInvocationResponse =
|
|
27
|
+
* await client.agents.auth.invocations.retrieve(
|
|
28
|
+
* 'invocation_id',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
retrieve(invocationID: string, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthInvocationResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Inspects the target site to detect logged-in state or discover required fields.
|
|
35
|
+
* Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
|
|
36
|
+
* Requires the JWT returned by the exchange endpoint.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const agentAuthDiscoverResponse =
|
|
41
|
+
* await client.agents.auth.invocations.discover(
|
|
42
|
+
* 'invocation_id',
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
discover(invocationID: string, body?: InvocationDiscoverParams | null | undefined, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthDiscoverResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Validates the handoff code and returns a JWT token for subsequent requests. No
|
|
49
|
+
* authentication required (the handoff code serves as the credential).
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response =
|
|
54
|
+
* await client.agents.auth.invocations.exchange(
|
|
55
|
+
* 'invocation_id',
|
|
56
|
+
* { code: 'abc123xyz' },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Submits field values for the discovered login form and may return additional
|
|
63
|
+
* auth fields or success. Requires the JWT returned by the exchange endpoint.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const agentAuthSubmitResponse =
|
|
68
|
+
* await client.agents.auth.invocations.submit(
|
|
69
|
+
* 'invocation_id',
|
|
70
|
+
* {
|
|
71
|
+
* field_values: {
|
|
72
|
+
* email: 'user@example.com',
|
|
73
|
+
* password: '********',
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* );
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Response from exchange endpoint
|
|
83
|
+
*/
|
|
84
|
+
export interface InvocationExchangeResponse {
|
|
85
|
+
/**
|
|
86
|
+
* Invocation ID
|
|
87
|
+
*/
|
|
88
|
+
invocation_id: string;
|
|
89
|
+
/**
|
|
90
|
+
* JWT token with invocation_id claim (30 minute TTL)
|
|
91
|
+
*/
|
|
92
|
+
jwt: string;
|
|
93
|
+
}
|
|
94
|
+
export interface InvocationCreateParams {
|
|
95
|
+
/**
|
|
96
|
+
* ID of the auth agent to create an invocation for
|
|
97
|
+
*/
|
|
98
|
+
auth_agent_id: string;
|
|
99
|
+
}
|
|
100
|
+
export interface InvocationDiscoverParams {
|
|
101
|
+
/**
|
|
102
|
+
* Optional login page URL. If provided, will override the stored login URL for
|
|
103
|
+
* this discovery invocation and skip Phase 1 discovery.
|
|
104
|
+
*/
|
|
105
|
+
login_url?: string;
|
|
106
|
+
}
|
|
107
|
+
export interface InvocationExchangeParams {
|
|
108
|
+
/**
|
|
109
|
+
* Handoff code from start endpoint
|
|
110
|
+
*/
|
|
111
|
+
code: string;
|
|
112
|
+
}
|
|
113
|
+
export interface InvocationSubmitParams {
|
|
114
|
+
/**
|
|
115
|
+
* Values for the discovered login fields
|
|
116
|
+
*/
|
|
117
|
+
field_values: {
|
|
118
|
+
[key: string]: string;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
export declare namespace Invocations {
|
|
122
|
+
export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationDiscoverParams as InvocationDiscoverParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=invocations.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,iCAAiC,CAAC;IAIxD;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,2BAA2B,CAAC;IAIzG;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,yBAAyB,CAAC;IAIhD;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;;;;;;;;;OAiBG;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;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;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,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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.Invocations = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Invocations extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new authentication invocation for the specified auth agent. This
|
|
10
|
+
* starts the auth flow and returns a hosted URL for the user to complete
|
|
11
|
+
* authentication.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const authAgentInvocationCreateResponse =
|
|
16
|
+
* await client.agents.auth.invocations.create({
|
|
17
|
+
* auth_agent_id: 'abc123xyz',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/agents/auth/invocations', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns invocation details including app_name and target_domain. Uses the JWT
|
|
26
|
+
* returned by the exchange endpoint, or standard API key or JWT authentication.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const agentAuthInvocationResponse =
|
|
31
|
+
* await client.agents.auth.invocations.retrieve(
|
|
32
|
+
* 'invocation_id',
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
retrieve(invocationID, options) {
|
|
37
|
+
return this._client.get((0, path_1.path) `/agents/auth/invocations/${invocationID}`, options);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Inspects the target site to detect logged-in state or discover required fields.
|
|
41
|
+
* Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
|
|
42
|
+
* Requires the JWT returned by the exchange endpoint.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const agentAuthDiscoverResponse =
|
|
47
|
+
* await client.agents.auth.invocations.discover(
|
|
48
|
+
* 'invocation_id',
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
discover(invocationID, body = {}, options) {
|
|
53
|
+
return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/discover`, { body, ...options });
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Validates the handoff code and returns a JWT token for subsequent requests. No
|
|
57
|
+
* authentication required (the handoff code serves as the credential).
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response =
|
|
62
|
+
* await client.agents.auth.invocations.exchange(
|
|
63
|
+
* 'invocation_id',
|
|
64
|
+
* { code: 'abc123xyz' },
|
|
65
|
+
* );
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
exchange(invocationID, body, options) {
|
|
69
|
+
return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Submits field values for the discovered login form and may return additional
|
|
73
|
+
* auth fields or success. Requires the JWT returned by the exchange endpoint.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const agentAuthSubmitResponse =
|
|
78
|
+
* await client.agents.auth.invocations.submit(
|
|
79
|
+
* 'invocation_id',
|
|
80
|
+
* {
|
|
81
|
+
* field_values: {
|
|
82
|
+
* email: 'user@example.com',
|
|
83
|
+
* password: '********',
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
submit(invocationID, body, options) {
|
|
90
|
+
return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.Invocations = Invocations;
|
|
94
|
+
//# sourceMappingURL=invocations.js.map
|
|
@@ -0,0 +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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;OAWG;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;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,OAAoD,EAAE,EACtD,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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;;;;;;OAiBG;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;AAxGD,kCAwGC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class Invocations extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new authentication invocation for the specified auth agent. This
|
|
7
|
+
* starts the auth flow and returns a hosted URL for the user to complete
|
|
8
|
+
* authentication.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const authAgentInvocationCreateResponse =
|
|
13
|
+
* await client.agents.auth.invocations.create({
|
|
14
|
+
* auth_agent_id: 'abc123xyz',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/agents/auth/invocations', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns invocation details including app_name and target_domain. Uses the JWT
|
|
23
|
+
* returned by the exchange endpoint, or standard API key or JWT authentication.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const agentAuthInvocationResponse =
|
|
28
|
+
* await client.agents.auth.invocations.retrieve(
|
|
29
|
+
* 'invocation_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(invocationID, options) {
|
|
34
|
+
return this._client.get(path `/agents/auth/invocations/${invocationID}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Inspects the target site to detect logged-in state or discover required fields.
|
|
38
|
+
* Returns 200 with success: true when fields are found, or 4xx/5xx for failures.
|
|
39
|
+
* Requires the JWT returned by the exchange endpoint.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const agentAuthDiscoverResponse =
|
|
44
|
+
* await client.agents.auth.invocations.discover(
|
|
45
|
+
* 'invocation_id',
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
discover(invocationID, body = {}, options) {
|
|
50
|
+
return this._client.post(path `/agents/auth/invocations/${invocationID}/discover`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Validates the handoff code and returns a JWT token for subsequent requests. No
|
|
54
|
+
* authentication required (the handoff code serves as the credential).
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response =
|
|
59
|
+
* await client.agents.auth.invocations.exchange(
|
|
60
|
+
* 'invocation_id',
|
|
61
|
+
* { code: 'abc123xyz' },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
exchange(invocationID, body, options) {
|
|
66
|
+
return this._client.post(path `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Submits field values for the discovered login form and may return additional
|
|
70
|
+
* auth fields or success. Requires the JWT returned by the exchange endpoint.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const agentAuthSubmitResponse =
|
|
75
|
+
* await client.agents.auth.invocations.submit(
|
|
76
|
+
* 'invocation_id',
|
|
77
|
+
* {
|
|
78
|
+
* field_values: {
|
|
79
|
+
* email: 'user@example.com',
|
|
80
|
+
* password: '********',
|
|
81
|
+
* },
|
|
82
|
+
* },
|
|
83
|
+
* );
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
submit(invocationID, body, options) {
|
|
87
|
+
return this._client.post(path `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=invocations.mjs.map
|
|
@@ -0,0 +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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;OAWG;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;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,OAAoD,EAAE,EACtD,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;;;;;;;;;;;;OAYG;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;;;;;;;;;;;;;;;;;OAiBG;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 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./auth/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Agents } from "./agents.mjs";
|
|
2
|
+
export { Auth, type AgentAuthDiscoverResponse, type AgentAuthInvocationResponse, type AgentAuthSubmitResponse, type AuthAgent, type AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse, type DiscoveredField, type AuthCreateParams, type AuthListParams, type AuthAgentsOffsetPagination, } from "./auth/index.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Agents } from "./agents.js";
|
|
2
|
+
export { Auth, type AgentAuthDiscoverResponse, type AgentAuthInvocationResponse, type AgentAuthSubmitResponse, type AuthAgent, type AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse, type DiscoveredField, type AuthCreateParams, type AuthListParams, type AuthAgentsOffsetPagination, } from "./auth/index.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 = exports.Agents = void 0;
|
|
5
|
+
var agents_1 = require("./agents.js");
|
|
6
|
+
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
|
+
var index_1 = require("./auth/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return index_1.Auth; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,yCAasB;AAZpB,6FAAA,IAAI,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAYL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":""}
|