@flashbacktech/tsclient 0.4.48 → 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.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
@@ -357,6 +357,8 @@ function normalize(wire) {
357
357
  name: wire.name,
358
358
  orgId: wire.orgId,
359
359
  default: wire.default ?? false,
360
+ isReferenceProject: wire.isReferenceProject ?? false,
361
+ preferredAiProvider: wire.preferredAiProvider ?? null,
360
362
  users: wire.users ?? []
361
363
  };
362
364
  }
@@ -1385,6 +1387,54 @@ var PROVIDER_CATALOG = {
1385
1387
  }
1386
1388
  ]
1387
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
+ },
1388
1438
  SSH: {
1389
1439
  id: "SSH",
1390
1440
  displayName: "SSH",
@@ -1746,7 +1796,7 @@ var PROVIDER_CATALOG = {
1746
1796
  ]
1747
1797
  }
1748
1798
  };
1749
- 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"];
1750
1800
  function listProviders() {
1751
1801
  return PROVIDER_ORDER.flatMap((id) => PROVIDER_CATALOG[id] ? [PROVIDER_CATALOG[id]] : []);
1752
1802
  }
@@ -1912,6 +1962,12 @@ function computeDisplayHint(providerId, metadata) {
1912
1962
  const head = shortPrefix(client, 8);
1913
1963
  return head + (sub ? ` / sub:${shortPrefix(sub, 8)}` : "");
1914
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
+ }
1915
1971
  case "SSH": {
1916
1972
  const user = str(metadata["user"]);
1917
1973
  const host = str(metadata["host"]);