@flashbacktech/tsclient 0.4.49 → 0.4.50
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 +55 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +55 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -573,7 +573,7 @@ declare class SandboxesClient {
|
|
|
573
573
|
delete(sandboxId: string): Promise<SimpleResponse>;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
type ProviderID = 'AWS' | 'BEDROCK' | 'GCP' | 'AZURE' | 'SSH' | 'GITHUB' | 'GITLAB' | 'AZURE_DEVOPS' | 'OPENAI' | 'ANTHROPIC' | 'GEMINI' | string;
|
|
576
|
+
type ProviderID = 'AWS' | 'BEDROCK' | 'GCP' | 'AZURE' | 'OCI' | 'SSH' | 'GITHUB' | 'GITLAB' | 'AZURE_DEVOPS' | 'OPENAI' | 'ANTHROPIC' | 'GEMINI' | string;
|
|
577
577
|
interface Credential {
|
|
578
578
|
id: string;
|
|
579
579
|
provider: ProviderID;
|
package/dist/index.d.ts
CHANGED
|
@@ -573,7 +573,7 @@ declare class SandboxesClient {
|
|
|
573
573
|
delete(sandboxId: string): Promise<SimpleResponse>;
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
-
type ProviderID = 'AWS' | 'BEDROCK' | 'GCP' | 'AZURE' | 'SSH' | 'GITHUB' | 'GITLAB' | 'AZURE_DEVOPS' | 'OPENAI' | 'ANTHROPIC' | 'GEMINI' | string;
|
|
576
|
+
type ProviderID = 'AWS' | 'BEDROCK' | 'GCP' | 'AZURE' | 'OCI' | 'SSH' | 'GITHUB' | 'GITLAB' | 'AZURE_DEVOPS' | 'OPENAI' | 'ANTHROPIC' | 'GEMINI' | string;
|
|
577
577
|
interface Credential {
|
|
578
578
|
id: string;
|
|
579
579
|
provider: ProviderID;
|
package/dist/index.js
CHANGED
|
@@ -1387,6 +1387,54 @@ var PROVIDER_CATALOG = {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
]
|
|
1389
1389
|
},
|
|
1390
|
+
OCI: {
|
|
1391
|
+
id: "OCI",
|
|
1392
|
+
displayName: "Oracle Cloud Infrastructure",
|
|
1393
|
+
capabilities: CAP_STORAGE,
|
|
1394
|
+
fields: [
|
|
1395
|
+
{
|
|
1396
|
+
path: "metadata.tenancyOcid",
|
|
1397
|
+
label: "Tenancy OCID",
|
|
1398
|
+
type: "text",
|
|
1399
|
+
required: true,
|
|
1400
|
+
placeholder: "ocid1.tenancy.oc1..aaaa\u2026",
|
|
1401
|
+
help: "The tenancy's OCID, from the OCI console (Profile \u2192 Tenancy)."
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
path: "metadata.userOcid",
|
|
1405
|
+
label: "User OCID",
|
|
1406
|
+
type: "text",
|
|
1407
|
+
required: true,
|
|
1408
|
+
placeholder: "ocid1.user.oc1..aaaa\u2026",
|
|
1409
|
+
help: "The OCID of the user the API signing key belongs to."
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
path: "metadata.fingerprint",
|
|
1413
|
+
label: "Key Fingerprint",
|
|
1414
|
+
type: "text",
|
|
1415
|
+
required: true,
|
|
1416
|
+
placeholder: "aa:bb:cc:dd:\u2026",
|
|
1417
|
+
help: "Fingerprint of the uploaded API signing key (shown next to the key in the console)."
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
path: "secret",
|
|
1421
|
+
label: "API Private Key (PEM)",
|
|
1422
|
+
type: "pem",
|
|
1423
|
+
required: true,
|
|
1424
|
+
secret: true,
|
|
1425
|
+
placeholder: "-----BEGIN PRIVATE KEY-----\n\u2026\n-----END PRIVATE KEY-----",
|
|
1426
|
+
help: "Paste the PEM, or drop the .pem file. Passphrase-protected keys are rejected \u2014 the agent runs unattended. Encrypted at rest."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
path: "metadata.region",
|
|
1430
|
+
label: "Region",
|
|
1431
|
+
type: "text",
|
|
1432
|
+
required: false,
|
|
1433
|
+
placeholder: "us-phoenix-1",
|
|
1434
|
+
help: "Default region for the oci CLI / SDK. Optional \u2014 leave blank to use the SDK default."
|
|
1435
|
+
}
|
|
1436
|
+
]
|
|
1437
|
+
},
|
|
1390
1438
|
SSH: {
|
|
1391
1439
|
id: "SSH",
|
|
1392
1440
|
displayName: "SSH",
|
|
@@ -1748,7 +1796,7 @@ var PROVIDER_CATALOG = {
|
|
|
1748
1796
|
]
|
|
1749
1797
|
}
|
|
1750
1798
|
};
|
|
1751
|
-
var PROVIDER_ORDER = ["AWS", "BEDROCK", "GCP", "AZURE", "SSH", "GITHUB", "GITLAB", "AZURE_DEVOPS", "OPENAI", "ANTHROPIC", "GEMINI", "SLACK", "TEAMS", "PAGERDUTY", "SMTP"];
|
|
1799
|
+
var PROVIDER_ORDER = ["AWS", "BEDROCK", "GCP", "AZURE", "OCI", "SSH", "GITHUB", "GITLAB", "AZURE_DEVOPS", "OPENAI", "ANTHROPIC", "GEMINI", "SLACK", "TEAMS", "PAGERDUTY", "SMTP"];
|
|
1752
1800
|
function listProviders() {
|
|
1753
1801
|
return PROVIDER_ORDER.flatMap((id) => PROVIDER_CATALOG[id] ? [PROVIDER_CATALOG[id]] : []);
|
|
1754
1802
|
}
|
|
@@ -1914,6 +1962,12 @@ function computeDisplayHint(providerId, metadata) {
|
|
|
1914
1962
|
const head = shortPrefix(client, 8);
|
|
1915
1963
|
return head + (sub ? ` / sub:${shortPrefix(sub, 8)}` : "");
|
|
1916
1964
|
}
|
|
1965
|
+
case "OCI": {
|
|
1966
|
+
const tenancy = str(metadata["tenancyOcid"]);
|
|
1967
|
+
const region = str(metadata["region"]);
|
|
1968
|
+
const head = shortPrefix(tenancy, 12);
|
|
1969
|
+
return head + (region ? ` / ${region}` : "");
|
|
1970
|
+
}
|
|
1917
1971
|
case "SSH": {
|
|
1918
1972
|
const user = str(metadata["user"]);
|
|
1919
1973
|
const host = str(metadata["host"]);
|