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