@scalix-world/sdk 1.4.1 → 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.getBuild = exports.uploadBuild = 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.getEmailCampaignAnalytics = 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 = exports.cancelBuild = void 0;
7
- 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 = exports.setEnvVar = exports.listEnvVars = exports.updateEmailTemplate = exports.deleteEmailTemplate = exports.createEmailTemplate = exports.listEmailTemplates = exports.listEmailSuppression = exports.getEmailStats = exports.updateEmailSettings = exports.getEmailSettings = exports.sendTransactionalEmail = exports.sendRawEmail = exports.listEmailEvents = exports.verifyEmailDomain = exports.deleteEmailDomain = exports.addEmailDomain = exports.listEmailDomains = exports.getEmailAnalyticsSummary = void 0;
8
- 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 = 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 = 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 = 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 = 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,2345 +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.
1197
- *
1198
- * Starts a container image build and returns the build record.
806
+ * Create a database.
1199
807
  *
1200
- * For a private repository, either install the Scalix GitHub App for the
1201
- * project (builds then authenticate themselves) or pass `auth_token`.
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.
1202
811
  */
1203
- const createBuild = (options) => (options.client ?? client_gen_js_1.client).post({
812
+ const createDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1204
813
  security: [{ scheme: 'bearer', type: 'http' }],
1205
- url: '/v1/build',
814
+ url: '/v1/databases',
1206
815
  ...options,
1207
816
  headers: {
1208
817
  'Content-Type': 'application/json',
1209
818
  ...options.headers
1210
819
  }
1211
820
  });
1212
- exports.createBuild = createBuild;
1213
- /**
1214
- * Upload source and build.
1215
- *
1216
- * Builds from an uploaded source tree instead of a URL, so the source never
1217
- * has to be reachable from the internet. The request body IS the gzipped
1218
- * tarball (`Content-Type: application/gzip`); metadata goes in the query
1219
- * string. Multipart is not accepted.
1220
- */
1221
- const uploadBuild = (options) => (options.client ?? client_gen_js_1.client).post({
1222
- security: [{ scheme: 'bearer', type: 'http' }],
1223
- url: '/v1/build/upload',
1224
- ...options,
1225
- headers: {
1226
- 'Content-Type': 'application/gzip',
1227
- ...options.headers
1228
- }
1229
- });
1230
- exports.uploadBuild = uploadBuild;
1231
- /**
1232
- * Get a build.
1233
- *
1234
- * Returns a single build by id.
1235
- */
1236
- const getBuild = (options) => (options.client ?? client_gen_js_1.client).get({
1237
- security: [{ scheme: 'bearer', type: 'http' }],
1238
- url: '/v1/build/{id}',
1239
- ...options
1240
- });
1241
- exports.getBuild = getBuild;
821
+ exports.createDatabase = createDatabase;
1242
822
  /**
1243
- * Cancel a build.
823
+ * Get or create the project's default database.
1244
824
  *
1245
- * 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.
1246
827
  */
1247
- const cancelBuild = (options) => (options.client ?? client_gen_js_1.client).post({
828
+ const provisionDatabase = (options) => (options?.client ?? client_gen_js_1.client).post({
1248
829
  security: [{ scheme: 'bearer', type: 'http' }],
1249
- url: '/v1/build/{id}/cancel',
830
+ url: '/v1/databases/provision',
1250
831
  ...options
1251
832
  });
1252
- exports.cancelBuild = cancelBuild;
833
+ exports.provisionDatabase = provisionDatabase;
1253
834
  /**
1254
- * Get build logs.
835
+ * Delete a database.
1255
836
  *
1256
- * 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.
1257
840
  */
1258
- const getBuildLogs = (options) => (options.client ?? client_gen_js_1.client).get({
841
+ const deleteDatabase = (options) => (options.client ?? client_gen_js_1.client).delete({
1259
842
  security: [{ scheme: 'bearer', type: 'http' }],
1260
- url: '/v1/build/{id}/logs',
843
+ url: '/v1/databases/{id}',
1261
844
  ...options
1262
845
  });
1263
- exports.getBuildLogs = getBuildLogs;
846
+ exports.deleteDatabase = deleteDatabase;
1264
847
  /**
1265
- * Query the audit log.
848
+ * Get a database.
1266
849
  *
1267
- * Returns audit events for the caller's tenant, filterable by action and time
1268
- * 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.
1269
851
  */
1270
- const queryAuditLog = (options) => (options?.client ?? client_gen_js_1.client).get({
852
+ const getDatabase = (options) => (options.client ?? client_gen_js_1.client).get({
1271
853
  security: [{ scheme: 'bearer', type: 'http' }],
1272
- url: '/v1/compliance/audit',
854
+ url: '/v1/databases/{id}',
1273
855
  ...options
1274
856
  });
1275
- exports.queryAuditLog = queryAuditLog;
857
+ exports.getDatabase = getDatabase;
1276
858
  /**
1277
- * Export the audit log.
859
+ * Restore a soft-deleted database.
1278
860
  *
1279
- * Returns the full audit trail for the caller's tenant for compliance export
1280
- * (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.
1281
863
  */
1282
- const exportAuditLog = (options) => (options?.client ?? client_gen_js_1.client).get({
864
+ const restoreDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1283
865
  security: [{ scheme: 'bearer', type: 'http' }],
1284
- url: '/v1/compliance/audit/export',
866
+ url: '/v1/databases/{id}/restore',
1285
867
  ...options
1286
868
  });
1287
- exports.exportAuditLog = exportAuditLog;
869
+ exports.restoreDatabase = restoreDatabase;
1288
870
  /**
1289
- * List GDPR requests.
871
+ * Send a raw email.
1290
872
  *
1291
- * 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.
1292
875
  */
1293
- const listGdprRequests = (options) => (options?.client ?? client_gen_js_1.client).get({
876
+ const sendRawEmail = (options) => (options.client ?? client_gen_js_1.client).post({
1294
877
  security: [{ scheme: 'bearer', type: 'http' }],
1295
- url: '/v1/compliance/gdpr/requests',
1296
- ...options
878
+ url: '/v1/email/send/raw',
879
+ ...options,
880
+ headers: {
881
+ 'Content-Type': 'application/json',
882
+ ...options.headers
883
+ }
1297
884
  });
1298
- exports.listGdprRequests = listGdprRequests;
885
+ exports.sendRawEmail = sendRawEmail;
1299
886
  /**
1300
- * Create a GDPR request.
887
+ * Send a templated email.
1301
888
  *
1302
- * Files a GDPR data-subject request (access / erasure / rectification). This is
1303
- * intake only: the request is persisted with status `pending`; export and
1304
- * erasure are fulfilled out of band.
889
+ * Renders `template` with `data` and sends it to `to`. Requires the
890
+ * `email:send` scope.
1305
891
  */
1306
- const createGdprRequest = (options) => (options.client ?? client_gen_js_1.client).post({
892
+ const sendTransactionalEmail = (options) => (options.client ?? client_gen_js_1.client).post({
1307
893
  security: [{ scheme: 'bearer', type: 'http' }],
1308
- url: '/v1/compliance/gdpr/requests',
894
+ url: '/v1/email/send/tx',
1309
895
  ...options,
1310
896
  headers: {
1311
897
  'Content-Type': 'application/json',
1312
898
  ...options.headers
1313
899
  }
1314
900
  });
1315
- exports.createGdprRequest = createGdprRequest;
901
+ exports.sendTransactionalEmail = sendTransactionalEmail;
1316
902
  /**
1317
- * Get a GDPR request.
903
+ * List email templates.
1318
904
  *
1319
- * Returns a single GDPR data-subject request by id.
905
+ * Returns the org's stored templates. Requires the `email:read` scope.
1320
906
  */
1321
- const getGdprRequest = (options) => (options.client ?? client_gen_js_1.client).get({
907
+ const listEmailTemplates = (options) => (options?.client ?? client_gen_js_1.client).get({
1322
908
  security: [{ scheme: 'bearer', type: 'http' }],
1323
- url: '/v1/compliance/gdpr/requests/{id}',
909
+ url: '/v1/email/templates',
1324
910
  ...options
1325
911
  });
1326
- exports.getGdprRequest = getGdprRequest;
1327
- /**
1328
- * Advance a GDPR data-subject request through its lifecycle.
1329
- *
1330
- * SEC-1: the DSR flow was intake-only — requests sat `pending` forever with no
1331
- * way to fulfill them, while the compliance status implied a working workflow.
1332
- * A data-protection officer (compliance:write) now moves each request through
1333
- * pending → in_progress → completed/rejected; terminal states stamp
1334
- * `completed_at`, giving an auditable fulfillment record within the GDPR Art.
1335
- * 12(3) one-month window. Tenant-scoped.
1336
- */
1337
- const updateGdprRequestStatus = (options) => (options.client ?? client_gen_js_1.client).post({
1338
- security: [{ scheme: 'bearer', type: 'http' }],
1339
- url: '/v1/compliance/gdpr/requests/{id}/status',
1340
- ...options,
1341
- headers: {
1342
- 'Content-Type': 'application/json',
1343
- ...options.headers
1344
- }
1345
- });
1346
- exports.updateGdprRequestStatus = updateGdprRequestStatus;
1347
- /**
1348
- * Get compliance status.
1349
- *
1350
- * Runs the compliance checks (encryption, audit, access controls) and returns
1351
- * each check's result plus an overall score.
1352
- */
1353
- const getComplianceStatus = (options) => (options?.client ?? client_gen_js_1.client).get({
1354
- security: [{ scheme: 'bearer', type: 'http' }],
1355
- url: '/v1/compliance/status',
1356
- ...options
1357
- });
1358
- exports.getComplianceStatus = getComplianceStatus;
1359
- /**
1360
- * List deployments.
1361
- *
1362
- * Returns all compute deployments for the caller's project.
1363
- */
1364
- const listDeployments = (options) => (options?.client ?? client_gen_js_1.client).get({
1365
- security: [{ scheme: 'bearer', type: 'http' }],
1366
- url: '/v1/compute/deployments',
1367
- ...options
1368
- });
1369
- exports.listDeployments = listDeployments;
1370
- /**
1371
- * Create a deployment.
1372
- *
1373
- * Deploys a container/VM compute workload and returns the created deployment.
1374
- */
1375
- const createDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1376
- security: [{ scheme: 'bearer', type: 'http' }],
1377
- url: '/v1/compute/deployments',
1378
- ...options,
1379
- headers: {
1380
- 'Content-Type': 'application/json',
1381
- ...options.headers
1382
- }
1383
- });
1384
- exports.createDeployment = createDeployment;
1385
- /**
1386
- * Delete a deployment.
1387
- *
1388
- * Removes a compute deployment by id.
1389
- */
1390
- const deleteDeployment = (options) => (options.client ?? client_gen_js_1.client).delete({
1391
- security: [{ scheme: 'bearer', type: 'http' }],
1392
- url: '/v1/compute/deployments/{id}',
1393
- ...options
1394
- });
1395
- exports.deleteDeployment = deleteDeployment;
1396
- /**
1397
- * Get a deployment.
1398
- *
1399
- * Returns a single compute deployment by id.
1400
- */
1401
- const getDeployment = (options) => (options.client ?? client_gen_js_1.client).get({
1402
- security: [{ scheme: 'bearer', type: 'http' }],
1403
- url: '/v1/compute/deployments/{id}',
1404
- ...options
1405
- });
1406
- exports.getDeployment = getDeployment;
1407
- /**
1408
- * List deployment instances.
1409
- *
1410
- * Returns the running instances of a compute deployment.
1411
- */
1412
- const listDeploymentInstances = (options) => (options.client ?? client_gen_js_1.client).get({
1413
- security: [{ scheme: 'bearer', type: 'http' }],
1414
- url: '/v1/compute/deployments/{id}/instances',
1415
- ...options
1416
- });
1417
- exports.listDeploymentInstances = listDeploymentInstances;
1418
- /**
1419
- * Get deployment logs.
1420
- *
1421
- * Returns log output for a compute deployment.
1422
- */
1423
- const getDeploymentLogs = (options) => (options.client ?? client_gen_js_1.client).get({
1424
- security: [{ scheme: 'bearer', type: 'http' }],
1425
- url: '/v1/compute/deployments/{id}/logs',
1426
- ...options
1427
- });
1428
- exports.getDeploymentLogs = getDeploymentLogs;
1429
- /**
1430
- * Restart a deployment.
1431
- *
1432
- * Restarts all instances of a compute deployment.
1433
- */
1434
- const restartDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1435
- security: [{ scheme: 'bearer', type: 'http' }],
1436
- url: '/v1/compute/deployments/{id}/restart',
1437
- ...options
1438
- });
1439
- exports.restartDeployment = restartDeployment;
1440
- /**
1441
- * Roll back a deployment.
1442
- *
1443
- * Rolls a compute deployment back to a previous version.
1444
- */
1445
- const rollbackDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1446
- security: [{ scheme: 'bearer', type: 'http' }],
1447
- url: '/v1/compute/deployments/{id}/rollback',
1448
- ...options,
1449
- headers: {
1450
- 'Content-Type': 'application/json',
1451
- ...options.headers
1452
- }
1453
- });
1454
- exports.rollbackDeployment = rollbackDeployment;
1455
- /**
1456
- * Scale a deployment.
1457
- *
1458
- * Adjusts the instance count (min/max) for a compute deployment.
1459
- */
1460
- const scaleDeployment = (options) => (options.client ?? client_gen_js_1.client).post({
1461
- security: [{ scheme: 'bearer', type: 'http' }],
1462
- url: '/v1/compute/deployments/{id}/scale',
1463
- ...options,
1464
- headers: {
1465
- 'Content-Type': 'application/json',
1466
- ...options.headers
1467
- }
1468
- });
1469
- exports.scaleDeployment = scaleDeployment;
1470
- /**
1471
- * List deployment versions.
1472
- *
1473
- * Returns the version history of a compute deployment.
1474
- */
1475
- const listDeploymentVersions = (options) => (options.client ?? client_gen_js_1.client).get({
1476
- security: [{ scheme: 'bearer', type: 'http' }],
1477
- url: '/v1/compute/deployments/{id}/versions',
1478
- ...options
1479
- });
1480
- exports.listDeploymentVersions = listDeploymentVersions;
1481
- /**
1482
- * List your Computers.
1483
- */
1484
- const computerList = (options) => (options?.client ?? client_gen_js_1.client).get({
1485
- security: [{ scheme: 'bearer', type: 'http' }],
1486
- url: '/v1/computers',
1487
- ...options
1488
- });
1489
- exports.computerList = computerList;
1490
- /**
1491
- * Create a Computer.
1492
- *
1493
- * Boots a persistent Linux machine and returns once it is provisioning. The
1494
- * root disk survives stop/start and is only reclaimed by DELETE. Billed per
1495
- * start, per vCPU-hour and GB-hour while running, and per GB-month of disk
1496
- * for as long as the Computer exists.
1497
- */
1498
- const computerCreate = (options) => (options.client ?? client_gen_js_1.client).post({
1499
- security: [{ scheme: 'bearer', type: 'http' }],
1500
- url: '/v1/computers',
1501
- ...options,
1502
- headers: {
1503
- 'Content-Type': 'application/json',
1504
- ...options.headers
1505
- }
1506
- });
1507
- exports.computerCreate = computerCreate;
1508
- /**
1509
- * Get or create a Computer by name.
1510
- *
1511
- * Idempotent: the first call creates the machine (201), every identical
1512
- * repeat returns the existing one (200). Resource changes on a repeat are
1513
- * ignored — the existing machine wins. Use this instead of create when an
1514
- * agent may retry.
1515
- */
1516
- const computerGetOrCreateByName = (options) => (options.client ?? client_gen_js_1.client).put({
1517
- security: [{ scheme: 'bearer', type: 'http' }],
1518
- url: '/v1/computers/by-name/{name}',
1519
- ...options,
1520
- headers: {
1521
- 'Content-Type': 'application/json',
1522
- ...options.headers
1523
- }
1524
- });
1525
- exports.computerGetOrCreateByName = computerGetOrCreateByName;
1526
- /**
1527
- * Delete a Computer.
1528
- *
1529
- * The only operation that reclaims the root disk. Irreversible — stop the
1530
- * Computer instead if you want the files back later.
1531
- */
1532
- const computerDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
1533
- security: [{ scheme: 'bearer', type: 'http' }],
1534
- url: '/v1/computers/{id}',
1535
- ...options
1536
- });
1537
- exports.computerDelete = computerDelete;
1538
- /**
1539
- * Get one Computer.
1540
- */
1541
- const computerGet = (options) => (options.client ?? client_gen_js_1.client).get({
1542
- security: [{ scheme: 'bearer', type: 'http' }],
1543
- url: '/v1/computers/{id}',
1544
- ...options
1545
- });
1546
- exports.computerGet = computerGet;
1547
- /**
1548
- * Run a command inside a Computer.
1549
- */
1550
- const computerExec = (options) => (options.client ?? client_gen_js_1.client).post({
1551
- security: [{ scheme: 'bearer', type: 'http' }],
1552
- url: '/v1/computers/{id}/exec',
1553
- ...options,
1554
- headers: {
1555
- 'Content-Type': 'application/json',
1556
- ...options.headers
1557
- }
1558
- });
1559
- exports.computerExec = computerExec;
1560
- /**
1561
- * Read one file out of a Computer.
1562
- */
1563
- const computerReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
1564
- security: [{ scheme: 'bearer', type: 'http' }],
1565
- url: '/v1/computers/{id}/files',
1566
- ...options
1567
- });
1568
- exports.computerReadFile = computerReadFile;
1569
- /**
1570
- * Write files into a Computer.
1571
- */
1572
- const computerWriteFiles = (options) => (options.client ?? client_gen_js_1.client).put({
1573
- security: [{ scheme: 'bearer', type: 'http' }],
1574
- url: '/v1/computers/{id}/files',
1575
- ...options,
1576
- headers: {
1577
- 'Content-Type': 'application/json',
1578
- ...options.headers
1579
- }
1580
- });
1581
- exports.computerWriteFiles = computerWriteFiles;
1582
- /**
1583
- * Replace a Computer's authorised ssh keys.
1584
- *
1585
- * Sends the whole list every time, so removing a key is the same operation as
1586
- * adding one. On a RUNNING machine the change applies immediately — a
1587
- * revoked key stops working now, not at the next restart. On a stopped
1588
- * machine it is stored and delivered when it next boots.
1589
- */
1590
- const computerSetSshKeys = (options) => (options.client ?? client_gen_js_1.client).put({
1591
- security: [{ scheme: 'bearer', type: 'http' }],
1592
- url: '/v1/computers/{id}/ssh-keys',
1593
- ...options,
1594
- headers: {
1595
- 'Content-Type': 'application/json',
1596
- ...options.headers
1597
- }
1598
- });
1599
- exports.computerSetSshKeys = computerSetSshKeys;
1600
- /**
1601
- * Start a stopped Computer.
1602
- *
1603
- * Boots the same disk on the same host and reclaims the same address.
1604
- */
1605
- const computerStart = (options) => (options.client ?? client_gen_js_1.client).post({
1606
- security: [{ scheme: 'bearer', type: 'http' }],
1607
- url: '/v1/computers/{id}/start',
1608
- ...options
1609
- });
1610
- exports.computerStart = computerStart;
1611
- /**
1612
- * Stop a Computer.
1613
- *
1614
- * Halts the machine. The root disk and the network address are kept, so a
1615
- * later start comes back to the same files at the same address. Runtime
1616
- * billing stops; disk billing continues at the parked rate.
1617
- */
1618
- const computerStop = (options) => (options.client ?? client_gen_js_1.client).post({
1619
- security: [{ scheme: 'bearer', type: 'http' }],
1620
- url: '/v1/computers/{id}/stop',
1621
- ...options
1622
- });
1623
- exports.computerStop = computerStop;
1624
- /**
1625
- * List cron schedules.
1626
- *
1627
- * Returns all scheduled jobs for the caller's project.
1628
- */
1629
- const listCronSchedules = (options) => (options?.client ?? client_gen_js_1.client).get({
1630
- security: [{ scheme: 'bearer', type: 'http' }],
1631
- url: '/v1/cron/schedules',
1632
- ...options
1633
- });
1634
- exports.listCronSchedules = listCronSchedules;
1635
- /**
1636
- * Create a cron schedule.
1637
- *
1638
- * Creates a new scheduled job.
1639
- */
1640
- const createCronSchedule = (options) => (options.client ?? client_gen_js_1.client).post({
1641
- security: [{ scheme: 'bearer', type: 'http' }],
1642
- url: '/v1/cron/schedules',
1643
- ...options,
1644
- headers: {
1645
- 'Content-Type': 'application/json',
1646
- ...options.headers
1647
- }
1648
- });
1649
- exports.createCronSchedule = createCronSchedule;
1650
- /**
1651
- * Delete a cron schedule.
1652
- *
1653
- * Removes a scheduled job by id.
1654
- */
1655
- const deleteCronSchedule = (options) => (options.client ?? client_gen_js_1.client).delete({
1656
- security: [{ scheme: 'bearer', type: 'http' }],
1657
- url: '/v1/cron/schedules/{id}',
1658
- ...options
1659
- });
1660
- exports.deleteCronSchedule = deleteCronSchedule;
1661
- /**
1662
- * Get a cron schedule.
1663
- *
1664
- * Returns a single scheduled job by id.
1665
- */
1666
- const getCronSchedule = (options) => (options.client ?? client_gen_js_1.client).get({
1667
- security: [{ scheme: 'bearer', type: 'http' }],
1668
- url: '/v1/cron/schedules/{id}',
1669
- ...options
1670
- });
1671
- exports.getCronSchedule = getCronSchedule;
1672
- /**
1673
- * Update a cron schedule.
1674
- *
1675
- * Updates an existing scheduled job.
1676
- */
1677
- const updateCronSchedule = (options) => (options.client ?? client_gen_js_1.client).put({
1678
- security: [{ scheme: 'bearer', type: 'http' }],
1679
- url: '/v1/cron/schedules/{id}',
1680
- ...options,
1681
- headers: {
1682
- 'Content-Type': 'application/json',
1683
- ...options.headers
1684
- }
1685
- });
1686
- exports.updateCronSchedule = updateCronSchedule;
1687
- /**
1688
- * List schedule executions.
1689
- *
1690
- * Returns the execution history of a scheduled job.
1691
- */
1692
- const listCronExecutions = (options) => (options.client ?? client_gen_js_1.client).get({
1693
- security: [{ scheme: 'bearer', type: 'http' }],
1694
- url: '/v1/cron/schedules/{id}/executions',
1695
- ...options
1696
- });
1697
- exports.listCronExecutions = listCronExecutions;
1698
- /**
1699
- * Trigger a cron schedule.
1700
- *
1701
- * Runs a scheduled job immediately, outside its normal schedule.
1702
- */
1703
- const triggerCronSchedule = (options) => (options.client ?? client_gen_js_1.client).post({
1704
- security: [{ scheme: 'bearer', type: 'http' }],
1705
- url: '/v1/cron/schedules/{id}/trigger',
1706
- ...options
1707
- });
1708
- exports.triggerCronSchedule = triggerCronSchedule;
1709
- /**
1710
- * List databases.
1711
- *
1712
- * Lists the project's databases. `include_deleted=true` also returns
1713
- * soft-deleted databases still inside the recovery grace window.
1714
- */
1715
- const listDatabases = (options) => (options?.client ?? client_gen_js_1.client).get({
1716
- security: [{ scheme: 'bearer', type: 'http' }],
1717
- url: '/v1/databases',
1718
- ...options
1719
- });
1720
- exports.listDatabases = listDatabases;
1721
- /**
1722
- * Create a database.
1723
- *
1724
- * Creates a ScalixNova database in the project on the requested PostgreSQL
1725
- * major version (16 default, 17, or 18). The version is fixed at creation;
1726
- * branches and point-in-time restores keep it.
1727
- */
1728
- const createDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1729
- security: [{ scheme: 'bearer', type: 'http' }],
1730
- url: '/v1/databases',
1731
- ...options,
1732
- headers: {
1733
- 'Content-Type': 'application/json',
1734
- ...options.headers
1735
- }
1736
- });
1737
- exports.createDatabase = createDatabase;
1738
- /**
1739
- * Get or create the project's default database.
1740
- *
1741
- * Idempotent: returns the project's default database connection info,
1742
- * creating the database (on the default PostgreSQL version) if none exists.
1743
- */
1744
- const provisionDatabase = (options) => (options?.client ?? client_gen_js_1.client).post({
1745
- security: [{ scheme: 'bearer', type: 'http' }],
1746
- url: '/v1/databases/provision',
1747
- ...options
1748
- });
1749
- exports.provisionDatabase = provisionDatabase;
1750
- /**
1751
- * Delete a database.
1752
- *
1753
- * Soft-deletes the database: it is hidden from listings and restorable via
1754
- * `POST /v1/databases/{id}/restore` until the grace window ends, after which
1755
- * it is purged permanently.
1756
- */
1757
- const deleteDatabase = (options) => (options.client ?? client_gen_js_1.client).delete({
1758
- security: [{ scheme: 'bearer', type: 'http' }],
1759
- url: '/v1/databases/{id}',
1760
- ...options
1761
- });
1762
- exports.deleteDatabase = deleteDatabase;
1763
- /**
1764
- * Get a database.
1765
- *
1766
- * Fetches one database by id, including its PostgreSQL version and isolation tier.
1767
- */
1768
- const getDatabase = (options) => (options.client ?? client_gen_js_1.client).get({
1769
- security: [{ scheme: 'bearer', type: 'http' }],
1770
- url: '/v1/databases/{id}',
1771
- ...options
1772
- });
1773
- exports.getDatabase = getDatabase;
1774
- /**
1775
- * Restore a soft-deleted database.
1776
- *
1777
- * Undoes a delete within the recovery grace window; the database returns to
1778
- * `active` with its data, version, and tier intact.
1779
- */
1780
- const restoreDatabase = (options) => (options.client ?? client_gen_js_1.client).post({
1781
- security: [{ scheme: 'bearer', type: 'http' }],
1782
- url: '/v1/databases/{id}/restore',
1783
- ...options
1784
- });
1785
- exports.restoreDatabase = restoreDatabase;
1786
- /**
1787
- * List custom domains.
1788
- *
1789
- * Returns all custom domains attached to the caller's project, with their
1790
- * verification and SSL status.
1791
- */
1792
- const listDomains = (options) => (options?.client ?? client_gen_js_1.client).get({
1793
- security: [{ scheme: 'bearer', type: 'http' }],
1794
- url: '/v1/domains',
1795
- ...options
1796
- });
1797
- exports.listDomains = listDomains;
1798
- /**
1799
- * Add a custom domain.
1800
- *
1801
- * Registers a custom domain for the caller's project and returns the created
1802
- * record plus the DNS records (CNAME + TXT) needed to verify and serve it.
1803
- */
1804
- const addDomain = (options) => (options.client ?? client_gen_js_1.client).post({
1805
- security: [{ scheme: 'bearer', type: 'http' }],
1806
- url: '/v1/domains',
1807
- ...options,
1808
- headers: {
1809
- 'Content-Type': 'application/json',
1810
- ...options.headers
1811
- }
1812
- });
1813
- exports.addDomain = addDomain;
1814
- /**
1815
- * Remove a custom domain.
1816
- *
1817
- * Detaches a custom domain from the caller's project and deletes its record.
1818
- */
1819
- const deleteDomain = (options) => (options.client ?? client_gen_js_1.client).delete({
1820
- security: [{ scheme: 'bearer', type: 'http' }],
1821
- url: '/v1/domains/{id}',
1822
- ...options
1823
- });
1824
- exports.deleteDomain = deleteDomain;
1825
- /**
1826
- * Get a custom domain.
1827
- *
1828
- * Returns a single custom domain by id, scoped to the caller's project.
1829
- */
1830
- const getDomain = (options) => (options.client ?? client_gen_js_1.client).get({
1831
- security: [{ scheme: 'bearer', type: 'http' }],
1832
- url: '/v1/domains/{id}',
1833
- ...options
1834
- });
1835
- exports.getDomain = getDomain;
1836
- /**
1837
- * Provision SSL for a domain.
1838
- *
1839
- * Starts background Let's Encrypt certificate issuance for a verified domain.
1840
- * The domain must be active; automatic SSL must be configured on the deployment.
1841
- */
1842
- const provisionDomainSsl = (options) => (options.client ?? client_gen_js_1.client).post({
1843
- security: [{ scheme: 'bearer', type: 'http' }],
1844
- url: '/v1/domains/{id}/ssl',
1845
- ...options
1846
- });
1847
- exports.provisionDomainSsl = provisionDomainSsl;
1848
- /**
1849
- * Verify a custom domain.
1850
- *
1851
- * Confirms — via a standard public DNS lookup, no provider credentials — that the
1852
- * customer's domain points at our edge (its A records match `cname.<platform>`,
1853
- * or a configured `SCALIX_EDGE_IP`). On success, marks the domain active. This is
1854
- * the industry-standard "does it point at us" check (Vercel/Netlify/Render).
1855
- */
1856
- const verifyDomain = (options) => (options.client ?? client_gen_js_1.client).post({
1857
- security: [{ scheme: 'bearer', type: 'http' }],
1858
- url: '/v1/domains/{id}/verify',
1859
- ...options
1860
- });
1861
- exports.verifyDomain = verifyDomain;
1862
- /**
1863
- * Get campaign analytics.
1864
- *
1865
- * Returns engagement metrics for a single template. Requires the `email:read`
1866
- * scope.
1867
- */
1868
- const getEmailCampaignAnalytics = (options) => (options.client ?? client_gen_js_1.client).get({
1869
- security: [{ scheme: 'bearer', type: 'http' }],
1870
- url: '/v1/email/analytics/campaign/{template_name}',
1871
- ...options
1872
- });
1873
- exports.getEmailCampaignAnalytics = getEmailCampaignAnalytics;
1874
- /**
1875
- * Get analytics summary.
1876
- *
1877
- * Returns aggregate open, click, bounce, and complaint rates for the org.
1878
- * Requires the `email:read` scope.
1879
- */
1880
- const getEmailAnalyticsSummary = (options) => (options?.client ?? client_gen_js_1.client).get({
1881
- security: [{ scheme: 'bearer', type: 'http' }],
1882
- url: '/v1/email/analytics/summary',
1883
- ...options
1884
- });
1885
- exports.getEmailAnalyticsSummary = getEmailAnalyticsSummary;
1886
- /**
1887
- * List sending domains.
1888
- *
1889
- * Returns the org's bring-your-own sending domains and their verification
1890
- * state. Requires the `email:read` scope.
1891
- */
1892
- const listEmailDomains = (options) => (options?.client ?? client_gen_js_1.client).get({
1893
- security: [{ scheme: 'bearer', type: 'http' }],
1894
- url: '/v1/email/domains',
1895
- ...options
1896
- });
1897
- exports.listEmailDomains = listEmailDomains;
1898
- /**
1899
- * Add a sending domain.
1900
- *
1901
- * Registers a domain and returns the DNS records required to verify it.
1902
- * Requires the `email:send` scope.
1903
- */
1904
- const addEmailDomain = (options) => (options.client ?? client_gen_js_1.client).post({
1905
- security: [{ scheme: 'bearer', type: 'http' }],
1906
- url: '/v1/email/domains',
1907
- ...options,
1908
- headers: {
1909
- 'Content-Type': 'application/json',
1910
- ...options.headers
1911
- }
1912
- });
1913
- exports.addEmailDomain = addEmailDomain;
1914
- /**
1915
- * Delete a sending domain.
1916
- *
1917
- * Removes a sending domain from the org. Requires the `email:send` scope.
1918
- */
1919
- const deleteEmailDomain = (options) => (options.client ?? client_gen_js_1.client).delete({
1920
- security: [{ scheme: 'bearer', type: 'http' }],
1921
- url: '/v1/email/domains/{id}',
1922
- ...options
1923
- });
1924
- exports.deleteEmailDomain = deleteEmailDomain;
1925
- /**
1926
- * Verify a sending domain.
1927
- *
1928
- * Re-checks the domain's DNS records and updates its verification state.
1929
- * Verifying a domain proves ownership; it does not by itself enable delivery.
1930
- * Requires the `email:send` scope.
1931
- */
1932
- const verifyEmailDomain = (options) => (options.client ?? client_gen_js_1.client).post({
1933
- security: [{ scheme: 'bearer', type: 'http' }],
1934
- url: '/v1/email/domains/{id}/verify',
1935
- ...options
1936
- });
1937
- exports.verifyEmailDomain = verifyEmailDomain;
1938
- /**
1939
- * List delivery events.
1940
- *
1941
- * Returns recent per-message delivery events (delivered, bounced, opened,
1942
- * clicked). Requires the `email:read` scope.
1943
- */
1944
- const listEmailEvents = (options) => (options?.client ?? client_gen_js_1.client).get({
1945
- security: [{ scheme: 'bearer', type: 'http' }],
1946
- url: '/v1/email/events',
1947
- ...options
1948
- });
1949
- exports.listEmailEvents = listEmailEvents;
1950
- /**
1951
- * Send a raw email.
1952
- *
1953
- * Sends an HTML email without a stored template. Requires the `email:send`
1954
- * scope.
1955
- */
1956
- const sendRawEmail = (options) => (options.client ?? client_gen_js_1.client).post({
1957
- security: [{ scheme: 'bearer', type: 'http' }],
1958
- url: '/v1/email/send/raw',
1959
- ...options,
1960
- headers: {
1961
- 'Content-Type': 'application/json',
1962
- ...options.headers
1963
- }
1964
- });
1965
- exports.sendRawEmail = sendRawEmail;
1966
- /**
1967
- * Send a templated email.
1968
- *
1969
- * Renders `template` with `data` and sends it to `to`. Requires the
1970
- * `email:send` scope.
1971
- */
1972
- const sendTransactionalEmail = (options) => (options.client ?? client_gen_js_1.client).post({
1973
- security: [{ scheme: 'bearer', type: 'http' }],
1974
- url: '/v1/email/send/tx',
1975
- ...options,
1976
- headers: {
1977
- 'Content-Type': 'application/json',
1978
- ...options.headers
1979
- }
1980
- });
1981
- exports.sendTransactionalEmail = sendTransactionalEmail;
1982
- /**
1983
- * Get email settings.
1984
- *
1985
- * Returns the org's sender identity and delivery configuration, including
1986
- * whether bring-your-own delivery is enabled. Requires the `email:read` scope.
1987
- */
1988
- const getEmailSettings = (options) => (options?.client ?? client_gen_js_1.client).get({
1989
- security: [{ scheme: 'bearer', type: 'http' }],
1990
- url: '/v1/email/settings',
1991
- ...options
1992
- });
1993
- exports.getEmailSettings = getEmailSettings;
1994
- /**
1995
- * Update email settings.
1996
- *
1997
- * Updates the org's sender identity and delivery configuration. Requires the
1998
- * `email:send` scope.
1999
- */
2000
- const updateEmailSettings = (options) => (options.client ?? client_gen_js_1.client).put({
2001
- security: [{ scheme: 'bearer', type: 'http' }],
2002
- url: '/v1/email/settings',
2003
- ...options,
2004
- headers: {
2005
- 'Content-Type': 'application/json',
2006
- ...options.headers
2007
- }
2008
- });
2009
- exports.updateEmailSettings = updateEmailSettings;
2010
- /**
2011
- * Get email stats.
2012
- *
2013
- * Returns send counts and delivery health for the org. Requires the
2014
- * `email:read` scope.
2015
- */
2016
- const getEmailStats = (options) => (options?.client ?? client_gen_js_1.client).get({
2017
- security: [{ scheme: 'bearer', type: 'http' }],
2018
- url: '/v1/email/stats',
2019
- ...options
2020
- });
2021
- exports.getEmailStats = getEmailStats;
2022
- /**
2023
- * List suppressed addresses.
2024
- *
2025
- * Returns addresses excluded from sending after a hard bounce or complaint.
2026
- * Requires the `email:read` scope.
2027
- */
2028
- const listEmailSuppression = (options) => (options?.client ?? client_gen_js_1.client).get({
2029
- security: [{ scheme: 'bearer', type: 'http' }],
2030
- url: '/v1/email/suppression',
2031
- ...options
2032
- });
2033
- exports.listEmailSuppression = listEmailSuppression;
2034
- /**
2035
- * List email templates.
2036
- *
2037
- * Returns the org's stored templates. Requires the `email:read` scope.
2038
- */
2039
- const listEmailTemplates = (options) => (options?.client ?? client_gen_js_1.client).get({
2040
- security: [{ scheme: 'bearer', type: 'http' }],
2041
- url: '/v1/email/templates',
2042
- ...options
2043
- });
2044
- exports.listEmailTemplates = listEmailTemplates;
2045
- /**
2046
- * Create an email template.
2047
- *
2048
- * Stores a new template for the org. Requires the `email:write` scope.
2049
- */
2050
- const createEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).post({
2051
- security: [{ scheme: 'bearer', type: 'http' }],
2052
- url: '/v1/email/templates',
2053
- ...options,
2054
- headers: {
2055
- 'Content-Type': 'application/json',
2056
- ...options.headers
2057
- }
2058
- });
2059
- exports.createEmailTemplate = createEmailTemplate;
2060
- /**
2061
- * Delete an email template.
2062
- *
2063
- * Removes a stored template. Requires the `email:write` scope.
2064
- */
2065
- const deleteEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).delete({
2066
- security: [{ scheme: 'bearer', type: 'http' }],
2067
- url: '/v1/email/templates/{id}',
2068
- ...options
2069
- });
2070
- exports.deleteEmailTemplate = deleteEmailTemplate;
2071
- /**
2072
- * Update an email template.
2073
- *
2074
- * Replaces a stored template. Requires the `email:write` scope.
2075
- */
2076
- const updateEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).put({
2077
- security: [{ scheme: 'bearer', type: 'http' }],
2078
- url: '/v1/email/templates/{id}',
2079
- ...options,
2080
- headers: {
2081
- 'Content-Type': 'application/json',
2082
- ...options.headers
2083
- }
2084
- });
2085
- exports.updateEmailTemplate = updateEmailTemplate;
2086
- /**
2087
- * List environment variables.
2088
- *
2089
- * Returns all project-level environment variables (secret values masked).
2090
- */
2091
- const listEnvVars = (options) => (options?.client ?? client_gen_js_1.client).get({
2092
- security: [{ scheme: 'bearer', type: 'http' }],
2093
- url: '/v1/env',
2094
- ...options
2095
- });
2096
- exports.listEnvVars = listEnvVars;
2097
- /**
2098
- * Set an environment variable.
2099
- *
2100
- * Creates or updates a single project-level environment variable.
2101
- */
2102
- const setEnvVar = (options) => (options.client ?? client_gen_js_1.client).post({
2103
- security: [{ scheme: 'bearer', type: 'http' }],
2104
- url: '/v1/env',
2105
- ...options,
2106
- headers: {
2107
- 'Content-Type': 'application/json',
2108
- ...options.headers
2109
- }
2110
- });
2111
- exports.setEnvVar = setEnvVar;
2112
- /**
2113
- * Bulk-import environment variables.
2114
- *
2115
- * Imports many project-level environment variables in one request.
2116
- */
2117
- const bulkImportEnvVars = (options) => (options.client ?? client_gen_js_1.client).post({
2118
- security: [{ scheme: 'bearer', type: 'http' }],
2119
- url: '/v1/env/bulk',
2120
- ...options,
2121
- headers: {
2122
- 'Content-Type': 'application/json',
2123
- ...options.headers
2124
- }
2125
- });
2126
- exports.bulkImportEnvVars = bulkImportEnvVars;
2127
- /**
2128
- * Delete an environment variable.
2129
- *
2130
- * Removes a project-level environment variable by id.
2131
- */
2132
- const deleteEnvVar = (options) => (options.client ?? client_gen_js_1.client).delete({
2133
- security: [{ scheme: 'bearer', type: 'http' }],
2134
- url: '/v1/env/{id}',
2135
- ...options
2136
- });
2137
- exports.deleteEnvVar = deleteEnvVar;
2138
- /**
2139
- * Delete a subscription.
2140
- *
2141
- * Removes an event subscription by id.
2142
- */
2143
- const deleteEventSubscription = (options) => (options.client ?? client_gen_js_1.client).delete({
2144
- security: [{ scheme: 'bearer', type: 'http' }],
2145
- url: '/v1/events/subscriptions/{id}',
2146
- ...options
2147
- });
2148
- exports.deleteEventSubscription = deleteEventSubscription;
2149
- /**
2150
- * Get a subscription.
2151
- *
2152
- * Returns a single event subscription by id.
2153
- */
2154
- const getEventSubscription = (options) => (options.client ?? client_gen_js_1.client).get({
2155
- security: [{ scheme: 'bearer', type: 'http' }],
2156
- url: '/v1/events/subscriptions/{id}',
2157
- ...options
2158
- });
2159
- exports.getEventSubscription = getEventSubscription;
2160
- /**
2161
- * List subscription deliveries.
2162
- *
2163
- * Returns the delivery attempts for an event subscription.
2164
- */
2165
- const listSubscriptionDeliveries = (options) => (options.client ?? client_gen_js_1.client).get({
2166
- security: [{ scheme: 'bearer', type: 'http' }],
2167
- url: '/v1/events/subscriptions/{id}/deliveries',
2168
- ...options
2169
- });
2170
- exports.listSubscriptionDeliveries = listSubscriptionDeliveries;
2171
- /**
2172
- * List topics.
2173
- *
2174
- * Returns all event-bus topics for the caller's project.
2175
- */
2176
- const listEventTopics = (options) => (options?.client ?? client_gen_js_1.client).get({
2177
- security: [{ scheme: 'bearer', type: 'http' }],
2178
- url: '/v1/events/topics',
2179
- ...options
2180
- });
2181
- exports.listEventTopics = listEventTopics;
2182
- /**
2183
- * Create a topic.
2184
- *
2185
- * Creates a new event-bus topic.
2186
- */
2187
- const createEventTopic = (options) => (options?.client ?? client_gen_js_1.client).post({
2188
- security: [{ scheme: 'bearer', type: 'http' }],
2189
- url: '/v1/events/topics',
2190
- ...options
2191
- });
2192
- exports.createEventTopic = createEventTopic;
2193
- /**
2194
- * Delete a topic.
2195
- *
2196
- * Removes an event-bus topic by id or name.
2197
- */
2198
- const deleteEventTopic = (options) => (options.client ?? client_gen_js_1.client).delete({
2199
- security: [{ scheme: 'bearer', type: 'http' }],
2200
- url: '/v1/events/topics/{id}',
2201
- ...options
2202
- });
2203
- exports.deleteEventTopic = deleteEventTopic;
2204
- /**
2205
- * Get a topic.
2206
- *
2207
- * Returns a single event-bus topic by id or name.
2208
- */
2209
- const getEventTopic = (options) => (options.client ?? client_gen_js_1.client).get({
2210
- security: [{ scheme: 'bearer', type: 'http' }],
2211
- url: '/v1/events/topics/{id}',
2212
- ...options
2213
- });
2214
- exports.getEventTopic = getEventTopic;
2215
- /**
2216
- * List events on a topic.
2217
- *
2218
- * Returns the recent events published to a topic.
2219
- */
2220
- const listTopicEvents = (options) => (options.client ?? client_gen_js_1.client).get({
2221
- security: [{ scheme: 'bearer', type: 'http' }],
2222
- url: '/v1/events/topics/{id}/events',
2223
- ...options
2224
- });
2225
- exports.listTopicEvents = listTopicEvents;
2226
- /**
2227
- * Publish an event.
2228
- *
2229
- * Publishes an event payload to a topic.
2230
- */
2231
- const publishEvent = (options) => (options.client ?? client_gen_js_1.client).post({
2232
- security: [{ scheme: 'bearer', type: 'http' }],
2233
- url: '/v1/events/topics/{id}/publish',
2234
- ...options,
2235
- headers: {
2236
- 'Content-Type': 'application/json',
2237
- ...options.headers
2238
- }
2239
- });
2240
- exports.publishEvent = publishEvent;
2241
- /**
2242
- * List a topic's subscriptions.
2243
- *
2244
- * Returns the subscriptions attached to a topic.
2245
- */
2246
- const listTopicSubscriptions = (options) => (options.client ?? client_gen_js_1.client).get({
2247
- security: [{ scheme: 'bearer', type: 'http' }],
2248
- url: '/v1/events/topics/{id}/subscriptions',
2249
- ...options
2250
- });
2251
- exports.listTopicSubscriptions = listTopicSubscriptions;
2252
- /**
2253
- * Create a subscription.
2254
- *
2255
- * Creates a subscription that delivers a topic's events to an endpoint.
2256
- */
2257
- const createEventSubscription = (options) => (options.client ?? client_gen_js_1.client).post({
2258
- security: [{ scheme: 'bearer', type: 'http' }],
2259
- url: '/v1/events/topics/{id}/subscriptions',
2260
- ...options,
2261
- headers: {
2262
- 'Content-Type': 'application/json',
2263
- ...options.headers
2264
- }
2265
- });
2266
- exports.createEventSubscription = createEventSubscription;
2267
- /**
2268
- * List functions.
2269
- *
2270
- * Returns all serverless functions for the caller's project.
2271
- */
2272
- const listFunctions = (options) => (options?.client ?? client_gen_js_1.client).get({
2273
- security: [{ scheme: 'bearer', type: 'http' }],
2274
- url: '/v1/functions',
2275
- ...options
2276
- });
2277
- exports.listFunctions = listFunctions;
2278
- /**
2279
- * Create a function.
2280
- *
2281
- * Deploys a serverless function and returns the created function.
2282
- */
2283
- const createFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2284
- security: [{ scheme: 'bearer', type: 'http' }],
2285
- url: '/v1/functions',
2286
- ...options,
2287
- headers: {
2288
- 'Content-Type': 'application/json',
2289
- ...options.headers
2290
- }
2291
- });
2292
- exports.createFunction = createFunction;
2293
- /**
2294
- * Delete a function.
2295
- *
2296
- * Removes a serverless function by id or name.
2297
- */
2298
- const deleteFunction = (options) => (options.client ?? client_gen_js_1.client).delete({
2299
- security: [{ scheme: 'bearer', type: 'http' }],
2300
- url: '/v1/functions/{id}',
2301
- ...options
2302
- });
2303
- exports.deleteFunction = deleteFunction;
2304
- /**
2305
- * Get a function.
2306
- *
2307
- * Returns a single serverless function by id or name.
2308
- */
2309
- const getFunction = (options) => (options.client ?? client_gen_js_1.client).get({
2310
- security: [{ scheme: 'bearer', type: 'http' }],
2311
- url: '/v1/functions/{id}',
2312
- ...options
2313
- });
2314
- exports.getFunction = getFunction;
2315
- /**
2316
- * Update a function.
2317
- *
2318
- * Redeploys a serverless function with a new configuration.
2319
- */
2320
- const updateFunction = (options) => (options.client ?? client_gen_js_1.client).put({
2321
- security: [{ scheme: 'bearer', type: 'http' }],
2322
- url: '/v1/functions/{id}',
2323
- ...options,
2324
- headers: {
2325
- 'Content-Type': 'application/json',
2326
- ...options.headers
2327
- }
2328
- });
2329
- exports.updateFunction = updateFunction;
2330
- /**
2331
- * List function invocations.
2332
- *
2333
- * Returns the invocation history for a serverless function.
2334
- */
2335
- const listFunctionInvocations = (options) => (options.client ?? client_gen_js_1.client).get({
2336
- security: [{ scheme: 'bearer', type: 'http' }],
2337
- url: '/v1/functions/{id}/invocations',
2338
- ...options
2339
- });
2340
- exports.listFunctionInvocations = listFunctionInvocations;
2341
- /**
2342
- * Invoke a function.
2343
- *
2344
- * Invokes a serverless function with the supplied payload and returns its result.
2345
- */
2346
- const invokeFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2347
- security: [{ scheme: 'bearer', type: 'http' }],
2348
- url: '/v1/functions/{id}/invoke',
2349
- ...options,
2350
- headers: {
2351
- 'Content-Type': 'application/json',
2352
- ...options.headers
2353
- }
2354
- });
2355
- exports.invokeFunction = invokeFunction;
2356
- /**
2357
- * Get function logs.
2358
- *
2359
- * Returns log output for a serverless function.
2360
- */
2361
- const getFunctionLogs = (options) => (options.client ?? client_gen_js_1.client).get({
2362
- security: [{ scheme: 'bearer', type: 'http' }],
2363
- url: '/v1/functions/{id}/logs',
2364
- ...options
2365
- });
2366
- exports.getFunctionLogs = getFunctionLogs;
2367
- /**
2368
- * List source-control integrations.
2369
- *
2370
- * Returns all GitHub/GitLab/Bitbucket integrations attached to the caller's
2371
- * project.
2372
- */
2373
- const listIntegrations = (options) => (options?.client ?? client_gen_js_1.client).get({
2374
- security: [{ scheme: 'bearer', type: 'http' }],
2375
- url: '/v1/integrations',
2376
- ...options
2377
- });
2378
- exports.listIntegrations = listIntegrations;
2379
- /**
2380
- * Create a source-control integration.
2381
- *
2382
- * Attaches a Git provider repo to the caller's project and returns the created
2383
- * integration plus the webhook URL and secret to configure on the provider.
2384
- */
2385
- const createIntegration = (options) => (options.client ?? client_gen_js_1.client).post({
2386
- security: [{ scheme: 'bearer', type: 'http' }],
2387
- url: '/v1/integrations',
2388
- ...options,
2389
- headers: {
2390
- 'Content-Type': 'application/json',
2391
- ...options.headers
2392
- }
2393
- });
2394
- exports.createIntegration = createIntegration;
2395
- /**
2396
- * List GitHub App installations.
2397
- *
2398
- * Returns the GitHub App installations registered to the caller's project.
2399
- */
2400
- const listGithubInstallations = (options) => (options?.client ?? client_gen_js_1.client).get({
2401
- security: [{ scheme: 'bearer', type: 'http' }],
2402
- url: '/v1/integrations/github/installations',
2403
- ...options
2404
- });
2405
- exports.listGithubInstallations = listGithubInstallations;
2406
- /**
2407
- * Mint an installation token.
2408
- *
2409
- * Returns a short-lived GitHub App installation access token for an
2410
- * installation owned by the caller's project.
2411
- */
2412
- const createGithubInstallationToken = (options) => (options.client ?? client_gen_js_1.client).post({
2413
- security: [{ scheme: 'bearer', type: 'http' }],
2414
- url: '/v1/integrations/github/installations/{installation_id}/token',
2415
- ...options
2416
- });
2417
- exports.createGithubInstallationToken = createGithubInstallationToken;
2418
- /**
2419
- * List accessible GitHub repos.
2420
- *
2421
- * Returns the repositories the project's GitHub App installations can access,
2422
- * aggregated across all active installations.
2423
- */
2424
- const listGithubRepos = (options) => (options?.client ?? client_gen_js_1.client).get({
2425
- security: [{ scheme: 'bearer', type: 'http' }],
2426
- url: '/v1/integrations/github/repos',
2427
- ...options
2428
- });
2429
- exports.listGithubRepos = listGithubRepos;
2430
- /**
2431
- * Delete a source-control integration.
2432
- *
2433
- * Detaches a Git provider repo from the caller's project and deletes the
2434
- * integration record.
2435
- */
2436
- const deleteIntegration = (options) => (options.client ?? client_gen_js_1.client).delete({
2437
- security: [{ scheme: 'bearer', type: 'http' }],
2438
- url: '/v1/integrations/{id}',
2439
- ...options
2440
- });
2441
- exports.deleteIntegration = deleteIntegration;
2442
- /**
2443
- * Get a source-control integration.
2444
- *
2445
- * Returns a single integration by id, scoped to the caller's project.
2446
- */
2447
- const getIntegration = (options) => (options.client ?? client_gen_js_1.client).get({
2448
- security: [{ scheme: 'bearer', type: 'http' }],
2449
- url: '/v1/integrations/{id}',
2450
- ...options
2451
- });
2452
- exports.getIntegration = getIntegration;
2453
- /**
2454
- * Update a source-control integration.
2455
- *
2456
- * Updates an integration's build/deploy settings (branch filter, auto-build,
2457
- * auto-deploy, preview, status) and returns the updated record.
2458
- */
2459
- const updateIntegration = (options) => (options.client ?? client_gen_js_1.client).put({
2460
- security: [{ scheme: 'bearer', type: 'http' }],
2461
- url: '/v1/integrations/{id}',
2462
- ...options,
2463
- headers: {
2464
- 'Content-Type': 'application/json',
2465
- ...options.headers
2466
- }
2467
- });
2468
- exports.updateIntegration = updateIntegration;
2469
- /**
2470
- * Delete keys.
2471
- *
2472
- * Removes one or more keys from the tenant's key-value store (batch delete).
2473
- */
2474
- const kvDel = (options) => (options.client ?? client_gen_js_1.client).post({
2475
- security: [{ scheme: 'bearer', type: 'http' }],
2476
- url: '/v1/kv/del',
2477
- ...options,
2478
- headers: {
2479
- 'Content-Type': 'application/json',
2480
- ...options.headers
2481
- }
2482
- });
2483
- exports.kvDel = kvDel;
2484
- /**
2485
- * Check if a key exists.
2486
- *
2487
- * Returns whether a key is present in the tenant's key-value store.
2488
- */
2489
- const kvExists = (options) => (options.client ?? client_gen_js_1.client).post({
2490
- security: [{ scheme: 'bearer', type: 'http' }],
2491
- url: '/v1/kv/exists',
2492
- ...options,
2493
- headers: {
2494
- 'Content-Type': 'application/json',
2495
- ...options.headers
2496
- }
2497
- });
2498
- exports.kvExists = kvExists;
2499
- /**
2500
- * Fetch a value by key.
2501
- *
2502
- * Reads a single key from the tenant's key-value store; returns `value: null` if absent.
2503
- */
2504
- const kvGet = (options) => (options.client ?? client_gen_js_1.client).post({
2505
- security: [{ scheme: 'bearer', type: 'http' }],
2506
- url: '/v1/kv/get',
2507
- ...options,
2508
- headers: {
2509
- 'Content-Type': 'application/json',
2510
- ...options.headers
2511
- }
2512
- });
2513
- exports.kvGet = kvGet;
2514
- /**
2515
- * List keys.
2516
- *
2517
- * Returns the keys in the tenant's key-value store matching an optional glob pattern.
2518
- */
2519
- const kvKeys = (options) => (options.client ?? client_gen_js_1.client).post({
2520
- security: [{ scheme: 'bearer', type: 'http' }],
2521
- url: '/v1/kv/keys',
2522
- ...options,
2523
- headers: {
2524
- 'Content-Type': 'application/json',
2525
- ...options.headers
2526
- }
2527
- });
2528
- exports.kvKeys = kvKeys;
2529
- /**
2530
- * Set a value by key.
2531
- *
2532
- * Writes a value to the tenant's key-value store, with an optional TTL.
2533
- */
2534
- const kvSet = (options) => (options.client ?? client_gen_js_1.client).post({
2535
- security: [{ scheme: 'bearer', type: 'http' }],
2536
- url: '/v1/kv/set',
2537
- ...options,
2538
- headers: {
2539
- 'Content-Type': 'application/json',
2540
- ...options.headers
2541
- }
2542
- });
2543
- exports.kvSet = kvSet;
2544
- /**
2545
- * List load balancers.
2546
- *
2547
- * Returns all load balancers belonging to the caller's project.
2548
- */
2549
- const listLoadBalancers = (options) => (options?.client ?? client_gen_js_1.client).get({
2550
- security: [{ scheme: 'bearer', type: 'http' }],
2551
- url: '/v1/lb',
2552
- ...options
2553
- });
2554
- exports.listLoadBalancers = listLoadBalancers;
912
+ exports.listEmailTemplates = listEmailTemplates;
2555
913
  /**
2556
- * Create a load balancer.
914
+ * Create an email template.
2557
915
  *
2558
- * Provisions a load balancer for the caller's project and returns its details.
916
+ * Stores a new template for the org. Requires the `email:write` scope.
2559
917
  */
2560
- const createLoadBalancer = (options) => (options.client ?? client_gen_js_1.client).post({
918
+ const createEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).post({
2561
919
  security: [{ scheme: 'bearer', type: 'http' }],
2562
- url: '/v1/lb',
920
+ url: '/v1/email/templates',
2563
921
  ...options,
2564
922
  headers: {
2565
923
  'Content-Type': 'application/json',
2566
924
  ...options.headers
2567
925
  }
2568
926
  });
2569
- exports.createLoadBalancer = createLoadBalancer;
2570
- /**
2571
- * Delete a load balancer.
2572
- *
2573
- * Removes a load balancer and its backends by id.
2574
- */
2575
- const deleteLoadBalancer = (options) => (options.client ?? client_gen_js_1.client).delete({
2576
- security: [{ scheme: 'bearer', type: 'http' }],
2577
- url: '/v1/lb/{id}',
2578
- ...options
2579
- });
2580
- exports.deleteLoadBalancer = deleteLoadBalancer;
927
+ exports.createEmailTemplate = createEmailTemplate;
2581
928
  /**
2582
- * Get a load balancer.
929
+ * Delete an email template.
2583
930
  *
2584
- * Returns a single load balancer by id.
931
+ * Removes a stored template. Requires the `email:write` scope.
2585
932
  */
2586
- const getLoadBalancer = (options) => (options.client ?? client_gen_js_1.client).get({
933
+ const deleteEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).delete({
2587
934
  security: [{ scheme: 'bearer', type: 'http' }],
2588
- url: '/v1/lb/{id}',
935
+ url: '/v1/email/templates/{id}',
2589
936
  ...options
2590
937
  });
2591
- exports.getLoadBalancer = getLoadBalancer;
938
+ exports.deleteEmailTemplate = deleteEmailTemplate;
2592
939
  /**
2593
- * Add a backend to a load balancer.
940
+ * Update an email template.
2594
941
  *
2595
- * Registers a backend target on the load balancer and returns its details.
942
+ * Replaces a stored template. Requires the `email:write` scope.
2596
943
  */
2597
- const addLoadBalancerBackend = (options) => (options.client ?? client_gen_js_1.client).post({
944
+ const updateEmailTemplate = (options) => (options.client ?? client_gen_js_1.client).put({
2598
945
  security: [{ scheme: 'bearer', type: 'http' }],
2599
- url: '/v1/lb/{id}/backends',
946
+ url: '/v1/email/templates/{id}',
2600
947
  ...options,
2601
948
  headers: {
2602
949
  'Content-Type': 'application/json',
2603
950
  ...options.headers
2604
951
  }
2605
952
  });
2606
- exports.addLoadBalancerBackend = addLoadBalancerBackend;
2607
- /**
2608
- * Remove a backend from a load balancer.
2609
- *
2610
- * Deletes a backend target from the load balancer by id.
2611
- */
2612
- const removeLoadBalancerBackend = (options) => (options.client ?? client_gen_js_1.client).delete({
2613
- security: [{ scheme: 'bearer', type: 'http' }],
2614
- url: '/v1/lb/{id}/backends/{backend_id}',
2615
- ...options
2616
- });
2617
- exports.removeLoadBalancerBackend = removeLoadBalancerBackend;
2618
- /**
2619
- * Describe the current token.
2620
- *
2621
- * Returns the caller's identity, effective permissions and scopes, the MCP
2622
- * tools their scopes unlock, and their plan's rate-limit and API-key ceilings.
2623
- */
2624
- const getMe = (options) => (options?.client ?? client_gen_js_1.client).get({
2625
- security: [{ scheme: 'bearer', type: 'http' }],
2626
- url: '/v1/me',
2627
- ...options
2628
- });
2629
- exports.getMe = getMe;
953
+ exports.updateEmailTemplate = updateEmailTemplate;
2630
954
  /**
2631
- * Check the registry API version.
955
+ * Delete a subscription.
2632
956
  *
2633
- * Returns the OCI Distribution API version supported by the registry.
957
+ * Removes an event subscription by id.
2634
958
  */
2635
- const registryVersionCheck = (options) => (options?.client ?? client_gen_js_1.client).get({
959
+ const deleteEventSubscription = (options) => (options.client ?? client_gen_js_1.client).delete({
2636
960
  security: [{ scheme: 'bearer', type: 'http' }],
2637
- url: '/v1/registry/v2/',
961
+ url: '/v1/events/subscriptions/{id}',
2638
962
  ...options
2639
963
  });
2640
- exports.registryVersionCheck = registryVersionCheck;
964
+ exports.deleteEventSubscription = deleteEventSubscription;
2641
965
  /**
2642
- * List the repository catalog.
966
+ * Get a subscription.
2643
967
  *
2644
- * Returns the catalog of repositories in the registry.
968
+ * Returns a single event subscription by id.
2645
969
  */
2646
- const getRegistryCatalog = (options) => (options?.client ?? client_gen_js_1.client).get({
970
+ const getEventSubscription = (options) => (options.client ?? client_gen_js_1.client).get({
2647
971
  security: [{ scheme: 'bearer', type: 'http' }],
2648
- url: '/v1/registry/v2/_catalog',
972
+ url: '/v1/events/subscriptions/{id}',
2649
973
  ...options
2650
974
  });
2651
- exports.getRegistryCatalog = getRegistryCatalog;
975
+ exports.getEventSubscription = getEventSubscription;
2652
976
  /**
2653
- * Start a blob upload.
977
+ * List subscription deliveries.
2654
978
  *
2655
- * Begins an OCI blob upload session and returns the upload location.
979
+ * Returns the delivery attempts for an event subscription.
2656
980
  */
2657
- const startRegistryBlobUpload = (options) => (options.client ?? client_gen_js_1.client).post({
981
+ const listSubscriptionDeliveries = (options) => (options.client ?? client_gen_js_1.client).get({
2658
982
  security: [{ scheme: 'bearer', type: 'http' }],
2659
- url: '/v1/registry/v2/{project_id}/{repository}/blobs/uploads/',
983
+ url: '/v1/events/subscriptions/{id}/deliveries',
2660
984
  ...options
2661
985
  });
2662
- exports.startRegistryBlobUpload = startRegistryBlobUpload;
986
+ exports.listSubscriptionDeliveries = listSubscriptionDeliveries;
2663
987
  /**
2664
- * Get a blob.
988
+ * List topics.
2665
989
  *
2666
- * Downloads an OCI blob by digest.
990
+ * Returns all event-bus topics for the caller's project.
2667
991
  */
2668
- const getRegistryBlob = (options) => (options.client ?? client_gen_js_1.client).get({
992
+ const listEventTopics = (options) => (options?.client ?? client_gen_js_1.client).get({
2669
993
  security: [{ scheme: 'bearer', type: 'http' }],
2670
- url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
994
+ url: '/v1/events/topics',
2671
995
  ...options
2672
996
  });
2673
- exports.getRegistryBlob = getRegistryBlob;
997
+ exports.listEventTopics = listEventTopics;
2674
998
  /**
2675
- * Check a blob exists.
999
+ * Create a topic.
2676
1000
  *
2677
- * Returns headers indicating whether an OCI blob exists.
1001
+ * Creates a new event-bus topic.
2678
1002
  */
2679
- const headRegistryBlob = (options) => (options.client ?? client_gen_js_1.client).head({
1003
+ const createEventTopic = (options) => (options?.client ?? client_gen_js_1.client).post({
2680
1004
  security: [{ scheme: 'bearer', type: 'http' }],
2681
- url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
1005
+ url: '/v1/events/topics',
2682
1006
  ...options
2683
1007
  });
2684
- exports.headRegistryBlob = headRegistryBlob;
1008
+ exports.createEventTopic = createEventTopic;
2685
1009
  /**
2686
- * Delete a manifest.
1010
+ * Delete a topic.
2687
1011
  *
2688
- * Removes an OCI image manifest by tag or digest.
1012
+ * Removes an event-bus topic by id or name.
2689
1013
  */
2690
- const deleteRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).delete({
1014
+ const deleteEventTopic = (options) => (options.client ?? client_gen_js_1.client).delete({
2691
1015
  security: [{ scheme: 'bearer', type: 'http' }],
2692
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1016
+ url: '/v1/events/topics/{id}',
2693
1017
  ...options
2694
1018
  });
2695
- exports.deleteRegistryManifest = deleteRegistryManifest;
1019
+ exports.deleteEventTopic = deleteEventTopic;
2696
1020
  /**
2697
- * Get a manifest.
1021
+ * Get a topic.
2698
1022
  *
2699
- * Returns an OCI image manifest by tag or digest.
1023
+ * Returns a single event-bus topic by id or name.
2700
1024
  */
2701
- const getRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).get({
1025
+ const getEventTopic = (options) => (options.client ?? client_gen_js_1.client).get({
2702
1026
  security: [{ scheme: 'bearer', type: 'http' }],
2703
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1027
+ url: '/v1/events/topics/{id}',
2704
1028
  ...options
2705
1029
  });
2706
- exports.getRegistryManifest = getRegistryManifest;
1030
+ exports.getEventTopic = getEventTopic;
2707
1031
  /**
2708
- * Check a manifest exists.
1032
+ * List events on a topic.
2709
1033
  *
2710
- * Returns headers indicating whether an OCI manifest exists.
1034
+ * Returns the recent events published to a topic.
2711
1035
  */
2712
- const headRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).head({
1036
+ const listTopicEvents = (options) => (options.client ?? client_gen_js_1.client).get({
2713
1037
  security: [{ scheme: 'bearer', type: 'http' }],
2714
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1038
+ url: '/v1/events/topics/{id}/events',
2715
1039
  ...options
2716
1040
  });
2717
- exports.headRegistryManifest = headRegistryManifest;
1041
+ exports.listTopicEvents = listTopicEvents;
2718
1042
  /**
2719
- * Store a manifest.
1043
+ * Publish an event.
2720
1044
  *
2721
- * Uploads an OCI image manifest under a tag or digest.
1045
+ * Publishes an event payload to a topic.
2722
1046
  */
2723
- const putRegistryManifest = (options) => (options.client ?? client_gen_js_1.client).put({
1047
+ const publishEvent = (options) => (options.client ?? client_gen_js_1.client).post({
2724
1048
  security: [{ scheme: 'bearer', type: 'http' }],
2725
- url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1049
+ url: '/v1/events/topics/{id}/publish',
2726
1050
  ...options,
2727
1051
  headers: {
2728
1052
  'Content-Type': 'application/json',
2729
1053
  ...options.headers
2730
1054
  }
2731
1055
  });
2732
- exports.putRegistryManifest = putRegistryManifest;
2733
- /**
2734
- * List tags.
2735
- *
2736
- * Returns the tags available for a repository.
2737
- */
2738
- const listRegistryTags = (options) => (options.client ?? client_gen_js_1.client).get({
2739
- security: [{ scheme: 'bearer', type: 'http' }],
2740
- url: '/v1/registry/v2/{project_id}/{repository}/tags/list',
2741
- ...options
2742
- });
2743
- exports.listRegistryTags = listRegistryTags;
1056
+ exports.publishEvent = publishEvent;
2744
1057
  /**
2745
- * List Scalix Run services.
1058
+ * List a topic's subscriptions.
2746
1059
  *
2747
- * Returns all Scalix Run services for the caller's project.
1060
+ * Returns the subscriptions attached to a topic.
2748
1061
  */
2749
- const listServices = (options) => (options?.client ?? client_gen_js_1.client).get({
1062
+ const listTopicSubscriptions = (options) => (options.client ?? client_gen_js_1.client).get({
2750
1063
  security: [{ scheme: 'bearer', type: 'http' }],
2751
- url: '/v1/run/services',
1064
+ url: '/v1/events/topics/{id}/subscriptions',
2752
1065
  ...options
2753
1066
  });
2754
- exports.listServices = listServices;
1067
+ exports.listTopicSubscriptions = listTopicSubscriptions;
2755
1068
  /**
2756
- * Deploy a Scalix Run service.
1069
+ * Create a subscription.
2757
1070
  *
2758
- * Deploys a Scalix Run service and returns the created service.
1071
+ * Creates a subscription that delivers a topic's events to an endpoint.
2759
1072
  */
2760
- const createService = (options) => (options.client ?? client_gen_js_1.client).post({
1073
+ const createEventSubscription = (options) => (options.client ?? client_gen_js_1.client).post({
2761
1074
  security: [{ scheme: 'bearer', type: 'http' }],
2762
- url: '/v1/run/services',
1075
+ url: '/v1/events/topics/{id}/subscriptions',
2763
1076
  ...options,
2764
1077
  headers: {
2765
1078
  'Content-Type': 'application/json',
2766
1079
  ...options.headers
2767
1080
  }
2768
1081
  });
2769
- exports.createService = createService;
2770
- /**
2771
- * Delete a Scalix Run service.
2772
- *
2773
- * Removes a Scalix Run service by id.
2774
- */
2775
- const deleteService = (options) => (options.client ?? client_gen_js_1.client).delete({
2776
- security: [{ scheme: 'bearer', type: 'http' }],
2777
- url: '/v1/run/services/{id}',
2778
- ...options
2779
- });
2780
- exports.deleteService = deleteService;
1082
+ exports.createEventSubscription = createEventSubscription;
2781
1083
  /**
2782
- * Get a Scalix Run service.
1084
+ * List functions.
2783
1085
  *
2784
- * Returns a single Scalix Run service by id.
1086
+ * Returns all serverless functions for the caller's project.
2785
1087
  */
2786
- const getService = (options) => (options.client ?? client_gen_js_1.client).get({
1088
+ const listFunctions = (options) => (options?.client ?? client_gen_js_1.client).get({
2787
1089
  security: [{ scheme: 'bearer', type: 'http' }],
2788
- url: '/v1/run/services/{id}',
1090
+ url: '/v1/functions',
2789
1091
  ...options
2790
1092
  });
2791
- exports.getService = getService;
1093
+ exports.listFunctions = listFunctions;
2792
1094
  /**
2793
- * Update a Scalix Run service.
1095
+ * Create a function.
2794
1096
  *
2795
- * Updates a Scalix Run service (e.g. scaling) and returns the new state.
1097
+ * Deploys a serverless function and returns the created function.
2796
1098
  */
2797
- const updateService = (options) => (options.client ?? client_gen_js_1.client).put({
1099
+ const createFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2798
1100
  security: [{ scheme: 'bearer', type: 'http' }],
2799
- url: '/v1/run/services/{id}',
1101
+ url: '/v1/functions',
2800
1102
  ...options,
2801
1103
  headers: {
2802
1104
  'Content-Type': 'application/json',
2803
1105
  ...options.headers
2804
1106
  }
2805
1107
  });
2806
- exports.updateService = updateService;
2807
- /**
2808
- * List service instances.
2809
- *
2810
- * Returns the running instances of a Scalix Run service.
2811
- */
2812
- const listServiceInstances = (options) => (options.client ?? client_gen_js_1.client).get({
2813
- security: [{ scheme: 'bearer', type: 'http' }],
2814
- url: '/v1/run/services/{id}/instances',
2815
- ...options
2816
- });
2817
- exports.listServiceInstances = listServiceInstances;
2818
- /**
2819
- * Get service live instance state.
2820
- *
2821
- * Returns healthy/total instance counts and in-flight request totals for a
2822
- * Scalix Run service. Request-level RED metrics (requests/sec, errors/sec,
2823
- * latency percentiles) are served by
2824
- * `GET /v1/metering/services/run-service/{id}/metrics`, whose response
2825
- * carries `available:false` with a message when the deployment has no
2826
- * metrics backend.
2827
- */
2828
- const getServiceMetrics = (options) => (options.client ?? client_gen_js_1.client).get({
2829
- security: [{ scheme: 'bearer', type: 'http' }],
2830
- url: '/v1/run/services/{id}/metrics',
2831
- ...options
2832
- });
2833
- exports.getServiceMetrics = getServiceMetrics;
1108
+ exports.createFunction = createFunction;
2834
1109
  /**
2835
- * List service revisions.
1110
+ * Delete a function.
2836
1111
  *
2837
- * Returns the revision history of a Scalix Run service.
1112
+ * Removes a serverless function by id or name.
2838
1113
  */
2839
- const listServiceRevisions = (options) => (options.client ?? client_gen_js_1.client).get({
1114
+ const deleteFunction = (options) => (options.client ?? client_gen_js_1.client).delete({
2840
1115
  security: [{ scheme: 'bearer', type: 'http' }],
2841
- url: '/v1/run/services/{id}/revisions',
1116
+ url: '/v1/functions/{id}',
2842
1117
  ...options
2843
1118
  });
2844
- exports.listServiceRevisions = listServiceRevisions;
1119
+ exports.deleteFunction = deleteFunction;
2845
1120
  /**
2846
- * Roll back a service.
1121
+ * Get a function.
2847
1122
  *
2848
- * Rolls a Scalix Run service back to a previous revision.
2849
- */
2850
- const rollbackService = (options) => (options.client ?? client_gen_js_1.client).post({
2851
- security: [{ scheme: 'bearer', type: 'http' }],
2852
- url: '/v1/run/services/{id}/rollback',
2853
- ...options,
2854
- headers: {
2855
- 'Content-Type': 'application/json',
2856
- ...options.headers
2857
- }
2858
- });
2859
- exports.rollbackService = rollbackService;
2860
- /**
2861
- * List your sandboxes.
1123
+ * Returns a single serverless function by id or name.
2862
1124
  */
2863
- const sandboxList = (options) => (options?.client ?? client_gen_js_1.client).get({
1125
+ const getFunction = (options) => (options.client ?? client_gen_js_1.client).get({
2864
1126
  security: [{ scheme: 'bearer', type: 'http' }],
2865
- url: '/v1/sandboxes',
1127
+ url: '/v1/functions/{id}',
2866
1128
  ...options
2867
1129
  });
2868
- exports.sandboxList = sandboxList;
1130
+ exports.getFunction = getFunction;
2869
1131
  /**
2870
- * Create an ephemeral sandbox.
1132
+ * Update a function.
2871
1133
  *
2872
- * Boots an isolated microVM. Ephemeral sandboxes are disposable: they stop
2873
- * at their idle or hard timeout and nothing on the rootfs persists past
2874
- * stop. Compute is billed per vCPU-hour and GB-hour of allocation while
2875
- * running.
2876
- */
2877
- const sandboxCreate = (options) => (options.client ?? client_gen_js_1.client).post({
2878
- security: [{ scheme: 'bearer', type: 'http' }],
2879
- url: '/v1/sandboxes',
2880
- ...options,
2881
- headers: {
2882
- 'Content-Type': 'application/json',
2883
- ...options.headers
2884
- }
2885
- });
2886
- exports.sandboxCreate = sandboxCreate;
2887
- /**
2888
- * Delete a sandbox and tear down its microVM.
2889
- */
2890
- const sandboxDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
2891
- security: [{ scheme: 'bearer', type: 'http' }],
2892
- url: '/v1/sandboxes/{id}',
2893
- ...options
2894
- });
2895
- exports.sandboxDelete = sandboxDelete;
2896
- /**
2897
- * Get a sandbox by id.
2898
- */
2899
- const sandboxGet = (options) => (options.client ?? client_gen_js_1.client).get({
2900
- security: [{ scheme: 'bearer', type: 'http' }],
2901
- url: '/v1/sandboxes/{id}',
2902
- ...options
2903
- });
2904
- exports.sandboxGet = sandboxGet;
2905
- /**
2906
- * Run a command inside a running sandbox (synchronous).
2907
- */
2908
- const sandboxRunCommand = (options) => (options.client ?? client_gen_js_1.client).post({
2909
- security: [{ scheme: 'bearer', type: 'http' }],
2910
- url: '/v1/sandboxes/{id}/commands',
2911
- ...options,
2912
- headers: {
2913
- 'Content-Type': 'application/json',
2914
- ...options.headers
2915
- }
2916
- });
2917
- exports.sandboxRunCommand = sandboxRunCommand;
2918
- /**
2919
- * Extend a sandbox's hard deadline.
2920
- */
2921
- const sandboxExtend = (options) => (options.client ?? client_gen_js_1.client).post({
2922
- security: [{ scheme: 'bearer', type: 'http' }],
2923
- url: '/v1/sandboxes/{id}/extend',
2924
- ...options,
2925
- headers: {
2926
- 'Content-Type': 'application/json',
2927
- ...options.headers
2928
- }
2929
- });
2930
- exports.sandboxExtend = sandboxExtend;
2931
- /**
2932
- * Write files into a sandbox.
1134
+ * Redeploys a serverless function with a new configuration.
2933
1135
  */
2934
- const sandboxWriteFiles = (options) => (options.client ?? client_gen_js_1.client).post({
1136
+ const updateFunction = (options) => (options.client ?? client_gen_js_1.client).put({
2935
1137
  security: [{ scheme: 'bearer', type: 'http' }],
2936
- url: '/v1/sandboxes/{id}/files',
1138
+ url: '/v1/functions/{id}',
2937
1139
  ...options,
2938
1140
  headers: {
2939
1141
  'Content-Type': 'application/json',
2940
1142
  ...options.headers
2941
1143
  }
2942
1144
  });
2943
- exports.sandboxWriteFiles = sandboxWriteFiles;
2944
- /**
2945
- * Read a file from a sandbox. The guest path follows `/files/`.
2946
- */
2947
- const sandboxReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
2948
- security: [{ scheme: 'bearer', type: 'http' }],
2949
- url: '/v1/sandboxes/{id}/files/{path}',
2950
- ...options
2951
- });
2952
- exports.sandboxReadFile = sandboxReadFile;
1145
+ exports.updateFunction = updateFunction;
2953
1146
  /**
2954
- * Snapshot a sandbox - not available.
1147
+ * List function invocations.
2955
1148
  *
2956
- * Ephemeral sandboxes are disposable; state does not persist past stop.
2957
- * This endpoint returns 501 until snapshots ship (demand-gated).
1149
+ * Returns the invocation history for a serverless function.
2958
1150
  */
2959
- const sandboxSnapshot = (options) => (options.client ?? client_gen_js_1.client).post({
1151
+ const listFunctionInvocations = (options) => (options.client ?? client_gen_js_1.client).get({
2960
1152
  security: [{ scheme: 'bearer', type: 'http' }],
2961
- url: '/v1/sandboxes/{id}/snapshot',
1153
+ url: '/v1/functions/{id}/invocations',
2962
1154
  ...options
2963
1155
  });
2964
- exports.sandboxSnapshot = sandboxSnapshot;
1156
+ exports.listFunctionInvocations = listFunctionInvocations;
2965
1157
  /**
2966
- * Run a search.
1158
+ * Invoke a function.
2967
1159
  *
2968
- * 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.
2969
1161
  */
2970
- const searchIndex = (options) => (options?.client ?? client_gen_js_1.client).get({
1162
+ const invokeFunction = (options) => (options.client ?? client_gen_js_1.client).post({
2971
1163
  security: [{ scheme: 'bearer', type: 'http' }],
2972
- url: '/v1/search',
2973
- ...options
1164
+ url: '/v1/functions/{id}/invoke',
1165
+ ...options,
1166
+ headers: {
1167
+ 'Content-Type': 'application/json',
1168
+ ...options.headers
1169
+ }
2974
1170
  });
2975
- exports.searchIndex = searchIndex;
1171
+ exports.invokeFunction = invokeFunction;
2976
1172
  /**
2977
- * Run a search ingest.
1173
+ * Get function logs.
2978
1174
  *
2979
- * Triggers an ingest run that crawls and indexes registered sources.
1175
+ * Returns log output for a serverless function.
2980
1176
  */
2981
- const runSearchIngest = (options) => (options?.client ?? client_gen_js_1.client).post({
1177
+ const getFunctionLogs = (options) => (options.client ?? client_gen_js_1.client).get({
2982
1178
  security: [{ scheme: 'bearer', type: 'http' }],
2983
- url: '/v1/search/ingest/run',
1179
+ url: '/v1/functions/{id}/logs',
2984
1180
  ...options
2985
1181
  });
2986
- exports.runSearchIngest = runSearchIngest;
1182
+ exports.getFunctionLogs = getFunctionLogs;
2987
1183
  /**
2988
- * List search sources.
1184
+ * Delete keys.
2989
1185
  *
2990
- * Returns the curated sources registered in the search index.
1186
+ * Removes one or more keys from the tenant's key-value store (batch delete).
2991
1187
  */
2992
- const listSearchSources = (options) => (options?.client ?? client_gen_js_1.client).get({
1188
+ const kvDel = (options) => (options.client ?? client_gen_js_1.client).post({
2993
1189
  security: [{ scheme: 'bearer', type: 'http' }],
2994
- url: '/v1/search/sources',
2995
- ...options
1190
+ url: '/v1/kv/del',
1191
+ ...options,
1192
+ headers: {
1193
+ 'Content-Type': 'application/json',
1194
+ ...options.headers
1195
+ }
2996
1196
  });
2997
- exports.listSearchSources = listSearchSources;
1197
+ exports.kvDel = kvDel;
2998
1198
  /**
2999
- * Upsert a search source.
1199
+ * Check if a key exists.
3000
1200
  *
3001
- * Creates or updates a curated source in the search index.
1201
+ * Returns whether a key is present in the tenant's key-value store.
3002
1202
  */
3003
- const upsertSearchSource = (options) => (options.client ?? client_gen_js_1.client).post({
1203
+ const kvExists = (options) => (options.client ?? client_gen_js_1.client).post({
3004
1204
  security: [{ scheme: 'bearer', type: 'http' }],
3005
- url: '/v1/search/sources',
1205
+ url: '/v1/kv/exists',
3006
1206
  ...options,
3007
1207
  headers: {
3008
1208
  'Content-Type': 'application/json',
3009
1209
  ...options.headers
3010
1210
  }
3011
1211
  });
3012
- exports.upsertSearchSource = upsertSearchSource;
1212
+ exports.kvExists = kvExists;
3013
1213
  /**
3014
- * Get search stats.
1214
+ * Fetch a value by key.
3015
1215
  *
3016
- * Returns statistics about the search index.
1216
+ * Reads a single key from the tenant's key-value store; returns `value: null` if absent.
3017
1217
  */
3018
- const getSearchStats = (options) => (options?.client ?? client_gen_js_1.client).get({
1218
+ const kvGet = (options) => (options.client ?? client_gen_js_1.client).post({
3019
1219
  security: [{ scheme: 'bearer', type: 'http' }],
3020
- url: '/v1/search/stats',
3021
- ...options
1220
+ url: '/v1/kv/get',
1221
+ ...options,
1222
+ headers: {
1223
+ 'Content-Type': 'application/json',
1224
+ ...options.headers
1225
+ }
3022
1226
  });
3023
- exports.getSearchStats = getSearchStats;
1227
+ exports.kvGet = kvGet;
3024
1228
  /**
3025
- * Get Shield config.
1229
+ * List keys.
3026
1230
  *
3027
- * Returns the Shield configuration (default action, challenge settings) for the
3028
- * caller's project.
1231
+ * Returns the keys in the tenant's key-value store matching an optional glob pattern.
3029
1232
  */
3030
- const getShieldConfig = (options) => (options?.client ?? client_gen_js_1.client).get({
1233
+ const kvKeys = (options) => (options.client ?? client_gen_js_1.client).post({
3031
1234
  security: [{ scheme: 'bearer', type: 'http' }],
3032
- url: '/v1/shield/config',
3033
- ...options
1235
+ url: '/v1/kv/keys',
1236
+ ...options,
1237
+ headers: {
1238
+ 'Content-Type': 'application/json',
1239
+ ...options.headers
1240
+ }
3034
1241
  });
3035
- exports.getShieldConfig = getShieldConfig;
1242
+ exports.kvKeys = kvKeys;
3036
1243
  /**
3037
- * Update Shield config.
1244
+ * Set a value by key.
3038
1245
  *
3039
- * Replaces the Shield configuration for the caller's project. Requires the Pro
3040
- * plan or higher.
1246
+ * Writes a value to the tenant's key-value store, with an optional TTL.
3041
1247
  */
3042
- const updateShieldConfig = (options) => (options.client ?? client_gen_js_1.client).put({
1248
+ const kvSet = (options) => (options.client ?? client_gen_js_1.client).post({
3043
1249
  security: [{ scheme: 'bearer', type: 'http' }],
3044
- url: '/v1/shield/config',
1250
+ url: '/v1/kv/set',
3045
1251
  ...options,
3046
1252
  headers: {
3047
1253
  'Content-Type': 'application/json',
3048
1254
  ...options.headers
3049
1255
  }
3050
1256
  });
3051
- exports.updateShieldConfig = updateShieldConfig;
1257
+ exports.kvSet = kvSet;
3052
1258
  /**
3053
- * List Shield crawlers.
3054
- *
3055
- * Returns the known AI crawlers with their per-project policy and traffic
3056
- * stats, plus any custom user-defined crawler rules.
1259
+ * List your sandboxes.
3057
1260
  */
3058
- const listShieldCrawlers = (options) => (options?.client ?? client_gen_js_1.client).get({
1261
+ const sandboxList = (options) => (options?.client ?? client_gen_js_1.client).get({
3059
1262
  security: [{ scheme: 'bearer', type: 'http' }],
3060
- url: '/v1/shield/crawlers',
1263
+ url: '/v1/sandboxes',
3061
1264
  ...options
3062
1265
  });
3063
- exports.listShieldCrawlers = listShieldCrawlers;
1266
+ exports.sandboxList = sandboxList;
3064
1267
  /**
3065
- * Set a crawler's verification IP ranges.
1268
+ * Create an ephemeral sandbox.
3066
1269
  *
3067
- * Sets the IP addresses or CIDR ranges used to verify a crawler's source IP.
3068
- * 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.
3069
1274
  */
3070
- const setShieldCrawlerIpRanges = (options) => (options.client ?? client_gen_js_1.client).put({
1275
+ const sandboxCreate = (options) => (options.client ?? client_gen_js_1.client).post({
3071
1276
  security: [{ scheme: 'bearer', type: 'http' }],
3072
- url: '/v1/shield/crawlers/{id}/ip-ranges',
1277
+ url: '/v1/sandboxes',
3073
1278
  ...options,
3074
1279
  headers: {
3075
1280
  'Content-Type': 'application/json',
3076
1281
  ...options.headers
3077
1282
  }
3078
1283
  });
3079
- exports.setShieldCrawlerIpRanges = setShieldCrawlerIpRanges;
1284
+ exports.sandboxCreate = sandboxCreate;
3080
1285
  /**
3081
- * Clear a crawler policy.
3082
- *
3083
- * Removes the access policy for a crawler, reverting it to the project default.
3084
- * Policy controls require the Pro plan or higher.
1286
+ * Delete a sandbox and tear down its microVM.
3085
1287
  */
3086
- const clearShieldCrawlerPolicy = (options) => (options.client ?? client_gen_js_1.client).delete({
1288
+ const sandboxDelete = (options) => (options.client ?? client_gen_js_1.client).delete({
3087
1289
  security: [{ scheme: 'bearer', type: 'http' }],
3088
- url: '/v1/shield/crawlers/{id}/policy',
1290
+ url: '/v1/sandboxes/{id}',
3089
1291
  ...options
3090
1292
  });
3091
- exports.clearShieldCrawlerPolicy = clearShieldCrawlerPolicy;
1293
+ exports.sandboxDelete = sandboxDelete;
3092
1294
  /**
3093
- * Set a crawler policy.
3094
- *
3095
- * Sets the access policy (allow / block / rate-limit) for a known crawler in
3096
- * the caller's project. Policy controls require the Pro plan or higher.
1295
+ * Get a sandbox by id.
1296
+ */
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).
3097
1305
  */
3098
- const setShieldCrawlerPolicy = (options) => (options.client ?? client_gen_js_1.client).put({
1306
+ const sandboxRunCommand = (options) => (options.client ?? client_gen_js_1.client).post({
3099
1307
  security: [{ scheme: 'bearer', type: 'http' }],
3100
- url: '/v1/shield/crawlers/{id}/policy',
1308
+ url: '/v1/sandboxes/{id}/commands',
3101
1309
  ...options,
3102
1310
  headers: {
3103
1311
  'Content-Type': 'application/json',
3104
1312
  ...options.headers
3105
1313
  }
3106
1314
  });
3107
- exports.setShieldCrawlerPolicy = setShieldCrawlerPolicy;
1315
+ exports.sandboxRunCommand = sandboxRunCommand;
3108
1316
  /**
3109
- * Create a custom Shield rule.
3110
- *
3111
- * Adds a customer-defined crawler rule matched by User-Agent substring, with
3112
- * its own access policy. Requires the Pro plan or higher.
1317
+ * Extend a sandbox's hard deadline.
3113
1318
  */
3114
- const createShieldCustomRule = (options) => (options.client ?? client_gen_js_1.client).post({
1319
+ const sandboxExtend = (options) => (options.client ?? client_gen_js_1.client).post({
3115
1320
  security: [{ scheme: 'bearer', type: 'http' }],
3116
- url: '/v1/shield/custom',
1321
+ url: '/v1/sandboxes/{id}/extend',
3117
1322
  ...options,
3118
1323
  headers: {
3119
1324
  'Content-Type': 'application/json',
3120
1325
  ...options.headers
3121
1326
  }
3122
1327
  });
3123
- exports.createShieldCustomRule = createShieldCustomRule;
3124
- /**
3125
- * Delete a custom Shield rule.
3126
- *
3127
- * Removes a custom crawler rule by id. Requires the Pro plan or higher.
3128
- */
3129
- const deleteShieldCustomRule = (options) => (options.client ?? client_gen_js_1.client).delete({
3130
- security: [{ scheme: 'bearer', type: 'http' }],
3131
- url: '/v1/shield/custom/{id}',
3132
- ...options
3133
- });
3134
- exports.deleteShieldCustomRule = deleteShieldCustomRule;
1328
+ exports.sandboxExtend = sandboxExtend;
3135
1329
  /**
3136
- * Update a custom Shield rule.
3137
- *
3138
- * Updates the access policy of an existing custom crawler rule. Requires the
3139
- * Pro plan or higher.
1330
+ * Write files into a sandbox.
3140
1331
  */
3141
- const updateShieldCustomRule = (options) => (options.client ?? client_gen_js_1.client).put({
1332
+ const sandboxWriteFiles = (options) => (options.client ?? client_gen_js_1.client).post({
3142
1333
  security: [{ scheme: 'bearer', type: 'http' }],
3143
- url: '/v1/shield/custom/{id}',
1334
+ url: '/v1/sandboxes/{id}/files',
3144
1335
  ...options,
3145
1336
  headers: {
3146
1337
  'Content-Type': 'application/json',
3147
1338
  ...options.headers
3148
1339
  }
3149
1340
  });
3150
- exports.updateShieldCustomRule = updateShieldCustomRule;
3151
- /**
3152
- * List Shield events.
3153
- *
3154
- * Returns recent Shield crawler events for the project, paginated.
3155
- */
3156
- const listShieldEvents = (options) => (options?.client ?? client_gen_js_1.client).get({
3157
- security: [{ scheme: 'bearer', type: 'http' }],
3158
- url: '/v1/shield/events',
3159
- ...options
3160
- });
3161
- exports.listShieldEvents = listShieldEvents;
1341
+ exports.sandboxWriteFiles = sandboxWriteFiles;
3162
1342
  /**
3163
- * Generate robots.txt.
3164
- *
3165
- * Returns a `robots.txt` generated from the project's Shield crawler policies.
3166
- *
3167
- * This is what Shield serves for apps that have NO robots.txt of their own.
3168
- * An app that ships one has it served verbatim with these crawler rules
3169
- * appended instead, so this is not necessarily the file a crawler receives.
3170
- * You do not need to copy this into your project.
1343
+ * Read a file from a sandbox. The guest path follows `/files/`.
3171
1344
  */
3172
- const getShieldRobotsTxt = (options) => (options?.client ?? client_gen_js_1.client).get({
1345
+ const sandboxReadFile = (options) => (options.client ?? client_gen_js_1.client).get({
3173
1346
  security: [{ scheme: 'bearer', type: 'http' }],
3174
- url: '/v1/shield/robots-txt',
1347
+ url: '/v1/sandboxes/{id}/files/{path}',
3175
1348
  ...options
3176
1349
  });
3177
- exports.getShieldRobotsTxt = getShieldRobotsTxt;
1350
+ exports.sandboxReadFile = sandboxReadFile;
3178
1351
  /**
3179
- * Get Shield statistics.
1352
+ * Snapshot a sandbox - not available.
3180
1353
  *
3181
- * Returns aggregate request, block, and rate-limit counts broken down by
3182
- * 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).
3183
1356
  */
3184
- const getShieldStats = (options) => (options?.client ?? client_gen_js_1.client).get({
1357
+ const sandboxSnapshot = (options) => (options.client ?? client_gen_js_1.client).post({
3185
1358
  security: [{ scheme: 'bearer', type: 'http' }],
3186
- url: '/v1/shield/stats',
1359
+ url: '/v1/sandboxes/{id}/snapshot',
3187
1360
  ...options
3188
1361
  });
3189
- exports.getShieldStats = getShieldStats;
1362
+ exports.sandboxSnapshot = sandboxSnapshot;
3190
1363
  /**
3191
1364
  * List buckets.
3192
1365
  *
@@ -3242,17 +1415,6 @@ const getObject = (options) => (options.client ?? client_gen_js_1.client).get({
3242
1415
  ...options
3243
1416
  });
3244
1417
  exports.getObject = getObject;
3245
- /**
3246
- * Get object metadata.
3247
- *
3248
- * Returns an object's metadata headers without its body.
3249
- */
3250
- const headObject = (options) => (options.client ?? client_gen_js_1.client).head({
3251
- security: [{ scheme: 'bearer', type: 'http' }],
3252
- url: '/v1/storage/buckets/{bucket}/objects/{key}',
3253
- ...options
3254
- });
3255
- exports.headObject = headObject;
3256
1418
  /**
3257
1419
  * Upload an object.
3258
1420
  *
@@ -3307,224 +1469,4 @@ const getKeysUsage = (options) => (options?.client ?? client_gen_js_1.client).ge
3307
1469
  ...options
3308
1470
  });
3309
1471
  exports.getKeysUsage = getKeysUsage;
3310
- /**
3311
- * Get usage for one API key.
3312
- *
3313
- * Returns the request count for a single API key this billing month. Requires
3314
- * the `metering:read` scope; the key must belong to the caller's org.
3315
- */
3316
- const getKeyUsage = (options) => (options.client ?? client_gen_js_1.client).get({
3317
- security: [{ scheme: 'bearer', type: 'http' }],
3318
- url: '/v1/usage/keys/{key_id}',
3319
- ...options
3320
- });
3321
- exports.getKeyUsage = getKeyUsage;
3322
- /**
3323
- * Get the caller's budget.
3324
- *
3325
- * Returns current usage (AI tokens, storage, compute hours), the plan's
3326
- * allowances, and the remaining headroom for each.
3327
- */
3328
- const getUserBudget = (options) => (options?.client ?? client_gen_js_1.client).get({
3329
- security: [{ scheme: 'bearer', type: 'http' }],
3330
- url: '/v1/user/budget',
3331
- ...options
3332
- });
3333
- exports.getUserBudget = getUserBudget;
3334
- /**
3335
- * Get the caller's account profile.
3336
- *
3337
- * Returns the authenticated user's id, email, name, plan, and status. Fields
3338
- * after `status` are present only when a stored user record exists.
3339
- */
3340
- const getUserInfo = (options) => (options?.client ?? client_gen_js_1.client).get({
3341
- security: [{ scheme: 'bearer', type: 'http' }],
3342
- url: '/v1/user/info',
3343
- ...options
3344
- });
3345
- exports.getUserInfo = getUserInfo;
3346
- /**
3347
- * Get the caller's usage stats.
3348
- *
3349
- * Returns a per-service usage breakdown (AI, storage, compute, bandwidth,
3350
- * functions) for the current month.
3351
- */
3352
- const getUserStats = (options) => (options?.client ?? client_gen_js_1.client).get({
3353
- security: [{ scheme: 'bearer', type: 'http' }],
3354
- url: '/v1/user/stats',
3355
- ...options
3356
- });
3357
- exports.getUserStats = getUserStats;
3358
- /**
3359
- * List VPCs.
3360
- *
3361
- * Returns all VPCs belonging to the caller's project.
3362
- */
3363
- const listVpcs = (options) => (options?.client ?? client_gen_js_1.client).get({
3364
- security: [{ scheme: 'bearer', type: 'http' }],
3365
- url: '/v1/vpc',
3366
- ...options
3367
- });
3368
- exports.listVpcs = listVpcs;
3369
- /**
3370
- * Create a VPC.
3371
- *
3372
- * Provisions a VPC for the caller's project. Currently returns 501 —
3373
- * enforcement and durable storage are a planned capability.
3374
- */
3375
- const createVpc = (options) => (options.client ?? client_gen_js_1.client).post({
3376
- security: [{ scheme: 'bearer', type: 'http' }],
3377
- url: '/v1/vpc',
3378
- ...options,
3379
- headers: {
3380
- 'Content-Type': 'application/json',
3381
- ...options.headers
3382
- }
3383
- });
3384
- exports.createVpc = createVpc;
3385
- /**
3386
- * Delete a VPC.
3387
- *
3388
- * Removes a VPC and its peers by id.
3389
- */
3390
- const deleteVpc = (options) => (options.client ?? client_gen_js_1.client).delete({
3391
- security: [{ scheme: 'bearer', type: 'http' }],
3392
- url: '/v1/vpc/{id}',
3393
- ...options
3394
- });
3395
- exports.deleteVpc = deleteVpc;
3396
- /**
3397
- * Get a VPC.
3398
- *
3399
- * Returns a single VPC by id.
3400
- */
3401
- const getVpc = (options) => (options.client ?? client_gen_js_1.client).get({
3402
- security: [{ scheme: 'bearer', type: 'http' }],
3403
- url: '/v1/vpc/{id}',
3404
- ...options
3405
- });
3406
- exports.getVpc = getVpc;
3407
- /**
3408
- * Get a VPC's config.
3409
- *
3410
- * Returns the rendered VPN client configuration file for the VPC.
3411
- */
3412
- const getVpcConfig = (options) => (options.client ?? client_gen_js_1.client).get({
3413
- security: [{ scheme: 'bearer', type: 'http' }],
3414
- url: '/v1/vpc/{id}/config',
3415
- ...options
3416
- });
3417
- exports.getVpcConfig = getVpcConfig;
3418
- /**
3419
- * List a VPC's peers.
3420
- *
3421
- * Returns all peers registered in the VPC.
3422
- */
3423
- const listVpcPeers = (options) => (options.client ?? client_gen_js_1.client).get({
3424
- security: [{ scheme: 'bearer', type: 'http' }],
3425
- url: '/v1/vpc/{id}/peers',
3426
- ...options
3427
- });
3428
- exports.listVpcPeers = listVpcPeers;
3429
- /**
3430
- * Add a peer to a VPC.
3431
- *
3432
- * Registers a peer in the VPC. Currently returns 501 — peer
3433
- * enforcement and durable storage are a planned capability.
3434
- */
3435
- const addVpcPeer = (options) => (options.client ?? client_gen_js_1.client).post({
3436
- security: [{ scheme: 'bearer', type: 'http' }],
3437
- url: '/v1/vpc/{id}/peers',
3438
- ...options,
3439
- headers: {
3440
- 'Content-Type': 'application/json',
3441
- ...options.headers
3442
- }
3443
- });
3444
- exports.addVpcPeer = addVpcPeer;
3445
- /**
3446
- * Remove a peer from a VPC.
3447
- *
3448
- * Deletes a peer from the VPC by id.
3449
- */
3450
- const removeVpcPeer = (options) => (options.client ?? client_gen_js_1.client).delete({
3451
- security: [{ scheme: 'bearer', type: 'http' }],
3452
- url: '/v1/vpc/{id}/peers/{peer_id}',
3453
- ...options
3454
- });
3455
- exports.removeVpcPeer = removeVpcPeer;
3456
- /**
3457
- * List recent WAF events.
3458
- *
3459
- * Returns the most recent web application firewall events (up to 100).
3460
- */
3461
- const listWafEvents = (options) => (options?.client ?? client_gen_js_1.client).get({
3462
- security: [{ scheme: 'bearer', type: 'http' }],
3463
- url: '/v1/waf/events',
3464
- ...options
3465
- });
3466
- exports.listWafEvents = listWafEvents;
3467
- /**
3468
- * List WAF rules.
3469
- *
3470
- * Returns all configured web application firewall rules.
3471
- */
3472
- const listWafRules = (options) => (options?.client ?? client_gen_js_1.client).get({
3473
- security: [{ scheme: 'bearer', type: 'http' }],
3474
- url: '/v1/waf/rules',
3475
- ...options
3476
- });
3477
- exports.listWafRules = listWafRules;
3478
- /**
3479
- * Create a WAF rule.
3480
- *
3481
- * Adds a new web application firewall rule and returns the created rule.
3482
- */
3483
- const createWafRule = (options) => (options.client ?? client_gen_js_1.client).post({
3484
- security: [{ scheme: 'bearer', type: 'http' }],
3485
- url: '/v1/waf/rules',
3486
- ...options,
3487
- headers: {
3488
- 'Content-Type': 'application/json',
3489
- ...options.headers
3490
- }
3491
- });
3492
- exports.createWafRule = createWafRule;
3493
- /**
3494
- * Delete a WAF rule.
3495
- *
3496
- * Removes a web application firewall rule by id.
3497
- */
3498
- const deleteWafRule = (options) => (options.client ?? client_gen_js_1.client).delete({
3499
- security: [{ scheme: 'bearer', type: 'http' }],
3500
- url: '/v1/waf/rules/{id}',
3501
- ...options
3502
- });
3503
- exports.deleteWafRule = deleteWafRule;
3504
- /**
3505
- * Update a WAF rule.
3506
- *
3507
- * Replaces the configuration of an existing web application firewall rule.
3508
- */
3509
- const updateWafRule = (options) => (options.client ?? client_gen_js_1.client).put({
3510
- security: [{ scheme: 'bearer', type: 'http' }],
3511
- url: '/v1/waf/rules/{id}',
3512
- ...options,
3513
- headers: {
3514
- 'Content-Type': 'application/json',
3515
- ...options.headers
3516
- }
3517
- });
3518
- exports.updateWafRule = updateWafRule;
3519
- /**
3520
- * Get WAF statistics.
3521
- *
3522
- * Returns combined web application firewall and DDoS-detector counters.
3523
- */
3524
- const getWafStats = (options) => (options?.client ?? client_gen_js_1.client).get({
3525
- security: [{ scheme: 'bearer', type: 'http' }],
3526
- url: '/v1/waf/stats',
3527
- ...options
3528
- });
3529
- exports.getWafStats = getWafStats;
3530
1472
  //# sourceMappingURL=sdk.gen.js.map