@onkernel/sdk 0.66.0 → 0.67.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 +13 -0
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +6 -1
- package/client.js.map +1 -1
- package/client.mjs +6 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +20 -20
- package/resources/auth/connections.d.ts +20 -20
- package/resources/browser-pools.d.mts +7 -7
- package/resources/browser-pools.d.ts +7 -7
- package/resources/browser-pools.js +1 -1
- package/resources/browser-pools.mjs +1 -1
- package/resources/browsers/browsers.d.mts +2 -2
- package/resources/browsers/browsers.d.ts +2 -2
- package/resources/credentials.d.mts +1 -2
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts +1 -2
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.js +1 -2
- package/resources/credentials.js.map +1 -1
- package/resources/credentials.mjs +1 -2
- package/resources/credentials.mjs.map +1 -1
- package/resources/extensions.d.mts +1 -1
- package/resources/extensions.d.ts +1 -1
- package/resources/extensions.js +1 -1
- package/resources/extensions.mjs +1 -1
- package/resources/proxies.d.mts +3 -3
- package/resources/proxies.d.ts +3 -3
- package/resources/proxies.js +3 -3
- package/resources/proxies.mjs +3 -3
- package/src/client.ts +9 -0
- package/src/resources/auth/connections.ts +20 -20
- package/src/resources/browser-pools.ts +7 -7
- package/src/resources/browsers/browsers.ts +2 -2
- package/src/resources/credentials.ts +1 -2
- package/src/resources/extensions.ts +1 -1
- package/src/resources/proxies.ts +3 -3
- 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
|
@@ -561,8 +561,8 @@ export interface ManagedAuthCreateRequest {
|
|
|
561
561
|
*/
|
|
562
562
|
login_url?: string;
|
|
563
563
|
/**
|
|
564
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
565
|
-
*
|
|
564
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
565
|
+
* project as the resource referencing it.
|
|
566
566
|
*/
|
|
567
567
|
proxy?: ManagedAuthCreateRequest.Proxy;
|
|
568
568
|
/**
|
|
@@ -603,8 +603,8 @@ export declare namespace ManagedAuthCreateRequest {
|
|
|
603
603
|
provider?: string;
|
|
604
604
|
}
|
|
605
605
|
/**
|
|
606
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
607
|
-
*
|
|
606
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
607
|
+
* project as the resource referencing it.
|
|
608
608
|
*/
|
|
609
609
|
interface Proxy {
|
|
610
610
|
/**
|
|
@@ -659,8 +659,8 @@ export interface ManagedAuthUpdateRequest {
|
|
|
659
659
|
*/
|
|
660
660
|
login_url?: string;
|
|
661
661
|
/**
|
|
662
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
663
|
-
*
|
|
662
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
663
|
+
* project as the resource referencing it.
|
|
664
664
|
*/
|
|
665
665
|
proxy?: ManagedAuthUpdateRequest.Proxy;
|
|
666
666
|
/**
|
|
@@ -699,8 +699,8 @@ export declare namespace ManagedAuthUpdateRequest {
|
|
|
699
699
|
provider?: string;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
703
|
-
*
|
|
702
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
703
|
+
* project as the resource referencing it.
|
|
704
704
|
*/
|
|
705
705
|
interface Proxy {
|
|
706
706
|
/**
|
|
@@ -1003,8 +1003,8 @@ export interface ConnectionCreateParams {
|
|
|
1003
1003
|
*/
|
|
1004
1004
|
login_url?: string;
|
|
1005
1005
|
/**
|
|
1006
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1007
|
-
*
|
|
1006
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1007
|
+
* project as the resource referencing it.
|
|
1008
1008
|
*/
|
|
1009
1009
|
proxy?: ConnectionCreateParams.Proxy;
|
|
1010
1010
|
/**
|
|
@@ -1045,8 +1045,8 @@ export declare namespace ConnectionCreateParams {
|
|
|
1045
1045
|
provider?: string;
|
|
1046
1046
|
}
|
|
1047
1047
|
/**
|
|
1048
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1049
|
-
*
|
|
1048
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1049
|
+
* project as the resource referencing it.
|
|
1050
1050
|
*/
|
|
1051
1051
|
interface Proxy {
|
|
1052
1052
|
/**
|
|
@@ -1098,8 +1098,8 @@ export interface ConnectionUpdateParams {
|
|
|
1098
1098
|
*/
|
|
1099
1099
|
login_url?: string;
|
|
1100
1100
|
/**
|
|
1101
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1102
|
-
*
|
|
1101
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1102
|
+
* project as the resource referencing it.
|
|
1103
1103
|
*/
|
|
1104
1104
|
proxy?: ConnectionUpdateParams.Proxy;
|
|
1105
1105
|
/**
|
|
@@ -1138,8 +1138,8 @@ export declare namespace ConnectionUpdateParams {
|
|
|
1138
1138
|
provider?: string;
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1142
|
-
*
|
|
1141
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1142
|
+
* project as the resource referencing it.
|
|
1143
1143
|
*/
|
|
1144
1144
|
interface Proxy {
|
|
1145
1145
|
/**
|
|
@@ -1164,8 +1164,8 @@ export interface ConnectionListParams extends OffsetPaginationParams {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
export interface ConnectionLoginParams {
|
|
1166
1166
|
/**
|
|
1167
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1168
|
-
*
|
|
1167
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1168
|
+
* project as the resource referencing it.
|
|
1169
1169
|
*/
|
|
1170
1170
|
proxy?: ConnectionLoginParams.Proxy;
|
|
1171
1171
|
/**
|
|
@@ -1176,8 +1176,8 @@ export interface ConnectionLoginParams {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
export declare namespace ConnectionLoginParams {
|
|
1178
1178
|
/**
|
|
1179
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1180
|
-
*
|
|
1179
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1180
|
+
* project as the resource referencing it.
|
|
1181
1181
|
*/
|
|
1182
1182
|
interface Proxy {
|
|
1183
1183
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class BrowserPools extends APIResource {
|
|
|
43
43
|
*/
|
|
44
44
|
update(idOrName: string, body: BrowserPoolUpdateParams, options?: RequestOptions): APIPromise<BrowserPool>;
|
|
45
45
|
/**
|
|
46
|
-
* List browser pools
|
|
46
|
+
* List browser pools in the resolved project.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* ```ts
|
|
@@ -177,8 +177,8 @@ export declare namespace BrowserPool {
|
|
|
177
177
|
*/
|
|
178
178
|
profile?: Shared.BrowserProfile;
|
|
179
179
|
/**
|
|
180
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
181
|
-
*
|
|
180
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
181
|
+
* the same project as the browser session.
|
|
182
182
|
*/
|
|
183
183
|
proxy_id?: string;
|
|
184
184
|
/**
|
|
@@ -372,8 +372,8 @@ export interface BrowserPoolCreateParams {
|
|
|
372
372
|
*/
|
|
373
373
|
profile?: Shared.BrowserProfile;
|
|
374
374
|
/**
|
|
375
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
376
|
-
*
|
|
375
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
376
|
+
* the same project as the browser session.
|
|
377
377
|
*/
|
|
378
378
|
proxy_id?: string;
|
|
379
379
|
/**
|
|
@@ -453,8 +453,8 @@ export interface BrowserPoolUpdateParams {
|
|
|
453
453
|
*/
|
|
454
454
|
profile?: Shared.BrowserProfile;
|
|
455
455
|
/**
|
|
456
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
457
|
-
*
|
|
456
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
457
|
+
* the same project as the browser session.
|
|
458
458
|
*/
|
|
459
459
|
proxy_id?: string;
|
|
460
460
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class BrowserPools extends APIResource {
|
|
|
43
43
|
*/
|
|
44
44
|
update(idOrName: string, body: BrowserPoolUpdateParams, options?: RequestOptions): APIPromise<BrowserPool>;
|
|
45
45
|
/**
|
|
46
|
-
* List browser pools
|
|
46
|
+
* List browser pools in the resolved project.
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* ```ts
|
|
@@ -177,8 +177,8 @@ export declare namespace BrowserPool {
|
|
|
177
177
|
*/
|
|
178
178
|
profile?: Shared.BrowserProfile;
|
|
179
179
|
/**
|
|
180
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
181
|
-
*
|
|
180
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
181
|
+
* the same project as the browser session.
|
|
182
182
|
*/
|
|
183
183
|
proxy_id?: string;
|
|
184
184
|
/**
|
|
@@ -372,8 +372,8 @@ export interface BrowserPoolCreateParams {
|
|
|
372
372
|
*/
|
|
373
373
|
profile?: Shared.BrowserProfile;
|
|
374
374
|
/**
|
|
375
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
376
|
-
*
|
|
375
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
376
|
+
* the same project as the browser session.
|
|
377
377
|
*/
|
|
378
378
|
proxy_id?: string;
|
|
379
379
|
/**
|
|
@@ -453,8 +453,8 @@ export interface BrowserPoolUpdateParams {
|
|
|
453
453
|
*/
|
|
454
454
|
profile?: Shared.BrowserProfile;
|
|
455
455
|
/**
|
|
456
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
457
|
-
*
|
|
456
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
457
|
+
* the same project as the browser session.
|
|
458
458
|
*/
|
|
459
459
|
proxy_id?: string;
|
|
460
460
|
/**
|
|
@@ -50,7 +50,7 @@ class BrowserPools extends resource_1.APIResource {
|
|
|
50
50
|
return this._client.patch((0, path_1.path) `/browser_pools/${idOrName}`, { body, ...options });
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* List browser pools
|
|
53
|
+
* List browser pools in the resolved project.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```ts
|
|
@@ -47,7 +47,7 @@ export class BrowserPools extends APIResource {
|
|
|
47
47
|
return this._client.patch(path `/browser_pools/${idOrName}`, { body, ...options });
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* List browser pools
|
|
50
|
+
* List browser pools in the resolved project.
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
53
|
* ```ts
|
|
@@ -694,8 +694,8 @@ export interface BrowserCreateParams {
|
|
|
694
694
|
*/
|
|
695
695
|
profile?: Shared.BrowserProfile;
|
|
696
696
|
/**
|
|
697
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
698
|
-
*
|
|
697
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
698
|
+
* the same project as the browser session.
|
|
699
699
|
*/
|
|
700
700
|
proxy_id?: string;
|
|
701
701
|
/**
|
|
@@ -694,8 +694,8 @@ export interface BrowserCreateParams {
|
|
|
694
694
|
*/
|
|
695
695
|
profile?: Shared.BrowserProfile;
|
|
696
696
|
/**
|
|
697
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
698
|
-
*
|
|
697
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
698
|
+
* the same project as the browser session.
|
|
699
699
|
*/
|
|
700
700
|
proxy_id?: string;
|
|
701
701
|
/**
|
|
@@ -46,8 +46,7 @@ export declare class Credentials extends APIResource {
|
|
|
46
46
|
*/
|
|
47
47
|
update(idOrName: string, body: CredentialUpdateParams, options?: RequestOptions): APIPromise<Credential>;
|
|
48
48
|
/**
|
|
49
|
-
* List credentials
|
|
50
|
-
* returned.
|
|
49
|
+
* List credentials in the resolved project. Credential values are not returned.
|
|
51
50
|
*
|
|
52
51
|
* @example
|
|
53
52
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.mts","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,+BAA2B;AAEhG,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAI5E;;;;;;;;;;OAUG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAIxG
|
|
1
|
+
{"version":3,"file":"credentials.d.mts","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,gBAAgB,E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KG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -46,8 +46,7 @@ export declare class Credentials extends APIResource {
|
|
|
46
46
|
*/
|
|
47
47
|
update(idOrName: string, body: CredentialUpdateParams, options?: RequestOptions): APIPromise<Credential>;
|
|
48
48
|
/**
|
|
49
|
-
* List credentials
|
|
50
|
-
* returned.
|
|
49
|
+
* List credentials in the resolved project. Credential values are not returned.
|
|
51
50
|
*
|
|
52
51
|
* @example
|
|
53
52
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BA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AAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/credentials.js
CHANGED
|
@@ -56,8 +56,7 @@ class Credentials extends resource_1.APIResource {
|
|
|
56
56
|
return this._client.patch((0, path_1.path) `/credentials/${idOrName}`, { body, ...options });
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* List credentials
|
|
60
|
-
* returned.
|
|
59
|
+
* List credentials in the resolved project. Credential values are not returned.
|
|
61
60
|
*
|
|
62
61
|
* @example
|
|
63
62
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,QAAQ,EAAE,EAAE,OAA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AAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,QAAQ,EAAE,EAAE;YACzD,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;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,QAAQ,YAAY,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAjGD,kCAiGC"}
|
|
@@ -53,8 +53,7 @@ export class Credentials extends APIResource {
|
|
|
53
53
|
return this._client.patch(path `/credentials/${idOrName}`, { body, ...options });
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* List credentials
|
|
57
|
-
* returned.
|
|
56
|
+
* List credentials in the resolved project. Credential values are not returned.
|
|
58
57
|
*
|
|
59
58
|
* @example
|
|
60
59
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.mjs","sourceRoot":"","sources":["../src/resources/credentials.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,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,I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,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,gBAAgB,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,gBAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,QAAQ,EAAE,EAAE;YACzD,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;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,QAAQ,YAAY,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -8,7 +8,7 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class Extensions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* List extensions
|
|
11
|
+
* List extensions in the resolved project.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
@@ -8,7 +8,7 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class Extensions extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* List extensions
|
|
11
|
+
* List extensions in the resolved project.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
package/resources/extensions.js
CHANGED
package/resources/extensions.mjs
CHANGED
package/resources/proxies.d.mts
CHANGED
|
@@ -7,15 +7,15 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Proxies extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Create a new proxy configuration
|
|
10
|
+
* Create a new proxy configuration in the resolved project.
|
|
11
11
|
*/
|
|
12
12
|
create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse>;
|
|
13
13
|
/**
|
|
14
|
-
* Retrieve a proxy
|
|
14
|
+
* Retrieve a proxy in the resolved project by ID.
|
|
15
15
|
*/
|
|
16
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* List proxies
|
|
18
|
+
* List proxies in the resolved project.
|
|
19
19
|
*/
|
|
20
20
|
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): PagePromise<ProxyListResponsesOffsetPagination, ProxyListResponse>;
|
|
21
21
|
/**
|
package/resources/proxies.d.ts
CHANGED
|
@@ -7,15 +7,15 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Proxies extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Create a new proxy configuration
|
|
10
|
+
* Create a new proxy configuration in the resolved project.
|
|
11
11
|
*/
|
|
12
12
|
create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse>;
|
|
13
13
|
/**
|
|
14
|
-
* Retrieve a proxy
|
|
14
|
+
* Retrieve a proxy in the resolved project by ID.
|
|
15
15
|
*/
|
|
16
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* List proxies
|
|
18
|
+
* List proxies in the resolved project.
|
|
19
19
|
*/
|
|
20
20
|
list(query?: ProxyListParams | null | undefined, options?: RequestOptions): PagePromise<ProxyListResponsesOffsetPagination, ProxyListResponse>;
|
|
21
21
|
/**
|
package/resources/proxies.js
CHANGED
|
@@ -11,19 +11,19 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
11
11
|
*/
|
|
12
12
|
class Proxies extends resource_1.APIResource {
|
|
13
13
|
/**
|
|
14
|
-
* Create a new proxy configuration
|
|
14
|
+
* Create a new proxy configuration in the resolved project.
|
|
15
15
|
*/
|
|
16
16
|
create(body, options) {
|
|
17
17
|
return this._client.post('/proxies', { body, ...options });
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Retrieve a proxy
|
|
20
|
+
* Retrieve a proxy in the resolved project by ID.
|
|
21
21
|
*/
|
|
22
22
|
retrieve(id, options) {
|
|
23
23
|
return this._client.get((0, path_1.path) `/proxies/${id}`, options);
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* List proxies
|
|
26
|
+
* List proxies in the resolved project.
|
|
27
27
|
*/
|
|
28
28
|
list(query = {}, options) {
|
|
29
29
|
return this._client.getAPIList('/proxies', (pagination_1.OffsetPagination), { query, ...options });
|
package/resources/proxies.mjs
CHANGED
|
@@ -8,19 +8,19 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export class Proxies extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Create a new proxy configuration
|
|
11
|
+
* Create a new proxy configuration in the resolved project.
|
|
12
12
|
*/
|
|
13
13
|
create(body, options) {
|
|
14
14
|
return this._client.post('/proxies', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Retrieve a proxy
|
|
17
|
+
* Retrieve a proxy in the resolved project by ID.
|
|
18
18
|
*/
|
|
19
19
|
retrieve(id, options) {
|
|
20
20
|
return this._client.get(path `/proxies/${id}`, options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* List proxies
|
|
23
|
+
* List proxies in the resolved project.
|
|
24
24
|
*/
|
|
25
25
|
list(query = {}, options) {
|
|
26
26
|
return this._client.getAPIList('/proxies', (OffsetPagination), { query, ...options });
|
package/src/client.ts
CHANGED
|
@@ -175,6 +175,8 @@ export interface ClientOptions {
|
|
|
175
175
|
*/
|
|
176
176
|
apiKey?: string | undefined;
|
|
177
177
|
|
|
178
|
+
projectID?: string | null | undefined;
|
|
179
|
+
|
|
178
180
|
/**
|
|
179
181
|
* Specifies the environment to use for the API.
|
|
180
182
|
*
|
|
@@ -258,6 +260,7 @@ export interface ClientOptions {
|
|
|
258
260
|
*/
|
|
259
261
|
export class Kernel {
|
|
260
262
|
apiKey: string;
|
|
263
|
+
projectID: string | null;
|
|
261
264
|
|
|
262
265
|
baseURL: string;
|
|
263
266
|
maxRetries: number;
|
|
@@ -277,6 +280,7 @@ export class Kernel {
|
|
|
277
280
|
* API Client for interfacing with the Kernel API.
|
|
278
281
|
*
|
|
279
282
|
* @param {string | undefined} [opts.apiKey=process.env['KERNEL_API_KEY'] ?? undefined]
|
|
283
|
+
* @param {string | null | undefined} [opts.projectID]
|
|
280
284
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
281
285
|
* @param {string} [opts.baseURL=process.env['KERNEL_BASE_URL'] ?? https://api.onkernel.com/] - Override the default base URL for the API.
|
|
282
286
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
@@ -289,6 +293,7 @@ export class Kernel {
|
|
|
289
293
|
constructor({
|
|
290
294
|
baseURL = readEnv('KERNEL_BASE_URL'),
|
|
291
295
|
apiKey = readEnv('KERNEL_API_KEY'),
|
|
296
|
+
projectID = null,
|
|
292
297
|
...opts
|
|
293
298
|
}: ClientOptions = {}) {
|
|
294
299
|
// Check for Bun runtime in a way that avoids type errors if Bun is not defined
|
|
@@ -311,6 +316,7 @@ export class Kernel {
|
|
|
311
316
|
|
|
312
317
|
const options: ClientOptions = {
|
|
313
318
|
apiKey,
|
|
319
|
+
projectID,
|
|
314
320
|
...opts,
|
|
315
321
|
baseURL,
|
|
316
322
|
environment: opts.environment ?? 'production',
|
|
@@ -358,6 +364,7 @@ export class Kernel {
|
|
|
358
364
|
this._options = options;
|
|
359
365
|
|
|
360
366
|
this.apiKey = apiKey;
|
|
367
|
+
this.projectID = projectID;
|
|
361
368
|
}
|
|
362
369
|
|
|
363
370
|
/**
|
|
@@ -375,6 +382,7 @@ export class Kernel {
|
|
|
375
382
|
fetch: this.rawFetch,
|
|
376
383
|
fetchOptions: this.fetchOptions,
|
|
377
384
|
apiKey: this.apiKey,
|
|
385
|
+
projectID: this.projectID,
|
|
378
386
|
...options,
|
|
379
387
|
});
|
|
380
388
|
client.browserRouteCache = this.browserRouteCache;
|
|
@@ -851,6 +859,7 @@ export class Kernel {
|
|
|
851
859
|
'X-Stainless-Retry-Count': String(retryCount),
|
|
852
860
|
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
853
861
|
...getPlatformHeaders(),
|
|
862
|
+
'X-Kernel-Project-Id': this.projectID,
|
|
854
863
|
},
|
|
855
864
|
await this.authHeaders(options),
|
|
856
865
|
this._options.defaultHeaders,
|
|
@@ -699,8 +699,8 @@ export interface ManagedAuthCreateRequest {
|
|
|
699
699
|
login_url?: string;
|
|
700
700
|
|
|
701
701
|
/**
|
|
702
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
703
|
-
*
|
|
702
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
703
|
+
* project as the resource referencing it.
|
|
704
704
|
*/
|
|
705
705
|
proxy?: ManagedAuthCreateRequest.Proxy;
|
|
706
706
|
|
|
@@ -748,8 +748,8 @@ export namespace ManagedAuthCreateRequest {
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
/**
|
|
751
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
752
|
-
*
|
|
751
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
752
|
+
* project as the resource referencing it.
|
|
753
753
|
*/
|
|
754
754
|
export interface Proxy {
|
|
755
755
|
/**
|
|
@@ -812,8 +812,8 @@ export interface ManagedAuthUpdateRequest {
|
|
|
812
812
|
login_url?: string;
|
|
813
813
|
|
|
814
814
|
/**
|
|
815
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
816
|
-
*
|
|
815
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
816
|
+
* project as the resource referencing it.
|
|
817
817
|
*/
|
|
818
818
|
proxy?: ManagedAuthUpdateRequest.Proxy;
|
|
819
819
|
|
|
@@ -859,8 +859,8 @@ export namespace ManagedAuthUpdateRequest {
|
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
/**
|
|
862
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
863
|
-
*
|
|
862
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
863
|
+
* project as the resource referencing it.
|
|
864
864
|
*/
|
|
865
865
|
export interface Proxy {
|
|
866
866
|
/**
|
|
@@ -1215,8 +1215,8 @@ export interface ConnectionCreateParams {
|
|
|
1215
1215
|
login_url?: string;
|
|
1216
1216
|
|
|
1217
1217
|
/**
|
|
1218
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1219
|
-
*
|
|
1218
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1219
|
+
* project as the resource referencing it.
|
|
1220
1220
|
*/
|
|
1221
1221
|
proxy?: ConnectionCreateParams.Proxy;
|
|
1222
1222
|
|
|
@@ -1264,8 +1264,8 @@ export namespace ConnectionCreateParams {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
/**
|
|
1267
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1268
|
-
*
|
|
1267
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1268
|
+
* project as the resource referencing it.
|
|
1269
1269
|
*/
|
|
1270
1270
|
export interface Proxy {
|
|
1271
1271
|
/**
|
|
@@ -1325,8 +1325,8 @@ export interface ConnectionUpdateParams {
|
|
|
1325
1325
|
login_url?: string;
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1329
|
-
*
|
|
1328
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1329
|
+
* project as the resource referencing it.
|
|
1330
1330
|
*/
|
|
1331
1331
|
proxy?: ConnectionUpdateParams.Proxy;
|
|
1332
1332
|
|
|
@@ -1372,8 +1372,8 @@ export namespace ConnectionUpdateParams {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
1375
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1376
|
-
*
|
|
1375
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1376
|
+
* project as the resource referencing it.
|
|
1377
1377
|
*/
|
|
1378
1378
|
export interface Proxy {
|
|
1379
1379
|
/**
|
|
@@ -1402,8 +1402,8 @@ export interface ConnectionListParams extends OffsetPaginationParams {
|
|
|
1402
1402
|
|
|
1403
1403
|
export interface ConnectionLoginParams {
|
|
1404
1404
|
/**
|
|
1405
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1406
|
-
*
|
|
1405
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1406
|
+
* project as the resource referencing it.
|
|
1407
1407
|
*/
|
|
1408
1408
|
proxy?: ConnectionLoginParams.Proxy;
|
|
1409
1409
|
|
|
@@ -1416,8 +1416,8 @@ export interface ConnectionLoginParams {
|
|
|
1416
1416
|
|
|
1417
1417
|
export namespace ConnectionLoginParams {
|
|
1418
1418
|
/**
|
|
1419
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1420
|
-
*
|
|
1419
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1420
|
+
* project as the resource referencing it.
|
|
1421
1421
|
*/
|
|
1422
1422
|
export interface Proxy {
|
|
1423
1423
|
/**
|