@scalix-world/sdk 1.2.0 → 1.3.1

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 +1482 -0
  59. package/dist/generated/sdk.gen.d.ts.map +1 -0
  60. package/dist/generated/sdk.gen.js +2686 -0
  61. package/dist/generated/sdk.gen.js.map +1 -0
  62. package/dist/generated/types.gen.d.ts +7642 -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,2686 @@
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
+ * Sign in anonymously.
778
+ *
779
+ * Creates an anonymous end-user account and returns auth tokens; the account
780
+ * can later be linked to a real identity via identity linking.
781
+ */
782
+ export const signUpAnonymous = (options) => (options?.client ?? client).post({
783
+ security: [{ scheme: 'bearer', type: 'http' }],
784
+ url: '/v1/auth/anonymous',
785
+ ...options
786
+ });
787
+ /**
788
+ * Link an identity.
789
+ *
790
+ * Links an additional identity (e.g. an OAuth provider or email/password) to
791
+ * the authenticated user, including upgrading anonymous accounts.
792
+ */
793
+ export const linkIdentity = (options) => (options?.client ?? client).post({
794
+ security: [{ scheme: 'bearer', type: 'http' }],
795
+ url: '/v1/auth/identity/link',
796
+ ...options
797
+ });
798
+ /**
799
+ * Log in.
800
+ *
801
+ * Authenticates an end user with email and password and returns auth tokens.
802
+ */
803
+ export const login = (options) => (options.client ?? client).post({
804
+ security: [{ scheme: 'bearer', type: 'http' }],
805
+ url: '/v1/auth/login',
806
+ ...options,
807
+ headers: {
808
+ 'Content-Type': 'application/json',
809
+ ...options.headers
810
+ }
811
+ });
812
+ /**
813
+ * Log out.
814
+ *
815
+ * Invalidates the caller's current session/token.
816
+ */
817
+ export const logout = (options) => (options?.client ?? client).post({
818
+ security: [{ scheme: 'bearer', type: 'http' }],
819
+ url: '/v1/auth/logout',
820
+ ...options
821
+ });
822
+ /**
823
+ * Send a magic link.
824
+ *
825
+ * Emails the user a passwordless magic sign-in link.
826
+ */
827
+ export const sendMagicLink = (options) => (options?.client ?? client).post({
828
+ security: [{ scheme: 'bearer', type: 'http' }],
829
+ url: '/v1/auth/magic-link',
830
+ ...options
831
+ });
832
+ /**
833
+ * Verify a magic link.
834
+ *
835
+ * Exchanges the emailed magic-link token for Scalix auth tokens.
836
+ */
837
+ export const verifyMagicLink = (options) => (options?.client ?? client).post({
838
+ security: [{ scheme: 'bearer', type: 'http' }],
839
+ url: '/v1/auth/magic-link/verify',
840
+ ...options
841
+ });
842
+ /**
843
+ * List the user's organizations.
844
+ *
845
+ * Returns the organizations the authenticated end user belongs to.
846
+ */
847
+ export const listUserOrgs = (options) => (options?.client ?? client).get({
848
+ security: [{ scheme: 'bearer', type: 'http' }],
849
+ url: '/v1/auth/me/orgs',
850
+ ...options
851
+ });
852
+ /**
853
+ * Complete an MFA challenge.
854
+ *
855
+ * Verifies a TOTP code against an enrolled factor during sign-in and returns
856
+ * auth tokens.
857
+ */
858
+ export const challengeMfa = (options) => (options?.client ?? client).post({
859
+ security: [{ scheme: 'bearer', type: 'http' }],
860
+ url: '/v1/auth/mfa/challenge',
861
+ ...options
862
+ });
863
+ /**
864
+ * Enroll in MFA.
865
+ *
866
+ * Begins TOTP multi-factor enrollment and returns the secret and QR code.
867
+ */
868
+ export const enrollMfa = (options) => (options?.client ?? client).post({
869
+ security: [{ scheme: 'bearer', type: 'http' }],
870
+ url: '/v1/auth/mfa/enroll',
871
+ ...options
872
+ });
873
+ /**
874
+ * List MFA factors.
875
+ *
876
+ * Returns the authenticated user's enrolled multi-factor authentication factors.
877
+ */
878
+ export const listMfaFactors = (options) => (options?.client ?? client).get({
879
+ security: [{ scheme: 'bearer', type: 'http' }],
880
+ url: '/v1/auth/mfa/factors',
881
+ ...options
882
+ });
883
+ /**
884
+ * Delete an MFA factor.
885
+ *
886
+ * Removes an enrolled multi-factor authentication factor.
887
+ */
888
+ export const deleteMfaFactor = (options) => (options.client ?? client).delete({
889
+ security: [{ scheme: 'bearer', type: 'http' }],
890
+ url: '/v1/auth/mfa/factors/{id}',
891
+ ...options
892
+ });
893
+ /**
894
+ * Verify MFA.
895
+ *
896
+ * Verifies a TOTP code to complete multi-factor enrollment or a challenge.
897
+ */
898
+ export const verifyMfa = (options) => (options?.client ?? client).post({
899
+ security: [{ scheme: 'bearer', type: 'http' }],
900
+ url: '/v1/auth/mfa/verify',
901
+ ...options
902
+ });
903
+ /**
904
+ * Start OAuth authorization.
905
+ *
906
+ * Returns the provider authorization URL to begin an OAuth sign-in flow.
907
+ */
908
+ export const authorizeOauth = (options) => (options?.client ?? client).post({
909
+ security: [{ scheme: 'bearer', type: 'http' }],
910
+ url: '/v1/auth/oauth/authorize',
911
+ ...options
912
+ });
913
+ /**
914
+ * Complete OAuth sign-in.
915
+ *
916
+ * Exchanges the provider OAuth callback for Scalix auth tokens.
917
+ */
918
+ export const oauthCallback = (options) => (options?.client ?? client).post({
919
+ security: [{ scheme: 'bearer', type: 'http' }],
920
+ url: '/v1/auth/oauth/callback',
921
+ ...options
922
+ });
923
+ /**
924
+ * Send a one-time passcode.
925
+ *
926
+ * Sends the user a one-time passcode for passwordless sign-in.
927
+ */
928
+ export const sendOtp = (options) => (options?.client ?? client).post({
929
+ security: [{ scheme: 'bearer', type: 'http' }],
930
+ url: '/v1/auth/otp',
931
+ ...options
932
+ });
933
+ /**
934
+ * Verify a one-time passcode.
935
+ *
936
+ * Exchanges the phone number and OTP code for Scalix auth tokens.
937
+ */
938
+ export const verifyOtp = (options) => (options?.client ?? client).post({
939
+ security: [{ scheme: 'bearer', type: 'http' }],
940
+ url: '/v1/auth/otp/verify',
941
+ ...options
942
+ });
943
+ /**
944
+ * Request a password reset.
945
+ *
946
+ * Emails the user a password-recovery link.
947
+ */
948
+ export const requestPasswordReset = (options) => (options?.client ?? client).post({
949
+ security: [{ scheme: 'bearer', type: 'http' }],
950
+ url: '/v1/auth/recover',
951
+ ...options
952
+ });
953
+ /**
954
+ * Reset the password.
955
+ *
956
+ * Sets a new password using a recovery token.
957
+ */
958
+ export const resetPassword = (options) => (options?.client ?? client).put({
959
+ security: [{ scheme: 'bearer', type: 'http' }],
960
+ url: '/v1/auth/recover/reset',
961
+ ...options
962
+ });
963
+ /**
964
+ * Refresh auth tokens.
965
+ *
966
+ * Exchanges a refresh token for a new access/refresh token pair.
967
+ */
968
+ export const refreshToken = (options) => (options?.client ?? client).post({
969
+ security: [{ scheme: 'bearer', type: 'http' }],
970
+ url: '/v1/auth/refresh',
971
+ ...options
972
+ });
973
+ /**
974
+ * Resend the verification email.
975
+ *
976
+ * Sends the email-verification message again.
977
+ */
978
+ export const resendVerification = (options) => (options?.client ?? client).post({
979
+ security: [{ scheme: 'bearer', type: 'http' }],
980
+ url: '/v1/auth/resend-verification',
981
+ ...options
982
+ });
983
+ /**
984
+ * List sessions.
985
+ *
986
+ * Returns the authenticated user's active sessions.
987
+ */
988
+ export const listSessions = (options) => (options?.client ?? client).get({
989
+ security: [{ scheme: 'bearer', type: 'http' }],
990
+ url: '/v1/auth/sessions',
991
+ ...options
992
+ });
993
+ /**
994
+ * Revoke a session.
995
+ *
996
+ * Terminates one of the authenticated user's sessions.
997
+ */
998
+ export const revokeSession = (options) => (options.client ?? client).delete({
999
+ security: [{ scheme: 'bearer', type: 'http' }],
1000
+ url: '/v1/auth/sessions/{id}',
1001
+ ...options
1002
+ });
1003
+ /**
1004
+ * Sign up a new user.
1005
+ *
1006
+ * Creates a new end-user account and returns auth tokens plus the created user.
1007
+ */
1008
+ export const signUp = (options) => (options.client ?? client).post({
1009
+ security: [{ scheme: 'bearer', type: 'http' }],
1010
+ url: '/v1/auth/signup',
1011
+ ...options,
1012
+ headers: {
1013
+ 'Content-Type': 'application/json',
1014
+ ...options.headers
1015
+ }
1016
+ });
1017
+ /**
1018
+ * Get the current user.
1019
+ *
1020
+ * Returns the authenticated end user's profile.
1021
+ */
1022
+ export const getAuthUser = (options) => (options?.client ?? client).get({
1023
+ security: [{ scheme: 'bearer', type: 'http' }],
1024
+ url: '/v1/auth/user',
1025
+ ...options
1026
+ });
1027
+ /**
1028
+ * Update the current user.
1029
+ *
1030
+ * Updates the authenticated end user's profile and returns the new record.
1031
+ */
1032
+ export const updateAuthUser = (options) => (options?.client ?? client).put({
1033
+ security: [{ scheme: 'bearer', type: 'http' }],
1034
+ url: '/v1/auth/user',
1035
+ ...options
1036
+ });
1037
+ /**
1038
+ * List consent records.
1039
+ *
1040
+ * Returns the authenticated user's consent audit trail.
1041
+ */
1042
+ export const listAuthUserConsent = (options) => (options?.client ?? client).get({
1043
+ security: [{ scheme: 'bearer', type: 'http' }],
1044
+ url: '/v1/auth/user/consent',
1045
+ ...options
1046
+ });
1047
+ /**
1048
+ * Record a consent decision.
1049
+ *
1050
+ * Records a single GDPR consent decision for the authenticated user.
1051
+ */
1052
+ export const recordAuthUserConsent = (options) => (options.client ?? client).post({
1053
+ security: [{ scheme: 'bearer', type: 'http' }],
1054
+ url: '/v1/auth/user/consent',
1055
+ ...options,
1056
+ headers: {
1057
+ 'Content-Type': 'application/json',
1058
+ ...options.headers
1059
+ }
1060
+ });
1061
+ /**
1062
+ * Export user data.
1063
+ *
1064
+ * Returns a complete export of the authenticated user's data (GDPR portability).
1065
+ */
1066
+ export const exportAuthUser = (options) => (options?.client ?? client).get({
1067
+ security: [{ scheme: 'bearer', type: 'http' }],
1068
+ url: '/v1/auth/user/export',
1069
+ ...options
1070
+ });
1071
+ /**
1072
+ * Verify an email address.
1073
+ *
1074
+ * Confirms the user's email address using the emailed verification token.
1075
+ */
1076
+ export const verifyEmail = (options) => (options?.client ?? client).post({
1077
+ security: [{ scheme: 'bearer', type: 'http' }],
1078
+ url: '/v1/auth/verify',
1079
+ ...options
1080
+ });
1081
+ /**
1082
+ * List builds.
1083
+ *
1084
+ * Returns the builds for the caller's project.
1085
+ */
1086
+ export const listBuilds = (options) => (options?.client ?? client).get({
1087
+ security: [{ scheme: 'bearer', type: 'http' }],
1088
+ url: '/v1/build',
1089
+ ...options
1090
+ });
1091
+ /**
1092
+ * Start a build.
1093
+ *
1094
+ * Starts a container image build and returns the build record.
1095
+ */
1096
+ export const createBuild = (options) => (options.client ?? client).post({
1097
+ security: [{ scheme: 'bearer', type: 'http' }],
1098
+ url: '/v1/build',
1099
+ ...options,
1100
+ headers: {
1101
+ 'Content-Type': 'application/json',
1102
+ ...options.headers
1103
+ }
1104
+ });
1105
+ /**
1106
+ * Get a build.
1107
+ *
1108
+ * Returns a single build by id.
1109
+ */
1110
+ export const getBuild = (options) => (options.client ?? client).get({
1111
+ security: [{ scheme: 'bearer', type: 'http' }],
1112
+ url: '/v1/build/{id}',
1113
+ ...options
1114
+ });
1115
+ /**
1116
+ * Cancel a build.
1117
+ *
1118
+ * Cancels an in-progress build.
1119
+ */
1120
+ export const cancelBuild = (options) => (options.client ?? client).post({
1121
+ security: [{ scheme: 'bearer', type: 'http' }],
1122
+ url: '/v1/build/{id}/cancel',
1123
+ ...options
1124
+ });
1125
+ /**
1126
+ * Get build logs.
1127
+ *
1128
+ * Returns log output for a build.
1129
+ */
1130
+ export const getBuildLogs = (options) => (options.client ?? client).get({
1131
+ security: [{ scheme: 'bearer', type: 'http' }],
1132
+ url: '/v1/build/{id}/logs',
1133
+ ...options
1134
+ });
1135
+ /**
1136
+ * Query the audit log.
1137
+ *
1138
+ * Returns audit events for the caller's tenant, filterable by action and time
1139
+ * range. The tenant scope is always taken from the token, never the query.
1140
+ */
1141
+ export const queryAuditLog = (options) => (options?.client ?? client).get({
1142
+ security: [{ scheme: 'bearer', type: 'http' }],
1143
+ url: '/v1/compliance/audit',
1144
+ ...options
1145
+ });
1146
+ /**
1147
+ * Export the audit log.
1148
+ *
1149
+ * Returns the full audit trail for the caller's tenant for compliance export.
1150
+ */
1151
+ export const exportAuditLog = (options) => (options?.client ?? client).get({
1152
+ security: [{ scheme: 'bearer', type: 'http' }],
1153
+ url: '/v1/compliance/audit/export',
1154
+ ...options
1155
+ });
1156
+ /**
1157
+ * List GDPR requests.
1158
+ *
1159
+ * Returns the data-subject requests for the caller's tenant.
1160
+ */
1161
+ export const listGdprRequests = (options) => (options?.client ?? client).get({
1162
+ security: [{ scheme: 'bearer', type: 'http' }],
1163
+ url: '/v1/compliance/gdpr/requests',
1164
+ ...options
1165
+ });
1166
+ /**
1167
+ * Create a GDPR request.
1168
+ *
1169
+ * Files a GDPR data-subject request (access / erasure / rectification). This is
1170
+ * intake only: the request is persisted with status `pending`; export and
1171
+ * erasure are fulfilled out of band.
1172
+ */
1173
+ export const createGdprRequest = (options) => (options.client ?? client).post({
1174
+ security: [{ scheme: 'bearer', type: 'http' }],
1175
+ url: '/v1/compliance/gdpr/requests',
1176
+ ...options,
1177
+ headers: {
1178
+ 'Content-Type': 'application/json',
1179
+ ...options.headers
1180
+ }
1181
+ });
1182
+ /**
1183
+ * Get a GDPR request.
1184
+ *
1185
+ * Returns a single GDPR data-subject request by id.
1186
+ */
1187
+ export const getGdprRequest = (options) => (options.client ?? client).get({
1188
+ security: [{ scheme: 'bearer', type: 'http' }],
1189
+ url: '/v1/compliance/gdpr/requests/{id}',
1190
+ ...options
1191
+ });
1192
+ /**
1193
+ * Get compliance status.
1194
+ *
1195
+ * Runs the compliance checks (encryption, audit, access controls) and returns
1196
+ * each check's result plus an overall score.
1197
+ */
1198
+ export const getComplianceStatus = (options) => (options?.client ?? client).get({
1199
+ security: [{ scheme: 'bearer', type: 'http' }],
1200
+ url: '/v1/compliance/status',
1201
+ ...options
1202
+ });
1203
+ /**
1204
+ * List deployments.
1205
+ *
1206
+ * Returns all compute deployments for the caller's project.
1207
+ */
1208
+ export const listDeployments = (options) => (options?.client ?? client).get({
1209
+ security: [{ scheme: 'bearer', type: 'http' }],
1210
+ url: '/v1/compute/deployments',
1211
+ ...options
1212
+ });
1213
+ /**
1214
+ * Create a deployment.
1215
+ *
1216
+ * Deploys a container/VM compute workload and returns the created deployment.
1217
+ */
1218
+ export const createDeployment = (options) => (options.client ?? client).post({
1219
+ security: [{ scheme: 'bearer', type: 'http' }],
1220
+ url: '/v1/compute/deployments',
1221
+ ...options,
1222
+ headers: {
1223
+ 'Content-Type': 'application/json',
1224
+ ...options.headers
1225
+ }
1226
+ });
1227
+ /**
1228
+ * Delete a deployment.
1229
+ *
1230
+ * Removes a compute deployment by id.
1231
+ */
1232
+ export const deleteDeployment = (options) => (options.client ?? client).delete({
1233
+ security: [{ scheme: 'bearer', type: 'http' }],
1234
+ url: '/v1/compute/deployments/{id}',
1235
+ ...options
1236
+ });
1237
+ /**
1238
+ * Get a deployment.
1239
+ *
1240
+ * Returns a single compute deployment by id.
1241
+ */
1242
+ export const getDeployment = (options) => (options.client ?? client).get({
1243
+ security: [{ scheme: 'bearer', type: 'http' }],
1244
+ url: '/v1/compute/deployments/{id}',
1245
+ ...options
1246
+ });
1247
+ /**
1248
+ * List deployment instances.
1249
+ *
1250
+ * Returns the running instances of a compute deployment.
1251
+ */
1252
+ export const listDeploymentInstances = (options) => (options.client ?? client).get({
1253
+ security: [{ scheme: 'bearer', type: 'http' }],
1254
+ url: '/v1/compute/deployments/{id}/instances',
1255
+ ...options
1256
+ });
1257
+ /**
1258
+ * Get deployment logs.
1259
+ *
1260
+ * Returns log output for a compute deployment.
1261
+ */
1262
+ export const getDeploymentLogs = (options) => (options.client ?? client).get({
1263
+ security: [{ scheme: 'bearer', type: 'http' }],
1264
+ url: '/v1/compute/deployments/{id}/logs',
1265
+ ...options
1266
+ });
1267
+ /**
1268
+ * Restart a deployment.
1269
+ *
1270
+ * Restarts all instances of a compute deployment.
1271
+ */
1272
+ export const restartDeployment = (options) => (options.client ?? client).post({
1273
+ security: [{ scheme: 'bearer', type: 'http' }],
1274
+ url: '/v1/compute/deployments/{id}/restart',
1275
+ ...options
1276
+ });
1277
+ /**
1278
+ * Roll back a deployment.
1279
+ *
1280
+ * Rolls a compute deployment back to a previous version.
1281
+ */
1282
+ export const rollbackDeployment = (options) => (options.client ?? client).post({
1283
+ security: [{ scheme: 'bearer', type: 'http' }],
1284
+ url: '/v1/compute/deployments/{id}/rollback',
1285
+ ...options,
1286
+ headers: {
1287
+ 'Content-Type': 'application/json',
1288
+ ...options.headers
1289
+ }
1290
+ });
1291
+ /**
1292
+ * Scale a deployment.
1293
+ *
1294
+ * Adjusts the instance count (min/max) for a compute deployment.
1295
+ */
1296
+ export const scaleDeployment = (options) => (options.client ?? client).post({
1297
+ security: [{ scheme: 'bearer', type: 'http' }],
1298
+ url: '/v1/compute/deployments/{id}/scale',
1299
+ ...options,
1300
+ headers: {
1301
+ 'Content-Type': 'application/json',
1302
+ ...options.headers
1303
+ }
1304
+ });
1305
+ /**
1306
+ * List deployment versions.
1307
+ *
1308
+ * Returns the version history of a compute deployment.
1309
+ */
1310
+ export const listDeploymentVersions = (options) => (options.client ?? client).get({
1311
+ security: [{ scheme: 'bearer', type: 'http' }],
1312
+ url: '/v1/compute/deployments/{id}/versions',
1313
+ ...options
1314
+ });
1315
+ /**
1316
+ * List cron schedules.
1317
+ *
1318
+ * Returns all scheduled jobs for the caller's project.
1319
+ */
1320
+ export const listCronSchedules = (options) => (options?.client ?? client).get({
1321
+ security: [{ scheme: 'bearer', type: 'http' }],
1322
+ url: '/v1/cron/schedules',
1323
+ ...options
1324
+ });
1325
+ /**
1326
+ * Create a cron schedule.
1327
+ *
1328
+ * Creates a new scheduled job.
1329
+ */
1330
+ export const createCronSchedule = (options) => (options.client ?? client).post({
1331
+ security: [{ scheme: 'bearer', type: 'http' }],
1332
+ url: '/v1/cron/schedules',
1333
+ ...options,
1334
+ headers: {
1335
+ 'Content-Type': 'application/json',
1336
+ ...options.headers
1337
+ }
1338
+ });
1339
+ /**
1340
+ * Delete a cron schedule.
1341
+ *
1342
+ * Removes a scheduled job by id.
1343
+ */
1344
+ export const deleteCronSchedule = (options) => (options.client ?? client).delete({
1345
+ security: [{ scheme: 'bearer', type: 'http' }],
1346
+ url: '/v1/cron/schedules/{id}',
1347
+ ...options
1348
+ });
1349
+ /**
1350
+ * Get a cron schedule.
1351
+ *
1352
+ * Returns a single scheduled job by id.
1353
+ */
1354
+ export const getCronSchedule = (options) => (options.client ?? client).get({
1355
+ security: [{ scheme: 'bearer', type: 'http' }],
1356
+ url: '/v1/cron/schedules/{id}',
1357
+ ...options
1358
+ });
1359
+ /**
1360
+ * Update a cron schedule.
1361
+ *
1362
+ * Updates an existing scheduled job.
1363
+ */
1364
+ export const updateCronSchedule = (options) => (options.client ?? client).put({
1365
+ security: [{ scheme: 'bearer', type: 'http' }],
1366
+ url: '/v1/cron/schedules/{id}',
1367
+ ...options,
1368
+ headers: {
1369
+ 'Content-Type': 'application/json',
1370
+ ...options.headers
1371
+ }
1372
+ });
1373
+ /**
1374
+ * List schedule executions.
1375
+ *
1376
+ * Returns the execution history of a scheduled job.
1377
+ */
1378
+ export const listCronExecutions = (options) => (options.client ?? client).get({
1379
+ security: [{ scheme: 'bearer', type: 'http' }],
1380
+ url: '/v1/cron/schedules/{id}/executions',
1381
+ ...options
1382
+ });
1383
+ /**
1384
+ * Trigger a cron schedule.
1385
+ *
1386
+ * Runs a scheduled job immediately, outside its normal schedule.
1387
+ */
1388
+ export const triggerCronSchedule = (options) => (options.client ?? client).post({
1389
+ security: [{ scheme: 'bearer', type: 'http' }],
1390
+ url: '/v1/cron/schedules/{id}/trigger',
1391
+ ...options
1392
+ });
1393
+ /**
1394
+ * List custom domains.
1395
+ *
1396
+ * Returns all custom domains attached to the caller's project, with their
1397
+ * verification and SSL status.
1398
+ */
1399
+ export const listDomains = (options) => (options?.client ?? client).get({
1400
+ security: [{ scheme: 'bearer', type: 'http' }],
1401
+ url: '/v1/domains',
1402
+ ...options
1403
+ });
1404
+ /**
1405
+ * Add a custom domain.
1406
+ *
1407
+ * Registers a custom domain for the caller's project and returns the created
1408
+ * record plus the DNS records (CNAME + TXT) needed to verify and serve it.
1409
+ */
1410
+ export const addDomain = (options) => (options.client ?? client).post({
1411
+ security: [{ scheme: 'bearer', type: 'http' }],
1412
+ url: '/v1/domains',
1413
+ ...options,
1414
+ headers: {
1415
+ 'Content-Type': 'application/json',
1416
+ ...options.headers
1417
+ }
1418
+ });
1419
+ /**
1420
+ * Remove a custom domain.
1421
+ *
1422
+ * Detaches a custom domain from the caller's project and deletes its record.
1423
+ */
1424
+ export const deleteDomain = (options) => (options.client ?? client).delete({
1425
+ security: [{ scheme: 'bearer', type: 'http' }],
1426
+ url: '/v1/domains/{id}',
1427
+ ...options
1428
+ });
1429
+ /**
1430
+ * Get a custom domain.
1431
+ *
1432
+ * Returns a single custom domain by id, scoped to the caller's project.
1433
+ */
1434
+ export const getDomain = (options) => (options.client ?? client).get({
1435
+ security: [{ scheme: 'bearer', type: 'http' }],
1436
+ url: '/v1/domains/{id}',
1437
+ ...options
1438
+ });
1439
+ /**
1440
+ * Provision SSL for a domain.
1441
+ *
1442
+ * Starts background Let's Encrypt certificate issuance for a verified domain.
1443
+ * The domain must be active; automatic SSL must be configured on the deployment.
1444
+ */
1445
+ export const provisionDomainSsl = (options) => (options.client ?? client).post({
1446
+ security: [{ scheme: 'bearer', type: 'http' }],
1447
+ url: '/v1/domains/{id}/ssl',
1448
+ ...options
1449
+ });
1450
+ /**
1451
+ * Verify a custom domain.
1452
+ *
1453
+ * Confirms — via a standard public DNS lookup, no provider credentials — that the
1454
+ * customer's domain points at our edge (its A records match `cname.<platform>`,
1455
+ * or a configured `SCALIX_EDGE_IP`). On success, marks the domain active. This is
1456
+ * the industry-standard "does it point at us" check (Vercel/Netlify/Render).
1457
+ */
1458
+ export const verifyDomain = (options) => (options.client ?? client).post({
1459
+ security: [{ scheme: 'bearer', type: 'http' }],
1460
+ url: '/v1/domains/{id}/verify',
1461
+ ...options
1462
+ });
1463
+ /**
1464
+ * List environment variables.
1465
+ *
1466
+ * Returns all project-level environment variables (secret values masked).
1467
+ */
1468
+ export const listEnvVars = (options) => (options?.client ?? client).get({
1469
+ security: [{ scheme: 'bearer', type: 'http' }],
1470
+ url: '/v1/env',
1471
+ ...options
1472
+ });
1473
+ /**
1474
+ * Set an environment variable.
1475
+ *
1476
+ * Creates or updates a single project-level environment variable.
1477
+ */
1478
+ export const setEnvVar = (options) => (options.client ?? client).post({
1479
+ security: [{ scheme: 'bearer', type: 'http' }],
1480
+ url: '/v1/env',
1481
+ ...options,
1482
+ headers: {
1483
+ 'Content-Type': 'application/json',
1484
+ ...options.headers
1485
+ }
1486
+ });
1487
+ /**
1488
+ * Bulk-import environment variables.
1489
+ *
1490
+ * Imports many project-level environment variables in one request.
1491
+ */
1492
+ export const bulkImportEnvVars = (options) => (options.client ?? client).post({
1493
+ security: [{ scheme: 'bearer', type: 'http' }],
1494
+ url: '/v1/env/bulk',
1495
+ ...options,
1496
+ headers: {
1497
+ 'Content-Type': 'application/json',
1498
+ ...options.headers
1499
+ }
1500
+ });
1501
+ /**
1502
+ * Delete an environment variable.
1503
+ *
1504
+ * Removes a project-level environment variable by id.
1505
+ */
1506
+ export const deleteEnvVar = (options) => (options.client ?? client).delete({
1507
+ security: [{ scheme: 'bearer', type: 'http' }],
1508
+ url: '/v1/env/{id}',
1509
+ ...options
1510
+ });
1511
+ /**
1512
+ * Delete a subscription.
1513
+ *
1514
+ * Removes an event subscription by id.
1515
+ */
1516
+ export const deleteEventSubscription = (options) => (options.client ?? client).delete({
1517
+ security: [{ scheme: 'bearer', type: 'http' }],
1518
+ url: '/v1/events/subscriptions/{id}',
1519
+ ...options
1520
+ });
1521
+ /**
1522
+ * Get a subscription.
1523
+ *
1524
+ * Returns a single event subscription by id.
1525
+ */
1526
+ export const getEventSubscription = (options) => (options.client ?? client).get({
1527
+ security: [{ scheme: 'bearer', type: 'http' }],
1528
+ url: '/v1/events/subscriptions/{id}',
1529
+ ...options
1530
+ });
1531
+ /**
1532
+ * List subscription deliveries.
1533
+ *
1534
+ * Returns the delivery attempts for an event subscription.
1535
+ */
1536
+ export const listSubscriptionDeliveries = (options) => (options.client ?? client).get({
1537
+ security: [{ scheme: 'bearer', type: 'http' }],
1538
+ url: '/v1/events/subscriptions/{id}/deliveries',
1539
+ ...options
1540
+ });
1541
+ /**
1542
+ * List topics.
1543
+ *
1544
+ * Returns all event-bus topics for the caller's project.
1545
+ */
1546
+ export const listEventTopics = (options) => (options?.client ?? client).get({
1547
+ security: [{ scheme: 'bearer', type: 'http' }],
1548
+ url: '/v1/events/topics',
1549
+ ...options
1550
+ });
1551
+ /**
1552
+ * Create a topic.
1553
+ *
1554
+ * Creates a new event-bus topic.
1555
+ */
1556
+ export const createEventTopic = (options) => (options?.client ?? client).post({
1557
+ security: [{ scheme: 'bearer', type: 'http' }],
1558
+ url: '/v1/events/topics',
1559
+ ...options
1560
+ });
1561
+ /**
1562
+ * Delete a topic.
1563
+ *
1564
+ * Removes an event-bus topic by id or name.
1565
+ */
1566
+ export const deleteEventTopic = (options) => (options.client ?? client).delete({
1567
+ security: [{ scheme: 'bearer', type: 'http' }],
1568
+ url: '/v1/events/topics/{id}',
1569
+ ...options
1570
+ });
1571
+ /**
1572
+ * Get a topic.
1573
+ *
1574
+ * Returns a single event-bus topic by id or name.
1575
+ */
1576
+ export const getEventTopic = (options) => (options.client ?? client).get({
1577
+ security: [{ scheme: 'bearer', type: 'http' }],
1578
+ url: '/v1/events/topics/{id}',
1579
+ ...options
1580
+ });
1581
+ /**
1582
+ * List events on a topic.
1583
+ *
1584
+ * Returns the recent events published to a topic.
1585
+ */
1586
+ export const listTopicEvents = (options) => (options.client ?? client).get({
1587
+ security: [{ scheme: 'bearer', type: 'http' }],
1588
+ url: '/v1/events/topics/{id}/events',
1589
+ ...options
1590
+ });
1591
+ /**
1592
+ * Publish an event.
1593
+ *
1594
+ * Publishes an event payload to a topic.
1595
+ */
1596
+ export const publishEvent = (options) => (options.client ?? client).post({
1597
+ security: [{ scheme: 'bearer', type: 'http' }],
1598
+ url: '/v1/events/topics/{id}/publish',
1599
+ ...options,
1600
+ headers: {
1601
+ 'Content-Type': 'application/json',
1602
+ ...options.headers
1603
+ }
1604
+ });
1605
+ /**
1606
+ * List a topic's subscriptions.
1607
+ *
1608
+ * Returns the subscriptions attached to a topic.
1609
+ */
1610
+ export const listTopicSubscriptions = (options) => (options.client ?? client).get({
1611
+ security: [{ scheme: 'bearer', type: 'http' }],
1612
+ url: '/v1/events/topics/{id}/subscriptions',
1613
+ ...options
1614
+ });
1615
+ /**
1616
+ * Create a subscription.
1617
+ *
1618
+ * Creates a subscription that delivers a topic's events to an endpoint.
1619
+ */
1620
+ export const createEventSubscription = (options) => (options.client ?? client).post({
1621
+ security: [{ scheme: 'bearer', type: 'http' }],
1622
+ url: '/v1/events/topics/{id}/subscriptions',
1623
+ ...options,
1624
+ headers: {
1625
+ 'Content-Type': 'application/json',
1626
+ ...options.headers
1627
+ }
1628
+ });
1629
+ /**
1630
+ * List functions.
1631
+ *
1632
+ * Returns all serverless functions for the caller's project.
1633
+ */
1634
+ export const listFunctions = (options) => (options?.client ?? client).get({
1635
+ security: [{ scheme: 'bearer', type: 'http' }],
1636
+ url: '/v1/functions',
1637
+ ...options
1638
+ });
1639
+ /**
1640
+ * Create a function.
1641
+ *
1642
+ * Deploys a serverless function and returns the created function.
1643
+ */
1644
+ export const createFunction = (options) => (options.client ?? client).post({
1645
+ security: [{ scheme: 'bearer', type: 'http' }],
1646
+ url: '/v1/functions',
1647
+ ...options,
1648
+ headers: {
1649
+ 'Content-Type': 'application/json',
1650
+ ...options.headers
1651
+ }
1652
+ });
1653
+ /**
1654
+ * Delete a function.
1655
+ *
1656
+ * Removes a serverless function by id or name.
1657
+ */
1658
+ export const deleteFunction = (options) => (options.client ?? client).delete({
1659
+ security: [{ scheme: 'bearer', type: 'http' }],
1660
+ url: '/v1/functions/{id}',
1661
+ ...options
1662
+ });
1663
+ /**
1664
+ * Get a function.
1665
+ *
1666
+ * Returns a single serverless function by id or name.
1667
+ */
1668
+ export const getFunction = (options) => (options.client ?? client).get({
1669
+ security: [{ scheme: 'bearer', type: 'http' }],
1670
+ url: '/v1/functions/{id}',
1671
+ ...options
1672
+ });
1673
+ /**
1674
+ * Update a function.
1675
+ *
1676
+ * Redeploys a serverless function with a new configuration.
1677
+ */
1678
+ export const updateFunction = (options) => (options.client ?? client).put({
1679
+ security: [{ scheme: 'bearer', type: 'http' }],
1680
+ url: '/v1/functions/{id}',
1681
+ ...options,
1682
+ headers: {
1683
+ 'Content-Type': 'application/json',
1684
+ ...options.headers
1685
+ }
1686
+ });
1687
+ /**
1688
+ * List function invocations.
1689
+ *
1690
+ * Returns the invocation history for a serverless function.
1691
+ */
1692
+ export const listFunctionInvocations = (options) => (options.client ?? client).get({
1693
+ security: [{ scheme: 'bearer', type: 'http' }],
1694
+ url: '/v1/functions/{id}/invocations',
1695
+ ...options
1696
+ });
1697
+ /**
1698
+ * Invoke a function.
1699
+ *
1700
+ * Invokes a serverless function with the supplied payload and returns its result.
1701
+ */
1702
+ export const invokeFunction = (options) => (options.client ?? client).post({
1703
+ security: [{ scheme: 'bearer', type: 'http' }],
1704
+ url: '/v1/functions/{id}/invoke',
1705
+ ...options,
1706
+ headers: {
1707
+ 'Content-Type': 'application/json',
1708
+ ...options.headers
1709
+ }
1710
+ });
1711
+ /**
1712
+ * Get function logs.
1713
+ *
1714
+ * Returns log output for a serverless function.
1715
+ */
1716
+ export const getFunctionLogs = (options) => (options.client ?? client).get({
1717
+ security: [{ scheme: 'bearer', type: 'http' }],
1718
+ url: '/v1/functions/{id}/logs',
1719
+ ...options
1720
+ });
1721
+ /**
1722
+ * List source-control integrations.
1723
+ *
1724
+ * Returns all GitHub/GitLab/Bitbucket integrations attached to the caller's
1725
+ * project.
1726
+ */
1727
+ export const listIntegrations = (options) => (options?.client ?? client).get({
1728
+ security: [{ scheme: 'bearer', type: 'http' }],
1729
+ url: '/v1/integrations',
1730
+ ...options
1731
+ });
1732
+ /**
1733
+ * Create a source-control integration.
1734
+ *
1735
+ * Attaches a Git provider repo to the caller's project and returns the created
1736
+ * integration plus the webhook URL and secret to configure on the provider.
1737
+ */
1738
+ export const createIntegration = (options) => (options.client ?? client).post({
1739
+ security: [{ scheme: 'bearer', type: 'http' }],
1740
+ url: '/v1/integrations',
1741
+ ...options,
1742
+ headers: {
1743
+ 'Content-Type': 'application/json',
1744
+ ...options.headers
1745
+ }
1746
+ });
1747
+ /**
1748
+ * List GitHub App installations.
1749
+ *
1750
+ * Returns the GitHub App installations registered to the caller's project.
1751
+ */
1752
+ export const listGithubInstallations = (options) => (options?.client ?? client).get({
1753
+ security: [{ scheme: 'bearer', type: 'http' }],
1754
+ url: '/v1/integrations/github/installations',
1755
+ ...options
1756
+ });
1757
+ /**
1758
+ * Mint an installation token.
1759
+ *
1760
+ * Returns a short-lived GitHub App installation access token for an
1761
+ * installation owned by the caller's project.
1762
+ */
1763
+ export const createGithubInstallationToken = (options) => (options.client ?? client).post({
1764
+ security: [{ scheme: 'bearer', type: 'http' }],
1765
+ url: '/v1/integrations/github/installations/{installation_id}/token',
1766
+ ...options
1767
+ });
1768
+ /**
1769
+ * List accessible GitHub repos.
1770
+ *
1771
+ * Returns the repositories the project's GitHub App installations can access,
1772
+ * aggregated across all active installations.
1773
+ */
1774
+ export const listGithubRepos = (options) => (options?.client ?? client).get({
1775
+ security: [{ scheme: 'bearer', type: 'http' }],
1776
+ url: '/v1/integrations/github/repos',
1777
+ ...options
1778
+ });
1779
+ /**
1780
+ * Delete a source-control integration.
1781
+ *
1782
+ * Detaches a Git provider repo from the caller's project and deletes the
1783
+ * integration record.
1784
+ */
1785
+ export const deleteIntegration = (options) => (options.client ?? client).delete({
1786
+ security: [{ scheme: 'bearer', type: 'http' }],
1787
+ url: '/v1/integrations/{id}',
1788
+ ...options
1789
+ });
1790
+ /**
1791
+ * Get a source-control integration.
1792
+ *
1793
+ * Returns a single integration by id, scoped to the caller's project.
1794
+ */
1795
+ export const getIntegration = (options) => (options.client ?? client).get({
1796
+ security: [{ scheme: 'bearer', type: 'http' }],
1797
+ url: '/v1/integrations/{id}',
1798
+ ...options
1799
+ });
1800
+ /**
1801
+ * Update a source-control integration.
1802
+ *
1803
+ * Updates an integration's build/deploy settings (branch filter, auto-build,
1804
+ * auto-deploy, preview, status) and returns the updated record.
1805
+ */
1806
+ export const updateIntegration = (options) => (options.client ?? client).put({
1807
+ security: [{ scheme: 'bearer', type: 'http' }],
1808
+ url: '/v1/integrations/{id}',
1809
+ ...options,
1810
+ headers: {
1811
+ 'Content-Type': 'application/json',
1812
+ ...options.headers
1813
+ }
1814
+ });
1815
+ /**
1816
+ * Delete keys.
1817
+ *
1818
+ * Removes one or more keys from the tenant's key-value store (batch delete).
1819
+ */
1820
+ export const kvDel = (options) => (options.client ?? client).post({
1821
+ security: [{ scheme: 'bearer', type: 'http' }],
1822
+ url: '/v1/kv/del',
1823
+ ...options,
1824
+ headers: {
1825
+ 'Content-Type': 'application/json',
1826
+ ...options.headers
1827
+ }
1828
+ });
1829
+ /**
1830
+ * Check if a key exists.
1831
+ *
1832
+ * Returns whether a key is present in the tenant's key-value store.
1833
+ */
1834
+ export const kvExists = (options) => (options.client ?? client).post({
1835
+ security: [{ scheme: 'bearer', type: 'http' }],
1836
+ url: '/v1/kv/exists',
1837
+ ...options,
1838
+ headers: {
1839
+ 'Content-Type': 'application/json',
1840
+ ...options.headers
1841
+ }
1842
+ });
1843
+ /**
1844
+ * Fetch a value by key.
1845
+ *
1846
+ * Reads a single key from the tenant's key-value store; returns `value: null` if absent.
1847
+ */
1848
+ export const kvGet = (options) => (options.client ?? client).post({
1849
+ security: [{ scheme: 'bearer', type: 'http' }],
1850
+ url: '/v1/kv/get',
1851
+ ...options,
1852
+ headers: {
1853
+ 'Content-Type': 'application/json',
1854
+ ...options.headers
1855
+ }
1856
+ });
1857
+ /**
1858
+ * List keys.
1859
+ *
1860
+ * Returns the keys in the tenant's key-value store matching an optional glob pattern.
1861
+ */
1862
+ export const kvKeys = (options) => (options.client ?? client).post({
1863
+ security: [{ scheme: 'bearer', type: 'http' }],
1864
+ url: '/v1/kv/keys',
1865
+ ...options,
1866
+ headers: {
1867
+ 'Content-Type': 'application/json',
1868
+ ...options.headers
1869
+ }
1870
+ });
1871
+ /**
1872
+ * Set a value by key.
1873
+ *
1874
+ * Writes a value to the tenant's key-value store, with an optional TTL.
1875
+ */
1876
+ export const kvSet = (options) => (options.client ?? client).post({
1877
+ security: [{ scheme: 'bearer', type: 'http' }],
1878
+ url: '/v1/kv/set',
1879
+ ...options,
1880
+ headers: {
1881
+ 'Content-Type': 'application/json',
1882
+ ...options.headers
1883
+ }
1884
+ });
1885
+ /**
1886
+ * List load balancers.
1887
+ *
1888
+ * Returns all load balancers belonging to the caller's project.
1889
+ */
1890
+ export const listLoadBalancers = (options) => (options?.client ?? client).get({
1891
+ security: [{ scheme: 'bearer', type: 'http' }],
1892
+ url: '/v1/lb',
1893
+ ...options
1894
+ });
1895
+ /**
1896
+ * Create a load balancer.
1897
+ *
1898
+ * Provisions a load balancer for the caller's project and returns its details.
1899
+ */
1900
+ export const createLoadBalancer = (options) => (options.client ?? client).post({
1901
+ security: [{ scheme: 'bearer', type: 'http' }],
1902
+ url: '/v1/lb',
1903
+ ...options,
1904
+ headers: {
1905
+ 'Content-Type': 'application/json',
1906
+ ...options.headers
1907
+ }
1908
+ });
1909
+ /**
1910
+ * Delete a load balancer.
1911
+ *
1912
+ * Removes a load balancer and its backends by id.
1913
+ */
1914
+ export const deleteLoadBalancer = (options) => (options.client ?? client).delete({
1915
+ security: [{ scheme: 'bearer', type: 'http' }],
1916
+ url: '/v1/lb/{id}',
1917
+ ...options
1918
+ });
1919
+ /**
1920
+ * Get a load balancer.
1921
+ *
1922
+ * Returns a single load balancer by id.
1923
+ */
1924
+ export const getLoadBalancer = (options) => (options.client ?? client).get({
1925
+ security: [{ scheme: 'bearer', type: 'http' }],
1926
+ url: '/v1/lb/{id}',
1927
+ ...options
1928
+ });
1929
+ /**
1930
+ * Add a backend to a load balancer.
1931
+ *
1932
+ * Registers a backend target on the load balancer and returns its details.
1933
+ */
1934
+ export const addLoadBalancerBackend = (options) => (options.client ?? client).post({
1935
+ security: [{ scheme: 'bearer', type: 'http' }],
1936
+ url: '/v1/lb/{id}/backends',
1937
+ ...options,
1938
+ headers: {
1939
+ 'Content-Type': 'application/json',
1940
+ ...options.headers
1941
+ }
1942
+ });
1943
+ /**
1944
+ * Remove a backend from a load balancer.
1945
+ *
1946
+ * Deletes a backend target from the load balancer by id.
1947
+ */
1948
+ export const removeLoadBalancerBackend = (options) => (options.client ?? client).delete({
1949
+ security: [{ scheme: 'bearer', type: 'http' }],
1950
+ url: '/v1/lb/{id}/backends/{backend_id}',
1951
+ ...options
1952
+ });
1953
+ /**
1954
+ * Describe the current token.
1955
+ *
1956
+ * Returns the caller's identity, effective permissions and scopes, the MCP
1957
+ * tools their scopes unlock, and their plan's rate-limit and API-key ceilings.
1958
+ */
1959
+ export const getMe = (options) => (options?.client ?? client).get({
1960
+ security: [{ scheme: 'bearer', type: 'http' }],
1961
+ url: '/v1/me',
1962
+ ...options
1963
+ });
1964
+ /**
1965
+ * Check the registry API version.
1966
+ *
1967
+ * Returns the OCI Distribution API version supported by the registry.
1968
+ */
1969
+ export const registryVersionCheck = (options) => (options?.client ?? client).get({
1970
+ security: [{ scheme: 'bearer', type: 'http' }],
1971
+ url: '/v1/registry/v2/',
1972
+ ...options
1973
+ });
1974
+ /**
1975
+ * List the repository catalog.
1976
+ *
1977
+ * Returns the catalog of repositories in the registry.
1978
+ */
1979
+ export const getRegistryCatalog = (options) => (options?.client ?? client).get({
1980
+ security: [{ scheme: 'bearer', type: 'http' }],
1981
+ url: '/v1/registry/v2/_catalog',
1982
+ ...options
1983
+ });
1984
+ /**
1985
+ * Start a blob upload.
1986
+ *
1987
+ * Begins an OCI blob upload session and returns the upload location.
1988
+ */
1989
+ export const startRegistryBlobUpload = (options) => (options.client ?? client).post({
1990
+ security: [{ scheme: 'bearer', type: 'http' }],
1991
+ url: '/v1/registry/v2/{project_id}/{repository}/blobs/uploads/',
1992
+ ...options
1993
+ });
1994
+ /**
1995
+ * Get a blob.
1996
+ *
1997
+ * Downloads an OCI blob by digest.
1998
+ */
1999
+ export const getRegistryBlob = (options) => (options.client ?? client).get({
2000
+ security: [{ scheme: 'bearer', type: 'http' }],
2001
+ url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
2002
+ ...options
2003
+ });
2004
+ /**
2005
+ * Check a blob exists.
2006
+ *
2007
+ * Returns headers indicating whether an OCI blob exists.
2008
+ */
2009
+ export const headRegistryBlob = (options) => (options.client ?? client).head({
2010
+ security: [{ scheme: 'bearer', type: 'http' }],
2011
+ url: '/v1/registry/v2/{project_id}/{repository}/blobs/{digest}',
2012
+ ...options
2013
+ });
2014
+ /**
2015
+ * Delete a manifest.
2016
+ *
2017
+ * Removes an OCI image manifest by tag or digest.
2018
+ */
2019
+ export const deleteRegistryManifest = (options) => (options.client ?? client).delete({
2020
+ security: [{ scheme: 'bearer', type: 'http' }],
2021
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
2022
+ ...options
2023
+ });
2024
+ /**
2025
+ * Get a manifest.
2026
+ *
2027
+ * Returns an OCI image manifest by tag or digest.
2028
+ */
2029
+ export const getRegistryManifest = (options) => (options.client ?? client).get({
2030
+ security: [{ scheme: 'bearer', type: 'http' }],
2031
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
2032
+ ...options
2033
+ });
2034
+ /**
2035
+ * Check a manifest exists.
2036
+ *
2037
+ * Returns headers indicating whether an OCI manifest exists.
2038
+ */
2039
+ export const headRegistryManifest = (options) => (options.client ?? client).head({
2040
+ security: [{ scheme: 'bearer', type: 'http' }],
2041
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
2042
+ ...options
2043
+ });
2044
+ /**
2045
+ * Store a manifest.
2046
+ *
2047
+ * Uploads an OCI image manifest under a tag or digest.
2048
+ */
2049
+ export const putRegistryManifest = (options) => (options.client ?? client).put({
2050
+ security: [{ scheme: 'bearer', type: 'http' }],
2051
+ url: '/v1/registry/v2/{project_id}/{repository}/manifests/{reference}',
2052
+ ...options,
2053
+ headers: {
2054
+ 'Content-Type': 'application/json',
2055
+ ...options.headers
2056
+ }
2057
+ });
2058
+ /**
2059
+ * List tags.
2060
+ *
2061
+ * Returns the tags available for a repository.
2062
+ */
2063
+ export const listRegistryTags = (options) => (options.client ?? client).get({
2064
+ security: [{ scheme: 'bearer', type: 'http' }],
2065
+ url: '/v1/registry/v2/{project_id}/{repository}/tags/list',
2066
+ ...options
2067
+ });
2068
+ /**
2069
+ * List Scalix Run services.
2070
+ *
2071
+ * Returns all Scalix Run services for the caller's project.
2072
+ */
2073
+ export const listServices = (options) => (options?.client ?? client).get({
2074
+ security: [{ scheme: 'bearer', type: 'http' }],
2075
+ url: '/v1/run/services',
2076
+ ...options
2077
+ });
2078
+ /**
2079
+ * Deploy a Scalix Run service.
2080
+ *
2081
+ * Deploys a Scalix Run service and returns the created service.
2082
+ */
2083
+ export const createService = (options) => (options.client ?? client).post({
2084
+ security: [{ scheme: 'bearer', type: 'http' }],
2085
+ url: '/v1/run/services',
2086
+ ...options,
2087
+ headers: {
2088
+ 'Content-Type': 'application/json',
2089
+ ...options.headers
2090
+ }
2091
+ });
2092
+ /**
2093
+ * Delete a Scalix Run service.
2094
+ *
2095
+ * Removes a Scalix Run service by id.
2096
+ */
2097
+ export const deleteService = (options) => (options.client ?? client).delete({
2098
+ security: [{ scheme: 'bearer', type: 'http' }],
2099
+ url: '/v1/run/services/{id}',
2100
+ ...options
2101
+ });
2102
+ /**
2103
+ * Get a Scalix Run service.
2104
+ *
2105
+ * Returns a single Scalix Run service by id.
2106
+ */
2107
+ export const getService = (options) => (options.client ?? client).get({
2108
+ security: [{ scheme: 'bearer', type: 'http' }],
2109
+ url: '/v1/run/services/{id}',
2110
+ ...options
2111
+ });
2112
+ /**
2113
+ * Update a Scalix Run service.
2114
+ *
2115
+ * Updates a Scalix Run service (e.g. scaling) and returns the new state.
2116
+ */
2117
+ export const updateService = (options) => (options.client ?? client).put({
2118
+ security: [{ scheme: 'bearer', type: 'http' }],
2119
+ url: '/v1/run/services/{id}',
2120
+ ...options,
2121
+ headers: {
2122
+ 'Content-Type': 'application/json',
2123
+ ...options.headers
2124
+ }
2125
+ });
2126
+ /**
2127
+ * List service instances.
2128
+ *
2129
+ * Returns the running instances of a Scalix Run service.
2130
+ */
2131
+ export const listServiceInstances = (options) => (options.client ?? client).get({
2132
+ security: [{ scheme: 'bearer', type: 'http' }],
2133
+ url: '/v1/run/services/{id}/instances',
2134
+ ...options
2135
+ });
2136
+ /**
2137
+ * Get service metrics.
2138
+ *
2139
+ * Returns runtime metrics for a Scalix Run service.
2140
+ */
2141
+ export const getServiceMetrics = (options) => (options.client ?? client).get({
2142
+ security: [{ scheme: 'bearer', type: 'http' }],
2143
+ url: '/v1/run/services/{id}/metrics',
2144
+ ...options
2145
+ });
2146
+ /**
2147
+ * List service revisions.
2148
+ *
2149
+ * Returns the revision history of a Scalix Run service.
2150
+ */
2151
+ export const listServiceRevisions = (options) => (options.client ?? client).get({
2152
+ security: [{ scheme: 'bearer', type: 'http' }],
2153
+ url: '/v1/run/services/{id}/revisions',
2154
+ ...options
2155
+ });
2156
+ /**
2157
+ * Roll back a service.
2158
+ *
2159
+ * Rolls a Scalix Run service back to a previous revision.
2160
+ */
2161
+ export const rollbackService = (options) => (options.client ?? client).post({
2162
+ security: [{ scheme: 'bearer', type: 'http' }],
2163
+ url: '/v1/run/services/{id}/rollback',
2164
+ ...options,
2165
+ headers: {
2166
+ 'Content-Type': 'application/json',
2167
+ ...options.headers
2168
+ }
2169
+ });
2170
+ /**
2171
+ * Run a search.
2172
+ *
2173
+ * Runs a query against the curated Scalix Search index and returns ranked results.
2174
+ */
2175
+ export const searchIndex = (options) => (options?.client ?? client).get({
2176
+ security: [{ scheme: 'bearer', type: 'http' }],
2177
+ url: '/v1/search',
2178
+ ...options
2179
+ });
2180
+ /**
2181
+ * Run a search ingest.
2182
+ *
2183
+ * Triggers an ingest run that crawls and indexes registered sources.
2184
+ */
2185
+ export const runSearchIngest = (options) => (options?.client ?? client).post({
2186
+ security: [{ scheme: 'bearer', type: 'http' }],
2187
+ url: '/v1/search/ingest/run',
2188
+ ...options
2189
+ });
2190
+ /**
2191
+ * List search sources.
2192
+ *
2193
+ * Returns the curated sources registered in the search index.
2194
+ */
2195
+ export const listSearchSources = (options) => (options?.client ?? client).get({
2196
+ security: [{ scheme: 'bearer', type: 'http' }],
2197
+ url: '/v1/search/sources',
2198
+ ...options
2199
+ });
2200
+ /**
2201
+ * Upsert a search source.
2202
+ *
2203
+ * Creates or updates a curated source in the search index.
2204
+ */
2205
+ export const upsertSearchSource = (options) => (options.client ?? client).post({
2206
+ security: [{ scheme: 'bearer', type: 'http' }],
2207
+ url: '/v1/search/sources',
2208
+ ...options,
2209
+ headers: {
2210
+ 'Content-Type': 'application/json',
2211
+ ...options.headers
2212
+ }
2213
+ });
2214
+ /**
2215
+ * Get search stats.
2216
+ *
2217
+ * Returns statistics about the search index.
2218
+ */
2219
+ export const getSearchStats = (options) => (options?.client ?? client).get({
2220
+ security: [{ scheme: 'bearer', type: 'http' }],
2221
+ url: '/v1/search/stats',
2222
+ ...options
2223
+ });
2224
+ /**
2225
+ * Get Shield config.
2226
+ *
2227
+ * Returns the Shield configuration (default action, challenge settings) for the
2228
+ * caller's project.
2229
+ */
2230
+ export const getShieldConfig = (options) => (options?.client ?? client).get({
2231
+ security: [{ scheme: 'bearer', type: 'http' }],
2232
+ url: '/v1/shield/config',
2233
+ ...options
2234
+ });
2235
+ /**
2236
+ * Update Shield config.
2237
+ *
2238
+ * Replaces the Shield configuration for the caller's project. Requires the Pro
2239
+ * plan or higher.
2240
+ */
2241
+ export const updateShieldConfig = (options) => (options.client ?? client).put({
2242
+ security: [{ scheme: 'bearer', type: 'http' }],
2243
+ url: '/v1/shield/config',
2244
+ ...options,
2245
+ headers: {
2246
+ 'Content-Type': 'application/json',
2247
+ ...options.headers
2248
+ }
2249
+ });
2250
+ /**
2251
+ * List Shield crawlers.
2252
+ *
2253
+ * Returns the known AI crawlers with their per-project policy and traffic
2254
+ * stats, plus any custom user-defined crawler rules.
2255
+ */
2256
+ export const listShieldCrawlers = (options) => (options?.client ?? client).get({
2257
+ security: [{ scheme: 'bearer', type: 'http' }],
2258
+ url: '/v1/shield/crawlers',
2259
+ ...options
2260
+ });
2261
+ /**
2262
+ * Set a crawler's verification IP ranges.
2263
+ *
2264
+ * Sets the IP addresses or CIDR ranges used to verify a crawler's source IP.
2265
+ * Requires the Pro plan or higher.
2266
+ */
2267
+ export const setShieldCrawlerIpRanges = (options) => (options.client ?? client).put({
2268
+ security: [{ scheme: 'bearer', type: 'http' }],
2269
+ url: '/v1/shield/crawlers/{id}/ip-ranges',
2270
+ ...options,
2271
+ headers: {
2272
+ 'Content-Type': 'application/json',
2273
+ ...options.headers
2274
+ }
2275
+ });
2276
+ /**
2277
+ * Clear a crawler policy.
2278
+ *
2279
+ * Removes the access policy for a crawler, reverting it to the project default.
2280
+ * Policy controls require the Pro plan or higher.
2281
+ */
2282
+ export const clearShieldCrawlerPolicy = (options) => (options.client ?? client).delete({
2283
+ security: [{ scheme: 'bearer', type: 'http' }],
2284
+ url: '/v1/shield/crawlers/{id}/policy',
2285
+ ...options
2286
+ });
2287
+ /**
2288
+ * Set a crawler policy.
2289
+ *
2290
+ * Sets the access policy (allow / block / rate-limit) for a known crawler in
2291
+ * the caller's project. Policy controls require the Pro plan or higher.
2292
+ */
2293
+ export const setShieldCrawlerPolicy = (options) => (options.client ?? client).put({
2294
+ security: [{ scheme: 'bearer', type: 'http' }],
2295
+ url: '/v1/shield/crawlers/{id}/policy',
2296
+ ...options,
2297
+ headers: {
2298
+ 'Content-Type': 'application/json',
2299
+ ...options.headers
2300
+ }
2301
+ });
2302
+ /**
2303
+ * Create a custom Shield rule.
2304
+ *
2305
+ * Adds a customer-defined crawler rule matched by User-Agent substring, with
2306
+ * its own access policy. Requires the Pro plan or higher.
2307
+ */
2308
+ export const createShieldCustomRule = (options) => (options.client ?? client).post({
2309
+ security: [{ scheme: 'bearer', type: 'http' }],
2310
+ url: '/v1/shield/custom',
2311
+ ...options,
2312
+ headers: {
2313
+ 'Content-Type': 'application/json',
2314
+ ...options.headers
2315
+ }
2316
+ });
2317
+ /**
2318
+ * Delete a custom Shield rule.
2319
+ *
2320
+ * Removes a custom crawler rule by id. Requires the Pro plan or higher.
2321
+ */
2322
+ export const deleteShieldCustomRule = (options) => (options.client ?? client).delete({
2323
+ security: [{ scheme: 'bearer', type: 'http' }],
2324
+ url: '/v1/shield/custom/{id}',
2325
+ ...options
2326
+ });
2327
+ /**
2328
+ * Update a custom Shield rule.
2329
+ *
2330
+ * Updates the access policy of an existing custom crawler rule. Requires the
2331
+ * Pro plan or higher.
2332
+ */
2333
+ export const updateShieldCustomRule = (options) => (options.client ?? client).put({
2334
+ security: [{ scheme: 'bearer', type: 'http' }],
2335
+ url: '/v1/shield/custom/{id}',
2336
+ ...options,
2337
+ headers: {
2338
+ 'Content-Type': 'application/json',
2339
+ ...options.headers
2340
+ }
2341
+ });
2342
+ /**
2343
+ * List Shield events.
2344
+ *
2345
+ * Returns recent Shield crawler events for the project, paginated.
2346
+ */
2347
+ export const listShieldEvents = (options) => (options?.client ?? client).get({
2348
+ security: [{ scheme: 'bearer', type: 'http' }],
2349
+ url: '/v1/shield/events',
2350
+ ...options
2351
+ });
2352
+ /**
2353
+ * Generate robots.txt.
2354
+ *
2355
+ * Returns a `robots.txt` file generated from the project's Shield crawler
2356
+ * policies.
2357
+ */
2358
+ export const getShieldRobotsTxt = (options) => (options?.client ?? client).get({
2359
+ security: [{ scheme: 'bearer', type: 'http' }],
2360
+ url: '/v1/shield/robots-txt',
2361
+ ...options
2362
+ });
2363
+ /**
2364
+ * Get Shield statistics.
2365
+ *
2366
+ * Returns aggregate request, block, and rate-limit counts broken down by
2367
+ * crawler for the caller's project.
2368
+ */
2369
+ export const getShieldStats = (options) => (options?.client ?? client).get({
2370
+ security: [{ scheme: 'bearer', type: 'http' }],
2371
+ url: '/v1/shield/stats',
2372
+ ...options
2373
+ });
2374
+ /**
2375
+ * List buckets.
2376
+ *
2377
+ * Returns all storage buckets for the caller's project.
2378
+ */
2379
+ export const listBuckets = (options) => (options?.client ?? client).get({
2380
+ security: [{ scheme: 'bearer', type: 'http' }],
2381
+ url: '/v1/storage/buckets',
2382
+ ...options
2383
+ });
2384
+ /**
2385
+ * Create a bucket.
2386
+ *
2387
+ * Creates a new storage bucket.
2388
+ */
2389
+ export const createBucket = (options) => (options?.client ?? client).post({
2390
+ security: [{ scheme: 'bearer', type: 'http' }],
2391
+ url: '/v1/storage/buckets',
2392
+ ...options
2393
+ });
2394
+ /**
2395
+ * List objects.
2396
+ *
2397
+ * Returns the objects in a bucket, optionally filtered by key prefix.
2398
+ */
2399
+ export const listObjects = (options) => (options.client ?? client).get({
2400
+ security: [{ scheme: 'bearer', type: 'http' }],
2401
+ url: '/v1/storage/buckets/{bucket}/objects',
2402
+ ...options
2403
+ });
2404
+ /**
2405
+ * Delete an object.
2406
+ *
2407
+ * Removes an object from a bucket.
2408
+ */
2409
+ export const deleteObject = (options) => (options.client ?? client).delete({
2410
+ security: [{ scheme: 'bearer', type: 'http' }],
2411
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2412
+ ...options
2413
+ });
2414
+ /**
2415
+ * Get an object.
2416
+ *
2417
+ * Downloads the contents of an object from a bucket.
2418
+ */
2419
+ export const getObject = (options) => (options.client ?? client).get({
2420
+ security: [{ scheme: 'bearer', type: 'http' }],
2421
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2422
+ ...options
2423
+ });
2424
+ /**
2425
+ * Get object metadata.
2426
+ *
2427
+ * Returns an object's metadata headers without its body.
2428
+ */
2429
+ export const headObject = (options) => (options.client ?? client).head({
2430
+ security: [{ scheme: 'bearer', type: 'http' }],
2431
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2432
+ ...options
2433
+ });
2434
+ /**
2435
+ * Upload an object.
2436
+ *
2437
+ * Stores raw bytes as an object in a bucket.
2438
+ */
2439
+ export const putObject = (options) => (options.client ?? client).put({
2440
+ bodySerializer: null,
2441
+ security: [{ scheme: 'bearer', type: 'http' }],
2442
+ url: '/v1/storage/buckets/{bucket}/objects/{key}',
2443
+ ...options,
2444
+ headers: {
2445
+ 'Content-Type': 'application/octet-stream',
2446
+ ...options.headers
2447
+ }
2448
+ });
2449
+ /**
2450
+ * Delete a bucket.
2451
+ *
2452
+ * Removes a storage bucket by name.
2453
+ */
2454
+ export const deleteBucket = (options) => (options.client ?? client).delete({
2455
+ security: [{ scheme: 'bearer', type: 'http' }],
2456
+ url: '/v1/storage/buckets/{name}',
2457
+ ...options
2458
+ });
2459
+ /**
2460
+ * Presign an object URL.
2461
+ *
2462
+ * Returns a presigned URL for direct upload or download of an object.
2463
+ */
2464
+ export const presignObject = (options) => (options.client ?? client).post({
2465
+ security: [{ scheme: 'bearer', type: 'http' }],
2466
+ url: '/v1/storage/presign',
2467
+ ...options,
2468
+ headers: {
2469
+ 'Content-Type': 'application/json',
2470
+ ...options.headers
2471
+ }
2472
+ });
2473
+ /**
2474
+ * List per-key usage for the org.
2475
+ *
2476
+ * Returns each of the organization's API keys with its request count for the
2477
+ * current billing month. Requires the `metering:read` scope.
2478
+ */
2479
+ export const getKeysUsage = (options) => (options?.client ?? client).get({
2480
+ security: [{ scheme: 'bearer', type: 'http' }],
2481
+ url: '/v1/usage/keys',
2482
+ ...options
2483
+ });
2484
+ /**
2485
+ * Get usage for one API key.
2486
+ *
2487
+ * Returns the request count for a single API key this billing month. Requires
2488
+ * the `metering:read` scope; the key must belong to the caller's org.
2489
+ */
2490
+ export const getKeyUsage = (options) => (options.client ?? client).get({
2491
+ security: [{ scheme: 'bearer', type: 'http' }],
2492
+ url: '/v1/usage/keys/{key_id}',
2493
+ ...options
2494
+ });
2495
+ /**
2496
+ * Get the caller's budget.
2497
+ *
2498
+ * Returns current usage (AI tokens, storage, compute hours), the plan's
2499
+ * allowances, and the remaining headroom for each.
2500
+ */
2501
+ export const getUserBudget = (options) => (options?.client ?? client).get({
2502
+ security: [{ scheme: 'bearer', type: 'http' }],
2503
+ url: '/v1/user/budget',
2504
+ ...options
2505
+ });
2506
+ /**
2507
+ * Get the caller's account profile.
2508
+ *
2509
+ * Returns the authenticated user's id, email, name, plan, and status. Fields
2510
+ * after `status` are present only when a stored user record exists.
2511
+ */
2512
+ export const getUserInfo = (options) => (options?.client ?? client).get({
2513
+ security: [{ scheme: 'bearer', type: 'http' }],
2514
+ url: '/v1/user/info',
2515
+ ...options
2516
+ });
2517
+ /**
2518
+ * Get the caller's usage stats.
2519
+ *
2520
+ * Returns a per-service usage breakdown (AI, storage, compute, bandwidth,
2521
+ * functions) for the current month.
2522
+ */
2523
+ export const getUserStats = (options) => (options?.client ?? client).get({
2524
+ security: [{ scheme: 'bearer', type: 'http' }],
2525
+ url: '/v1/user/stats',
2526
+ ...options
2527
+ });
2528
+ /**
2529
+ * List VPCs.
2530
+ *
2531
+ * Returns all VPCs belonging to the caller's project.
2532
+ */
2533
+ export const listVpcs = (options) => (options?.client ?? client).get({
2534
+ security: [{ scheme: 'bearer', type: 'http' }],
2535
+ url: '/v1/vpc',
2536
+ ...options
2537
+ });
2538
+ /**
2539
+ * Create a VPC.
2540
+ *
2541
+ * Provisions a VPC for the caller's project. Currently returns 501 —
2542
+ * enforcement and durable storage are a planned capability.
2543
+ */
2544
+ export const createVpc = (options) => (options.client ?? client).post({
2545
+ security: [{ scheme: 'bearer', type: 'http' }],
2546
+ url: '/v1/vpc',
2547
+ ...options,
2548
+ headers: {
2549
+ 'Content-Type': 'application/json',
2550
+ ...options.headers
2551
+ }
2552
+ });
2553
+ /**
2554
+ * Delete a VPC.
2555
+ *
2556
+ * Removes a VPC and its peers by id.
2557
+ */
2558
+ export const deleteVpc = (options) => (options.client ?? client).delete({
2559
+ security: [{ scheme: 'bearer', type: 'http' }],
2560
+ url: '/v1/vpc/{id}',
2561
+ ...options
2562
+ });
2563
+ /**
2564
+ * Get a VPC.
2565
+ *
2566
+ * Returns a single VPC by id.
2567
+ */
2568
+ export const getVpc = (options) => (options.client ?? client).get({
2569
+ security: [{ scheme: 'bearer', type: 'http' }],
2570
+ url: '/v1/vpc/{id}',
2571
+ ...options
2572
+ });
2573
+ /**
2574
+ * Get a VPC's config.
2575
+ *
2576
+ * Returns the rendered VPN client configuration file for the VPC.
2577
+ */
2578
+ export const getVpcConfig = (options) => (options.client ?? client).get({
2579
+ security: [{ scheme: 'bearer', type: 'http' }],
2580
+ url: '/v1/vpc/{id}/config',
2581
+ ...options
2582
+ });
2583
+ /**
2584
+ * List a VPC's peers.
2585
+ *
2586
+ * Returns all peers registered in the VPC.
2587
+ */
2588
+ export const listVpcPeers = (options) => (options.client ?? client).get({
2589
+ security: [{ scheme: 'bearer', type: 'http' }],
2590
+ url: '/v1/vpc/{id}/peers',
2591
+ ...options
2592
+ });
2593
+ /**
2594
+ * Add a peer to a VPC.
2595
+ *
2596
+ * Registers a peer in the VPC. Currently returns 501 — peer
2597
+ * enforcement and durable storage are a planned capability.
2598
+ */
2599
+ export const addVpcPeer = (options) => (options.client ?? client).post({
2600
+ security: [{ scheme: 'bearer', type: 'http' }],
2601
+ url: '/v1/vpc/{id}/peers',
2602
+ ...options,
2603
+ headers: {
2604
+ 'Content-Type': 'application/json',
2605
+ ...options.headers
2606
+ }
2607
+ });
2608
+ /**
2609
+ * Remove a peer from a VPC.
2610
+ *
2611
+ * Deletes a peer from the VPC by id.
2612
+ */
2613
+ export const removeVpcPeer = (options) => (options.client ?? client).delete({
2614
+ security: [{ scheme: 'bearer', type: 'http' }],
2615
+ url: '/v1/vpc/{id}/peers/{peer_id}',
2616
+ ...options
2617
+ });
2618
+ /**
2619
+ * List recent WAF events.
2620
+ *
2621
+ * Returns the most recent web application firewall events (up to 100).
2622
+ */
2623
+ export const listWafEvents = (options) => (options?.client ?? client).get({
2624
+ security: [{ scheme: 'bearer', type: 'http' }],
2625
+ url: '/v1/waf/events',
2626
+ ...options
2627
+ });
2628
+ /**
2629
+ * List WAF rules.
2630
+ *
2631
+ * Returns all configured web application firewall rules.
2632
+ */
2633
+ export const listWafRules = (options) => (options?.client ?? client).get({
2634
+ security: [{ scheme: 'bearer', type: 'http' }],
2635
+ url: '/v1/waf/rules',
2636
+ ...options
2637
+ });
2638
+ /**
2639
+ * Create a WAF rule.
2640
+ *
2641
+ * Adds a new web application firewall rule and returns the created rule.
2642
+ */
2643
+ export const createWafRule = (options) => (options.client ?? client).post({
2644
+ security: [{ scheme: 'bearer', type: 'http' }],
2645
+ url: '/v1/waf/rules',
2646
+ ...options,
2647
+ headers: {
2648
+ 'Content-Type': 'application/json',
2649
+ ...options.headers
2650
+ }
2651
+ });
2652
+ /**
2653
+ * Delete a WAF rule.
2654
+ *
2655
+ * Removes a web application firewall rule by id.
2656
+ */
2657
+ export const deleteWafRule = (options) => (options.client ?? client).delete({
2658
+ security: [{ scheme: 'bearer', type: 'http' }],
2659
+ url: '/v1/waf/rules/{id}',
2660
+ ...options
2661
+ });
2662
+ /**
2663
+ * Update a WAF rule.
2664
+ *
2665
+ * Replaces the configuration of an existing web application firewall rule.
2666
+ */
2667
+ export const updateWafRule = (options) => (options.client ?? client).put({
2668
+ security: [{ scheme: 'bearer', type: 'http' }],
2669
+ url: '/v1/waf/rules/{id}',
2670
+ ...options,
2671
+ headers: {
2672
+ 'Content-Type': 'application/json',
2673
+ ...options.headers
2674
+ }
2675
+ });
2676
+ /**
2677
+ * Get WAF statistics.
2678
+ *
2679
+ * Returns combined web application firewall and DDoS-detector counters.
2680
+ */
2681
+ export const getWafStats = (options) => (options?.client ?? client).get({
2682
+ security: [{ scheme: 'bearer', type: 'http' }],
2683
+ url: '/v1/waf/stats',
2684
+ ...options
2685
+ });
2686
+ //# sourceMappingURL=sdk.gen.js.map