@slicervm/sdk 0.1.10 → 0.1.11
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.cjs +20 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -4
- package/dist/index.d.ts +46 -4
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1526,6 +1526,12 @@ function validateCommitId2(commitId) {
|
|
|
1526
1526
|
var ProxySecretBearer = "bearer";
|
|
1527
1527
|
var ProxySecretBasic = "basic";
|
|
1528
1528
|
var ProxySecretOAuthClientCredentials = "oauth-client-creds";
|
|
1529
|
+
var ProxySecretOAuthCodex = "oauth-codex";
|
|
1530
|
+
var ProxySecretOAuthClaude = "oauth-claude";
|
|
1531
|
+
var ProxySecretOAuthGitHubCopilot = "oauth-github-copilot";
|
|
1532
|
+
var ProxySecretOAuthXAI = "oauth-xai";
|
|
1533
|
+
var ProxySecretGitHubAppUser = "github-app-user";
|
|
1534
|
+
var ProxySecretGitHubApp = "github-app";
|
|
1529
1535
|
function clientFromWire(w) {
|
|
1530
1536
|
return { name: w.name, createdAt: w.created_at };
|
|
1531
1537
|
}
|
|
@@ -1535,6 +1541,9 @@ function clientCreatedFromWire(w) {
|
|
|
1535
1541
|
function secretFromWire2(w) {
|
|
1536
1542
|
const out = { name: w.name, host: w.host, createdAt: w.created_at };
|
|
1537
1543
|
if (w.type) out.type = w.type;
|
|
1544
|
+
if (w.updated_at && w.updated_at !== "0001-01-01T00:00:00Z") out.updatedAt = w.updated_at;
|
|
1545
|
+
if (w.adopted_at && w.adopted_at !== "0001-01-01T00:00:00Z") out.adoptedAt = w.adopted_at;
|
|
1546
|
+
if (w.refreshed_at && w.refreshed_at !== "0001-01-01T00:00:00Z") out.refreshedAt = w.refreshed_at;
|
|
1538
1547
|
return out;
|
|
1539
1548
|
}
|
|
1540
1549
|
function ruleFromWire(w) {
|
|
@@ -1542,6 +1551,7 @@ function ruleFromWire(w) {
|
|
|
1542
1551
|
if (w.secret) out.secret = w.secret;
|
|
1543
1552
|
if (w.methods && w.methods.length > 0) out.methods = w.methods;
|
|
1544
1553
|
if (w.paths && w.paths.length > 0) out.paths = w.paths;
|
|
1554
|
+
if (w.ports && w.ports.length > 0) out.ports = w.ports;
|
|
1545
1555
|
if (w.expires && w.expires !== "0001-01-01T00:00:00Z") out.expires = w.expires;
|
|
1546
1556
|
if (w.passthrough) out.passthrough = w.passthrough;
|
|
1547
1557
|
return out;
|
|
@@ -1606,6 +1616,7 @@ var ProxySecretsAPI = class {
|
|
|
1606
1616
|
value: req.value
|
|
1607
1617
|
};
|
|
1608
1618
|
if (req.type) body.type = req.type;
|
|
1619
|
+
if (req.force) body.force = true;
|
|
1609
1620
|
await this.transport.request("POST", "/proxy/v1/secrets", body);
|
|
1610
1621
|
}
|
|
1611
1622
|
async list() {
|
|
@@ -1634,6 +1645,7 @@ var ProxyAllowsAPI = class {
|
|
|
1634
1645
|
if (req.secret) body.secret = req.secret;
|
|
1635
1646
|
if (req.methods && req.methods.length > 0) body.methods = req.methods;
|
|
1636
1647
|
if (req.paths && req.paths.length > 0) body.paths = req.paths;
|
|
1648
|
+
if (req.ports && req.ports.length > 0) body.ports = req.ports;
|
|
1637
1649
|
if (req.ttlSeconds && req.ttlSeconds > 0) body.ttl_seconds = req.ttlSeconds;
|
|
1638
1650
|
if (req.passthrough) body.passthrough = true;
|
|
1639
1651
|
const wire = await this.transport.request(
|
|
@@ -1657,7 +1669,7 @@ var ProxyAllowsAPI = class {
|
|
|
1657
1669
|
}
|
|
1658
1670
|
/**
|
|
1659
1671
|
* Surgical revoke: removes the single rule whose
|
|
1660
|
-
* (host, methods, paths, passthrough) tuple matches the request.
|
|
1672
|
+
* (host, methods, paths, ports, passthrough) tuple matches the request.
|
|
1661
1673
|
* Pass exactly the same fields you used at create time. Method and
|
|
1662
1674
|
* host casing are normalised server-side, so `"GET"` / `"get"` and
|
|
1663
1675
|
* `"github.com"` / `"GITHUB.COM"` all match the same stored rule.
|
|
@@ -1672,6 +1684,7 @@ var ProxyAllowsAPI = class {
|
|
|
1672
1684
|
if (req.secret) body.secret = req.secret;
|
|
1673
1685
|
if (req.methods && req.methods.length > 0) body.methods = req.methods;
|
|
1674
1686
|
if (req.paths && req.paths.length > 0) body.paths = req.paths;
|
|
1687
|
+
if (req.ports && req.ports.length > 0) body.ports = req.ports;
|
|
1675
1688
|
if (req.passthrough) body.passthrough = true;
|
|
1676
1689
|
await this.transport.request("POST", "/proxy/v1/allows/revoke", body);
|
|
1677
1690
|
}
|
|
@@ -1867,7 +1880,13 @@ exports.ProxyAllowsAPI = ProxyAllowsAPI;
|
|
|
1867
1880
|
exports.ProxyClientsAPI = ProxyClientsAPI;
|
|
1868
1881
|
exports.ProxySecretBasic = ProxySecretBasic;
|
|
1869
1882
|
exports.ProxySecretBearer = ProxySecretBearer;
|
|
1883
|
+
exports.ProxySecretGitHubApp = ProxySecretGitHubApp;
|
|
1884
|
+
exports.ProxySecretGitHubAppUser = ProxySecretGitHubAppUser;
|
|
1885
|
+
exports.ProxySecretOAuthClaude = ProxySecretOAuthClaude;
|
|
1870
1886
|
exports.ProxySecretOAuthClientCredentials = ProxySecretOAuthClientCredentials;
|
|
1887
|
+
exports.ProxySecretOAuthCodex = ProxySecretOAuthCodex;
|
|
1888
|
+
exports.ProxySecretOAuthGitHubCopilot = ProxySecretOAuthGitHubCopilot;
|
|
1889
|
+
exports.ProxySecretOAuthXAI = ProxySecretOAuthXAI;
|
|
1871
1890
|
exports.ProxySecretsAPI = ProxySecretsAPI;
|
|
1872
1891
|
exports.SecretExistsError = SecretExistsError;
|
|
1873
1892
|
exports.SecretsAPI = SecretsAPI;
|