@scalix-world/sdk 1.4.0 → 1.5.0

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