@scalix-world/sdk 1.3.5 → 1.4.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.
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  // This file is auto-generated by @hey-api/openapi-ts
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.listModels = exports.generateImage = exports.createEmbeddings = exports.listDocgenVersions = exports.listDocgenTemplates = exports.getDocgenStatus = exports.reviseDocgen = exports.previewDocgen = exports.getDocgenHistory = exports.listDocgenFormats = exports.downloadDocgen = exports.createDocgen = exports.streamChatCompletion = exports.chatCompletion = exports.transcribeAudio = exports.generateSpeech = exports.readyz = exports.getOpenapiSpec = exports.healthz = exports.getUsageSummary = exports.registerWebhook = exports.listWebhooks = exports.upsertVectors = exports.searchVectors = exports.createVectorCollection = exports.listVectorCollections = exports.batchUpsertVectors = exports.realtimeWebsocket = exports.subscribeRealtime = exports.restorePitr = exports.getMigrationPlan = exports.registerMigration = exports.batchSql = exports.executeSql = exports.getServicesStatus = exports.getTableSchema = exports.getSchemaRelationships = exports.listPiiColumns = exports.searchSchemaColumns = exports.getSchema = exports.getScalingSuggestions = exports.listQueryLogs = exports.optimizeQuery = exports.naturalLanguageToSql = exports.callMcpTool = exports.listMcpTools = exports.rotateEncryptionKey = exports.encryptData = exports.decryptData = exports.detectAnomalies = void 0;
5
- exports.getBuildLogs = exports.cancelBuild = exports.getBuild = exports.createBuild = exports.listBuilds = exports.verifyEmail = exports.exportAuthUser = exports.recordAuthUserConsent = exports.listAuthUserConsent = exports.updateAuthUser = exports.getAuthUser = exports.signUp = exports.revokeSession = exports.listSessions = exports.resendVerification = exports.refreshToken = exports.resetPassword = exports.requestPasswordReset = exports.verifyOtp = exports.sendOtp = exports.oauthCallback = exports.authorizeOauth = exports.verifyMfa = exports.deleteMfaFactor = exports.listMfaFactors = exports.enrollMfa = exports.challengeMfa = exports.listUserOrgs = exports.verifyMagicLink = exports.sendMagicLink = exports.logout = exports.login = exports.linkIdentity = exports.signUpAnonymous = exports.textVectorSearch = exports.translateText = exports.summarizeText = exports.analyzeSentiment = exports.checkGrammar = exports.autocompleteText = exports.getResearchStatus = exports.searchResearch = exports.runDeepResearch = exports.runResearch = exports.uploadRagDocument = exports.getRagStatus = exports.queryRag = exports.deleteRagDocument = exports.listRagDocuments = exports.getAiProvidersStatus = void 0;
6
- exports.updateFunction = exports.getFunction = exports.deleteFunction = exports.createFunction = exports.listFunctions = exports.createEventSubscription = exports.listTopicSubscriptions = exports.publishEvent = exports.listTopicEvents = exports.getEventTopic = exports.deleteEventTopic = exports.createEventTopic = exports.listEventTopics = exports.listSubscriptionDeliveries = exports.getEventSubscription = exports.deleteEventSubscription = exports.deleteEnvVar = exports.bulkImportEnvVars = exports.setEnvVar = exports.listEnvVars = exports.verifyDomain = exports.provisionDomainSsl = exports.getDomain = exports.deleteDomain = exports.addDomain = exports.listDomains = exports.triggerCronSchedule = exports.listCronExecutions = exports.updateCronSchedule = exports.getCronSchedule = exports.deleteCronSchedule = exports.createCronSchedule = exports.listCronSchedules = exports.listDeploymentVersions = exports.scaleDeployment = exports.rollbackDeployment = exports.restartDeployment = exports.getDeploymentLogs = exports.listDeploymentInstances = exports.getDeployment = exports.deleteDeployment = exports.createDeployment = exports.listDeployments = exports.getComplianceStatus = exports.updateGdprRequestStatus = exports.getGdprRequest = exports.createGdprRequest = exports.listGdprRequests = exports.exportAuditLog = exports.queryAuditLog = void 0;
7
- exports.listShieldCrawlers = exports.updateShieldConfig = exports.getShieldConfig = exports.getSearchStats = exports.upsertSearchSource = exports.listSearchSources = exports.runSearchIngest = exports.searchIndex = exports.rollbackService = exports.listServiceRevisions = exports.getServiceMetrics = exports.listServiceInstances = exports.updateService = exports.getService = exports.deleteService = exports.createService = exports.listServices = exports.listRegistryTags = exports.putRegistryManifest = exports.headRegistryManifest = exports.getRegistryManifest = exports.deleteRegistryManifest = exports.headRegistryBlob = exports.getRegistryBlob = exports.startRegistryBlobUpload = exports.getRegistryCatalog = exports.registryVersionCheck = exports.getMe = exports.removeLoadBalancerBackend = exports.addLoadBalancerBackend = exports.getLoadBalancer = exports.deleteLoadBalancer = exports.createLoadBalancer = exports.listLoadBalancers = exports.kvSet = exports.kvKeys = exports.kvGet = exports.kvExists = exports.kvDel = exports.updateIntegration = exports.getIntegration = exports.deleteIntegration = exports.listGithubRepos = exports.createGithubInstallationToken = exports.listGithubInstallations = exports.createIntegration = exports.listIntegrations = exports.getFunctionLogs = exports.invokeFunction = exports.listFunctionInvocations = void 0;
8
- exports.getWafStats = exports.updateWafRule = exports.deleteWafRule = exports.createWafRule = exports.listWafRules = exports.listWafEvents = exports.removeVpcPeer = exports.addVpcPeer = exports.listVpcPeers = exports.getVpcConfig = exports.getVpc = exports.deleteVpc = exports.createVpc = exports.listVpcs = exports.getUserStats = exports.getUserInfo = exports.getUserBudget = exports.getKeyUsage = exports.getKeysUsage = exports.presignObject = exports.deleteBucket = exports.putObject = exports.headObject = exports.getObject = exports.deleteObject = exports.listObjects = exports.createBucket = exports.listBuckets = exports.getShieldStats = exports.getShieldRobotsTxt = exports.listShieldEvents = exports.updateShieldCustomRule = exports.deleteShieldCustomRule = exports.createShieldCustomRule = exports.setShieldCrawlerPolicy = exports.clearShieldCrawlerPolicy = exports.setShieldCrawlerIpRanges = void 0;
4
+ exports.generateImage = exports.createEmbeddings = exports.listDocgenVersions = exports.listDocgenTemplates = exports.getDocgenStatus = exports.reviseDocgen = exports.previewDocgen = exports.getDocgenHistory = exports.listDocgenFormats = exports.downloadDocgen = exports.createDocgen = exports.streamChatCompletion = exports.chatCompletion = exports.transcribeAudio = exports.generateSpeech = exports.readyz = exports.getOpenapiSpec = exports.healthz = exports.getUsageSummary = exports.registerWebhook = exports.listWebhooks = exports.upsertVectors = exports.searchVectors = exports.createVectorCollection = exports.listVectorCollections = exports.batchUpsertVectors = exports.branchTimeline = exports.realtimeWebsocket = exports.subscribeRealtime = exports.restorePitr = exports.getMigrationPlan = exports.registerMigration = exports.batchSql = exports.executeSql = exports.getServicesStatus = exports.getTableSchema = exports.getSchemaRelationships = exports.listPiiColumns = exports.searchSchemaColumns = exports.getSchema = exports.getScalingSuggestions = exports.listQueryLogs = exports.optimizeQuery = exports.naturalLanguageToSql = exports.callMcpTool = exports.listMcpTools = exports.rotateEncryptionKey = exports.encryptData = exports.decryptData = exports.detectAnomalies = void 0;
5
+ exports.cancelBuild = exports.getBuild = exports.createBuild = exports.listBuilds = exports.verifyEmail = exports.exportAuthUser = exports.recordAuthUserConsent = exports.listAuthUserConsent = exports.updateAuthUser = exports.getAuthUser = exports.signUp = exports.revokeSession = exports.listSessions = exports.resendVerification = exports.refreshToken = exports.resetPassword = exports.requestPasswordReset = exports.verifyOtp = exports.sendOtp = exports.oauthCallback = exports.authorizeOauth = exports.verifyMfa = exports.deleteMfaFactor = exports.listMfaFactors = exports.enrollMfa = exports.challengeMfa = exports.listUserOrgs = exports.verifyMagicLink = exports.sendMagicLink = exports.logout = exports.login = exports.linkIdentity = exports.signUpAnonymous = exports.textVectorSearch = exports.translateText = exports.summarizeText = exports.analyzeSentiment = exports.checkGrammar = exports.autocompleteText = exports.getResearchStatus = exports.searchResearch = exports.runDeepResearch = exports.runResearch = exports.uploadRagDocument = exports.getRagStatus = exports.queryRag = exports.deleteRagDocument = exports.listRagDocuments = exports.getAiProvidersStatus = exports.listModels = void 0;
6
+ exports.setEnvVar = exports.listEnvVars = exports.verifyDomain = exports.provisionDomainSsl = exports.getDomain = exports.deleteDomain = exports.addDomain = exports.listDomains = exports.restoreDatabase = exports.getDatabase = exports.deleteDatabase = exports.provisionDatabase = exports.createDatabase = exports.listDatabases = exports.triggerCronSchedule = exports.listCronExecutions = exports.updateCronSchedule = exports.getCronSchedule = exports.deleteCronSchedule = exports.createCronSchedule = exports.listCronSchedules = exports.computerStop = exports.computerStart = exports.computerSetSshKeys = exports.computerWriteFiles = exports.computerReadFile = exports.computerExec = exports.computerGet = exports.computerDelete = exports.computerGetOrCreateByName = exports.computerCreate = exports.computerList = exports.listDeploymentVersions = exports.scaleDeployment = exports.rollbackDeployment = exports.restartDeployment = exports.getDeploymentLogs = exports.listDeploymentInstances = exports.getDeployment = exports.deleteDeployment = exports.createDeployment = exports.listDeployments = exports.getComplianceStatus = exports.updateGdprRequestStatus = exports.getGdprRequest = exports.createGdprRequest = exports.listGdprRequests = exports.exportAuditLog = exports.queryAuditLog = exports.getBuildLogs = void 0;
7
+ exports.putRegistryManifest = exports.headRegistryManifest = exports.getRegistryManifest = exports.deleteRegistryManifest = exports.headRegistryBlob = exports.getRegistryBlob = exports.startRegistryBlobUpload = exports.getRegistryCatalog = exports.registryVersionCheck = exports.getMe = exports.removeLoadBalancerBackend = exports.addLoadBalancerBackend = exports.getLoadBalancer = exports.deleteLoadBalancer = exports.createLoadBalancer = exports.listLoadBalancers = exports.kvSet = exports.kvKeys = exports.kvGet = exports.kvExists = exports.kvDel = exports.updateIntegration = exports.getIntegration = exports.deleteIntegration = exports.listGithubRepos = exports.createGithubInstallationToken = exports.listGithubInstallations = exports.createIntegration = exports.listIntegrations = exports.getFunctionLogs = exports.invokeFunction = exports.listFunctionInvocations = exports.updateFunction = exports.getFunction = exports.deleteFunction = exports.createFunction = exports.listFunctions = exports.createEventSubscription = exports.listTopicSubscriptions = exports.publishEvent = exports.listTopicEvents = exports.getEventTopic = exports.deleteEventTopic = exports.createEventTopic = exports.listEventTopics = exports.listSubscriptionDeliveries = exports.getEventSubscription = exports.deleteEventSubscription = exports.deleteEnvVar = exports.bulkImportEnvVars = void 0;
8
+ exports.getUserStats = exports.getUserInfo = exports.getUserBudget = exports.getKeyUsage = exports.getKeysUsage = exports.presignObject = exports.deleteBucket = exports.putObject = exports.headObject = exports.getObject = exports.deleteObject = exports.listObjects = exports.createBucket = exports.listBuckets = exports.getShieldStats = exports.getShieldRobotsTxt = exports.listShieldEvents = exports.updateShieldCustomRule = exports.deleteShieldCustomRule = exports.createShieldCustomRule = exports.setShieldCrawlerPolicy = exports.clearShieldCrawlerPolicy = exports.setShieldCrawlerIpRanges = exports.listShieldCrawlers = exports.updateShieldConfig = exports.getShieldConfig = exports.getSearchStats = exports.upsertSearchSource = exports.listSearchSources = exports.runSearchIngest = exports.searchIndex = exports.sandboxSnapshot = exports.sandboxReadFile = exports.sandboxWriteFiles = exports.sandboxExtend = exports.sandboxRunCommand = exports.sandboxGet = exports.sandboxDelete = exports.sandboxCreate = exports.sandboxList = exports.rollbackService = exports.listServiceRevisions = exports.getServiceMetrics = exports.listServiceInstances = exports.updateService = exports.getService = exports.deleteService = exports.createService = exports.listServices = exports.listRegistryTags = void 0;
9
+ exports.getWafStats = exports.updateWafRule = exports.deleteWafRule = exports.createWafRule = exports.listWafRules = exports.listWafEvents = exports.removeVpcPeer = exports.addVpcPeer = exports.listVpcPeers = exports.getVpcConfig = exports.getVpc = exports.deleteVpc = exports.createVpc = exports.listVpcs = void 0;
9
10
  const client_gen_js_1 = require("./client.gen.js");
10
11
  const index_js_1 = require("./client/index.js");
11
12
  /**
@@ -269,6 +270,23 @@ const realtimeWebsocket = (options) => (options.client ?? client_gen_js_1.client
269
270
  ...options
270
271
  });
271
272
  exports.realtimeWebsocket = realtimeWebsocket;
273
+ /**
274
+ * Branch a timeline.
275
+ *
276
+ * Restores the parent timeline's durable base backup + archived WAL into a
277
+ * NEW compute worker replayed to `branch_lsn` (`0` = latest), then routes the
278
+ * branch endpoint. The branch archives onto its own timeline from that point.
279
+ */
280
+ const branchTimeline = (options) => (options.client ?? client_gen_js_1.client).post({
281
+ security: [{ scheme: 'bearer', type: 'http' }],
282
+ url: '/api/v1/tenants/{tenant_id}/timelines/{timeline_id}/branch',
283
+ ...options,
284
+ headers: {
285
+ 'Content-Type': 'application/json',
286
+ ...options.headers
287
+ }
288
+ });
289
+ exports.branchTimeline = branchTimeline;
272
290
  /**
273
291
  * Batch upsert vectors.
274
292
  *
@@ -1439,6 +1457,149 @@ const listDeploymentVersions = (options) => (options.client ?? client_gen_js_1.c
1439
1457
  ...options
1440
1458
  });
1441
1459
  exports.listDeploymentVersions = listDeploymentVersions;
1460
+ /**
1461
+ * List your Computers.
1462
+ */
1463
+ const computerList = (options) => (options?.client ?? client_gen_js_1.client).get({
1464
+ security: [{ scheme: 'bearer', type: 'http' }],
1465
+ url: '/v1/computers',
1466
+ ...options
1467
+ });
1468
+ exports.computerList = computerList;
1469
+ /**
1470
+ * Create a Computer.
1471
+ *
1472
+ * Boots a persistent Linux machine and returns once it is provisioning. The
1473
+ * root disk survives stop/start and is only reclaimed by DELETE. Billed per
1474
+ * start, per vCPU-hour and GB-hour while running, and per GB-month of disk
1475
+ * for as long as the Computer exists.
1476
+ */
1477
+ const computerCreate = (options) => (options.client ?? client_gen_js_1.client).post({
1478
+ security: [{ scheme: 'bearer', type: 'http' }],
1479
+ url: '/v1/computers',
1480
+ ...options,
1481
+ headers: {
1482
+ 'Content-Type': 'application/json',
1483
+ ...options.headers
1484
+ }
1485
+ });
1486
+ exports.computerCreate = computerCreate;
1487
+ /**
1488
+ * Get or create a Computer by name.
1489
+ *
1490
+ * Idempotent: the first call creates the machine (201), every identical
1491
+ * repeat returns the existing one (200). Resource changes on a repeat are
1492
+ * ignored — the existing machine wins. Use this instead of create when an
1493
+ * agent may retry.
1494
+ */
1495
+ const computerGetOrCreateByName = (options) => (options.client ?? client_gen_js_1.client).put({
1496
+ security: [{ scheme: 'bearer', type: 'http' }],
1497
+ url: '/v1/computers/by-name/{name}',
1498
+ ...options,
1499
+ headers: {
1500
+ 'Content-Type': 'application/json',
1501
+ ...options.headers
1502
+ }
1503
+ });
1504
+ exports.computerGetOrCreateByName = computerGetOrCreateByName;
1505
+ /**
1506
+ * Delete a Computer.
1507
+ *
1508
+ * The only operation that reclaims the root disk. Irreversible — stop the
1509
+ * Computer instead if you want the files back later.
1510
+ */
1511
+ const computerDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
1512
+ security: [{ scheme: 'bearer', type: 'http' }],
1513
+ url: '/v1/computers/{id}',
1514
+ ...options
1515
+ });
1516
+ exports.computerDelete = computerDelete;
1517
+ /**
1518
+ * Get one Computer.
1519
+ */
1520
+ const computerGet = (options) => (options.client ?? client_gen_js_1.client).get({
1521
+ security: [{ scheme: 'bearer', type: 'http' }],
1522
+ url: '/v1/computers/{id}',
1523
+ ...options
1524
+ });
1525
+ exports.computerGet = computerGet;
1526
+ /**
1527
+ * Run a command inside a Computer.
1528
+ */
1529
+ const computerExec = (options) => (options.client ?? client_gen_js_1.client).post({
1530
+ security: [{ scheme: 'bearer', type: 'http' }],
1531
+ url: '/v1/computers/{id}/exec',
1532
+ ...options,
1533
+ headers: {
1534
+ 'Content-Type': 'application/json',
1535
+ ...options.headers
1536
+ }
1537
+ });
1538
+ exports.computerExec = computerExec;
1539
+ /**
1540
+ * Read one file out of a Computer.
1541
+ */
1542
+ const computerReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
1543
+ security: [{ scheme: 'bearer', type: 'http' }],
1544
+ url: '/v1/computers/{id}/files',
1545
+ ...options
1546
+ });
1547
+ exports.computerReadFile = computerReadFile;
1548
+ /**
1549
+ * Write files into a Computer.
1550
+ */
1551
+ const computerWriteFiles = (options) => (options.client ?? client_gen_js_1.client).put({
1552
+ security: [{ scheme: 'bearer', type: 'http' }],
1553
+ url: '/v1/computers/{id}/files',
1554
+ ...options,
1555
+ headers: {
1556
+ 'Content-Type': 'application/json',
1557
+ ...options.headers
1558
+ }
1559
+ });
1560
+ exports.computerWriteFiles = computerWriteFiles;
1561
+ /**
1562
+ * Replace a Computer's authorised ssh keys.
1563
+ *
1564
+ * Sends the whole list every time, so removing a key is the same operation as
1565
+ * adding one. On a RUNNING machine the change applies immediately — a
1566
+ * revoked key stops working now, not at the next restart. On a stopped
1567
+ * machine it is stored and delivered when it next boots.
1568
+ */
1569
+ const computerSetSshKeys = (options) => (options.client ?? client_gen_js_1.client).put({
1570
+ security: [{ scheme: 'bearer', type: 'http' }],
1571
+ url: '/v1/computers/{id}/ssh-keys',
1572
+ ...options,
1573
+ headers: {
1574
+ 'Content-Type': 'application/json',
1575
+ ...options.headers
1576
+ }
1577
+ });
1578
+ exports.computerSetSshKeys = computerSetSshKeys;
1579
+ /**
1580
+ * Start a stopped Computer.
1581
+ *
1582
+ * Boots the same disk on the same host and reclaims the same address.
1583
+ */
1584
+ const computerStart = (options) => (options.client ?? client_gen_js_1.client).post({
1585
+ security: [{ scheme: 'bearer', type: 'http' }],
1586
+ url: '/v1/computers/{id}/start',
1587
+ ...options
1588
+ });
1589
+ exports.computerStart = computerStart;
1590
+ /**
1591
+ * Stop a Computer.
1592
+ *
1593
+ * Halts the machine. The root disk and the network address are kept, so a
1594
+ * later start comes back to the same files at the same address. Runtime
1595
+ * billing stops; disk billing continues at the parked rate.
1596
+ */
1597
+ const computerStop = (options) => (options.client ?? client_gen_js_1.client).post({
1598
+ security: [{ scheme: 'bearer', type: 'http' }],
1599
+ url: '/v1/computers/{id}/stop',
1600
+ ...options
1601
+ });
1602
+ exports.computerStop = computerStop;
1442
1603
  /**
1443
1604
  * List cron schedules.
1444
1605
  *
@@ -1524,6 +1685,83 @@ const triggerCronSchedule = (options) => (options.client ?? client_gen_js_1.clie
1524
1685
  ...options
1525
1686
  });
1526
1687
  exports.triggerCronSchedule = triggerCronSchedule;
1688
+ /**
1689
+ * List databases.
1690
+ *
1691
+ * Lists the project's databases. `include_deleted=true` also returns
1692
+ * soft-deleted databases still inside the recovery grace window.
1693
+ */
1694
+ const listDatabases = (options) => (options?.client ?? client_gen_js_1.client).get({
1695
+ security: [{ scheme: 'bearer', type: 'http' }],
1696
+ url: '/v1/databases',
1697
+ ...options
1698
+ });
1699
+ exports.listDatabases = listDatabases;
1700
+ /**
1701
+ * Create a database.
1702
+ *
1703
+ * Creates a ScalixNova database in the project on the requested PostgreSQL
1704
+ * major version (16 default, 17, or 18). The version is fixed at creation;
1705
+ * branches and point-in-time restores keep it.
1706
+ */
1707
+ const createDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1708
+ security: [{ scheme: 'bearer', type: 'http' }],
1709
+ url: '/v1/databases',
1710
+ ...options,
1711
+ headers: {
1712
+ 'Content-Type': 'application/json',
1713
+ ...options.headers
1714
+ }
1715
+ });
1716
+ exports.createDatabase = createDatabase;
1717
+ /**
1718
+ * Get or create the project's default database.
1719
+ *
1720
+ * Idempotent: returns the project's default database connection info,
1721
+ * creating the database (on the default PostgreSQL version) if none exists.
1722
+ */
1723
+ const provisionDatabase = (options) => (options?.client ?? client_gen_js_1.client).post({
1724
+ security: [{ scheme: 'bearer', type: 'http' }],
1725
+ url: '/v1/databases/provision',
1726
+ ...options
1727
+ });
1728
+ exports.provisionDatabase = provisionDatabase;
1729
+ /**
1730
+ * Delete a database.
1731
+ *
1732
+ * Soft-deletes the database: it is hidden from listings and restorable via
1733
+ * `POST /v1/databases/{id}/restore` until the grace window ends, after which
1734
+ * it is purged permanently.
1735
+ */
1736
+ const deleteDatabase = (options) => (options.client ?? client_gen_js_1.client).delete({
1737
+ security: [{ scheme: 'bearer', type: 'http' }],
1738
+ url: '/v1/databases/{id}',
1739
+ ...options
1740
+ });
1741
+ exports.deleteDatabase = deleteDatabase;
1742
+ /**
1743
+ * Get a database.
1744
+ *
1745
+ * Fetches one database by id, including its PostgreSQL version and isolation tier.
1746
+ */
1747
+ const getDatabase = (options) => (options.client ?? client_gen_js_1.client).get({
1748
+ security: [{ scheme: 'bearer', type: 'http' }],
1749
+ url: '/v1/databases/{id}',
1750
+ ...options
1751
+ });
1752
+ exports.getDatabase = getDatabase;
1753
+ /**
1754
+ * Restore a soft-deleted database.
1755
+ *
1756
+ * Undoes a delete within the recovery grace window; the database returns to
1757
+ * `active` with its data, version, and tier intact.
1758
+ */
1759
+ const restoreDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1760
+ security: [{ scheme: 'bearer', type: 'http' }],
1761
+ url: '/v1/databases/{id}/restore',
1762
+ ...options
1763
+ });
1764
+ exports.restoreDatabase = restoreDatabase;
1527
1765
  /**
1528
1766
  * List custom domains.
1529
1767
  *
@@ -2374,6 +2612,111 @@ const rollbackService = (options) => (options.client ?? client_gen_js_1.client).
2374
2612
  }
2375
2613
  });
2376
2614
  exports.rollbackService = rollbackService;
2615
+ /**
2616
+ * List your sandboxes.
2617
+ */
2618
+ const sandboxList = (options) => (options?.client ?? client_gen_js_1.client).get({
2619
+ security: [{ scheme: 'bearer', type: 'http' }],
2620
+ url: '/v1/sandboxes',
2621
+ ...options
2622
+ });
2623
+ exports.sandboxList = sandboxList;
2624
+ /**
2625
+ * Create an ephemeral sandbox.
2626
+ *
2627
+ * Boots an isolated microVM. Ephemeral sandboxes are disposable: they stop
2628
+ * at their idle or hard timeout and nothing on the rootfs persists past
2629
+ * stop. Compute is billed per vCPU-hour and GB-hour of allocation while
2630
+ * running.
2631
+ */
2632
+ const sandboxCreate = (options) => (options.client ?? client_gen_js_1.client).post({
2633
+ security: [{ scheme: 'bearer', type: 'http' }],
2634
+ url: '/v1/sandboxes',
2635
+ ...options,
2636
+ headers: {
2637
+ 'Content-Type': 'application/json',
2638
+ ...options.headers
2639
+ }
2640
+ });
2641
+ exports.sandboxCreate = sandboxCreate;
2642
+ /**
2643
+ * Delete a sandbox and tear down its microVM.
2644
+ */
2645
+ const sandboxDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
2646
+ security: [{ scheme: 'bearer', type: 'http' }],
2647
+ url: '/v1/sandboxes/{id}',
2648
+ ...options
2649
+ });
2650
+ exports.sandboxDelete = sandboxDelete;
2651
+ /**
2652
+ * Get a sandbox by id.
2653
+ */
2654
+ const sandboxGet = (options) => (options.client ?? client_gen_js_1.client).get({
2655
+ security: [{ scheme: 'bearer', type: 'http' }],
2656
+ url: '/v1/sandboxes/{id}',
2657
+ ...options
2658
+ });
2659
+ exports.sandboxGet = sandboxGet;
2660
+ /**
2661
+ * Run a command inside a running sandbox (synchronous).
2662
+ */
2663
+ const sandboxRunCommand = (options) => (options.client ?? client_gen_js_1.client).post({
2664
+ security: [{ scheme: 'bearer', type: 'http' }],
2665
+ url: '/v1/sandboxes/{id}/commands',
2666
+ ...options,
2667
+ headers: {
2668
+ 'Content-Type': 'application/json',
2669
+ ...options.headers
2670
+ }
2671
+ });
2672
+ exports.sandboxRunCommand = sandboxRunCommand;
2673
+ /**
2674
+ * Extend a sandbox's hard deadline.
2675
+ */
2676
+ const sandboxExtend = (options) => (options.client ?? client_gen_js_1.client).post({
2677
+ security: [{ scheme: 'bearer', type: 'http' }],
2678
+ url: '/v1/sandboxes/{id}/extend',
2679
+ ...options,
2680
+ headers: {
2681
+ 'Content-Type': 'application/json',
2682
+ ...options.headers
2683
+ }
2684
+ });
2685
+ exports.sandboxExtend = sandboxExtend;
2686
+ /**
2687
+ * Write files into a sandbox.
2688
+ */
2689
+ const sandboxWriteFiles = (options) => (options.client ?? client_gen_js_1.client).post({
2690
+ security: [{ scheme: 'bearer', type: 'http' }],
2691
+ url: '/v1/sandboxes/{id}/files',
2692
+ ...options,
2693
+ headers: {
2694
+ 'Content-Type': 'application/json',
2695
+ ...options.headers
2696
+ }
2697
+ });
2698
+ exports.sandboxWriteFiles = sandboxWriteFiles;
2699
+ /**
2700
+ * Read a file from a sandbox. The guest path follows `/files/`.
2701
+ */
2702
+ const sandboxReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
2703
+ security: [{ scheme: 'bearer', type: 'http' }],
2704
+ url: '/v1/sandboxes/{id}/files/{path}',
2705
+ ...options
2706
+ });
2707
+ exports.sandboxReadFile = sandboxReadFile;
2708
+ /**
2709
+ * Snapshot a sandbox - not available.
2710
+ *
2711
+ * Ephemeral sandboxes are disposable; state does not persist past stop.
2712
+ * This endpoint returns 501 until snapshots ship (demand-gated).
2713
+ */
2714
+ const sandboxSnapshot = (options) => (options.client ?? client_gen_js_1.client).post({
2715
+ security: [{ scheme: 'bearer', type: 'http' }],
2716
+ url: '/v1/sandboxes/{id}/snapshot',
2717
+ ...options
2718
+ });
2719
+ exports.sandboxSnapshot = sandboxSnapshot;
2377
2720
  /**
2378
2721
  * Run a search.
2379
2722
  *