@sylphx/sdk 0.28.0 → 0.31.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/LICENSE +21 -0
- package/README.md +42 -114
- package/dist/access.d.ts +670 -0
- package/dist/access.js +640 -0
- package/dist/access.js.map +1 -0
- package/dist/ai.d.ts +176 -0
- package/dist/ai.js +112 -0
- package/dist/ai.js.map +1 -0
- package/dist/artifacts.d.ts +165 -0
- package/dist/artifacts.js +129 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/auth/verify.d.ts +57 -0
- package/dist/auth/verify.js +157 -0
- package/dist/auth/verify.js.map +1 -0
- package/dist/auth.d.ts +896 -0
- package/dist/auth.js +828 -0
- package/dist/auth.js.map +1 -0
- package/dist/billing.d.ts +854 -0
- package/dist/billing.js +593 -0
- package/dist/billing.js.map +1 -0
- package/dist/broker.d.ts +226 -0
- package/dist/broker.js +187 -0
- package/dist/broker.js.map +1 -0
- package/dist/build.d.ts +313 -0
- package/dist/build.js +271 -0
- package/dist/build.js.map +1 -0
- package/dist/common.d.ts +162 -0
- package/dist/common.js +41 -0
- package/dist/common.js.map +1 -0
- package/dist/config.d.ts +198 -0
- package/dist/config.js +168 -0
- package/dist/config.js.map +1 -0
- package/dist/connections.d.ts +354 -0
- package/dist/connections.js +313 -0
- package/dist/connections.js.map +1 -0
- package/dist/data.d.ts +1141 -0
- package/dist/data.js +1082 -0
- package/dist/data.js.map +1 -0
- package/dist/entitlement.d.ts +179 -0
- package/dist/entitlement.js +117 -0
- package/dist/entitlement.js.map +1 -0
- package/dist/events.d.ts +1324 -0
- package/dist/events.js +1227 -0
- package/dist/events.js.map +1 -0
- package/dist/hosting.d.ts +709 -0
- package/dist/hosting.js +611 -0
- package/dist/hosting.js.map +1 -0
- package/dist/index.d.ts +79 -33656
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/dist/keys.d.ts +438 -0
- package/dist/keys.js +406 -0
- package/dist/keys.js.map +1 -0
- package/dist/methods.d.ts +2 -0
- package/dist/methods.js +4200 -0
- package/dist/methods.js.map +1 -0
- package/dist/network.d.ts +733 -0
- package/dist/network.js +711 -0
- package/dist/network.js.map +1 -0
- package/dist/notify.d.ts +1753 -0
- package/dist/notify.js +1551 -0
- package/dist/notify.js.map +1 -0
- package/dist/observability.d.ts +509 -0
- package/dist/observability.js +437 -0
- package/dist/observability.js.map +1 -0
- package/dist/release.d.ts +303 -0
- package/dist/release.js +214 -0
- package/dist/release.js.map +1 -0
- package/dist/runners.d.ts +262 -0
- package/dist/runners.js +238 -0
- package/dist/runners.js.map +1 -0
- package/dist/runtime.d.ts +121 -0
- package/dist/runtime.js +305 -0
- package/dist/runtime.js.map +1 -0
- package/dist/sandboxes.d.ts +1705 -0
- package/dist/sandboxes.js +1226 -0
- package/dist/sandboxes.js.map +1 -0
- package/dist/secrets.d.ts +508 -0
- package/dist/secrets.js +474 -0
- package/dist/secrets.js.map +1 -0
- package/dist/workflows.d.ts +678 -0
- package/dist/workflows.js +595 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +33 -112
- package/dist/connect.d.ts +0 -2838
- package/dist/connect.mjs +0 -220
- package/dist/connect.mjs.map +0 -1
- package/dist/health/index.d.ts +0 -1394
- package/dist/health/index.mjs +0 -1394
- package/dist/health/index.mjs.map +0 -1
- package/dist/index.mjs +0 -38429
- package/dist/index.mjs.map +0 -1
- package/dist/nextjs/index.d.ts +0 -724
- package/dist/nextjs/index.mjs +0 -3332
- package/dist/nextjs/index.mjs.map +0 -1
- package/dist/react/index.d.ts +0 -13066
- package/dist/react/index.mjs +0 -35329
- package/dist/react/index.mjs.map +0 -1
- package/dist/server/index.d.ts +0 -2000
- package/dist/server/index.mjs +0 -3446
- package/dist/server/index.mjs.map +0 -1
- package/dist/web-analytics.d.ts +0 -90
- package/dist/web-analytics.mjs +0 -225
- package/dist/web-analytics.mjs.map +0 -1
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1,1141 @@
|
|
|
1
|
+
import * as runtime from './runtime.js';
|
|
2
|
+
import './common.js';
|
|
3
|
+
import type * as common from './common.js';
|
|
4
|
+
/**
|
|
5
|
+
* A Bucket is one customer object store: bytes, size, and SHA-256 kept exact,
|
|
6
|
+
* with versions, delete markers, retention, multipart, and per-object
|
|
7
|
+
* visibility (private by default). Silo: each has its own engine, credentials,
|
|
8
|
+
* backup, region, and deletion.
|
|
9
|
+
*/
|
|
10
|
+
export interface Bucket {
|
|
11
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/buckets/{bucket}`. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** `bkt_<cell><ulid>`; never reused. */
|
|
14
|
+
readonly uid?: string;
|
|
15
|
+
/** Resource metadata. */
|
|
16
|
+
meta?: common.ResourceMeta;
|
|
17
|
+
/** Desired state. */
|
|
18
|
+
spec?: BucketSpec;
|
|
19
|
+
/** Observed state. */
|
|
20
|
+
readonly status?: BucketStatus;
|
|
21
|
+
}
|
|
22
|
+
/** BucketSpec is the caller-writable state of a Bucket. */
|
|
23
|
+
export interface BucketSpec {
|
|
24
|
+
/** Keep every version and write delete markers. */
|
|
25
|
+
versioningEnabled?: boolean;
|
|
26
|
+
/** Versions are kept at least this long; unset keeps no minimum. */
|
|
27
|
+
retention?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The region; default the project's home region. Changing it moves the data
|
|
30
|
+
* by signed export and import.
|
|
31
|
+
*/
|
|
32
|
+
region?: string;
|
|
33
|
+
/** While set, Delete fails with DELETION_PROTECTED. */
|
|
34
|
+
deletionProtection?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/** BucketStatus is the observed state of a Bucket. */
|
|
37
|
+
export interface BucketStatus {
|
|
38
|
+
/** The generation this status was computed from. */
|
|
39
|
+
readonly observedGeneration?: string;
|
|
40
|
+
/** Ready, Reconciling, Stalled. */
|
|
41
|
+
readonly conditions?: common.Condition[];
|
|
42
|
+
/** Serving state. */
|
|
43
|
+
readonly state?: DatastoreState;
|
|
44
|
+
/** The routing ref: the first DNS label of the datastore's endpoint. */
|
|
45
|
+
readonly ref?: string;
|
|
46
|
+
/** The object endpoint host. */
|
|
47
|
+
readonly host?: string;
|
|
48
|
+
/** The Cell the datastore is placed on. */
|
|
49
|
+
readonly cell?: string;
|
|
50
|
+
/** Bytes stored, at the last usage sample. */
|
|
51
|
+
readonly storageBytes?: string;
|
|
52
|
+
/** Current objects, at the last usage sample. */
|
|
53
|
+
readonly objectCount?: string;
|
|
54
|
+
}
|
|
55
|
+
/** The request of ConnectBucket. */
|
|
56
|
+
export interface ConnectBucketRequest {
|
|
57
|
+
/** The name of the bucket. */
|
|
58
|
+
name: string;
|
|
59
|
+
}
|
|
60
|
+
/** The response of ConnectBucket. */
|
|
61
|
+
export interface ConnectBucketResponse {
|
|
62
|
+
/** How to connect. */
|
|
63
|
+
connectionInfo?: ConnectionInfo;
|
|
64
|
+
}
|
|
65
|
+
/** The request of ConnectDatabase. */
|
|
66
|
+
export interface ConnectDatabaseRequest {
|
|
67
|
+
/** The name of the database. */
|
|
68
|
+
name: string;
|
|
69
|
+
/** POOLED (default) or DIRECT. */
|
|
70
|
+
profile?: ConnectionProfile;
|
|
71
|
+
}
|
|
72
|
+
/** The response of ConnectDatabase. */
|
|
73
|
+
export interface ConnectDatabaseResponse {
|
|
74
|
+
/** How to connect. */
|
|
75
|
+
connectionInfo?: ConnectionInfo;
|
|
76
|
+
}
|
|
77
|
+
/** The request of ConnectKvNamespace. */
|
|
78
|
+
export interface ConnectKvNamespaceRequest {
|
|
79
|
+
/** The name of the kv namespace. */
|
|
80
|
+
name: string;
|
|
81
|
+
}
|
|
82
|
+
/** The response of ConnectKvNamespace. */
|
|
83
|
+
export interface ConnectKvNamespaceResponse {
|
|
84
|
+
/** How to connect. */
|
|
85
|
+
connectionInfo?: ConnectionInfo;
|
|
86
|
+
}
|
|
87
|
+
/** The request of ConnectSearchIndex. */
|
|
88
|
+
export interface ConnectSearchIndexRequest {
|
|
89
|
+
/** The name of the search index. */
|
|
90
|
+
name: string;
|
|
91
|
+
}
|
|
92
|
+
/** The response of ConnectSearchIndex. */
|
|
93
|
+
export interface ConnectSearchIndexResponse {
|
|
94
|
+
/** How to connect. */
|
|
95
|
+
connectionInfo?: ConnectionInfo;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* ConnectionInfo is how a client reaches one datastore through Data Edge. The
|
|
99
|
+
* password is the datastore's own engine credential.
|
|
100
|
+
*/
|
|
101
|
+
export interface ConnectionInfo {
|
|
102
|
+
/** The endpoint host, `{ref}.sylphx.net`. */
|
|
103
|
+
host?: string;
|
|
104
|
+
/** The TLS port: 5432 Postgres, 6379 Valkey, 8108 search, 443 objects. */
|
|
105
|
+
port?: number;
|
|
106
|
+
/** The engine user. */
|
|
107
|
+
username?: string;
|
|
108
|
+
/** The engine password. */
|
|
109
|
+
password?: string;
|
|
110
|
+
/** The Postgres database name; empty for other kinds. */
|
|
111
|
+
database?: string;
|
|
112
|
+
/** A driver URL embedding the credentials. */
|
|
113
|
+
uri?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Postgres only: the direct URL for migrations, `pg_dump`,
|
|
116
|
+
* `LISTEN`/`NOTIFY`, session `SET`, and logical replication.
|
|
117
|
+
*/
|
|
118
|
+
directUri?: string;
|
|
119
|
+
}
|
|
120
|
+
/** The request of CreateBucket. */
|
|
121
|
+
export interface CreateBucketRequest {
|
|
122
|
+
/** The parent to create in. */
|
|
123
|
+
parent: string;
|
|
124
|
+
/** The bucket to create; only spec and caller-writable metadata are read. */
|
|
125
|
+
bucket: Bucket;
|
|
126
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
127
|
+
bucketId?: string;
|
|
128
|
+
/** Validate and return the result without writing anything. */
|
|
129
|
+
validateOnly?: boolean;
|
|
130
|
+
}
|
|
131
|
+
/** The request of CreateDatabase. */
|
|
132
|
+
export interface CreateDatabaseRequest {
|
|
133
|
+
/** The parent to create in. */
|
|
134
|
+
parent: string;
|
|
135
|
+
/** The database to create; only spec and caller-writable metadata are read. */
|
|
136
|
+
database: Database;
|
|
137
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
138
|
+
databaseId?: string;
|
|
139
|
+
/** Validate and return the result without writing anything. */
|
|
140
|
+
validateOnly?: boolean;
|
|
141
|
+
}
|
|
142
|
+
/** The request of CreateKvNamespace. */
|
|
143
|
+
export interface CreateKvNamespaceRequest {
|
|
144
|
+
/** The parent to create in. */
|
|
145
|
+
parent: string;
|
|
146
|
+
/**
|
|
147
|
+
* The kv namespace to create; only spec and caller-writable metadata are
|
|
148
|
+
* read.
|
|
149
|
+
*/
|
|
150
|
+
kvNamespace: KvNamespace;
|
|
151
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
152
|
+
kvNamespaceId?: string;
|
|
153
|
+
/** Validate and return the result without writing anything. */
|
|
154
|
+
validateOnly?: boolean;
|
|
155
|
+
}
|
|
156
|
+
/** The request of CreateSearchIndex. */
|
|
157
|
+
export interface CreateSearchIndexRequest {
|
|
158
|
+
/** The parent to create in. */
|
|
159
|
+
parent: string;
|
|
160
|
+
/**
|
|
161
|
+
* The search index to create; only spec and caller-writable metadata are
|
|
162
|
+
* read.
|
|
163
|
+
*/
|
|
164
|
+
searchIndex: SearchIndex;
|
|
165
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
166
|
+
searchIndexId?: string;
|
|
167
|
+
/** Validate and return the result without writing anything. */
|
|
168
|
+
validateOnly?: boolean;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* A Database is one customer Postgres. Silo: each has its own engine,
|
|
172
|
+
* credentials, backup, region, and deletion. The customer sets no instance
|
|
173
|
+
* class, disk, replica, or `max_connections`; they derive from compute size.
|
|
174
|
+
* An idle free-tier database stops and the next connect wakes it.
|
|
175
|
+
*/
|
|
176
|
+
export interface Database {
|
|
177
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/databases/{database}`. */
|
|
178
|
+
name?: string;
|
|
179
|
+
/** `db_<cell><ulid>`; never reused. */
|
|
180
|
+
readonly uid?: string;
|
|
181
|
+
/** Resource metadata. */
|
|
182
|
+
meta?: common.ResourceMeta;
|
|
183
|
+
/** Desired state. */
|
|
184
|
+
spec?: DatabaseSpec;
|
|
185
|
+
/** Observed state. */
|
|
186
|
+
readonly status?: DatabaseStatus;
|
|
187
|
+
}
|
|
188
|
+
/** DatabaseSpec is the caller-writable state of a Database. */
|
|
189
|
+
export interface DatabaseSpec {
|
|
190
|
+
/**
|
|
191
|
+
* The Postgres major version, for example `17`; default the newest
|
|
192
|
+
* supported.
|
|
193
|
+
*/
|
|
194
|
+
postgresVersion?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Compute size in units; default the plan's. `max_connections` derives from
|
|
197
|
+
* it.
|
|
198
|
+
*/
|
|
199
|
+
computeUnits?: number;
|
|
200
|
+
/**
|
|
201
|
+
* The region; default the project's home region. Changing it moves the data
|
|
202
|
+
* by signed export and import.
|
|
203
|
+
*/
|
|
204
|
+
region?: string;
|
|
205
|
+
/** While set, Delete fails with DELETION_PROTECTED. */
|
|
206
|
+
deletionProtection?: boolean;
|
|
207
|
+
}
|
|
208
|
+
/** DatabaseStatus is the observed state of a Database. */
|
|
209
|
+
export interface DatabaseStatus {
|
|
210
|
+
/** The generation this status was computed from. */
|
|
211
|
+
readonly observedGeneration?: string;
|
|
212
|
+
/** Ready, Reconciling, Stalled. */
|
|
213
|
+
readonly conditions?: common.Condition[];
|
|
214
|
+
/** Serving state. */
|
|
215
|
+
readonly state?: DatastoreState;
|
|
216
|
+
/** The routing ref: the first DNS label of the datastore's endpoint. */
|
|
217
|
+
readonly ref?: string;
|
|
218
|
+
/**
|
|
219
|
+
* The endpoint host, `{ref}.sylphx.net`; `{ref}-direct` is the direct
|
|
220
|
+
* profile.
|
|
221
|
+
*/
|
|
222
|
+
readonly host?: string;
|
|
223
|
+
/** The Cell the datastore is placed on. */
|
|
224
|
+
readonly cell?: string;
|
|
225
|
+
/** Bytes stored, at the last usage sample. */
|
|
226
|
+
readonly storageBytes?: string;
|
|
227
|
+
/** Derived from compute size; not customer config. */
|
|
228
|
+
readonly maxConnections?: number;
|
|
229
|
+
/** The earliest point `:restore` accepts. */
|
|
230
|
+
readonly earliestRestoreTime?: string;
|
|
231
|
+
}
|
|
232
|
+
/** The request of DeleteBucket. */
|
|
233
|
+
export interface DeleteBucketRequest {
|
|
234
|
+
/** The name of the bucket to delete. */
|
|
235
|
+
name: string;
|
|
236
|
+
/** Delete only if the current etag matches. */
|
|
237
|
+
etag?: string;
|
|
238
|
+
/** Succeed when the Resource does not exist. */
|
|
239
|
+
allowMissing?: boolean;
|
|
240
|
+
/** Validate without deleting anything. */
|
|
241
|
+
validateOnly?: boolean;
|
|
242
|
+
}
|
|
243
|
+
/** The request of DeleteDatabase. */
|
|
244
|
+
export interface DeleteDatabaseRequest {
|
|
245
|
+
/** The name of the database to delete. */
|
|
246
|
+
name: string;
|
|
247
|
+
/** Delete only if the current etag matches. */
|
|
248
|
+
etag?: string;
|
|
249
|
+
/** Succeed when the Resource does not exist. */
|
|
250
|
+
allowMissing?: boolean;
|
|
251
|
+
/** Validate without deleting anything. */
|
|
252
|
+
validateOnly?: boolean;
|
|
253
|
+
}
|
|
254
|
+
/** The request of DeleteKvNamespace. */
|
|
255
|
+
export interface DeleteKvNamespaceRequest {
|
|
256
|
+
/** The name of the kv namespace to delete. */
|
|
257
|
+
name: string;
|
|
258
|
+
/** Delete only if the current etag matches. */
|
|
259
|
+
etag?: string;
|
|
260
|
+
/** Succeed when the Resource does not exist. */
|
|
261
|
+
allowMissing?: boolean;
|
|
262
|
+
/** Validate without deleting anything. */
|
|
263
|
+
validateOnly?: boolean;
|
|
264
|
+
}
|
|
265
|
+
/** The request of DeleteObject. */
|
|
266
|
+
export interface DeleteObjectRequest {
|
|
267
|
+
/** The bucket's id. */
|
|
268
|
+
bucketId: string;
|
|
269
|
+
/** The object key. */
|
|
270
|
+
key: string;
|
|
271
|
+
/** Delete only when the current version equals this one (0: any). */
|
|
272
|
+
expectedVersion?: string;
|
|
273
|
+
}
|
|
274
|
+
/** The response of DeleteObject. */
|
|
275
|
+
export interface DeleteObjectResponse {
|
|
276
|
+
/** Whether a current version existed and was deleted. */
|
|
277
|
+
deleted?: boolean;
|
|
278
|
+
/** The delete marker written. */
|
|
279
|
+
object?: ObjectRecord;
|
|
280
|
+
}
|
|
281
|
+
/** The request of DeleteSearchIndex. */
|
|
282
|
+
export interface DeleteSearchIndexRequest {
|
|
283
|
+
/** The name of the search index to delete. */
|
|
284
|
+
name: string;
|
|
285
|
+
/** Delete only if the current etag matches. */
|
|
286
|
+
etag?: string;
|
|
287
|
+
/** Succeed when the Resource does not exist. */
|
|
288
|
+
allowMissing?: boolean;
|
|
289
|
+
/** Validate without deleting anything. */
|
|
290
|
+
validateOnly?: boolean;
|
|
291
|
+
}
|
|
292
|
+
/** The request of DeleteValue. */
|
|
293
|
+
export interface DeleteValueRequest {
|
|
294
|
+
/** The namespace's id. */
|
|
295
|
+
namespaceId: string;
|
|
296
|
+
/** The key. */
|
|
297
|
+
key: string;
|
|
298
|
+
/** Delete only when the current version equals this one (0: any). */
|
|
299
|
+
expectedVersion?: string;
|
|
300
|
+
}
|
|
301
|
+
/** The response of DeleteValue. */
|
|
302
|
+
export interface DeleteValueResponse {
|
|
303
|
+
/** Whether the key existed. */
|
|
304
|
+
deleted?: boolean;
|
|
305
|
+
}
|
|
306
|
+
/** The request of GetBucket. */
|
|
307
|
+
export interface GetBucketRequest {
|
|
308
|
+
/** The name of the bucket to get. */
|
|
309
|
+
name: string;
|
|
310
|
+
}
|
|
311
|
+
/** The request of GetDatabase. */
|
|
312
|
+
export interface GetDatabaseRequest {
|
|
313
|
+
/** The name of the database to get. */
|
|
314
|
+
name: string;
|
|
315
|
+
}
|
|
316
|
+
/** The request of GetKvNamespace. */
|
|
317
|
+
export interface GetKvNamespaceRequest {
|
|
318
|
+
/** The name of the kv namespace to get. */
|
|
319
|
+
name: string;
|
|
320
|
+
}
|
|
321
|
+
/** The request of GetObject. */
|
|
322
|
+
export interface GetObjectRequest {
|
|
323
|
+
/** The bucket's id. */
|
|
324
|
+
bucketId: string;
|
|
325
|
+
/** The object key. */
|
|
326
|
+
key: string;
|
|
327
|
+
/** Zero reads the current version; a positive value reads that version. */
|
|
328
|
+
version?: string;
|
|
329
|
+
}
|
|
330
|
+
/** The response of GetObject. */
|
|
331
|
+
export interface GetObjectResponse {
|
|
332
|
+
/** The object's metadata. */
|
|
333
|
+
object?: ObjectRecord;
|
|
334
|
+
/** The bytes, base64. */
|
|
335
|
+
body?: string;
|
|
336
|
+
}
|
|
337
|
+
/** The request of GetSearchIndex. */
|
|
338
|
+
export interface GetSearchIndexRequest {
|
|
339
|
+
/** The name of the search index to get. */
|
|
340
|
+
name: string;
|
|
341
|
+
}
|
|
342
|
+
/** The request of GetValue. */
|
|
343
|
+
export interface GetValueRequest {
|
|
344
|
+
/** The namespace's id. */
|
|
345
|
+
namespaceId: string;
|
|
346
|
+
/** The key. */
|
|
347
|
+
key: string;
|
|
348
|
+
}
|
|
349
|
+
/** The response of GetValue. */
|
|
350
|
+
export interface GetValueResponse {
|
|
351
|
+
/** The entry. */
|
|
352
|
+
value?: ValueRecord;
|
|
353
|
+
}
|
|
354
|
+
/** The request of IncrementValue. */
|
|
355
|
+
export interface IncrementValueRequest {
|
|
356
|
+
/** The namespace's id. */
|
|
357
|
+
namespaceId: string;
|
|
358
|
+
/** The key. */
|
|
359
|
+
key: string;
|
|
360
|
+
/** The amount to add; unset adds 1, and zero reads the count. */
|
|
361
|
+
delta?: string;
|
|
362
|
+
}
|
|
363
|
+
/** The response of IncrementValue. */
|
|
364
|
+
export interface IncrementValueResponse {
|
|
365
|
+
/** The entry after the increment; `value` is the decimal text of the count. */
|
|
366
|
+
value?: ValueRecord;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* A KvNamespace is one customer key-value store on its own Valkey: versioned
|
|
370
|
+
* bytes with compare-and-set, TTL, and prefix list, plus a closed Valkey
|
|
371
|
+
* command profile on the wire. Silo: each has its own engine, credentials,
|
|
372
|
+
* backup, region, and deletion.
|
|
373
|
+
*/
|
|
374
|
+
export interface KvNamespace {
|
|
375
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/kv_namespaces/{kv_namespace}`. */
|
|
376
|
+
name?: string;
|
|
377
|
+
/** `kv_<cell><ulid>`; never reused. */
|
|
378
|
+
readonly uid?: string;
|
|
379
|
+
/** Resource metadata. */
|
|
380
|
+
meta?: common.ResourceMeta;
|
|
381
|
+
/** Desired state. */
|
|
382
|
+
spec?: KvNamespaceSpec;
|
|
383
|
+
/** Observed state. */
|
|
384
|
+
readonly status?: KvNamespaceStatus;
|
|
385
|
+
}
|
|
386
|
+
/** KvNamespaceSpec is the caller-writable state of a KvNamespace. */
|
|
387
|
+
export interface KvNamespaceSpec {
|
|
388
|
+
/** The TTL of a value written without one; unset keeps values until deleted. */
|
|
389
|
+
defaultTtl?: string;
|
|
390
|
+
/**
|
|
391
|
+
* The region; default the project's home region. Changing it moves the data
|
|
392
|
+
* by signed export and import.
|
|
393
|
+
*/
|
|
394
|
+
region?: string;
|
|
395
|
+
/** While set, Delete fails with DELETION_PROTECTED. */
|
|
396
|
+
deletionProtection?: boolean;
|
|
397
|
+
}
|
|
398
|
+
/** KvNamespaceStatus is the observed state of a KvNamespace. */
|
|
399
|
+
export interface KvNamespaceStatus {
|
|
400
|
+
/** The generation this status was computed from. */
|
|
401
|
+
readonly observedGeneration?: string;
|
|
402
|
+
/** Ready, Reconciling, Stalled. */
|
|
403
|
+
readonly conditions?: common.Condition[];
|
|
404
|
+
/** Serving state. */
|
|
405
|
+
readonly state?: DatastoreState;
|
|
406
|
+
/** The routing ref: the first DNS label of the datastore's endpoint. */
|
|
407
|
+
readonly ref?: string;
|
|
408
|
+
/** The endpoint host, `{ref}.sylphx.net`, port 6379. */
|
|
409
|
+
readonly host?: string;
|
|
410
|
+
/** The Cell the datastore is placed on. */
|
|
411
|
+
readonly cell?: string;
|
|
412
|
+
/** Bytes stored, at the last usage sample. */
|
|
413
|
+
readonly storageBytes?: string;
|
|
414
|
+
}
|
|
415
|
+
/** The request of ListBuckets. */
|
|
416
|
+
export interface ListBucketsRequest {
|
|
417
|
+
/** The parent to list in. */
|
|
418
|
+
parent: string;
|
|
419
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
420
|
+
pageSize?: number;
|
|
421
|
+
/** `next_page_token` of the previous page. */
|
|
422
|
+
pageToken?: string;
|
|
423
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
424
|
+
filter?: string;
|
|
425
|
+
/** AIP-132 ordering over filterable fields. */
|
|
426
|
+
orderBy?: string;
|
|
427
|
+
}
|
|
428
|
+
/** The response of ListBuckets. */
|
|
429
|
+
export interface ListBucketsResponse {
|
|
430
|
+
/** The page. */
|
|
431
|
+
buckets?: Bucket[];
|
|
432
|
+
/** The token of the next page; empty on the last page. */
|
|
433
|
+
nextPageToken?: string;
|
|
434
|
+
}
|
|
435
|
+
/** The request of ListDatabases. */
|
|
436
|
+
export interface ListDatabasesRequest {
|
|
437
|
+
/** The parent to list in. */
|
|
438
|
+
parent: string;
|
|
439
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
440
|
+
pageSize?: number;
|
|
441
|
+
/** `next_page_token` of the previous page. */
|
|
442
|
+
pageToken?: string;
|
|
443
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
444
|
+
filter?: string;
|
|
445
|
+
/** AIP-132 ordering over filterable fields. */
|
|
446
|
+
orderBy?: string;
|
|
447
|
+
}
|
|
448
|
+
/** The response of ListDatabases. */
|
|
449
|
+
export interface ListDatabasesResponse {
|
|
450
|
+
/** The page. */
|
|
451
|
+
databases?: Database[];
|
|
452
|
+
/** The token of the next page; empty on the last page. */
|
|
453
|
+
nextPageToken?: string;
|
|
454
|
+
}
|
|
455
|
+
/** The request of ListKvNamespaces. */
|
|
456
|
+
export interface ListKvNamespacesRequest {
|
|
457
|
+
/** The parent to list in. */
|
|
458
|
+
parent: string;
|
|
459
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
460
|
+
pageSize?: number;
|
|
461
|
+
/** `next_page_token` of the previous page. */
|
|
462
|
+
pageToken?: string;
|
|
463
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
464
|
+
filter?: string;
|
|
465
|
+
/** AIP-132 ordering over filterable fields. */
|
|
466
|
+
orderBy?: string;
|
|
467
|
+
}
|
|
468
|
+
/** The response of ListKvNamespaces. */
|
|
469
|
+
export interface ListKvNamespacesResponse {
|
|
470
|
+
/** The page. */
|
|
471
|
+
kvNamespaces?: KvNamespace[];
|
|
472
|
+
/** The token of the next page; empty on the last page. */
|
|
473
|
+
nextPageToken?: string;
|
|
474
|
+
}
|
|
475
|
+
/** The request of ListObjects. */
|
|
476
|
+
export interface ListObjectsRequest {
|
|
477
|
+
/** The bucket's id. */
|
|
478
|
+
bucketId: string;
|
|
479
|
+
/** Only keys with this prefix. */
|
|
480
|
+
prefix?: string;
|
|
481
|
+
/** At most this many objects; the service caps it. */
|
|
482
|
+
pageSize?: number;
|
|
483
|
+
/** The `next_page_token` of the previous page. */
|
|
484
|
+
pageToken?: string;
|
|
485
|
+
}
|
|
486
|
+
/** The response of ListObjects. */
|
|
487
|
+
export interface ListObjectsResponse {
|
|
488
|
+
/** The page of objects. */
|
|
489
|
+
objects?: ObjectRecord[];
|
|
490
|
+
/** Empty on the last page. */
|
|
491
|
+
nextPageToken?: string;
|
|
492
|
+
}
|
|
493
|
+
/** The request of ListSearchIndexes. */
|
|
494
|
+
export interface ListSearchIndexesRequest {
|
|
495
|
+
/** The parent to list in. */
|
|
496
|
+
parent: string;
|
|
497
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
498
|
+
pageSize?: number;
|
|
499
|
+
/** `next_page_token` of the previous page. */
|
|
500
|
+
pageToken?: string;
|
|
501
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
502
|
+
filter?: string;
|
|
503
|
+
/** AIP-132 ordering over filterable fields. */
|
|
504
|
+
orderBy?: string;
|
|
505
|
+
}
|
|
506
|
+
/** The response of ListSearchIndexes. */
|
|
507
|
+
export interface ListSearchIndexesResponse {
|
|
508
|
+
/** The page. */
|
|
509
|
+
searchIndexes?: SearchIndex[];
|
|
510
|
+
/** The token of the next page; empty on the last page. */
|
|
511
|
+
nextPageToken?: string;
|
|
512
|
+
}
|
|
513
|
+
/** The request of ListValues. */
|
|
514
|
+
export interface ListValuesRequest {
|
|
515
|
+
/** The namespace's id. */
|
|
516
|
+
namespaceId: string;
|
|
517
|
+
/** Only keys with this prefix. */
|
|
518
|
+
prefix?: string;
|
|
519
|
+
/** At most this many entries; the service caps it. */
|
|
520
|
+
pageSize?: number;
|
|
521
|
+
/** The `next_page_token` of the previous page. */
|
|
522
|
+
pageToken?: string;
|
|
523
|
+
}
|
|
524
|
+
/** The response of ListValues. */
|
|
525
|
+
export interface ListValuesResponse {
|
|
526
|
+
/** The page of entries. */
|
|
527
|
+
values?: ValueRecord[];
|
|
528
|
+
/** Empty on the last page. */
|
|
529
|
+
nextPageToken?: string;
|
|
530
|
+
}
|
|
531
|
+
/** An object's metadata. */
|
|
532
|
+
export interface ObjectRecord {
|
|
533
|
+
/** The bucket's id in the environment, for example `uploads`. */
|
|
534
|
+
bucketId?: string;
|
|
535
|
+
/** The object key; `/` separates path segments. */
|
|
536
|
+
key?: string;
|
|
537
|
+
/** `sha256:<hex>` of the bytes. */
|
|
538
|
+
sha256?: string;
|
|
539
|
+
/** Size in bytes. */
|
|
540
|
+
size?: string;
|
|
541
|
+
/** The media type given at put. */
|
|
542
|
+
contentType?: string;
|
|
543
|
+
/** The entity tag of this version. */
|
|
544
|
+
etag?: string;
|
|
545
|
+
/** The version, increasing per key. */
|
|
546
|
+
version?: string;
|
|
547
|
+
/** When this version was written, in Unix milliseconds. */
|
|
548
|
+
updatedAtUnixMs?: string;
|
|
549
|
+
/** Whether this version is a delete marker (exact-version reads only). */
|
|
550
|
+
deleteMarker?: boolean;
|
|
551
|
+
/** `public` or `private` (the default); current version only. */
|
|
552
|
+
visibility?: string;
|
|
553
|
+
}
|
|
554
|
+
/** The request of PutObject. */
|
|
555
|
+
export interface PutObjectRequest {
|
|
556
|
+
/** The bucket's id. */
|
|
557
|
+
bucketId: string;
|
|
558
|
+
/** The object key. */
|
|
559
|
+
key: string;
|
|
560
|
+
/** The bytes, base64. */
|
|
561
|
+
body?: string;
|
|
562
|
+
/** The media type, for example `application/pdf`. */
|
|
563
|
+
contentType?: string;
|
|
564
|
+
/** Write only when the current version equals this one (0: any). */
|
|
565
|
+
expectedVersion?: string;
|
|
566
|
+
}
|
|
567
|
+
/** The response of PutObject. */
|
|
568
|
+
export interface PutObjectResponse {
|
|
569
|
+
/** The stored object. */
|
|
570
|
+
object?: ObjectRecord;
|
|
571
|
+
}
|
|
572
|
+
/** The request of PutValue. */
|
|
573
|
+
export interface PutValueRequest {
|
|
574
|
+
/** The namespace's id. */
|
|
575
|
+
namespaceId: string;
|
|
576
|
+
/** The key. */
|
|
577
|
+
key: string;
|
|
578
|
+
/** The bytes, base64. */
|
|
579
|
+
value?: string;
|
|
580
|
+
/** Seconds to live; unset uses the namespace default, zero never expires. */
|
|
581
|
+
ttlSeconds?: string;
|
|
582
|
+
/** Write only when the current version equals this one (0: any). */
|
|
583
|
+
expectedVersion?: string;
|
|
584
|
+
/** Write only when the key is absent (SET NX). */
|
|
585
|
+
nx?: boolean;
|
|
586
|
+
/** Write only when the key is present (SET XX); excludes `nx`. */
|
|
587
|
+
xx?: boolean;
|
|
588
|
+
}
|
|
589
|
+
/** The response of PutValue. */
|
|
590
|
+
export interface PutValueResponse {
|
|
591
|
+
/** The stored entry. */
|
|
592
|
+
value?: ValueRecord;
|
|
593
|
+
}
|
|
594
|
+
/** The request of RestoreDatabase. */
|
|
595
|
+
export interface RestoreDatabaseRequest {
|
|
596
|
+
/** The name of the database. */
|
|
597
|
+
name: string;
|
|
598
|
+
/** The point in time to restore to. */
|
|
599
|
+
restoreTime: string;
|
|
600
|
+
/** Act only if the current etag matches. */
|
|
601
|
+
etag?: string;
|
|
602
|
+
/** Validate without acting. */
|
|
603
|
+
validateOnly?: boolean;
|
|
604
|
+
}
|
|
605
|
+
/** The request of RotateBucketCredentials. */
|
|
606
|
+
export interface RotateBucketCredentialsRequest {
|
|
607
|
+
/** The name of the bucket. */
|
|
608
|
+
name: string;
|
|
609
|
+
/** Act only if the current etag matches. */
|
|
610
|
+
etag?: string;
|
|
611
|
+
/** Validate without acting. */
|
|
612
|
+
validateOnly?: boolean;
|
|
613
|
+
}
|
|
614
|
+
/** The request of RotateDatabaseCredentials. */
|
|
615
|
+
export interface RotateDatabaseCredentialsRequest {
|
|
616
|
+
/** The name of the database. */
|
|
617
|
+
name: string;
|
|
618
|
+
/** Act only if the current etag matches. */
|
|
619
|
+
etag?: string;
|
|
620
|
+
/** Validate without acting. */
|
|
621
|
+
validateOnly?: boolean;
|
|
622
|
+
}
|
|
623
|
+
/** The request of RotateKvNamespaceCredentials. */
|
|
624
|
+
export interface RotateKvNamespaceCredentialsRequest {
|
|
625
|
+
/** The name of the kv namespace. */
|
|
626
|
+
name: string;
|
|
627
|
+
/** Act only if the current etag matches. */
|
|
628
|
+
etag?: string;
|
|
629
|
+
/** Validate without acting. */
|
|
630
|
+
validateOnly?: boolean;
|
|
631
|
+
}
|
|
632
|
+
/** The request of RotateSearchIndexCredentials. */
|
|
633
|
+
export interface RotateSearchIndexCredentialsRequest {
|
|
634
|
+
/** The name of the search index. */
|
|
635
|
+
name: string;
|
|
636
|
+
/** Act only if the current etag matches. */
|
|
637
|
+
etag?: string;
|
|
638
|
+
/** Validate without acting. */
|
|
639
|
+
validateOnly?: boolean;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* A SearchIndex is one customer lexical and vector index of JSON documents.
|
|
643
|
+
* Dimension 0 is lexical only; a positive dimension adds cosine queries. Data
|
|
644
|
+
* never invents embeddings. Silo: each has its own engine, credentials,
|
|
645
|
+
* backup, region, and deletion.
|
|
646
|
+
*/
|
|
647
|
+
export interface SearchIndex {
|
|
648
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/search_indexes/{search_index}`. */
|
|
649
|
+
name?: string;
|
|
650
|
+
/** `idx_<cell><ulid>`; never reused. */
|
|
651
|
+
readonly uid?: string;
|
|
652
|
+
/** Resource metadata. */
|
|
653
|
+
meta?: common.ResourceMeta;
|
|
654
|
+
/** Desired state. */
|
|
655
|
+
spec?: SearchIndexSpec;
|
|
656
|
+
/** Observed state. */
|
|
657
|
+
readonly status?: SearchIndexStatus;
|
|
658
|
+
}
|
|
659
|
+
/** SearchIndexSpec is the caller-writable state of a SearchIndex. */
|
|
660
|
+
export interface SearchIndexSpec {
|
|
661
|
+
/** The vector dimension; 0 for lexical only. */
|
|
662
|
+
vectorDimensions?: number;
|
|
663
|
+
/**
|
|
664
|
+
* The region; default the project's home region. Changing it moves the data
|
|
665
|
+
* by signed export and import.
|
|
666
|
+
*/
|
|
667
|
+
region?: string;
|
|
668
|
+
/** While set, Delete fails with DELETION_PROTECTED. */
|
|
669
|
+
deletionProtection?: boolean;
|
|
670
|
+
}
|
|
671
|
+
/** SearchIndexStatus is the observed state of a SearchIndex. */
|
|
672
|
+
export interface SearchIndexStatus {
|
|
673
|
+
/** The generation this status was computed from. */
|
|
674
|
+
readonly observedGeneration?: string;
|
|
675
|
+
/** Ready, Reconciling, Stalled. */
|
|
676
|
+
readonly conditions?: common.Condition[];
|
|
677
|
+
/** Serving state. */
|
|
678
|
+
readonly state?: DatastoreState;
|
|
679
|
+
/** The routing ref: the first DNS label of the datastore's endpoint. */
|
|
680
|
+
readonly ref?: string;
|
|
681
|
+
/** The endpoint host, `{ref}.sylphx.net`, port 8108. */
|
|
682
|
+
readonly host?: string;
|
|
683
|
+
/** The Cell the datastore is placed on. */
|
|
684
|
+
readonly cell?: string;
|
|
685
|
+
/** Bytes stored, at the last usage sample. */
|
|
686
|
+
readonly storageBytes?: string;
|
|
687
|
+
/** Indexed documents, at the last usage sample. */
|
|
688
|
+
readonly documentCount?: string;
|
|
689
|
+
}
|
|
690
|
+
/** The request of UpdateBucket. */
|
|
691
|
+
export interface UpdateBucketRequest {
|
|
692
|
+
/** The bucket to update; `name` identifies it. */
|
|
693
|
+
bucket: Bucket;
|
|
694
|
+
/** The fields to write; unset writes every populated field. */
|
|
695
|
+
updateMask?: string;
|
|
696
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
697
|
+
allowMissing?: boolean;
|
|
698
|
+
/** Validate and return the result without writing anything. */
|
|
699
|
+
validateOnly?: boolean;
|
|
700
|
+
}
|
|
701
|
+
/** The request of UpdateDatabase. */
|
|
702
|
+
export interface UpdateDatabaseRequest {
|
|
703
|
+
/** The database to update; `name` identifies it. */
|
|
704
|
+
database: Database;
|
|
705
|
+
/** The fields to write; unset writes every populated field. */
|
|
706
|
+
updateMask?: string;
|
|
707
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
708
|
+
allowMissing?: boolean;
|
|
709
|
+
/** Validate and return the result without writing anything. */
|
|
710
|
+
validateOnly?: boolean;
|
|
711
|
+
}
|
|
712
|
+
/** The request of UpdateKvNamespace. */
|
|
713
|
+
export interface UpdateKvNamespaceRequest {
|
|
714
|
+
/** The kv namespace to update; `name` identifies it. */
|
|
715
|
+
kvNamespace: KvNamespace;
|
|
716
|
+
/** The fields to write; unset writes every populated field. */
|
|
717
|
+
updateMask?: string;
|
|
718
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
719
|
+
allowMissing?: boolean;
|
|
720
|
+
/** Validate and return the result without writing anything. */
|
|
721
|
+
validateOnly?: boolean;
|
|
722
|
+
}
|
|
723
|
+
/** The request of UpdateSearchIndex. */
|
|
724
|
+
export interface UpdateSearchIndexRequest {
|
|
725
|
+
/** The search index to update; `name` identifies it. */
|
|
726
|
+
searchIndex: SearchIndex;
|
|
727
|
+
/** The fields to write; unset writes every populated field. */
|
|
728
|
+
updateMask?: string;
|
|
729
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
730
|
+
allowMissing?: boolean;
|
|
731
|
+
/** Validate and return the result without writing anything. */
|
|
732
|
+
validateOnly?: boolean;
|
|
733
|
+
}
|
|
734
|
+
/** A key-value entry. */
|
|
735
|
+
export interface ValueRecord {
|
|
736
|
+
/** The namespace's id in the environment, for example `ratelimit`. */
|
|
737
|
+
namespaceId?: string;
|
|
738
|
+
/** The key. */
|
|
739
|
+
key?: string;
|
|
740
|
+
/** The bytes, base64. */
|
|
741
|
+
value?: string;
|
|
742
|
+
/** `sha256:<hex>` of the value. */
|
|
743
|
+
sha256?: string;
|
|
744
|
+
/** The version, increasing per key. */
|
|
745
|
+
version?: string;
|
|
746
|
+
/** Expiry in Unix milliseconds; zero never expires. */
|
|
747
|
+
expiresAtUnixMs?: string;
|
|
748
|
+
/** When this version was written, in Unix milliseconds. */
|
|
749
|
+
updatedAtUnixMs?: string;
|
|
750
|
+
}
|
|
751
|
+
/** ConnectionProfile is which Postgres path a connection takes. */
|
|
752
|
+
export type ConnectionProfile = 'pooled' | 'direct' | (string & {});
|
|
753
|
+
/** DatastoreState is whether a datastore is serving. */
|
|
754
|
+
export type DatastoreState = 'provisioning' | 'active' | 'idle' | 'moving' | 'deleting' | (string & {});
|
|
755
|
+
/**
|
|
756
|
+
* DataPlaneService is the data plane of Sylphx Data: object bytes and
|
|
757
|
+
* key-value entries in an environment's buckets and KV namespaces. It is
|
|
758
|
+
* served by Data itself at its origin, not by the Resource API, and is called
|
|
759
|
+
* with the environment's secret key (`SYLPHX_API_KEY`); the key's org,
|
|
760
|
+
* project, and environment are the tenant. Every call carries a new
|
|
761
|
+
* `Sylphx-Effect-Id`, which the SDK sends and reuses on retries.
|
|
762
|
+
*
|
|
763
|
+
* The buckets and namespaces themselves are Resources of DataService. The
|
|
764
|
+
* messages here are Data's wire format
|
|
765
|
+
* (`services/data/proto/sylphx/data/v1/data.proto`), field for field; Data
|
|
766
|
+
* answers ProtoJSON (camelCase names, 64-bit integers and bytes as strings).
|
|
767
|
+
*
|
|
768
|
+
* Namespace of Sylphx Data on `Sylphx`.
|
|
769
|
+
*/
|
|
770
|
+
export declare class DataApi {
|
|
771
|
+
/** The `objects` collection. */
|
|
772
|
+
readonly objects: ObjectsCollection;
|
|
773
|
+
/** The `kv` collection. */
|
|
774
|
+
readonly kv: KvCollection;
|
|
775
|
+
/** The `databases` collection. */
|
|
776
|
+
readonly databases: DatabasesCollection;
|
|
777
|
+
/** The `kv_namespaces` collection. */
|
|
778
|
+
readonly kvNamespaces: KvNamespacesCollection;
|
|
779
|
+
/** The `buckets` collection. */
|
|
780
|
+
readonly buckets: BucketsCollection;
|
|
781
|
+
/** The `search_indexes` collection. */
|
|
782
|
+
readonly searchIndexes: SearchIndexesCollection;
|
|
783
|
+
constructor(client: runtime.Client);
|
|
784
|
+
}
|
|
785
|
+
/** `objects` of Sylphx Data: served at `https://api.data.sylphx.com`. */
|
|
786
|
+
export declare class ObjectsCollection {
|
|
787
|
+
private readonly client;
|
|
788
|
+
constructor(client: runtime.Client);
|
|
789
|
+
/**
|
|
790
|
+
* Writes an object's bytes, replacing the current version. `body` is the
|
|
791
|
+
* base64 of the bytes.
|
|
792
|
+
*
|
|
793
|
+
* `PUT /v1/objects/{bucket_id}/{key=**}` · permission `data:write` · effect `write`
|
|
794
|
+
*
|
|
795
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
796
|
+
*/
|
|
797
|
+
put(request: PutObjectRequest): Promise<PutObjectResponse>;
|
|
798
|
+
/**
|
|
799
|
+
* Reads an object and its bytes (`body`, base64).
|
|
800
|
+
*
|
|
801
|
+
* `GET /v1/objects/{bucket_id}/{key=**}` · permission `data:read` · effect `read`
|
|
802
|
+
*
|
|
803
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
804
|
+
*/
|
|
805
|
+
get(request: GetObjectRequest): Promise<GetObjectResponse>;
|
|
806
|
+
/**
|
|
807
|
+
* Lists a bucket's objects in key order.
|
|
808
|
+
*
|
|
809
|
+
* `GET /v1/objects/{bucket_id}` · permission `data:read` · effect `read`
|
|
810
|
+
*
|
|
811
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
812
|
+
*/
|
|
813
|
+
list(request: ListObjectsRequest): Promise<ListObjectsResponse>;
|
|
814
|
+
/**
|
|
815
|
+
* Deletes an object's current version (history is kept).
|
|
816
|
+
*
|
|
817
|
+
* `DELETE /v1/objects/{bucket_id}/{key=**}` · permission `data:write` · effect `destructive`
|
|
818
|
+
*
|
|
819
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
820
|
+
*/
|
|
821
|
+
delete(request: DeleteObjectRequest): Promise<DeleteObjectResponse>;
|
|
822
|
+
}
|
|
823
|
+
/** `kv` of Sylphx Data: served at `https://api.data.sylphx.com`. */
|
|
824
|
+
export declare class KvCollection {
|
|
825
|
+
private readonly client;
|
|
826
|
+
constructor(client: runtime.Client);
|
|
827
|
+
/**
|
|
828
|
+
* Writes a value. Without `ttl_seconds` the namespace default applies; zero
|
|
829
|
+
* means no expiry.
|
|
830
|
+
*
|
|
831
|
+
* `PUT /v1/kv/{namespace_id}/{key=**}` · permission `data:write` · effect `write`
|
|
832
|
+
*
|
|
833
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
834
|
+
*/
|
|
835
|
+
put(request: PutValueRequest): Promise<PutValueResponse>;
|
|
836
|
+
/**
|
|
837
|
+
* Reads a value.
|
|
838
|
+
*
|
|
839
|
+
* `GET /v1/kv/{namespace_id}/{key=**}` · permission `data:read` · effect `read`
|
|
840
|
+
*
|
|
841
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
842
|
+
*/
|
|
843
|
+
get(request: GetValueRequest): Promise<GetValueResponse>;
|
|
844
|
+
/**
|
|
845
|
+
* Lists a namespace's values in key order.
|
|
846
|
+
*
|
|
847
|
+
* `GET /v1/kv/{namespace_id}` · permission `data:read` · effect `read`
|
|
848
|
+
*
|
|
849
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
850
|
+
*/
|
|
851
|
+
list(request: ListValuesRequest): Promise<ListValuesResponse>;
|
|
852
|
+
/**
|
|
853
|
+
* Deletes a value.
|
|
854
|
+
*
|
|
855
|
+
* `DELETE /v1/kv/{namespace_id}/{key=**}` · permission `data:write` · effect `destructive`
|
|
856
|
+
*
|
|
857
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
858
|
+
*/
|
|
859
|
+
delete(request: DeleteValueRequest): Promise<DeleteValueResponse>;
|
|
860
|
+
/**
|
|
861
|
+
* Adds `delta` (default 1) to an integer value, creating it at zero.
|
|
862
|
+
*
|
|
863
|
+
* `POST /v1/kv-increments` · permission `data:write` · effect `write`
|
|
864
|
+
*
|
|
865
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`.
|
|
866
|
+
*/
|
|
867
|
+
increment(request: IncrementValueRequest): Promise<IncrementValueResponse>;
|
|
868
|
+
}
|
|
869
|
+
/** `databases` of Sylphx Data: Resource type `data.sylphx.com/Database`. */
|
|
870
|
+
export declare class DatabasesCollection {
|
|
871
|
+
private readonly client;
|
|
872
|
+
constructor(client: runtime.Client);
|
|
873
|
+
/**
|
|
874
|
+
* Gets a database.
|
|
875
|
+
*
|
|
876
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/databases/*}` · permission `data:read` · effect `read`
|
|
877
|
+
*
|
|
878
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
879
|
+
*/
|
|
880
|
+
get(request: GetDatabaseRequest): Promise<Database>;
|
|
881
|
+
/**
|
|
882
|
+
* Lists databases in a environment.
|
|
883
|
+
*
|
|
884
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/databases` · permission `data:read` · effect `read`
|
|
885
|
+
*
|
|
886
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
887
|
+
*/
|
|
888
|
+
list(request: ListDatabasesRequest): Promise<ListDatabasesResponse>;
|
|
889
|
+
/** Every item of every page of `list`. */
|
|
890
|
+
listAll(request: ListDatabasesRequest): AsyncGenerator<Database>;
|
|
891
|
+
/**
|
|
892
|
+
* Creates a database. The Operation is done when the controller settles it.
|
|
893
|
+
*
|
|
894
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/databases` · permission `data:write` · effect `write`
|
|
895
|
+
*
|
|
896
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
897
|
+
*/
|
|
898
|
+
create(request: CreateDatabaseRequest): Promise<runtime.Operation<Database>>;
|
|
899
|
+
/**
|
|
900
|
+
* Updates a database.
|
|
901
|
+
*
|
|
902
|
+
* `PATCH /v1/{database.name=orgs/*\/projects/*\/envs/*\/databases/*}` · permission `data:write` · effect `write`
|
|
903
|
+
*
|
|
904
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
905
|
+
*/
|
|
906
|
+
update(request: UpdateDatabaseRequest): Promise<runtime.Operation<Database>>;
|
|
907
|
+
/**
|
|
908
|
+
* Deletes a database. Fails while `spec.deletion_protection` is set.
|
|
909
|
+
*
|
|
910
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/databases/*}` · permission `data:write` · effect `destructive`
|
|
911
|
+
*
|
|
912
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `DELETION_PROTECTED`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
913
|
+
*/
|
|
914
|
+
delete(request: DeleteDatabaseRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
915
|
+
/**
|
|
916
|
+
* Returns how to connect to the database: its endpoint and its own engine
|
|
917
|
+
* credentials. The credentials are not API keys and are returned only here.
|
|
918
|
+
*
|
|
919
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/databases/*}:connect` · permission `data:write` · effect `read`
|
|
920
|
+
*
|
|
921
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`.
|
|
922
|
+
*/
|
|
923
|
+
connect(request: ConnectDatabaseRequest): Promise<ConnectDatabaseResponse>;
|
|
924
|
+
/**
|
|
925
|
+
* Replaces the database's engine credentials; the old ones stop working once
|
|
926
|
+
* the new ones are served.
|
|
927
|
+
*
|
|
928
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/databases/*}:rotateCredentials` · permission `data:write` · effect `write`
|
|
929
|
+
*
|
|
930
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
931
|
+
*/
|
|
932
|
+
rotateCredentials(request: RotateDatabaseCredentialsRequest): Promise<runtime.Operation<Database>>;
|
|
933
|
+
/**
|
|
934
|
+
* Restores the database in place to a point in time inside its retention
|
|
935
|
+
* window; the database is unavailable while it restores.
|
|
936
|
+
*
|
|
937
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/databases/*}:restore` · permission `data:write` · effect `destructive`
|
|
938
|
+
*
|
|
939
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
940
|
+
*/
|
|
941
|
+
restore(request: RestoreDatabaseRequest): Promise<runtime.Operation<Database>>;
|
|
942
|
+
}
|
|
943
|
+
/** `kv_namespaces` of Sylphx Data: Resource type `data.sylphx.com/KvNamespace`. */
|
|
944
|
+
export declare class KvNamespacesCollection {
|
|
945
|
+
private readonly client;
|
|
946
|
+
constructor(client: runtime.Client);
|
|
947
|
+
/**
|
|
948
|
+
* Gets a kv namespace.
|
|
949
|
+
*
|
|
950
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/kv_namespaces/*}` · permission `data:read` · effect `read`
|
|
951
|
+
*
|
|
952
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
953
|
+
*/
|
|
954
|
+
get(request: GetKvNamespaceRequest): Promise<KvNamespace>;
|
|
955
|
+
/**
|
|
956
|
+
* Lists kv namespaces in a environment.
|
|
957
|
+
*
|
|
958
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/kv_namespaces` · permission `data:read` · effect `read`
|
|
959
|
+
*
|
|
960
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
961
|
+
*/
|
|
962
|
+
list(request: ListKvNamespacesRequest): Promise<ListKvNamespacesResponse>;
|
|
963
|
+
/** Every item of every page of `list`. */
|
|
964
|
+
listAll(request: ListKvNamespacesRequest): AsyncGenerator<KvNamespace>;
|
|
965
|
+
/**
|
|
966
|
+
* Creates a kv namespace. The Operation is done when the controller settles
|
|
967
|
+
* it.
|
|
968
|
+
*
|
|
969
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/kv_namespaces` · permission `data:write` · effect `write`
|
|
970
|
+
*
|
|
971
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
972
|
+
*/
|
|
973
|
+
create(request: CreateKvNamespaceRequest): Promise<runtime.Operation<KvNamespace>>;
|
|
974
|
+
/**
|
|
975
|
+
* Updates a kv namespace.
|
|
976
|
+
*
|
|
977
|
+
* `PATCH /v1/{kv_namespace.name=orgs/*\/projects/*\/envs/*\/kv_namespaces/*}` · permission `data:write` · effect `write`
|
|
978
|
+
*
|
|
979
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
980
|
+
*/
|
|
981
|
+
update(request: UpdateKvNamespaceRequest): Promise<runtime.Operation<KvNamespace>>;
|
|
982
|
+
/**
|
|
983
|
+
* Deletes a kv namespace. Fails while `spec.deletion_protection` is set.
|
|
984
|
+
*
|
|
985
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/kv_namespaces/*}` · permission `data:write` · effect `destructive`
|
|
986
|
+
*
|
|
987
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `DELETION_PROTECTED`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
988
|
+
*/
|
|
989
|
+
delete(request: DeleteKvNamespaceRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
990
|
+
/**
|
|
991
|
+
* Returns how to connect to the KV namespace: its endpoint and its own
|
|
992
|
+
* engine credentials. The credentials are not API keys and are returned only
|
|
993
|
+
* here.
|
|
994
|
+
*
|
|
995
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/kv_namespaces/*}:connect` · permission `data:write` · effect `read`
|
|
996
|
+
*
|
|
997
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`.
|
|
998
|
+
*/
|
|
999
|
+
connect(request: ConnectKvNamespaceRequest): Promise<ConnectKvNamespaceResponse>;
|
|
1000
|
+
/**
|
|
1001
|
+
* Replaces the KV namespace's engine credentials; the old ones stop working
|
|
1002
|
+
* once the new ones are served.
|
|
1003
|
+
*
|
|
1004
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/kv_namespaces/*}:rotateCredentials` · permission `data:write` · effect `write`
|
|
1005
|
+
*
|
|
1006
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1007
|
+
*/
|
|
1008
|
+
rotateCredentials(request: RotateKvNamespaceCredentialsRequest): Promise<runtime.Operation<KvNamespace>>;
|
|
1009
|
+
}
|
|
1010
|
+
/** `buckets` of Sylphx Data: Resource type `data.sylphx.com/Bucket`. */
|
|
1011
|
+
export declare class BucketsCollection {
|
|
1012
|
+
private readonly client;
|
|
1013
|
+
constructor(client: runtime.Client);
|
|
1014
|
+
/**
|
|
1015
|
+
* Gets a bucket.
|
|
1016
|
+
*
|
|
1017
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/buckets/*}` · permission `data:read` · effect `read`
|
|
1018
|
+
*
|
|
1019
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1020
|
+
*/
|
|
1021
|
+
get(request: GetBucketRequest): Promise<Bucket>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Lists buckets in a environment.
|
|
1024
|
+
*
|
|
1025
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/buckets` · permission `data:read` · effect `read`
|
|
1026
|
+
*
|
|
1027
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1028
|
+
*/
|
|
1029
|
+
list(request: ListBucketsRequest): Promise<ListBucketsResponse>;
|
|
1030
|
+
/** Every item of every page of `list`. */
|
|
1031
|
+
listAll(request: ListBucketsRequest): AsyncGenerator<Bucket>;
|
|
1032
|
+
/**
|
|
1033
|
+
* Creates a bucket. The Operation is done when the controller settles it.
|
|
1034
|
+
*
|
|
1035
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/buckets` · permission `data:write` · effect `write`
|
|
1036
|
+
*
|
|
1037
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
1038
|
+
*/
|
|
1039
|
+
create(request: CreateBucketRequest): Promise<runtime.Operation<Bucket>>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Updates a bucket.
|
|
1042
|
+
*
|
|
1043
|
+
* `PATCH /v1/{bucket.name=orgs/*\/projects/*\/envs/*\/buckets/*}` · permission `data:write` · effect `write`
|
|
1044
|
+
*
|
|
1045
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1046
|
+
*/
|
|
1047
|
+
update(request: UpdateBucketRequest): Promise<runtime.Operation<Bucket>>;
|
|
1048
|
+
/**
|
|
1049
|
+
* Deletes a bucket. Fails while `spec.deletion_protection` is set.
|
|
1050
|
+
*
|
|
1051
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/buckets/*}` · permission `data:write` · effect `destructive`
|
|
1052
|
+
*
|
|
1053
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `DELETION_PROTECTED`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1054
|
+
*/
|
|
1055
|
+
delete(request: DeleteBucketRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Returns how to connect to the bucket: its endpoint and its own engine
|
|
1058
|
+
* credentials. The credentials are not API keys and are returned only here.
|
|
1059
|
+
*
|
|
1060
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/buckets/*}:connect` · permission `data:write` · effect `read`
|
|
1061
|
+
*
|
|
1062
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`.
|
|
1063
|
+
*/
|
|
1064
|
+
connect(request: ConnectBucketRequest): Promise<ConnectBucketResponse>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Replaces the bucket's engine credentials; the old ones stop working once
|
|
1067
|
+
* the new ones are served.
|
|
1068
|
+
*
|
|
1069
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/buckets/*}:rotateCredentials` · permission `data:write` · effect `write`
|
|
1070
|
+
*
|
|
1071
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1072
|
+
*/
|
|
1073
|
+
rotateCredentials(request: RotateBucketCredentialsRequest): Promise<runtime.Operation<Bucket>>;
|
|
1074
|
+
}
|
|
1075
|
+
/** `search_indexes` of Sylphx Data: Resource type `data.sylphx.com/SearchIndex`. */
|
|
1076
|
+
export declare class SearchIndexesCollection {
|
|
1077
|
+
private readonly client;
|
|
1078
|
+
constructor(client: runtime.Client);
|
|
1079
|
+
/**
|
|
1080
|
+
* Gets a search index.
|
|
1081
|
+
*
|
|
1082
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/search_indexes/*}` · permission `data:read` · effect `read`
|
|
1083
|
+
*
|
|
1084
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1085
|
+
*/
|
|
1086
|
+
get(request: GetSearchIndexRequest): Promise<SearchIndex>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Lists search indexs in a environment.
|
|
1089
|
+
*
|
|
1090
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/search_indexes` · permission `data:read` · effect `read`
|
|
1091
|
+
*
|
|
1092
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1093
|
+
*/
|
|
1094
|
+
list(request: ListSearchIndexesRequest): Promise<ListSearchIndexesResponse>;
|
|
1095
|
+
/** Every item of every page of `list`. */
|
|
1096
|
+
listAll(request: ListSearchIndexesRequest): AsyncGenerator<SearchIndex>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Creates a search index. The Operation is done when the controller settles
|
|
1099
|
+
* it.
|
|
1100
|
+
*
|
|
1101
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/search_indexes` · permission `data:write` · effect `write`
|
|
1102
|
+
*
|
|
1103
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
1104
|
+
*/
|
|
1105
|
+
create(request: CreateSearchIndexRequest): Promise<runtime.Operation<SearchIndex>>;
|
|
1106
|
+
/**
|
|
1107
|
+
* Updates a search index.
|
|
1108
|
+
*
|
|
1109
|
+
* `PATCH /v1/{search_index.name=orgs/*\/projects/*\/envs/*\/search_indexes/*}` · permission `data:write` · effect `write`
|
|
1110
|
+
*
|
|
1111
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1112
|
+
*/
|
|
1113
|
+
update(request: UpdateSearchIndexRequest): Promise<runtime.Operation<SearchIndex>>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Deletes a search index. Fails while `spec.deletion_protection` is set.
|
|
1116
|
+
*
|
|
1117
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/search_indexes/*}` · permission `data:write` · effect `destructive`
|
|
1118
|
+
*
|
|
1119
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `DELETION_PROTECTED`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1120
|
+
*/
|
|
1121
|
+
delete(request: DeleteSearchIndexRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Returns how to connect to the search index: its endpoint and its own
|
|
1124
|
+
* engine credentials. The credentials are not API keys and are returned only
|
|
1125
|
+
* here.
|
|
1126
|
+
*
|
|
1127
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/search_indexes/*}:connect` · permission `data:write` · effect `read`
|
|
1128
|
+
*
|
|
1129
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`.
|
|
1130
|
+
*/
|
|
1131
|
+
connect(request: ConnectSearchIndexRequest): Promise<ConnectSearchIndexResponse>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Replaces the search index's engine credentials; the old ones stop working
|
|
1134
|
+
* once the new ones are served.
|
|
1135
|
+
*
|
|
1136
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/search_indexes/*}:rotateCredentials` · permission `data:write` · effect `write`
|
|
1137
|
+
*
|
|
1138
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1139
|
+
*/
|
|
1140
|
+
rotateCredentials(request: RotateSearchIndexCredentialsRequest): Promise<runtime.Operation<SearchIndex>>;
|
|
1141
|
+
}
|