@onkernel/sdk 0.24.0 → 0.25.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 (80) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +1 -1
  3. package/README.md +7 -2
  4. package/client.d.mts +4 -4
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +4 -4
  7. package/client.d.ts.map +1 -1
  8. package/client.js.map +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +2 -2
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +2 -2
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js.map +1 -1
  16. package/resources/agents/agents.mjs.map +1 -1
  17. package/resources/agents/auth/auth.d.mts +107 -129
  18. package/resources/agents/auth/auth.d.mts.map +1 -1
  19. package/resources/agents/auth/auth.d.ts +107 -129
  20. package/resources/agents/auth/auth.d.ts.map +1 -1
  21. package/resources/agents/auth/auth.js +2 -18
  22. package/resources/agents/auth/auth.js.map +1 -1
  23. package/resources/agents/auth/auth.mjs +2 -18
  24. package/resources/agents/auth/auth.mjs.map +1 -1
  25. package/resources/agents/auth/index.d.mts +2 -2
  26. package/resources/agents/auth/index.d.mts.map +1 -1
  27. package/resources/agents/auth/index.d.ts +2 -2
  28. package/resources/agents/auth/index.d.ts.map +1 -1
  29. package/resources/agents/auth/index.js.map +1 -1
  30. package/resources/agents/auth/index.mjs.map +1 -1
  31. package/resources/agents/auth/invocations.d.mts +22 -33
  32. package/resources/agents/auth/invocations.d.mts.map +1 -1
  33. package/resources/agents/auth/invocations.d.ts +22 -33
  34. package/resources/agents/auth/invocations.d.ts.map +1 -1
  35. package/resources/agents/auth/invocations.js +5 -20
  36. package/resources/agents/auth/invocations.js.map +1 -1
  37. package/resources/agents/auth/invocations.mjs +5 -20
  38. package/resources/agents/auth/invocations.mjs.map +1 -1
  39. package/resources/agents/index.d.mts +1 -1
  40. package/resources/agents/index.d.mts.map +1 -1
  41. package/resources/agents/index.d.ts +1 -1
  42. package/resources/agents/index.d.ts.map +1 -1
  43. package/resources/agents/index.js.map +1 -1
  44. package/resources/agents/index.mjs.map +1 -1
  45. package/resources/credentials.d.mts +107 -16
  46. package/resources/credentials.d.mts.map +1 -1
  47. package/resources/credentials.d.ts +107 -16
  48. package/resources/credentials.d.ts.map +1 -1
  49. package/resources/credentials.js +33 -14
  50. package/resources/credentials.js.map +1 -1
  51. package/resources/credentials.mjs +33 -14
  52. package/resources/credentials.mjs.map +1 -1
  53. package/resources/index.d.mts +2 -2
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +2 -2
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/proxies.d.mts +137 -1
  60. package/resources/proxies.d.mts.map +1 -1
  61. package/resources/proxies.d.ts +137 -1
  62. package/resources/proxies.d.ts.map +1 -1
  63. package/resources/proxies.js +6 -0
  64. package/resources/proxies.js.map +1 -1
  65. package/resources/proxies.mjs +6 -0
  66. package/resources/proxies.mjs.map +1 -1
  67. package/src/client.ts +4 -0
  68. package/src/resources/agents/agents.ts +0 -4
  69. package/src/resources/agents/auth/auth.ts +114 -141
  70. package/src/resources/agents/auth/index.ts +0 -3
  71. package/src/resources/agents/auth/invocations.ts +21 -39
  72. package/src/resources/agents/index.ts +0 -2
  73. package/src/resources/credentials.ts +127 -18
  74. package/src/resources/index.ts +2 -0
  75. package/src/resources/proxies.ts +228 -0
  76. package/src/version.ts +1 -1
  77. package/version.d.mts +1 -1
  78. package/version.d.ts +1 -1
  79. package/version.js +1 -1
  80. package/version.mjs +1 -1
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as InvocationsAPI from "./invocations.mjs";
3
- import { InvocationCreateParams, InvocationDiscoverParams, InvocationExchangeParams, InvocationExchangeResponse, InvocationSubmitParams, Invocations } from "./invocations.mjs";
3
+ import { InvocationCreateParams, InvocationExchangeParams, InvocationExchangeResponse, InvocationSubmitParams, Invocations } from "./invocations.mjs";
4
4
  import { APIPromise } from "../../../core/api-promise.mjs";
5
5
  import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../../core/pagination.mjs";
6
6
  import { RequestOptions } from "../../../internal/request-options.mjs";
@@ -15,8 +15,8 @@ export declare class Auth extends APIResource {
15
15
  * @example
16
16
  * ```ts
17
17
  * const authAgent = await client.agents.auth.create({
18
+ * domain: 'netflix.com',
18
19
  * profile_name: 'user-123',
19
- * target_domain: 'netflix.com',
20
20
  * });
21
21
  * ```
22
22
  */
@@ -32,7 +32,7 @@ export declare class Auth extends APIResource {
32
32
  */
33
33
  retrieve(id: string, options?: RequestOptions): APIPromise<AuthAgent>;
34
34
  /**
35
- * List auth agents with optional filters for profile_name and target_domain.
35
+ * List auth agents with optional filters for profile_name and domain.
36
36
  *
37
37
  * @example
38
38
  * ```ts
@@ -56,51 +56,8 @@ export declare class Auth extends APIResource {
56
56
  * ```
57
57
  */
58
58
  delete(id: string, options?: RequestOptions): APIPromise<void>;
59
- /**
60
- * Triggers automatic re-authentication for an auth agent using stored credentials.
61
- * Requires the auth agent to have a linked credential, stored selectors, and
62
- * login_url. Returns immediately with status indicating whether re-auth was
63
- * started.
64
- *
65
- * @example
66
- * ```ts
67
- * const reauthResponse = await client.agents.auth.reauth(
68
- * 'id',
69
- * );
70
- * ```
71
- */
72
- reauth(id: string, options?: RequestOptions): APIPromise<ReauthResponse>;
73
59
  }
74
60
  export type AuthAgentsOffsetPagination = OffsetPagination<AuthAgent>;
75
- /**
76
- * Response from discover endpoint matching AuthBlueprint schema
77
- */
78
- export interface AgentAuthDiscoverResponse {
79
- /**
80
- * Whether discovery succeeded
81
- */
82
- success: boolean;
83
- /**
84
- * Error message if discovery failed
85
- */
86
- error_message?: string;
87
- /**
88
- * Discovered form fields (present when success is true)
89
- */
90
- fields?: Array<DiscoveredField>;
91
- /**
92
- * Whether user is already logged in
93
- */
94
- logged_in?: boolean;
95
- /**
96
- * URL of the discovered login page
97
- */
98
- login_url?: string;
99
- /**
100
- * Title of the login page
101
- */
102
- page_title?: string;
103
- }
104
61
  /**
105
62
  * Response from get invocation endpoint
106
63
  */
@@ -109,6 +66,10 @@ export interface AgentAuthInvocationResponse {
109
66
  * App name (org name at time of invocation creation)
110
67
  */
111
68
  app_name: string;
69
+ /**
70
+ * Domain for authentication
71
+ */
72
+ domain: string;
112
73
  /**
113
74
  * When the handoff code expires
114
75
  */
@@ -116,45 +77,72 @@ export interface AgentAuthInvocationResponse {
116
77
  /**
117
78
  * Invocation status
118
79
  */
119
- status: 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED';
80
+ status: 'IN_PROGRESS' | 'SUCCESS' | 'EXPIRED' | 'CANCELED' | 'FAILED';
120
81
  /**
121
- * Target domain for authentication
82
+ * Current step in the invocation workflow
122
83
  */
123
- target_domain: string;
124
- }
125
- /**
126
- * Response from submit endpoint matching SubmitResult schema
127
- */
128
- export interface AgentAuthSubmitResponse {
84
+ step: 'initialized' | 'discovering' | 'awaiting_input' | 'awaiting_external_action' | 'submitting' | 'completed' | 'expired';
85
+ /**
86
+ * The invocation type:
87
+ *
88
+ * - login: First-time authentication
89
+ * - reauth: Re-authentication for previously authenticated agents
90
+ * - auto_login: Legacy type (no longer created, kept for backward compatibility)
91
+ */
92
+ type: 'login' | 'auto_login' | 'reauth';
93
+ /**
94
+ * Error message explaining why the invocation failed (present when status=FAILED)
95
+ */
96
+ error_message?: string | null;
129
97
  /**
130
- * Whether submission succeeded
98
+ * Instructions for user when external action is required (present when
99
+ * step=awaiting_external_action)
131
100
  */
132
- success: boolean;
101
+ external_action_message?: string | null;
133
102
  /**
134
- * Additional fields needed (e.g., OTP) - present when needs_additional_auth is
135
- * true
103
+ * Browser live view URL for debugging the invocation
136
104
  */
137
- additional_fields?: Array<DiscoveredField>;
105
+ live_view_url?: string | null;
138
106
  /**
139
- * App name (only present when logged_in is true)
107
+ * Fields currently awaiting input (present when step=awaiting_input)
140
108
  */
141
- app_name?: string;
109
+ pending_fields?: Array<DiscoveredField> | null;
142
110
  /**
143
- * Error message if submission failed
111
+ * SSO buttons available on the page (present when step=awaiting_input)
144
112
  */
145
- error_message?: string;
113
+ pending_sso_buttons?: Array<AgentAuthInvocationResponse.PendingSSOButton> | null;
146
114
  /**
147
- * Whether user is now logged in
115
+ * Names of fields that have been submitted (present when step=submitting or later)
148
116
  */
149
- logged_in?: boolean;
117
+ submitted_fields?: Array<string> | null;
118
+ }
119
+ export declare namespace AgentAuthInvocationResponse {
150
120
  /**
151
- * Whether additional authentication fields are needed
121
+ * An SSO button for signing in with an external identity provider
152
122
  */
153
- needs_additional_auth?: boolean;
123
+ interface PendingSSOButton {
124
+ /**
125
+ * Visible button text
126
+ */
127
+ label: string;
128
+ /**
129
+ * Identity provider name
130
+ */
131
+ provider: string;
132
+ /**
133
+ * XPath selector for the button
134
+ */
135
+ selector: string;
136
+ }
137
+ }
138
+ /**
139
+ * Response from submit endpoint - returns immediately after submission is accepted
140
+ */
141
+ export interface AgentAuthSubmitResponse {
154
142
  /**
155
- * Target domain (only present when logged_in is true)
143
+ * Whether the submission was accepted for processing
156
144
  */
157
- target_domain?: string;
145
+ accepted: boolean;
158
146
  }
159
147
  /**
160
148
  * An auth agent that manages authentication for a specific domain and profile
@@ -177,6 +165,12 @@ export interface AuthAgent {
177
165
  * Current authentication status of the managed profile
178
166
  */
179
167
  status: 'AUTHENTICATED' | 'NEEDS_AUTH';
168
+ /**
169
+ * Additional domains that are valid for this auth agent's authentication flow
170
+ * (besides the primary domain). Useful when login pages redirect to different
171
+ * domains.
172
+ */
173
+ allowed_domains?: Array<string>;
180
174
  /**
181
175
  * Whether automatic re-authentication is possible (has credential_id, selectors,
182
176
  * and login_url)
@@ -203,14 +197,20 @@ export interface AuthAgent {
203
197
  * Request to create or find an auth agent
204
198
  */
205
199
  export interface AuthAgentCreateRequest {
200
+ /**
201
+ * Domain for authentication
202
+ */
203
+ domain: string;
206
204
  /**
207
205
  * Name of the profile to use for this auth agent
208
206
  */
209
207
  profile_name: string;
210
208
  /**
211
- * Target domain for authentication
209
+ * Additional domains that are valid for this auth agent's authentication flow
210
+ * (besides the primary domain). Useful when login pages redirect to different
211
+ * domains.
212
212
  */
213
- target_domain: string;
213
+ allowed_domains?: Array<string>;
214
214
  /**
215
215
  * Optional name of an existing credential to use for this auth agent. If provided,
216
216
  * the credential will be linked to the agent and its values will be used to
@@ -254,44 +254,33 @@ export interface AuthAgentInvocationCreateRequest {
254
254
  save_credential_as?: string;
255
255
  }
256
256
  /**
257
- * Response when the agent is already authenticated.
257
+ * Response from creating an invocation. Always returns an invocation_id.
258
258
  */
259
- export type AuthAgentInvocationCreateResponse = AuthAgentInvocationCreateResponse.AuthAgentAlreadyAuthenticated | AuthAgentInvocationCreateResponse.AuthAgentInvocationCreated;
260
- export declare namespace AuthAgentInvocationCreateResponse {
259
+ export interface AuthAgentInvocationCreateResponse {
261
260
  /**
262
- * Response when the agent is already authenticated.
261
+ * When the handoff code expires.
263
262
  */
264
- interface AuthAgentAlreadyAuthenticated {
265
- /**
266
- * Indicates the agent is already authenticated and no invocation was created.
267
- */
268
- status: 'already_authenticated';
269
- }
263
+ expires_at: string;
270
264
  /**
271
- * Response when a new invocation was created.
265
+ * One-time code for handoff.
272
266
  */
273
- interface AuthAgentInvocationCreated {
274
- /**
275
- * When the handoff code expires.
276
- */
277
- expires_at: string;
278
- /**
279
- * One-time code for handoff.
280
- */
281
- handoff_code: string;
282
- /**
283
- * URL to redirect user to.
284
- */
285
- hosted_url: string;
286
- /**
287
- * Unique identifier for the invocation.
288
- */
289
- invocation_id: string;
290
- /**
291
- * Indicates an invocation was created.
292
- */
293
- status: 'invocation_created';
294
- }
267
+ handoff_code: string;
268
+ /**
269
+ * URL to redirect user to.
270
+ */
271
+ hosted_url: string;
272
+ /**
273
+ * Unique identifier for the invocation.
274
+ */
275
+ invocation_id: string;
276
+ /**
277
+ * The invocation type:
278
+ *
279
+ * - login: First-time authentication
280
+ * - reauth: Re-authentication for previously authenticated agents
281
+ * - auto_login: Legacy type (no longer created, kept for backward compatibility)
282
+ */
283
+ type: 'login' | 'auto_login' | 'reauth';
295
284
  }
296
285
  /**
297
286
  * A discovered form field
@@ -312,7 +301,7 @@ export interface DiscoveredField {
312
301
  /**
313
302
  * Field type
314
303
  */
315
- type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code';
304
+ type: 'text' | 'email' | 'password' | 'tel' | 'number' | 'url' | 'code' | 'totp';
316
305
  /**
317
306
  * Field placeholder
318
307
  */
@@ -322,32 +311,21 @@ export interface DiscoveredField {
322
311
  */
323
312
  required?: boolean;
324
313
  }
325
- /**
326
- * Response from triggering re-authentication
327
- */
328
- export interface ReauthResponse {
329
- /**
330
- * Result of the re-authentication attempt
331
- */
332
- status: 'reauth_started' | 'already_authenticated' | 'cannot_reauth';
333
- /**
334
- * ID of the re-auth invocation if one was created
335
- */
336
- invocation_id?: string;
314
+ export interface AuthCreateParams {
337
315
  /**
338
- * Human-readable description of the result
316
+ * Domain for authentication
339
317
  */
340
- message?: string;
341
- }
342
- export interface AuthCreateParams {
318
+ domain: string;
343
319
  /**
344
320
  * Name of the profile to use for this auth agent
345
321
  */
346
322
  profile_name: string;
347
323
  /**
348
- * Target domain for authentication
324
+ * Additional domains that are valid for this auth agent's authentication flow
325
+ * (besides the primary domain). Useful when login pages redirect to different
326
+ * domains.
349
327
  */
350
- target_domain: string;
328
+ allowed_domains?: Array<string>;
351
329
  /**
352
330
  * Optional name of an existing credential to use for this auth agent. If provided,
353
331
  * the credential will be linked to the agent and its values will be used to
@@ -377,16 +355,16 @@ export declare namespace AuthCreateParams {
377
355
  }
378
356
  export interface AuthListParams extends OffsetPaginationParams {
379
357
  /**
380
- * Filter by profile name
358
+ * Filter by domain
381
359
  */
382
- profile_name?: string;
360
+ domain?: string;
383
361
  /**
384
- * Filter by target domain
362
+ * Filter by profile name
385
363
  */
386
- target_domain?: string;
364
+ profile_name?: string;
387
365
  }
388
366
  export declare namespace Auth {
389
- export { type AgentAuthDiscoverResponse as AgentAuthDiscoverResponse, type AgentAuthInvocationResponse as AgentAuthInvocationResponse, type AgentAuthSubmitResponse as AgentAuthSubmitResponse, type AuthAgent as AuthAgent, type AuthAgentCreateRequest as AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse, type DiscoveredField as DiscoveredField, type ReauthResponse as ReauthResponse, type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination, type AuthCreateParams as AuthCreateParams, type AuthListParams as AuthListParams, };
390
- export { Invocations as Invocations, type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationDiscoverParams as InvocationDiscoverParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
367
+ export { type AgentAuthInvocationResponse as AgentAuthInvocationResponse, type AgentAuthSubmitResponse as AgentAuthSubmitResponse, type AuthAgent as AuthAgent, type AuthAgentCreateRequest as AuthAgentCreateRequest, type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest, type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse, type DiscoveredField as DiscoveredField, type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination, type AuthCreateParams as AuthCreateParams, type AuthListParams as AuthListParams, };
368
+ export { Invocations as Invocations, type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
391
369
  }
392
370
  //# sourceMappingURL=auth.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE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