@scalix-world/sdk 1.2.0 → 1.3.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.
Files changed (178) hide show
  1. package/README.md +24 -115
  2. package/dist/generated/client/client.gen.d.ts +3 -0
  3. package/dist/generated/client/client.gen.d.ts.map +1 -0
  4. package/dist/generated/client/client.gen.js +217 -0
  5. package/dist/generated/client/client.gen.js.map +1 -0
  6. package/dist/generated/client/index.d.ts +11 -0
  7. package/dist/generated/client/index.d.ts.map +1 -0
  8. package/dist/generated/client/index.js +7 -0
  9. package/dist/generated/client/index.js.map +1 -0
  10. package/dist/generated/client/types.gen.d.ts +121 -0
  11. package/dist/generated/client/types.gen.d.ts.map +1 -0
  12. package/dist/generated/client/types.gen.js +3 -0
  13. package/dist/generated/client/types.gen.js.map +1 -0
  14. package/dist/generated/client/utils.gen.d.ts +38 -0
  15. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  16. package/dist/generated/client/utils.gen.js +229 -0
  17. package/dist/generated/client/utils.gen.js.map +1 -0
  18. package/dist/generated/client.gen.d.ts +13 -0
  19. package/dist/generated/client.gen.d.ts.map +1 -0
  20. package/dist/generated/client.gen.js +4 -0
  21. package/dist/generated/client.gen.js.map +1 -0
  22. package/dist/generated/core/auth.gen.d.ts +26 -0
  23. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  24. package/dist/generated/core/auth.gen.js +15 -0
  25. package/dist/generated/core/auth.gen.js.map +1 -0
  26. package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
  27. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  28. package/dist/generated/core/bodySerializer.gen.js +58 -0
  29. package/dist/generated/core/bodySerializer.gen.js.map +1 -0
  30. package/dist/generated/core/params.gen.d.ts +44 -0
  31. package/dist/generated/core/params.gen.d.ts.map +1 -0
  32. package/dist/generated/core/params.gen.js +110 -0
  33. package/dist/generated/core/params.gen.js.map +1 -0
  34. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  35. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  36. package/dist/generated/core/pathSerializer.gen.js +107 -0
  37. package/dist/generated/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
  39. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  40. package/dist/generated/core/queryKeySerializer.gen.js +93 -0
  41. package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
  42. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  43. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  44. package/dist/generated/core/serverSentEvents.gen.js +133 -0
  45. package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
  46. package/dist/generated/core/types.gen.d.ts +84 -0
  47. package/dist/generated/core/types.gen.d.ts.map +1 -0
  48. package/dist/generated/core/types.gen.js +3 -0
  49. package/dist/generated/core/types.gen.js.map +1 -0
  50. package/dist/generated/core/utils.gen.d.ts +20 -0
  51. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  52. package/dist/generated/core/utils.gen.js +88 -0
  53. package/dist/generated/core/utils.gen.js.map +1 -0
  54. package/dist/generated/index.d.ts +3 -0
  55. package/dist/generated/index.d.ts.map +1 -0
  56. package/dist/generated/index.js +3 -0
  57. package/dist/generated/index.js.map +1 -0
  58. package/dist/generated/sdk.gen.d.ts +1395 -0
  59. package/dist/generated/sdk.gen.d.ts.map +1 -0
  60. package/dist/generated/sdk.gen.js +2543 -0
  61. package/dist/generated/sdk.gen.js.map +1 -0
  62. package/dist/generated/types.gen.d.ts +7304 -0
  63. package/dist/generated/types.gen.d.ts.map +1 -0
  64. package/dist/generated/types.gen.js +3 -0
  65. package/dist/generated/types.gen.js.map +1 -0
  66. package/dist/index.d.ts +5 -25
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +5 -22
  69. package/dist/index.js.map +1 -1
  70. package/package.json +9 -12
  71. package/dist/client.d.ts +0 -82
  72. package/dist/client.d.ts.map +0 -1
  73. package/dist/client.js +0 -117
  74. package/dist/client.js.map +0 -1
  75. package/dist/config.d.ts +0 -7
  76. package/dist/config.d.ts.map +0 -1
  77. package/dist/config.js +0 -2
  78. package/dist/config.js.map +0 -1
  79. package/dist/errors.d.ts +0 -35
  80. package/dist/errors.d.ts.map +0 -1
  81. package/dist/errors.js +0 -61
  82. package/dist/errors.js.map +0 -1
  83. package/dist/services/account.d.ts +0 -27
  84. package/dist/services/account.d.ts.map +0 -1
  85. package/dist/services/account.js +0 -16
  86. package/dist/services/account.js.map +0 -1
  87. package/dist/services/audio.d.ts +0 -28
  88. package/dist/services/audio.d.ts.map +0 -1
  89. package/dist/services/audio.js +0 -35
  90. package/dist/services/audio.js.map +0 -1
  91. package/dist/services/auth.d.ts +0 -80
  92. package/dist/services/auth.d.ts.map +0 -1
  93. package/dist/services/auth.js +0 -54
  94. package/dist/services/auth.js.map +0 -1
  95. package/dist/services/base.d.ts +0 -22
  96. package/dist/services/base.d.ts.map +0 -1
  97. package/dist/services/base.js +0 -192
  98. package/dist/services/base.js.map +0 -1
  99. package/dist/services/compute.d.ts +0 -36
  100. package/dist/services/compute.d.ts.map +0 -1
  101. package/dist/services/compute.js +0 -27
  102. package/dist/services/compute.js.map +0 -1
  103. package/dist/services/cron.d.ts +0 -22
  104. package/dist/services/cron.d.ts.map +0 -1
  105. package/dist/services/cron.js +0 -16
  106. package/dist/services/cron.js.map +0 -1
  107. package/dist/services/database.d.ts +0 -34
  108. package/dist/services/database.d.ts.map +0 -1
  109. package/dist/services/database.js +0 -20
  110. package/dist/services/database.js.map +0 -1
  111. package/dist/services/docgen.d.ts +0 -63
  112. package/dist/services/docgen.d.ts.map +0 -1
  113. package/dist/services/docgen.js +0 -49
  114. package/dist/services/docgen.js.map +0 -1
  115. package/dist/services/domains.d.ts +0 -23
  116. package/dist/services/domains.d.ts.map +0 -1
  117. package/dist/services/domains.js +0 -16
  118. package/dist/services/domains.js.map +0 -1
  119. package/dist/services/embeddings.d.ts +0 -24
  120. package/dist/services/embeddings.d.ts.map +0 -1
  121. package/dist/services/embeddings.js +0 -14
  122. package/dist/services/embeddings.js.map +0 -1
  123. package/dist/services/events.d.ts +0 -18
  124. package/dist/services/events.d.ts.map +0 -1
  125. package/dist/services/events.js +0 -18
  126. package/dist/services/events.js.map +0 -1
  127. package/dist/services/functions.d.ts +0 -36
  128. package/dist/services/functions.d.ts.map +0 -1
  129. package/dist/services/functions.js +0 -21
  130. package/dist/services/functions.js.map +0 -1
  131. package/dist/services/images.d.ts +0 -24
  132. package/dist/services/images.d.ts.map +0 -1
  133. package/dist/services/images.js +0 -22
  134. package/dist/services/images.js.map +0 -1
  135. package/dist/services/index.d.ts +0 -42
  136. package/dist/services/index.d.ts.map +0 -1
  137. package/dist/services/index.js +0 -22
  138. package/dist/services/index.js.map +0 -1
  139. package/dist/services/kv.d.ts +0 -14
  140. package/dist/services/kv.d.ts.map +0 -1
  141. package/dist/services/kv.js +0 -20
  142. package/dist/services/kv.js.map +0 -1
  143. package/dist/services/models.d.ts +0 -16
  144. package/dist/services/models.d.ts.map +0 -1
  145. package/dist/services/models.js +0 -12
  146. package/dist/services/models.js.map +0 -1
  147. package/dist/services/rag.d.ts +0 -44
  148. package/dist/services/rag.d.ts.map +0 -1
  149. package/dist/services/rag.js +0 -26
  150. package/dist/services/rag.js.map +0 -1
  151. package/dist/services/realtime.d.ts +0 -75
  152. package/dist/services/realtime.d.ts.map +0 -1
  153. package/dist/services/realtime.js +0 -297
  154. package/dist/services/realtime.js.map +0 -1
  155. package/dist/services/research.d.ts +0 -23
  156. package/dist/services/research.d.ts.map +0 -1
  157. package/dist/services/research.js +0 -16
  158. package/dist/services/research.js.map +0 -1
  159. package/dist/services/run.d.ts +0 -54
  160. package/dist/services/run.d.ts.map +0 -1
  161. package/dist/services/run.js +0 -44
  162. package/dist/services/run.js.map +0 -1
  163. package/dist/services/search.d.ts +0 -32
  164. package/dist/services/search.d.ts.map +0 -1
  165. package/dist/services/search.js +0 -25
  166. package/dist/services/search.js.map +0 -1
  167. package/dist/services/shield.d.ts +0 -48
  168. package/dist/services/shield.d.ts.map +0 -1
  169. package/dist/services/shield.js +0 -59
  170. package/dist/services/shield.js.map +0 -1
  171. package/dist/services/storage.d.ts +0 -9
  172. package/dist/services/storage.d.ts.map +0 -1
  173. package/dist/services/storage.js +0 -9
  174. package/dist/services/storage.js.map +0 -1
  175. package/dist/services/text.d.ts +0 -61
  176. package/dist/services/text.d.ts.map +0 -1
  177. package/dist/services/text.js +0 -38
  178. package/dist/services/text.js.map +0 -1
@@ -0,0 +1,2543 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from './client.gen';
3
+ /**
4
+ * Detect database anomalies.
5
+ *
6
+ * Analyzes recent activity and returns a report of detected database anomalies.
7
+ */
8
+ export const detectAnomalies = (options) => (options?.client ?? client).post({
9
+ security: [{ scheme: 'bearer', type: 'http' }],
10
+ url: '/api/v1/anomalies',
11
+ ...options
12
+ });
13
+ /**
14
+ * Decrypt data.
15
+ *
16
+ * Decrypts the supplied ciphertext and returns the plaintext.
17
+ */
18
+ export const decryptData = (options) => (options?.client ?? client).post({
19
+ security: [{ scheme: 'bearer', type: 'http' }],
20
+ url: '/api/v1/encryption/decrypt',
21
+ ...options
22
+ });
23
+ /**
24
+ * Encrypt data.
25
+ *
26
+ * Encrypts the supplied plaintext and returns the ciphertext.
27
+ */
28
+ export const encryptData = (options) => (options?.client ?? client).post({
29
+ security: [{ scheme: 'bearer', type: 'http' }],
30
+ url: '/api/v1/encryption/encrypt',
31
+ ...options
32
+ });
33
+ /**
34
+ * Rotate the encryption key.
35
+ *
36
+ * Rotates the tenant's encryption key.
37
+ */
38
+ export const rotateEncryptionKey = (options) => (options?.client ?? client).post({
39
+ security: [{ scheme: 'bearer', type: 'http' }],
40
+ url: '/api/v1/encryption/rotate-key',
41
+ ...options
42
+ });
43
+ /**
44
+ * List MCP tools.
45
+ *
46
+ * Returns the MCP tool definitions available to the caller.
47
+ */
48
+ export const listMcpTools = (options) => (options?.client ?? client).get({
49
+ security: [{ scheme: 'bearer', type: 'http' }],
50
+ url: '/api/v1/mcp',
51
+ ...options
52
+ });
53
+ /**
54
+ * Call an MCP tool.
55
+ *
56
+ * Invokes an MCP tool and returns its result.
57
+ */
58
+ export const callMcpTool = (options) => (options?.client ?? client).post({
59
+ security: [{ scheme: 'bearer', type: 'http' }],
60
+ url: '/api/v1/mcp/call',
61
+ ...options
62
+ });
63
+ /**
64
+ * Translate natural language to SQL.
65
+ *
66
+ * Generates a SQL statement from a natural-language description of the desired query.
67
+ */
68
+ export const naturalLanguageToSql = (options) => (options?.client ?? client).post({
69
+ security: [{ scheme: 'bearer', type: 'http' }],
70
+ url: '/api/v1/nl-to-sql',
71
+ ...options
72
+ });
73
+ /**
74
+ * Get query optimization suggestions.
75
+ *
76
+ * Analyzes the tenant's database and returns indexing and query optimization suggestions.
77
+ */
78
+ export const optimizeQuery = (options) => (options?.client ?? client).post({
79
+ security: [{ scheme: 'bearer', type: 'http' }],
80
+ url: '/api/v1/optimize',
81
+ ...options
82
+ });
83
+ /**
84
+ * List recent query logs.
85
+ *
86
+ * Returns recent query-log entries for a tenant, newest first.
87
+ */
88
+ export const listQueryLogs = (options) => (options.client ?? client).get({
89
+ security: [{ scheme: 'bearer', type: 'http' }],
90
+ url: '/api/v1/query-logs/{tenant_id}',
91
+ ...options
92
+ });
93
+ /**
94
+ * Get scaling suggestions.
95
+ *
96
+ * Returns capacity and scaling recommendations for the tenant's database.
97
+ */
98
+ export const getScalingSuggestions = (options) => (options?.client ?? client).get({
99
+ security: [{ scheme: 'bearer', type: 'http' }],
100
+ url: '/api/v1/scaling',
101
+ ...options
102
+ });
103
+ /**
104
+ * Get the database schema.
105
+ *
106
+ * Returns the tables, views, and types in the tenant's database.
107
+ */
108
+ export const getSchema = (options) => (options?.client ?? client).get({
109
+ security: [{ scheme: 'bearer', type: 'http' }],
110
+ url: '/api/v1/schema',
111
+ ...options
112
+ });
113
+ /**
114
+ * Search schema columns.
115
+ *
116
+ * Returns columns across the schema matching an optional name search term.
117
+ */
118
+ export const searchSchemaColumns = (options) => (options?.client ?? client).get({
119
+ security: [{ scheme: 'bearer', type: 'http' }],
120
+ url: '/api/v1/schema/columns',
121
+ ...options
122
+ });
123
+ /**
124
+ * Analyze PII columns.
125
+ *
126
+ * Returns columns flagged as likely personally identifiable information.
127
+ */
128
+ export const listPiiColumns = (options) => (options?.client ?? client).get({
129
+ security: [{ scheme: 'bearer', type: 'http' }],
130
+ url: '/api/v1/schema/pii',
131
+ ...options
132
+ });
133
+ /**
134
+ * List schema relationships.
135
+ *
136
+ * Returns the foreign-key relationships between tables in the schema.
137
+ */
138
+ export const getSchemaRelationships = (options) => (options?.client ?? client).get({
139
+ security: [{ scheme: 'bearer', type: 'http' }],
140
+ url: '/api/v1/schema/relationships',
141
+ ...options
142
+ });
143
+ /**
144
+ * Get a table's schema.
145
+ *
146
+ * Returns the columns and types for a single table.
147
+ */
148
+ export const getTableSchema = (options) => (options.client ?? client).get({
149
+ security: [{ scheme: 'bearer', type: 'http' }],
150
+ url: '/api/v1/schema/table/{name}',
151
+ ...options
152
+ });
153
+ /**
154
+ * Get service status.
155
+ *
156
+ * Returns the operational status of Scalix Cloud services.
157
+ */
158
+ export const getServicesStatus = (options) => (options?.client ?? client).get({
159
+ security: [{ scheme: 'bearer', type: 'http' }],
160
+ url: '/api/v1/services',
161
+ ...options
162
+ });
163
+ /**
164
+ * Execute a SQL query.
165
+ *
166
+ * Runs a parameterized SQL statement against the tenant's database and returns the result set.
167
+ */
168
+ export const executeSql = (options) => (options.client ?? client).post({
169
+ security: [{ scheme: 'bearer', type: 'http' }],
170
+ url: '/api/v1/sql',
171
+ ...options,
172
+ headers: {
173
+ 'Content-Type': 'application/json',
174
+ ...options.headers
175
+ }
176
+ });
177
+ /**
178
+ * Execute a batch of SQL queries.
179
+ *
180
+ * Runs multiple SQL statements in one request; each query executes independently and returns its own result set.
181
+ */
182
+ export const batchSql = (options) => (options.client ?? client).post({
183
+ security: [{ scheme: 'bearer', type: 'http' }],
184
+ url: '/api/v1/sql/batch',
185
+ ...options,
186
+ headers: {
187
+ 'Content-Type': 'application/json',
188
+ ...options.headers
189
+ }
190
+ });
191
+ /**
192
+ * Register a migration.
193
+ *
194
+ * Registers a database migration for a tenant.
195
+ */
196
+ export const registerMigration = (options) => (options.client ?? client).post({
197
+ security: [{ scheme: 'bearer', type: 'http' }],
198
+ url: '/api/v1/tenants/{tenant_id}/migrations',
199
+ ...options
200
+ });
201
+ /**
202
+ * Get the migration plan.
203
+ *
204
+ * Returns the pending migrations for a tenant.
205
+ */
206
+ export const getMigrationPlan = (options) => (options.client ?? client).get({
207
+ security: [{ scheme: 'bearer', type: 'http' }],
208
+ url: '/api/v1/tenants/{tenant_id}/migrations/plan',
209
+ ...options
210
+ });
211
+ /**
212
+ * Restore to a point in time.
213
+ *
214
+ * Initiates a point-in-time restore of a tenant's database.
215
+ */
216
+ export const restorePitr = (options) => (options.client ?? client).post({
217
+ security: [{ scheme: 'bearer', type: 'http' }],
218
+ url: '/api/v1/tenants/{tenant_id}/pitr/restore',
219
+ ...options
220
+ });
221
+ /**
222
+ * Create a realtime subscription.
223
+ *
224
+ * Creates a realtime subscription for a tenant.
225
+ */
226
+ export const subscribeRealtime = (options) => (options.client ?? client).post({
227
+ security: [{ scheme: 'bearer', type: 'http' }],
228
+ url: '/api/v1/tenants/{tenant_id}/realtime/subscribe',
229
+ ...options
230
+ });
231
+ /**
232
+ * Open a realtime WebSocket.
233
+ *
234
+ * Upgrades the connection to a realtime WebSocket stream for a tenant.
235
+ */
236
+ export const realtimeWebsocket = (options) => (options.client ?? client).get({
237
+ security: [{ scheme: 'bearer', type: 'http' }],
238
+ url: '/api/v1/tenants/{tenant_id}/realtime/ws',
239
+ ...options
240
+ });
241
+ /**
242
+ * Batch upsert vectors.
243
+ *
244
+ * Inserts or updates many vectors in a collection in a single request
245
+ * (one multi-row write). Returns the number of vectors upserted.
246
+ */
247
+ export const batchUpsertVectors = (options) => (options.client ?? client).post({
248
+ security: [{ scheme: 'bearer', type: 'http' }],
249
+ url: '/api/v1/tenants/{tenant_id}/vectors/batch/upsert',
250
+ ...options,
251
+ headers: {
252
+ 'Content-Type': 'application/json',
253
+ ...options.headers
254
+ }
255
+ });
256
+ /**
257
+ * List vector collections.
258
+ *
259
+ * Returns the vector collections for a tenant.
260
+ */
261
+ export const listVectorCollections = (options) => (options.client ?? client).get({
262
+ security: [{ scheme: 'bearer', type: 'http' }],
263
+ url: '/api/v1/tenants/{tenant_id}/vectors/collections',
264
+ ...options
265
+ });
266
+ /**
267
+ * Create a vector collection.
268
+ *
269
+ * Creates a new vector collection for a tenant.
270
+ */
271
+ export const createVectorCollection = (options) => (options.client ?? client).post({
272
+ security: [{ scheme: 'bearer', type: 'http' }],
273
+ url: '/api/v1/tenants/{tenant_id}/vectors/collections',
274
+ ...options
275
+ });
276
+ /**
277
+ * Search vectors.
278
+ *
279
+ * Runs a nearest-neighbour vector search and returns scored matches.
280
+ */
281
+ export const searchVectors = (options) => (options.client ?? client).post({
282
+ security: [{ scheme: 'bearer', type: 'http' }],
283
+ url: '/api/v1/tenants/{tenant_id}/vectors/search',
284
+ ...options,
285
+ headers: {
286
+ 'Content-Type': 'application/json',
287
+ ...options.headers
288
+ }
289
+ });
290
+ /**
291
+ * Upsert vectors.
292
+ *
293
+ * Inserts or updates a batch of vectors in a collection.
294
+ */
295
+ export const upsertVectors = (options) => (options.client ?? client).post({
296
+ security: [{ scheme: 'bearer', type: 'http' }],
297
+ url: '/api/v1/tenants/{tenant_id}/vectors/upsert',
298
+ ...options,
299
+ headers: {
300
+ 'Content-Type': 'application/json',
301
+ ...options.headers
302
+ }
303
+ });
304
+ /**
305
+ * List webhooks.
306
+ *
307
+ * Returns the registered webhook endpoints for a tenant.
308
+ */
309
+ export const listWebhooks = (options) => (options.client ?? client).get({
310
+ security: [{ scheme: 'bearer', type: 'http' }],
311
+ url: '/api/v1/tenants/{tenant_id}/webhooks',
312
+ ...options
313
+ });
314
+ /**
315
+ * Register a webhook.
316
+ *
317
+ * Registers a webhook endpoint for a set of event types.
318
+ */
319
+ export const registerWebhook = (options) => (options.client ?? client).post({
320
+ security: [{ scheme: 'bearer', type: 'http' }],
321
+ url: '/api/v1/tenants/{tenant_id}/webhooks',
322
+ ...options,
323
+ headers: {
324
+ 'Content-Type': 'application/json',
325
+ ...options.headers
326
+ }
327
+ });
328
+ /**
329
+ * Create a token.
330
+ *
331
+ * Creates a new API token for the caller.
332
+ */
333
+ export const createToken = (options) => (options?.client ?? client).post({
334
+ security: [{ scheme: 'bearer', type: 'http' }],
335
+ url: '/api/v1/token',
336
+ ...options
337
+ });
338
+ /**
339
+ * Revoke a token.
340
+ *
341
+ * Revokes an API token by id.
342
+ */
343
+ export const revokeToken = (options) => (options.client ?? client).delete({
344
+ security: [{ scheme: 'bearer', type: 'http' }],
345
+ url: '/api/v1/token/{id}',
346
+ ...options
347
+ });
348
+ /**
349
+ * Get usage summary.
350
+ *
351
+ * Returns the caller's aggregate usage summary.
352
+ */
353
+ export const getUsageSummary = (options) => (options?.client ?? client).get({
354
+ security: [{ scheme: 'bearer', type: 'http' }],
355
+ url: '/api/v1/usage',
356
+ ...options
357
+ });
358
+ /**
359
+ * Liveness probe.
360
+ *
361
+ * Returns 200 while the gateway process is alive.
362
+ */
363
+ export const healthz = (options) => (options?.client ?? client).get({ url: '/healthz', ...options });
364
+ /**
365
+ * Get the OpenAPI spec.
366
+ *
367
+ * Returns this OpenAPI specification document.
368
+ */
369
+ export const getOpenapiSpec = (options) => (options?.client ?? client).get({ url: '/openapi.json', ...options });
370
+ /**
371
+ * Readiness probe.
372
+ *
373
+ * Returns 200 when the gateway is ready to serve traffic.
374
+ */
375
+ export const readyz = (options) => (options?.client ?? client).get({ url: '/readyz', ...options });
376
+ /**
377
+ * Generate speech.
378
+ *
379
+ * Synthesizes audio from text (text-to-speech).
380
+ */
381
+ export const generateSpeech = (options) => (options.client ?? client).post({
382
+ security: [{ scheme: 'bearer', type: 'http' }],
383
+ url: '/v1/ai/audio/speech',
384
+ ...options,
385
+ headers: {
386
+ 'Content-Type': 'application/json',
387
+ ...options.headers
388
+ }
389
+ });
390
+ /**
391
+ * Transcribe audio.
392
+ *
393
+ * Converts an uploaded audio file to text (speech-to-text).
394
+ */
395
+ export const transcribeAudio = (options) => (options.client ?? client).post({
396
+ security: [{ scheme: 'bearer', type: 'http' }],
397
+ url: '/v1/ai/audio/transcriptions',
398
+ ...options,
399
+ headers: {
400
+ 'Content-Type': 'application/json',
401
+ ...options.headers
402
+ }
403
+ });
404
+ /**
405
+ * Create a chat completion.
406
+ *
407
+ * Runs an OpenAI-compatible chat completion and returns the model's response.
408
+ */
409
+ export const chatCompletion = (options) => (options.client ?? client).post({
410
+ security: [{ scheme: 'bearer', type: 'http' }],
411
+ url: '/v1/ai/chat/completions',
412
+ ...options,
413
+ headers: {
414
+ 'Content-Type': 'application/json',
415
+ ...options.headers
416
+ }
417
+ });
418
+ /**
419
+ * Stream a chat completion.
420
+ *
421
+ * Runs an OpenAI-compatible chat completion and streams the response as server-sent events.
422
+ */
423
+ export const streamChatCompletion = (options) => (options.client ?? client).post({
424
+ security: [{ scheme: 'bearer', type: 'http' }],
425
+ url: '/v1/ai/chat/completions/stream',
426
+ ...options,
427
+ headers: {
428
+ 'Content-Type': 'application/json',
429
+ ...options.headers
430
+ }
431
+ });
432
+ /**
433
+ * Generate a document.
434
+ *
435
+ * Generates a document from the supplied request.
436
+ */
437
+ export const createDocgen = (options) => (options.client ?? client).post({
438
+ security: [{ scheme: 'bearer', type: 'http' }],
439
+ url: '/v1/ai/docgen/create',
440
+ ...options,
441
+ headers: {
442
+ 'Content-Type': 'application/json',
443
+ ...options.headers
444
+ }
445
+ });
446
+ /**
447
+ * Download a generated document.
448
+ *
449
+ * Downloads the generated document file by id.
450
+ */
451
+ export const downloadDocgen = (options) => (options.client ?? client).get({
452
+ security: [{ scheme: 'bearer', type: 'http' }],
453
+ url: '/v1/ai/docgen/download/{doc_id}',
454
+ ...options
455
+ });
456
+ /**
457
+ * List docgen formats.
458
+ *
459
+ * Returns the output formats supported by document generation.
460
+ */
461
+ export const listDocgenFormats = (options) => (options?.client ?? client).get({
462
+ security: [{ scheme: 'bearer', type: 'http' }],
463
+ url: '/v1/ai/docgen/formats',
464
+ ...options
465
+ });
466
+ /**
467
+ * Get docgen history.
468
+ *
469
+ * Returns the caller's document-generation history.
470
+ */
471
+ export const getDocgenHistory = (options) => (options?.client ?? client).get({
472
+ security: [{ scheme: 'bearer', type: 'http' }],
473
+ url: '/v1/ai/docgen/history',
474
+ ...options
475
+ });
476
+ /**
477
+ * Preview a generated document.
478
+ *
479
+ * Returns a preview of a document without finalizing it.
480
+ */
481
+ export const previewDocgen = (options) => (options.client ?? client).post({
482
+ security: [{ scheme: 'bearer', type: 'http' }],
483
+ url: '/v1/ai/docgen/preview',
484
+ ...options,
485
+ headers: {
486
+ 'Content-Type': 'application/json',
487
+ ...options.headers
488
+ }
489
+ });
490
+ /**
491
+ * Revise a generated document.
492
+ *
493
+ * Applies revisions to a previously generated document.
494
+ */
495
+ export const reviseDocgen = (options) => (options.client ?? client).post({
496
+ security: [{ scheme: 'bearer', type: 'http' }],
497
+ url: '/v1/ai/docgen/revise',
498
+ ...options,
499
+ headers: {
500
+ 'Content-Type': 'application/json',
501
+ ...options.headers
502
+ }
503
+ });
504
+ /**
505
+ * Get docgen status.
506
+ *
507
+ * Returns the status of the document-generation subsystem.
508
+ */
509
+ export const getDocgenStatus = (options) => (options?.client ?? client).get({
510
+ security: [{ scheme: 'bearer', type: 'http' }],
511
+ url: '/v1/ai/docgen/status',
512
+ ...options
513
+ });
514
+ /**
515
+ * List docgen templates.
516
+ *
517
+ * Returns the available document-generation templates.
518
+ */
519
+ export const listDocgenTemplates = (options) => (options?.client ?? client).get({
520
+ security: [{ scheme: 'bearer', type: 'http' }],
521
+ url: '/v1/ai/docgen/templates',
522
+ ...options
523
+ });
524
+ /**
525
+ * List document versions.
526
+ *
527
+ * Returns the version history of a generated document.
528
+ */
529
+ export const listDocgenVersions = (options) => (options.client ?? client).get({
530
+ security: [{ scheme: 'bearer', type: 'http' }],
531
+ url: '/v1/ai/docgen/versions/{doc_id}',
532
+ ...options
533
+ });
534
+ /**
535
+ * Create embeddings.
536
+ *
537
+ * Generates vector embeddings for the supplied input (OpenAI-compatible).
538
+ */
539
+ export const createEmbeddings = (options) => (options.client ?? client).post({
540
+ security: [{ scheme: 'bearer', type: 'http' }],
541
+ url: '/v1/ai/embeddings',
542
+ ...options,
543
+ headers: {
544
+ 'Content-Type': 'application/json',
545
+ ...options.headers
546
+ }
547
+ });
548
+ /**
549
+ * Generate images.
550
+ *
551
+ * Generates one or more images from a text prompt.
552
+ */
553
+ export const generateImage = (options) => (options.client ?? client).post({
554
+ security: [{ scheme: 'bearer', type: 'http' }],
555
+ url: '/v1/ai/images/generations',
556
+ ...options,
557
+ headers: {
558
+ 'Content-Type': 'application/json',
559
+ ...options.headers
560
+ }
561
+ });
562
+ /**
563
+ * List AI models.
564
+ *
565
+ * Returns the AI models available to the caller.
566
+ */
567
+ export const listModels = (options) => (options?.client ?? client).get({
568
+ security: [{ scheme: 'bearer', type: 'http' }],
569
+ url: '/v1/ai/models',
570
+ ...options
571
+ });
572
+ /**
573
+ * Get AI provider status.
574
+ *
575
+ * Returns the availability and health of the AI inference providers.
576
+ */
577
+ export const getAiProvidersStatus = (options) => (options?.client ?? client).get({
578
+ security: [{ scheme: 'bearer', type: 'http' }],
579
+ url: '/v1/ai/providers/status',
580
+ ...options
581
+ });
582
+ /**
583
+ * List RAG documents.
584
+ *
585
+ * Returns the documents indexed for retrieval-augmented generation.
586
+ */
587
+ export const listRagDocuments = (options) => (options?.client ?? client).get({
588
+ security: [{ scheme: 'bearer', type: 'http' }],
589
+ url: '/v1/ai/rag/documents',
590
+ ...options
591
+ });
592
+ /**
593
+ * Delete a RAG document.
594
+ *
595
+ * Removes a document from the retrieval-augmented generation index.
596
+ */
597
+ export const deleteRagDocument = (options) => (options.client ?? client).delete({
598
+ security: [{ scheme: 'bearer', type: 'http' }],
599
+ url: '/v1/ai/rag/documents/{doc_id}',
600
+ ...options
601
+ });
602
+ /**
603
+ * Query RAG documents.
604
+ *
605
+ * Runs a retrieval-augmented query over indexed documents and returns scored matches.
606
+ */
607
+ export const queryRag = (options) => (options.client ?? client).post({
608
+ security: [{ scheme: 'bearer', type: 'http' }],
609
+ url: '/v1/ai/rag/query',
610
+ ...options,
611
+ headers: {
612
+ 'Content-Type': 'application/json',
613
+ ...options.headers
614
+ }
615
+ });
616
+ /**
617
+ * Get RAG status.
618
+ *
619
+ * Returns the status of the retrieval-augmented generation subsystem.
620
+ */
621
+ export const getRagStatus = (options) => (options?.client ?? client).get({
622
+ security: [{ scheme: 'bearer', type: 'http' }],
623
+ url: '/v1/ai/rag/status',
624
+ ...options
625
+ });
626
+ /**
627
+ * Upload a RAG document.
628
+ *
629
+ * Uploads and indexes a document for retrieval-augmented generation.
630
+ */
631
+ export const uploadRagDocument = (options) => (options.client ?? client).post({
632
+ security: [{ scheme: 'bearer', type: 'http' }],
633
+ url: '/v1/ai/rag/upload',
634
+ ...options,
635
+ headers: {
636
+ 'Content-Type': 'application/json',
637
+ ...options.headers
638
+ }
639
+ });
640
+ /**
641
+ * Run web research.
642
+ *
643
+ * Answers a question using live web research and returns the answer with sources.
644
+ */
645
+ export const runResearch = (options) => (options.client ?? client).post({
646
+ security: [{ scheme: 'bearer', type: 'http' }],
647
+ url: '/v1/ai/research',
648
+ ...options,
649
+ headers: {
650
+ 'Content-Type': 'application/json',
651
+ ...options.headers
652
+ }
653
+ });
654
+ /**
655
+ * Run deep web research.
656
+ *
657
+ * Runs a multi-step deep web research task and returns a synthesized answer with sources.
658
+ */
659
+ export const runDeepResearch = (options) => (options.client ?? client).post({
660
+ security: [{ scheme: 'bearer', type: 'http' }],
661
+ url: '/v1/ai/research/deep',
662
+ ...options,
663
+ headers: {
664
+ 'Content-Type': 'application/json',
665
+ ...options.headers
666
+ }
667
+ });
668
+ /**
669
+ * Run a research search.
670
+ *
671
+ * Performs a web research search and returns matching results.
672
+ */
673
+ export const searchResearch = (options) => (options.client ?? client).post({
674
+ security: [{ scheme: 'bearer', type: 'http' }],
675
+ url: '/v1/ai/research/search',
676
+ ...options,
677
+ headers: {
678
+ 'Content-Type': 'application/json',
679
+ ...options.headers
680
+ }
681
+ });
682
+ /**
683
+ * Get research status.
684
+ *
685
+ * Returns the status of the web research subsystem.
686
+ */
687
+ export const getResearchStatus = (options) => (options?.client ?? client).get({
688
+ security: [{ scheme: 'bearer', type: 'http' }],
689
+ url: '/v1/ai/research/status',
690
+ ...options
691
+ });
692
+ /**
693
+ * Autocomplete text.
694
+ *
695
+ * Returns completion suggestions for the supplied text.
696
+ */
697
+ export const autocompleteText = (options) => (options.client ?? client).post({
698
+ security: [{ scheme: 'bearer', type: 'http' }],
699
+ url: '/v1/ai/text/autocomplete',
700
+ ...options,
701
+ headers: {
702
+ 'Content-Type': 'application/json',
703
+ ...options.headers
704
+ }
705
+ });
706
+ /**
707
+ * Check grammar.
708
+ *
709
+ * Returns grammar corrections for the supplied text.
710
+ */
711
+ export const checkGrammar = (options) => (options.client ?? client).post({
712
+ security: [{ scheme: 'bearer', type: 'http' }],
713
+ url: '/v1/ai/text/grammar',
714
+ ...options,
715
+ headers: {
716
+ 'Content-Type': 'application/json',
717
+ ...options.headers
718
+ }
719
+ });
720
+ /**
721
+ * Analyze sentiment.
722
+ *
723
+ * Returns the sentiment of the supplied text.
724
+ */
725
+ export const analyzeSentiment = (options) => (options.client ?? client).post({
726
+ security: [{ scheme: 'bearer', type: 'http' }],
727
+ url: '/v1/ai/text/sentiment',
728
+ ...options,
729
+ headers: {
730
+ 'Content-Type': 'application/json',
731
+ ...options.headers
732
+ }
733
+ });
734
+ /**
735
+ * Summarize text.
736
+ *
737
+ * Returns a summary of the supplied text.
738
+ */
739
+ export const summarizeText = (options) => (options.client ?? client).post({
740
+ security: [{ scheme: 'bearer', type: 'http' }],
741
+ url: '/v1/ai/text/summarize',
742
+ ...options,
743
+ headers: {
744
+ 'Content-Type': 'application/json',
745
+ ...options.headers
746
+ }
747
+ });
748
+ /**
749
+ * Translate text.
750
+ *
751
+ * Translates the supplied text to a target language.
752
+ */
753
+ export const translateText = (options) => (options.client ?? client).post({
754
+ security: [{ scheme: 'bearer', type: 'http' }],
755
+ url: '/v1/ai/text/translate',
756
+ ...options,
757
+ headers: {
758
+ 'Content-Type': 'application/json',
759
+ ...options.headers
760
+ }
761
+ });
762
+ /**
763
+ * Run in-context vector search.
764
+ *
765
+ * Runs a vector similarity search over supplied in-context text.
766
+ */
767
+ export const textVectorSearch = (options) => (options.client ?? client).post({
768
+ security: [{ scheme: 'bearer', type: 'http' }],
769
+ url: '/v1/ai/text/vector-search',
770
+ ...options,
771
+ headers: {
772
+ 'Content-Type': 'application/json',
773
+ ...options.headers
774
+ }
775
+ });
776
+ /**
777
+ * Log in.
778
+ *
779
+ * Authenticates an end user with email and password and returns auth tokens.
780
+ */
781
+ export const login = (options) => (options.client ?? client).post({
782
+ security: [{ scheme: 'bearer', type: 'http' }],
783
+ url: '/v1/auth/login',
784
+ ...options,
785
+ headers: {
786
+ 'Content-Type': 'application/json',
787
+ ...options.headers
788
+ }
789
+ });
790
+ /**
791
+ * Log out.
792
+ *
793
+ * Invalidates the caller's current session/token.
794
+ */
795
+ export const logout = (options) => (options?.client ?? client).post({
796
+ security: [{ scheme: 'bearer', type: 'http' }],
797
+ url: '/v1/auth/logout',
798
+ ...options
799
+ });
800
+ /**
801
+ * Send a magic link.
802
+ *
803
+ * Emails the user a passwordless magic sign-in link.
804
+ */
805
+ export const sendMagicLink = (options) => (options?.client ?? client).post({
806
+ security: [{ scheme: 'bearer', type: 'http' }],
807
+ url: '/v1/auth/magic-link',
808
+ ...options
809
+ });
810
+ /**
811
+ * Enroll in MFA.
812
+ *
813
+ * Begins TOTP multi-factor enrollment and returns the secret and QR code.
814
+ */
815
+ export const enrollMfa = (options) => (options?.client ?? client).post({
816
+ security: [{ scheme: 'bearer', type: 'http' }],
817
+ url: '/v1/auth/mfa/enroll',
818
+ ...options
819
+ });
820
+ /**
821
+ * Verify MFA.
822
+ *
823
+ * Verifies a TOTP code to complete multi-factor enrollment or a challenge.
824
+ */
825
+ export const verifyMfa = (options) => (options?.client ?? client).post({
826
+ security: [{ scheme: 'bearer', type: 'http' }],
827
+ url: '/v1/auth/mfa/verify',
828
+ ...options
829
+ });
830
+ /**
831
+ * Start OAuth authorization.
832
+ *
833
+ * Returns the provider authorization URL to begin an OAuth sign-in flow.
834
+ */
835
+ export const authorizeOauth = (options) => (options?.client ?? client).post({
836
+ security: [{ scheme: 'bearer', type: 'http' }],
837
+ url: '/v1/auth/oauth/authorize',
838
+ ...options
839
+ });
840
+ /**
841
+ * Complete OAuth sign-in.
842
+ *
843
+ * Exchanges the provider OAuth callback for Scalix auth tokens.
844
+ */
845
+ export const oauthCallback = (options) => (options?.client ?? client).post({
846
+ security: [{ scheme: 'bearer', type: 'http' }],
847
+ url: '/v1/auth/oauth/callback',
848
+ ...options
849
+ });
850
+ /**
851
+ * Send a one-time passcode.
852
+ *
853
+ * Sends the user a one-time passcode for passwordless sign-in.
854
+ */
855
+ export const sendOtp = (options) => (options?.client ?? client).post({
856
+ security: [{ scheme: 'bearer', type: 'http' }],
857
+ url: '/v1/auth/otp',
858
+ ...options
859
+ });
860
+ /**
861
+ * Refresh auth tokens.
862
+ *
863
+ * Exchanges a refresh token for a new access/refresh token pair.
864
+ */
865
+ export const refreshToken = (options) => (options?.client ?? client).post({
866
+ security: [{ scheme: 'bearer', type: 'http' }],
867
+ url: '/v1/auth/refresh',
868
+ ...options
869
+ });
870
+ /**
871
+ * Sign up a new user.
872
+ *
873
+ * Creates a new end-user account and returns auth tokens plus the created user.
874
+ */
875
+ export const signUp = (options) => (options.client ?? client).post({
876
+ security: [{ scheme: 'bearer', type: 'http' }],
877
+ url: '/v1/auth/signup',
878
+ ...options,
879
+ headers: {
880
+ 'Content-Type': 'application/json',
881
+ ...options.headers
882
+ }
883
+ });
884
+ /**
885
+ * Get the current user.
886
+ *
887
+ * Returns the authenticated end user's profile.
888
+ */
889
+ export const getAuthUser = (options) => (options?.client ?? client).get({
890
+ security: [{ scheme: 'bearer', type: 'http' }],
891
+ url: '/v1/auth/user',
892
+ ...options
893
+ });
894
+ /**
895
+ * Update the current user.
896
+ *
897
+ * Updates the authenticated end user's profile and returns the new record.
898
+ */
899
+ export const updateAuthUser = (options) => (options?.client ?? client).put({
900
+ security: [{ scheme: 'bearer', type: 'http' }],
901
+ url: '/v1/auth/user',
902
+ ...options
903
+ });
904
+ /**
905
+ * List consent records.
906
+ *
907
+ * Returns the authenticated user's consent audit trail.
908
+ */
909
+ export const listAuthUserConsent = (options) => (options?.client ?? client).get({
910
+ security: [{ scheme: 'bearer', type: 'http' }],
911
+ url: '/v1/auth/user/consent',
912
+ ...options
913
+ });
914
+ /**
915
+ * Record a consent decision.
916
+ *
917
+ * Records a single GDPR consent decision for the authenticated user.
918
+ */
919
+ export const recordAuthUserConsent = (options) => (options.client ?? client).post({
920
+ security: [{ scheme: 'bearer', type: 'http' }],
921
+ url: '/v1/auth/user/consent',
922
+ ...options,
923
+ headers: {
924
+ 'Content-Type': 'application/json',
925
+ ...options.headers
926
+ }
927
+ });
928
+ /**
929
+ * Export user data.
930
+ *
931
+ * Returns a complete export of the authenticated user's data (GDPR portability).
932
+ */
933
+ export const exportAuthUser = (options) => (options?.client ?? client).get({
934
+ security: [{ scheme: 'bearer', type: 'http' }],
935
+ url: '/v1/auth/user/export',
936
+ ...options
937
+ });
938
+ /**
939
+ * List builds.
940
+ *
941
+ * Returns the builds for the caller's project.
942
+ */
943
+ export const listBuilds = (options) => (options?.client ?? client).get({
944
+ security: [{ scheme: 'bearer', type: 'http' }],
945
+ url: '/v1/build',
946
+ ...options
947
+ });
948
+ /**
949
+ * Start a build.
950
+ *
951
+ * Starts a container image build and returns the build record.
952
+ */
953
+ export const createBuild = (options) => (options.client ?? client).post({
954
+ security: [{ scheme: 'bearer', type: 'http' }],
955
+ url: '/v1/build',
956
+ ...options,
957
+ headers: {
958
+ 'Content-Type': 'application/json',
959
+ ...options.headers
960
+ }
961
+ });
962
+ /**
963
+ * Get a build.
964
+ *
965
+ * Returns a single build by id.
966
+ */
967
+ export const getBuild = (options) => (options.client ?? client).get({
968
+ security: [{ scheme: 'bearer', type: 'http' }],
969
+ url: '/v1/build/{id}',
970
+ ...options
971
+ });
972
+ /**
973
+ * Cancel a build.
974
+ *
975
+ * Cancels an in-progress build.
976
+ */
977
+ export const cancelBuild = (options) => (options.client ?? client).post({
978
+ security: [{ scheme: 'bearer', type: 'http' }],
979
+ url: '/v1/build/{id}/cancel',
980
+ ...options
981
+ });
982
+ /**
983
+ * Get build logs.
984
+ *
985
+ * Returns log output for a build.
986
+ */
987
+ export const getBuildLogs = (options) => (options.client ?? client).get({
988
+ security: [{ scheme: 'bearer', type: 'http' }],
989
+ url: '/v1/build/{id}/logs',
990
+ ...options
991
+ });
992
+ /**
993
+ * Query the audit log.
994
+ *
995
+ * Returns audit events for the caller's tenant, filterable by action and time
996
+ * range. The tenant scope is always taken from the token, never the query.
997
+ */
998
+ export const queryAuditLog = (options) => (options?.client ?? client).get({
999
+ security: [{ scheme: 'bearer', type: 'http' }],
1000
+ url: '/v1/compliance/audit',
1001
+ ...options
1002
+ });
1003
+ /**
1004
+ * Export the audit log.
1005
+ *
1006
+ * Returns the full audit trail for the caller's tenant for compliance export.
1007
+ */
1008
+ export const exportAuditLog = (options) => (options?.client ?? client).get({
1009
+ security: [{ scheme: 'bearer', type: 'http' }],
1010
+ url: '/v1/compliance/audit/export',
1011
+ ...options
1012
+ });
1013
+ /**
1014
+ * List GDPR requests.
1015
+ *
1016
+ * Returns the data-subject requests for the caller's tenant.
1017
+ */
1018
+ export const listGdprRequests = (options) => (options?.client ?? client).get({
1019
+ security: [{ scheme: 'bearer', type: 'http' }],
1020
+ url: '/v1/compliance/gdpr/requests',
1021
+ ...options
1022
+ });
1023
+ /**
1024
+ * Create a GDPR request.
1025
+ *
1026
+ * Files a GDPR data-subject request (access / erasure / rectification). This is
1027
+ * intake only: the request is persisted with status `pending`; export and
1028
+ * erasure are fulfilled out of band.
1029
+ */
1030
+ export const createGdprRequest = (options) => (options.client ?? client).post({
1031
+ security: [{ scheme: 'bearer', type: 'http' }],
1032
+ url: '/v1/compliance/gdpr/requests',
1033
+ ...options,
1034
+ headers: {
1035
+ 'Content-Type': 'application/json',
1036
+ ...options.headers
1037
+ }
1038
+ });
1039
+ /**
1040
+ * Get a GDPR request.
1041
+ *
1042
+ * Returns a single GDPR data-subject request by id.
1043
+ */
1044
+ export const getGdprRequest = (options) => (options.client ?? client).get({
1045
+ security: [{ scheme: 'bearer', type: 'http' }],
1046
+ url: '/v1/compliance/gdpr/requests/{id}',
1047
+ ...options
1048
+ });
1049
+ /**
1050
+ * Get compliance status.
1051
+ *
1052
+ * Runs the compliance checks (encryption, audit, access controls) and returns
1053
+ * each check's result plus an overall score.
1054
+ */
1055
+ export const getComplianceStatus = (options) => (options?.client ?? client).get({
1056
+ security: [{ scheme: 'bearer', type: 'http' }],
1057
+ url: '/v1/compliance/status',
1058
+ ...options
1059
+ });
1060
+ /**
1061
+ * List deployments.
1062
+ *
1063
+ * Returns all compute deployments for the caller's project.
1064
+ */
1065
+ export const listDeployments = (options) => (options?.client ?? client).get({
1066
+ security: [{ scheme: 'bearer', type: 'http' }],
1067
+ url: '/v1/compute/deployments',
1068
+ ...options
1069
+ });
1070
+ /**
1071
+ * Create a deployment.
1072
+ *
1073
+ * Deploys a container/VM compute workload and returns the created deployment.
1074
+ */
1075
+ export const createDeployment = (options) => (options.client ?? client).post({
1076
+ security: [{ scheme: 'bearer', type: 'http' }],
1077
+ url: '/v1/compute/deployments',
1078
+ ...options,
1079
+ headers: {
1080
+ 'Content-Type': 'application/json',
1081
+ ...options.headers
1082
+ }
1083
+ });
1084
+ /**
1085
+ * Delete a deployment.
1086
+ *
1087
+ * Removes a compute deployment by id.
1088
+ */
1089
+ export const deleteDeployment = (options) => (options.client ?? client).delete({
1090
+ security: [{ scheme: 'bearer', type: 'http' }],
1091
+ url: '/v1/compute/deployments/{id}',
1092
+ ...options
1093
+ });
1094
+ /**
1095
+ * Get a deployment.
1096
+ *
1097
+ * Returns a single compute deployment by id.
1098
+ */
1099
+ export const getDeployment = (options) => (options.client ?? client).get({
1100
+ security: [{ scheme: 'bearer', type: 'http' }],
1101
+ url: '/v1/compute/deployments/{id}',
1102
+ ...options
1103
+ });
1104
+ /**
1105
+ * List deployment instances.
1106
+ *
1107
+ * Returns the running instances of a compute deployment.
1108
+ */
1109
+ export const listDeploymentInstances = (options) => (options.client ?? client).get({
1110
+ security: [{ scheme: 'bearer', type: 'http' }],
1111
+ url: '/v1/compute/deployments/{id}/instances',
1112
+ ...options
1113
+ });
1114
+ /**
1115
+ * Get deployment logs.
1116
+ *
1117
+ * Returns log output for a compute deployment.
1118
+ */
1119
+ export const getDeploymentLogs = (options) => (options.client ?? client).get({
1120
+ security: [{ scheme: 'bearer', type: 'http' }],
1121
+ url: '/v1/compute/deployments/{id}/logs',
1122
+ ...options
1123
+ });
1124
+ /**
1125
+ * Restart a deployment.
1126
+ *
1127
+ * Restarts all instances of a compute deployment.
1128
+ */
1129
+ export const restartDeployment = (options) => (options.client ?? client).post({
1130
+ security: [{ scheme: 'bearer', type: 'http' }],
1131
+ url: '/v1/compute/deployments/{id}/restart',
1132
+ ...options
1133
+ });
1134
+ /**
1135
+ * Roll back a deployment.
1136
+ *
1137
+ * Rolls a compute deployment back to a previous version.
1138
+ */
1139
+ export const rollbackDeployment = (options) => (options.client ?? client).post({
1140
+ security: [{ scheme: 'bearer', type: 'http' }],
1141
+ url: '/v1/compute/deployments/{id}/rollback',
1142
+ ...options,
1143
+ headers: {
1144
+ 'Content-Type': 'application/json',
1145
+ ...options.headers
1146
+ }
1147
+ });
1148
+ /**
1149
+ * Scale a deployment.
1150
+ *
1151
+ * Adjusts the instance count (min/max) for a compute deployment.
1152
+ */
1153
+ export const scaleDeployment = (options) => (options.client ?? client).post({
1154
+ security: [{ scheme: 'bearer', type: 'http' }],
1155
+ url: '/v1/compute/deployments/{id}/scale',
1156
+ ...options,
1157
+ headers: {
1158
+ 'Content-Type': 'application/json',
1159
+ ...options.headers
1160
+ }
1161
+ });
1162
+ /**
1163
+ * List deployment versions.
1164
+ *
1165
+ * Returns the version history of a compute deployment.
1166
+ */
1167
+ export const listDeploymentVersions = (options) => (options.client ?? client).get({
1168
+ security: [{ scheme: 'bearer', type: 'http' }],
1169
+ url: '/v1/compute/deployments/{id}/versions',
1170
+ ...options
1171
+ });
1172
+ /**
1173
+ * List cron schedules.
1174
+ *
1175
+ * Returns all scheduled jobs for the caller's project.
1176
+ */
1177
+ export const listCronSchedules = (options) => (options?.client ?? client).get({
1178
+ security: [{ scheme: 'bearer', type: 'http' }],
1179
+ url: '/v1/cron/schedules',
1180
+ ...options
1181
+ });
1182
+ /**
1183
+ * Create a cron schedule.
1184
+ *
1185
+ * Creates a new scheduled job.
1186
+ */
1187
+ export const createCronSchedule = (options) => (options.client ?? client).post({
1188
+ security: [{ scheme: 'bearer', type: 'http' }],
1189
+ url: '/v1/cron/schedules',
1190
+ ...options,
1191
+ headers: {
1192
+ 'Content-Type': 'application/json',
1193
+ ...options.headers
1194
+ }
1195
+ });
1196
+ /**
1197
+ * Delete a cron schedule.
1198
+ *
1199
+ * Removes a scheduled job by id.
1200
+ */
1201
+ export const deleteCronSchedule = (options) => (options.client ?? client).delete({
1202
+ security: [{ scheme: 'bearer', type: 'http' }],
1203
+ url: '/v1/cron/schedules/{id}',
1204
+ ...options
1205
+ });
1206
+ /**
1207
+ * Get a cron schedule.
1208
+ *
1209
+ * Returns a single scheduled job by id.
1210
+ */
1211
+ export const getCronSchedule = (options) => (options.client ?? client).get({
1212
+ security: [{ scheme: 'bearer', type: 'http' }],
1213
+ url: '/v1/cron/schedules/{id}',
1214
+ ...options
1215
+ });
1216
+ /**
1217
+ * Update a cron schedule.
1218
+ *
1219
+ * Updates an existing scheduled job.
1220
+ */
1221
+ export const updateCronSchedule = (options) => (options.client ?? client).put({
1222
+ security: [{ scheme: 'bearer', type: 'http' }],
1223
+ url: '/v1/cron/schedules/{id}',
1224
+ ...options,
1225
+ headers: {
1226
+ 'Content-Type': 'application/json',
1227
+ ...options.headers
1228
+ }
1229
+ });
1230
+ /**
1231
+ * List schedule executions.
1232
+ *
1233
+ * Returns the execution history of a scheduled job.
1234
+ */
1235
+ export const listCronExecutions = (options) => (options.client ?? client).get({
1236
+ security: [{ scheme: 'bearer', type: 'http' }],
1237
+ url: '/v1/cron/schedules/{id}/executions',
1238
+ ...options
1239
+ });
1240
+ /**
1241
+ * Trigger a cron schedule.
1242
+ *
1243
+ * Runs a scheduled job immediately, outside its normal schedule.
1244
+ */
1245
+ export const triggerCronSchedule = (options) => (options.client ?? client).post({
1246
+ security: [{ scheme: 'bearer', type: 'http' }],
1247
+ url: '/v1/cron/schedules/{id}/trigger',
1248
+ ...options
1249
+ });
1250
+ /**
1251
+ * List custom domains.
1252
+ *
1253
+ * Returns all custom domains attached to the caller's project, with their
1254
+ * verification and SSL status.
1255
+ */
1256
+ export const listDomains = (options) => (options?.client ?? client).get({
1257
+ security: [{ scheme: 'bearer', type: 'http' }],
1258
+ url: '/v1/domains',
1259
+ ...options
1260
+ });
1261
+ /**
1262
+ * Add a custom domain.
1263
+ *
1264
+ * Registers a custom domain for the caller's project and returns the created
1265
+ * record plus the DNS records (CNAME + TXT) needed to verify and serve it.
1266
+ */
1267
+ export const addDomain = (options) => (options.client ?? client).post({
1268
+ security: [{ scheme: 'bearer', type: 'http' }],
1269
+ url: '/v1/domains',
1270
+ ...options,
1271
+ headers: {
1272
+ 'Content-Type': 'application/json',
1273
+ ...options.headers
1274
+ }
1275
+ });
1276
+ /**
1277
+ * Remove a custom domain.
1278
+ *
1279
+ * Detaches a custom domain from the caller's project and deletes its record.
1280
+ */
1281
+ export const deleteDomain = (options) => (options.client ?? client).delete({
1282
+ security: [{ scheme: 'bearer', type: 'http' }],
1283
+ url: '/v1/domains/{id}',
1284
+ ...options
1285
+ });
1286
+ /**
1287
+ * Get a custom domain.
1288
+ *
1289
+ * Returns a single custom domain by id, scoped to the caller's project.
1290
+ */
1291
+ export const getDomain = (options) => (options.client ?? client).get({
1292
+ security: [{ scheme: 'bearer', type: 'http' }],
1293
+ url: '/v1/domains/{id}',
1294
+ ...options
1295
+ });
1296
+ /**
1297
+ * Provision SSL for a domain.
1298
+ *
1299
+ * Starts background Let's Encrypt certificate issuance for a verified domain.
1300
+ * The domain must be active; automatic SSL must be configured on the deployment.
1301
+ */
1302
+ export const provisionDomainSsl = (options) => (options.client ?? client).post({
1303
+ security: [{ scheme: 'bearer', type: 'http' }],
1304
+ url: '/v1/domains/{id}/ssl',
1305
+ ...options
1306
+ });
1307
+ /**
1308
+ * Verify a custom domain.
1309
+ *
1310
+ * Confirms — via a standard public DNS lookup, no provider credentials — that the
1311
+ * customer's domain points at our edge (its A records match `cname.<platform>`,
1312
+ * or a configured `SCALIX_EDGE_IP`). On success, marks the domain active. This is
1313
+ * the industry-standard "does it point at us" check (Vercel/Netlify/Render).
1314
+ */
1315
+ export const verifyDomain = (options) => (options.client ?? client).post({
1316
+ security: [{ scheme: 'bearer', type: 'http' }],
1317
+ url: '/v1/domains/{id}/verify',
1318
+ ...options
1319
+ });
1320
+ /**
1321
+ * List environment variables.
1322
+ *
1323
+ * Returns all project-level environment variables (secret values masked).
1324
+ */
1325
+ export const listEnvVars = (options) => (options?.client ?? client).get({
1326
+ security: [{ scheme: 'bearer', type: 'http' }],
1327
+ url: '/v1/env',
1328
+ ...options
1329
+ });
1330
+ /**
1331
+ * Set an environment variable.
1332
+ *
1333
+ * Creates or updates a single project-level environment variable.
1334
+ */
1335
+ export const setEnvVar = (options) => (options.client ?? client).post({
1336
+ security: [{ scheme: 'bearer', type: 'http' }],
1337
+ url: '/v1/env',
1338
+ ...options,
1339
+ headers: {
1340
+ 'Content-Type': 'application/json',
1341
+ ...options.headers
1342
+ }
1343
+ });
1344
+ /**
1345
+ * Bulk-import environment variables.
1346
+ *
1347
+ * Imports many project-level environment variables in one request.
1348
+ */
1349
+ export const bulkImportEnvVars = (options) => (options.client ?? client).post({
1350
+ security: [{ scheme: 'bearer', type: 'http' }],
1351
+ url: '/v1/env/bulk',
1352
+ ...options,
1353
+ headers: {
1354
+ 'Content-Type': 'application/json',
1355
+ ...options.headers
1356
+ }
1357
+ });
1358
+ /**
1359
+ * Delete an environment variable.
1360
+ *
1361
+ * Removes a project-level environment variable by id.
1362
+ */
1363
+ export const deleteEnvVar = (options) => (options.client ?? client).delete({
1364
+ security: [{ scheme: 'bearer', type: 'http' }],
1365
+ url: '/v1/env/{id}',
1366
+ ...options
1367
+ });
1368
+ /**
1369
+ * Delete a subscription.
1370
+ *
1371
+ * Removes an event subscription by id.
1372
+ */
1373
+ export const deleteEventSubscription = (options) => (options.client ?? client).delete({
1374
+ security: [{ scheme: 'bearer', type: 'http' }],
1375
+ url: '/v1/events/subscriptions/{id}',
1376
+ ...options
1377
+ });
1378
+ /**
1379
+ * Get a subscription.
1380
+ *
1381
+ * Returns a single event subscription by id.
1382
+ */
1383
+ export const getEventSubscription = (options) => (options.client ?? client).get({
1384
+ security: [{ scheme: 'bearer', type: 'http' }],
1385
+ url: '/v1/events/subscriptions/{id}',
1386
+ ...options
1387
+ });
1388
+ /**
1389
+ * List subscription deliveries.
1390
+ *
1391
+ * Returns the delivery attempts for an event subscription.
1392
+ */
1393
+ export const listSubscriptionDeliveries = (options) => (options.client ?? client).get({
1394
+ security: [{ scheme: 'bearer', type: 'http' }],
1395
+ url: '/v1/events/subscriptions/{id}/deliveries',
1396
+ ...options
1397
+ });
1398
+ /**
1399
+ * List topics.
1400
+ *
1401
+ * Returns all event-bus topics for the caller's project.
1402
+ */
1403
+ export const listEventTopics = (options) => (options?.client ?? client).get({
1404
+ security: [{ scheme: 'bearer', type: 'http' }],
1405
+ url: '/v1/events/topics',
1406
+ ...options
1407
+ });
1408
+ /**
1409
+ * Create a topic.
1410
+ *
1411
+ * Creates a new event-bus topic.
1412
+ */
1413
+ export const createEventTopic = (options) => (options?.client ?? client).post({
1414
+ security: [{ scheme: 'bearer', type: 'http' }],
1415
+ url: '/v1/events/topics',
1416
+ ...options
1417
+ });
1418
+ /**
1419
+ * Delete a topic.
1420
+ *
1421
+ * Removes an event-bus topic by id or name.
1422
+ */
1423
+ export const deleteEventTopic = (options) => (options.client ?? client).delete({
1424
+ security: [{ scheme: 'bearer', type: 'http' }],
1425
+ url: '/v1/events/topics/{id}',
1426
+ ...options
1427
+ });
1428
+ /**
1429
+ * Get a topic.
1430
+ *
1431
+ * Returns a single event-bus topic by id or name.
1432
+ */
1433
+ export const getEventTopic = (options) => (options.client ?? client).get({
1434
+ security: [{ scheme: 'bearer', type: 'http' }],
1435
+ url: '/v1/events/topics/{id}',
1436
+ ...options
1437
+ });
1438
+ /**
1439
+ * List events on a topic.
1440
+ *
1441
+ * Returns the recent events published to a topic.
1442
+ */
1443
+ export const listTopicEvents = (options) => (options.client ?? client).get({
1444
+ security: [{ scheme: 'bearer', type: 'http' }],
1445
+ url: '/v1/events/topics/{id}/events',
1446
+ ...options
1447
+ });
1448
+ /**
1449
+ * Publish an event.
1450
+ *
1451
+ * Publishes an event payload to a topic.
1452
+ */
1453
+ export const publishEvent = (options) => (options.client ?? client).post({
1454
+ security: [{ scheme: 'bearer', type: 'http' }],
1455
+ url: '/v1/events/topics/{id}/publish',
1456
+ ...options,
1457
+ headers: {
1458
+ 'Content-Type': 'application/json',
1459
+ ...options.headers
1460
+ }
1461
+ });
1462
+ /**
1463
+ * List a topic's subscriptions.
1464
+ *
1465
+ * Returns the subscriptions attached to a topic.
1466
+ */
1467
+ export const listTopicSubscriptions = (options) => (options.client ?? client).get({
1468
+ security: [{ scheme: 'bearer', type: 'http' }],
1469
+ url: '/v1/events/topics/{id}/subscriptions',
1470
+ ...options
1471
+ });
1472
+ /**
1473
+ * Create a subscription.
1474
+ *
1475
+ * Creates a subscription that delivers a topic's events to an endpoint.
1476
+ */
1477
+ export const createEventSubscription = (options) => (options.client ?? client).post({
1478
+ security: [{ scheme: 'bearer', type: 'http' }],
1479
+ url: '/v1/events/topics/{id}/subscriptions',
1480
+ ...options,
1481
+ headers: {
1482
+ 'Content-Type': 'application/json',
1483
+ ...options.headers
1484
+ }
1485
+ });
1486
+ /**
1487
+ * List functions.
1488
+ *
1489
+ * Returns all serverless functions for the caller's project.
1490
+ */
1491
+ export const listFunctions = (options) => (options?.client ?? client).get({
1492
+ security: [{ scheme: 'bearer', type: 'http' }],
1493
+ url: '/v1/functions',
1494
+ ...options
1495
+ });
1496
+ /**
1497
+ * Create a function.
1498
+ *
1499
+ * Deploys a serverless function and returns the created function.
1500
+ */
1501
+ export const createFunction = (options) => (options.client ?? client).post({
1502
+ security: [{ scheme: 'bearer', type: 'http' }],
1503
+ url: '/v1/functions',
1504
+ ...options,
1505
+ headers: {
1506
+ 'Content-Type': 'application/json',
1507
+ ...options.headers
1508
+ }
1509
+ });
1510
+ /**
1511
+ * Delete a function.
1512
+ *
1513
+ * Removes a serverless function by id or name.
1514
+ */
1515
+ export const deleteFunction = (options) => (options.client ?? client).delete({
1516
+ security: [{ scheme: 'bearer', type: 'http' }],
1517
+ url: '/v1/functions/{id}',
1518
+ ...options
1519
+ });
1520
+ /**
1521
+ * Get a function.
1522
+ *
1523
+ * Returns a single serverless function by id or name.
1524
+ */
1525
+ export const getFunction = (options) => (options.client ?? client).get({
1526
+ security: [{ scheme: 'bearer', type: 'http' }],
1527
+ url: '/v1/functions/{id}',
1528
+ ...options
1529
+ });
1530
+ /**
1531
+ * Update a function.
1532
+ *
1533
+ * Redeploys a serverless function with a new configuration.
1534
+ */
1535
+ export const updateFunction = (options) => (options.client ?? client).put({
1536
+ security: [{ scheme: 'bearer', type: 'http' }],
1537
+ url: '/v1/functions/{id}',
1538
+ ...options,
1539
+ headers: {
1540
+ 'Content-Type': 'application/json',
1541
+ ...options.headers
1542
+ }
1543
+ });
1544
+ /**
1545
+ * List function invocations.
1546
+ *
1547
+ * Returns the invocation history for a serverless function.
1548
+ */
1549
+ export const listFunctionInvocations = (options) => (options.client ?? client).get({
1550
+ security: [{ scheme: 'bearer', type: 'http' }],
1551
+ url: '/v1/functions/{id}/invocations',
1552
+ ...options
1553
+ });
1554
+ /**
1555
+ * Invoke a function.
1556
+ *
1557
+ * Invokes a serverless function with the supplied payload and returns its result.
1558
+ */
1559
+ export const invokeFunction = (options) => (options.client ?? client).post({
1560
+ security: [{ scheme: 'bearer', type: 'http' }],
1561
+ url: '/v1/functions/{id}/invoke',
1562
+ ...options,
1563
+ headers: {
1564
+ 'Content-Type': 'application/json',
1565
+ ...options.headers
1566
+ }
1567
+ });
1568
+ /**
1569
+ * Get function logs.
1570
+ *
1571
+ * Returns log output for a serverless function.
1572
+ */
1573
+ export const getFunctionLogs = (options) => (options.client ?? client).get({
1574
+ security: [{ scheme: 'bearer', type: 'http' }],
1575
+ url: '/v1/functions/{id}/logs',
1576
+ ...options
1577
+ });
1578
+ /**
1579
+ * List source-control integrations.
1580
+ *
1581
+ * Returns all GitHub/GitLab/Bitbucket integrations attached to the caller's
1582
+ * project.
1583
+ */
1584
+ export const listIntegrations = (options) => (options?.client ?? client).get({
1585
+ security: [{ scheme: 'bearer', type: 'http' }],
1586
+ url: '/v1/integrations',
1587
+ ...options
1588
+ });
1589
+ /**
1590
+ * Create a source-control integration.
1591
+ *
1592
+ * Attaches a Git provider repo to the caller's project and returns the created
1593
+ * integration plus the webhook URL and secret to configure on the provider.
1594
+ */
1595
+ export const createIntegration = (options) => (options.client ?? client).post({
1596
+ security: [{ scheme: 'bearer', type: 'http' }],
1597
+ url: '/v1/integrations',
1598
+ ...options,
1599
+ headers: {
1600
+ 'Content-Type': 'application/json',
1601
+ ...options.headers
1602
+ }
1603
+ });
1604
+ /**
1605
+ * List GitHub App installations.
1606
+ *
1607
+ * Returns the GitHub App installations registered to the caller's project.
1608
+ */
1609
+ export const listGithubInstallations = (options) => (options?.client ?? client).get({
1610
+ security: [{ scheme: 'bearer', type: 'http' }],
1611
+ url: '/v1/integrations/github/installations',
1612
+ ...options
1613
+ });
1614
+ /**
1615
+ * Mint an installation token.
1616
+ *
1617
+ * Returns a short-lived GitHub App installation access token for an
1618
+ * installation owned by the caller's project.
1619
+ */
1620
+ export const createGithubInstallationToken = (options) => (options.client ?? client).post({
1621
+ security: [{ scheme: 'bearer', type: 'http' }],
1622
+ url: '/v1/integrations/github/installations/{installation_id}/token',
1623
+ ...options
1624
+ });
1625
+ /**
1626
+ * List accessible GitHub repos.
1627
+ *
1628
+ * Returns the repositories the project's GitHub App installations can access,
1629
+ * aggregated across all active installations.
1630
+ */
1631
+ export const listGithubRepos = (options) => (options?.client ?? client).get({
1632
+ security: [{ scheme: 'bearer', type: 'http' }],
1633
+ url: '/v1/integrations/github/repos',
1634
+ ...options
1635
+ });
1636
+ /**
1637
+ * Delete a source-control integration.
1638
+ *
1639
+ * Detaches a Git provider repo from the caller's project and deletes the
1640
+ * integration record.
1641
+ */
1642
+ export const deleteIntegration = (options) => (options.client ?? client).delete({
1643
+ security: [{ scheme: 'bearer', type: 'http' }],
1644
+ url: '/v1/integrations/{id}',
1645
+ ...options
1646
+ });
1647
+ /**
1648
+ * Get a source-control integration.
1649
+ *
1650
+ * Returns a single integration by id, scoped to the caller's project.
1651
+ */
1652
+ export const getIntegration = (options) => (options.client ?? client).get({
1653
+ security: [{ scheme: 'bearer', type: 'http' }],
1654
+ url: '/v1/integrations/{id}',
1655
+ ...options
1656
+ });
1657
+ /**
1658
+ * Update a source-control integration.
1659
+ *
1660
+ * Updates an integration's build/deploy settings (branch filter, auto-build,
1661
+ * auto-deploy, preview, status) and returns the updated record.
1662
+ */
1663
+ export const updateIntegration = (options) => (options.client ?? client).put({
1664
+ security: [{ scheme: 'bearer', type: 'http' }],
1665
+ url: '/v1/integrations/{id}',
1666
+ ...options,
1667
+ headers: {
1668
+ 'Content-Type': 'application/json',
1669
+ ...options.headers
1670
+ }
1671
+ });
1672
+ /**
1673
+ * Delete keys.
1674
+ *
1675
+ * Removes one or more keys from the tenant's key-value store (batch delete).
1676
+ */
1677
+ export const kvDel = (options) => (options.client ?? client).post({
1678
+ security: [{ scheme: 'bearer', type: 'http' }],
1679
+ url: '/v1/kv/del',
1680
+ ...options,
1681
+ headers: {
1682
+ 'Content-Type': 'application/json',
1683
+ ...options.headers
1684
+ }
1685
+ });
1686
+ /**
1687
+ * Check if a key exists.
1688
+ *
1689
+ * Returns whether a key is present in the tenant's key-value store.
1690
+ */
1691
+ export const kvExists = (options) => (options.client ?? client).post({
1692
+ security: [{ scheme: 'bearer', type: 'http' }],
1693
+ url: '/v1/kv/exists',
1694
+ ...options,
1695
+ headers: {
1696
+ 'Content-Type': 'application/json',
1697
+ ...options.headers
1698
+ }
1699
+ });
1700
+ /**
1701
+ * Fetch a value by key.
1702
+ *
1703
+ * Reads a single key from the tenant's key-value store; returns `value: null` if absent.
1704
+ */
1705
+ export const kvGet = (options) => (options.client ?? client).post({
1706
+ security: [{ scheme: 'bearer', type: 'http' }],
1707
+ url: '/v1/kv/get',
1708
+ ...options,
1709
+ headers: {
1710
+ 'Content-Type': 'application/json',
1711
+ ...options.headers
1712
+ }
1713
+ });
1714
+ /**
1715
+ * List keys.
1716
+ *
1717
+ * Returns the keys in the tenant's key-value store matching an optional glob pattern.
1718
+ */
1719
+ export const kvKeys = (options) => (options.client ?? client).post({
1720
+ security: [{ scheme: 'bearer', type: 'http' }],
1721
+ url: '/v1/kv/keys',
1722
+ ...options,
1723
+ headers: {
1724
+ 'Content-Type': 'application/json',
1725
+ ...options.headers
1726
+ }
1727
+ });
1728
+ /**
1729
+ * Set a value by key.
1730
+ *
1731
+ * Writes a value to the tenant's key-value store, with an optional TTL.
1732
+ */
1733
+ export const kvSet = (options) => (options.client ?? client).post({
1734
+ security: [{ scheme: 'bearer', type: 'http' }],
1735
+ url: '/v1/kv/set',
1736
+ ...options,
1737
+ headers: {
1738
+ 'Content-Type': 'application/json',
1739
+ ...options.headers
1740
+ }
1741
+ });
1742
+ /**
1743
+ * List load balancers.
1744
+ *
1745
+ * Returns all load balancers belonging to the caller's project.
1746
+ */
1747
+ export const listLoadBalancers = (options) => (options?.client ?? client).get({
1748
+ security: [{ scheme: 'bearer', type: 'http' }],
1749
+ url: '/v1/lb',
1750
+ ...options
1751
+ });
1752
+ /**
1753
+ * Create a load balancer.
1754
+ *
1755
+ * Provisions a load balancer for the caller's project and returns its details.
1756
+ */
1757
+ export const createLoadBalancer = (options) => (options.client ?? client).post({
1758
+ security: [{ scheme: 'bearer', type: 'http' }],
1759
+ url: '/v1/lb',
1760
+ ...options,
1761
+ headers: {
1762
+ 'Content-Type': 'application/json',
1763
+ ...options.headers
1764
+ }
1765
+ });
1766
+ /**
1767
+ * Delete a load balancer.
1768
+ *
1769
+ * Removes a load balancer and its backends by id.
1770
+ */
1771
+ export const deleteLoadBalancer = (options) => (options.client ?? client).delete({
1772
+ security: [{ scheme: 'bearer', type: 'http' }],
1773
+ url: '/v1/lb/{id}',
1774
+ ...options
1775
+ });
1776
+ /**
1777
+ * Get a load balancer.
1778
+ *
1779
+ * Returns a single load balancer by id.
1780
+ */
1781
+ export const getLoadBalancer = (options) => (options.client ?? client).get({
1782
+ security: [{ scheme: 'bearer', type: 'http' }],
1783
+ url: '/v1/lb/{id}',
1784
+ ...options
1785
+ });
1786
+ /**
1787
+ * Add a backend to a load balancer.
1788
+ *
1789
+ * Registers a backend target on the load balancer and returns its details.
1790
+ */
1791
+ export const addLoadBalancerBackend = (options) => (options.client ?? client).post({
1792
+ security: [{ scheme: 'bearer', type: 'http' }],
1793
+ url: '/v1/lb/{id}/backends',
1794
+ ...options,
1795
+ headers: {
1796
+ 'Content-Type': 'application/json',
1797
+ ...options.headers
1798
+ }
1799
+ });
1800
+ /**
1801
+ * Remove a backend from a load balancer.
1802
+ *
1803
+ * Deletes a backend target from the load balancer by id.
1804
+ */
1805
+ export const removeLoadBalancerBackend = (options) => (options.client ?? client).delete({
1806
+ security: [{ scheme: 'bearer', type: 'http' }],
1807
+ url: '/v1/lb/{id}/backends/{backend_id}',
1808
+ ...options
1809
+ });
1810
+ /**
1811
+ * Describe the current token.
1812
+ *
1813
+ * Returns the caller's identity, effective permissions and scopes, the MCP
1814
+ * tools their scopes unlock, and their plan's rate-limit and API-key ceilings.
1815
+ */
1816
+ export const getMe = (options) => (options?.client ?? client).get({
1817
+ security: [{ scheme: 'bearer', type: 'http' }],
1818
+ url: '/v1/me',
1819
+ ...options
1820
+ });
1821
+ /**
1822
+ * Check the registry API version.
1823
+ *
1824
+ * Returns the OCI Distribution API version supported by the registry.
1825
+ */
1826
+ export const registryVersionCheck = (options) => (options?.client ?? client).get({
1827
+ security: [{ scheme: 'bearer', type: 'http' }],
1828
+ url: '/v1/registry/v2/',
1829
+ ...options
1830
+ });
1831
+ /**
1832
+ * List the repository catalog.
1833
+ *
1834
+ * Returns the catalog of repositories in the registry.
1835
+ */
1836
+ export const getRegistryCatalog = (options) => (options?.client ?? client).get({
1837
+ security: [{ scheme: 'bearer', type: 'http' }],
1838
+ url: '/v1/registry/v2/_catalog',
1839
+ ...options
1840
+ });
1841
+ /**
1842
+ * Start a blob upload.
1843
+ *
1844
+ * Begins an OCI blob upload session and returns the upload location.
1845
+ */
1846
+ export const startRegistryBlobUpload = (options) => (options.client ?? client).post({
1847
+ security: [{ scheme: 'bearer', type: 'http' }],
1848
+ url: '/v1/registry/v2/{project_id}/{repository}/blobs/uploads/',
1849
+ ...options
1850
+ });
1851
+ /**
1852
+ * Get a blob.
1853
+ *
1854
+ * Downloads an OCI blob by digest.
1855
+ */
1856
+ export const getRegistryBlob = (options) => (options.client ?? client).get({
1857
+ security: [{ scheme: 'bearer', type: 'http' }],
1858
+ url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
1859
+ ...options
1860
+ });
1861
+ /**
1862
+ * Check a blob exists.
1863
+ *
1864
+ * Returns headers indicating whether an OCI blob exists.
1865
+ */
1866
+ export const headRegistryBlob = (options) => (options.client ?? client).head({
1867
+ security: [{ scheme: 'bearer', type: 'http' }],
1868
+ url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
1869
+ ...options
1870
+ });
1871
+ /**
1872
+ * Delete a manifest.
1873
+ *
1874
+ * Removes an OCI image manifest by tag or digest.
1875
+ */
1876
+ export const deleteRegistryManifest = (options) => (options.client ?? client).delete({
1877
+ security: [{ scheme: 'bearer', type: 'http' }],
1878
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1879
+ ...options
1880
+ });
1881
+ /**
1882
+ * Get a manifest.
1883
+ *
1884
+ * Returns an OCI image manifest by tag or digest.
1885
+ */
1886
+ export const getRegistryManifest = (options) => (options.client ?? client).get({
1887
+ security: [{ scheme: 'bearer', type: 'http' }],
1888
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1889
+ ...options
1890
+ });
1891
+ /**
1892
+ * Check a manifest exists.
1893
+ *
1894
+ * Returns headers indicating whether an OCI manifest exists.
1895
+ */
1896
+ export const headRegistryManifest = (options) => (options.client ?? client).head({
1897
+ security: [{ scheme: 'bearer', type: 'http' }],
1898
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1899
+ ...options
1900
+ });
1901
+ /**
1902
+ * Store a manifest.
1903
+ *
1904
+ * Uploads an OCI image manifest under a tag or digest.
1905
+ */
1906
+ export const putRegistryManifest = (options) => (options.client ?? client).put({
1907
+ security: [{ scheme: 'bearer', type: 'http' }],
1908
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
1909
+ ...options,
1910
+ headers: {
1911
+ 'Content-Type': 'application/json',
1912
+ ...options.headers
1913
+ }
1914
+ });
1915
+ /**
1916
+ * List tags.
1917
+ *
1918
+ * Returns the tags available for a repository.
1919
+ */
1920
+ export const listRegistryTags = (options) => (options.client ?? client).get({
1921
+ security: [{ scheme: 'bearer', type: 'http' }],
1922
+ url: '/v1/registry/v2/{project_id}/{repository}/tags/list',
1923
+ ...options
1924
+ });
1925
+ /**
1926
+ * List Scalix Run services.
1927
+ *
1928
+ * Returns all Scalix Run services for the caller's project.
1929
+ */
1930
+ export const listServices = (options) => (options?.client ?? client).get({
1931
+ security: [{ scheme: 'bearer', type: 'http' }],
1932
+ url: '/v1/run/services',
1933
+ ...options
1934
+ });
1935
+ /**
1936
+ * Deploy a Scalix Run service.
1937
+ *
1938
+ * Deploys a Scalix Run service and returns the created service.
1939
+ */
1940
+ export const createService = (options) => (options.client ?? client).post({
1941
+ security: [{ scheme: 'bearer', type: 'http' }],
1942
+ url: '/v1/run/services',
1943
+ ...options,
1944
+ headers: {
1945
+ 'Content-Type': 'application/json',
1946
+ ...options.headers
1947
+ }
1948
+ });
1949
+ /**
1950
+ * Delete a Scalix Run service.
1951
+ *
1952
+ * Removes a Scalix Run service by id.
1953
+ */
1954
+ export const deleteService = (options) => (options.client ?? client).delete({
1955
+ security: [{ scheme: 'bearer', type: 'http' }],
1956
+ url: '/v1/run/services/{id}',
1957
+ ...options
1958
+ });
1959
+ /**
1960
+ * Get a Scalix Run service.
1961
+ *
1962
+ * Returns a single Scalix Run service by id.
1963
+ */
1964
+ export const getService = (options) => (options.client ?? client).get({
1965
+ security: [{ scheme: 'bearer', type: 'http' }],
1966
+ url: '/v1/run/services/{id}',
1967
+ ...options
1968
+ });
1969
+ /**
1970
+ * Update a Scalix Run service.
1971
+ *
1972
+ * Updates a Scalix Run service (e.g. scaling) and returns the new state.
1973
+ */
1974
+ export const updateService = (options) => (options.client ?? client).put({
1975
+ security: [{ scheme: 'bearer', type: 'http' }],
1976
+ url: '/v1/run/services/{id}',
1977
+ ...options,
1978
+ headers: {
1979
+ 'Content-Type': 'application/json',
1980
+ ...options.headers
1981
+ }
1982
+ });
1983
+ /**
1984
+ * List service instances.
1985
+ *
1986
+ * Returns the running instances of a Scalix Run service.
1987
+ */
1988
+ export const listServiceInstances = (options) => (options.client ?? client).get({
1989
+ security: [{ scheme: 'bearer', type: 'http' }],
1990
+ url: '/v1/run/services/{id}/instances',
1991
+ ...options
1992
+ });
1993
+ /**
1994
+ * Get service metrics.
1995
+ *
1996
+ * Returns runtime metrics for a Scalix Run service.
1997
+ */
1998
+ export const getServiceMetrics = (options) => (options.client ?? client).get({
1999
+ security: [{ scheme: 'bearer', type: 'http' }],
2000
+ url: '/v1/run/services/{id}/metrics',
2001
+ ...options
2002
+ });
2003
+ /**
2004
+ * List service revisions.
2005
+ *
2006
+ * Returns the revision history of a Scalix Run service.
2007
+ */
2008
+ export const listServiceRevisions = (options) => (options.client ?? client).get({
2009
+ security: [{ scheme: 'bearer', type: 'http' }],
2010
+ url: '/v1/run/services/{id}/revisions',
2011
+ ...options
2012
+ });
2013
+ /**
2014
+ * Roll back a service.
2015
+ *
2016
+ * Rolls a Scalix Run service back to a previous revision.
2017
+ */
2018
+ export const rollbackService = (options) => (options.client ?? client).post({
2019
+ security: [{ scheme: 'bearer', type: 'http' }],
2020
+ url: '/v1/run/services/{id}/rollback',
2021
+ ...options,
2022
+ headers: {
2023
+ 'Content-Type': 'application/json',
2024
+ ...options.headers
2025
+ }
2026
+ });
2027
+ /**
2028
+ * Run a search.
2029
+ *
2030
+ * Runs a query against the curated Scalix Search index and returns ranked results.
2031
+ */
2032
+ export const searchIndex = (options) => (options?.client ?? client).get({
2033
+ security: [{ scheme: 'bearer', type: 'http' }],
2034
+ url: '/v1/search',
2035
+ ...options
2036
+ });
2037
+ /**
2038
+ * Run a search ingest.
2039
+ *
2040
+ * Triggers an ingest run that crawls and indexes registered sources.
2041
+ */
2042
+ export const runSearchIngest = (options) => (options?.client ?? client).post({
2043
+ security: [{ scheme: 'bearer', type: 'http' }],
2044
+ url: '/v1/search/ingest/run',
2045
+ ...options
2046
+ });
2047
+ /**
2048
+ * List search sources.
2049
+ *
2050
+ * Returns the curated sources registered in the search index.
2051
+ */
2052
+ export const listSearchSources = (options) => (options?.client ?? client).get({
2053
+ security: [{ scheme: 'bearer', type: 'http' }],
2054
+ url: '/v1/search/sources',
2055
+ ...options
2056
+ });
2057
+ /**
2058
+ * Upsert a search source.
2059
+ *
2060
+ * Creates or updates a curated source in the search index.
2061
+ */
2062
+ export const upsertSearchSource = (options) => (options.client ?? client).post({
2063
+ security: [{ scheme: 'bearer', type: 'http' }],
2064
+ url: '/v1/search/sources',
2065
+ ...options,
2066
+ headers: {
2067
+ 'Content-Type': 'application/json',
2068
+ ...options.headers
2069
+ }
2070
+ });
2071
+ /**
2072
+ * Get search stats.
2073
+ *
2074
+ * Returns statistics about the search index.
2075
+ */
2076
+ export const getSearchStats = (options) => (options?.client ?? client).get({
2077
+ security: [{ scheme: 'bearer', type: 'http' }],
2078
+ url: '/v1/search/stats',
2079
+ ...options
2080
+ });
2081
+ /**
2082
+ * Get Shield config.
2083
+ *
2084
+ * Returns the Shield configuration (default action, challenge settings) for the
2085
+ * caller's project.
2086
+ */
2087
+ export const getShieldConfig = (options) => (options?.client ?? client).get({
2088
+ security: [{ scheme: 'bearer', type: 'http' }],
2089
+ url: '/v1/shield/config',
2090
+ ...options
2091
+ });
2092
+ /**
2093
+ * Update Shield config.
2094
+ *
2095
+ * Replaces the Shield configuration for the caller's project. Requires the Pro
2096
+ * plan or higher.
2097
+ */
2098
+ export const updateShieldConfig = (options) => (options.client ?? client).put({
2099
+ security: [{ scheme: 'bearer', type: 'http' }],
2100
+ url: '/v1/shield/config',
2101
+ ...options,
2102
+ headers: {
2103
+ 'Content-Type': 'application/json',
2104
+ ...options.headers
2105
+ }
2106
+ });
2107
+ /**
2108
+ * List Shield crawlers.
2109
+ *
2110
+ * Returns the known AI crawlers with their per-project policy and traffic
2111
+ * stats, plus any custom user-defined crawler rules.
2112
+ */
2113
+ export const listShieldCrawlers = (options) => (options?.client ?? client).get({
2114
+ security: [{ scheme: 'bearer', type: 'http' }],
2115
+ url: '/v1/shield/crawlers',
2116
+ ...options
2117
+ });
2118
+ /**
2119
+ * Set a crawler's verification IP ranges.
2120
+ *
2121
+ * Sets the IP addresses or CIDR ranges used to verify a crawler's source IP.
2122
+ * Requires the Pro plan or higher.
2123
+ */
2124
+ export const setShieldCrawlerIpRanges = (options) => (options.client ?? client).put({
2125
+ security: [{ scheme: 'bearer', type: 'http' }],
2126
+ url: '/v1/shield/crawlers/{id}/ip-ranges',
2127
+ ...options,
2128
+ headers: {
2129
+ 'Content-Type': 'application/json',
2130
+ ...options.headers
2131
+ }
2132
+ });
2133
+ /**
2134
+ * Clear a crawler policy.
2135
+ *
2136
+ * Removes the access policy for a crawler, reverting it to the project default.
2137
+ * Policy controls require the Pro plan or higher.
2138
+ */
2139
+ export const clearShieldCrawlerPolicy = (options) => (options.client ?? client).delete({
2140
+ security: [{ scheme: 'bearer', type: 'http' }],
2141
+ url: '/v1/shield/crawlers/{id}/policy',
2142
+ ...options
2143
+ });
2144
+ /**
2145
+ * Set a crawler policy.
2146
+ *
2147
+ * Sets the access policy (allow / block / rate-limit) for a known crawler in
2148
+ * the caller's project. Policy controls require the Pro plan or higher.
2149
+ */
2150
+ export const setShieldCrawlerPolicy = (options) => (options.client ?? client).put({
2151
+ security: [{ scheme: 'bearer', type: 'http' }],
2152
+ url: '/v1/shield/crawlers/{id}/policy',
2153
+ ...options,
2154
+ headers: {
2155
+ 'Content-Type': 'application/json',
2156
+ ...options.headers
2157
+ }
2158
+ });
2159
+ /**
2160
+ * Create a custom Shield rule.
2161
+ *
2162
+ * Adds a customer-defined crawler rule matched by User-Agent substring, with
2163
+ * its own access policy. Requires the Pro plan or higher.
2164
+ */
2165
+ export const createShieldCustomRule = (options) => (options.client ?? client).post({
2166
+ security: [{ scheme: 'bearer', type: 'http' }],
2167
+ url: '/v1/shield/custom',
2168
+ ...options,
2169
+ headers: {
2170
+ 'Content-Type': 'application/json',
2171
+ ...options.headers
2172
+ }
2173
+ });
2174
+ /**
2175
+ * Delete a custom Shield rule.
2176
+ *
2177
+ * Removes a custom crawler rule by id. Requires the Pro plan or higher.
2178
+ */
2179
+ export const deleteShieldCustomRule = (options) => (options.client ?? client).delete({
2180
+ security: [{ scheme: 'bearer', type: 'http' }],
2181
+ url: '/v1/shield/custom/{id}',
2182
+ ...options
2183
+ });
2184
+ /**
2185
+ * Update a custom Shield rule.
2186
+ *
2187
+ * Updates the access policy of an existing custom crawler rule. Requires the
2188
+ * Pro plan or higher.
2189
+ */
2190
+ export const updateShieldCustomRule = (options) => (options.client ?? client).put({
2191
+ security: [{ scheme: 'bearer', type: 'http' }],
2192
+ url: '/v1/shield/custom/{id}',
2193
+ ...options,
2194
+ headers: {
2195
+ 'Content-Type': 'application/json',
2196
+ ...options.headers
2197
+ }
2198
+ });
2199
+ /**
2200
+ * List Shield events.
2201
+ *
2202
+ * Returns recent Shield crawler events for the project, paginated.
2203
+ */
2204
+ export const listShieldEvents = (options) => (options?.client ?? client).get({
2205
+ security: [{ scheme: 'bearer', type: 'http' }],
2206
+ url: '/v1/shield/events',
2207
+ ...options
2208
+ });
2209
+ /**
2210
+ * Generate robots.txt.
2211
+ *
2212
+ * Returns a `robots.txt` file generated from the project's Shield crawler
2213
+ * policies.
2214
+ */
2215
+ export const getShieldRobotsTxt = (options) => (options?.client ?? client).get({
2216
+ security: [{ scheme: 'bearer', type: 'http' }],
2217
+ url: '/v1/shield/robots-txt',
2218
+ ...options
2219
+ });
2220
+ /**
2221
+ * Get Shield statistics.
2222
+ *
2223
+ * Returns aggregate request, block, and rate-limit counts broken down by
2224
+ * crawler for the caller's project.
2225
+ */
2226
+ export const getShieldStats = (options) => (options?.client ?? client).get({
2227
+ security: [{ scheme: 'bearer', type: 'http' }],
2228
+ url: '/v1/shield/stats',
2229
+ ...options
2230
+ });
2231
+ /**
2232
+ * List buckets.
2233
+ *
2234
+ * Returns all storage buckets for the caller's project.
2235
+ */
2236
+ export const listBuckets = (options) => (options?.client ?? client).get({
2237
+ security: [{ scheme: 'bearer', type: 'http' }],
2238
+ url: '/v1/storage/buckets',
2239
+ ...options
2240
+ });
2241
+ /**
2242
+ * Create a bucket.
2243
+ *
2244
+ * Creates a new storage bucket.
2245
+ */
2246
+ export const createBucket = (options) => (options?.client ?? client).post({
2247
+ security: [{ scheme: 'bearer', type: 'http' }],
2248
+ url: '/v1/storage/buckets',
2249
+ ...options
2250
+ });
2251
+ /**
2252
+ * List objects.
2253
+ *
2254
+ * Returns the objects in a bucket, optionally filtered by key prefix.
2255
+ */
2256
+ export const listObjects = (options) => (options.client ?? client).get({
2257
+ security: [{ scheme: 'bearer', type: 'http' }],
2258
+ url: '/v1/storage/buckets/{bucket}/objects',
2259
+ ...options
2260
+ });
2261
+ /**
2262
+ * Delete an object.
2263
+ *
2264
+ * Removes an object from a bucket.
2265
+ */
2266
+ export const deleteObject = (options) => (options.client ?? client).delete({
2267
+ security: [{ scheme: 'bearer', type: 'http' }],
2268
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2269
+ ...options
2270
+ });
2271
+ /**
2272
+ * Get an object.
2273
+ *
2274
+ * Downloads the contents of an object from a bucket.
2275
+ */
2276
+ export const getObject = (options) => (options.client ?? client).get({
2277
+ security: [{ scheme: 'bearer', type: 'http' }],
2278
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2279
+ ...options
2280
+ });
2281
+ /**
2282
+ * Get object metadata.
2283
+ *
2284
+ * Returns an object's metadata headers without its body.
2285
+ */
2286
+ export const headObject = (options) => (options.client ?? client).head({
2287
+ security: [{ scheme: 'bearer', type: 'http' }],
2288
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2289
+ ...options
2290
+ });
2291
+ /**
2292
+ * Upload an object.
2293
+ *
2294
+ * Stores raw bytes as an object in a bucket.
2295
+ */
2296
+ export const putObject = (options) => (options.client ?? client).put({
2297
+ bodySerializer: null,
2298
+ security: [{ scheme: 'bearer', type: 'http' }],
2299
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2300
+ ...options,
2301
+ headers: {
2302
+ 'Content-Type': 'application/octet-stream',
2303
+ ...options.headers
2304
+ }
2305
+ });
2306
+ /**
2307
+ * Delete a bucket.
2308
+ *
2309
+ * Removes a storage bucket by name.
2310
+ */
2311
+ export const deleteBucket = (options) => (options.client ?? client).delete({
2312
+ security: [{ scheme: 'bearer', type: 'http' }],
2313
+ url: '/v1/storage/buckets/{name}',
2314
+ ...options
2315
+ });
2316
+ /**
2317
+ * Presign an object URL.
2318
+ *
2319
+ * Returns a presigned URL for direct upload or download of an object.
2320
+ */
2321
+ export const presignObject = (options) => (options.client ?? client).post({
2322
+ security: [{ scheme: 'bearer', type: 'http' }],
2323
+ url: '/v1/storage/presign',
2324
+ ...options,
2325
+ headers: {
2326
+ 'Content-Type': 'application/json',
2327
+ ...options.headers
2328
+ }
2329
+ });
2330
+ /**
2331
+ * List per-key usage for the org.
2332
+ *
2333
+ * Returns each of the organization's API keys with its request count for the
2334
+ * current billing month. Requires the `metering:read` scope.
2335
+ */
2336
+ export const getKeysUsage = (options) => (options?.client ?? client).get({
2337
+ security: [{ scheme: 'bearer', type: 'http' }],
2338
+ url: '/v1/usage/keys',
2339
+ ...options
2340
+ });
2341
+ /**
2342
+ * Get usage for one API key.
2343
+ *
2344
+ * Returns the request count for a single API key this billing month. Requires
2345
+ * the `metering:read` scope; the key must belong to the caller's org.
2346
+ */
2347
+ export const getKeyUsage = (options) => (options.client ?? client).get({
2348
+ security: [{ scheme: 'bearer', type: 'http' }],
2349
+ url: '/v1/usage/keys/{key_id}',
2350
+ ...options
2351
+ });
2352
+ /**
2353
+ * Get the caller's budget.
2354
+ *
2355
+ * Returns current usage (AI tokens, storage, compute hours), the plan's
2356
+ * allowances, and the remaining headroom for each.
2357
+ */
2358
+ export const getUserBudget = (options) => (options?.client ?? client).get({
2359
+ security: [{ scheme: 'bearer', type: 'http' }],
2360
+ url: '/v1/user/budget',
2361
+ ...options
2362
+ });
2363
+ /**
2364
+ * Get the caller's account profile.
2365
+ *
2366
+ * Returns the authenticated user's id, email, name, plan, and status. Fields
2367
+ * after `status` are present only when a stored user record exists.
2368
+ */
2369
+ export const getUserInfo = (options) => (options?.client ?? client).get({
2370
+ security: [{ scheme: 'bearer', type: 'http' }],
2371
+ url: '/v1/user/info',
2372
+ ...options
2373
+ });
2374
+ /**
2375
+ * Get the caller's usage stats.
2376
+ *
2377
+ * Returns a per-service usage breakdown (AI, storage, compute, bandwidth,
2378
+ * functions) for the current month.
2379
+ */
2380
+ export const getUserStats = (options) => (options?.client ?? client).get({
2381
+ security: [{ scheme: 'bearer', type: 'http' }],
2382
+ url: '/v1/user/stats',
2383
+ ...options
2384
+ });
2385
+ /**
2386
+ * List VPCs.
2387
+ *
2388
+ * Returns all VPCs belonging to the caller's project.
2389
+ */
2390
+ export const listVpcs = (options) => (options?.client ?? client).get({
2391
+ security: [{ scheme: 'bearer', type: 'http' }],
2392
+ url: '/v1/vpc',
2393
+ ...options
2394
+ });
2395
+ /**
2396
+ * Create a VPC.
2397
+ *
2398
+ * Provisions a VPC for the caller's project. Currently returns 501 —
2399
+ * enforcement and durable storage are a planned capability.
2400
+ */
2401
+ export const createVpc = (options) => (options.client ?? client).post({
2402
+ security: [{ scheme: 'bearer', type: 'http' }],
2403
+ url: '/v1/vpc',
2404
+ ...options,
2405
+ headers: {
2406
+ 'Content-Type': 'application/json',
2407
+ ...options.headers
2408
+ }
2409
+ });
2410
+ /**
2411
+ * Delete a VPC.
2412
+ *
2413
+ * Removes a VPC and its peers by id.
2414
+ */
2415
+ export const deleteVpc = (options) => (options.client ?? client).delete({
2416
+ security: [{ scheme: 'bearer', type: 'http' }],
2417
+ url: '/v1/vpc/{id}',
2418
+ ...options
2419
+ });
2420
+ /**
2421
+ * Get a VPC.
2422
+ *
2423
+ * Returns a single VPC by id.
2424
+ */
2425
+ export const getVpc = (options) => (options.client ?? client).get({
2426
+ security: [{ scheme: 'bearer', type: 'http' }],
2427
+ url: '/v1/vpc/{id}',
2428
+ ...options
2429
+ });
2430
+ /**
2431
+ * Get a VPC's config.
2432
+ *
2433
+ * Returns the rendered VPN client configuration file for the VPC.
2434
+ */
2435
+ export const getVpcConfig = (options) => (options.client ?? client).get({
2436
+ security: [{ scheme: 'bearer', type: 'http' }],
2437
+ url: '/v1/vpc/{id}/config',
2438
+ ...options
2439
+ });
2440
+ /**
2441
+ * List a VPC's peers.
2442
+ *
2443
+ * Returns all peers registered in the VPC.
2444
+ */
2445
+ export const listVpcPeers = (options) => (options.client ?? client).get({
2446
+ security: [{ scheme: 'bearer', type: 'http' }],
2447
+ url: '/v1/vpc/{id}/peers',
2448
+ ...options
2449
+ });
2450
+ /**
2451
+ * Add a peer to a VPC.
2452
+ *
2453
+ * Registers a peer in the VPC. Currently returns 501 — peer
2454
+ * enforcement and durable storage are a planned capability.
2455
+ */
2456
+ export const addVpcPeer = (options) => (options.client ?? client).post({
2457
+ security: [{ scheme: 'bearer', type: 'http' }],
2458
+ url: '/v1/vpc/{id}/peers',
2459
+ ...options,
2460
+ headers: {
2461
+ 'Content-Type': 'application/json',
2462
+ ...options.headers
2463
+ }
2464
+ });
2465
+ /**
2466
+ * Remove a peer from a VPC.
2467
+ *
2468
+ * Deletes a peer from the VPC by id.
2469
+ */
2470
+ export const removeVpcPeer = (options) => (options.client ?? client).delete({
2471
+ security: [{ scheme: 'bearer', type: 'http' }],
2472
+ url: '/v1/vpc/{id}/peers/{peer_id}',
2473
+ ...options
2474
+ });
2475
+ /**
2476
+ * List recent WAF events.
2477
+ *
2478
+ * Returns the most recent web application firewall events (up to 100).
2479
+ */
2480
+ export const listWafEvents = (options) => (options?.client ?? client).get({
2481
+ security: [{ scheme: 'bearer', type: 'http' }],
2482
+ url: '/v1/waf/events',
2483
+ ...options
2484
+ });
2485
+ /**
2486
+ * List WAF rules.
2487
+ *
2488
+ * Returns all configured web application firewall rules.
2489
+ */
2490
+ export const listWafRules = (options) => (options?.client ?? client).get({
2491
+ security: [{ scheme: 'bearer', type: 'http' }],
2492
+ url: '/v1/waf/rules',
2493
+ ...options
2494
+ });
2495
+ /**
2496
+ * Create a WAF rule.
2497
+ *
2498
+ * Adds a new web application firewall rule and returns the created rule.
2499
+ */
2500
+ export const createWafRule = (options) => (options.client ?? client).post({
2501
+ security: [{ scheme: 'bearer', type: 'http' }],
2502
+ url: '/v1/waf/rules',
2503
+ ...options,
2504
+ headers: {
2505
+ 'Content-Type': 'application/json',
2506
+ ...options.headers
2507
+ }
2508
+ });
2509
+ /**
2510
+ * Delete a WAF rule.
2511
+ *
2512
+ * Removes a web application firewall rule by id.
2513
+ */
2514
+ export const deleteWafRule = (options) => (options.client ?? client).delete({
2515
+ security: [{ scheme: 'bearer', type: 'http' }],
2516
+ url: '/v1/waf/rules/{id}',
2517
+ ...options
2518
+ });
2519
+ /**
2520
+ * Update a WAF rule.
2521
+ *
2522
+ * Replaces the configuration of an existing web application firewall rule.
2523
+ */
2524
+ export const updateWafRule = (options) => (options.client ?? client).put({
2525
+ security: [{ scheme: 'bearer', type: 'http' }],
2526
+ url: '/v1/waf/rules/{id}',
2527
+ ...options,
2528
+ headers: {
2529
+ 'Content-Type': 'application/json',
2530
+ ...options.headers
2531
+ }
2532
+ });
2533
+ /**
2534
+ * Get WAF statistics.
2535
+ *
2536
+ * Returns combined web application firewall and DDoS-detector counters.
2537
+ */
2538
+ export const getWafStats = (options) => (options?.client ?? client).get({
2539
+ security: [{ scheme: 'bearer', type: 'http' }],
2540
+ url: '/v1/waf/stats',
2541
+ ...options
2542
+ });
2543
+ //# sourceMappingURL=sdk.gen.js.map