@scalix-world/sdk 1.4.0 → 1.5.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,418 +1,11 @@
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.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;
4
+ 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.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 = 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 = void 0;
5
+ exports.sandboxGet = exports.sandboxDelete = exports.sandboxCreate = exports.sandboxList = exports.kvSet = exports.kvKeys = exports.kvGet = exports.kvExists = exports.kvDel = 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.updateEmailTemplate = exports.deleteEmailTemplate = exports.createEmailTemplate = exports.listEmailTemplates = exports.sendTransactionalEmail = exports.sendRawEmail = 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 = void 0;
6
+ exports.getKeysUsage = exports.presignObject = exports.deleteBucket = exports.putObject = exports.getObject = exports.deleteObject = exports.listObjects = exports.createBucket = exports.listBuckets = exports.sandboxSnapshot = exports.sandboxReadFile = exports.sandboxWriteFiles = exports.sandboxExtend = exports.sandboxRunCommand = void 0;
10
7
  const client_gen_js_1 = require("./client.gen.js");
11
8
  const index_js_1 = require("./client/index.js");
12
- /**
13
- * Detect database anomalies.
14
- *
15
- * Analyzes recent activity and returns a report of detected database anomalies.
16
- */
17
- const detectAnomalies = (options) => (options?.client ?? client_gen_js_1.client).post({
18
- security: [{ scheme: 'bearer', type: 'http' }],
19
- url: '/api/v1/anomalies',
20
- ...options
21
- });
22
- exports.detectAnomalies = detectAnomalies;
23
- /**
24
- * Decrypt data.
25
- *
26
- * Decrypts the supplied ciphertext and returns the plaintext.
27
- */
28
- const decryptData = (options) => (options?.client ?? client_gen_js_1.client).post({
29
- security: [{ scheme: 'bearer', type: 'http' }],
30
- url: '/api/v1/encryption/decrypt',
31
- ...options
32
- });
33
- exports.decryptData = decryptData;
34
- /**
35
- * Encrypt data.
36
- *
37
- * Encrypts the supplied plaintext and returns the ciphertext.
38
- */
39
- const encryptData = (options) => (options?.client ?? client_gen_js_1.client).post({
40
- security: [{ scheme: 'bearer', type: 'http' }],
41
- url: '/api/v1/encryption/encrypt',
42
- ...options
43
- });
44
- exports.encryptData = encryptData;
45
- /**
46
- * Rotate the encryption key.
47
- *
48
- * Rotates the tenant's encryption key.
49
- */
50
- const rotateEncryptionKey = (options) => (options?.client ?? client_gen_js_1.client).post({
51
- security: [{ scheme: 'bearer', type: 'http' }],
52
- url: '/api/v1/encryption/rotate-key',
53
- ...options
54
- });
55
- exports.rotateEncryptionKey = rotateEncryptionKey;
56
- /**
57
- * List MCP tools.
58
- *
59
- * Returns the MCP tool definitions available to the caller.
60
- */
61
- const listMcpTools = (options) => (options?.client ?? client_gen_js_1.client).get({
62
- security: [{ scheme: 'bearer', type: 'http' }],
63
- url: '/api/v1/mcp',
64
- ...options
65
- });
66
- exports.listMcpTools = listMcpTools;
67
- /**
68
- * Call an MCP tool.
69
- *
70
- * Invokes an MCP tool and returns its result.
71
- */
72
- const callMcpTool = (options) => (options?.client ?? client_gen_js_1.client).post({
73
- security: [{ scheme: 'bearer', type: 'http' }],
74
- url: '/api/v1/mcp/call',
75
- ...options
76
- });
77
- exports.callMcpTool = callMcpTool;
78
- /**
79
- * Translate natural language to SQL.
80
- *
81
- * Generates a SQL statement from a natural-language description of the desired query.
82
- */
83
- const naturalLanguageToSql = (options) => (options?.client ?? client_gen_js_1.client).post({
84
- security: [{ scheme: 'bearer', type: 'http' }],
85
- url: '/api/v1/nl-to-sql',
86
- ...options
87
- });
88
- exports.naturalLanguageToSql = naturalLanguageToSql;
89
- /**
90
- * Get query optimization suggestions.
91
- *
92
- * Analyzes the tenant's database and returns indexing and query optimization suggestions.
93
- */
94
- const optimizeQuery = (options) => (options?.client ?? client_gen_js_1.client).post({
95
- security: [{ scheme: 'bearer', type: 'http' }],
96
- url: '/api/v1/optimize',
97
- ...options
98
- });
99
- exports.optimizeQuery = optimizeQuery;
100
- /**
101
- * List recent query logs.
102
- *
103
- * Returns recent query-log entries for a tenant, newest first.
104
- */
105
- const listQueryLogs = (options) => (options.client ?? client_gen_js_1.client).get({
106
- security: [{ scheme: 'bearer', type: 'http' }],
107
- url: '/api/v1/query-logs/{tenant_id}',
108
- ...options
109
- });
110
- exports.listQueryLogs = listQueryLogs;
111
- /**
112
- * Get scaling suggestions.
113
- *
114
- * Returns capacity and scaling recommendations for the tenant's database.
115
- */
116
- const getScalingSuggestions = (options) => (options?.client ?? client_gen_js_1.client).get({
117
- security: [{ scheme: 'bearer', type: 'http' }],
118
- url: '/api/v1/scaling',
119
- ...options
120
- });
121
- exports.getScalingSuggestions = getScalingSuggestions;
122
- /**
123
- * Get the database schema.
124
- *
125
- * Returns the tables, views, and types in the tenant's database.
126
- */
127
- const getSchema = (options) => (options?.client ?? client_gen_js_1.client).get({
128
- security: [{ scheme: 'bearer', type: 'http' }],
129
- url: '/api/v1/schema',
130
- ...options
131
- });
132
- exports.getSchema = getSchema;
133
- /**
134
- * Search schema columns.
135
- *
136
- * Returns columns across the schema matching an optional name search term.
137
- */
138
- const searchSchemaColumns = (options) => (options?.client ?? client_gen_js_1.client).get({
139
- security: [{ scheme: 'bearer', type: 'http' }],
140
- url: '/api/v1/schema/columns',
141
- ...options
142
- });
143
- exports.searchSchemaColumns = searchSchemaColumns;
144
- /**
145
- * Analyze PII columns.
146
- *
147
- * Returns columns flagged as likely personally identifiable information.
148
- */
149
- const listPiiColumns = (options) => (options?.client ?? client_gen_js_1.client).get({
150
- security: [{ scheme: 'bearer', type: 'http' }],
151
- url: '/api/v1/schema/pii',
152
- ...options
153
- });
154
- exports.listPiiColumns = listPiiColumns;
155
- /**
156
- * List schema relationships.
157
- *
158
- * Returns the foreign-key relationships between tables in the schema.
159
- */
160
- const getSchemaRelationships = (options) => (options?.client ?? client_gen_js_1.client).get({
161
- security: [{ scheme: 'bearer', type: 'http' }],
162
- url: '/api/v1/schema/relationships',
163
- ...options
164
- });
165
- exports.getSchemaRelationships = getSchemaRelationships;
166
- /**
167
- * Get a table's schema.
168
- *
169
- * Returns the columns and types for a single table.
170
- */
171
- const getTableSchema = (options) => (options.client ?? client_gen_js_1.client).get({
172
- security: [{ scheme: 'bearer', type: 'http' }],
173
- url: '/api/v1/schema/table/{name}',
174
- ...options
175
- });
176
- exports.getTableSchema = getTableSchema;
177
- /**
178
- * Get service status.
179
- *
180
- * Returns the operational status of Scalix Cloud services.
181
- */
182
- const getServicesStatus = (options) => (options?.client ?? client_gen_js_1.client).get({
183
- security: [{ scheme: 'bearer', type: 'http' }],
184
- url: '/api/v1/services',
185
- ...options
186
- });
187
- exports.getServicesStatus = getServicesStatus;
188
- /**
189
- * Execute a SQL query.
190
- *
191
- * Runs a parameterized SQL statement against the tenant's database and returns the result set.
192
- */
193
- const executeSql = (options) => (options.client ?? client_gen_js_1.client).post({
194
- security: [{ scheme: 'bearer', type: 'http' }],
195
- url: '/api/v1/sql',
196
- ...options,
197
- headers: {
198
- 'Content-Type': 'application/json',
199
- ...options.headers
200
- }
201
- });
202
- exports.executeSql = executeSql;
203
- /**
204
- * Execute a batch of SQL queries.
205
- *
206
- * Runs multiple SQL statements in one request; each query executes independently and returns its own result set.
207
- */
208
- const batchSql = (options) => (options.client ?? client_gen_js_1.client).post({
209
- security: [{ scheme: 'bearer', type: 'http' }],
210
- url: '/api/v1/sql/batch',
211
- ...options,
212
- headers: {
213
- 'Content-Type': 'application/json',
214
- ...options.headers
215
- }
216
- });
217
- exports.batchSql = batchSql;
218
- /**
219
- * Register a migration.
220
- *
221
- * Registers a database migration for a tenant.
222
- */
223
- const registerMigration = (options) => (options.client ?? client_gen_js_1.client).post({
224
- security: [{ scheme: 'bearer', type: 'http' }],
225
- url: '/api/v1/tenants/{tenant_id}/migrations',
226
- ...options
227
- });
228
- exports.registerMigration = registerMigration;
229
- /**
230
- * Get the migration plan.
231
- *
232
- * Returns the pending migrations for a tenant.
233
- */
234
- const getMigrationPlan = (options) => (options.client ?? client_gen_js_1.client).get({
235
- security: [{ scheme: 'bearer', type: 'http' }],
236
- url: '/api/v1/tenants/{tenant_id}/migrations/plan',
237
- ...options
238
- });
239
- exports.getMigrationPlan = getMigrationPlan;
240
- /**
241
- * Restore to a point in time.
242
- *
243
- * Initiates a point-in-time restore of a tenant's database.
244
- */
245
- const restorePitr = (options) => (options.client ?? client_gen_js_1.client).post({
246
- security: [{ scheme: 'bearer', type: 'http' }],
247
- url: '/api/v1/tenants/{tenant_id}/pitr/restore',
248
- ...options
249
- });
250
- exports.restorePitr = restorePitr;
251
- /**
252
- * Create a realtime subscription.
253
- *
254
- * Creates a realtime subscription for a tenant.
255
- */
256
- const subscribeRealtime = (options) => (options.client ?? client_gen_js_1.client).post({
257
- security: [{ scheme: 'bearer', type: 'http' }],
258
- url: '/api/v1/tenants/{tenant_id}/realtime/subscribe',
259
- ...options
260
- });
261
- exports.subscribeRealtime = subscribeRealtime;
262
- /**
263
- * Open a realtime WebSocket.
264
- *
265
- * Upgrades the connection to a realtime WebSocket stream for a tenant.
266
- */
267
- const realtimeWebsocket = (options) => (options.client ?? client_gen_js_1.client).get({
268
- security: [{ scheme: 'bearer', type: 'http' }],
269
- url: '/api/v1/tenants/{tenant_id}/realtime/ws',
270
- ...options
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;
290
- /**
291
- * Batch upsert vectors.
292
- *
293
- * Inserts or updates many vectors in a collection in a single request
294
- * (one multi-row write). Returns the number of vectors upserted.
295
- */
296
- const batchUpsertVectors = (options) => (options.client ?? client_gen_js_1.client).post({
297
- security: [{ scheme: 'bearer', type: 'http' }],
298
- url: '/api/v1/tenants/{tenant_id}/vectors/batch/upsert',
299
- ...options,
300
- headers: {
301
- 'Content-Type': 'application/json',
302
- ...options.headers
303
- }
304
- });
305
- exports.batchUpsertVectors = batchUpsertVectors;
306
- /**
307
- * List vector collections.
308
- *
309
- * Returns the vector collections for a tenant.
310
- */
311
- const listVectorCollections = (options) => (options.client ?? client_gen_js_1.client).get({
312
- security: [{ scheme: 'bearer', type: 'http' }],
313
- url: '/api/v1/tenants/{tenant_id}/vectors/collections',
314
- ...options
315
- });
316
- exports.listVectorCollections = listVectorCollections;
317
- /**
318
- * Create a vector collection.
319
- *
320
- * Creates a new vector collection for a tenant.
321
- */
322
- const createVectorCollection = (options) => (options.client ?? client_gen_js_1.client).post({
323
- security: [{ scheme: 'bearer', type: 'http' }],
324
- url: '/api/v1/tenants/{tenant_id}/vectors/collections',
325
- ...options
326
- });
327
- exports.createVectorCollection = createVectorCollection;
328
- /**
329
- * Search vectors.
330
- *
331
- * Runs a nearest-neighbour vector search and returns scored matches.
332
- */
333
- const searchVectors = (options) => (options.client ?? client_gen_js_1.client).post({
334
- security: [{ scheme: 'bearer', type: 'http' }],
335
- url: '/api/v1/tenants/{tenant_id}/vectors/search',
336
- ...options,
337
- headers: {
338
- 'Content-Type': 'application/json',
339
- ...options.headers
340
- }
341
- });
342
- exports.searchVectors = searchVectors;
343
- /**
344
- * Upsert vectors.
345
- *
346
- * Inserts or updates a batch of vectors in a collection.
347
- */
348
- const upsertVectors = (options) => (options.client ?? client_gen_js_1.client).post({
349
- security: [{ scheme: 'bearer', type: 'http' }],
350
- url: '/api/v1/tenants/{tenant_id}/vectors/upsert',
351
- ...options,
352
- headers: {
353
- 'Content-Type': 'application/json',
354
- ...options.headers
355
- }
356
- });
357
- exports.upsertVectors = upsertVectors;
358
- /**
359
- * List webhooks.
360
- *
361
- * Returns the registered webhook endpoints for a tenant.
362
- */
363
- const listWebhooks = (options) => (options.client ?? client_gen_js_1.client).get({
364
- security: [{ scheme: 'bearer', type: 'http' }],
365
- url: '/api/v1/tenants/{tenant_id}/webhooks',
366
- ...options
367
- });
368
- exports.listWebhooks = listWebhooks;
369
- /**
370
- * Register a webhook.
371
- *
372
- * Registers a webhook endpoint for a set of event types.
373
- */
374
- const registerWebhook = (options) => (options.client ?? client_gen_js_1.client).post({
375
- security: [{ scheme: 'bearer', type: 'http' }],
376
- url: '/api/v1/tenants/{tenant_id}/webhooks',
377
- ...options,
378
- headers: {
379
- 'Content-Type': 'application/json',
380
- ...options.headers
381
- }
382
- });
383
- exports.registerWebhook = registerWebhook;
384
- /**
385
- * Get usage summary.
386
- *
387
- * Returns the caller's aggregate usage summary.
388
- */
389
- const getUsageSummary = (options) => (options?.client ?? client_gen_js_1.client).get({
390
- security: [{ scheme: 'bearer', type: 'http' }],
391
- url: '/api/v1/usage',
392
- ...options
393
- });
394
- exports.getUsageSummary = getUsageSummary;
395
- /**
396
- * Liveness probe.
397
- *
398
- * Returns 200 while the gateway process is alive.
399
- */
400
- const healthz = (options) => (options?.client ?? client_gen_js_1.client).get({ url: '/healthz', ...options });
401
- exports.healthz = healthz;
402
- /**
403
- * Get the OpenAPI spec.
404
- *
405
- * Returns this OpenAPI specification document.
406
- */
407
- const getOpenapiSpec = (options) => (options?.client ?? client_gen_js_1.client).get({ url: '/openapi.json', ...options });
408
- exports.getOpenapiSpec = getOpenapiSpec;
409
- /**
410
- * Readiness probe.
411
- *
412
- * Returns 200 when the gateway is ready to serve traffic.
413
- */
414
- const readyz = (options) => (options?.client ?? client_gen_js_1.client).get({ url: '/readyz', ...options });
415
- exports.readyz = readyz;
416
9
  /**
417
10
  * Generate speech.
418
11
  *
@@ -848,2096 +441,925 @@ const textVectorSearch = (options) => (options.client ?? client_gen_js_1.client)
848
441
  });
849
442
  exports.textVectorSearch = textVectorSearch;
850
443
  /**
851
- * Sign in anonymously.
852
- *
853
- * Creates an anonymous end-user account and returns auth tokens; the account
854
- * can later be linked to a real identity via identity linking.
855
- */
856
- const signUpAnonymous = (options) => (options?.client ?? client_gen_js_1.client).post({
857
- security: [{ scheme: 'bearer', type: 'http' }],
858
- url: '/v1/auth/anonymous',
859
- ...options
860
- });
861
- exports.signUpAnonymous = signUpAnonymous;
862
- /**
863
- * Link an identity.
444
+ * List deployments.
864
445
  *
865
- * Links an additional identity (e.g. an OAuth provider or email/password) to
866
- * the authenticated user, including upgrading anonymous accounts.
446
+ * Returns all compute deployments for the caller's project.
867
447
  */
868
- const linkIdentity = (options) => (options?.client ?? client_gen_js_1.client).post({
448
+ const listDeployments = (options) => (options?.client ?? client_gen_js_1.client).get({
869
449
  security: [{ scheme: 'bearer', type: 'http' }],
870
- url: '/v1/auth/identity/link',
450
+ url: '/v1/compute/deployments',
871
451
  ...options
872
452
  });
873
- exports.linkIdentity = linkIdentity;
453
+ exports.listDeployments = listDeployments;
874
454
  /**
875
- * Log in.
455
+ * Create a deployment.
876
456
  *
877
- * Authenticates an end user with email and password and returns auth tokens.
457
+ * Deploys a container/VM compute workload and returns the created deployment.
878
458
  */
879
- const login = (options) => (options.client ?? client_gen_js_1.client).post({
459
+ const createDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
880
460
  security: [{ scheme: 'bearer', type: 'http' }],
881
- url: '/v1/auth/login',
461
+ url: '/v1/compute/deployments',
882
462
  ...options,
883
463
  headers: {
884
464
  'Content-Type': 'application/json',
885
465
  ...options.headers
886
466
  }
887
467
  });
888
- exports.login = login;
468
+ exports.createDeployment = createDeployment;
889
469
  /**
890
- * Log out.
470
+ * Delete a deployment.
891
471
  *
892
- * Invalidates the caller's current session/token.
472
+ * Removes a compute deployment by id.
893
473
  */
894
- const logout = (options) => (options?.client ?? client_gen_js_1.client).post({
474
+ const deleteDeployment = (options) => (options.client ?? client_gen_js_1.client).delete({
895
475
  security: [{ scheme: 'bearer', type: 'http' }],
896
- url: '/v1/auth/logout',
476
+ url: '/v1/compute/deployments/{id}',
897
477
  ...options
898
478
  });
899
- exports.logout = logout;
479
+ exports.deleteDeployment = deleteDeployment;
900
480
  /**
901
- * Send a magic link.
481
+ * Get a deployment.
902
482
  *
903
- * Emails the user a passwordless magic sign-in link.
483
+ * Returns a single compute deployment by id.
904
484
  */
905
- const sendMagicLink = (options) => (options?.client ?? client_gen_js_1.client).post({
485
+ const getDeployment = (options) => (options.client ?? client_gen_js_1.client).get({
906
486
  security: [{ scheme: 'bearer', type: 'http' }],
907
- url: '/v1/auth/magic-link',
487
+ url: '/v1/compute/deployments/{id}',
908
488
  ...options
909
489
  });
910
- exports.sendMagicLink = sendMagicLink;
490
+ exports.getDeployment = getDeployment;
911
491
  /**
912
- * Verify a magic link.
492
+ * List deployment instances.
913
493
  *
914
- * Exchanges the emailed magic-link token for Scalix auth tokens.
494
+ * Returns the running instances of a compute deployment.
915
495
  */
916
- const verifyMagicLink = (options) => (options?.client ?? client_gen_js_1.client).post({
496
+ const listDeploymentInstances = (options) => (options.client ?? client_gen_js_1.client).get({
917
497
  security: [{ scheme: 'bearer', type: 'http' }],
918
- url: '/v1/auth/magic-link/verify',
498
+ url: '/v1/compute/deployments/{id}/instances',
919
499
  ...options
920
500
  });
921
- exports.verifyMagicLink = verifyMagicLink;
501
+ exports.listDeploymentInstances = listDeploymentInstances;
922
502
  /**
923
- * List the user's organizations.
503
+ * Get deployment logs.
924
504
  *
925
- * Returns the organizations the authenticated end user belongs to.
505
+ * Returns log output for a compute deployment.
926
506
  */
927
- const listUserOrgs = (options) => (options?.client ?? client_gen_js_1.client).get({
507
+ const getDeploymentLogs = (options) => (options.client ?? client_gen_js_1.client).get({
928
508
  security: [{ scheme: 'bearer', type: 'http' }],
929
- url: '/v1/auth/me/orgs',
509
+ url: '/v1/compute/deployments/{id}/logs',
930
510
  ...options
931
511
  });
932
- exports.listUserOrgs = listUserOrgs;
512
+ exports.getDeploymentLogs = getDeploymentLogs;
933
513
  /**
934
- * Complete an MFA challenge.
514
+ * Restart a deployment.
935
515
  *
936
- * Verifies a TOTP code against an enrolled factor during sign-in and returns
937
- * auth tokens.
516
+ * Restarts all instances of a compute deployment.
938
517
  */
939
- const challengeMfa = (options) => (options?.client ?? client_gen_js_1.client).post({
518
+ const restartDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
940
519
  security: [{ scheme: 'bearer', type: 'http' }],
941
- url: '/v1/auth/mfa/challenge',
520
+ url: '/v1/compute/deployments/{id}/restart',
942
521
  ...options
943
522
  });
944
- exports.challengeMfa = challengeMfa;
523
+ exports.restartDeployment = restartDeployment;
945
524
  /**
946
- * Enroll in MFA.
525
+ * Roll back a deployment.
947
526
  *
948
- * Begins TOTP multi-factor enrollment and returns the secret and QR code.
527
+ * Rolls a compute deployment back to a previous version.
949
528
  */
950
- const enrollMfa = (options) => (options?.client ?? client_gen_js_1.client).post({
529
+ const rollbackDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
951
530
  security: [{ scheme: 'bearer', type: 'http' }],
952
- url: '/v1/auth/mfa/enroll',
953
- ...options
531
+ url: '/v1/compute/deployments/{id}/rollback',
532
+ ...options,
533
+ headers: {
534
+ 'Content-Type': 'application/json',
535
+ ...options.headers
536
+ }
954
537
  });
955
- exports.enrollMfa = enrollMfa;
538
+ exports.rollbackDeployment = rollbackDeployment;
956
539
  /**
957
- * List MFA factors.
540
+ * Scale a deployment.
958
541
  *
959
- * Returns the authenticated user's enrolled multi-factor authentication factors.
542
+ * Adjusts the instance count (min/max) for a compute deployment.
960
543
  */
961
- const listMfaFactors = (options) => (options?.client ?? client_gen_js_1.client).get({
544
+ const scaleDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
962
545
  security: [{ scheme: 'bearer', type: 'http' }],
963
- url: '/v1/auth/mfa/factors',
964
- ...options
546
+ url: '/v1/compute/deployments/{id}/scale',
547
+ ...options,
548
+ headers: {
549
+ 'Content-Type': 'application/json',
550
+ ...options.headers
551
+ }
965
552
  });
966
- exports.listMfaFactors = listMfaFactors;
553
+ exports.scaleDeployment = scaleDeployment;
967
554
  /**
968
- * Delete an MFA factor.
555
+ * List deployment versions.
969
556
  *
970
- * Removes an enrolled multi-factor authentication factor.
557
+ * Returns the version history of a compute deployment.
971
558
  */
972
- const deleteMfaFactor = (options) => (options.client ?? client_gen_js_1.client).delete({
559
+ const listDeploymentVersions = (options) => (options.client ?? client_gen_js_1.client).get({
973
560
  security: [{ scheme: 'bearer', type: 'http' }],
974
- url: '/v1/auth/mfa/factors/{id}',
561
+ url: '/v1/compute/deployments/{id}/versions',
975
562
  ...options
976
563
  });
977
- exports.deleteMfaFactor = deleteMfaFactor;
564
+ exports.listDeploymentVersions = listDeploymentVersions;
978
565
  /**
979
- * Verify MFA.
980
- *
981
- * Verifies a TOTP code to complete multi-factor enrollment or a challenge.
566
+ * List your Computers.
982
567
  */
983
- const verifyMfa = (options) => (options?.client ?? client_gen_js_1.client).post({
568
+ const computerList = (options) => (options?.client ?? client_gen_js_1.client).get({
984
569
  security: [{ scheme: 'bearer', type: 'http' }],
985
- url: '/v1/auth/mfa/verify',
570
+ url: '/v1/computers',
986
571
  ...options
987
572
  });
988
- exports.verifyMfa = verifyMfa;
573
+ exports.computerList = computerList;
989
574
  /**
990
- * Start OAuth authorization.
575
+ * Create a Computer.
991
576
  *
992
- * Returns the provider authorization URL to begin an OAuth sign-in flow.
577
+ * Boots a persistent Linux machine and returns once it is provisioning. The
578
+ * root disk survives stop/start and is only reclaimed by DELETE. Billed per
579
+ * start, per vCPU-hour and GB-hour while running, and per GB-month of disk
580
+ * for as long as the Computer exists.
993
581
  */
994
- const authorizeOauth = (options) => (options?.client ?? client_gen_js_1.client).post({
582
+ const computerCreate = (options) => (options.client ?? client_gen_js_1.client).post({
995
583
  security: [{ scheme: 'bearer', type: 'http' }],
996
- url: '/v1/auth/oauth/authorize',
997
- ...options
584
+ url: '/v1/computers',
585
+ ...options,
586
+ headers: {
587
+ 'Content-Type': 'application/json',
588
+ ...options.headers
589
+ }
998
590
  });
999
- exports.authorizeOauth = authorizeOauth;
591
+ exports.computerCreate = computerCreate;
1000
592
  /**
1001
- * Complete OAuth sign-in.
593
+ * Get or create a Computer by name.
1002
594
  *
1003
- * Exchanges the provider OAuth callback for Scalix auth tokens.
595
+ * Idempotent: the first call creates the machine (201), every identical
596
+ * repeat returns the existing one (200). Resource changes on a repeat are
597
+ * ignored — the existing machine wins. Use this instead of create when an
598
+ * agent may retry.
1004
599
  */
1005
- const oauthCallback = (options) => (options?.client ?? client_gen_js_1.client).post({
600
+ const computerGetOrCreateByName = (options) => (options.client ?? client_gen_js_1.client).put({
1006
601
  security: [{ scheme: 'bearer', type: 'http' }],
1007
- url: '/v1/auth/oauth/callback',
1008
- ...options
602
+ url: '/v1/computers/by-name/{name}',
603
+ ...options,
604
+ headers: {
605
+ 'Content-Type': 'application/json',
606
+ ...options.headers
607
+ }
1009
608
  });
1010
- exports.oauthCallback = oauthCallback;
609
+ exports.computerGetOrCreateByName = computerGetOrCreateByName;
1011
610
  /**
1012
- * Send a one-time passcode.
611
+ * Delete a Computer.
1013
612
  *
1014
- * Sends the user a one-time passcode for passwordless sign-in.
613
+ * The only operation that reclaims the root disk. Irreversible — stop the
614
+ * Computer instead if you want the files back later.
1015
615
  */
1016
- const sendOtp = (options) => (options?.client ?? client_gen_js_1.client).post({
616
+ const computerDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
1017
617
  security: [{ scheme: 'bearer', type: 'http' }],
1018
- url: '/v1/auth/otp',
618
+ url: '/v1/computers/{id}',
1019
619
  ...options
1020
620
  });
1021
- exports.sendOtp = sendOtp;
621
+ exports.computerDelete = computerDelete;
1022
622
  /**
1023
- * Verify a one-time passcode.
1024
- *
1025
- * Exchanges the phone number and OTP code for Scalix auth tokens.
623
+ * Get one Computer.
1026
624
  */
1027
- const verifyOtp = (options) => (options?.client ?? client_gen_js_1.client).post({
625
+ const computerGet = (options) => (options.client ?? client_gen_js_1.client).get({
1028
626
  security: [{ scheme: 'bearer', type: 'http' }],
1029
- url: '/v1/auth/otp/verify',
627
+ url: '/v1/computers/{id}',
1030
628
  ...options
1031
629
  });
1032
- exports.verifyOtp = verifyOtp;
630
+ exports.computerGet = computerGet;
1033
631
  /**
1034
- * Request a password reset.
1035
- *
1036
- * Emails the user a password-recovery link.
632
+ * Run a command inside a Computer.
1037
633
  */
1038
- const requestPasswordReset = (options) => (options?.client ?? client_gen_js_1.client).post({
634
+ const computerExec = (options) => (options.client ?? client_gen_js_1.client).post({
1039
635
  security: [{ scheme: 'bearer', type: 'http' }],
1040
- url: '/v1/auth/recover',
1041
- ...options
636
+ url: '/v1/computers/{id}/exec',
637
+ ...options,
638
+ headers: {
639
+ 'Content-Type': 'application/json',
640
+ ...options.headers
641
+ }
1042
642
  });
1043
- exports.requestPasswordReset = requestPasswordReset;
643
+ exports.computerExec = computerExec;
1044
644
  /**
1045
- * Reset the password.
1046
- *
1047
- * Sets a new password using a recovery token.
645
+ * Read one file out of a Computer.
1048
646
  */
1049
- const resetPassword = (options) => (options?.client ?? client_gen_js_1.client).put({
647
+ const computerReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
1050
648
  security: [{ scheme: 'bearer', type: 'http' }],
1051
- url: '/v1/auth/recover/reset',
649
+ url: '/v1/computers/{id}/files',
1052
650
  ...options
1053
651
  });
1054
- exports.resetPassword = resetPassword;
652
+ exports.computerReadFile = computerReadFile;
653
+ /**
654
+ * Write files into a Computer.
655
+ */
656
+ const computerWriteFiles = (options) => (options.client ?? client_gen_js_1.client).put({
657
+ security: [{ scheme: 'bearer', type: 'http' }],
658
+ url: '/v1/computers/{id}/files',
659
+ ...options,
660
+ headers: {
661
+ 'Content-Type': 'application/json',
662
+ ...options.headers
663
+ }
664
+ });
665
+ exports.computerWriteFiles = computerWriteFiles;
1055
666
  /**
1056
- * Refresh auth tokens.
667
+ * Replace a Computer's authorised ssh keys.
1057
668
  *
1058
- * Exchanges a refresh token for a new access/refresh token pair.
669
+ * Sends the whole list every time, so removing a key is the same operation as
670
+ * adding one. On a RUNNING machine the change applies immediately — a
671
+ * revoked key stops working now, not at the next restart. On a stopped
672
+ * machine it is stored and delivered when it next boots.
1059
673
  */
1060
- const refreshToken = (options) => (options?.client ?? client_gen_js_1.client).post({
674
+ const computerSetSshKeys = (options) => (options.client ?? client_gen_js_1.client).put({
1061
675
  security: [{ scheme: 'bearer', type: 'http' }],
1062
- url: '/v1/auth/refresh',
1063
- ...options
676
+ url: '/v1/computers/{id}/ssh-keys',
677
+ ...options,
678
+ headers: {
679
+ 'Content-Type': 'application/json',
680
+ ...options.headers
681
+ }
1064
682
  });
1065
- exports.refreshToken = refreshToken;
683
+ exports.computerSetSshKeys = computerSetSshKeys;
1066
684
  /**
1067
- * Resend the verification email.
685
+ * Start a stopped Computer.
1068
686
  *
1069
- * Sends the email-verification message again.
687
+ * Boots the same disk on the same host and reclaims the same address.
1070
688
  */
1071
- const resendVerification = (options) => (options?.client ?? client_gen_js_1.client).post({
689
+ const computerStart = (options) => (options.client ?? client_gen_js_1.client).post({
1072
690
  security: [{ scheme: 'bearer', type: 'http' }],
1073
- url: '/v1/auth/resend-verification',
691
+ url: '/v1/computers/{id}/start',
1074
692
  ...options
1075
693
  });
1076
- exports.resendVerification = resendVerification;
694
+ exports.computerStart = computerStart;
1077
695
  /**
1078
- * List sessions.
696
+ * Stop a Computer.
1079
697
  *
1080
- * Returns the authenticated user's active sessions.
698
+ * Halts the machine. The root disk and the network address are kept, so a
699
+ * later start comes back to the same files at the same address. Runtime
700
+ * billing stops; disk billing continues at the parked rate.
1081
701
  */
1082
- const listSessions = (options) => (options?.client ?? client_gen_js_1.client).get({
702
+ const computerStop = (options) => (options.client ?? client_gen_js_1.client).post({
1083
703
  security: [{ scheme: 'bearer', type: 'http' }],
1084
- url: '/v1/auth/sessions',
704
+ url: '/v1/computers/{id}/stop',
1085
705
  ...options
1086
706
  });
1087
- exports.listSessions = listSessions;
707
+ exports.computerStop = computerStop;
1088
708
  /**
1089
- * Revoke a session.
709
+ * List cron schedules.
1090
710
  *
1091
- * Terminates one of the authenticated user's sessions.
711
+ * Returns all scheduled jobs for the caller's project.
1092
712
  */
1093
- const revokeSession = (options) => (options.client ?? client_gen_js_1.client).delete({
713
+ const listCronSchedules = (options) => (options?.client ?? client_gen_js_1.client).get({
1094
714
  security: [{ scheme: 'bearer', type: 'http' }],
1095
- url: '/v1/auth/sessions/{id}',
715
+ url: '/v1/cron/schedules',
1096
716
  ...options
1097
717
  });
1098
- exports.revokeSession = revokeSession;
718
+ exports.listCronSchedules = listCronSchedules;
1099
719
  /**
1100
- * Sign up a new user.
720
+ * Create a cron schedule.
1101
721
  *
1102
- * Creates a new end-user account and returns auth tokens plus the created user.
722
+ * Creates a new scheduled job.
1103
723
  */
1104
- const signUp = (options) => (options.client ?? client_gen_js_1.client).post({
724
+ const createCronSchedule = (options) => (options.client ?? client_gen_js_1.client).post({
1105
725
  security: [{ scheme: 'bearer', type: 'http' }],
1106
- url: '/v1/auth/signup',
726
+ url: '/v1/cron/schedules',
1107
727
  ...options,
1108
728
  headers: {
1109
729
  'Content-Type': 'application/json',
1110
730
  ...options.headers
1111
731
  }
1112
732
  });
1113
- exports.signUp = signUp;
1114
- /**
1115
- * Get the current user.
1116
- *
1117
- * Returns the authenticated end user's profile.
1118
- */
1119
- const getAuthUser = (options) => (options?.client ?? client_gen_js_1.client).get({
1120
- security: [{ scheme: 'bearer', type: 'http' }],
1121
- url: '/v1/auth/user',
1122
- ...options
1123
- });
1124
- exports.getAuthUser = getAuthUser;
733
+ exports.createCronSchedule = createCronSchedule;
1125
734
  /**
1126
- * Update the current user.
735
+ * Delete a cron schedule.
1127
736
  *
1128
- * Updates the authenticated end user's profile and returns the new record.
737
+ * Removes a scheduled job by id.
1129
738
  */
1130
- const updateAuthUser = (options) => (options?.client ?? client_gen_js_1.client).put({
739
+ const deleteCronSchedule = (options) => (options.client ?? client_gen_js_1.client).delete({
1131
740
  security: [{ scheme: 'bearer', type: 'http' }],
1132
- url: '/v1/auth/user',
741
+ url: '/v1/cron/schedules/{id}',
1133
742
  ...options
1134
743
  });
1135
- exports.updateAuthUser = updateAuthUser;
744
+ exports.deleteCronSchedule = deleteCronSchedule;
1136
745
  /**
1137
- * List consent records.
746
+ * Get a cron schedule.
1138
747
  *
1139
- * Returns the authenticated user's consent audit trail.
748
+ * Returns a single scheduled job by id.
1140
749
  */
1141
- const listAuthUserConsent = (options) => (options?.client ?? client_gen_js_1.client).get({
750
+ const getCronSchedule = (options) => (options.client ?? client_gen_js_1.client).get({
1142
751
  security: [{ scheme: 'bearer', type: 'http' }],
1143
- url: '/v1/auth/user/consent',
752
+ url: '/v1/cron/schedules/{id}',
1144
753
  ...options
1145
754
  });
1146
- exports.listAuthUserConsent = listAuthUserConsent;
755
+ exports.getCronSchedule = getCronSchedule;
1147
756
  /**
1148
- * Record a consent decision.
757
+ * Update a cron schedule.
1149
758
  *
1150
- * Records a single GDPR consent decision for the authenticated user.
759
+ * Updates an existing scheduled job.
1151
760
  */
1152
- const recordAuthUserConsent = (options) => (options.client ?? client_gen_js_1.client).post({
761
+ const updateCronSchedule = (options) => (options.client ?? client_gen_js_1.client).put({
1153
762
  security: [{ scheme: 'bearer', type: 'http' }],
1154
- url: '/v1/auth/user/consent',
763
+ url: '/v1/cron/schedules/{id}',
1155
764
  ...options,
1156
765
  headers: {
1157
766
  'Content-Type': 'application/json',
1158
767
  ...options.headers
1159
768
  }
1160
769
  });
1161
- exports.recordAuthUserConsent = recordAuthUserConsent;
770
+ exports.updateCronSchedule = updateCronSchedule;
1162
771
  /**
1163
- * Export user data.
772
+ * List schedule executions.
1164
773
  *
1165
- * Returns a complete export of the authenticated user's data (GDPR portability).
774
+ * Returns the execution history of a scheduled job.
1166
775
  */
1167
- const exportAuthUser = (options) => (options?.client ?? client_gen_js_1.client).get({
776
+ const listCronExecutions = (options) => (options.client ?? client_gen_js_1.client).get({
1168
777
  security: [{ scheme: 'bearer', type: 'http' }],
1169
- url: '/v1/auth/user/export',
778
+ url: '/v1/cron/schedules/{id}/executions',
1170
779
  ...options
1171
780
  });
1172
- exports.exportAuthUser = exportAuthUser;
781
+ exports.listCronExecutions = listCronExecutions;
1173
782
  /**
1174
- * Verify an email address.
783
+ * Trigger a cron schedule.
1175
784
  *
1176
- * Confirms the user's email address using the emailed verification token.
785
+ * Runs a scheduled job immediately, outside its normal schedule.
1177
786
  */
1178
- const verifyEmail = (options) => (options?.client ?? client_gen_js_1.client).post({
787
+ const triggerCronSchedule = (options) => (options.client ?? client_gen_js_1.client).post({
1179
788
  security: [{ scheme: 'bearer', type: 'http' }],
1180
- url: '/v1/auth/verify',
789
+ url: '/v1/cron/schedules/{id}/trigger',
1181
790
  ...options
1182
791
  });
1183
- exports.verifyEmail = verifyEmail;
792
+ exports.triggerCronSchedule = triggerCronSchedule;
1184
793
  /**
1185
- * List builds.
794
+ * List databases.
1186
795
  *
1187
- * Returns the builds for the caller's project.
796
+ * Lists the project's databases. `include_deleted=true` also returns
797
+ * soft-deleted databases still inside the recovery grace window.
1188
798
  */
1189
- const listBuilds = (options) => (options?.client ?? client_gen_js_1.client).get({
799
+ const listDatabases = (options) => (options?.client ?? client_gen_js_1.client).get({
1190
800
  security: [{ scheme: 'bearer', type: 'http' }],
1191
- url: '/v1/build',
801
+ url: '/v1/databases',
1192
802
  ...options
1193
803
  });
1194
- exports.listBuilds = listBuilds;
804
+ exports.listDatabases = listDatabases;
1195
805
  /**
1196
- * Start a build.
806
+ * Create a database.
1197
807
  *
1198
- * Starts a container image build and returns the build record.
808
+ * Creates a ScalixNova database in the project on the requested PostgreSQL
809
+ * major version (16 default, 17, or 18). The version is fixed at creation;
810
+ * branches and point-in-time restores keep it.
1199
811
  */
1200
- const createBuild = (options) => (options.client ?? client_gen_js_1.client).post({
812
+ const createDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1201
813
  security: [{ scheme: 'bearer', type: 'http' }],
1202
- url: '/v1/build',
814
+ url: '/v1/databases',
1203
815
  ...options,
1204
816
  headers: {
1205
817
  'Content-Type': 'application/json',
1206
818
  ...options.headers
1207
819
  }
1208
820
  });
1209
- exports.createBuild = createBuild;
1210
- /**
1211
- * Get a build.
1212
- *
1213
- * Returns a single build by id.
1214
- */
1215
- const getBuild = (options) => (options.client ?? client_gen_js_1.client).get({
1216
- security: [{ scheme: 'bearer', type: 'http' }],
1217
- url: '/v1/build/{id}',
1218
- ...options
1219
- });
1220
- exports.getBuild = getBuild;
821
+ exports.createDatabase = createDatabase;
1221
822
  /**
1222
- * Cancel a build.
823
+ * Get or create the project's default database.
1223
824
  *
1224
- * Cancels an in-progress build.
825
+ * Idempotent: returns the project's default database connection info,
826
+ * creating the database (on the default PostgreSQL version) if none exists.
1225
827
  */
1226
- const cancelBuild = (options) => (options.client ?? client_gen_js_1.client).post({
828
+ const provisionDatabase = (options) => (options?.client ?? client_gen_js_1.client).post({
1227
829
  security: [{ scheme: 'bearer', type: 'http' }],
1228
- url: '/v1/build/{id}/cancel',
830
+ url: '/v1/databases/provision',
1229
831
  ...options
1230
832
  });
1231
- exports.cancelBuild = cancelBuild;
833
+ exports.provisionDatabase = provisionDatabase;
1232
834
  /**
1233
- * Get build logs.
835
+ * Delete a database.
1234
836
  *
1235
- * Returns log output for a build.
837
+ * Soft-deletes the database: it is hidden from listings and restorable via
838
+ * `POST /v1/databases/{id}/restore` until the grace window ends, after which
839
+ * it is purged permanently.
1236
840
  */
1237
- const getBuildLogs = (options) => (options.client ?? client_gen_js_1.client).get({
841
+ const deleteDatabase = (options) => (options.client ?? client_gen_js_1.client).delete({
1238
842
  security: [{ scheme: 'bearer', type: 'http' }],
1239
- url: '/v1/build/{id}/logs',
843
+ url: '/v1/databases/{id}',
1240
844
  ...options
1241
845
  });
1242
- exports.getBuildLogs = getBuildLogs;
846
+ exports.deleteDatabase = deleteDatabase;
1243
847
  /**
1244
- * Query the audit log.
848
+ * Get a database.
1245
849
  *
1246
- * Returns audit events for the caller's tenant, filterable by action and time
1247
- * range. The tenant scope is always taken from the token, never the query.
850
+ * Fetches one database by id, including its PostgreSQL version and isolation tier.
1248
851
  */
1249
- const queryAuditLog = (options) => (options?.client ?? client_gen_js_1.client).get({
852
+ const getDatabase = (options) => (options.client ?? client_gen_js_1.client).get({
1250
853
  security: [{ scheme: 'bearer', type: 'http' }],
1251
- url: '/v1/compliance/audit',
854
+ url: '/v1/databases/{id}',
1252
855
  ...options
1253
856
  });
1254
- exports.queryAuditLog = queryAuditLog;
857
+ exports.getDatabase = getDatabase;
1255
858
  /**
1256
- * Export the audit log.
859
+ * Restore a soft-deleted database.
1257
860
  *
1258
- * Returns the full audit trail for the caller's tenant for compliance export
1259
- * (JSON by default, CSV with `?format=csv`).
861
+ * Undoes a delete within the recovery grace window; the database returns to
862
+ * `active` with its data, version, and tier intact.
1260
863
  */
1261
- const exportAuditLog = (options) => (options?.client ?? client_gen_js_1.client).get({
864
+ const restoreDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1262
865
  security: [{ scheme: 'bearer', type: 'http' }],
1263
- url: '/v1/compliance/audit/export',
866
+ url: '/v1/databases/{id}/restore',
1264
867
  ...options
1265
868
  });
1266
- exports.exportAuditLog = exportAuditLog;
869
+ exports.restoreDatabase = restoreDatabase;
1267
870
  /**
1268
- * List GDPR requests.
871
+ * Send a raw email.
1269
872
  *
1270
- * Returns the data-subject requests for the caller's tenant.
873
+ * Sends an HTML email without a stored template. Requires the `email:send`
874
+ * scope.
1271
875
  */
1272
- const listGdprRequests = (options) => (options?.client ?? client_gen_js_1.client).get({
876
+ const sendRawEmail = (options) => (options.client ?? client_gen_js_1.client).post({
1273
877
  security: [{ scheme: 'bearer', type: 'http' }],
1274
- url: '/v1/compliance/gdpr/requests',
1275
- ...options
878
+ url: '/v1/email/send/raw',
879
+ ...options,
880
+ headers: {
881
+ 'Content-Type': 'application/json',
882
+ ...options.headers
883
+ }
1276
884
  });
1277
- exports.listGdprRequests = listGdprRequests;
885
+ exports.sendRawEmail = sendRawEmail;
1278
886
  /**
1279
- * Create a GDPR request.
887
+ * Send a templated email.
1280
888
  *
1281
- * Files a GDPR data-subject request (access / erasure / rectification). This is
1282
- * intake only: the request is persisted with status `pending`; export and
1283
- * erasure are fulfilled out of band.
889
+ * Renders `template` with `data` and sends it to `to`. Requires the
890
+ * `email:send` scope.
1284
891
  */
1285
- const createGdprRequest = (options) => (options.client ?? client_gen_js_1.client).post({
892
+ const sendTransactionalEmail = (options) => (options.client ?? client_gen_js_1.client).post({
1286
893
  security: [{ scheme: 'bearer', type: 'http' }],
1287
- url: '/v1/compliance/gdpr/requests',
894
+ url: '/v1/email/send/tx',
1288
895
  ...options,
1289
896
  headers: {
1290
897
  'Content-Type': 'application/json',
1291
898
  ...options.headers
1292
899
  }
1293
900
  });
1294
- exports.createGdprRequest = createGdprRequest;
901
+ exports.sendTransactionalEmail = sendTransactionalEmail;
1295
902
  /**
1296
- * Get a GDPR request.
903
+ * List email templates.
1297
904
  *
1298
- * Returns a single GDPR data-subject request by id.
905
+ * Returns the org's stored templates. Requires the `email:read` scope.
1299
906
  */
1300
- const getGdprRequest = (options) => (options.client ?? client_gen_js_1.client).get({
907
+ const listEmailTemplates = (options) => (options?.client ?? client_gen_js_1.client).get({
1301
908
  security: [{ scheme: 'bearer', type: 'http' }],
1302
- url: '/v1/compliance/gdpr/requests/{id}',
909
+ url: '/v1/email/templates',
1303
910
  ...options
1304
911
  });
1305
- exports.getGdprRequest = getGdprRequest;
912
+ exports.listEmailTemplates = listEmailTemplates;
1306
913
  /**
1307
- * Advance a GDPR data-subject request through its lifecycle.
914
+ * Create an email template.
1308
915
  *
1309
- * SEC-1: the DSR flow was intake-only — requests sat `pending` forever with no
1310
- * way to fulfill them, while the compliance status implied a working workflow.
1311
- * A data-protection officer (compliance:write) now moves each request through
1312
- * pending → in_progress → completed/rejected; terminal states stamp
1313
- * `completed_at`, giving an auditable fulfillment record within the GDPR Art.
1314
- * 12(3) one-month window. Tenant-scoped.
916
+ * Stores a new template for the org. Requires the `email:write` scope.
1315
917
  */
1316
- const updateGdprRequestStatus = (options) => (options.client ?? client_gen_js_1.client).post({
918
+ const createEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).post({
1317
919
  security: [{ scheme: 'bearer', type: 'http' }],
1318
- url: '/v1/compliance/gdpr/requests/{id}/status',
920
+ url: '/v1/email/templates',
1319
921
  ...options,
1320
922
  headers: {
1321
923
  'Content-Type': 'application/json',
1322
924
  ...options.headers
1323
925
  }
1324
926
  });
1325
- exports.updateGdprRequestStatus = updateGdprRequestStatus;
1326
- /**
1327
- * Get compliance status.
1328
- *
1329
- * Runs the compliance checks (encryption, audit, access controls) and returns
1330
- * each check's result plus an overall score.
1331
- */
1332
- const getComplianceStatus = (options) => (options?.client ?? client_gen_js_1.client).get({
1333
- security: [{ scheme: 'bearer', type: 'http' }],
1334
- url: '/v1/compliance/status',
1335
- ...options
1336
- });
1337
- exports.getComplianceStatus = getComplianceStatus;
927
+ exports.createEmailTemplate = createEmailTemplate;
1338
928
  /**
1339
- * List deployments.
929
+ * Delete an email template.
1340
930
  *
1341
- * Returns all compute deployments for the caller's project.
931
+ * Removes a stored template. Requires the `email:write` scope.
1342
932
  */
1343
- const listDeployments = (options) => (options?.client ?? client_gen_js_1.client).get({
933
+ const deleteEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).delete({
1344
934
  security: [{ scheme: 'bearer', type: 'http' }],
1345
- url: '/v1/compute/deployments',
935
+ url: '/v1/email/templates/{id}',
1346
936
  ...options
1347
937
  });
1348
- exports.listDeployments = listDeployments;
938
+ exports.deleteEmailTemplate = deleteEmailTemplate;
1349
939
  /**
1350
- * Create a deployment.
940
+ * Update an email template.
1351
941
  *
1352
- * Deploys a container/VM compute workload and returns the created deployment.
942
+ * Replaces a stored template. Requires the `email:write` scope.
1353
943
  */
1354
- const createDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
944
+ const updateEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).put({
1355
945
  security: [{ scheme: 'bearer', type: 'http' }],
1356
- url: '/v1/compute/deployments',
946
+ url: '/v1/email/templates/{id}',
1357
947
  ...options,
1358
948
  headers: {
1359
949
  'Content-Type': 'application/json',
1360
950
  ...options.headers
1361
951
  }
1362
952
  });
1363
- exports.createDeployment = createDeployment;
953
+ exports.updateEmailTemplate = updateEmailTemplate;
1364
954
  /**
1365
- * Delete a deployment.
955
+ * Delete a subscription.
1366
956
  *
1367
- * Removes a compute deployment by id.
957
+ * Removes an event subscription by id.
1368
958
  */
1369
- const deleteDeployment = (options) => (options.client ?? client_gen_js_1.client).delete({
959
+ const deleteEventSubscription = (options) => (options.client ?? client_gen_js_1.client).delete({
1370
960
  security: [{ scheme: 'bearer', type: 'http' }],
1371
- url: '/v1/compute/deployments/{id}',
961
+ url: '/v1/events/subscriptions/{id}',
1372
962
  ...options
1373
963
  });
1374
- exports.deleteDeployment = deleteDeployment;
964
+ exports.deleteEventSubscription = deleteEventSubscription;
1375
965
  /**
1376
- * Get a deployment.
1377
- *
1378
- * Returns a single compute deployment by id.
1379
- */
1380
- const getDeployment = (options) => (options.client ?? client_gen_js_1.client).get({
1381
- security: [{ scheme: 'bearer', type: 'http' }],
1382
- url: '/v1/compute/deployments/{id}',
1383
- ...options
1384
- });
1385
- exports.getDeployment = getDeployment;
1386
- /**
1387
- * List deployment instances.
1388
- *
1389
- * Returns the running instances of a compute deployment.
1390
- */
1391
- const listDeploymentInstances = (options) => (options.client ?? client_gen_js_1.client).get({
1392
- security: [{ scheme: 'bearer', type: 'http' }],
1393
- url: '/v1/compute/deployments/{id}/instances',
1394
- ...options
1395
- });
1396
- exports.listDeploymentInstances = listDeploymentInstances;
1397
- /**
1398
- * Get deployment logs.
1399
- *
1400
- * Returns log output for a compute deployment.
1401
- */
1402
- const getDeploymentLogs = (options) => (options.client ?? client_gen_js_1.client).get({
1403
- security: [{ scheme: 'bearer', type: 'http' }],
1404
- url: '/v1/compute/deployments/{id}/logs',
1405
- ...options
1406
- });
1407
- exports.getDeploymentLogs = getDeploymentLogs;
1408
- /**
1409
- * Restart a deployment.
1410
- *
1411
- * Restarts all instances of a compute deployment.
1412
- */
1413
- const restartDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1414
- security: [{ scheme: 'bearer', type: 'http' }],
1415
- url: '/v1/compute/deployments/{id}/restart',
1416
- ...options
1417
- });
1418
- exports.restartDeployment = restartDeployment;
1419
- /**
1420
- * Roll back a deployment.
1421
- *
1422
- * Rolls a compute deployment back to a previous version.
1423
- */
1424
- const rollbackDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1425
- security: [{ scheme: 'bearer', type: 'http' }],
1426
- url: '/v1/compute/deployments/{id}/rollback',
1427
- ...options,
1428
- headers: {
1429
- 'Content-Type': 'application/json',
1430
- ...options.headers
1431
- }
1432
- });
1433
- exports.rollbackDeployment = rollbackDeployment;
1434
- /**
1435
- * Scale a deployment.
1436
- *
1437
- * Adjusts the instance count (min/max) for a compute deployment.
1438
- */
1439
- const scaleDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1440
- security: [{ scheme: 'bearer', type: 'http' }],
1441
- url: '/v1/compute/deployments/{id}/scale',
1442
- ...options,
1443
- headers: {
1444
- 'Content-Type': 'application/json',
1445
- ...options.headers
1446
- }
1447
- });
1448
- exports.scaleDeployment = scaleDeployment;
1449
- /**
1450
- * List deployment versions.
1451
- *
1452
- * Returns the version history of a compute deployment.
1453
- */
1454
- const listDeploymentVersions = (options) => (options.client ?? client_gen_js_1.client).get({
1455
- security: [{ scheme: 'bearer', type: 'http' }],
1456
- url: '/v1/compute/deployments/{id}/versions',
1457
- ...options
1458
- });
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;
1603
- /**
1604
- * List cron schedules.
1605
- *
1606
- * Returns all scheduled jobs for the caller's project.
1607
- */
1608
- const listCronSchedules = (options) => (options?.client ?? client_gen_js_1.client).get({
1609
- security: [{ scheme: 'bearer', type: 'http' }],
1610
- url: '/v1/cron/schedules',
1611
- ...options
1612
- });
1613
- exports.listCronSchedules = listCronSchedules;
1614
- /**
1615
- * Create a cron schedule.
1616
- *
1617
- * Creates a new scheduled job.
1618
- */
1619
- const createCronSchedule = (options) => (options.client ?? client_gen_js_1.client).post({
1620
- security: [{ scheme: 'bearer', type: 'http' }],
1621
- url: '/v1/cron/schedules',
1622
- ...options,
1623
- headers: {
1624
- 'Content-Type': 'application/json',
1625
- ...options.headers
1626
- }
1627
- });
1628
- exports.createCronSchedule = createCronSchedule;
1629
- /**
1630
- * Delete a cron schedule.
1631
- *
1632
- * Removes a scheduled job by id.
1633
- */
1634
- const deleteCronSchedule = (options) => (options.client ?? client_gen_js_1.client).delete({
1635
- security: [{ scheme: 'bearer', type: 'http' }],
1636
- url: '/v1/cron/schedules/{id}',
1637
- ...options
1638
- });
1639
- exports.deleteCronSchedule = deleteCronSchedule;
1640
- /**
1641
- * Get a cron schedule.
1642
- *
1643
- * Returns a single scheduled job by id.
1644
- */
1645
- const getCronSchedule = (options) => (options.client ?? client_gen_js_1.client).get({
1646
- security: [{ scheme: 'bearer', type: 'http' }],
1647
- url: '/v1/cron/schedules/{id}',
1648
- ...options
1649
- });
1650
- exports.getCronSchedule = getCronSchedule;
1651
- /**
1652
- * Update a cron schedule.
1653
- *
1654
- * Updates an existing scheduled job.
1655
- */
1656
- const updateCronSchedule = (options) => (options.client ?? client_gen_js_1.client).put({
1657
- security: [{ scheme: 'bearer', type: 'http' }],
1658
- url: '/v1/cron/schedules/{id}',
1659
- ...options,
1660
- headers: {
1661
- 'Content-Type': 'application/json',
1662
- ...options.headers
1663
- }
1664
- });
1665
- exports.updateCronSchedule = updateCronSchedule;
1666
- /**
1667
- * List schedule executions.
1668
- *
1669
- * Returns the execution history of a scheduled job.
1670
- */
1671
- const listCronExecutions = (options) => (options.client ?? client_gen_js_1.client).get({
1672
- security: [{ scheme: 'bearer', type: 'http' }],
1673
- url: '/v1/cron/schedules/{id}/executions',
1674
- ...options
1675
- });
1676
- exports.listCronExecutions = listCronExecutions;
1677
- /**
1678
- * Trigger a cron schedule.
1679
- *
1680
- * Runs a scheduled job immediately, outside its normal schedule.
1681
- */
1682
- const triggerCronSchedule = (options) => (options.client ?? client_gen_js_1.client).post({
1683
- security: [{ scheme: 'bearer', type: 'http' }],
1684
- url: '/v1/cron/schedules/{id}/trigger',
1685
- ...options
1686
- });
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;
1765
- /**
1766
- * List custom domains.
1767
- *
1768
- * Returns all custom domains attached to the caller's project, with their
1769
- * verification and SSL status.
1770
- */
1771
- const listDomains = (options) => (options?.client ?? client_gen_js_1.client).get({
1772
- security: [{ scheme: 'bearer', type: 'http' }],
1773
- url: '/v1/domains',
1774
- ...options
1775
- });
1776
- exports.listDomains = listDomains;
1777
- /**
1778
- * Add a custom domain.
1779
- *
1780
- * Registers a custom domain for the caller's project and returns the created
1781
- * record plus the DNS records (CNAME + TXT) needed to verify and serve it.
1782
- */
1783
- const addDomain = (options) => (options.client ?? client_gen_js_1.client).post({
1784
- security: [{ scheme: 'bearer', type: 'http' }],
1785
- url: '/v1/domains',
1786
- ...options,
1787
- headers: {
1788
- 'Content-Type': 'application/json',
1789
- ...options.headers
1790
- }
1791
- });
1792
- exports.addDomain = addDomain;
1793
- /**
1794
- * Remove a custom domain.
1795
- *
1796
- * Detaches a custom domain from the caller's project and deletes its record.
1797
- */
1798
- const deleteDomain = (options) => (options.client ?? client_gen_js_1.client).delete({
1799
- security: [{ scheme: 'bearer', type: 'http' }],
1800
- url: '/v1/domains/{id}',
1801
- ...options
1802
- });
1803
- exports.deleteDomain = deleteDomain;
1804
- /**
1805
- * Get a custom domain.
1806
- *
1807
- * Returns a single custom domain by id, scoped to the caller's project.
1808
- */
1809
- const getDomain = (options) => (options.client ?? client_gen_js_1.client).get({
1810
- security: [{ scheme: 'bearer', type: 'http' }],
1811
- url: '/v1/domains/{id}',
1812
- ...options
1813
- });
1814
- exports.getDomain = getDomain;
1815
- /**
1816
- * Provision SSL for a domain.
1817
- *
1818
- * Starts background Let's Encrypt certificate issuance for a verified domain.
1819
- * The domain must be active; automatic SSL must be configured on the deployment.
1820
- */
1821
- const provisionDomainSsl = (options) => (options.client ?? client_gen_js_1.client).post({
1822
- security: [{ scheme: 'bearer', type: 'http' }],
1823
- url: '/v1/domains/{id}/ssl',
1824
- ...options
1825
- });
1826
- exports.provisionDomainSsl = provisionDomainSsl;
1827
- /**
1828
- * Verify a custom domain.
1829
- *
1830
- * Confirms — via a standard public DNS lookup, no provider credentials — that the
1831
- * customer's domain points at our edge (its A records match `cname.<platform>`,
1832
- * or a configured `SCALIX_EDGE_IP`). On success, marks the domain active. This is
1833
- * the industry-standard "does it point at us" check (Vercel/Netlify/Render).
1834
- */
1835
- const verifyDomain = (options) => (options.client ?? client_gen_js_1.client).post({
1836
- security: [{ scheme: 'bearer', type: 'http' }],
1837
- url: '/v1/domains/{id}/verify',
1838
- ...options
1839
- });
1840
- exports.verifyDomain = verifyDomain;
1841
- /**
1842
- * List environment variables.
1843
- *
1844
- * Returns all project-level environment variables (secret values masked).
1845
- */
1846
- const listEnvVars = (options) => (options?.client ?? client_gen_js_1.client).get({
1847
- security: [{ scheme: 'bearer', type: 'http' }],
1848
- url: '/v1/env',
1849
- ...options
1850
- });
1851
- exports.listEnvVars = listEnvVars;
1852
- /**
1853
- * Set an environment variable.
1854
- *
1855
- * Creates or updates a single project-level environment variable.
1856
- */
1857
- const setEnvVar = (options) => (options.client ?? client_gen_js_1.client).post({
1858
- security: [{ scheme: 'bearer', type: 'http' }],
1859
- url: '/v1/env',
1860
- ...options,
1861
- headers: {
1862
- 'Content-Type': 'application/json',
1863
- ...options.headers
1864
- }
1865
- });
1866
- exports.setEnvVar = setEnvVar;
1867
- /**
1868
- * Bulk-import environment variables.
1869
- *
1870
- * Imports many project-level environment variables in one request.
1871
- */
1872
- const bulkImportEnvVars = (options) => (options.client ?? client_gen_js_1.client).post({
1873
- security: [{ scheme: 'bearer', type: 'http' }],
1874
- url: '/v1/env/bulk',
1875
- ...options,
1876
- headers: {
1877
- 'Content-Type': 'application/json',
1878
- ...options.headers
1879
- }
1880
- });
1881
- exports.bulkImportEnvVars = bulkImportEnvVars;
1882
- /**
1883
- * Delete an environment variable.
1884
- *
1885
- * Removes a project-level environment variable by id.
1886
- */
1887
- const deleteEnvVar = (options) => (options.client ?? client_gen_js_1.client).delete({
1888
- security: [{ scheme: 'bearer', type: 'http' }],
1889
- url: '/v1/env/{id}',
1890
- ...options
1891
- });
1892
- exports.deleteEnvVar = deleteEnvVar;
1893
- /**
1894
- * Delete a subscription.
1895
- *
1896
- * Removes an event subscription by id.
1897
- */
1898
- const deleteEventSubscription = (options) => (options.client ?? client_gen_js_1.client).delete({
1899
- security: [{ scheme: 'bearer', type: 'http' }],
1900
- url: '/v1/events/subscriptions/{id}',
1901
- ...options
1902
- });
1903
- exports.deleteEventSubscription = deleteEventSubscription;
1904
- /**
1905
- * Get a subscription.
1906
- *
1907
- * Returns a single event subscription by id.
1908
- */
1909
- const getEventSubscription = (options) => (options.client ?? client_gen_js_1.client).get({
1910
- security: [{ scheme: 'bearer', type: 'http' }],
1911
- url: '/v1/events/subscriptions/{id}',
1912
- ...options
1913
- });
1914
- exports.getEventSubscription = getEventSubscription;
1915
- /**
1916
- * List subscription deliveries.
1917
- *
1918
- * Returns the delivery attempts for an event subscription.
1919
- */
1920
- const listSubscriptionDeliveries = (options) => (options.client ?? client_gen_js_1.client).get({
1921
- security: [{ scheme: 'bearer', type: 'http' }],
1922
- url: '/v1/events/subscriptions/{id}/deliveries',
1923
- ...options
1924
- });
1925
- exports.listSubscriptionDeliveries = listSubscriptionDeliveries;
1926
- /**
1927
- * List topics.
1928
- *
1929
- * Returns all event-bus topics for the caller's project.
1930
- */
1931
- const listEventTopics = (options) => (options?.client ?? client_gen_js_1.client).get({
1932
- security: [{ scheme: 'bearer', type: 'http' }],
1933
- url: '/v1/events/topics',
1934
- ...options
1935
- });
1936
- exports.listEventTopics = listEventTopics;
1937
- /**
1938
- * Create a topic.
1939
- *
1940
- * Creates a new event-bus topic.
1941
- */
1942
- const createEventTopic = (options) => (options?.client ?? client_gen_js_1.client).post({
1943
- security: [{ scheme: 'bearer', type: 'http' }],
1944
- url: '/v1/events/topics',
1945
- ...options
1946
- });
1947
- exports.createEventTopic = createEventTopic;
1948
- /**
1949
- * Delete a topic.
1950
- *
1951
- * Removes an event-bus topic by id or name.
1952
- */
1953
- const deleteEventTopic = (options) => (options.client ?? client_gen_js_1.client).delete({
1954
- security: [{ scheme: 'bearer', type: 'http' }],
1955
- url: '/v1/events/topics/{id}',
1956
- ...options
1957
- });
1958
- exports.deleteEventTopic = deleteEventTopic;
1959
- /**
1960
- * Get a topic.
1961
- *
1962
- * Returns a single event-bus topic by id or name.
1963
- */
1964
- const getEventTopic = (options) => (options.client ?? client_gen_js_1.client).get({
1965
- security: [{ scheme: 'bearer', type: 'http' }],
1966
- url: '/v1/events/topics/{id}',
1967
- ...options
1968
- });
1969
- exports.getEventTopic = getEventTopic;
1970
- /**
1971
- * List events on a topic.
1972
- *
1973
- * Returns the recent events published to a topic.
1974
- */
1975
- const listTopicEvents = (options) => (options.client ?? client_gen_js_1.client).get({
1976
- security: [{ scheme: 'bearer', type: 'http' }],
1977
- url: '/v1/events/topics/{id}/events',
1978
- ...options
1979
- });
1980
- exports.listTopicEvents = listTopicEvents;
1981
- /**
1982
- * Publish an event.
1983
- *
1984
- * Publishes an event payload to a topic.
1985
- */
1986
- const publishEvent = (options) => (options.client ?? client_gen_js_1.client).post({
1987
- security: [{ scheme: 'bearer', type: 'http' }],
1988
- url: '/v1/events/topics/{id}/publish',
1989
- ...options,
1990
- headers: {
1991
- 'Content-Type': 'application/json',
1992
- ...options.headers
1993
- }
1994
- });
1995
- exports.publishEvent = publishEvent;
1996
- /**
1997
- * List a topic's subscriptions.
1998
- *
1999
- * Returns the subscriptions attached to a topic.
2000
- */
2001
- const listTopicSubscriptions = (options) => (options.client ?? client_gen_js_1.client).get({
2002
- security: [{ scheme: 'bearer', type: 'http' }],
2003
- url: '/v1/events/topics/{id}/subscriptions',
2004
- ...options
2005
- });
2006
- exports.listTopicSubscriptions = listTopicSubscriptions;
2007
- /**
2008
- * Create a subscription.
2009
- *
2010
- * Creates a subscription that delivers a topic's events to an endpoint.
2011
- */
2012
- const createEventSubscription = (options) => (options.client ?? client_gen_js_1.client).post({
2013
- security: [{ scheme: 'bearer', type: 'http' }],
2014
- url: '/v1/events/topics/{id}/subscriptions',
2015
- ...options,
2016
- headers: {
2017
- 'Content-Type': 'application/json',
2018
- ...options.headers
2019
- }
2020
- });
2021
- exports.createEventSubscription = createEventSubscription;
2022
- /**
2023
- * List functions.
2024
- *
2025
- * Returns all serverless functions for the caller's project.
2026
- */
2027
- const listFunctions = (options) => (options?.client ?? client_gen_js_1.client).get({
2028
- security: [{ scheme: 'bearer', type: 'http' }],
2029
- url: '/v1/functions',
2030
- ...options
2031
- });
2032
- exports.listFunctions = listFunctions;
2033
- /**
2034
- * Create a function.
2035
- *
2036
- * Deploys a serverless function and returns the created function.
2037
- */
2038
- const createFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2039
- security: [{ scheme: 'bearer', type: 'http' }],
2040
- url: '/v1/functions',
2041
- ...options,
2042
- headers: {
2043
- 'Content-Type': 'application/json',
2044
- ...options.headers
2045
- }
2046
- });
2047
- exports.createFunction = createFunction;
2048
- /**
2049
- * Delete a function.
2050
- *
2051
- * Removes a serverless function by id or name.
2052
- */
2053
- const deleteFunction = (options) => (options.client ?? client_gen_js_1.client).delete({
2054
- security: [{ scheme: 'bearer', type: 'http' }],
2055
- url: '/v1/functions/{id}',
2056
- ...options
2057
- });
2058
- exports.deleteFunction = deleteFunction;
2059
- /**
2060
- * Get a function.
2061
- *
2062
- * Returns a single serverless function by id or name.
2063
- */
2064
- const getFunction = (options) => (options.client ?? client_gen_js_1.client).get({
2065
- security: [{ scheme: 'bearer', type: 'http' }],
2066
- url: '/v1/functions/{id}',
2067
- ...options
2068
- });
2069
- exports.getFunction = getFunction;
2070
- /**
2071
- * Update a function.
2072
- *
2073
- * Redeploys a serverless function with a new configuration.
2074
- */
2075
- const updateFunction = (options) => (options.client ?? client_gen_js_1.client).put({
2076
- security: [{ scheme: 'bearer', type: 'http' }],
2077
- url: '/v1/functions/{id}',
2078
- ...options,
2079
- headers: {
2080
- 'Content-Type': 'application/json',
2081
- ...options.headers
2082
- }
2083
- });
2084
- exports.updateFunction = updateFunction;
2085
- /**
2086
- * List function invocations.
2087
- *
2088
- * Returns the invocation history for a serverless function.
2089
- */
2090
- const listFunctionInvocations = (options) => (options.client ?? client_gen_js_1.client).get({
2091
- security: [{ scheme: 'bearer', type: 'http' }],
2092
- url: '/v1/functions/{id}/invocations',
2093
- ...options
2094
- });
2095
- exports.listFunctionInvocations = listFunctionInvocations;
2096
- /**
2097
- * Invoke a function.
2098
- *
2099
- * Invokes a serverless function with the supplied payload and returns its result.
2100
- */
2101
- const invokeFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2102
- security: [{ scheme: 'bearer', type: 'http' }],
2103
- url: '/v1/functions/{id}/invoke',
2104
- ...options,
2105
- headers: {
2106
- 'Content-Type': 'application/json',
2107
- ...options.headers
2108
- }
2109
- });
2110
- exports.invokeFunction = invokeFunction;
2111
- /**
2112
- * Get function logs.
2113
- *
2114
- * Returns log output for a serverless function.
2115
- */
2116
- const getFunctionLogs = (options) => (options.client ?? client_gen_js_1.client).get({
2117
- security: [{ scheme: 'bearer', type: 'http' }],
2118
- url: '/v1/functions/{id}/logs',
2119
- ...options
2120
- });
2121
- exports.getFunctionLogs = getFunctionLogs;
2122
- /**
2123
- * List source-control integrations.
2124
- *
2125
- * Returns all GitHub/GitLab/Bitbucket integrations attached to the caller's
2126
- * project.
2127
- */
2128
- const listIntegrations = (options) => (options?.client ?? client_gen_js_1.client).get({
2129
- security: [{ scheme: 'bearer', type: 'http' }],
2130
- url: '/v1/integrations',
2131
- ...options
2132
- });
2133
- exports.listIntegrations = listIntegrations;
2134
- /**
2135
- * Create a source-control integration.
2136
- *
2137
- * Attaches a Git provider repo to the caller's project and returns the created
2138
- * integration plus the webhook URL and secret to configure on the provider.
2139
- */
2140
- const createIntegration = (options) => (options.client ?? client_gen_js_1.client).post({
2141
- security: [{ scheme: 'bearer', type: 'http' }],
2142
- url: '/v1/integrations',
2143
- ...options,
2144
- headers: {
2145
- 'Content-Type': 'application/json',
2146
- ...options.headers
2147
- }
2148
- });
2149
- exports.createIntegration = createIntegration;
2150
- /**
2151
- * List GitHub App installations.
2152
- *
2153
- * Returns the GitHub App installations registered to the caller's project.
2154
- */
2155
- const listGithubInstallations = (options) => (options?.client ?? client_gen_js_1.client).get({
2156
- security: [{ scheme: 'bearer', type: 'http' }],
2157
- url: '/v1/integrations/github/installations',
2158
- ...options
2159
- });
2160
- exports.listGithubInstallations = listGithubInstallations;
2161
- /**
2162
- * Mint an installation token.
2163
- *
2164
- * Returns a short-lived GitHub App installation access token for an
2165
- * installation owned by the caller's project.
2166
- */
2167
- const createGithubInstallationToken = (options) => (options.client ?? client_gen_js_1.client).post({
2168
- security: [{ scheme: 'bearer', type: 'http' }],
2169
- url: '/v1/integrations/github/installations/{installation_id}/token',
2170
- ...options
2171
- });
2172
- exports.createGithubInstallationToken = createGithubInstallationToken;
2173
- /**
2174
- * List accessible GitHub repos.
2175
- *
2176
- * Returns the repositories the project's GitHub App installations can access,
2177
- * aggregated across all active installations.
2178
- */
2179
- const listGithubRepos = (options) => (options?.client ?? client_gen_js_1.client).get({
2180
- security: [{ scheme: 'bearer', type: 'http' }],
2181
- url: '/v1/integrations/github/repos',
2182
- ...options
2183
- });
2184
- exports.listGithubRepos = listGithubRepos;
2185
- /**
2186
- * Delete a source-control integration.
2187
- *
2188
- * Detaches a Git provider repo from the caller's project and deletes the
2189
- * integration record.
2190
- */
2191
- const deleteIntegration = (options) => (options.client ?? client_gen_js_1.client).delete({
2192
- security: [{ scheme: 'bearer', type: 'http' }],
2193
- url: '/v1/integrations/{id}',
2194
- ...options
2195
- });
2196
- exports.deleteIntegration = deleteIntegration;
2197
- /**
2198
- * Get a source-control integration.
2199
- *
2200
- * Returns a single integration by id, scoped to the caller's project.
2201
- */
2202
- const getIntegration = (options) => (options.client ?? client_gen_js_1.client).get({
2203
- security: [{ scheme: 'bearer', type: 'http' }],
2204
- url: '/v1/integrations/{id}',
2205
- ...options
2206
- });
2207
- exports.getIntegration = getIntegration;
2208
- /**
2209
- * Update a source-control integration.
2210
- *
2211
- * Updates an integration's build/deploy settings (branch filter, auto-build,
2212
- * auto-deploy, preview, status) and returns the updated record.
2213
- */
2214
- const updateIntegration = (options) => (options.client ?? client_gen_js_1.client).put({
2215
- security: [{ scheme: 'bearer', type: 'http' }],
2216
- url: '/v1/integrations/{id}',
2217
- ...options,
2218
- headers: {
2219
- 'Content-Type': 'application/json',
2220
- ...options.headers
2221
- }
2222
- });
2223
- exports.updateIntegration = updateIntegration;
2224
- /**
2225
- * Delete keys.
2226
- *
2227
- * Removes one or more keys from the tenant's key-value store (batch delete).
2228
- */
2229
- const kvDel = (options) => (options.client ?? client_gen_js_1.client).post({
2230
- security: [{ scheme: 'bearer', type: 'http' }],
2231
- url: '/v1/kv/del',
2232
- ...options,
2233
- headers: {
2234
- 'Content-Type': 'application/json',
2235
- ...options.headers
2236
- }
2237
- });
2238
- exports.kvDel = kvDel;
2239
- /**
2240
- * Check if a key exists.
2241
- *
2242
- * Returns whether a key is present in the tenant's key-value store.
2243
- */
2244
- const kvExists = (options) => (options.client ?? client_gen_js_1.client).post({
2245
- security: [{ scheme: 'bearer', type: 'http' }],
2246
- url: '/v1/kv/exists',
2247
- ...options,
2248
- headers: {
2249
- 'Content-Type': 'application/json',
2250
- ...options.headers
2251
- }
2252
- });
2253
- exports.kvExists = kvExists;
2254
- /**
2255
- * Fetch a value by key.
2256
- *
2257
- * Reads a single key from the tenant's key-value store; returns `value: null` if absent.
2258
- */
2259
- const kvGet = (options) => (options.client ?? client_gen_js_1.client).post({
2260
- security: [{ scheme: 'bearer', type: 'http' }],
2261
- url: '/v1/kv/get',
2262
- ...options,
2263
- headers: {
2264
- 'Content-Type': 'application/json',
2265
- ...options.headers
2266
- }
2267
- });
2268
- exports.kvGet = kvGet;
2269
- /**
2270
- * List keys.
2271
- *
2272
- * Returns the keys in the tenant's key-value store matching an optional glob pattern.
2273
- */
2274
- const kvKeys = (options) => (options.client ?? client_gen_js_1.client).post({
2275
- security: [{ scheme: 'bearer', type: 'http' }],
2276
- url: '/v1/kv/keys',
2277
- ...options,
2278
- headers: {
2279
- 'Content-Type': 'application/json',
2280
- ...options.headers
2281
- }
2282
- });
2283
- exports.kvKeys = kvKeys;
2284
- /**
2285
- * Set a value by key.
2286
- *
2287
- * Writes a value to the tenant's key-value store, with an optional TTL.
2288
- */
2289
- const kvSet = (options) => (options.client ?? client_gen_js_1.client).post({
2290
- security: [{ scheme: 'bearer', type: 'http' }],
2291
- url: '/v1/kv/set',
2292
- ...options,
2293
- headers: {
2294
- 'Content-Type': 'application/json',
2295
- ...options.headers
2296
- }
2297
- });
2298
- exports.kvSet = kvSet;
2299
- /**
2300
- * List load balancers.
2301
- *
2302
- * Returns all load balancers belonging to the caller's project.
2303
- */
2304
- const listLoadBalancers = (options) => (options?.client ?? client_gen_js_1.client).get({
2305
- security: [{ scheme: 'bearer', type: 'http' }],
2306
- url: '/v1/lb',
2307
- ...options
2308
- });
2309
- exports.listLoadBalancers = listLoadBalancers;
2310
- /**
2311
- * Create a load balancer.
2312
- *
2313
- * Provisions a load balancer for the caller's project and returns its details.
2314
- */
2315
- const createLoadBalancer = (options) => (options.client ?? client_gen_js_1.client).post({
2316
- security: [{ scheme: 'bearer', type: 'http' }],
2317
- url: '/v1/lb',
2318
- ...options,
2319
- headers: {
2320
- 'Content-Type': 'application/json',
2321
- ...options.headers
2322
- }
2323
- });
2324
- exports.createLoadBalancer = createLoadBalancer;
2325
- /**
2326
- * Delete a load balancer.
2327
- *
2328
- * Removes a load balancer and its backends by id.
2329
- */
2330
- const deleteLoadBalancer = (options) => (options.client ?? client_gen_js_1.client).delete({
2331
- security: [{ scheme: 'bearer', type: 'http' }],
2332
- url: '/v1/lb/{id}',
2333
- ...options
2334
- });
2335
- exports.deleteLoadBalancer = deleteLoadBalancer;
2336
- /**
2337
- * Get a load balancer.
2338
- *
2339
- * Returns a single load balancer by id.
2340
- */
2341
- const getLoadBalancer = (options) => (options.client ?? client_gen_js_1.client).get({
2342
- security: [{ scheme: 'bearer', type: 'http' }],
2343
- url: '/v1/lb/{id}',
2344
- ...options
2345
- });
2346
- exports.getLoadBalancer = getLoadBalancer;
2347
- /**
2348
- * Add a backend to a load balancer.
2349
- *
2350
- * Registers a backend target on the load balancer and returns its details.
2351
- */
2352
- const addLoadBalancerBackend = (options) => (options.client ?? client_gen_js_1.client).post({
2353
- security: [{ scheme: 'bearer', type: 'http' }],
2354
- url: '/v1/lb/{id}/backends',
2355
- ...options,
2356
- headers: {
2357
- 'Content-Type': 'application/json',
2358
- ...options.headers
2359
- }
2360
- });
2361
- exports.addLoadBalancerBackend = addLoadBalancerBackend;
2362
- /**
2363
- * Remove a backend from a load balancer.
2364
- *
2365
- * Deletes a backend target from the load balancer by id.
2366
- */
2367
- const removeLoadBalancerBackend = (options) => (options.client ?? client_gen_js_1.client).delete({
2368
- security: [{ scheme: 'bearer', type: 'http' }],
2369
- url: '/v1/lb/{id}/backends/{backend_id}',
2370
- ...options
2371
- });
2372
- exports.removeLoadBalancerBackend = removeLoadBalancerBackend;
2373
- /**
2374
- * Describe the current token.
2375
- *
2376
- * Returns the caller's identity, effective permissions and scopes, the MCP
2377
- * tools their scopes unlock, and their plan's rate-limit and API-key ceilings.
2378
- */
2379
- const getMe = (options) => (options?.client ?? client_gen_js_1.client).get({
2380
- security: [{ scheme: 'bearer', type: 'http' }],
2381
- url: '/v1/me',
2382
- ...options
2383
- });
2384
- exports.getMe = getMe;
2385
- /**
2386
- * Check the registry API version.
2387
- *
2388
- * Returns the OCI Distribution API version supported by the registry.
2389
- */
2390
- const registryVersionCheck = (options) => (options?.client ?? client_gen_js_1.client).get({
2391
- security: [{ scheme: 'bearer', type: 'http' }],
2392
- url: '/v1/registry/v2/',
2393
- ...options
2394
- });
2395
- exports.registryVersionCheck = registryVersionCheck;
2396
- /**
2397
- * List the repository catalog.
966
+ * Get a subscription.
2398
967
  *
2399
- * Returns the catalog of repositories in the registry.
968
+ * Returns a single event subscription by id.
2400
969
  */
2401
- const getRegistryCatalog = (options) => (options?.client ?? client_gen_js_1.client).get({
970
+ const getEventSubscription = (options) => (options.client ?? client_gen_js_1.client).get({
2402
971
  security: [{ scheme: 'bearer', type: 'http' }],
2403
- url: '/v1/registry/v2/_catalog',
972
+ url: '/v1/events/subscriptions/{id}',
2404
973
  ...options
2405
974
  });
2406
- exports.getRegistryCatalog = getRegistryCatalog;
975
+ exports.getEventSubscription = getEventSubscription;
2407
976
  /**
2408
- * Start a blob upload.
977
+ * List subscription deliveries.
2409
978
  *
2410
- * Begins an OCI blob upload session and returns the upload location.
979
+ * Returns the delivery attempts for an event subscription.
2411
980
  */
2412
- const startRegistryBlobUpload = (options) => (options.client ?? client_gen_js_1.client).post({
981
+ const listSubscriptionDeliveries = (options) => (options.client ?? client_gen_js_1.client).get({
2413
982
  security: [{ scheme: 'bearer', type: 'http' }],
2414
- url: '/v1/registry/v2/{project_id}/{repository}/blobs/uploads/',
983
+ url: '/v1/events/subscriptions/{id}/deliveries',
2415
984
  ...options
2416
985
  });
2417
- exports.startRegistryBlobUpload = startRegistryBlobUpload;
986
+ exports.listSubscriptionDeliveries = listSubscriptionDeliveries;
2418
987
  /**
2419
- * Get a blob.
988
+ * List topics.
2420
989
  *
2421
- * Downloads an OCI blob by digest.
990
+ * Returns all event-bus topics for the caller's project.
2422
991
  */
2423
- const getRegistryBlob = (options) => (options.client ?? client_gen_js_1.client).get({
992
+ const listEventTopics = (options) => (options?.client ?? client_gen_js_1.client).get({
2424
993
  security: [{ scheme: 'bearer', type: 'http' }],
2425
- url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
994
+ url: '/v1/events/topics',
2426
995
  ...options
2427
996
  });
2428
- exports.getRegistryBlob = getRegistryBlob;
997
+ exports.listEventTopics = listEventTopics;
2429
998
  /**
2430
- * Check a blob exists.
999
+ * Create a topic.
2431
1000
  *
2432
- * Returns headers indicating whether an OCI blob exists.
1001
+ * Creates a new event-bus topic.
2433
1002
  */
2434
- const headRegistryBlob = (options) => (options.client ?? client_gen_js_1.client).head({
1003
+ const createEventTopic = (options) => (options?.client ?? client_gen_js_1.client).post({
2435
1004
  security: [{ scheme: 'bearer', type: 'http' }],
2436
- url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
1005
+ url: '/v1/events/topics',
2437
1006
  ...options
2438
1007
  });
2439
- exports.headRegistryBlob = headRegistryBlob;
1008
+ exports.createEventTopic = createEventTopic;
2440
1009
  /**
2441
- * Delete a manifest.
1010
+ * Delete a topic.
2442
1011
  *
2443
- * Removes an OCI image manifest by tag or digest.
1012
+ * Removes an event-bus topic by id or name.
2444
1013
  */
2445
- const deleteRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).delete({
1014
+ const deleteEventTopic = (options) => (options.client ?? client_gen_js_1.client).delete({
2446
1015
  security: [{ scheme: 'bearer', type: 'http' }],
2447
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1016
+ url: '/v1/events/topics/{id}',
2448
1017
  ...options
2449
1018
  });
2450
- exports.deleteRegistryManifest = deleteRegistryManifest;
1019
+ exports.deleteEventTopic = deleteEventTopic;
2451
1020
  /**
2452
- * Get a manifest.
1021
+ * Get a topic.
2453
1022
  *
2454
- * Returns an OCI image manifest by tag or digest.
1023
+ * Returns a single event-bus topic by id or name.
2455
1024
  */
2456
- const getRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).get({
1025
+ const getEventTopic = (options) => (options.client ?? client_gen_js_1.client).get({
2457
1026
  security: [{ scheme: 'bearer', type: 'http' }],
2458
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1027
+ url: '/v1/events/topics/{id}',
2459
1028
  ...options
2460
1029
  });
2461
- exports.getRegistryManifest = getRegistryManifest;
1030
+ exports.getEventTopic = getEventTopic;
2462
1031
  /**
2463
- * Check a manifest exists.
1032
+ * List events on a topic.
2464
1033
  *
2465
- * Returns headers indicating whether an OCI manifest exists.
1034
+ * Returns the recent events published to a topic.
2466
1035
  */
2467
- const headRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).head({
1036
+ const listTopicEvents = (options) => (options.client ?? client_gen_js_1.client).get({
2468
1037
  security: [{ scheme: 'bearer', type: 'http' }],
2469
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1038
+ url: '/v1/events/topics/{id}/events',
2470
1039
  ...options
2471
1040
  });
2472
- exports.headRegistryManifest = headRegistryManifest;
1041
+ exports.listTopicEvents = listTopicEvents;
2473
1042
  /**
2474
- * Store a manifest.
1043
+ * Publish an event.
2475
1044
  *
2476
- * Uploads an OCI image manifest under a tag or digest.
1045
+ * Publishes an event payload to a topic.
2477
1046
  */
2478
- const putRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).put({
1047
+ const publishEvent = (options) => (options.client ?? client_gen_js_1.client).post({
2479
1048
  security: [{ scheme: 'bearer', type: 'http' }],
2480
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1049
+ url: '/v1/events/topics/{id}/publish',
2481
1050
  ...options,
2482
1051
  headers: {
2483
1052
  'Content-Type': 'application/json',
2484
1053
  ...options.headers
2485
1054
  }
2486
1055
  });
2487
- exports.putRegistryManifest = putRegistryManifest;
2488
- /**
2489
- * List tags.
2490
- *
2491
- * Returns the tags available for a repository.
2492
- */
2493
- const listRegistryTags = (options) => (options.client ?? client_gen_js_1.client).get({
2494
- security: [{ scheme: 'bearer', type: 'http' }],
2495
- url: '/v1/registry/v2/{project_id}/{repository}/tags/list',
2496
- ...options
2497
- });
2498
- exports.listRegistryTags = listRegistryTags;
1056
+ exports.publishEvent = publishEvent;
2499
1057
  /**
2500
- * List Scalix Run services.
1058
+ * List a topic's subscriptions.
2501
1059
  *
2502
- * Returns all Scalix Run services for the caller's project.
1060
+ * Returns the subscriptions attached to a topic.
2503
1061
  */
2504
- const listServices = (options) => (options?.client ?? client_gen_js_1.client).get({
1062
+ const listTopicSubscriptions = (options) => (options.client ?? client_gen_js_1.client).get({
2505
1063
  security: [{ scheme: 'bearer', type: 'http' }],
2506
- url: '/v1/run/services',
1064
+ url: '/v1/events/topics/{id}/subscriptions',
2507
1065
  ...options
2508
1066
  });
2509
- exports.listServices = listServices;
1067
+ exports.listTopicSubscriptions = listTopicSubscriptions;
2510
1068
  /**
2511
- * Deploy a Scalix Run service.
1069
+ * Create a subscription.
2512
1070
  *
2513
- * Deploys a Scalix Run service and returns the created service.
1071
+ * Creates a subscription that delivers a topic's events to an endpoint.
2514
1072
  */
2515
- const createService = (options) => (options.client ?? client_gen_js_1.client).post({
1073
+ const createEventSubscription = (options) => (options.client ?? client_gen_js_1.client).post({
2516
1074
  security: [{ scheme: 'bearer', type: 'http' }],
2517
- url: '/v1/run/services',
1075
+ url: '/v1/events/topics/{id}/subscriptions',
2518
1076
  ...options,
2519
1077
  headers: {
2520
1078
  'Content-Type': 'application/json',
2521
1079
  ...options.headers
2522
1080
  }
2523
1081
  });
2524
- exports.createService = createService;
2525
- /**
2526
- * Delete a Scalix Run service.
2527
- *
2528
- * Removes a Scalix Run service by id.
2529
- */
2530
- const deleteService = (options) => (options.client ?? client_gen_js_1.client).delete({
2531
- security: [{ scheme: 'bearer', type: 'http' }],
2532
- url: '/v1/run/services/{id}',
2533
- ...options
2534
- });
2535
- exports.deleteService = deleteService;
1082
+ exports.createEventSubscription = createEventSubscription;
2536
1083
  /**
2537
- * Get a Scalix Run service.
1084
+ * List functions.
2538
1085
  *
2539
- * Returns a single Scalix Run service by id.
1086
+ * Returns all serverless functions for the caller's project.
2540
1087
  */
2541
- const getService = (options) => (options.client ?? client_gen_js_1.client).get({
1088
+ const listFunctions = (options) => (options?.client ?? client_gen_js_1.client).get({
2542
1089
  security: [{ scheme: 'bearer', type: 'http' }],
2543
- url: '/v1/run/services/{id}',
1090
+ url: '/v1/functions',
2544
1091
  ...options
2545
1092
  });
2546
- exports.getService = getService;
1093
+ exports.listFunctions = listFunctions;
2547
1094
  /**
2548
- * Update a Scalix Run service.
1095
+ * Create a function.
2549
1096
  *
2550
- * Updates a Scalix Run service (e.g. scaling) and returns the new state.
1097
+ * Deploys a serverless function and returns the created function.
2551
1098
  */
2552
- const updateService = (options) => (options.client ?? client_gen_js_1.client).put({
1099
+ const createFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2553
1100
  security: [{ scheme: 'bearer', type: 'http' }],
2554
- url: '/v1/run/services/{id}',
1101
+ url: '/v1/functions',
2555
1102
  ...options,
2556
1103
  headers: {
2557
1104
  'Content-Type': 'application/json',
2558
1105
  ...options.headers
2559
1106
  }
2560
1107
  });
2561
- exports.updateService = updateService;
2562
- /**
2563
- * List service instances.
2564
- *
2565
- * Returns the running instances of a Scalix Run service.
2566
- */
2567
- const listServiceInstances = (options) => (options.client ?? client_gen_js_1.client).get({
2568
- security: [{ scheme: 'bearer', type: 'http' }],
2569
- url: '/v1/run/services/{id}/instances',
2570
- ...options
2571
- });
2572
- exports.listServiceInstances = listServiceInstances;
2573
- /**
2574
- * Get service live instance state.
2575
- *
2576
- * Returns healthy/total instance counts and in-flight request totals for a
2577
- * Scalix Run service. Request-level RED metrics (requests/sec, errors/sec,
2578
- * latency percentiles) are served by
2579
- * `GET /v1/metering/services/run-service/{id}/metrics`, whose response
2580
- * carries `available:false` with a message when the deployment has no
2581
- * metrics backend.
2582
- */
2583
- const getServiceMetrics = (options) => (options.client ?? client_gen_js_1.client).get({
2584
- security: [{ scheme: 'bearer', type: 'http' }],
2585
- url: '/v1/run/services/{id}/metrics',
2586
- ...options
2587
- });
2588
- exports.getServiceMetrics = getServiceMetrics;
1108
+ exports.createFunction = createFunction;
2589
1109
  /**
2590
- * List service revisions.
1110
+ * Delete a function.
2591
1111
  *
2592
- * Returns the revision history of a Scalix Run service.
1112
+ * Removes a serverless function by id or name.
2593
1113
  */
2594
- const listServiceRevisions = (options) => (options.client ?? client_gen_js_1.client).get({
1114
+ const deleteFunction = (options) => (options.client ?? client_gen_js_1.client).delete({
2595
1115
  security: [{ scheme: 'bearer', type: 'http' }],
2596
- url: '/v1/run/services/{id}/revisions',
1116
+ url: '/v1/functions/{id}',
2597
1117
  ...options
2598
1118
  });
2599
- exports.listServiceRevisions = listServiceRevisions;
1119
+ exports.deleteFunction = deleteFunction;
2600
1120
  /**
2601
- * Roll back a service.
1121
+ * Get a function.
2602
1122
  *
2603
- * Rolls a Scalix Run service back to a previous revision.
2604
- */
2605
- const rollbackService = (options) => (options.client ?? client_gen_js_1.client).post({
2606
- security: [{ scheme: 'bearer', type: 'http' }],
2607
- url: '/v1/run/services/{id}/rollback',
2608
- ...options,
2609
- headers: {
2610
- 'Content-Type': 'application/json',
2611
- ...options.headers
2612
- }
2613
- });
2614
- exports.rollbackService = rollbackService;
2615
- /**
2616
- * List your sandboxes.
1123
+ * Returns a single serverless function by id or name.
2617
1124
  */
2618
- const sandboxList = (options) => (options?.client ?? client_gen_js_1.client).get({
1125
+ const getFunction = (options) => (options.client ?? client_gen_js_1.client).get({
2619
1126
  security: [{ scheme: 'bearer', type: 'http' }],
2620
- url: '/v1/sandboxes',
1127
+ url: '/v1/functions/{id}',
2621
1128
  ...options
2622
1129
  });
2623
- exports.sandboxList = sandboxList;
1130
+ exports.getFunction = getFunction;
2624
1131
  /**
2625
- * Create an ephemeral sandbox.
1132
+ * Update a function.
2626
1133
  *
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.
1134
+ * Redeploys a serverless function with a new configuration.
2688
1135
  */
2689
- const sandboxWriteFiles = (options) => (options.client ?? client_gen_js_1.client).post({
1136
+ const updateFunction = (options) => (options.client ?? client_gen_js_1.client).put({
2690
1137
  security: [{ scheme: 'bearer', type: 'http' }],
2691
- url: '/v1/sandboxes/{id}/files',
1138
+ url: '/v1/functions/{id}',
2692
1139
  ...options,
2693
1140
  headers: {
2694
1141
  'Content-Type': 'application/json',
2695
1142
  ...options.headers
2696
1143
  }
2697
1144
  });
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;
1145
+ exports.updateFunction = updateFunction;
2708
1146
  /**
2709
- * Snapshot a sandbox - not available.
1147
+ * List function invocations.
2710
1148
  *
2711
- * Ephemeral sandboxes are disposable; state does not persist past stop.
2712
- * This endpoint returns 501 until snapshots ship (demand-gated).
1149
+ * Returns the invocation history for a serverless function.
2713
1150
  */
2714
- const sandboxSnapshot = (options) => (options.client ?? client_gen_js_1.client).post({
1151
+ const listFunctionInvocations = (options) => (options.client ?? client_gen_js_1.client).get({
2715
1152
  security: [{ scheme: 'bearer', type: 'http' }],
2716
- url: '/v1/sandboxes/{id}/snapshot',
1153
+ url: '/v1/functions/{id}/invocations',
2717
1154
  ...options
2718
1155
  });
2719
- exports.sandboxSnapshot = sandboxSnapshot;
1156
+ exports.listFunctionInvocations = listFunctionInvocations;
2720
1157
  /**
2721
- * Run a search.
1158
+ * Invoke a function.
2722
1159
  *
2723
- * Runs a query against the curated Scalix Search index and returns ranked results.
1160
+ * Invokes a serverless function with the supplied payload and returns its result.
2724
1161
  */
2725
- const searchIndex = (options) => (options?.client ?? client_gen_js_1.client).get({
1162
+ const invokeFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2726
1163
  security: [{ scheme: 'bearer', type: 'http' }],
2727
- url: '/v1/search',
2728
- ...options
1164
+ url: '/v1/functions/{id}/invoke',
1165
+ ...options,
1166
+ headers: {
1167
+ 'Content-Type': 'application/json',
1168
+ ...options.headers
1169
+ }
2729
1170
  });
2730
- exports.searchIndex = searchIndex;
1171
+ exports.invokeFunction = invokeFunction;
2731
1172
  /**
2732
- * Run a search ingest.
1173
+ * Get function logs.
2733
1174
  *
2734
- * Triggers an ingest run that crawls and indexes registered sources.
1175
+ * Returns log output for a serverless function.
2735
1176
  */
2736
- const runSearchIngest = (options) => (options?.client ?? client_gen_js_1.client).post({
1177
+ const getFunctionLogs = (options) => (options.client ?? client_gen_js_1.client).get({
2737
1178
  security: [{ scheme: 'bearer', type: 'http' }],
2738
- url: '/v1/search/ingest/run',
1179
+ url: '/v1/functions/{id}/logs',
2739
1180
  ...options
2740
1181
  });
2741
- exports.runSearchIngest = runSearchIngest;
1182
+ exports.getFunctionLogs = getFunctionLogs;
2742
1183
  /**
2743
- * List search sources.
1184
+ * Delete keys.
2744
1185
  *
2745
- * Returns the curated sources registered in the search index.
1186
+ * Removes one or more keys from the tenant's key-value store (batch delete).
2746
1187
  */
2747
- const listSearchSources = (options) => (options?.client ?? client_gen_js_1.client).get({
1188
+ const kvDel = (options) => (options.client ?? client_gen_js_1.client).post({
2748
1189
  security: [{ scheme: 'bearer', type: 'http' }],
2749
- url: '/v1/search/sources',
2750
- ...options
1190
+ url: '/v1/kv/del',
1191
+ ...options,
1192
+ headers: {
1193
+ 'Content-Type': 'application/json',
1194
+ ...options.headers
1195
+ }
2751
1196
  });
2752
- exports.listSearchSources = listSearchSources;
1197
+ exports.kvDel = kvDel;
2753
1198
  /**
2754
- * Upsert a search source.
1199
+ * Check if a key exists.
2755
1200
  *
2756
- * Creates or updates a curated source in the search index.
1201
+ * Returns whether a key is present in the tenant's key-value store.
2757
1202
  */
2758
- const upsertSearchSource = (options) => (options.client ?? client_gen_js_1.client).post({
1203
+ const kvExists = (options) => (options.client ?? client_gen_js_1.client).post({
2759
1204
  security: [{ scheme: 'bearer', type: 'http' }],
2760
- url: '/v1/search/sources',
1205
+ url: '/v1/kv/exists',
2761
1206
  ...options,
2762
1207
  headers: {
2763
1208
  'Content-Type': 'application/json',
2764
1209
  ...options.headers
2765
1210
  }
2766
1211
  });
2767
- exports.upsertSearchSource = upsertSearchSource;
1212
+ exports.kvExists = kvExists;
2768
1213
  /**
2769
- * Get search stats.
1214
+ * Fetch a value by key.
2770
1215
  *
2771
- * Returns statistics about the search index.
1216
+ * Reads a single key from the tenant's key-value store; returns `value: null` if absent.
2772
1217
  */
2773
- const getSearchStats = (options) => (options?.client ?? client_gen_js_1.client).get({
1218
+ const kvGet = (options) => (options.client ?? client_gen_js_1.client).post({
2774
1219
  security: [{ scheme: 'bearer', type: 'http' }],
2775
- url: '/v1/search/stats',
2776
- ...options
1220
+ url: '/v1/kv/get',
1221
+ ...options,
1222
+ headers: {
1223
+ 'Content-Type': 'application/json',
1224
+ ...options.headers
1225
+ }
2777
1226
  });
2778
- exports.getSearchStats = getSearchStats;
1227
+ exports.kvGet = kvGet;
2779
1228
  /**
2780
- * Get Shield config.
1229
+ * List keys.
2781
1230
  *
2782
- * Returns the Shield configuration (default action, challenge settings) for the
2783
- * caller's project.
1231
+ * Returns the keys in the tenant's key-value store matching an optional glob pattern.
2784
1232
  */
2785
- const getShieldConfig = (options) => (options?.client ?? client_gen_js_1.client).get({
1233
+ const kvKeys = (options) => (options.client ?? client_gen_js_1.client).post({
2786
1234
  security: [{ scheme: 'bearer', type: 'http' }],
2787
- url: '/v1/shield/config',
2788
- ...options
1235
+ url: '/v1/kv/keys',
1236
+ ...options,
1237
+ headers: {
1238
+ 'Content-Type': 'application/json',
1239
+ ...options.headers
1240
+ }
2789
1241
  });
2790
- exports.getShieldConfig = getShieldConfig;
1242
+ exports.kvKeys = kvKeys;
2791
1243
  /**
2792
- * Update Shield config.
1244
+ * Set a value by key.
2793
1245
  *
2794
- * Replaces the Shield configuration for the caller's project. Requires the Pro
2795
- * plan or higher.
1246
+ * Writes a value to the tenant's key-value store, with an optional TTL.
2796
1247
  */
2797
- const updateShieldConfig = (options) => (options.client ?? client_gen_js_1.client).put({
1248
+ const kvSet = (options) => (options.client ?? client_gen_js_1.client).post({
2798
1249
  security: [{ scheme: 'bearer', type: 'http' }],
2799
- url: '/v1/shield/config',
1250
+ url: '/v1/kv/set',
2800
1251
  ...options,
2801
1252
  headers: {
2802
1253
  'Content-Type': 'application/json',
2803
1254
  ...options.headers
2804
1255
  }
2805
1256
  });
2806
- exports.updateShieldConfig = updateShieldConfig;
1257
+ exports.kvSet = kvSet;
2807
1258
  /**
2808
- * List Shield crawlers.
2809
- *
2810
- * Returns the known AI crawlers with their per-project policy and traffic
2811
- * stats, plus any custom user-defined crawler rules.
1259
+ * List your sandboxes.
2812
1260
  */
2813
- const listShieldCrawlers = (options) => (options?.client ?? client_gen_js_1.client).get({
1261
+ const sandboxList = (options) => (options?.client ?? client_gen_js_1.client).get({
2814
1262
  security: [{ scheme: 'bearer', type: 'http' }],
2815
- url: '/v1/shield/crawlers',
1263
+ url: '/v1/sandboxes',
2816
1264
  ...options
2817
1265
  });
2818
- exports.listShieldCrawlers = listShieldCrawlers;
1266
+ exports.sandboxList = sandboxList;
2819
1267
  /**
2820
- * Set a crawler's verification IP ranges.
1268
+ * Create an ephemeral sandbox.
2821
1269
  *
2822
- * Sets the IP addresses or CIDR ranges used to verify a crawler's source IP.
2823
- * Requires the Pro plan or higher.
1270
+ * Boots an isolated microVM. Ephemeral sandboxes are disposable: they stop
1271
+ * at their idle or hard timeout and nothing on the rootfs persists past
1272
+ * stop. Compute is billed per vCPU-hour and GB-hour of allocation while
1273
+ * running.
2824
1274
  */
2825
- const setShieldCrawlerIpRanges = (options) => (options.client ?? client_gen_js_1.client).put({
1275
+ const sandboxCreate = (options) => (options.client ?? client_gen_js_1.client).post({
2826
1276
  security: [{ scheme: 'bearer', type: 'http' }],
2827
- url: '/v1/shield/crawlers/{id}/ip-ranges',
1277
+ url: '/v1/sandboxes',
2828
1278
  ...options,
2829
1279
  headers: {
2830
1280
  'Content-Type': 'application/json',
2831
1281
  ...options.headers
2832
1282
  }
2833
1283
  });
2834
- exports.setShieldCrawlerIpRanges = setShieldCrawlerIpRanges;
1284
+ exports.sandboxCreate = sandboxCreate;
2835
1285
  /**
2836
- * Clear a crawler policy.
2837
- *
2838
- * Removes the access policy for a crawler, reverting it to the project default.
2839
- * Policy controls require the Pro plan or higher.
1286
+ * Delete a sandbox and tear down its microVM.
2840
1287
  */
2841
- const clearShieldCrawlerPolicy = (options) => (options.client ?? client_gen_js_1.client).delete({
1288
+ const sandboxDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
2842
1289
  security: [{ scheme: 'bearer', type: 'http' }],
2843
- url: '/v1/shield/crawlers/{id}/policy',
1290
+ url: '/v1/sandboxes/{id}',
2844
1291
  ...options
2845
1292
  });
2846
- exports.clearShieldCrawlerPolicy = clearShieldCrawlerPolicy;
1293
+ exports.sandboxDelete = sandboxDelete;
2847
1294
  /**
2848
- * Set a crawler policy.
2849
- *
2850
- * Sets the access policy (allow / block / rate-limit) for a known crawler in
2851
- * the caller's project. Policy controls require the Pro plan or higher.
1295
+ * Get a sandbox by id.
2852
1296
  */
2853
- const setShieldCrawlerPolicy = (options) => (options.client ?? client_gen_js_1.client).put({
1297
+ const sandboxGet = (options) => (options.client ?? client_gen_js_1.client).get({
1298
+ security: [{ scheme: 'bearer', type: 'http' }],
1299
+ url: '/v1/sandboxes/{id}',
1300
+ ...options
1301
+ });
1302
+ exports.sandboxGet = sandboxGet;
1303
+ /**
1304
+ * Run a command inside a running sandbox (synchronous).
1305
+ */
1306
+ const sandboxRunCommand = (options) => (options.client ?? client_gen_js_1.client).post({
2854
1307
  security: [{ scheme: 'bearer', type: 'http' }],
2855
- url: '/v1/shield/crawlers/{id}/policy',
1308
+ url: '/v1/sandboxes/{id}/commands',
2856
1309
  ...options,
2857
1310
  headers: {
2858
1311
  'Content-Type': 'application/json',
2859
1312
  ...options.headers
2860
1313
  }
2861
1314
  });
2862
- exports.setShieldCrawlerPolicy = setShieldCrawlerPolicy;
1315
+ exports.sandboxRunCommand = sandboxRunCommand;
2863
1316
  /**
2864
- * Create a custom Shield rule.
2865
- *
2866
- * Adds a customer-defined crawler rule matched by User-Agent substring, with
2867
- * its own access policy. Requires the Pro plan or higher.
1317
+ * Extend a sandbox's hard deadline.
2868
1318
  */
2869
- const createShieldCustomRule = (options) => (options.client ?? client_gen_js_1.client).post({
1319
+ const sandboxExtend = (options) => (options.client ?? client_gen_js_1.client).post({
2870
1320
  security: [{ scheme: 'bearer', type: 'http' }],
2871
- url: '/v1/shield/custom',
1321
+ url: '/v1/sandboxes/{id}/extend',
2872
1322
  ...options,
2873
1323
  headers: {
2874
1324
  'Content-Type': 'application/json',
2875
1325
  ...options.headers
2876
1326
  }
2877
1327
  });
2878
- exports.createShieldCustomRule = createShieldCustomRule;
2879
- /**
2880
- * Delete a custom Shield rule.
2881
- *
2882
- * Removes a custom crawler rule by id. Requires the Pro plan or higher.
2883
- */
2884
- const deleteShieldCustomRule = (options) => (options.client ?? client_gen_js_1.client).delete({
2885
- security: [{ scheme: 'bearer', type: 'http' }],
2886
- url: '/v1/shield/custom/{id}',
2887
- ...options
2888
- });
2889
- exports.deleteShieldCustomRule = deleteShieldCustomRule;
1328
+ exports.sandboxExtend = sandboxExtend;
2890
1329
  /**
2891
- * Update a custom Shield rule.
2892
- *
2893
- * Updates the access policy of an existing custom crawler rule. Requires the
2894
- * Pro plan or higher.
1330
+ * Write files into a sandbox.
2895
1331
  */
2896
- const updateShieldCustomRule = (options) => (options.client ?? client_gen_js_1.client).put({
1332
+ const sandboxWriteFiles = (options) => (options.client ?? client_gen_js_1.client).post({
2897
1333
  security: [{ scheme: 'bearer', type: 'http' }],
2898
- url: '/v1/shield/custom/{id}',
1334
+ url: '/v1/sandboxes/{id}/files',
2899
1335
  ...options,
2900
1336
  headers: {
2901
1337
  'Content-Type': 'application/json',
2902
1338
  ...options.headers
2903
1339
  }
2904
1340
  });
2905
- exports.updateShieldCustomRule = updateShieldCustomRule;
2906
- /**
2907
- * List Shield events.
2908
- *
2909
- * Returns recent Shield crawler events for the project, paginated.
2910
- */
2911
- const listShieldEvents = (options) => (options?.client ?? client_gen_js_1.client).get({
2912
- security: [{ scheme: 'bearer', type: 'http' }],
2913
- url: '/v1/shield/events',
2914
- ...options
2915
- });
2916
- exports.listShieldEvents = listShieldEvents;
1341
+ exports.sandboxWriteFiles = sandboxWriteFiles;
2917
1342
  /**
2918
- * Generate robots.txt.
2919
- *
2920
- * Returns a `robots.txt` file generated from the project's Shield crawler
2921
- * policies.
1343
+ * Read a file from a sandbox. The guest path follows `/files/`.
2922
1344
  */
2923
- const getShieldRobotsTxt = (options) => (options?.client ?? client_gen_js_1.client).get({
1345
+ const sandboxReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
2924
1346
  security: [{ scheme: 'bearer', type: 'http' }],
2925
- url: '/v1/shield/robots-txt',
1347
+ url: '/v1/sandboxes/{id}/files/{path}',
2926
1348
  ...options
2927
1349
  });
2928
- exports.getShieldRobotsTxt = getShieldRobotsTxt;
1350
+ exports.sandboxReadFile = sandboxReadFile;
2929
1351
  /**
2930
- * Get Shield statistics.
1352
+ * Snapshot a sandbox - not available.
2931
1353
  *
2932
- * Returns aggregate request, block, and rate-limit counts broken down by
2933
- * crawler for the caller's project.
1354
+ * Ephemeral sandboxes are disposable; state does not persist past stop.
1355
+ * This endpoint returns 501 until snapshots ship (demand-gated).
2934
1356
  */
2935
- const getShieldStats = (options) => (options?.client ?? client_gen_js_1.client).get({
1357
+ const sandboxSnapshot = (options) => (options.client ?? client_gen_js_1.client).post({
2936
1358
  security: [{ scheme: 'bearer', type: 'http' }],
2937
- url: '/v1/shield/stats',
1359
+ url: '/v1/sandboxes/{id}/snapshot',
2938
1360
  ...options
2939
1361
  });
2940
- exports.getShieldStats = getShieldStats;
1362
+ exports.sandboxSnapshot = sandboxSnapshot;
2941
1363
  /**
2942
1364
  * List buckets.
2943
1365
  *
@@ -2993,17 +1415,6 @@ const getObject = (options) => (options.client ?? client_gen_js_1.client).get({
2993
1415
  ...options
2994
1416
  });
2995
1417
  exports.getObject = getObject;
2996
- /**
2997
- * Get object metadata.
2998
- *
2999
- * Returns an object's metadata headers without its body.
3000
- */
3001
- const headObject = (options) => (options.client ?? client_gen_js_1.client).head({
3002
- security: [{ scheme: 'bearer', type: 'http' }],
3003
- url: '/v1/storage/buckets/{bucket}/objects/{key}',
3004
- ...options
3005
- });
3006
- exports.headObject = headObject;
3007
1418
  /**
3008
1419
  * Upload an object.
3009
1420
  *
@@ -3058,224 +1469,4 @@ const getKeysUsage = (options) => (options?.client ?? client_gen_js_1.client).ge
3058
1469
  ...options
3059
1470
  });
3060
1471
  exports.getKeysUsage = getKeysUsage;
3061
- /**
3062
- * Get usage for one API key.
3063
- *
3064
- * Returns the request count for a single API key this billing month. Requires
3065
- * the `metering:read` scope; the key must belong to the caller's org.
3066
- */
3067
- const getKeyUsage = (options) => (options.client ?? client_gen_js_1.client).get({
3068
- security: [{ scheme: 'bearer', type: 'http' }],
3069
- url: '/v1/usage/keys/{key_id}',
3070
- ...options
3071
- });
3072
- exports.getKeyUsage = getKeyUsage;
3073
- /**
3074
- * Get the caller's budget.
3075
- *
3076
- * Returns current usage (AI tokens, storage, compute hours), the plan's
3077
- * allowances, and the remaining headroom for each.
3078
- */
3079
- const getUserBudget = (options) => (options?.client ?? client_gen_js_1.client).get({
3080
- security: [{ scheme: 'bearer', type: 'http' }],
3081
- url: '/v1/user/budget',
3082
- ...options
3083
- });
3084
- exports.getUserBudget = getUserBudget;
3085
- /**
3086
- * Get the caller's account profile.
3087
- *
3088
- * Returns the authenticated user's id, email, name, plan, and status. Fields
3089
- * after `status` are present only when a stored user record exists.
3090
- */
3091
- const getUserInfo = (options) => (options?.client ?? client_gen_js_1.client).get({
3092
- security: [{ scheme: 'bearer', type: 'http' }],
3093
- url: '/v1/user/info',
3094
- ...options
3095
- });
3096
- exports.getUserInfo = getUserInfo;
3097
- /**
3098
- * Get the caller's usage stats.
3099
- *
3100
- * Returns a per-service usage breakdown (AI, storage, compute, bandwidth,
3101
- * functions) for the current month.
3102
- */
3103
- const getUserStats = (options) => (options?.client ?? client_gen_js_1.client).get({
3104
- security: [{ scheme: 'bearer', type: 'http' }],
3105
- url: '/v1/user/stats',
3106
- ...options
3107
- });
3108
- exports.getUserStats = getUserStats;
3109
- /**
3110
- * List VPCs.
3111
- *
3112
- * Returns all VPCs belonging to the caller's project.
3113
- */
3114
- const listVpcs = (options) => (options?.client ?? client_gen_js_1.client).get({
3115
- security: [{ scheme: 'bearer', type: 'http' }],
3116
- url: '/v1/vpc',
3117
- ...options
3118
- });
3119
- exports.listVpcs = listVpcs;
3120
- /**
3121
- * Create a VPC.
3122
- *
3123
- * Provisions a VPC for the caller's project. Currently returns 501 —
3124
- * enforcement and durable storage are a planned capability.
3125
- */
3126
- const createVpc = (options) => (options.client ?? client_gen_js_1.client).post({
3127
- security: [{ scheme: 'bearer', type: 'http' }],
3128
- url: '/v1/vpc',
3129
- ...options,
3130
- headers: {
3131
- 'Content-Type': 'application/json',
3132
- ...options.headers
3133
- }
3134
- });
3135
- exports.createVpc = createVpc;
3136
- /**
3137
- * Delete a VPC.
3138
- *
3139
- * Removes a VPC and its peers by id.
3140
- */
3141
- const deleteVpc = (options) => (options.client ?? client_gen_js_1.client).delete({
3142
- security: [{ scheme: 'bearer', type: 'http' }],
3143
- url: '/v1/vpc/{id}',
3144
- ...options
3145
- });
3146
- exports.deleteVpc = deleteVpc;
3147
- /**
3148
- * Get a VPC.
3149
- *
3150
- * Returns a single VPC by id.
3151
- */
3152
- const getVpc = (options) => (options.client ?? client_gen_js_1.client).get({
3153
- security: [{ scheme: 'bearer', type: 'http' }],
3154
- url: '/v1/vpc/{id}',
3155
- ...options
3156
- });
3157
- exports.getVpc = getVpc;
3158
- /**
3159
- * Get a VPC's config.
3160
- *
3161
- * Returns the rendered VPN client configuration file for the VPC.
3162
- */
3163
- const getVpcConfig = (options) => (options.client ?? client_gen_js_1.client).get({
3164
- security: [{ scheme: 'bearer', type: 'http' }],
3165
- url: '/v1/vpc/{id}/config',
3166
- ...options
3167
- });
3168
- exports.getVpcConfig = getVpcConfig;
3169
- /**
3170
- * List a VPC's peers.
3171
- *
3172
- * Returns all peers registered in the VPC.
3173
- */
3174
- const listVpcPeers = (options) => (options.client ?? client_gen_js_1.client).get({
3175
- security: [{ scheme: 'bearer', type: 'http' }],
3176
- url: '/v1/vpc/{id}/peers',
3177
- ...options
3178
- });
3179
- exports.listVpcPeers = listVpcPeers;
3180
- /**
3181
- * Add a peer to a VPC.
3182
- *
3183
- * Registers a peer in the VPC. Currently returns 501 — peer
3184
- * enforcement and durable storage are a planned capability.
3185
- */
3186
- const addVpcPeer = (options) => (options.client ?? client_gen_js_1.client).post({
3187
- security: [{ scheme: 'bearer', type: 'http' }],
3188
- url: '/v1/vpc/{id}/peers',
3189
- ...options,
3190
- headers: {
3191
- 'Content-Type': 'application/json',
3192
- ...options.headers
3193
- }
3194
- });
3195
- exports.addVpcPeer = addVpcPeer;
3196
- /**
3197
- * Remove a peer from a VPC.
3198
- *
3199
- * Deletes a peer from the VPC by id.
3200
- */
3201
- const removeVpcPeer = (options) => (options.client ?? client_gen_js_1.client).delete({
3202
- security: [{ scheme: 'bearer', type: 'http' }],
3203
- url: '/v1/vpc/{id}/peers/{peer_id}',
3204
- ...options
3205
- });
3206
- exports.removeVpcPeer = removeVpcPeer;
3207
- /**
3208
- * List recent WAF events.
3209
- *
3210
- * Returns the most recent web application firewall events (up to 100).
3211
- */
3212
- const listWafEvents = (options) => (options?.client ?? client_gen_js_1.client).get({
3213
- security: [{ scheme: 'bearer', type: 'http' }],
3214
- url: '/v1/waf/events',
3215
- ...options
3216
- });
3217
- exports.listWafEvents = listWafEvents;
3218
- /**
3219
- * List WAF rules.
3220
- *
3221
- * Returns all configured web application firewall rules.
3222
- */
3223
- const listWafRules = (options) => (options?.client ?? client_gen_js_1.client).get({
3224
- security: [{ scheme: 'bearer', type: 'http' }],
3225
- url: '/v1/waf/rules',
3226
- ...options
3227
- });
3228
- exports.listWafRules = listWafRules;
3229
- /**
3230
- * Create a WAF rule.
3231
- *
3232
- * Adds a new web application firewall rule and returns the created rule.
3233
- */
3234
- const createWafRule = (options) => (options.client ?? client_gen_js_1.client).post({
3235
- security: [{ scheme: 'bearer', type: 'http' }],
3236
- url: '/v1/waf/rules',
3237
- ...options,
3238
- headers: {
3239
- 'Content-Type': 'application/json',
3240
- ...options.headers
3241
- }
3242
- });
3243
- exports.createWafRule = createWafRule;
3244
- /**
3245
- * Delete a WAF rule.
3246
- *
3247
- * Removes a web application firewall rule by id.
3248
- */
3249
- const deleteWafRule = (options) => (options.client ?? client_gen_js_1.client).delete({
3250
- security: [{ scheme: 'bearer', type: 'http' }],
3251
- url: '/v1/waf/rules/{id}',
3252
- ...options
3253
- });
3254
- exports.deleteWafRule = deleteWafRule;
3255
- /**
3256
- * Update a WAF rule.
3257
- *
3258
- * Replaces the configuration of an existing web application firewall rule.
3259
- */
3260
- const updateWafRule = (options) => (options.client ?? client_gen_js_1.client).put({
3261
- security: [{ scheme: 'bearer', type: 'http' }],
3262
- url: '/v1/waf/rules/{id}',
3263
- ...options,
3264
- headers: {
3265
- 'Content-Type': 'application/json',
3266
- ...options.headers
3267
- }
3268
- });
3269
- exports.updateWafRule = updateWafRule;
3270
- /**
3271
- * Get WAF statistics.
3272
- *
3273
- * Returns combined web application firewall and DDoS-detector counters.
3274
- */
3275
- const getWafStats = (options) => (options?.client ?? client_gen_js_1.client).get({
3276
- security: [{ scheme: 'bearer', type: 'http' }],
3277
- url: '/v1/waf/stats',
3278
- ...options
3279
- });
3280
- exports.getWafStats = getWafStats;
3281
1472
  //# sourceMappingURL=sdk.gen.js.map