@onkernel/sdk 0.23.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 (89) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +1 -1
  3. package/README.md +7 -2
  4. package/client.d.mts +7 -4
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +7 -4
  7. package/client.d.ts.map +1 -1
  8. package/client.js +3 -0
  9. package/client.js.map +1 -1
  10. package/client.mjs +3 -0
  11. package/client.mjs.map +1 -1
  12. package/package.json +1 -1
  13. package/resources/agents/agents.d.mts +2 -2
  14. package/resources/agents/agents.d.mts.map +1 -1
  15. package/resources/agents/agents.d.ts +2 -2
  16. package/resources/agents/agents.d.ts.map +1 -1
  17. package/resources/agents/agents.js.map +1 -1
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/auth/auth.d.mts +146 -70
  20. package/resources/agents/auth/auth.d.mts.map +1 -1
  21. package/resources/agents/auth/auth.d.ts +146 -70
  22. package/resources/agents/auth/auth.d.ts.map +1 -1
  23. package/resources/agents/auth/auth.js +21 -2
  24. package/resources/agents/auth/auth.js.map +1 -1
  25. package/resources/agents/auth/auth.mjs +21 -2
  26. package/resources/agents/auth/auth.mjs.map +1 -1
  27. package/resources/agents/auth/index.d.mts +2 -2
  28. package/resources/agents/auth/index.d.mts.map +1 -1
  29. package/resources/agents/auth/index.d.ts +2 -2
  30. package/resources/agents/auth/index.d.ts.map +1 -1
  31. package/resources/agents/auth/index.js.map +1 -1
  32. package/resources/agents/auth/index.mjs.map +1 -1
  33. package/resources/agents/auth/invocations.d.mts +26 -31
  34. package/resources/agents/auth/invocations.d.mts.map +1 -1
  35. package/resources/agents/auth/invocations.d.ts +26 -31
  36. package/resources/agents/auth/invocations.d.ts.map +1 -1
  37. package/resources/agents/auth/invocations.js +5 -20
  38. package/resources/agents/auth/invocations.js.map +1 -1
  39. package/resources/agents/auth/invocations.mjs +5 -20
  40. package/resources/agents/auth/invocations.mjs.map +1 -1
  41. package/resources/agents/index.d.mts +1 -1
  42. package/resources/agents/index.d.mts.map +1 -1
  43. package/resources/agents/index.d.ts +1 -1
  44. package/resources/agents/index.d.ts.map +1 -1
  45. package/resources/agents/index.js.map +1 -1
  46. package/resources/agents/index.mjs.map +1 -1
  47. package/resources/browser-pools.d.mts +63 -98
  48. package/resources/browser-pools.d.mts.map +1 -1
  49. package/resources/browser-pools.d.ts +63 -98
  50. package/resources/browser-pools.d.ts.map +1 -1
  51. package/resources/credentials.d.mts +254 -0
  52. package/resources/credentials.d.mts.map +1 -0
  53. package/resources/credentials.d.ts +254 -0
  54. package/resources/credentials.d.ts.map +1 -0
  55. package/resources/credentials.js +101 -0
  56. package/resources/credentials.js.map +1 -0
  57. package/resources/credentials.mjs +97 -0
  58. package/resources/credentials.mjs.map +1 -0
  59. package/resources/index.d.mts +3 -2
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +3 -2
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +3 -1
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +1 -0
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/proxies.d.mts +137 -1
  68. package/resources/proxies.d.mts.map +1 -1
  69. package/resources/proxies.d.ts +137 -1
  70. package/resources/proxies.d.ts.map +1 -1
  71. package/resources/proxies.js +6 -0
  72. package/resources/proxies.js.map +1 -1
  73. package/resources/proxies.mjs +6 -0
  74. package/resources/proxies.mjs.map +1 -1
  75. package/src/client.ts +27 -8
  76. package/src/resources/agents/agents.ts +0 -2
  77. package/src/resources/agents/auth/auth.ts +170 -73
  78. package/src/resources/agents/auth/index.ts +0 -2
  79. package/src/resources/agents/auth/invocations.ts +25 -36
  80. package/src/resources/agents/index.ts +0 -1
  81. package/src/resources/browser-pools.ts +72 -115
  82. package/src/resources/credentials.ts +314 -0
  83. package/src/resources/index.ts +12 -4
  84. package/src/resources/proxies.ts +228 -0
  85. package/src/version.ts +1 -1
  86. package/version.d.mts +1 -1
  87. package/version.d.ts +1 -1
  88. package/version.js +1 -1
  89. package/version.mjs +1 -1
@@ -18,8 +18,8 @@ export declare class Invocations extends APIResource {
18
18
  */
19
19
  create(body: InvocationCreateParams, options?: RequestOptions): APIPromise<AuthAPI.AuthAgentInvocationCreateResponse>;
20
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.
21
+ * Returns invocation details including status, app_name, and domain. Supports both
22
+ * API key and JWT (from exchange endpoint) authentication.
23
23
  *
24
24
  * @example
25
25
  * ```ts
@@ -30,20 +30,6 @@ export declare class Invocations extends APIResource {
30
30
  * ```
31
31
  */
32
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
33
  /**
48
34
  * Validates the handoff code and returns a JWT token for subsequent requests. No
49
35
  * authentication required (the handoff code serves as the credential).
@@ -59,8 +45,9 @@ export declare class Invocations extends APIResource {
59
45
  */
60
46
  exchange(invocationID: string, body: InvocationExchangeParams, options?: RequestOptions): APIPromise<InvocationExchangeResponse>;
61
47
  /**
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.
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.
64
51
  *
65
52
  * @example
66
53
  * ```ts
@@ -96,13 +83,12 @@ export interface InvocationCreateParams {
96
83
  * ID of the auth agent to create an invocation for
97
84
  */
98
85
  auth_agent_id: string;
99
- }
100
- export interface InvocationDiscoverParams {
101
86
  /**
102
- * Optional login page URL. If provided, will override the stored login URL for
103
- * this discovery invocation and skip Phase 1 discovery.
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.
104
90
  */
105
- login_url?: string;
91
+ save_credential_as?: string;
106
92
  }
107
93
  export interface InvocationExchangeParams {
108
94
  /**
@@ -110,15 +96,24 @@ export interface InvocationExchangeParams {
110
96
  */
111
97
  code: string;
112
98
  }
113
- export interface InvocationSubmitParams {
114
- /**
115
- * Values for the discovered login fields
116
- */
117
- field_values: {
118
- [key: string]: string;
119
- };
99
+ export type InvocationSubmitParams = InvocationSubmitParams.Variant0 | InvocationSubmitParams.Variant1;
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
+ }
120
115
  }
121
116
  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, };
117
+ export { type InvocationExchangeResponse as InvocationExchangeResponse, type InvocationCreateParams as InvocationCreateParams, type InvocationExchangeParams as InvocationExchangeParams, type InvocationSubmitParams as InvocationSubmitParams, };
123
118
  }
124
119
  //# sourceMappingURL=invocations.d.ts.map
@@ -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,cAA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,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,GAAG,sBAAsB,CAAC,QAAQ,GAAG,sBAAsB,CAAC,QAAQ,CAAC;AAEvG,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;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"}
@@ -22,8 +22,8 @@ class Invocations extends resource_1.APIResource {
22
22
  return this._client.post('/agents/auth/invocations', { body, ...options });
23
23
  }
24
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.
25
+ * Returns invocation details including status, app_name, and domain. Supports both
26
+ * API key and JWT (from exchange endpoint) authentication.
27
27
  *
28
28
  * @example
29
29
  * ```ts
@@ -36,22 +36,6 @@ class Invocations extends resource_1.APIResource {
36
36
  retrieve(invocationID, options) {
37
37
  return this._client.get((0, path_1.path) `/agents/auth/invocations/${invocationID}`, options);
38
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
39
  /**
56
40
  * Validates the handoff code and returns a JWT token for subsequent requests. No
57
41
  * authentication required (the handoff code serves as the credential).
@@ -69,8 +53,9 @@ class Invocations extends resource_1.APIResource {
69
53
  return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
70
54
  }
71
55
  /**
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.
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.
74
59
  *
75
60
  * @example
76
61
  * ```ts
@@ -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;;;;;;;;;;;;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;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AA8B,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"}
@@ -19,8 +19,8 @@ export class Invocations extends APIResource {
19
19
  return this._client.post('/agents/auth/invocations', { body, ...options });
20
20
  }
21
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.
22
+ * Returns invocation details including status, app_name, and domain. Supports both
23
+ * API key and JWT (from exchange endpoint) authentication.
24
24
  *
25
25
  * @example
26
26
  * ```ts
@@ -33,22 +33,6 @@ export class Invocations extends APIResource {
33
33
  retrieve(invocationID, options) {
34
34
  return this._client.get(path `/agents/auth/invocations/${invocationID}`, options);
35
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
36
  /**
53
37
  * Validates the handoff code and returns a JWT token for subsequent requests. No
54
38
  * authentication required (the handoff code serves as the credential).
@@ -66,8 +50,9 @@ export class Invocations extends APIResource {
66
50
  return this._client.post(path `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
67
51
  }
68
52
  /**
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.
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.
71
56
  *
72
57
  * @example
73
58
  * ```ts
@@ -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;;;;;;;;;;;;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,CAA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,CAAC,CAAC;IACxG,CAAC;CACF"}
@@ -1,3 +1,3 @@
1
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";
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
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +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"}
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 +1,3 @@
1
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";
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
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +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"}
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 +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"}
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 +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"}
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"}
@@ -111,7 +111,7 @@ export interface BrowserPool {
111
111
  /**
112
112
  * Configuration used to create all browsers in this pool
113
113
  */
114
- browser_pool_config: BrowserPoolRequest;
114
+ browser_pool_config: BrowserPool.BrowserPoolConfig;
115
115
  /**
116
116
  * Timestamp when the browser pool was created
117
117
  */
@@ -121,104 +121,69 @@ export interface BrowserPool {
121
121
  */
122
122
  name?: string;
123
123
  }
124
- /**
125
- * Request body for acquiring a browser from the pool.
126
- */
127
- export interface BrowserPoolAcquireRequest {
128
- /**
129
- * Maximum number of seconds to wait for a browser to be available. Defaults to the
130
- * calculated time it would take to fill the pool at the currently configured fill
131
- * rate.
132
- */
133
- acquire_timeout_seconds?: number;
134
- }
135
- /**
136
- * Request body for releasing a browser back to the pool.
137
- */
138
- export interface BrowserPoolReleaseRequest {
139
- /**
140
- * Browser session ID to release back to the pool
141
- */
142
- session_id: string;
143
- /**
144
- * Whether to reuse the browser instance or destroy it and create a new one.
145
- * Defaults to true.
146
- */
147
- reuse?: boolean;
148
- }
149
- /**
150
- * Parameters for creating a browser pool. All browsers in the pool will be created
151
- * with the same configuration.
152
- */
153
- export interface BrowserPoolRequest {
154
- /**
155
- * Number of browsers to create in the pool
156
- */
157
- size: number;
158
- /**
159
- * List of browser extensions to load into the session. Provide each by id or name.
160
- */
161
- extensions?: Array<Shared.BrowserExtension>;
162
- /**
163
- * Percentage of the pool to fill per minute. Defaults to 10%.
164
- */
165
- fill_rate_per_minute?: number;
166
- /**
167
- * If true, launches the browser using a headless image. Defaults to false.
168
- */
169
- headless?: boolean;
170
- /**
171
- * If true, launches the browser in kiosk mode to hide address bar and tabs in live
172
- * view.
173
- */
174
- kiosk_mode?: boolean;
124
+ export declare namespace BrowserPool {
175
125
  /**
176
- * Optional name for the browser pool. Must be unique within the organization.
177
- */
178
- name?: string;
179
- /**
180
- * Profile selection for the browser session. Provide either id or name. If
181
- * specified, the matching profile will be loaded into the browser session.
182
- * Profiles must be created beforehand.
183
- */
184
- profile?: Shared.BrowserProfile;
185
- /**
186
- * Optional proxy to associate to the browser session. Must reference a proxy
187
- * belonging to the caller's org.
188
- */
189
- proxy_id?: string;
190
- /**
191
- * If true, launches the browser in stealth mode to reduce detection by anti-bot
192
- * mechanisms.
193
- */
194
- stealth?: boolean;
195
- /**
196
- * Default idle timeout in seconds for browsers acquired from this pool before they
197
- * are destroyed. Defaults to 600 seconds if not specified
198
- */
199
- timeout_seconds?: number;
200
- /**
201
- * Initial browser window size in pixels with optional refresh rate. If omitted,
202
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
203
- * supported. The server will reject unsupported combinations. Supported
204
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
205
- * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
206
- * automatically determined from the width and height if they match a supported
207
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
208
- * live view browser
209
- */
210
- viewport?: Shared.BrowserViewport;
211
- }
212
- /**
213
- * Parameters for updating a browser pool. All browsers in the pool will be created
214
- * with the same configuration.
215
- */
216
- export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
217
- /**
218
- * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
219
- * to false.
126
+ * Configuration used to create all browsers in this pool
220
127
  */
221
- discard_all_idle?: boolean;
128
+ interface BrowserPoolConfig {
129
+ /**
130
+ * Number of browsers to create in the pool
131
+ */
132
+ size: number;
133
+ /**
134
+ * List of browser extensions to load into the session. Provide each by id or name.
135
+ */
136
+ extensions?: Array<Shared.BrowserExtension>;
137
+ /**
138
+ * Percentage of the pool to fill per minute. Defaults to 10%.
139
+ */
140
+ fill_rate_per_minute?: number;
141
+ /**
142
+ * If true, launches the browser using a headless image. Defaults to false.
143
+ */
144
+ headless?: boolean;
145
+ /**
146
+ * If true, launches the browser in kiosk mode to hide address bar and tabs in live
147
+ * view.
148
+ */
149
+ kiosk_mode?: boolean;
150
+ /**
151
+ * Optional name for the browser pool. Must be unique within the organization.
152
+ */
153
+ name?: string;
154
+ /**
155
+ * Profile selection for the browser session. Provide either id or name. If
156
+ * specified, the matching profile will be loaded into the browser session.
157
+ * Profiles must be created beforehand.
158
+ */
159
+ profile?: Shared.BrowserProfile;
160
+ /**
161
+ * Optional proxy to associate to the browser session. Must reference a proxy
162
+ * belonging to the caller's org.
163
+ */
164
+ proxy_id?: string;
165
+ /**
166
+ * If true, launches the browser in stealth mode to reduce detection by anti-bot
167
+ * mechanisms.
168
+ */
169
+ stealth?: boolean;
170
+ /**
171
+ * Default idle timeout in seconds for browsers acquired from this pool before they
172
+ * are destroyed. Defaults to 600 seconds if not specified
173
+ */
174
+ timeout_seconds?: number;
175
+ /**
176
+ * Initial browser window size in pixels with optional refresh rate. If omitted,
177
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
178
+ * supported. The server will reject unsupported combinations. Supported
179
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
180
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
181
+ * automatically determined from the width and height if they match a supported
182
+ * configuration exactly. Note: Higher resolutions may affect the responsiveness of
183
+ * live view browser
184
+ */
185
+ viewport?: Shared.BrowserViewport;
186
+ }
222
187
  }
223
188
  export type BrowserPoolListResponse = Array<BrowserPool>;
224
189
  export interface BrowserPoolAcquireResponse {
@@ -434,6 +399,6 @@ export interface BrowserPoolReleaseParams {
434
399
  reuse?: boolean;
435
400
  }
436
401
  export declare namespace BrowserPools {
437
- export { type BrowserPool as BrowserPool, type BrowserPoolAcquireRequest as BrowserPoolAcquireRequest, type BrowserPoolReleaseRequest as BrowserPoolReleaseRequest, type BrowserPoolRequest as BrowserPoolRequest, type BrowserPoolUpdateRequest as BrowserPoolUpdateRequest, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
402
+ export { type BrowserPool as BrowserPool, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
438
403
  }
439
404
  //# sourceMappingURL=browser-pools.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-pools.d.mts","sourceRoot":"","sources":["../src/resources/browser-pools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxF;;;;;;;;;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ACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -111,7 +111,7 @@ export interface BrowserPool {
111
111
  /**
112
112
  * Configuration used to create all browsers in this pool
113
113
  */
114
- browser_pool_config: BrowserPoolRequest;
114
+ browser_pool_config: BrowserPool.BrowserPoolConfig;
115
115
  /**
116
116
  * Timestamp when the browser pool was created
117
117
  */
@@ -121,104 +121,69 @@ export interface BrowserPool {
121
121
  */
122
122
  name?: string;
123
123
  }
124
- /**
125
- * Request body for acquiring a browser from the pool.
126
- */
127
- export interface BrowserPoolAcquireRequest {
128
- /**
129
- * Maximum number of seconds to wait for a browser to be available. Defaults to the
130
- * calculated time it would take to fill the pool at the currently configured fill
131
- * rate.
132
- */
133
- acquire_timeout_seconds?: number;
134
- }
135
- /**
136
- * Request body for releasing a browser back to the pool.
137
- */
138
- export interface BrowserPoolReleaseRequest {
139
- /**
140
- * Browser session ID to release back to the pool
141
- */
142
- session_id: string;
143
- /**
144
- * Whether to reuse the browser instance or destroy it and create a new one.
145
- * Defaults to true.
146
- */
147
- reuse?: boolean;
148
- }
149
- /**
150
- * Parameters for creating a browser pool. All browsers in the pool will be created
151
- * with the same configuration.
152
- */
153
- export interface BrowserPoolRequest {
154
- /**
155
- * Number of browsers to create in the pool
156
- */
157
- size: number;
158
- /**
159
- * List of browser extensions to load into the session. Provide each by id or name.
160
- */
161
- extensions?: Array<Shared.BrowserExtension>;
162
- /**
163
- * Percentage of the pool to fill per minute. Defaults to 10%.
164
- */
165
- fill_rate_per_minute?: number;
166
- /**
167
- * If true, launches the browser using a headless image. Defaults to false.
168
- */
169
- headless?: boolean;
170
- /**
171
- * If true, launches the browser in kiosk mode to hide address bar and tabs in live
172
- * view.
173
- */
174
- kiosk_mode?: boolean;
124
+ export declare namespace BrowserPool {
175
125
  /**
176
- * Optional name for the browser pool. Must be unique within the organization.
177
- */
178
- name?: string;
179
- /**
180
- * Profile selection for the browser session. Provide either id or name. If
181
- * specified, the matching profile will be loaded into the browser session.
182
- * Profiles must be created beforehand.
183
- */
184
- profile?: Shared.BrowserProfile;
185
- /**
186
- * Optional proxy to associate to the browser session. Must reference a proxy
187
- * belonging to the caller's org.
188
- */
189
- proxy_id?: string;
190
- /**
191
- * If true, launches the browser in stealth mode to reduce detection by anti-bot
192
- * mechanisms.
193
- */
194
- stealth?: boolean;
195
- /**
196
- * Default idle timeout in seconds for browsers acquired from this pool before they
197
- * are destroyed. Defaults to 600 seconds if not specified
198
- */
199
- timeout_seconds?: number;
200
- /**
201
- * Initial browser window size in pixels with optional refresh rate. If omitted,
202
- * image defaults apply (1920x1080@25). Only specific viewport configurations are
203
- * supported. The server will reject unsupported combinations. Supported
204
- * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
205
- * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
206
- * automatically determined from the width and height if they match a supported
207
- * configuration exactly. Note: Higher resolutions may affect the responsiveness of
208
- * live view browser
209
- */
210
- viewport?: Shared.BrowserViewport;
211
- }
212
- /**
213
- * Parameters for updating a browser pool. All browsers in the pool will be created
214
- * with the same configuration.
215
- */
216
- export interface BrowserPoolUpdateRequest extends BrowserPoolRequest {
217
- /**
218
- * Whether to discard all idle browsers and rebuild the pool immediately. Defaults
219
- * to false.
126
+ * Configuration used to create all browsers in this pool
220
127
  */
221
- discard_all_idle?: boolean;
128
+ interface BrowserPoolConfig {
129
+ /**
130
+ * Number of browsers to create in the pool
131
+ */
132
+ size: number;
133
+ /**
134
+ * List of browser extensions to load into the session. Provide each by id or name.
135
+ */
136
+ extensions?: Array<Shared.BrowserExtension>;
137
+ /**
138
+ * Percentage of the pool to fill per minute. Defaults to 10%.
139
+ */
140
+ fill_rate_per_minute?: number;
141
+ /**
142
+ * If true, launches the browser using a headless image. Defaults to false.
143
+ */
144
+ headless?: boolean;
145
+ /**
146
+ * If true, launches the browser in kiosk mode to hide address bar and tabs in live
147
+ * view.
148
+ */
149
+ kiosk_mode?: boolean;
150
+ /**
151
+ * Optional name for the browser pool. Must be unique within the organization.
152
+ */
153
+ name?: string;
154
+ /**
155
+ * Profile selection for the browser session. Provide either id or name. If
156
+ * specified, the matching profile will be loaded into the browser session.
157
+ * Profiles must be created beforehand.
158
+ */
159
+ profile?: Shared.BrowserProfile;
160
+ /**
161
+ * Optional proxy to associate to the browser session. Must reference a proxy
162
+ * belonging to the caller's org.
163
+ */
164
+ proxy_id?: string;
165
+ /**
166
+ * If true, launches the browser in stealth mode to reduce detection by anti-bot
167
+ * mechanisms.
168
+ */
169
+ stealth?: boolean;
170
+ /**
171
+ * Default idle timeout in seconds for browsers acquired from this pool before they
172
+ * are destroyed. Defaults to 600 seconds if not specified
173
+ */
174
+ timeout_seconds?: number;
175
+ /**
176
+ * Initial browser window size in pixels with optional refresh rate. If omitted,
177
+ * image defaults apply (1920x1080@25). Only specific viewport configurations are
178
+ * supported. The server will reject unsupported combinations. Supported
179
+ * resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
180
+ * 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
181
+ * automatically determined from the width and height if they match a supported
182
+ * configuration exactly. Note: Higher resolutions may affect the responsiveness of
183
+ * live view browser
184
+ */
185
+ viewport?: Shared.BrowserViewport;
186
+ }
222
187
  }
223
188
  export type BrowserPoolListResponse = Array<BrowserPool>;
224
189
  export interface BrowserPoolAcquireResponse {
@@ -434,6 +399,6 @@ export interface BrowserPoolReleaseParams {
434
399
  reuse?: boolean;
435
400
  }
436
401
  export declare namespace BrowserPools {
437
- export { type BrowserPool as BrowserPool, type BrowserPoolAcquireRequest as BrowserPoolAcquireRequest, type BrowserPoolReleaseRequest as BrowserPoolReleaseRequest, type BrowserPoolRequest as BrowserPoolRequest, type BrowserPoolUpdateRequest as BrowserPoolUpdateRequest, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
402
+ export { type BrowserPool as BrowserPool, type BrowserPoolListResponse as BrowserPoolListResponse, type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse, type BrowserPoolCreateParams as BrowserPoolCreateParams, type BrowserPoolUpdateParams as BrowserPoolUpdateParams, type BrowserPoolDeleteParams as BrowserPoolDeleteParams, type BrowserPoolAcquireParams as BrowserPoolAcquireParams, type BrowserPoolReleaseParams as BrowserPoolReleaseParams, };
438
403
  }
439
404
  //# sourceMappingURL=browser-pools.d.ts.map