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