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