@oya-ai/cli 1.0.71 → 1.0.73
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/dist/index.js +13 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -312,6 +312,19 @@ var Oya = class {
|
|
|
312
312
|
removeWebhook: (id) => this.http.request("DELETE", `/api/control/webhooks/${encodeURIComponent(id)}`),
|
|
313
313
|
replayDelivery: (id) => this.http.request("POST", `/api/control/deliveries/${encodeURIComponent(id)}/replay`, {})
|
|
314
314
|
};
|
|
315
|
+
/**
|
|
316
|
+
* Proxy exits for your personas. A persona takes one at first connect (by its
|
|
317
|
+
* geo hint) or by `personas.pinProxy`, and keeps it.
|
|
318
|
+
*/
|
|
319
|
+
proxies = {
|
|
320
|
+
list: async () => (await this.http.request("GET", "/api/proxies")).proxies,
|
|
321
|
+
create: (proxy) => this.http.request("POST", "/api/proxies", proxy),
|
|
322
|
+
remove: async (id) => {
|
|
323
|
+
await this.http.request("DELETE", `/api/proxies/${encodeURIComponent(id)}`);
|
|
324
|
+
},
|
|
325
|
+
/** Dial each proxy and learn its real exit IP. Failing ones cool down and are skipped. */
|
|
326
|
+
check: async () => (await this.http.request("POST", "/api/proxies/check", {})).results
|
|
327
|
+
};
|
|
315
328
|
personas = {
|
|
316
329
|
list: async () => (await this.http.request("GET", "/api/personas")).personas,
|
|
317
330
|
get: (id) => this.http.request("GET", `/api/personas/${id}`),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oya-ai/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.73",
|
|
4
4
|
"description": "Command line for the Oya browser control plane.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://browser.getoya.ai",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@oya-ai/browser": "1.0.
|
|
42
|
+
"@oya-ai/browser": "1.0.73",
|
|
43
43
|
"@types/node": "^20.19.43",
|
|
44
44
|
"tsup": "^8.0.0",
|
|
45
45
|
"typescript": "^5.4.0"
|