@backwrite/sdk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,961 @@
1
+ // GENERATED FILE — do not edit by hand.
2
+ // Source: Backwrite Platform API OpenAPI 1.0.0. Regenerate with scripts/generate_sdks.py.
3
+ /**
4
+ * Liveness
5
+ * Credential class: platform.
6
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
7
+ */
8
+ export function getHealth(client, opts = {}) {
9
+ return client.request("GET", `/healthz`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
10
+ }
11
+ /**
12
+ * Prometheus metrics
13
+ * Credential class: platform.
14
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
15
+ */
16
+ export function getMetrics(client, opts = {}) {
17
+ return client.request("GET", `/metrics`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
18
+ }
19
+ /**
20
+ * This document
21
+ * Credential class: platform.
22
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
23
+ */
24
+ export function getOpenApiDocument(client, opts = {}) {
25
+ return client.request("GET", `/openapi.json`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
26
+ }
27
+ /**
28
+ * Active wire-proxy sessions
29
+ * Credential class: platform.
30
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
31
+ */
32
+ export function listAdminSessions(client, opts = {}) {
33
+ return client.request("GET", `/v1/admin/sessions`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
34
+ }
35
+ /**
36
+ * The branch's database credential material
37
+ * Credential class: platform.
38
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
39
+ */
40
+ export function getBranchCredentials(client, branch_id, opts = {}) {
41
+ return client.request("GET", `/v1/branches/${encodeURIComponent(branch_id)}/credentials`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
42
+ }
43
+ /**
44
+ * Read a cache entry
45
+ * Credential class: cache.
46
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
47
+ */
48
+ export function getCacheEntry(client, branch_id, key, opts = {}) {
49
+ return client.request("GET", `/v1/cache/${encodeURIComponent(branch_id)}/entries/${encodeURIComponent(key)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
50
+ }
51
+ /**
52
+ * Write a cache entry (JSON body, optional TTL)
53
+ * Credential class: cache.
54
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
55
+ */
56
+ export function putCacheEntry(client, branch_id, key, body, opts = {}) {
57
+ return client.request("PUT", `/v1/cache/${encodeURIComponent(branch_id)}/entries/${encodeURIComponent(key)}`, { body: body, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
58
+ }
59
+ /**
60
+ * Delete a cache entry
61
+ * Credential class: cache.
62
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
63
+ */
64
+ export function deleteCacheEntry(client, branch_id, key, opts = {}) {
65
+ return client.request("DELETE", `/v1/cache/${encodeURIComponent(branch_id)}/entries/${encodeURIComponent(key)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
66
+ }
67
+ /**
68
+ * Atomically increment a numeric entry
69
+ * Credential class: cache.
70
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
71
+ */
72
+ export function incrementCacheEntry(client, branch_id, key, opts = {}) {
73
+ return client.request("POST", `/v1/cache/${encodeURIComponent(branch_id)}/entries/${encodeURIComponent(key)}/increment`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
74
+ }
75
+ /**
76
+ * Read one connection
77
+ * Credential class: connections.
78
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
79
+ */
80
+ export function getConnection(client, connection_id, opts = {}) {
81
+ return client.request("GET", `/v1/connections/${encodeURIComponent(connection_id)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
82
+ }
83
+ /**
84
+ * Revoke a connection (terminal, idempotent)
85
+ * Credential class: connections.
86
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
87
+ */
88
+ export function revokeConnection(client, connection_id, opts = {}) {
89
+ return client.request("DELETE", `/v1/connections/${encodeURIComponent(connection_id)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
90
+ }
91
+ /**
92
+ * Rotate a connection's credential
93
+ * Credential class: connections.
94
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
95
+ */
96
+ export function rotateConnection(client, connection_id, opts = {}) {
97
+ return client.request("POST", `/v1/connections/${encodeURIComponent(connection_id)}/rotate`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
98
+ }
99
+ /**
100
+ * Run a table/RPC operation against the branch
101
+ * Credential class: data-api.
102
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
103
+ */
104
+ export function runDataOperation(client, branch_id, body, opts = {}) {
105
+ return client.request("POST", `/v1/data/${encodeURIComponent(branch_id)}`, { body: body, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
106
+ }
107
+ /**
108
+ * List projects visible to the credential
109
+ * Credential class: discovery.
110
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
111
+ */
112
+ export function listProjects(client, opts = {}) {
113
+ return client.request("GET", `/v1/projects`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
114
+ }
115
+ /**
116
+ * List a project's live branches
117
+ * Credential class: discovery.
118
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
119
+ */
120
+ export function listProjectBranches(client, project_id, opts = {}) {
121
+ return client.request("GET", `/v1/projects/${encodeURIComponent(project_id)}/branches`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
122
+ }
123
+ /**
124
+ * Connection endpoints for one branch
125
+ * Credential class: discovery.
126
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
127
+ */
128
+ export function getBranchConnection(client, project_id, branch_id, opts = {}) {
129
+ return client.request("GET", `/v1/projects/${encodeURIComponent(project_id)}/branches/${encodeURIComponent(branch_id)}/connection`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
130
+ }
131
+ /**
132
+ * Runtime-specific connection profiles
133
+ * Credential class: discovery.
134
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
135
+ */
136
+ export function getBranchConnectionProfiles(client, project_id, branch_id, opts = {}) {
137
+ return client.request("GET", `/v1/projects/${encodeURIComponent(project_id)}/branches/${encodeURIComponent(branch_id)}/connection-profiles`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
138
+ }
139
+ /**
140
+ * The .env document for this branch
141
+ * Credential class: discovery.
142
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
143
+ */
144
+ export function getBranchEnvDocument(client, project_id, branch_id, opts = {}) {
145
+ return client.request("GET", `/v1/projects/${encodeURIComponent(project_id)}/branches/${encodeURIComponent(branch_id)}/env`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
146
+ }
147
+ /**
148
+ * List the project's connections
149
+ * Credential class: connections.
150
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
151
+ */
152
+ export function listConnections(client, project_id, opts = {}) {
153
+ return client.request("GET", `/v1/projects/${encodeURIComponent(project_id)}/connections`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
154
+ }
155
+ /**
156
+ * Create a connection grant
157
+ * Credential class: connections.
158
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
159
+ */
160
+ export function createConnection(client, project_id, body, opts = {}) {
161
+ return client.request("POST", `/v1/projects/${encodeURIComponent(project_id)}/connections`, { body: body, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
162
+ }
163
+ /**
164
+ * A project's connectivity summary
165
+ * Credential class: discovery.
166
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
167
+ */
168
+ export function getProjectConnectivity(client, project_id, opts = {}) {
169
+ return client.request("GET", `/v1/projects/${encodeURIComponent(project_id)}/connectivity`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
170
+ }
171
+ /**
172
+ * Enqueue a message
173
+ * Credential class: queues.
174
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
175
+ */
176
+ export function enqueueQueueMessage(client, branch_id, queue, opts = {}) {
177
+ return client.request("POST", `/v1/queues/${encodeURIComponent(branch_id)}/${encodeURIComponent(queue)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
178
+ }
179
+ /**
180
+ * Delete (drain) a queue
181
+ * Credential class: queues.
182
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
183
+ */
184
+ export function deleteQueue(client, branch_id, queue, opts = {}) {
185
+ return client.request("DELETE", `/v1/queues/${encodeURIComponent(branch_id)}/${encodeURIComponent(queue)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
186
+ }
187
+ /**
188
+ * Acknowledge / nak / term messages
189
+ * Credential class: queues.
190
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
191
+ */
192
+ export function ackQueueMessages(client, branch_id, queue, opts = {}) {
193
+ return client.request("POST", `/v1/queues/${encodeURIComponent(branch_id)}/${encodeURIComponent(queue)}/ack`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
194
+ }
195
+ /**
196
+ * Fetch a batch (pull consumer)
197
+ * Credential class: queues.
198
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
199
+ */
200
+ export function fetchQueueMessages(client, branch_id, queue, opts = {}) {
201
+ return client.request("POST", `/v1/queues/${encodeURIComponent(branch_id)}/${encodeURIComponent(queue)}/fetch`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
202
+ }
203
+ /**
204
+ * Queue depth and consumer state
205
+ * Credential class: queues.
206
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
207
+ */
208
+ export function getQueueStats(client, branch_id, queue, opts = {}) {
209
+ return client.request("GET", `/v1/queues/${encodeURIComponent(branch_id)}/${encodeURIComponent(queue)}/stats`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
210
+ }
211
+ /**
212
+ * Open a realtime change stream (WebSocket upgrade)
213
+ * Credential class: realtime.
214
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
215
+ */
216
+ export function openRealtimeStream(client, branch_id, opts = {}) {
217
+ return client.request("GET", `/v1/realtime/${encodeURIComponent(branch_id)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
218
+ }
219
+ /**
220
+ * List vector indexes
221
+ * Credential class: search.
222
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
223
+ */
224
+ export function listSearchIndexes(client, branch_id, opts = {}) {
225
+ return client.request("GET", `/v1/search/${encodeURIComponent(branch_id)}/indexes`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
226
+ }
227
+ /**
228
+ * Create a vector index
229
+ * Credential class: search.
230
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
231
+ */
232
+ export function createSearchIndex(client, branch_id, opts = {}) {
233
+ return client.request("POST", `/v1/search/${encodeURIComponent(branch_id)}/indexes`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
234
+ }
235
+ /**
236
+ * Index descriptor and stats
237
+ * Credential class: search.
238
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
239
+ */
240
+ export function getSearchIndex(client, branch_id, index, opts = {}) {
241
+ return client.request("GET", `/v1/search/${encodeURIComponent(branch_id)}/indexes/${encodeURIComponent(index)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
242
+ }
243
+ /**
244
+ * Delete a vector index
245
+ * Credential class: search.
246
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
247
+ */
248
+ export function deleteSearchIndex(client, branch_id, index, opts = {}) {
249
+ return client.request("DELETE", `/v1/search/${encodeURIComponent(branch_id)}/indexes/${encodeURIComponent(index)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
250
+ }
251
+ /**
252
+ * k-nearest-neighbour query
253
+ * Credential class: search.
254
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
255
+ */
256
+ export function querySearchIndex(client, branch_id, index, opts = {}) {
257
+ return client.request("POST", `/v1/search/${encodeURIComponent(branch_id)}/indexes/${encodeURIComponent(index)}/query`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
258
+ }
259
+ /**
260
+ * Upsert vectors
261
+ * Credential class: search.
262
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
263
+ */
264
+ export function upsertSearchVectors(client, branch_id, index, opts = {}) {
265
+ return client.request("POST", `/v1/search/${encodeURIComponent(branch_id)}/indexes/${encodeURIComponent(index)}/upsert`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
266
+ }
267
+ /**
268
+ * List lifecycle rules
269
+ * Credential class: storage.
270
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
271
+ */
272
+ export function listLifecycleRules(client, branch_id, opts = {}) {
273
+ return client.request("GET", `/v1/storage/${encodeURIComponent(branch_id)}/lifecycle`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
274
+ }
275
+ /**
276
+ * Register (upsert) a lifecycle rule
277
+ * Credential class: storage.
278
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
279
+ */
280
+ export function putLifecycleRule(client, branch_id, opts = {}) {
281
+ return client.request("PUT", `/v1/storage/${encodeURIComponent(branch_id)}/lifecycle`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
282
+ }
283
+ /**
284
+ * Delete a lifecycle rule
285
+ * Credential class: storage.
286
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
287
+ */
288
+ export function deleteLifecycleRule(client, branch_id, rule_id, opts = {}) {
289
+ return client.request("DELETE", `/v1/storage/${encodeURIComponent(branch_id)}/lifecycle/${encodeURIComponent(rule_id)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
290
+ }
291
+ /**
292
+ * Initiate a multipart upload
293
+ * Credential class: storage.
294
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
295
+ */
296
+ export function createMultipartUpload(client, branch_id, object, opts = {}) {
297
+ return client.request("POST", `/v1/storage/${encodeURIComponent(branch_id)}/multipart/:object`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
298
+ }
299
+ /**
300
+ * Abort a multipart upload
301
+ * Credential class: storage.
302
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
303
+ */
304
+ export function abortMultipartUpload(client, branch_id, object, opts = {}) {
305
+ return client.request("DELETE", `/v1/storage/${encodeURIComponent(branch_id)}/multipart/:object`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
306
+ }
307
+ /**
308
+ * Complete a multipart upload
309
+ * Credential class: storage.
310
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
311
+ */
312
+ export function completeMultipartUpload(client, branch_id, object, opts = {}) {
313
+ return client.request("POST", `/v1/storage/${encodeURIComponent(branch_id)}/multipart/:object/complete`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
314
+ }
315
+ /**
316
+ * Upload one part (≤16 MiB)
317
+ * Credential class: storage.
318
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
319
+ */
320
+ export function uploadMultipartPart(client, branch_id, object, part, body, opts = {}) {
321
+ return client.request("PUT", `/v1/storage/${encodeURIComponent(branch_id)}/multipart/:object/parts/:part`, { body: body, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
322
+ }
323
+ /**
324
+ * List objects under a prefix
325
+ * Credential class: storage.
326
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
327
+ */
328
+ export function listStorageObjects(client, branch_id, opts = {}) {
329
+ return client.request("GET", `/v1/storage/${encodeURIComponent(branch_id)}/objects`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
330
+ }
331
+ /**
332
+ * Download an object
333
+ * Credential class: storage.
334
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
335
+ */
336
+ export function getStorageObject(client, branch_id, object, opts = {}) {
337
+ return client.request("GET", `/v1/storage/${encodeURIComponent(branch_id)}/objects/${encodeURIComponent(object)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
338
+ }
339
+ /**
340
+ * Upload an object (raw bytes body)
341
+ * Credential class: storage.
342
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
343
+ */
344
+ export function putStorageObject(client, branch_id, object, body, opts = {}) {
345
+ return client.request("PUT", `/v1/storage/${encodeURIComponent(branch_id)}/objects/${encodeURIComponent(object)}`, { body: body, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
346
+ }
347
+ /**
348
+ * Delete an object
349
+ * Credential class: storage.
350
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
351
+ */
352
+ export function deleteStorageObject(client, branch_id, object, opts = {}) {
353
+ return client.request("DELETE", `/v1/storage/${encodeURIComponent(branch_id)}/objects/${encodeURIComponent(object)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
354
+ }
355
+ /**
356
+ * Mint a presigned URL
357
+ * Credential class: storage.
358
+ * Returns the envelope's `data` directly; throws BackwriteApiError on failure.
359
+ */
360
+ export function presignStorageObject(client, branch_id, object, opts = {}) {
361
+ return client.request("POST", `/v1/storage/${encodeURIComponent(branch_id)}/presign/${encodeURIComponent(object)}`, { body: undefined, idempotencyKey: opts.idempotencyKey, raw: opts.raw, signal: opts.signal });
362
+ }
363
+ /** Operation metadata: id → {method, pathTemplate, paramSpecs}. */
364
+ export const OPERATION_META = {
365
+ "getHealth": {
366
+ "method": "GET",
367
+ "path": "/healthz",
368
+ "params": []
369
+ },
370
+ "getMetrics": {
371
+ "method": "GET",
372
+ "path": "/metrics",
373
+ "params": []
374
+ },
375
+ "getOpenApiDocument": {
376
+ "method": "GET",
377
+ "path": "/openapi.json",
378
+ "params": []
379
+ },
380
+ "listAdminSessions": {
381
+ "method": "GET",
382
+ "path": "/v1/admin/sessions",
383
+ "params": []
384
+ },
385
+ "getBranchCredentials": {
386
+ "method": "GET",
387
+ "path": "/v1/branches/{branch_id}/credentials",
388
+ "params": [
389
+ {
390
+ "name": "branch_id",
391
+ "location": "path",
392
+ "required": true
393
+ }
394
+ ]
395
+ },
396
+ "getCacheEntry": {
397
+ "method": "GET",
398
+ "path": "/v1/cache/{branch_id}/entries/{key}",
399
+ "params": [
400
+ {
401
+ "name": "branch_id",
402
+ "location": "path",
403
+ "required": true
404
+ },
405
+ {
406
+ "name": "key",
407
+ "location": "path",
408
+ "required": true
409
+ }
410
+ ]
411
+ },
412
+ "putCacheEntry": {
413
+ "method": "PUT",
414
+ "path": "/v1/cache/{branch_id}/entries/{key}",
415
+ "params": [
416
+ {
417
+ "name": "branch_id",
418
+ "location": "path",
419
+ "required": true
420
+ },
421
+ {
422
+ "name": "key",
423
+ "location": "path",
424
+ "required": true
425
+ }
426
+ ]
427
+ },
428
+ "deleteCacheEntry": {
429
+ "method": "DELETE",
430
+ "path": "/v1/cache/{branch_id}/entries/{key}",
431
+ "params": [
432
+ {
433
+ "name": "branch_id",
434
+ "location": "path",
435
+ "required": true
436
+ },
437
+ {
438
+ "name": "key",
439
+ "location": "path",
440
+ "required": true
441
+ }
442
+ ]
443
+ },
444
+ "incrementCacheEntry": {
445
+ "method": "POST",
446
+ "path": "/v1/cache/{branch_id}/entries/{key}/increment",
447
+ "params": [
448
+ {
449
+ "name": "branch_id",
450
+ "location": "path",
451
+ "required": true
452
+ },
453
+ {
454
+ "name": "key",
455
+ "location": "path",
456
+ "required": true
457
+ }
458
+ ]
459
+ },
460
+ "getConnection": {
461
+ "method": "GET",
462
+ "path": "/v1/connections/{connection_id}",
463
+ "params": [
464
+ {
465
+ "name": "connection_id",
466
+ "location": "path",
467
+ "required": true
468
+ }
469
+ ]
470
+ },
471
+ "revokeConnection": {
472
+ "method": "DELETE",
473
+ "path": "/v1/connections/{connection_id}",
474
+ "params": [
475
+ {
476
+ "name": "connection_id",
477
+ "location": "path",
478
+ "required": true
479
+ }
480
+ ]
481
+ },
482
+ "rotateConnection": {
483
+ "method": "POST",
484
+ "path": "/v1/connections/{connection_id}/rotate",
485
+ "params": [
486
+ {
487
+ "name": "connection_id",
488
+ "location": "path",
489
+ "required": true
490
+ }
491
+ ]
492
+ },
493
+ "runDataOperation": {
494
+ "method": "POST",
495
+ "path": "/v1/data/{branch_id}",
496
+ "params": [
497
+ {
498
+ "name": "branch_id",
499
+ "location": "path",
500
+ "required": true
501
+ }
502
+ ]
503
+ },
504
+ "listProjects": {
505
+ "method": "GET",
506
+ "path": "/v1/projects",
507
+ "params": []
508
+ },
509
+ "listProjectBranches": {
510
+ "method": "GET",
511
+ "path": "/v1/projects/{project_id}/branches",
512
+ "params": [
513
+ {
514
+ "name": "project_id",
515
+ "location": "path",
516
+ "required": true
517
+ }
518
+ ]
519
+ },
520
+ "getBranchConnection": {
521
+ "method": "GET",
522
+ "path": "/v1/projects/{project_id}/branches/{branch_id}/connection",
523
+ "params": [
524
+ {
525
+ "name": "project_id",
526
+ "location": "path",
527
+ "required": true
528
+ },
529
+ {
530
+ "name": "branch_id",
531
+ "location": "path",
532
+ "required": true
533
+ }
534
+ ]
535
+ },
536
+ "getBranchConnectionProfiles": {
537
+ "method": "GET",
538
+ "path": "/v1/projects/{project_id}/branches/{branch_id}/connection-profiles",
539
+ "params": [
540
+ {
541
+ "name": "project_id",
542
+ "location": "path",
543
+ "required": true
544
+ },
545
+ {
546
+ "name": "branch_id",
547
+ "location": "path",
548
+ "required": true
549
+ }
550
+ ]
551
+ },
552
+ "getBranchEnvDocument": {
553
+ "method": "GET",
554
+ "path": "/v1/projects/{project_id}/branches/{branch_id}/env",
555
+ "params": [
556
+ {
557
+ "name": "project_id",
558
+ "location": "path",
559
+ "required": true
560
+ },
561
+ {
562
+ "name": "branch_id",
563
+ "location": "path",
564
+ "required": true
565
+ }
566
+ ]
567
+ },
568
+ "listConnections": {
569
+ "method": "GET",
570
+ "path": "/v1/projects/{project_id}/connections",
571
+ "params": [
572
+ {
573
+ "name": "project_id",
574
+ "location": "path",
575
+ "required": true
576
+ }
577
+ ]
578
+ },
579
+ "createConnection": {
580
+ "method": "POST",
581
+ "path": "/v1/projects/{project_id}/connections",
582
+ "params": [
583
+ {
584
+ "name": "project_id",
585
+ "location": "path",
586
+ "required": true
587
+ }
588
+ ]
589
+ },
590
+ "getProjectConnectivity": {
591
+ "method": "GET",
592
+ "path": "/v1/projects/{project_id}/connectivity",
593
+ "params": [
594
+ {
595
+ "name": "project_id",
596
+ "location": "path",
597
+ "required": true
598
+ }
599
+ ]
600
+ },
601
+ "enqueueQueueMessage": {
602
+ "method": "POST",
603
+ "path": "/v1/queues/{branch_id}/{queue}",
604
+ "params": [
605
+ {
606
+ "name": "branch_id",
607
+ "location": "path",
608
+ "required": true
609
+ },
610
+ {
611
+ "name": "queue",
612
+ "location": "path",
613
+ "required": true
614
+ }
615
+ ]
616
+ },
617
+ "deleteQueue": {
618
+ "method": "DELETE",
619
+ "path": "/v1/queues/{branch_id}/{queue}",
620
+ "params": [
621
+ {
622
+ "name": "branch_id",
623
+ "location": "path",
624
+ "required": true
625
+ },
626
+ {
627
+ "name": "queue",
628
+ "location": "path",
629
+ "required": true
630
+ }
631
+ ]
632
+ },
633
+ "ackQueueMessages": {
634
+ "method": "POST",
635
+ "path": "/v1/queues/{branch_id}/{queue}/ack",
636
+ "params": [
637
+ {
638
+ "name": "branch_id",
639
+ "location": "path",
640
+ "required": true
641
+ },
642
+ {
643
+ "name": "queue",
644
+ "location": "path",
645
+ "required": true
646
+ }
647
+ ]
648
+ },
649
+ "fetchQueueMessages": {
650
+ "method": "POST",
651
+ "path": "/v1/queues/{branch_id}/{queue}/fetch",
652
+ "params": [
653
+ {
654
+ "name": "branch_id",
655
+ "location": "path",
656
+ "required": true
657
+ },
658
+ {
659
+ "name": "queue",
660
+ "location": "path",
661
+ "required": true
662
+ }
663
+ ]
664
+ },
665
+ "getQueueStats": {
666
+ "method": "GET",
667
+ "path": "/v1/queues/{branch_id}/{queue}/stats",
668
+ "params": [
669
+ {
670
+ "name": "branch_id",
671
+ "location": "path",
672
+ "required": true
673
+ },
674
+ {
675
+ "name": "queue",
676
+ "location": "path",
677
+ "required": true
678
+ }
679
+ ]
680
+ },
681
+ "openRealtimeStream": {
682
+ "method": "GET",
683
+ "path": "/v1/realtime/{branch_id}",
684
+ "params": [
685
+ {
686
+ "name": "branch_id",
687
+ "location": "path",
688
+ "required": true
689
+ }
690
+ ]
691
+ },
692
+ "listSearchIndexes": {
693
+ "method": "GET",
694
+ "path": "/v1/search/{branch_id}/indexes",
695
+ "params": [
696
+ {
697
+ "name": "branch_id",
698
+ "location": "path",
699
+ "required": true
700
+ }
701
+ ]
702
+ },
703
+ "createSearchIndex": {
704
+ "method": "POST",
705
+ "path": "/v1/search/{branch_id}/indexes",
706
+ "params": [
707
+ {
708
+ "name": "branch_id",
709
+ "location": "path",
710
+ "required": true
711
+ }
712
+ ]
713
+ },
714
+ "getSearchIndex": {
715
+ "method": "GET",
716
+ "path": "/v1/search/{branch_id}/indexes/{index}",
717
+ "params": [
718
+ {
719
+ "name": "branch_id",
720
+ "location": "path",
721
+ "required": true
722
+ },
723
+ {
724
+ "name": "index",
725
+ "location": "path",
726
+ "required": true
727
+ }
728
+ ]
729
+ },
730
+ "deleteSearchIndex": {
731
+ "method": "DELETE",
732
+ "path": "/v1/search/{branch_id}/indexes/{index}",
733
+ "params": [
734
+ {
735
+ "name": "branch_id",
736
+ "location": "path",
737
+ "required": true
738
+ },
739
+ {
740
+ "name": "index",
741
+ "location": "path",
742
+ "required": true
743
+ }
744
+ ]
745
+ },
746
+ "querySearchIndex": {
747
+ "method": "POST",
748
+ "path": "/v1/search/{branch_id}/indexes/{index}/query",
749
+ "params": [
750
+ {
751
+ "name": "branch_id",
752
+ "location": "path",
753
+ "required": true
754
+ },
755
+ {
756
+ "name": "index",
757
+ "location": "path",
758
+ "required": true
759
+ }
760
+ ]
761
+ },
762
+ "upsertSearchVectors": {
763
+ "method": "POST",
764
+ "path": "/v1/search/{branch_id}/indexes/{index}/upsert",
765
+ "params": [
766
+ {
767
+ "name": "branch_id",
768
+ "location": "path",
769
+ "required": true
770
+ },
771
+ {
772
+ "name": "index",
773
+ "location": "path",
774
+ "required": true
775
+ }
776
+ ]
777
+ },
778
+ "listLifecycleRules": {
779
+ "method": "GET",
780
+ "path": "/v1/storage/{branch_id}/lifecycle",
781
+ "params": [
782
+ {
783
+ "name": "branch_id",
784
+ "location": "path",
785
+ "required": true
786
+ }
787
+ ]
788
+ },
789
+ "putLifecycleRule": {
790
+ "method": "PUT",
791
+ "path": "/v1/storage/{branch_id}/lifecycle",
792
+ "params": [
793
+ {
794
+ "name": "branch_id",
795
+ "location": "path",
796
+ "required": true
797
+ }
798
+ ]
799
+ },
800
+ "deleteLifecycleRule": {
801
+ "method": "DELETE",
802
+ "path": "/v1/storage/{branch_id}/lifecycle/{rule_id}",
803
+ "params": [
804
+ {
805
+ "name": "branch_id",
806
+ "location": "path",
807
+ "required": true
808
+ },
809
+ {
810
+ "name": "rule_id",
811
+ "location": "path",
812
+ "required": true
813
+ }
814
+ ]
815
+ },
816
+ "createMultipartUpload": {
817
+ "method": "POST",
818
+ "path": "/v1/storage/{branch_id}/multipart/:object",
819
+ "params": [
820
+ {
821
+ "name": "branch_id",
822
+ "location": "path",
823
+ "required": true
824
+ },
825
+ {
826
+ "name": "object",
827
+ "location": "path",
828
+ "required": true
829
+ }
830
+ ]
831
+ },
832
+ "abortMultipartUpload": {
833
+ "method": "DELETE",
834
+ "path": "/v1/storage/{branch_id}/multipart/:object",
835
+ "params": [
836
+ {
837
+ "name": "branch_id",
838
+ "location": "path",
839
+ "required": true
840
+ },
841
+ {
842
+ "name": "object",
843
+ "location": "path",
844
+ "required": true
845
+ }
846
+ ]
847
+ },
848
+ "completeMultipartUpload": {
849
+ "method": "POST",
850
+ "path": "/v1/storage/{branch_id}/multipart/:object/complete",
851
+ "params": [
852
+ {
853
+ "name": "branch_id",
854
+ "location": "path",
855
+ "required": true
856
+ },
857
+ {
858
+ "name": "object",
859
+ "location": "path",
860
+ "required": true
861
+ }
862
+ ]
863
+ },
864
+ "uploadMultipartPart": {
865
+ "method": "PUT",
866
+ "path": "/v1/storage/{branch_id}/multipart/:object/parts/:part",
867
+ "params": [
868
+ {
869
+ "name": "branch_id",
870
+ "location": "path",
871
+ "required": true
872
+ },
873
+ {
874
+ "name": "object",
875
+ "location": "path",
876
+ "required": true
877
+ },
878
+ {
879
+ "name": "part",
880
+ "location": "path",
881
+ "required": true
882
+ }
883
+ ]
884
+ },
885
+ "listStorageObjects": {
886
+ "method": "GET",
887
+ "path": "/v1/storage/{branch_id}/objects",
888
+ "params": [
889
+ {
890
+ "name": "branch_id",
891
+ "location": "path",
892
+ "required": true
893
+ }
894
+ ]
895
+ },
896
+ "getStorageObject": {
897
+ "method": "GET",
898
+ "path": "/v1/storage/{branch_id}/objects/{object}",
899
+ "params": [
900
+ {
901
+ "name": "branch_id",
902
+ "location": "path",
903
+ "required": true
904
+ },
905
+ {
906
+ "name": "object",
907
+ "location": "path",
908
+ "required": true
909
+ }
910
+ ]
911
+ },
912
+ "putStorageObject": {
913
+ "method": "PUT",
914
+ "path": "/v1/storage/{branch_id}/objects/{object}",
915
+ "params": [
916
+ {
917
+ "name": "branch_id",
918
+ "location": "path",
919
+ "required": true
920
+ },
921
+ {
922
+ "name": "object",
923
+ "location": "path",
924
+ "required": true
925
+ }
926
+ ]
927
+ },
928
+ "deleteStorageObject": {
929
+ "method": "DELETE",
930
+ "path": "/v1/storage/{branch_id}/objects/{object}",
931
+ "params": [
932
+ {
933
+ "name": "branch_id",
934
+ "location": "path",
935
+ "required": true
936
+ },
937
+ {
938
+ "name": "object",
939
+ "location": "path",
940
+ "required": true
941
+ }
942
+ ]
943
+ },
944
+ "presignStorageObject": {
945
+ "method": "POST",
946
+ "path": "/v1/storage/{branch_id}/presign/{object}",
947
+ "params": [
948
+ {
949
+ "name": "branch_id",
950
+ "location": "path",
951
+ "required": true
952
+ },
953
+ {
954
+ "name": "object",
955
+ "location": "path",
956
+ "required": true
957
+ }
958
+ ]
959
+ }
960
+ };
961
+ //# sourceMappingURL=operations.js.map