@onkernel/sdk 0.61.0 → 0.62.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 +11 -0
- package/client.d.mts +8 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -8
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +10 -4
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +10 -4
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browser-pools.js +7 -3
- package/resources/browser-pools.js.map +1 -1
- package/resources/browser-pools.mjs +7 -3
- package/resources/browser-pools.mjs.map +1 -1
- package/resources/credential-providers.d.mts +10 -5
- package/resources/credential-providers.d.mts.map +1 -1
- package/resources/credential-providers.d.ts +10 -5
- package/resources/credential-providers.d.ts.map +1 -1
- package/resources/credential-providers.js +10 -4
- package/resources/credential-providers.js.map +1 -1
- package/resources/credential-providers.mjs +10 -4
- package/resources/credential-providers.mjs.map +1 -1
- package/resources/extensions.d.mts +35 -31
- package/resources/extensions.d.mts.map +1 -1
- package/resources/extensions.d.ts +35 -31
- package/resources/extensions.d.ts.map +1 -1
- package/resources/extensions.js +10 -3
- package/resources/extensions.js.map +1 -1
- package/resources/extensions.mjs +10 -3
- package/resources/extensions.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/proxies.d.mts +111 -110
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +111 -110
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +3 -2
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +3 -2
- package/resources/proxies.mjs.map +1 -1
- package/src/client.ts +16 -4
- package/src/resources/browser-pools.ts +16 -6
- package/src/resources/credential-providers.ts +19 -7
- package/src/resources/extensions.ts +41 -29
- package/src/resources/index.ts +8 -2
- package/src/resources/proxies.ts +120 -114
- 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
package/resources/proxies.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
/**
|
|
5
6
|
* Create and manage proxy configurations for routing browser traffic.
|
|
@@ -16,7 +17,7 @@ export declare class Proxies extends APIResource {
|
|
|
16
17
|
/**
|
|
17
18
|
* List proxies owned by the caller's organization.
|
|
18
19
|
*/
|
|
19
|
-
list(options?: RequestOptions):
|
|
20
|
+
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): PagePromise<ProxyListResponsesOffsetPagination, ProxyListResponse>;
|
|
20
21
|
/**
|
|
21
22
|
* Soft delete a proxy. Sessions referencing it are not modified.
|
|
22
23
|
*/
|
|
@@ -31,6 +32,7 @@ export declare class Proxies extends APIResource {
|
|
|
31
32
|
*/
|
|
32
33
|
check(id: string, body?: ProxyCheckParams | null | undefined, options?: RequestOptions): APIPromise<ProxyCheckResponse>;
|
|
33
34
|
}
|
|
35
|
+
export type ProxyListResponsesOffsetPagination = OffsetPagination<ProxyListResponse>;
|
|
34
36
|
/**
|
|
35
37
|
* Configuration for routing traffic through a proxy.
|
|
36
38
|
*/
|
|
@@ -285,134 +287,131 @@ export declare namespace ProxyRetrieveResponse {
|
|
|
285
287
|
username?: string;
|
|
286
288
|
}
|
|
287
289
|
}
|
|
288
|
-
|
|
290
|
+
/**
|
|
291
|
+
* Configuration for routing traffic through a proxy.
|
|
292
|
+
*/
|
|
293
|
+
export interface ProxyListResponse {
|
|
294
|
+
/**
|
|
295
|
+
* Proxy type to use. In terms of quality for avoiding bot-detection, from best to
|
|
296
|
+
* worst: `mobile` > `residential` > `isp` > `datacenter`.
|
|
297
|
+
*/
|
|
298
|
+
type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
|
|
299
|
+
id?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Hostnames that should bypass the parent proxy and connect directly.
|
|
302
|
+
*/
|
|
303
|
+
bypass_hosts?: Array<string>;
|
|
304
|
+
/**
|
|
305
|
+
* Configuration specific to the selected proxy `type`.
|
|
306
|
+
*/
|
|
307
|
+
config?: ProxyListResponse.DatacenterProxyConfig | ProxyListResponse.IspProxyConfig | ProxyListResponse.ResidentialProxyConfig | ProxyListResponse.MobileProxyConfig | ProxyListResponse.CustomProxyConfig;
|
|
308
|
+
/**
|
|
309
|
+
* IP address that the proxy uses when making requests.
|
|
310
|
+
*/
|
|
311
|
+
ip_address?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Timestamp of the last health check performed on this proxy.
|
|
314
|
+
*/
|
|
315
|
+
last_checked?: string;
|
|
316
|
+
/**
|
|
317
|
+
* Readable name of the proxy.
|
|
318
|
+
*/
|
|
319
|
+
name?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Protocol to use for the proxy connection.
|
|
322
|
+
*/
|
|
323
|
+
protocol?: 'http' | 'https';
|
|
324
|
+
/**
|
|
325
|
+
* Current health status of the proxy.
|
|
326
|
+
*/
|
|
327
|
+
status?: 'available' | 'unavailable';
|
|
328
|
+
}
|
|
289
329
|
export declare namespace ProxyListResponse {
|
|
290
330
|
/**
|
|
291
|
-
* Configuration for
|
|
331
|
+
* Configuration for a datacenter proxy.
|
|
332
|
+
*/
|
|
333
|
+
interface DatacenterProxyConfig {
|
|
334
|
+
/**
|
|
335
|
+
* ISO 3166 country code. Defaults to US if not provided.
|
|
336
|
+
*/
|
|
337
|
+
country?: string;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Configuration for an ISP proxy.
|
|
341
|
+
*/
|
|
342
|
+
interface IspProxyConfig {
|
|
343
|
+
/**
|
|
344
|
+
* ISO 3166 country code. Defaults to US if not provided.
|
|
345
|
+
*/
|
|
346
|
+
country?: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Configuration for residential proxies.
|
|
292
350
|
*/
|
|
293
|
-
interface
|
|
351
|
+
interface ResidentialProxyConfig {
|
|
294
352
|
/**
|
|
295
|
-
*
|
|
296
|
-
* worst: `mobile` > `residential` > `isp` > `datacenter`.
|
|
353
|
+
* Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html
|
|
297
354
|
*/
|
|
298
|
-
|
|
299
|
-
id?: string;
|
|
355
|
+
asn?: string;
|
|
300
356
|
/**
|
|
301
|
-
*
|
|
357
|
+
* City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be
|
|
358
|
+
* provided.
|
|
359
|
+
*/
|
|
360
|
+
city?: string;
|
|
361
|
+
/**
|
|
362
|
+
* ISO 3166 country code.
|
|
302
363
|
*/
|
|
303
|
-
|
|
364
|
+
country?: string;
|
|
304
365
|
/**
|
|
305
|
-
*
|
|
366
|
+
* @deprecated Operating system of the residential device.
|
|
306
367
|
*/
|
|
307
|
-
|
|
368
|
+
os?: 'windows' | 'macos' | 'android';
|
|
308
369
|
/**
|
|
309
|
-
*
|
|
370
|
+
* Two-letter state code.
|
|
310
371
|
*/
|
|
311
|
-
|
|
372
|
+
state?: string;
|
|
312
373
|
/**
|
|
313
|
-
*
|
|
374
|
+
* US ZIP code.
|
|
314
375
|
*/
|
|
315
|
-
|
|
376
|
+
zip?: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Configuration for mobile proxies.
|
|
380
|
+
*/
|
|
381
|
+
interface MobileProxyConfig {
|
|
316
382
|
/**
|
|
317
|
-
*
|
|
383
|
+
* Provider city alias. Mobile carrier routing can make observed geo vary.
|
|
318
384
|
*/
|
|
319
|
-
|
|
385
|
+
city?: string;
|
|
320
386
|
/**
|
|
321
|
-
*
|
|
387
|
+
* ISO 3166 country code
|
|
322
388
|
*/
|
|
323
|
-
|
|
389
|
+
country?: string;
|
|
324
390
|
/**
|
|
325
|
-
*
|
|
391
|
+
* US-only state code. Mobile carrier routing can make observed geo vary.
|
|
326
392
|
*/
|
|
327
|
-
|
|
393
|
+
state?: string;
|
|
328
394
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
* Configuration for residential proxies.
|
|
350
|
-
*/
|
|
351
|
-
interface ResidentialProxyConfig {
|
|
352
|
-
/**
|
|
353
|
-
* Autonomous system number. See https://bgp.potaroo.net/cidr/autnums.html
|
|
354
|
-
*/
|
|
355
|
-
asn?: string;
|
|
356
|
-
/**
|
|
357
|
-
* City name (no spaces, e.g. `sanfrancisco`). If provided, `country` must also be
|
|
358
|
-
* provided.
|
|
359
|
-
*/
|
|
360
|
-
city?: string;
|
|
361
|
-
/**
|
|
362
|
-
* ISO 3166 country code.
|
|
363
|
-
*/
|
|
364
|
-
country?: string;
|
|
365
|
-
/**
|
|
366
|
-
* @deprecated Operating system of the residential device.
|
|
367
|
-
*/
|
|
368
|
-
os?: 'windows' | 'macos' | 'android';
|
|
369
|
-
/**
|
|
370
|
-
* Two-letter state code.
|
|
371
|
-
*/
|
|
372
|
-
state?: string;
|
|
373
|
-
/**
|
|
374
|
-
* US ZIP code.
|
|
375
|
-
*/
|
|
376
|
-
zip?: string;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Configuration for mobile proxies.
|
|
380
|
-
*/
|
|
381
|
-
interface MobileProxyConfig {
|
|
382
|
-
/**
|
|
383
|
-
* Provider city alias. Mobile carrier routing can make observed geo vary.
|
|
384
|
-
*/
|
|
385
|
-
city?: string;
|
|
386
|
-
/**
|
|
387
|
-
* ISO 3166 country code
|
|
388
|
-
*/
|
|
389
|
-
country?: string;
|
|
390
|
-
/**
|
|
391
|
-
* US-only state code. Mobile carrier routing can make observed geo vary.
|
|
392
|
-
*/
|
|
393
|
-
state?: string;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Configuration for a custom proxy (e.g., private proxy server).
|
|
397
|
-
*/
|
|
398
|
-
interface CustomProxyConfig {
|
|
399
|
-
/**
|
|
400
|
-
* Proxy host address or IP.
|
|
401
|
-
*/
|
|
402
|
-
host: string;
|
|
403
|
-
/**
|
|
404
|
-
* Proxy port.
|
|
405
|
-
*/
|
|
406
|
-
port: number;
|
|
407
|
-
/**
|
|
408
|
-
* Whether the proxy has a password.
|
|
409
|
-
*/
|
|
410
|
-
has_password?: boolean;
|
|
411
|
-
/**
|
|
412
|
-
* Username for proxy authentication.
|
|
413
|
-
*/
|
|
414
|
-
username?: string;
|
|
415
|
-
}
|
|
395
|
+
/**
|
|
396
|
+
* Configuration for a custom proxy (e.g., private proxy server).
|
|
397
|
+
*/
|
|
398
|
+
interface CustomProxyConfig {
|
|
399
|
+
/**
|
|
400
|
+
* Proxy host address or IP.
|
|
401
|
+
*/
|
|
402
|
+
host: string;
|
|
403
|
+
/**
|
|
404
|
+
* Proxy port.
|
|
405
|
+
*/
|
|
406
|
+
port: number;
|
|
407
|
+
/**
|
|
408
|
+
* Whether the proxy has a password.
|
|
409
|
+
*/
|
|
410
|
+
has_password?: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Username for proxy authentication.
|
|
413
|
+
*/
|
|
414
|
+
username?: string;
|
|
416
415
|
}
|
|
417
416
|
}
|
|
418
417
|
/**
|
|
@@ -653,6 +652,8 @@ export declare namespace ProxyCreateParams {
|
|
|
653
652
|
username?: string;
|
|
654
653
|
}
|
|
655
654
|
}
|
|
655
|
+
export interface ProxyListParams extends OffsetPaginationParams {
|
|
656
|
+
}
|
|
656
657
|
export interface ProxyCheckParams {
|
|
657
658
|
/**
|
|
658
659
|
* An optional URL to test reachability against. If provided, the proxy check will
|
|
@@ -671,6 +672,6 @@ export interface ProxyCheckParams {
|
|
|
671
672
|
url?: string;
|
|
672
673
|
}
|
|
673
674
|
export declare namespace Proxies {
|
|
674
|
-
export { type ProxyCreateResponse as ProxyCreateResponse, type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyListResponse as ProxyListResponse, type ProxyCheckResponse as ProxyCheckResponse, type ProxyCreateParams as ProxyCreateParams, type ProxyCheckParams as ProxyCheckParams, };
|
|
675
|
+
export { type ProxyCreateResponse as ProxyCreateResponse, type ProxyRetrieveResponse as ProxyRetrieveResponse, type ProxyListResponse as ProxyListResponse, type ProxyCheckResponse as ProxyCheckResponse, type ProxyListResponsesOffsetPagination as ProxyListResponsesOffsetPagination, type ProxyCreateParams as ProxyCreateParams, type ProxyListParams as ProxyListParams, type ProxyCheckParams as ProxyCheckParams, };
|
|
675
676
|
}
|
|
676
677
|
//# sourceMappingURL=proxies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;
|
|
1
|
+
{"version":3,"file":"proxies.d.ts","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,8BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;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AAM,CAAC;QAEb;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,sBAAsB;CAAG;AAElE,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/resources/proxies.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Proxies = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const headers_1 = require("../internal/headers.js");
|
|
7
8
|
const path_1 = require("../internal/utils/path.js");
|
|
8
9
|
/**
|
|
@@ -24,8 +25,8 @@ class Proxies extends resource_1.APIResource {
|
|
|
24
25
|
/**
|
|
25
26
|
* List proxies owned by the caller's organization.
|
|
26
27
|
*/
|
|
27
|
-
list(options) {
|
|
28
|
-
return this._client.
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
return this._client.getAPIList('/proxies', (pagination_1.OffsetPagination), { query, ...options });
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Soft delete a proxy. Sessions referencing it are not modified.
|
package/resources/proxies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.js","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"proxies.js","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,6BAAmC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CACH,EAAU,EACV,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,YAAY,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAlDD,0BAkDC"}
|
package/resources/proxies.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { OffsetPagination } from "../core/pagination.mjs";
|
|
3
4
|
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
5
|
import { path } from "../internal/utils/path.mjs";
|
|
5
6
|
/**
|
|
@@ -21,8 +22,8 @@ export class Proxies extends APIResource {
|
|
|
21
22
|
/**
|
|
22
23
|
* List proxies owned by the caller's organization.
|
|
23
24
|
*/
|
|
24
|
-
list(options) {
|
|
25
|
-
return this._client.
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/proxies', (OffsetPagination), { query, ...options });
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Soft delete a proxy. Sessions referencing it are not modified.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxies.mjs","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAI,
|
|
1
|
+
{"version":3,"file":"proxies.mjs","sourceRoot":"","sources":["../src/resources/proxies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,gBAAgB,EAA4C,+BAA2B;AAChG,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,gBAAmC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,YAAY,EAAE,EAAE,EAAE;YAC/C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CACH,EAAU,EACV,OAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,YAAY,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -40,10 +40,11 @@ import {
|
|
|
40
40
|
BrowserPoolAcquireResponse,
|
|
41
41
|
BrowserPoolCreateParams,
|
|
42
42
|
BrowserPoolDeleteParams,
|
|
43
|
-
|
|
43
|
+
BrowserPoolListParams,
|
|
44
44
|
BrowserPoolReleaseParams,
|
|
45
45
|
BrowserPoolUpdateParams,
|
|
46
46
|
BrowserPools,
|
|
47
|
+
BrowserPoolsOffsetPagination,
|
|
47
48
|
} from './resources/browser-pools';
|
|
48
49
|
import {
|
|
49
50
|
CreateCredentialProviderRequest,
|
|
@@ -51,10 +52,11 @@ import {
|
|
|
51
52
|
CredentialProviderCreateParams,
|
|
52
53
|
CredentialProviderItem,
|
|
53
54
|
CredentialProviderListItemsResponse,
|
|
54
|
-
|
|
55
|
+
CredentialProviderListParams,
|
|
55
56
|
CredentialProviderTestResult,
|
|
56
57
|
CredentialProviderUpdateParams,
|
|
57
58
|
CredentialProviders,
|
|
59
|
+
CredentialProvidersOffsetPagination,
|
|
58
60
|
UpdateCredentialProviderRequest,
|
|
59
61
|
} from './resources/credential-providers';
|
|
60
62
|
import {
|
|
@@ -83,7 +85,9 @@ import {
|
|
|
83
85
|
import { KernelApp } from './core/app-framework';
|
|
84
86
|
import {
|
|
85
87
|
ExtensionDownloadFromChromeStoreParams,
|
|
88
|
+
ExtensionListParams,
|
|
86
89
|
ExtensionListResponse,
|
|
90
|
+
ExtensionListResponsesOffsetPagination,
|
|
87
91
|
ExtensionUploadParams,
|
|
88
92
|
ExtensionUploadResponse,
|
|
89
93
|
Extensions,
|
|
@@ -110,7 +114,9 @@ import {
|
|
|
110
114
|
ProxyCheckResponse,
|
|
111
115
|
ProxyCreateParams,
|
|
112
116
|
ProxyCreateResponse,
|
|
117
|
+
ProxyListParams,
|
|
113
118
|
ProxyListResponse,
|
|
119
|
+
ProxyListResponsesOffsetPagination,
|
|
114
120
|
ProxyRetrieveResponse,
|
|
115
121
|
} from './resources/proxies';
|
|
116
122
|
import { Auth } from './resources/auth/auth';
|
|
@@ -1081,7 +1087,9 @@ export declare namespace Kernel {
|
|
|
1081
1087
|
type ProxyRetrieveResponse as ProxyRetrieveResponse,
|
|
1082
1088
|
type ProxyListResponse as ProxyListResponse,
|
|
1083
1089
|
type ProxyCheckResponse as ProxyCheckResponse,
|
|
1090
|
+
type ProxyListResponsesOffsetPagination as ProxyListResponsesOffsetPagination,
|
|
1084
1091
|
type ProxyCreateParams as ProxyCreateParams,
|
|
1092
|
+
type ProxyListParams as ProxyListParams,
|
|
1085
1093
|
type ProxyCheckParams as ProxyCheckParams,
|
|
1086
1094
|
};
|
|
1087
1095
|
|
|
@@ -1089,6 +1097,8 @@ export declare namespace Kernel {
|
|
|
1089
1097
|
Extensions as Extensions,
|
|
1090
1098
|
type ExtensionListResponse as ExtensionListResponse,
|
|
1091
1099
|
type ExtensionUploadResponse as ExtensionUploadResponse,
|
|
1100
|
+
type ExtensionListResponsesOffsetPagination as ExtensionListResponsesOffsetPagination,
|
|
1101
|
+
type ExtensionListParams as ExtensionListParams,
|
|
1092
1102
|
type ExtensionDownloadFromChromeStoreParams as ExtensionDownloadFromChromeStoreParams,
|
|
1093
1103
|
type ExtensionUploadParams as ExtensionUploadParams,
|
|
1094
1104
|
};
|
|
@@ -1096,10 +1106,11 @@ export declare namespace Kernel {
|
|
|
1096
1106
|
export {
|
|
1097
1107
|
BrowserPools as BrowserPools,
|
|
1098
1108
|
type BrowserPool as BrowserPool,
|
|
1099
|
-
type BrowserPoolListResponse as BrowserPoolListResponse,
|
|
1100
1109
|
type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse,
|
|
1110
|
+
type BrowserPoolsOffsetPagination as BrowserPoolsOffsetPagination,
|
|
1101
1111
|
type BrowserPoolCreateParams as BrowserPoolCreateParams,
|
|
1102
1112
|
type BrowserPoolUpdateParams as BrowserPoolUpdateParams,
|
|
1113
|
+
type BrowserPoolListParams as BrowserPoolListParams,
|
|
1103
1114
|
type BrowserPoolDeleteParams as BrowserPoolDeleteParams,
|
|
1104
1115
|
type BrowserPoolAcquireParams as BrowserPoolAcquireParams,
|
|
1105
1116
|
type BrowserPoolReleaseParams as BrowserPoolReleaseParams,
|
|
@@ -1145,10 +1156,11 @@ export declare namespace Kernel {
|
|
|
1145
1156
|
type CredentialProviderItem as CredentialProviderItem,
|
|
1146
1157
|
type CredentialProviderTestResult as CredentialProviderTestResult,
|
|
1147
1158
|
type UpdateCredentialProviderRequest as UpdateCredentialProviderRequest,
|
|
1148
|
-
type CredentialProviderListResponse as CredentialProviderListResponse,
|
|
1149
1159
|
type CredentialProviderListItemsResponse as CredentialProviderListItemsResponse,
|
|
1160
|
+
type CredentialProvidersOffsetPagination as CredentialProvidersOffsetPagination,
|
|
1150
1161
|
type CredentialProviderCreateParams as CredentialProviderCreateParams,
|
|
1151
1162
|
type CredentialProviderUpdateParams as CredentialProviderUpdateParams,
|
|
1163
|
+
type CredentialProviderListParams as CredentialProviderListParams,
|
|
1152
1164
|
};
|
|
1153
1165
|
|
|
1154
1166
|
export type AppAction = API.AppAction;
|
|
@@ -5,6 +5,7 @@ import * as Shared from './shared';
|
|
|
5
5
|
import * as BrowsersAPI from './browsers/browsers';
|
|
6
6
|
import * as TelemetryAPI from './browsers/telemetry';
|
|
7
7
|
import { APIPromise } from '../core/api-promise';
|
|
8
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
|
|
8
9
|
import { buildHeaders } from '../internal/headers';
|
|
9
10
|
import { RequestOptions } from '../internal/request-options';
|
|
10
11
|
import { path } from '../internal/utils/path';
|
|
@@ -60,11 +61,17 @@ export class BrowserPools extends APIResource {
|
|
|
60
61
|
*
|
|
61
62
|
* @example
|
|
62
63
|
* ```ts
|
|
63
|
-
*
|
|
64
|
+
* // Automatically fetches more pages as needed.
|
|
65
|
+
* for await (const browserPool of client.browserPools.list()) {
|
|
66
|
+
* // ...
|
|
67
|
+
* }
|
|
64
68
|
* ```
|
|
65
69
|
*/
|
|
66
|
-
list(
|
|
67
|
-
|
|
70
|
+
list(
|
|
71
|
+
query: BrowserPoolListParams | null | undefined = {},
|
|
72
|
+
options?: RequestOptions,
|
|
73
|
+
): PagePromise<BrowserPoolsOffsetPagination, BrowserPool> {
|
|
74
|
+
return this._client.getAPIList('/browser_pools', OffsetPagination<BrowserPool>, { query, ...options });
|
|
68
75
|
}
|
|
69
76
|
|
|
70
77
|
/**
|
|
@@ -143,6 +150,8 @@ export class BrowserPools extends APIResource {
|
|
|
143
150
|
}
|
|
144
151
|
}
|
|
145
152
|
|
|
153
|
+
export type BrowserPoolsOffsetPagination = OffsetPagination<BrowserPool>;
|
|
154
|
+
|
|
146
155
|
/**
|
|
147
156
|
* A browser pool containing multiple identically configured browsers.
|
|
148
157
|
*/
|
|
@@ -276,8 +285,6 @@ export namespace BrowserPool {
|
|
|
276
285
|
}
|
|
277
286
|
}
|
|
278
287
|
|
|
279
|
-
export type BrowserPoolListResponse = Array<BrowserPool>;
|
|
280
|
-
|
|
281
288
|
export interface BrowserPoolAcquireResponse {
|
|
282
289
|
/**
|
|
283
290
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
@@ -591,6 +598,8 @@ export interface BrowserPoolUpdateParams {
|
|
|
591
598
|
viewport?: Shared.BrowserViewport;
|
|
592
599
|
}
|
|
593
600
|
|
|
601
|
+
export interface BrowserPoolListParams extends OffsetPaginationParams {}
|
|
602
|
+
|
|
594
603
|
export interface BrowserPoolDeleteParams {
|
|
595
604
|
/**
|
|
596
605
|
* If true, force delete even if browsers are currently leased. Leased browsers
|
|
@@ -624,10 +633,11 @@ export interface BrowserPoolReleaseParams {
|
|
|
624
633
|
export declare namespace BrowserPools {
|
|
625
634
|
export {
|
|
626
635
|
type BrowserPool as BrowserPool,
|
|
627
|
-
type BrowserPoolListResponse as BrowserPoolListResponse,
|
|
628
636
|
type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse,
|
|
637
|
+
type BrowserPoolsOffsetPagination as BrowserPoolsOffsetPagination,
|
|
629
638
|
type BrowserPoolCreateParams as BrowserPoolCreateParams,
|
|
630
639
|
type BrowserPoolUpdateParams as BrowserPoolUpdateParams,
|
|
640
|
+
type BrowserPoolListParams as BrowserPoolListParams,
|
|
631
641
|
type BrowserPoolDeleteParams as BrowserPoolDeleteParams,
|
|
632
642
|
type BrowserPoolAcquireParams as BrowserPoolAcquireParams,
|
|
633
643
|
type BrowserPoolReleaseParams as BrowserPoolReleaseParams,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../core/pagination';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
7
8
|
import { path } from '../internal/utils/path';
|
|
@@ -63,12 +64,20 @@ export class CredentialProviders extends APIResource {
|
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|
|
66
|
-
*
|
|
67
|
-
*
|
|
67
|
+
* // Automatically fetches more pages as needed.
|
|
68
|
+
* for await (const credentialProvider of client.credentialProviders.list()) {
|
|
69
|
+
* // ...
|
|
70
|
+
* }
|
|
68
71
|
* ```
|
|
69
72
|
*/
|
|
70
|
-
list(
|
|
71
|
-
|
|
73
|
+
list(
|
|
74
|
+
query: CredentialProviderListParams | null | undefined = {},
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): PagePromise<CredentialProvidersOffsetPagination, CredentialProvider> {
|
|
77
|
+
return this._client.getAPIList('/org/credential_providers', OffsetPagination<CredentialProvider>, {
|
|
78
|
+
query,
|
|
79
|
+
...options,
|
|
80
|
+
});
|
|
72
81
|
}
|
|
73
82
|
|
|
74
83
|
/**
|
|
@@ -115,6 +124,8 @@ export class CredentialProviders extends APIResource {
|
|
|
115
124
|
}
|
|
116
125
|
}
|
|
117
126
|
|
|
127
|
+
export type CredentialProvidersOffsetPagination = OffsetPagination<CredentialProvider>;
|
|
128
|
+
|
|
118
129
|
/**
|
|
119
130
|
* Request to create an external credential provider
|
|
120
131
|
*/
|
|
@@ -280,8 +291,6 @@ export interface UpdateCredentialProviderRequest {
|
|
|
280
291
|
priority?: number;
|
|
281
292
|
}
|
|
282
293
|
|
|
283
|
-
export type CredentialProviderListResponse = Array<CredentialProvider>;
|
|
284
|
-
|
|
285
294
|
export interface CredentialProviderListItemsResponse {
|
|
286
295
|
items?: Array<CredentialProviderItem>;
|
|
287
296
|
}
|
|
@@ -335,6 +344,8 @@ export interface CredentialProviderUpdateParams {
|
|
|
335
344
|
priority?: number;
|
|
336
345
|
}
|
|
337
346
|
|
|
347
|
+
export interface CredentialProviderListParams extends OffsetPaginationParams {}
|
|
348
|
+
|
|
338
349
|
export declare namespace CredentialProviders {
|
|
339
350
|
export {
|
|
340
351
|
type CreateCredentialProviderRequest as CreateCredentialProviderRequest,
|
|
@@ -342,9 +353,10 @@ export declare namespace CredentialProviders {
|
|
|
342
353
|
type CredentialProviderItem as CredentialProviderItem,
|
|
343
354
|
type CredentialProviderTestResult as CredentialProviderTestResult,
|
|
344
355
|
type UpdateCredentialProviderRequest as UpdateCredentialProviderRequest,
|
|
345
|
-
type CredentialProviderListResponse as CredentialProviderListResponse,
|
|
346
356
|
type CredentialProviderListItemsResponse as CredentialProviderListItemsResponse,
|
|
357
|
+
type CredentialProvidersOffsetPagination as CredentialProvidersOffsetPagination,
|
|
347
358
|
type CredentialProviderCreateParams as CredentialProviderCreateParams,
|
|
348
359
|
type CredentialProviderUpdateParams as CredentialProviderUpdateParams,
|
|
360
|
+
type CredentialProviderListParams as CredentialProviderListParams,
|
|
349
361
|
};
|
|
350
362
|
}
|