@onkernel/sdk 0.30.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/client.d.mts +8 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +12 -5
  7. package/client.js.map +1 -1
  8. package/client.mjs +12 -5
  9. package/client.mjs.map +1 -1
  10. package/package.json +3 -2
  11. package/resources/auth/auth.d.mts +10 -0
  12. package/resources/auth/auth.d.mts.map +1 -0
  13. package/resources/auth/auth.d.ts +10 -0
  14. package/resources/auth/auth.d.ts.map +1 -0
  15. package/resources/auth/auth.js +17 -0
  16. package/resources/auth/auth.js.map +1 -0
  17. package/resources/auth/auth.mjs +12 -0
  18. package/resources/auth/auth.mjs.map +1 -0
  19. package/resources/auth/connections.d.mts +793 -0
  20. package/resources/auth/connections.d.mts.map +1 -0
  21. package/resources/auth/connections.d.ts +793 -0
  22. package/resources/auth/connections.d.ts.map +1 -0
  23. package/resources/auth/connections.js +118 -0
  24. package/resources/auth/connections.js.map +1 -0
  25. package/resources/auth/connections.mjs +114 -0
  26. package/resources/auth/connections.mjs.map +1 -0
  27. package/resources/auth/index.d.mts +3 -0
  28. package/resources/auth/index.d.mts.map +1 -0
  29. package/resources/auth/index.d.ts +3 -0
  30. package/resources/auth/index.d.ts.map +1 -0
  31. package/resources/{agents/auth → auth}/index.js +3 -3
  32. package/resources/auth/index.js.map +1 -0
  33. package/resources/auth/index.mjs +4 -0
  34. package/resources/auth/index.mjs.map +1 -0
  35. package/resources/{agents/auth.d.mts.map → auth.d.mts.map} +1 -1
  36. package/resources/auth.d.ts.map +1 -0
  37. package/resources/{agents/auth.js → auth.js} +1 -1
  38. package/resources/auth.js.map +1 -0
  39. package/resources/auth.mjs.map +1 -0
  40. package/resources/browsers/browsers.d.mts +2 -2
  41. package/resources/browsers/browsers.d.mts.map +1 -1
  42. package/resources/browsers/browsers.d.ts +2 -2
  43. package/resources/browsers/browsers.d.ts.map +1 -1
  44. package/resources/browsers/browsers.js.map +1 -1
  45. package/resources/browsers/browsers.mjs.map +1 -1
  46. package/resources/browsers/computer.d.mts +199 -1
  47. package/resources/browsers/computer.d.mts.map +1 -1
  48. package/resources/browsers/computer.d.ts +199 -1
  49. package/resources/browsers/computer.d.ts.map +1 -1
  50. package/resources/browsers/computer.js +31 -0
  51. package/resources/browsers/computer.js.map +1 -1
  52. package/resources/browsers/computer.mjs +31 -0
  53. package/resources/browsers/computer.mjs.map +1 -1
  54. package/resources/browsers/index.d.mts +1 -1
  55. package/resources/browsers/index.d.mts.map +1 -1
  56. package/resources/browsers/index.d.ts +1 -1
  57. package/resources/browsers/index.d.ts.map +1 -1
  58. package/resources/browsers/index.js.map +1 -1
  59. package/resources/browsers/index.mjs.map +1 -1
  60. package/resources/credential-providers.d.mts +66 -1
  61. package/resources/credential-providers.d.mts.map +1 -1
  62. package/resources/credential-providers.d.ts +66 -1
  63. package/resources/credential-providers.d.ts.map +1 -1
  64. package/resources/credential-providers.js +21 -6
  65. package/resources/credential-providers.js.map +1 -1
  66. package/resources/credential-providers.mjs +21 -6
  67. package/resources/credential-providers.mjs.map +1 -1
  68. package/resources/credentials.d.mts +4 -0
  69. package/resources/credentials.d.mts.map +1 -1
  70. package/resources/credentials.d.ts +4 -0
  71. package/resources/credentials.d.ts.map +1 -1
  72. package/resources/index.d.mts +2 -2
  73. package/resources/index.d.mts.map +1 -1
  74. package/resources/index.d.ts +2 -2
  75. package/resources/index.d.ts.map +1 -1
  76. package/resources/index.js +3 -3
  77. package/resources/index.js.map +1 -1
  78. package/resources/index.mjs +1 -1
  79. package/resources/index.mjs.map +1 -1
  80. package/src/client.ts +24 -9
  81. package/src/resources/auth/auth.ts +41 -0
  82. package/src/resources/auth/connections.ts +973 -0
  83. package/src/resources/auth/index.ts +17 -0
  84. package/src/resources/browsers/browsers.ts +4 -0
  85. package/src/resources/browsers/computer.ts +257 -0
  86. package/src/resources/browsers/index.ts +2 -0
  87. package/src/resources/credential-providers.ts +88 -6
  88. package/src/resources/credentials.ts +5 -0
  89. package/src/resources/index.ts +3 -1
  90. package/src/version.ts +1 -1
  91. package/version.d.mts +1 -1
  92. package/version.d.ts +1 -1
  93. package/version.js +1 -1
  94. package/version.mjs +1 -1
  95. package/resources/agents/agents.d.mts +0 -10
  96. package/resources/agents/agents.d.mts.map +0 -1
  97. package/resources/agents/agents.d.ts +0 -10
  98. package/resources/agents/agents.d.ts.map +0 -1
  99. package/resources/agents/agents.js +0 -17
  100. package/resources/agents/agents.js.map +0 -1
  101. package/resources/agents/agents.mjs +0 -12
  102. package/resources/agents/agents.mjs.map +0 -1
  103. package/resources/agents/auth/auth.d.mts +0 -405
  104. package/resources/agents/auth/auth.d.mts.map +0 -1
  105. package/resources/agents/auth/auth.d.ts +0 -405
  106. package/resources/agents/auth/auth.d.ts.map +0 -1
  107. package/resources/agents/auth/auth.js +0 -81
  108. package/resources/agents/auth/auth.js.map +0 -1
  109. package/resources/agents/auth/auth.mjs +0 -76
  110. package/resources/agents/auth/auth.mjs.map +0 -1
  111. package/resources/agents/auth/index.d.mts +0 -3
  112. package/resources/agents/auth/index.d.mts.map +0 -1
  113. package/resources/agents/auth/index.d.ts +0 -3
  114. package/resources/agents/auth/index.d.ts.map +0 -1
  115. package/resources/agents/auth/index.js.map +0 -1
  116. package/resources/agents/auth/index.mjs +0 -4
  117. package/resources/agents/auth/index.mjs.map +0 -1
  118. package/resources/agents/auth/invocations.d.mts +0 -125
  119. package/resources/agents/auth/invocations.d.mts.map +0 -1
  120. package/resources/agents/auth/invocations.d.ts +0 -125
  121. package/resources/agents/auth/invocations.d.ts.map +0 -1
  122. package/resources/agents/auth/invocations.js +0 -79
  123. package/resources/agents/auth/invocations.js.map +0 -1
  124. package/resources/agents/auth/invocations.mjs +0 -75
  125. package/resources/agents/auth/invocations.mjs.map +0 -1
  126. package/resources/agents/auth.d.ts.map +0 -1
  127. package/resources/agents/auth.js.map +0 -1
  128. package/resources/agents/auth.mjs.map +0 -1
  129. package/resources/agents/index.d.mts +0 -3
  130. package/resources/agents/index.d.mts.map +0 -1
  131. package/resources/agents/index.d.ts +0 -3
  132. package/resources/agents/index.d.ts.map +0 -1
  133. package/resources/agents/index.js +0 -9
  134. package/resources/agents/index.js.map +0 -1
  135. package/resources/agents/index.mjs +0 -4
  136. package/resources/agents/index.mjs.map +0 -1
  137. package/resources/agents.d.mts +0 -2
  138. package/resources/agents.d.mts.map +0 -1
  139. package/resources/agents.d.ts +0 -2
  140. package/resources/agents.d.ts.map +0 -1
  141. package/resources/agents.js +0 -6
  142. package/resources/agents.js.map +0 -1
  143. package/resources/agents.mjs +0 -3
  144. package/resources/agents.mjs.map +0 -1
  145. package/src/resources/agents/agents.ts +0 -39
  146. package/src/resources/agents/auth/auth.ts +0 -524
  147. package/src/resources/agents/auth/index.ts +0 -22
  148. package/src/resources/agents/auth/invocations.ts +0 -166
  149. package/src/resources/agents/index.ts +0 -16
  150. package/src/resources/agents.ts +0 -3
  151. /package/resources/{agents/auth.d.mts → auth.d.mts} +0 -0
  152. /package/resources/{agents/auth.d.ts → auth.d.ts} +0 -0
  153. /package/resources/{agents/auth.mjs → auth.mjs} +0 -0
  154. /package/src/resources/{agents/auth.ts → auth.ts} +0 -0
@@ -1,125 +0,0 @@
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 status, app_name, and domain. Supports both
22
- * API key and JWT (from exchange endpoint) 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
- * Validates the handoff code and returns a JWT token for subsequent requests. No
35
- * authentication required (the handoff code serves as the credential).
36
- *
37
- * @example
38
- * ```ts
39
- * const response =
40
- * await client.agents.auth.invocations.exchange(
41
- * 'invocation_id',
42
- * { code: 'abc123xyz' },
43
- * );
44
- * ```
45
- */
46
- exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
47
- /**
48
- * Submits field values for the discovered login form. Returns immediately after
49
- * submission is accepted. Poll the invocation endpoint to track progress and get
50
- * results.
51
- *
52
- * @example
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
- * ```
65
- */
66
- submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
67
- }
68
- /**
69
- * Response from exchange endpoint
70
- */
71
- export interface InvocationExchangeResponse {
72
- /**
73
- * Invocation ID
74
- */
75
- invocation_id: string;
76
- /**
77
- * JWT token with invocation_id claim (30 minute TTL)
78
- */
79
- jwt: string;
80
- }
81
- export interface InvocationCreateParams {
82
- /**
83
- * ID of the auth agent to create an invocation for
84
- */
85
- auth_agent_id: string;
86
- /**
87
- * If provided, saves the submitted credentials under this name upon successful
88
- * login. The credential will be linked to the auth agent for automatic
89
- * re-authentication.
90
- */
91
- save_credential_as?: string;
92
- }
93
- export interface InvocationExchangeParams {
94
- /**
95
- * Handoff code from start endpoint
96
- */
97
- code: string;
98
- }
99
- export type InvocationSubmitParams = InvocationSubmitParams.Variant0 | InvocationSubmitParams.Variant1 | InvocationSubmitParams.Variant2;
100
- export declare namespace InvocationSubmitParams {
101
- interface Variant0 {
102
- /**
103
- * Values for the discovered login fields
104
- */
105
- field_values: {
106
- [key: string]: string;
107
- };
108
- }
109
- interface Variant1 {
110
- /**
111
- * Selector of SSO button to click
112
- */
113
- sso_button: string;
114
- }
115
- interface Variant2 {
116
- /**
117
- * The MFA delivery method type
118
- */
119
- selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'security_key';
120
- }
121
- }
122
- export declare namespace Invocations {
123
- export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
124
- }
125
- //# sourceMappingURL=invocations.d.mts.map
@@ -1 +0,0 @@
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,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,G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}
@@ -1,125 +0,0 @@
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 status, app_name, and domain. Supports both
22
- * API key and JWT (from exchange endpoint) 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
- * Validates the handoff code and returns a JWT token for subsequent requests. No
35
- * authentication required (the handoff code serves as the credential).
36
- *
37
- * @example
38
- * ```ts
39
- * const response =
40
- * await client.agents.auth.invocations.exchange(
41
- * 'invocation_id',
42
- * { code: 'abc123xyz' },
43
- * );
44
- * ```
45
- */
46
- exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
47
- /**
48
- * Submits field values for the discovered login form. Returns immediately after
49
- * submission is accepted. Poll the invocation endpoint to track progress and get
50
- * results.
51
- *
52
- * @example
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
- * ```
65
- */
66
- submit(invocationID: string, body: InvocationSubmitParams, options?: RequestOptions): APIPromise<AuthAPI.AgentAuthSubmitResponse>;
67
- }
68
- /**
69
- * Response from exchange endpoint
70
- */
71
- export interface InvocationExchangeResponse {
72
- /**
73
- * Invocation ID
74
- */
75
- invocation_id: string;
76
- /**
77
- * JWT token with invocation_id claim (30 minute TTL)
78
- */
79
- jwt: string;
80
- }
81
- export interface InvocationCreateParams {
82
- /**
83
- * ID of the auth agent to create an invocation for
84
- */
85
- auth_agent_id: string;
86
- /**
87
- * If provided, saves the submitted credentials under this name upon successful
88
- * login. The credential will be linked to the auth agent for automatic
89
- * re-authentication.
90
- */
91
- save_credential_as?: string;
92
- }
93
- export interface InvocationExchangeParams {
94
- /**
95
- * Handoff code from start endpoint
96
- */
97
- code: string;
98
- }
99
- export type InvocationSubmitParams = InvocationSubmitParams.Variant0 | InvocationSubmitParams.Variant1 | InvocationSubmitParams.Variant2;
100
- export declare namespace InvocationSubmitParams {
101
- interface Variant0 {
102
- /**
103
- * Values for the discovered login fields
104
- */
105
- field_values: {
106
- [key: string]: string;
107
- };
108
- }
109
- interface Variant1 {
110
- /**
111
- * Selector of SSO button to click
112
- */
113
- sso_button: string;
114
- }
115
- interface Variant2 {
116
- /**
117
- * The MFA delivery method type
118
- */
119
- selected_mfa_type: 'sms' | 'call' | 'email' | 'totp' | 'push' | 'security_key';
120
- }
121
- }
122
- export declare namespace Invocations {
123
- export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
124
- }
125
- //# sourceMappingURL=invocations.d.ts.map
@@ -1 +0,0 @@
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;;;;;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AEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;KAChF;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"}
@@ -1,79 +0,0 @@
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 status, app_name, and domain. Supports both
26
- * API key and JWT (from exchange endpoint) 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
- * Validates the handoff code and returns a JWT token for subsequent requests. No
41
- * authentication required (the handoff code serves as the credential).
42
- *
43
- * @example
44
- * ```ts
45
- * const response =
46
- * await client.agents.auth.invocations.exchange(
47
- * 'invocation_id',
48
- * { code: 'abc123xyz' },
49
- * );
50
- * ```
51
- */
52
- exchange(invocationID, body, options) {
53
- return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
54
- }
55
- /**
56
- * Submits field values for the discovered login form. Returns immediately after
57
- * submission is accepted. Poll the invocation endpoint to track progress and get
58
- * results.
59
- *
60
- * @example
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
- * ```
73
- */
74
- submit(invocationID, body, options) {
75
- return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
76
- }
77
- }
78
- exports.Invocations = Invocations;
79
- //# sourceMappingURL=invocations.js.map
@@ -1 +0,0 @@
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,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;;;;;;;;;;;;;;;;;;OAkBG;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;AApFD,kCAoFC"}
@@ -1,75 +0,0 @@
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 status, app_name, and domain. Supports both
23
- * API key and JWT (from exchange endpoint) 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
- * Validates the handoff code and returns a JWT token for subsequent requests. No
38
- * authentication required (the handoff code serves as the credential).
39
- *
40
- * @example
41
- * ```ts
42
- * const response =
43
- * await client.agents.auth.invocations.exchange(
44
- * 'invocation_id',
45
- * { code: 'abc123xyz' },
46
- * );
47
- * ```
48
- */
49
- exchange(invocationID, body, options) {
50
- return this._client.post(path `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
51
- }
52
- /**
53
- * Submits field values for the discovered login form. Returns immediately after
54
- * submission is accepted. Poll the invocation endpoint to track progress and get
55
- * results.
56
- *
57
- * @example
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
- * ```
70
- */
71
- submit(invocationID, body, options) {
72
- return this._client.post(path `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
73
- }
74
- }
75
- //# sourceMappingURL=invocations.mjs.map
@@ -1 +0,0 @@
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,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;;;;;;;;;;;;;;;;;;OAkBG;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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/agents/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,3 +0,0 @@
1
- export { Agents } from "./agents.mjs";
2
- export { Auth, 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
@@ -1 +0,0 @@
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,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"}
@@ -1,3 +0,0 @@
1
- export { Agents } from "./agents.js";
2
- export { Auth, 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
@@ -1 +0,0 @@
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,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"}
@@ -1,9 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,yCAYsB;AAXpB,6FAAA,IAAI,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Agents } from "./agents.mjs";
3
- export { Auth, } from "./auth/index.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
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,GAWL"}
@@ -1,2 +0,0 @@
1
- export * from "./agents/index.mjs";
2
- //# sourceMappingURL=agents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./agents/index.js";
2
- //# sourceMappingURL=agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
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("./agents/index.js"), exports);
6
- //# sourceMappingURL=agents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./agents/index.mjs";
3
- //# sourceMappingURL=agents.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,39 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../core/resource';
4
- import * as AuthAPI from './auth/auth';
5
- import {
6
- AgentAuthInvocationResponse,
7
- AgentAuthSubmitResponse,
8
- Auth,
9
- AuthAgent,
10
- AuthAgentCreateRequest,
11
- AuthAgentInvocationCreateRequest,
12
- AuthAgentInvocationCreateResponse,
13
- AuthAgentsOffsetPagination,
14
- AuthCreateParams,
15
- AuthListParams,
16
- DiscoveredField,
17
- } from './auth/auth';
18
-
19
- export class Agents extends APIResource {
20
- auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
21
- }
22
-
23
- Agents.Auth = Auth;
24
-
25
- export declare namespace Agents {
26
- export {
27
- Auth as Auth,
28
- type AgentAuthInvocationResponse as AgentAuthInvocationResponse,
29
- type AgentAuthSubmitResponse as AgentAuthSubmitResponse,
30
- type AuthAgent as AuthAgent,
31
- type AuthAgentCreateRequest as AuthAgentCreateRequest,
32
- type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest,
33
- type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse,
34
- type DiscoveredField as DiscoveredField,
35
- type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination,
36
- type AuthCreateParams as AuthCreateParams,
37
- type AuthListParams as AuthListParams,
38
- };
39
- }