@scalix-world/sdk 1.3.2 → 1.3.3

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