@onkernel/sdk 0.10.0 → 0.11.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 +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +4 -1
- package/client.js.map +1 -1
- package/client.mjs +4 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browsers/browsers.d.mts +67 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +67 -1
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/profiles.d.mts +39 -0
- package/resources/profiles.d.mts.map +1 -0
- package/resources/profiles.d.ts +39 -0
- package/resources/profiles.d.ts.map +1 -0
- package/resources/profiles.js +50 -0
- package/resources/profiles.js.map +1 -0
- package/resources/profiles.mjs +46 -0
- package/resources/profiles.mjs.map +1 -0
- package/src/client.ts +12 -1
- package/src/resources/browsers/browsers.ts +79 -0
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/profiles.ts +67 -0
- 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
|
@@ -76,6 +76,31 @@ export interface BrowserPersistence {
|
|
|
76
76
|
*/
|
|
77
77
|
id: string;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Browser profile metadata.
|
|
81
|
+
*/
|
|
82
|
+
export interface Profile {
|
|
83
|
+
/**
|
|
84
|
+
* Unique identifier for the profile
|
|
85
|
+
*/
|
|
86
|
+
id: string;
|
|
87
|
+
/**
|
|
88
|
+
* Timestamp when the profile was created
|
|
89
|
+
*/
|
|
90
|
+
created_at: string;
|
|
91
|
+
/**
|
|
92
|
+
* Timestamp when the profile was last used
|
|
93
|
+
*/
|
|
94
|
+
last_used_at?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Optional, easier-to-reference name for the profile
|
|
97
|
+
*/
|
|
98
|
+
name?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Timestamp when the profile was last updated
|
|
101
|
+
*/
|
|
102
|
+
updated_at?: string;
|
|
103
|
+
}
|
|
79
104
|
export interface BrowserCreateResponse {
|
|
80
105
|
/**
|
|
81
106
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
@@ -110,6 +135,10 @@ export interface BrowserCreateResponse {
|
|
|
110
135
|
* Optional persistence configuration for the browser session.
|
|
111
136
|
*/
|
|
112
137
|
persistence?: BrowserPersistence;
|
|
138
|
+
/**
|
|
139
|
+
* Browser profile metadata.
|
|
140
|
+
*/
|
|
141
|
+
profile?: Profile;
|
|
113
142
|
}
|
|
114
143
|
export interface BrowserRetrieveResponse {
|
|
115
144
|
/**
|
|
@@ -145,6 +174,10 @@ export interface BrowserRetrieveResponse {
|
|
|
145
174
|
* Optional persistence configuration for the browser session.
|
|
146
175
|
*/
|
|
147
176
|
persistence?: BrowserPersistence;
|
|
177
|
+
/**
|
|
178
|
+
* Browser profile metadata.
|
|
179
|
+
*/
|
|
180
|
+
profile?: Profile;
|
|
148
181
|
}
|
|
149
182
|
export type BrowserListResponse = Array<BrowserListResponse.BrowserListResponseItem>;
|
|
150
183
|
export declare namespace BrowserListResponse {
|
|
@@ -182,6 +215,10 @@ export declare namespace BrowserListResponse {
|
|
|
182
215
|
* Optional persistence configuration for the browser session.
|
|
183
216
|
*/
|
|
184
217
|
persistence?: BrowsersAPI.BrowserPersistence;
|
|
218
|
+
/**
|
|
219
|
+
* Browser profile metadata.
|
|
220
|
+
*/
|
|
221
|
+
profile?: BrowsersAPI.Profile;
|
|
185
222
|
}
|
|
186
223
|
}
|
|
187
224
|
export interface BrowserCreateParams {
|
|
@@ -198,6 +235,12 @@ export interface BrowserCreateParams {
|
|
|
198
235
|
* Optional persistence configuration for the browser session.
|
|
199
236
|
*/
|
|
200
237
|
persistence?: BrowserPersistence;
|
|
238
|
+
/**
|
|
239
|
+
* Profile selection for the browser session. Provide either id or name. If
|
|
240
|
+
* specified, the matching profile will be loaded into the browser session.
|
|
241
|
+
* Profiles must be created beforehand.
|
|
242
|
+
*/
|
|
243
|
+
profile?: BrowserCreateParams.Profile;
|
|
201
244
|
/**
|
|
202
245
|
* If true, launches the browser in stealth mode to reduce detection by anti-bot
|
|
203
246
|
* mechanisms.
|
|
@@ -210,6 +253,29 @@ export interface BrowserCreateParams {
|
|
|
210
253
|
*/
|
|
211
254
|
timeout_seconds?: number;
|
|
212
255
|
}
|
|
256
|
+
export declare namespace BrowserCreateParams {
|
|
257
|
+
/**
|
|
258
|
+
* Profile selection for the browser session. Provide either id or name. If
|
|
259
|
+
* specified, the matching profile will be loaded into the browser session.
|
|
260
|
+
* Profiles must be created beforehand.
|
|
261
|
+
*/
|
|
262
|
+
interface Profile {
|
|
263
|
+
/**
|
|
264
|
+
* Profile ID to load for this browser session
|
|
265
|
+
*/
|
|
266
|
+
id?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Profile name to load for this browser session (instead of id). Must be 1-255
|
|
269
|
+
* characters, using letters, numbers, dots, underscores, or hyphens.
|
|
270
|
+
*/
|
|
271
|
+
name?: string;
|
|
272
|
+
/**
|
|
273
|
+
* If true, save changes made during the session back to the profile when the
|
|
274
|
+
* session ends.
|
|
275
|
+
*/
|
|
276
|
+
save_changes?: boolean;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
213
279
|
export interface BrowserDeleteParams {
|
|
214
280
|
/**
|
|
215
281
|
* Persistent browser identifier
|
|
@@ -217,7 +283,7 @@ export interface BrowserDeleteParams {
|
|
|
217
283
|
persistent_id: string;
|
|
218
284
|
}
|
|
219
285
|
export declare namespace Browsers {
|
|
220
|
-
export { type BrowserPersistence as BrowserPersistence, type BrowserCreateResponse as BrowserCreateResponse, type BrowserRetrieveResponse as BrowserRetrieveResponse, type BrowserListResponse as BrowserListResponse, type BrowserCreateParams as BrowserCreateParams, type BrowserDeleteParams as BrowserDeleteParams, };
|
|
286
|
+
export { type BrowserPersistence as BrowserPersistence, type Profile as Profile, type BrowserCreateResponse as BrowserCreateResponse, type BrowserRetrieveResponse as BrowserRetrieveResponse, type BrowserListResponse as BrowserListResponse, type BrowserCreateParams as BrowserCreateParams, type BrowserDeleteParams as BrowserDeleteParams, };
|
|
221
287
|
export { Replays as Replays, type ReplayListResponse as ReplayListResponse, type ReplayStartResponse as ReplayStartResponse, type ReplayDownloadParams as ReplayDownloadParams, type ReplayStartParams as ReplayStartParams, type ReplayStopParams as ReplayStopParams, };
|
|
222
288
|
export { Fs as Fs, type FFileInfoResponse as FFileInfoResponse, type FListFilesResponse as FListFilesResponse, type FCreateDirectoryParams as FCreateDirectoryParams, type FDeleteDirectoryParams as FDeleteDirectoryParams, type FDeleteFileParams as FDeleteFileParams, type FDownloadDirZipParams as FDownloadDirZipParams, type FFileInfoParams as FFileInfoParams, type FListFilesParams as FListFilesParams, type FMoveParams as FMoveParams, type FReadFileParams as FReadFileParams, type FSetFilePermissionsParams as FSetFilePermissionsParams, type FUploadParams as FUploadParams, type FUploadZipParams as FUploadZipParams, type FWriteFileParams as FWriteFileParams, };
|
|
223
289
|
export { Process as Process, type ProcessExecResponse as ProcessExecResponse, type ProcessKillResponse as ProcessKillResponse, type ProcessSpawnResponse as ProcessSpawnResponse, type ProcessStatusResponse as ProcessStatusResponse, type ProcessStdinResponse as ProcessStdinResponse, type ProcessStdoutStreamResponse as ProcessStdoutStreamResponse, type ProcessExecParams as ProcessExecParams, type ProcessKillParams as ProcessKillParams, type ProcessSpawnParams as ProcessSpawnParams, type ProcessStatusParams as ProcessStatusParams, type ProcessStdinParams as ProcessStdinParams, type ProcessStdoutStreamParams as ProcessStdoutStreamParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browsers.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/browsers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,OAAO;OACZ,EAAE,eAAe,EAAE,IAAI,EAAE;OACzB,KAAK,UAAU;OACf,EACL,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,yBAAyB,EACzB,2BAA2B,EAC5B;OACM,KAAK,UAAU;OACf,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,EACR;OACM,KAAK,KAAK;OACV,EACL,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,EAAE,EACH;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;IAC1C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,IAAI,EAAE,OAA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,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE;YACtC,KAAK,EAAE,EAAE,aAAa,EAAE;YACxB,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;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,EAAE,EAAE,EAAE;YAChD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAqQD,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;AAC3B,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;AACjB,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;AAC3B,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Browsers, type BrowserPersistence, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers.mjs";
|
|
1
|
+
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers.mjs";
|
|
2
2
|
export { Fs, type FFileInfoResponse, type FListFilesResponse, type FCreateDirectoryParams, type FDeleteDirectoryParams, type FDeleteFileParams, type FDownloadDirZipParams, type FFileInfoParams, type FListFilesParams, type FMoveParams, type FReadFileParams, type FSetFilePermissionsParams, type FUploadParams, type FUploadZipParams, type FWriteFileParams, } from "./fs/index.mjs";
|
|
3
3
|
export { Logs, type LogStreamParams } from "./logs.mjs";
|
|
4
4
|
export { Process, type ProcessExecResponse, type ProcessKillResponse, type ProcessSpawnResponse, type ProcessStatusResponse, type ProcessStdinResponse, type ProcessStdoutStreamResponse, type ProcessExecParams, type ProcessKillParams, type ProcessSpawnParams, type ProcessStatusParams, type ProcessStdinParams, type ProcessStdoutStreamParams, } from "./process.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Browsers, type BrowserPersistence, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers.js";
|
|
1
|
+
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers.js";
|
|
2
2
|
export { Fs, type FFileInfoResponse, type FListFilesResponse, type FCreateDirectoryParams, type FDeleteDirectoryParams, type FDeleteFileParams, type FDownloadDirZipParams, type FFileInfoParams, type FListFilesParams, type FMoveParams, type FReadFileParams, type FSetFilePermissionsParams, type FUploadParams, type FUploadZipParams, type FWriteFileParams, } from "./fs/index.js";
|
|
3
3
|
export { Logs, type LogStreamParams } from "./logs.js";
|
|
4
4
|
export { Process, type ProcessExecResponse, type ProcessKillResponse, type ProcessSpawnResponse, type ProcessStatusResponse, type ProcessStdinResponse, type ProcessStdoutStreamResponse, type ProcessExecParams, type ProcessKillParams, type ProcessSpawnParams, type ProcessStatusParams, type ProcessStdinParams, type ProcessStdoutStreamParams, } from "./process.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,EAAE,EACF,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB;OACM,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE;OAC9B,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CASoB;AARlB,oGAAA,QAAQ,OAAA;AASV,uCAgBoB;AAflB,2FAAA,EAAE,OAAA;AAgBJ,kCAAoD;AAA3C,4FAAA,IAAI,OAAA;AACb,wCAcmB;AAbjB,kGAAA,OAAO,OAAA;AAcT,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/browsers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAQT;OACM,EACL,EAAE,GAeH;OACM,EAAE,IAAI,EAAwB;OAC9B,EACL,OAAO,GAaR;OACM,EACL,OAAO,GAMR"}
|
package/resources/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./shared.mjs";
|
|
2
2
|
export { Apps, type AppListResponse, type AppListParams } from "./apps.mjs";
|
|
3
|
-
export { Browsers, type BrowserPersistence, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers/browsers.mjs";
|
|
3
|
+
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers/browsers.mjs";
|
|
4
4
|
export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, } from "./deployments.mjs";
|
|
5
5
|
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationFollowResponse, type InvocationCreateParams, type InvocationUpdateParams, } from "./invocations.mjs";
|
|
6
|
+
export { Profiles, type ProfileListResponse, type ProfileCreateParams } from "./profiles.mjs";
|
|
6
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
2
|
export { Apps, type AppListResponse, type AppListParams } from "./apps.js";
|
|
3
|
-
export { Browsers, type BrowserPersistence, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers/browsers.js";
|
|
3
|
+
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserDeleteParams, } from "./browsers/browsers.js";
|
|
4
4
|
export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, } from "./deployments.js";
|
|
5
5
|
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationFollowResponse, type InvocationCreateParams, type InvocationUpdateParams, } from "./invocations.js";
|
|
6
|
+
export { Profiles, type ProfileListResponse, type ProfileCreateParams } from "./profiles.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,IAAI,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE;OAClD,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,GAC5B;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,GAC5B;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Invocations = exports.Deployments = exports.Browsers = exports.Apps = void 0;
|
|
4
|
+
exports.Profiles = exports.Invocations = exports.Deployments = exports.Browsers = exports.Apps = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
7
|
var apps_1 = require("./apps.js");
|
|
@@ -12,4 +12,6 @@ var deployments_1 = require("./deployments.js");
|
|
|
12
12
|
Object.defineProperty(exports, "Deployments", { enumerable: true, get: function () { return deployments_1.Deployments; } });
|
|
13
13
|
var invocations_1 = require("./invocations.js");
|
|
14
14
|
Object.defineProperty(exports, "Invocations", { enumerable: true, get: function () { return invocations_1.Invocations; } });
|
|
15
|
+
var profiles_1 = require("./profiles.js");
|
|
16
|
+
Object.defineProperty(exports, "Profiles", { enumerable: true, get: function () { return profiles_1.Profiles; } });
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,kCAAwE;AAA/D,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,kCAAwE;AAA/D,4FAAA,IAAI,OAAA;AACb,mDAS6B;AAR3B,oGAAA,QAAQ,OAAA;AASV,gDAUuB;AATrB,0GAAA,WAAW,OAAA;AAUb,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,0CAA0F;AAAjF,oGAAA,QAAQ,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -4,4 +4,5 @@ export { Apps } from "./apps.mjs";
|
|
|
4
4
|
export { Browsers, } from "./browsers/browsers.mjs";
|
|
5
5
|
export { Deployments, } from "./deployments.mjs";
|
|
6
6
|
export { Invocations, } from "./invocations.mjs";
|
|
7
|
+
export { Profiles } from "./profiles.mjs";
|
|
7
8
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,IAAI,EAA4C;OAClD,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,IAAI,EAA4C;OAClD,EACL,QAAQ,GAQT;OACM,EACL,WAAW,GASZ;OACM,EACL,WAAW,GAQZ;OACM,EAAE,QAAQ,EAAsD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as BrowsersAPI from "./browsers/browsers.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Profiles extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a browser profile that can be used to load state into future browser
|
|
8
|
+
* sessions.
|
|
9
|
+
*/
|
|
10
|
+
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<BrowsersAPI.Profile>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve details for a single profile by its ID or name.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<BrowsersAPI.Profile>;
|
|
15
|
+
/**
|
|
16
|
+
* List profiles with optional filtering and pagination.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<ProfileListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a profile by its ID or by its name.
|
|
21
|
+
*/
|
|
22
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Download the profile. Profiles are JSON files containing the pieces of state
|
|
25
|
+
* that we save.
|
|
26
|
+
*/
|
|
27
|
+
download(idOrName: string, options?: RequestOptions): APIPromise<Response>;
|
|
28
|
+
}
|
|
29
|
+
export type ProfileListResponse = Array<BrowsersAPI.Profile>;
|
|
30
|
+
export interface ProfileCreateParams {
|
|
31
|
+
/**
|
|
32
|
+
* Optional name of the profile. Must be unique within the organization.
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace Profiles {
|
|
37
|
+
export { type ProfileListResponse as ProfileListResponse, type ProfileCreateParams as ProfileCreateParams };
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=profiles.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.mts","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;IAIrF;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOpE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAO3E;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC7G"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as BrowsersAPI from "./browsers/browsers.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Profiles extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a browser profile that can be used to load state into future browser
|
|
8
|
+
* sessions.
|
|
9
|
+
*/
|
|
10
|
+
create(body: ProfileCreateParams, options?: RequestOptions): APIPromise<BrowsersAPI.Profile>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve details for a single profile by its ID or name.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<BrowsersAPI.Profile>;
|
|
15
|
+
/**
|
|
16
|
+
* List profiles with optional filtering and pagination.
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<ProfileListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a profile by its ID or by its name.
|
|
21
|
+
*/
|
|
22
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Download the profile. Profiles are JSON files containing the pieces of state
|
|
25
|
+
* that we save.
|
|
26
|
+
*/
|
|
27
|
+
download(idOrName: string, options?: RequestOptions): APIPromise<Response>;
|
|
28
|
+
}
|
|
29
|
+
export type ProfileListResponse = Array<BrowsersAPI.Profile>;
|
|
30
|
+
export interface ProfileCreateParams {
|
|
31
|
+
/**
|
|
32
|
+
* Optional name of the profile. Must be unique within the organization.
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace Profiles {
|
|
37
|
+
export { type ProfileListResponse as ProfileListResponse, type ProfileCreateParams as ProfileCreateParams };
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC;IAIrF;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI/D;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOpE;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAO3E;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAE7D,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC7G"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Profiles = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class Profiles extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a browser profile that can be used to load state into future browser
|
|
11
|
+
* sessions.
|
|
12
|
+
*/
|
|
13
|
+
create(body, options) {
|
|
14
|
+
return this._client.post('/profiles', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve details for a single profile by its ID or name.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(idOrName, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/profiles/${idOrName}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List profiles with optional filtering and pagination.
|
|
24
|
+
*/
|
|
25
|
+
list(options) {
|
|
26
|
+
return this._client.get('/profiles', options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Delete a profile by its ID or by its name.
|
|
30
|
+
*/
|
|
31
|
+
delete(idOrName, options) {
|
|
32
|
+
return this._client.delete((0, path_1.path) `/profiles/${idOrName}`, {
|
|
33
|
+
...options,
|
|
34
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Download the profile. Profiles are JSON files containing the pieces of state
|
|
39
|
+
* that we save.
|
|
40
|
+
*/
|
|
41
|
+
download(idOrName, options) {
|
|
42
|
+
return this._client.get((0, path_1.path) `/profiles/${idOrName}/download`, {
|
|
43
|
+
...options,
|
|
44
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
45
|
+
__binaryResponse: true,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Profiles = Profiles;
|
|
50
|
+
//# sourceMappingURL=profiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,QAAQ,EAAE,EAAE;YACtD,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;;;OAGG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,QAAQ,WAAW,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,4BA4CC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class Profiles extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a browser profile that can be used to load state into future browser
|
|
8
|
+
* sessions.
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/profiles', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieve details for a single profile by its ID or name.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(idOrName, options) {
|
|
17
|
+
return this._client.get(path `/profiles/${idOrName}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List profiles with optional filtering and pagination.
|
|
21
|
+
*/
|
|
22
|
+
list(options) {
|
|
23
|
+
return this._client.get('/profiles', options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Delete a profile by its ID or by its name.
|
|
27
|
+
*/
|
|
28
|
+
delete(idOrName, options) {
|
|
29
|
+
return this._client.delete(path `/profiles/${idOrName}`, {
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Download the profile. Profiles are JSON files containing the pieces of state
|
|
36
|
+
* that we save.
|
|
37
|
+
*/
|
|
38
|
+
download(idOrName, options) {
|
|
39
|
+
return this._client.get(path `/profiles/${idOrName}/download`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]),
|
|
42
|
+
__binaryResponse: true,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=profiles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.mjs","sourceRoot":"","sources":["../src/resources/profiles.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,QAAQ,EAAE,EAAE;YACtD,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;;;OAGG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,QAAQ,WAAW,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,0BAA0B,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACjF,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -39,6 +39,7 @@ import {
|
|
|
39
39
|
InvocationUpdateResponse,
|
|
40
40
|
Invocations,
|
|
41
41
|
} from './resources/invocations';
|
|
42
|
+
import { ProfileCreateParams, ProfileListResponse, Profiles } from './resources/profiles';
|
|
42
43
|
import {
|
|
43
44
|
BrowserCreateParams,
|
|
44
45
|
BrowserCreateResponse,
|
|
@@ -47,6 +48,7 @@ import {
|
|
|
47
48
|
BrowserPersistence,
|
|
48
49
|
BrowserRetrieveResponse,
|
|
49
50
|
Browsers,
|
|
51
|
+
Profile,
|
|
50
52
|
} from './resources/browsers/browsers';
|
|
51
53
|
import { type Fetch } from './internal/builtin-types';
|
|
52
54
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -435,7 +437,7 @@ export class Kernel {
|
|
|
435
437
|
const response = await this.fetchWithTimeout(url, req, timeout, controller).catch(castToError);
|
|
436
438
|
const headersTime = Date.now();
|
|
437
439
|
|
|
438
|
-
if (response instanceof Error) {
|
|
440
|
+
if (response instanceof globalThis.Error) {
|
|
439
441
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
440
442
|
if (options.signal?.aborted) {
|
|
441
443
|
throw new Errors.APIUserAbortError();
|
|
@@ -795,12 +797,14 @@ export class Kernel {
|
|
|
795
797
|
apps: API.Apps = new API.Apps(this);
|
|
796
798
|
invocations: API.Invocations = new API.Invocations(this);
|
|
797
799
|
browsers: API.Browsers = new API.Browsers(this);
|
|
800
|
+
profiles: API.Profiles = new API.Profiles(this);
|
|
798
801
|
}
|
|
799
802
|
|
|
800
803
|
Kernel.Deployments = Deployments;
|
|
801
804
|
Kernel.Apps = Apps;
|
|
802
805
|
Kernel.Invocations = Invocations;
|
|
803
806
|
Kernel.Browsers = Browsers;
|
|
807
|
+
Kernel.Profiles = Profiles;
|
|
804
808
|
|
|
805
809
|
export declare namespace Kernel {
|
|
806
810
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -833,6 +837,7 @@ export declare namespace Kernel {
|
|
|
833
837
|
export {
|
|
834
838
|
Browsers as Browsers,
|
|
835
839
|
type BrowserPersistence as BrowserPersistence,
|
|
840
|
+
type Profile as Profile,
|
|
836
841
|
type BrowserCreateResponse as BrowserCreateResponse,
|
|
837
842
|
type BrowserRetrieveResponse as BrowserRetrieveResponse,
|
|
838
843
|
type BrowserListResponse as BrowserListResponse,
|
|
@@ -840,6 +845,12 @@ export declare namespace Kernel {
|
|
|
840
845
|
type BrowserDeleteParams as BrowserDeleteParams,
|
|
841
846
|
};
|
|
842
847
|
|
|
848
|
+
export {
|
|
849
|
+
Profiles as Profiles,
|
|
850
|
+
type ProfileListResponse as ProfileListResponse,
|
|
851
|
+
type ProfileCreateParams as ProfileCreateParams,
|
|
852
|
+
};
|
|
853
|
+
|
|
843
854
|
export type AppAction = API.AppAction;
|
|
844
855
|
export type ErrorDetail = API.ErrorDetail;
|
|
845
856
|
export type ErrorEvent = API.ErrorEvent;
|