@deepraxis/sdk 0.1.1-dev.fb97f26 → 0.1.1-dev.fc4f4d7
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/METHODS.md +149 -1
- package/dist/core/deprecation.d.ts +11 -0
- package/dist/core/deprecation.js +20 -0
- package/dist/core/transport.d.ts +4 -0
- package/dist/core/transport.js +3 -0
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +384 -22
- package/dist/generated/sdk.gen.js +986 -100
- package/dist/generated/types.gen.d.ts +2688 -124
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/operations.generated.js +2043 -68
- package/dist/resources.generated.d.ts +197 -0
- package/dist/resources.generated.js +247 -22
- package/package.json +1 -1
|
@@ -15490,7 +15490,7 @@ export type CutTransaction = {
|
|
|
15490
15490
|
*/
|
|
15491
15491
|
time: string;
|
|
15492
15492
|
};
|
|
15493
|
-
export type
|
|
15493
|
+
export type DatabaseCreateTableDatabaseInput = {
|
|
15494
15494
|
/**
|
|
15495
15495
|
* Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
|
|
15496
15496
|
*/
|
|
@@ -15517,6 +15517,10 @@ export type DatabaseDatabase = {
|
|
|
15517
15517
|
labels: {
|
|
15518
15518
|
[key: string]: string;
|
|
15519
15519
|
};
|
|
15520
|
+
/**
|
|
15521
|
+
* Which store the database is, fixed at creation by the path it was created under: table (/database/v1/table, tables and rows) or kv (/database/v1/kv, keys and values); informational and read only.
|
|
15522
|
+
*/
|
|
15523
|
+
readonly kind: 'table' | 'kv';
|
|
15520
15524
|
/**
|
|
15521
15525
|
* Lifecycle state of the database. Table, field and row calls work only while it is active.
|
|
15522
15526
|
*/
|
|
@@ -15547,7 +15551,7 @@ export type DatabaseDatabase = {
|
|
|
15547
15551
|
purge_at: string | null;
|
|
15548
15552
|
};
|
|
15549
15553
|
export type DatabaseDatabaseError = {
|
|
15550
|
-
code: 'SINGULAR_MISMATCH' | 'AMBIGUOUS_EMBED' | 'EMBED_NOT_FOUND' | 'INVALID_PREFERENCE' | 'QUERY_CANCELED' | 'RANGE_NOT_SATISFIABLE' | 'NOT_ACCEPTABLE' | 'OPERATOR_TYPE_MISMATCH' | 'DATABASE_NOT_FOUND' | 'TABLE_NOT_FOUND' | 'FIELD_NOT_FOUND' | 'VALIDATION_FAILED' | 'UNIQUE_VIOLATION' | 'REFERENCE_RESTRICT' | 'FIELD_TYPE_IMMUTABLE' | 'LIMIT_EXCEEDED' | 'UNSUPPORTED' | 'INVALID_PARAMS' | 'DATABASE_INVALID_STATE' | 'CAPACITY' | 'NOT_IMPLEMENTED' | 'BINDING_READ_ONLY';
|
|
15554
|
+
code: 'SINGULAR_MISMATCH' | 'AMBIGUOUS_EMBED' | 'EMBED_NOT_FOUND' | 'INVALID_PREFERENCE' | 'QUERY_CANCELED' | 'RANGE_NOT_SATISFIABLE' | 'NOT_ACCEPTABLE' | 'OPERATOR_TYPE_MISMATCH' | 'DATABASE_NOT_FOUND' | 'TABLE_NOT_FOUND' | 'FIELD_NOT_FOUND' | 'VALIDATION_FAILED' | 'UNIQUE_VIOLATION' | 'REFERENCE_RESTRICT' | 'FIELD_TYPE_IMMUTABLE' | 'LIMIT_EXCEEDED' | 'UNSUPPORTED' | 'INVALID_PARAMS' | 'DATABASE_INVALID_STATE' | 'CAPACITY' | 'NOT_IMPLEMENTED' | 'BINDING_READ_ONLY' | 'DATABASE_KIND_MISMATCH' | 'KEY_NOT_FOUND' | 'KV_COMMAND_ERROR';
|
|
15551
15555
|
message: string;
|
|
15552
15556
|
details: string | null;
|
|
15553
15557
|
hint: string | null;
|
|
@@ -15566,6 +15570,18 @@ export type DatabasePage = {
|
|
|
15566
15570
|
*/
|
|
15567
15571
|
next_cursor: string | null;
|
|
15568
15572
|
};
|
|
15573
|
+
export type DatabaseCreateKvDatabaseInput = {
|
|
15574
|
+
/**
|
|
15575
|
+
* Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
|
|
15576
|
+
*/
|
|
15577
|
+
name: string;
|
|
15578
|
+
/**
|
|
15579
|
+
* Optional string tags to attach, at most 64. Each key starts with a lowercase letter and may use up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -. List calls filter on exact key and value pairs.
|
|
15580
|
+
*/
|
|
15581
|
+
labels?: {
|
|
15582
|
+
[key: string]: string;
|
|
15583
|
+
};
|
|
15584
|
+
};
|
|
15569
15585
|
export type DatabaseUpdateDatabaseInput = {
|
|
15570
15586
|
/**
|
|
15571
15587
|
* New display name, 1–64 visible characters after trimming. Omit it to keep the current name.
|
|
@@ -15838,6 +15854,130 @@ export type DatabasePostgrestError = {
|
|
|
15838
15854
|
details: string | null;
|
|
15839
15855
|
hint: string | null;
|
|
15840
15856
|
};
|
|
15857
|
+
export type DatabaseKeySummary = {
|
|
15858
|
+
/**
|
|
15859
|
+
* The key name; pass it percent-encoded as the key path parameter of the key operations.
|
|
15860
|
+
*/
|
|
15861
|
+
key: string;
|
|
15862
|
+
/**
|
|
15863
|
+
* Value type stored under the key.
|
|
15864
|
+
*/
|
|
15865
|
+
type: 'string' | 'hash' | 'list' | 'set' | 'zset';
|
|
15866
|
+
/**
|
|
15867
|
+
* Time to live in milliseconds, remaining until the key expires; null when the key never expires.
|
|
15868
|
+
*/
|
|
15869
|
+
ttl_ms: number | null;
|
|
15870
|
+
/**
|
|
15871
|
+
* Stored size of the value in bytes.
|
|
15872
|
+
*/
|
|
15873
|
+
size_bytes: number;
|
|
15874
|
+
};
|
|
15875
|
+
export type DatabaseKey = {
|
|
15876
|
+
/**
|
|
15877
|
+
* The key name.
|
|
15878
|
+
*/
|
|
15879
|
+
key: string;
|
|
15880
|
+
/**
|
|
15881
|
+
* Value type stored under the key; it decides the shape of value.
|
|
15882
|
+
*/
|
|
15883
|
+
type: 'string' | 'hash' | 'list' | 'set' | 'zset';
|
|
15884
|
+
/**
|
|
15885
|
+
* Time to live in milliseconds, remaining until the key expires; null when the key never expires.
|
|
15886
|
+
*/
|
|
15887
|
+
ttl_ms: number | null;
|
|
15888
|
+
/**
|
|
15889
|
+
* Stored size of the whole value in bytes, not of this page.
|
|
15890
|
+
*/
|
|
15891
|
+
size_bytes: number;
|
|
15892
|
+
/**
|
|
15893
|
+
* The value in the shape of type: a string; hash as [{field, value}]; list and set as a string array; zset as [{member, score}]. For a container this is one page; read the rest with next_cursor.
|
|
15894
|
+
*/
|
|
15895
|
+
value: string | Array<string | {
|
|
15896
|
+
/**
|
|
15897
|
+
* Hash field name, unique within the value.
|
|
15898
|
+
*/
|
|
15899
|
+
field?: string;
|
|
15900
|
+
/**
|
|
15901
|
+
* Hash field value.
|
|
15902
|
+
*/
|
|
15903
|
+
value?: string;
|
|
15904
|
+
/**
|
|
15905
|
+
* Sorted-set member, unique within the value.
|
|
15906
|
+
*/
|
|
15907
|
+
member?: string;
|
|
15908
|
+
/**
|
|
15909
|
+
* Sorted-set score, a finite number.
|
|
15910
|
+
*/
|
|
15911
|
+
score?: number;
|
|
15912
|
+
}>;
|
|
15913
|
+
/**
|
|
15914
|
+
* Cursor for the next page of a container value, passed back unchanged as cursor; null for a string value and on the last page.
|
|
15915
|
+
*/
|
|
15916
|
+
next_cursor: string | null;
|
|
15917
|
+
};
|
|
15918
|
+
export type DatabaseSetKeyInput = {
|
|
15919
|
+
/**
|
|
15920
|
+
* Type of the new value; it becomes the key's type and replaces whatever was stored under it.
|
|
15921
|
+
*/
|
|
15922
|
+
type: 'string' | 'hash' | 'list' | 'set' | 'zset';
|
|
15923
|
+
/**
|
|
15924
|
+
* The whole new value in the shape of type: a string; hash as [{field, value}]; list and set as a non-empty string array; zset as [{member, score}]. At most 1 MiB.
|
|
15925
|
+
*/
|
|
15926
|
+
value: string | Array<string | {
|
|
15927
|
+
/**
|
|
15928
|
+
* Hash field name, unique within the value.
|
|
15929
|
+
*/
|
|
15930
|
+
field?: string;
|
|
15931
|
+
/**
|
|
15932
|
+
* Hash field value.
|
|
15933
|
+
*/
|
|
15934
|
+
value?: string;
|
|
15935
|
+
/**
|
|
15936
|
+
* Sorted-set member, unique within the value.
|
|
15937
|
+
*/
|
|
15938
|
+
member?: string;
|
|
15939
|
+
/**
|
|
15940
|
+
* Sorted-set score, a finite number.
|
|
15941
|
+
*/
|
|
15942
|
+
score?: number;
|
|
15943
|
+
}>;
|
|
15944
|
+
/**
|
|
15945
|
+
* Omit to keep the key's existing TTL; a positive integer sets a new TTL in milliseconds; null makes the key permanent.
|
|
15946
|
+
*/
|
|
15947
|
+
ttl_ms?: number | null;
|
|
15948
|
+
};
|
|
15949
|
+
export type DatabaseUpdateKeyInput = {
|
|
15950
|
+
/**
|
|
15951
|
+
* The field being changed; only ttl_ms is writable and it must be stated.
|
|
15952
|
+
*/
|
|
15953
|
+
update_mask: 'ttl_ms';
|
|
15954
|
+
/**
|
|
15955
|
+
* A positive integer sets the TTL in milliseconds from now; null removes the TTL so the key never expires.
|
|
15956
|
+
*/
|
|
15957
|
+
ttl_ms: number | null;
|
|
15958
|
+
};
|
|
15959
|
+
export type DatabaseExecuteCommandInput = {
|
|
15960
|
+
/**
|
|
15961
|
+
* The Redis command name followed by its arguments, every element a string, for example ["INCR","counter"] or ["LRANGE","queue","0","9"]; one command per call.
|
|
15962
|
+
*/
|
|
15963
|
+
command: Array<string>;
|
|
15964
|
+
};
|
|
15965
|
+
export type DatabaseCreateDatabaseInput = {
|
|
15966
|
+
/**
|
|
15967
|
+
* Display name for the database: 1–64 visible characters after trimming; control characters are rejected. It is not an identifier, so later calls still use the returned id.
|
|
15968
|
+
*/
|
|
15969
|
+
name: string;
|
|
15970
|
+
/**
|
|
15971
|
+
* Optional string tags to attach, at most 64. Each key starts with a lowercase letter and may use up to 63 characters of a-z 0-9 _ -; each value is up to 63 characters of a-z 0-9 _ -. List calls filter on exact key and value pairs.
|
|
15972
|
+
*/
|
|
15973
|
+
labels?: {
|
|
15974
|
+
[key: string]: string;
|
|
15975
|
+
};
|
|
15976
|
+
/**
|
|
15977
|
+
* What the database stores; omitted means table. It cannot be changed after creation, and an update that carries kind returns 400 INVALID_PARAMS. Creating kv in an organization that has not been opened for it returns 400 INVALID_PARAMS: kind kv is not available.
|
|
15978
|
+
*/
|
|
15979
|
+
kind?: 'table' | 'kv';
|
|
15980
|
+
};
|
|
15841
15981
|
/**
|
|
15842
15982
|
* The test catalog discovered at one commit — what the discovery found and how it differs from the catalog published before it.
|
|
15843
15983
|
*/
|
|
@@ -45237,7 +45377,7 @@ export type DevopsProjectDeploySettings = {
|
|
|
45237
45377
|
*/
|
|
45238
45378
|
export type DevopsProjectReleaseSettings = {
|
|
45239
45379
|
/**
|
|
45240
|
-
* Which engine runs a promotion of this project.
|
|
45380
|
+
* Which engine runs a promotion of this project. workflow runs each promotion as a Cloudflare Workflow instance (ADR-190), with the per-target locks of one TargetLocks object per environment, so an express on one service never waits for a train or an observation on other services. queue, the per-environment EnvironmentQueue (ADR-073), is being retired: writing it is refused with INVALID_ARGUMENT, and it remains only the default of a project that never wrote this setting until the default moves to workflow. The engine is recorded on each promotion as releaseEngine; conclude, cancel and retry read that record, so changing the setting never moves a promotion already in flight. Not supported yet on workflow: an environment that requires approval (create is refused with ENGINE_UNSUPPORTED); approvals return as a step of that engine. Retrying a halted workflow promotion stops its run first and answers PROMOTION_RUN_STILL_RUNNING until the halt is closed as a partial deploy.
|
|
45241
45381
|
*/
|
|
45242
45382
|
engine?: 'queue' | 'workflow';
|
|
45243
45383
|
};
|
|
@@ -48111,6 +48251,50 @@ export type AutomationJsonValueWritable = null | string | number | boolean | Aut
|
|
|
48111
48251
|
export type AutomationJsonObjectWritable = {
|
|
48112
48252
|
[key: string]: AutomationJsonValueWritable;
|
|
48113
48253
|
};
|
|
48254
|
+
export type DatabaseDatabaseWritable = {
|
|
48255
|
+
/**
|
|
48256
|
+
* Database identifier, prefixed db_. Pass it as database_id in every database, table, field, rows and events path.
|
|
48257
|
+
*/
|
|
48258
|
+
id: string;
|
|
48259
|
+
/**
|
|
48260
|
+
* Display name given at creation or by the last update; it is not an identifier.
|
|
48261
|
+
*/
|
|
48262
|
+
name: string;
|
|
48263
|
+
/**
|
|
48264
|
+
* String tags attached to the database, as key and value pairs; empty object when none.
|
|
48265
|
+
*/
|
|
48266
|
+
labels: {
|
|
48267
|
+
[key: string]: string;
|
|
48268
|
+
};
|
|
48269
|
+
/**
|
|
48270
|
+
* Lifecycle state of the database. Table, field and row calls work only while it is active.
|
|
48271
|
+
*/
|
|
48272
|
+
status: 'provisioning' | 'active' | 'deleting' | 'deleted' | 'failed';
|
|
48273
|
+
/**
|
|
48274
|
+
* Number of tables currently in the database, at most 50; refreshed when the schema changes.
|
|
48275
|
+
*/
|
|
48276
|
+
table_count: number;
|
|
48277
|
+
/**
|
|
48278
|
+
* Storage size; row writes and GET refresh usage at most once per five seconds, schema changes refresh immediately.
|
|
48279
|
+
*/
|
|
48280
|
+
size_bytes: number;
|
|
48281
|
+
/**
|
|
48282
|
+
* Time the database was created, as an RFC 3339 UTC timestamp.
|
|
48283
|
+
*/
|
|
48284
|
+
created_at: string;
|
|
48285
|
+
/**
|
|
48286
|
+
* Time of the last change to the name, labels, status or usage snapshot, as an RFC 3339 UTC timestamp.
|
|
48287
|
+
*/
|
|
48288
|
+
updated_at: string;
|
|
48289
|
+
/**
|
|
48290
|
+
* Time the database entered the deleting state, as an RFC 3339 UTC timestamp; null while it is active and again after a restore.
|
|
48291
|
+
*/
|
|
48292
|
+
deleted_at: string | null;
|
|
48293
|
+
/**
|
|
48294
|
+
* Permanent deletion deadline for deleting databases; null otherwise.
|
|
48295
|
+
*/
|
|
48296
|
+
purge_at: string | null;
|
|
48297
|
+
};
|
|
48114
48298
|
export type KnowledgeNativeSearchPageWritable = {
|
|
48115
48299
|
/**
|
|
48116
48300
|
* Object discriminator; vector_store.search_results.page identifies a search result page.
|
|
@@ -66112,7 +66296,7 @@ export type BrowserRequestHandoffData = {
|
|
|
66112
66296
|
*/
|
|
66113
66297
|
message: string;
|
|
66114
66298
|
/**
|
|
66115
|
-
* 接管请求有效时长,单位为毫秒;必须大于 0
|
|
66299
|
+
* 接管请求有效时长,单位为毫秒;必须大于 0,可含小数。超过 3600000(60 分钟)的按 60 分钟算,返回事件里的到期时刻就是实际值。接管未完成、未到期期间,会话不按空闲回收;接管结束后重新开始计空闲。
|
|
66116
66300
|
*/
|
|
66117
66301
|
timeoutMs?: number;
|
|
66118
66302
|
};
|
|
@@ -73731,6 +73915,467 @@ export type ExportOrganizationChargesResponses = {
|
|
|
73731
73915
|
};
|
|
73732
73916
|
};
|
|
73733
73917
|
export type ExportOrganizationChargesResponse = ExportOrganizationChargesResponses[keyof ExportOrganizationChargesResponses];
|
|
73918
|
+
export type GetOrganizationNotificationsInboxData = {
|
|
73919
|
+
body?: never;
|
|
73920
|
+
path?: never;
|
|
73921
|
+
query?: never;
|
|
73922
|
+
url: '/organization/v1/notifications/inbox';
|
|
73923
|
+
};
|
|
73924
|
+
export type GetOrganizationNotificationsInboxErrors = {
|
|
73925
|
+
/**
|
|
73926
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
73927
|
+
*/
|
|
73928
|
+
401: unknown;
|
|
73929
|
+
};
|
|
73930
|
+
export type GetOrganizationNotificationsInboxResponses = {
|
|
73931
|
+
/**
|
|
73932
|
+
* Unread and unseen counts.
|
|
73933
|
+
*/
|
|
73934
|
+
200: {
|
|
73935
|
+
/**
|
|
73936
|
+
* Notices in the inbox tab that this person has not read.
|
|
73937
|
+
*/
|
|
73938
|
+
unreadCount: number;
|
|
73939
|
+
/**
|
|
73940
|
+
* Notices this person has not opened the bell since they arrived.
|
|
73941
|
+
*/
|
|
73942
|
+
unseenCount: number;
|
|
73943
|
+
};
|
|
73944
|
+
};
|
|
73945
|
+
export type GetOrganizationNotificationsInboxResponse = GetOrganizationNotificationsInboxResponses[keyof GetOrganizationNotificationsInboxResponses];
|
|
73946
|
+
export type ListOrganizationNotificationLettersData = {
|
|
73947
|
+
body?: never;
|
|
73948
|
+
path?: never;
|
|
73949
|
+
query?: {
|
|
73950
|
+
/**
|
|
73951
|
+
* Only unread letters, or only read ones; omit for both.
|
|
73952
|
+
*/
|
|
73953
|
+
status?: 'unread' | 'read';
|
|
73954
|
+
/**
|
|
73955
|
+
* false (the default) hides archived letters; true lists only the archived ones.
|
|
73956
|
+
*/
|
|
73957
|
+
archived?: boolean;
|
|
73958
|
+
/**
|
|
73959
|
+
* Letters per page, 1 to 50; defaults to 20.
|
|
73960
|
+
*/
|
|
73961
|
+
limit?: number;
|
|
73962
|
+
/**
|
|
73963
|
+
* Opaque next_cursor from the previous response; omit for the first page.
|
|
73964
|
+
*/
|
|
73965
|
+
cursor?: string;
|
|
73966
|
+
};
|
|
73967
|
+
url: '/organization/v1/notifications/letters';
|
|
73968
|
+
};
|
|
73969
|
+
export type ListOrganizationNotificationLettersErrors = {
|
|
73970
|
+
/**
|
|
73971
|
+
* Invalid status, archived or limit (RFC 9457 problem).
|
|
73972
|
+
*/
|
|
73973
|
+
400: unknown;
|
|
73974
|
+
/**
|
|
73975
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
73976
|
+
*/
|
|
73977
|
+
401: unknown;
|
|
73978
|
+
};
|
|
73979
|
+
export type ListOrganizationNotificationLettersResponses = {
|
|
73980
|
+
/**
|
|
73981
|
+
* One page of this person's letters.
|
|
73982
|
+
*/
|
|
73983
|
+
200: {
|
|
73984
|
+
/**
|
|
73985
|
+
* The page, newest arrival first.
|
|
73986
|
+
*/
|
|
73987
|
+
letters: Array<{
|
|
73988
|
+
/**
|
|
73989
|
+
* The letter's id; open the letter by it.
|
|
73990
|
+
*/
|
|
73991
|
+
id: string;
|
|
73992
|
+
/**
|
|
73993
|
+
* The sender's display name. Never an address or an internal id; an address the directory does not know reads 「某位成员」.
|
|
73994
|
+
*/
|
|
73995
|
+
sender: string;
|
|
73996
|
+
/**
|
|
73997
|
+
* One line saying what the letter asks or tells.
|
|
73998
|
+
*/
|
|
73999
|
+
summary: string;
|
|
74000
|
+
/**
|
|
74001
|
+
* The whole letter, for the detail view.
|
|
74002
|
+
*/
|
|
74003
|
+
body: string;
|
|
74004
|
+
/**
|
|
74005
|
+
* The conversation the letter belongs to; a ticket letter uses ticket:<repository>:<number>. Null when the sender named none.
|
|
74006
|
+
*/
|
|
74007
|
+
thread: string;
|
|
74008
|
+
/**
|
|
74009
|
+
* The letter's kind (ADR-193 §2, #4107): notice, mention or decision; the kind is its category and decides the channels. Letters written before the column existed read mention.
|
|
74010
|
+
*/
|
|
74011
|
+
kind: 'notice' | 'mention' | 'decision';
|
|
74012
|
+
/**
|
|
74013
|
+
* Where the letter came from (a ticket number, a comment, a change); null when the sender gave none.
|
|
74014
|
+
*/
|
|
74015
|
+
source: {
|
|
74016
|
+
[key: string]: unknown;
|
|
74017
|
+
};
|
|
74018
|
+
/**
|
|
74019
|
+
* Whether this person has read it.
|
|
74020
|
+
*/
|
|
74021
|
+
read: boolean;
|
|
74022
|
+
/**
|
|
74023
|
+
* When it arrived; null while still scheduled.
|
|
74024
|
+
*/
|
|
74025
|
+
deliveredAt: string;
|
|
74026
|
+
/**
|
|
74027
|
+
* When it was written.
|
|
74028
|
+
*/
|
|
74029
|
+
createTime: string;
|
|
74030
|
+
/**
|
|
74031
|
+
* Why it reached this person, in their words — 「在工单 #4109 的评论里 @ 了你」.
|
|
74032
|
+
*/
|
|
74033
|
+
reason: string;
|
|
74034
|
+
/**
|
|
74035
|
+
* Whether this person archived it. Archived letters are hidden unless archived=true is asked for.
|
|
74036
|
+
*/
|
|
74037
|
+
archived: boolean;
|
|
74038
|
+
}>;
|
|
74039
|
+
/**
|
|
74040
|
+
* Pass unchanged as cursor for the next page; null at the end.
|
|
74041
|
+
*/
|
|
74042
|
+
nextCursor: string;
|
|
74043
|
+
/**
|
|
74044
|
+
* How many delivered letters this person has not read, across all pages.
|
|
74045
|
+
*/
|
|
74046
|
+
unread: number;
|
|
74047
|
+
};
|
|
74048
|
+
};
|
|
74049
|
+
export type ListOrganizationNotificationLettersResponse = ListOrganizationNotificationLettersResponses[keyof ListOrganizationNotificationLettersResponses];
|
|
74050
|
+
export type ReadOrganizationNotificationLetterData = {
|
|
74051
|
+
body?: never;
|
|
74052
|
+
path: {
|
|
74053
|
+
/**
|
|
74054
|
+
* The letter's id, from the letters list.
|
|
74055
|
+
*/
|
|
74056
|
+
id: string;
|
|
74057
|
+
};
|
|
74058
|
+
query?: never;
|
|
74059
|
+
url: '/organization/v1/notifications/letters/{id}:read';
|
|
74060
|
+
};
|
|
74061
|
+
export type ReadOrganizationNotificationLetterErrors = {
|
|
74062
|
+
/**
|
|
74063
|
+
* The id is not a letter id (RFC 9457 problem).
|
|
74064
|
+
*/
|
|
74065
|
+
400: unknown;
|
|
74066
|
+
/**
|
|
74067
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74068
|
+
*/
|
|
74069
|
+
401: unknown;
|
|
74070
|
+
/**
|
|
74071
|
+
* No such letter in your mailbox (RFC 9457 problem).
|
|
74072
|
+
*/
|
|
74073
|
+
404: unknown;
|
|
74074
|
+
};
|
|
74075
|
+
export type ReadOrganizationNotificationLetterResponses = {
|
|
74076
|
+
/**
|
|
74077
|
+
* The letter is read; your unread count after it.
|
|
74078
|
+
*/
|
|
74079
|
+
200: {
|
|
74080
|
+
/**
|
|
74081
|
+
* How many delivered letters you have not read, across all pages.
|
|
74082
|
+
*/
|
|
74083
|
+
unread: number;
|
|
74084
|
+
};
|
|
74085
|
+
};
|
|
74086
|
+
export type ReadOrganizationNotificationLetterResponse = ReadOrganizationNotificationLetterResponses[keyof ReadOrganizationNotificationLetterResponses];
|
|
74087
|
+
export type ReadAllOrganizationNotificationLettersData = {
|
|
74088
|
+
body?: {
|
|
74089
|
+
/**
|
|
74090
|
+
* Only letters of this kind; omit for all kinds.
|
|
74091
|
+
*/
|
|
74092
|
+
kind?: 'notice' | 'mention' | 'decision';
|
|
74093
|
+
};
|
|
74094
|
+
path?: never;
|
|
74095
|
+
query?: never;
|
|
74096
|
+
url: '/organization/v1/notifications/letters:readAll';
|
|
74097
|
+
};
|
|
74098
|
+
export type ReadAllOrganizationNotificationLettersErrors = {
|
|
74099
|
+
/**
|
|
74100
|
+
* The body is not a JSON object, or kind is unknown (RFC 9457 problem).
|
|
74101
|
+
*/
|
|
74102
|
+
400: unknown;
|
|
74103
|
+
/**
|
|
74104
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74105
|
+
*/
|
|
74106
|
+
401: unknown;
|
|
74107
|
+
};
|
|
74108
|
+
export type ReadAllOrganizationNotificationLettersResponses = {
|
|
74109
|
+
/**
|
|
74110
|
+
* The letters are read; your unread count after it.
|
|
74111
|
+
*/
|
|
74112
|
+
200: {
|
|
74113
|
+
/**
|
|
74114
|
+
* How many delivered letters you have not read, across all pages.
|
|
74115
|
+
*/
|
|
74116
|
+
unread: number;
|
|
74117
|
+
};
|
|
74118
|
+
};
|
|
74119
|
+
export type ReadAllOrganizationNotificationLettersResponse = ReadAllOrganizationNotificationLettersResponses[keyof ReadAllOrganizationNotificationLettersResponses];
|
|
74120
|
+
export type ArchiveOrganizationNotificationLetterData = {
|
|
74121
|
+
body?: never;
|
|
74122
|
+
path: {
|
|
74123
|
+
/**
|
|
74124
|
+
* The letter's id, from the letters list.
|
|
74125
|
+
*/
|
|
74126
|
+
id: string;
|
|
74127
|
+
};
|
|
74128
|
+
query?: never;
|
|
74129
|
+
url: '/organization/v1/notifications/letters/{id}:archive';
|
|
74130
|
+
};
|
|
74131
|
+
export type ArchiveOrganizationNotificationLetterErrors = {
|
|
74132
|
+
/**
|
|
74133
|
+
* The id is not a letter id (RFC 9457 problem).
|
|
74134
|
+
*/
|
|
74135
|
+
400: unknown;
|
|
74136
|
+
/**
|
|
74137
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74138
|
+
*/
|
|
74139
|
+
401: unknown;
|
|
74140
|
+
/**
|
|
74141
|
+
* No such letter in your mailbox (RFC 9457 problem).
|
|
74142
|
+
*/
|
|
74143
|
+
404: unknown;
|
|
74144
|
+
};
|
|
74145
|
+
export type ArchiveOrganizationNotificationLetterResponses = {
|
|
74146
|
+
/**
|
|
74147
|
+
* The letter is archived; your unread count after it.
|
|
74148
|
+
*/
|
|
74149
|
+
200: {
|
|
74150
|
+
/**
|
|
74151
|
+
* How many delivered letters you have not read, across all pages.
|
|
74152
|
+
*/
|
|
74153
|
+
unread: number;
|
|
74154
|
+
};
|
|
74155
|
+
};
|
|
74156
|
+
export type ArchiveOrganizationNotificationLetterResponse = ArchiveOrganizationNotificationLetterResponses[keyof ArchiveOrganizationNotificationLetterResponses];
|
|
74157
|
+
export type GetOrganizationNotificationPreferencesData = {
|
|
74158
|
+
body?: never;
|
|
74159
|
+
path?: never;
|
|
74160
|
+
query?: never;
|
|
74161
|
+
url: '/organization/v1/notifications/preferences';
|
|
74162
|
+
};
|
|
74163
|
+
export type GetOrganizationNotificationPreferencesErrors = {
|
|
74164
|
+
/**
|
|
74165
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74166
|
+
*/
|
|
74167
|
+
401: unknown;
|
|
74168
|
+
};
|
|
74169
|
+
export type GetOrganizationNotificationPreferencesResponses = {
|
|
74170
|
+
/**
|
|
74171
|
+
* The person's preferences, the organization's layer and the effective answer per channel.
|
|
74172
|
+
*/
|
|
74173
|
+
200: {
|
|
74174
|
+
/**
|
|
74175
|
+
* The preference record's name.
|
|
74176
|
+
*/
|
|
74177
|
+
name: string;
|
|
74178
|
+
/**
|
|
74179
|
+
* Category key → channel → on/off: this person's own switches. Absent entries mean the layer below decides.
|
|
74180
|
+
*/
|
|
74181
|
+
workflows: {
|
|
74182
|
+
[key: string]: unknown;
|
|
74183
|
+
};
|
|
74184
|
+
/**
|
|
74185
|
+
* Channels this person turned off in every organization; these override every category switch.
|
|
74186
|
+
*/
|
|
74187
|
+
channelOptOuts?: Array<'in_app' | 'email' | 'sms'>;
|
|
74188
|
+
/**
|
|
74189
|
+
* When the person last changed them.
|
|
74190
|
+
*/
|
|
74191
|
+
updateTime?: string;
|
|
74192
|
+
/**
|
|
74193
|
+
* The categories this person's page lists, in display order.
|
|
74194
|
+
*/
|
|
74195
|
+
catalog: Array<{
|
|
74196
|
+
/**
|
|
74197
|
+
* The category key.
|
|
74198
|
+
*/
|
|
74199
|
+
workflow: string;
|
|
74200
|
+
/**
|
|
74201
|
+
* The page's section.
|
|
74202
|
+
*/
|
|
74203
|
+
group: string;
|
|
74204
|
+
/**
|
|
74205
|
+
* Chinese copy for the row.
|
|
74206
|
+
*/
|
|
74207
|
+
title: string;
|
|
74208
|
+
/**
|
|
74209
|
+
* One more line of copy, when the category has one.
|
|
74210
|
+
*/
|
|
74211
|
+
description?: string;
|
|
74212
|
+
/**
|
|
74213
|
+
* At least one of its channels stays on whatever anyone else says.
|
|
74214
|
+
*/
|
|
74215
|
+
critical: boolean;
|
|
74216
|
+
/**
|
|
74217
|
+
* The channels the category may be received on.
|
|
74218
|
+
*/
|
|
74219
|
+
channels: Array<string>;
|
|
74220
|
+
}>;
|
|
74221
|
+
/**
|
|
74222
|
+
* The organization's layer: defaults, blockedChannels, memberMayChange, hiddenCategories, updateTime.
|
|
74223
|
+
*/
|
|
74224
|
+
organization: {
|
|
74225
|
+
[key: string]: unknown;
|
|
74226
|
+
};
|
|
74227
|
+
/**
|
|
74228
|
+
* Category key → channel → { on, layer }: what actually happens for this person, and which of the five layers decided it.
|
|
74229
|
+
*/
|
|
74230
|
+
effective: {
|
|
74231
|
+
[key: string]: unknown;
|
|
74232
|
+
};
|
|
74233
|
+
};
|
|
74234
|
+
};
|
|
74235
|
+
export type GetOrganizationNotificationPreferencesResponse = GetOrganizationNotificationPreferencesResponses[keyof GetOrganizationNotificationPreferencesResponses];
|
|
74236
|
+
export type UpdateOrganizationNotificationPreferencesData = {
|
|
74237
|
+
body: {
|
|
74238
|
+
/**
|
|
74239
|
+
* Category key → channel → on/off. Omit to leave the person's category switches as they are.
|
|
74240
|
+
*/
|
|
74241
|
+
workflows?: {
|
|
74242
|
+
[key: string]: unknown;
|
|
74243
|
+
};
|
|
74244
|
+
/**
|
|
74245
|
+
* Channels to turn off in every organization. Omit to leave them as they are.
|
|
74246
|
+
*/
|
|
74247
|
+
channel_opt_outs?: Array<'in_app' | 'email' | 'sms'>;
|
|
74248
|
+
};
|
|
74249
|
+
path?: never;
|
|
74250
|
+
query?: never;
|
|
74251
|
+
url: '/organization/v1/notifications/preferences';
|
|
74252
|
+
};
|
|
74253
|
+
export type UpdateOrganizationNotificationPreferencesErrors = {
|
|
74254
|
+
/**
|
|
74255
|
+
* Invalid switch, unknown category or unoffered channel (RFC 9457 problem).
|
|
74256
|
+
*/
|
|
74257
|
+
400: unknown;
|
|
74258
|
+
/**
|
|
74259
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74260
|
+
*/
|
|
74261
|
+
401: unknown;
|
|
74262
|
+
/**
|
|
74263
|
+
* The organization does not let members change their own switches (ORGANIZATION_LOCKED).
|
|
74264
|
+
*/
|
|
74265
|
+
403: unknown;
|
|
74266
|
+
};
|
|
74267
|
+
export type UpdateOrganizationNotificationPreferencesResponses = {
|
|
74268
|
+
/**
|
|
74269
|
+
* The stored preferences, in the same shape as the GET.
|
|
74270
|
+
*/
|
|
74271
|
+
200: {
|
|
74272
|
+
[key: string]: unknown;
|
|
74273
|
+
};
|
|
74274
|
+
};
|
|
74275
|
+
export type UpdateOrganizationNotificationPreferencesResponse = UpdateOrganizationNotificationPreferencesResponses[keyof UpdateOrganizationNotificationPreferencesResponses];
|
|
74276
|
+
export type GetOrganizationNotificationDefaultsData = {
|
|
74277
|
+
body?: never;
|
|
74278
|
+
path?: never;
|
|
74279
|
+
query?: never;
|
|
74280
|
+
url: '/organization/v1/notifications/organization_default';
|
|
74281
|
+
};
|
|
74282
|
+
export type GetOrganizationNotificationDefaultsErrors = {
|
|
74283
|
+
/**
|
|
74284
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74285
|
+
*/
|
|
74286
|
+
401: unknown;
|
|
74287
|
+
};
|
|
74288
|
+
export type GetOrganizationNotificationDefaultsResponses = {
|
|
74289
|
+
/**
|
|
74290
|
+
* The organization's layer, or the platform defaults when it never set one.
|
|
74291
|
+
*/
|
|
74292
|
+
200: {
|
|
74293
|
+
[key: string]: unknown;
|
|
74294
|
+
};
|
|
74295
|
+
};
|
|
74296
|
+
export type GetOrganizationNotificationDefaultsResponse = GetOrganizationNotificationDefaultsResponses[keyof GetOrganizationNotificationDefaultsResponses];
|
|
74297
|
+
export type UpdateOrganizationNotificationDefaultsData = {
|
|
74298
|
+
body: {
|
|
74299
|
+
/**
|
|
74300
|
+
* Category key → channel → on/off, applied where a member said nothing.
|
|
74301
|
+
*/
|
|
74302
|
+
defaults?: {
|
|
74303
|
+
[key: string]: unknown;
|
|
74304
|
+
};
|
|
74305
|
+
/**
|
|
74306
|
+
* Channels nobody in this organization receives on.
|
|
74307
|
+
*/
|
|
74308
|
+
blocked_channels?: Array<'in_app' | 'email' | 'sms'>;
|
|
74309
|
+
/**
|
|
74310
|
+
* Non-critical categories kept off members' settings pages.
|
|
74311
|
+
*/
|
|
74312
|
+
hidden_categories?: Array<string>;
|
|
74313
|
+
/**
|
|
74314
|
+
* false makes these defaults final for members; true (the default) lets each member change their own switches.
|
|
74315
|
+
*/
|
|
74316
|
+
member_may_change?: boolean;
|
|
74317
|
+
};
|
|
74318
|
+
path?: never;
|
|
74319
|
+
query?: never;
|
|
74320
|
+
url: '/organization/v1/notifications/organization_default';
|
|
74321
|
+
};
|
|
74322
|
+
export type UpdateOrganizationNotificationDefaultsErrors = {
|
|
74323
|
+
/**
|
|
74324
|
+
* Invalid default, unknown category or hidden critical category (RFC 9457 problem).
|
|
74325
|
+
*/
|
|
74326
|
+
400: unknown;
|
|
74327
|
+
/**
|
|
74328
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74329
|
+
*/
|
|
74330
|
+
401: unknown;
|
|
74331
|
+
/**
|
|
74332
|
+
* The caller is not an owner or admin of this organization.
|
|
74333
|
+
*/
|
|
74334
|
+
403: unknown;
|
|
74335
|
+
};
|
|
74336
|
+
export type UpdateOrganizationNotificationDefaultsResponses = {
|
|
74337
|
+
/**
|
|
74338
|
+
* The stored organization layer.
|
|
74339
|
+
*/
|
|
74340
|
+
200: {
|
|
74341
|
+
[key: string]: unknown;
|
|
74342
|
+
};
|
|
74343
|
+
};
|
|
74344
|
+
export type UpdateOrganizationNotificationDefaultsResponse = UpdateOrganizationNotificationDefaultsResponses[keyof UpdateOrganizationNotificationDefaultsResponses];
|
|
74345
|
+
export type ListOrganizationNotificationDeliveriesData = {
|
|
74346
|
+
body?: never;
|
|
74347
|
+
path?: never;
|
|
74348
|
+
query?: {
|
|
74349
|
+
/**
|
|
74350
|
+
* Records per page, 1 to 100; defaults to 20.
|
|
74351
|
+
*/
|
|
74352
|
+
limit?: number;
|
|
74353
|
+
/**
|
|
74354
|
+
* Opaque next_page cursor from the previous response; omit for the first page.
|
|
74355
|
+
*/
|
|
74356
|
+
page?: string;
|
|
74357
|
+
};
|
|
74358
|
+
url: '/organization/v1/notifications/deliveries';
|
|
74359
|
+
};
|
|
74360
|
+
export type ListOrganizationNotificationDeliveriesErrors = {
|
|
74361
|
+
/**
|
|
74362
|
+
* Invalid limit or page cursor (RFC 9457 problem).
|
|
74363
|
+
*/
|
|
74364
|
+
400: unknown;
|
|
74365
|
+
/**
|
|
74366
|
+
* Missing or invalid credential (RFC 9457 problem).
|
|
74367
|
+
*/
|
|
74368
|
+
401: unknown;
|
|
74369
|
+
};
|
|
74370
|
+
export type ListOrganizationNotificationDeliveriesResponses = {
|
|
74371
|
+
/**
|
|
74372
|
+
* One page of this person's delivery records.
|
|
74373
|
+
*/
|
|
74374
|
+
200: {
|
|
74375
|
+
[key: string]: unknown;
|
|
74376
|
+
};
|
|
74377
|
+
};
|
|
74378
|
+
export type ListOrganizationNotificationDeliveriesResponse = ListOrganizationNotificationDeliveriesResponses[keyof ListOrganizationNotificationDeliveriesResponses];
|
|
73734
74379
|
export type UpgradeSandboxData = {
|
|
73735
74380
|
body: {
|
|
73736
74381
|
/**
|
|
@@ -98507,7 +99152,7 @@ export type CutRestoreVersionResponses = {
|
|
|
98507
99152
|
200: CutTransaction;
|
|
98508
99153
|
};
|
|
98509
99154
|
export type CutRestoreVersionResponse = CutRestoreVersionResponses[keyof CutRestoreVersionResponses];
|
|
98510
|
-
export type
|
|
99155
|
+
export type DatabaseListTableDatabasesData = {
|
|
98511
99156
|
body?: never;
|
|
98512
99157
|
path?: never;
|
|
98513
99158
|
query?: {
|
|
@@ -98530,16 +99175,16 @@ export type DatabaseListDatabasesData = {
|
|
|
98530
99175
|
*/
|
|
98531
99176
|
status?: 'active' | 'deleting';
|
|
98532
99177
|
};
|
|
98533
|
-
url: '/database/v1/
|
|
99178
|
+
url: '/database/v1/table';
|
|
98534
99179
|
};
|
|
98535
|
-
export type
|
|
99180
|
+
export type DatabaseListTableDatabasesErrors = {
|
|
98536
99181
|
/**
|
|
98537
99182
|
* Database error; see the error code table.
|
|
98538
99183
|
*/
|
|
98539
99184
|
default: DatabaseDatabaseError;
|
|
98540
99185
|
};
|
|
98541
|
-
export type
|
|
98542
|
-
export type
|
|
99186
|
+
export type DatabaseListTableDatabasesError = DatabaseListTableDatabasesErrors[keyof DatabaseListTableDatabasesErrors];
|
|
99187
|
+
export type DatabaseListTableDatabasesResponses = {
|
|
98543
99188
|
/**
|
|
98544
99189
|
* Success
|
|
98545
99190
|
*/
|
|
@@ -98550,139 +99195,303 @@ export type DatabaseListDatabasesResponses = {
|
|
|
98550
99195
|
data: Array<DatabaseDatabase>;
|
|
98551
99196
|
};
|
|
98552
99197
|
};
|
|
98553
|
-
export type
|
|
98554
|
-
export type
|
|
98555
|
-
body:
|
|
99198
|
+
export type DatabaseListTableDatabasesResponse = DatabaseListTableDatabasesResponses[keyof DatabaseListTableDatabasesResponses];
|
|
99199
|
+
export type DatabaseCreateTableDatabaseData = {
|
|
99200
|
+
body: DatabaseCreateTableDatabaseInput;
|
|
98556
99201
|
path?: never;
|
|
98557
99202
|
query?: never;
|
|
98558
|
-
url: '/database/v1/
|
|
99203
|
+
url: '/database/v1/table';
|
|
98559
99204
|
};
|
|
98560
|
-
export type
|
|
99205
|
+
export type DatabaseCreateTableDatabaseErrors = {
|
|
98561
99206
|
/**
|
|
98562
99207
|
* Database error; see the error code table.
|
|
98563
99208
|
*/
|
|
98564
99209
|
default: DatabaseDatabaseError;
|
|
98565
99210
|
};
|
|
98566
|
-
export type
|
|
98567
|
-
export type
|
|
99211
|
+
export type DatabaseCreateTableDatabaseError = DatabaseCreateTableDatabaseErrors[keyof DatabaseCreateTableDatabaseErrors];
|
|
99212
|
+
export type DatabaseCreateTableDatabaseResponses = {
|
|
98568
99213
|
/**
|
|
98569
99214
|
* Success
|
|
98570
99215
|
*/
|
|
98571
99216
|
201: DatabaseDatabase;
|
|
98572
99217
|
};
|
|
98573
|
-
export type
|
|
98574
|
-
export type
|
|
99218
|
+
export type DatabaseCreateTableDatabaseResponse = DatabaseCreateTableDatabaseResponses[keyof DatabaseCreateTableDatabaseResponses];
|
|
99219
|
+
export type DatabaseListKvDatabasesData = {
|
|
99220
|
+
body?: never;
|
|
99221
|
+
path?: never;
|
|
99222
|
+
query?: {
|
|
99223
|
+
/**
|
|
99224
|
+
* Opaque next_cursor from the previous page.
|
|
99225
|
+
*/
|
|
99226
|
+
cursor?: string;
|
|
99227
|
+
/**
|
|
99228
|
+
* Page size.
|
|
99229
|
+
*/
|
|
99230
|
+
limit?: number;
|
|
99231
|
+
/**
|
|
99232
|
+
* Exact label match, encoded as labels[purpose]=docs.
|
|
99233
|
+
*/
|
|
99234
|
+
labels?: {
|
|
99235
|
+
[key: string]: string;
|
|
99236
|
+
};
|
|
99237
|
+
/**
|
|
99238
|
+
* Filter by lifecycle state. active (the default when omitted) lists usable databases; deleting lists databases that were deleted and are still inside the seven-day restore window. Any other value returns 400 INVALID_PARAMS.
|
|
99239
|
+
*/
|
|
99240
|
+
status?: 'active' | 'deleting';
|
|
99241
|
+
};
|
|
99242
|
+
url: '/database/v1/kv';
|
|
99243
|
+
};
|
|
99244
|
+
export type DatabaseListKvDatabasesErrors = {
|
|
99245
|
+
/**
|
|
99246
|
+
* Database error; see the error code table.
|
|
99247
|
+
*/
|
|
99248
|
+
default: DatabaseDatabaseError;
|
|
99249
|
+
};
|
|
99250
|
+
export type DatabaseListKvDatabasesError = DatabaseListKvDatabasesErrors[keyof DatabaseListKvDatabasesErrors];
|
|
99251
|
+
export type DatabaseListKvDatabasesResponses = {
|
|
99252
|
+
/**
|
|
99253
|
+
* Success
|
|
99254
|
+
*/
|
|
99255
|
+
200: DatabasePage & {
|
|
99256
|
+
/**
|
|
99257
|
+
* Databases on this page, newest first (created_at descending, ties by id). Deleting databases are excluded unless status=deleting.
|
|
99258
|
+
*/
|
|
99259
|
+
data: Array<DatabaseDatabase>;
|
|
99260
|
+
};
|
|
99261
|
+
};
|
|
99262
|
+
export type DatabaseListKvDatabasesResponse = DatabaseListKvDatabasesResponses[keyof DatabaseListKvDatabasesResponses];
|
|
99263
|
+
export type DatabaseCreateKvDatabaseData = {
|
|
99264
|
+
body: DatabaseCreateKvDatabaseInput;
|
|
99265
|
+
path?: never;
|
|
99266
|
+
query?: never;
|
|
99267
|
+
url: '/database/v1/kv';
|
|
99268
|
+
};
|
|
99269
|
+
export type DatabaseCreateKvDatabaseErrors = {
|
|
99270
|
+
/**
|
|
99271
|
+
* Database error; see the error code table.
|
|
99272
|
+
*/
|
|
99273
|
+
default: DatabaseDatabaseError;
|
|
99274
|
+
};
|
|
99275
|
+
export type DatabaseCreateKvDatabaseError = DatabaseCreateKvDatabaseErrors[keyof DatabaseCreateKvDatabaseErrors];
|
|
99276
|
+
export type DatabaseCreateKvDatabaseResponses = {
|
|
99277
|
+
/**
|
|
99278
|
+
* Success
|
|
99279
|
+
*/
|
|
99280
|
+
201: DatabaseDatabase;
|
|
99281
|
+
};
|
|
99282
|
+
export type DatabaseCreateKvDatabaseResponse = DatabaseCreateKvDatabaseResponses[keyof DatabaseCreateKvDatabaseResponses];
|
|
99283
|
+
export type DatabaseDeleteTableDatabaseData = {
|
|
98575
99284
|
body?: never;
|
|
98576
99285
|
path: {
|
|
98577
99286
|
/**
|
|
98578
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99287
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98579
99288
|
*/
|
|
98580
99289
|
database_id: string;
|
|
98581
99290
|
};
|
|
98582
99291
|
query?: never;
|
|
98583
|
-
url: '/database/v1/
|
|
99292
|
+
url: '/database/v1/table/{database_id}';
|
|
98584
99293
|
};
|
|
98585
|
-
export type
|
|
99294
|
+
export type DatabaseDeleteTableDatabaseErrors = {
|
|
98586
99295
|
/**
|
|
98587
99296
|
* Database error; see the error code table.
|
|
98588
99297
|
*/
|
|
98589
99298
|
default: DatabaseDatabaseError;
|
|
98590
99299
|
};
|
|
98591
|
-
export type
|
|
98592
|
-
export type
|
|
99300
|
+
export type DatabaseDeleteTableDatabaseError = DatabaseDeleteTableDatabaseErrors[keyof DatabaseDeleteTableDatabaseErrors];
|
|
99301
|
+
export type DatabaseDeleteTableDatabaseResponses = {
|
|
98593
99302
|
/**
|
|
98594
99303
|
* Success
|
|
98595
99304
|
*/
|
|
98596
99305
|
200: DatabaseDatabase;
|
|
98597
99306
|
};
|
|
98598
|
-
export type
|
|
98599
|
-
export type
|
|
99307
|
+
export type DatabaseDeleteTableDatabaseResponse = DatabaseDeleteTableDatabaseResponses[keyof DatabaseDeleteTableDatabaseResponses];
|
|
99308
|
+
export type DatabaseGetTableDatabaseData = {
|
|
98600
99309
|
body?: never;
|
|
98601
99310
|
path: {
|
|
98602
99311
|
/**
|
|
98603
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99312
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98604
99313
|
*/
|
|
98605
99314
|
database_id: string;
|
|
98606
99315
|
};
|
|
98607
99316
|
query?: never;
|
|
98608
|
-
url: '/database/v1/
|
|
99317
|
+
url: '/database/v1/table/{database_id}';
|
|
98609
99318
|
};
|
|
98610
|
-
export type
|
|
99319
|
+
export type DatabaseGetTableDatabaseErrors = {
|
|
98611
99320
|
/**
|
|
98612
99321
|
* Database error; see the error code table.
|
|
98613
99322
|
*/
|
|
98614
99323
|
default: DatabaseDatabaseError;
|
|
98615
99324
|
};
|
|
98616
|
-
export type
|
|
98617
|
-
export type
|
|
99325
|
+
export type DatabaseGetTableDatabaseError = DatabaseGetTableDatabaseErrors[keyof DatabaseGetTableDatabaseErrors];
|
|
99326
|
+
export type DatabaseGetTableDatabaseResponses = {
|
|
98618
99327
|
/**
|
|
98619
99328
|
* Success
|
|
98620
99329
|
*/
|
|
98621
99330
|
200: DatabaseDatabase;
|
|
98622
99331
|
};
|
|
98623
|
-
export type
|
|
98624
|
-
export type
|
|
99332
|
+
export type DatabaseGetTableDatabaseResponse = DatabaseGetTableDatabaseResponses[keyof DatabaseGetTableDatabaseResponses];
|
|
99333
|
+
export type DatabaseUpdateTableDatabaseData = {
|
|
98625
99334
|
body: DatabaseUpdateDatabaseInput;
|
|
98626
99335
|
path: {
|
|
98627
99336
|
/**
|
|
98628
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99337
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98629
99338
|
*/
|
|
98630
99339
|
database_id: string;
|
|
98631
99340
|
};
|
|
98632
99341
|
query?: never;
|
|
98633
|
-
url: '/database/v1/
|
|
99342
|
+
url: '/database/v1/table/{database_id}';
|
|
98634
99343
|
};
|
|
98635
|
-
export type
|
|
99344
|
+
export type DatabaseUpdateTableDatabaseErrors = {
|
|
98636
99345
|
/**
|
|
98637
99346
|
* Database error; see the error code table.
|
|
98638
99347
|
*/
|
|
98639
99348
|
default: DatabaseDatabaseError;
|
|
98640
99349
|
};
|
|
98641
|
-
export type
|
|
98642
|
-
export type
|
|
99350
|
+
export type DatabaseUpdateTableDatabaseError = DatabaseUpdateTableDatabaseErrors[keyof DatabaseUpdateTableDatabaseErrors];
|
|
99351
|
+
export type DatabaseUpdateTableDatabaseResponses = {
|
|
98643
99352
|
/**
|
|
98644
99353
|
* Success
|
|
98645
99354
|
*/
|
|
98646
99355
|
200: DatabaseDatabase;
|
|
98647
99356
|
};
|
|
98648
|
-
export type
|
|
98649
|
-
export type
|
|
99357
|
+
export type DatabaseUpdateTableDatabaseResponse = DatabaseUpdateTableDatabaseResponses[keyof DatabaseUpdateTableDatabaseResponses];
|
|
99358
|
+
export type DatabaseDeleteKvDatabaseData = {
|
|
98650
99359
|
body?: never;
|
|
98651
99360
|
path: {
|
|
98652
99361
|
/**
|
|
98653
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99362
|
+
* Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
98654
99363
|
*/
|
|
98655
99364
|
database_id: string;
|
|
98656
99365
|
};
|
|
98657
99366
|
query?: never;
|
|
98658
|
-
url: '/database/v1/
|
|
99367
|
+
url: '/database/v1/kv/{database_id}';
|
|
98659
99368
|
};
|
|
98660
|
-
export type
|
|
99369
|
+
export type DatabaseDeleteKvDatabaseErrors = {
|
|
98661
99370
|
/**
|
|
98662
99371
|
* Database error; see the error code table.
|
|
98663
99372
|
*/
|
|
98664
99373
|
default: DatabaseDatabaseError;
|
|
98665
99374
|
};
|
|
98666
|
-
export type
|
|
98667
|
-
export type
|
|
99375
|
+
export type DatabaseDeleteKvDatabaseError = DatabaseDeleteKvDatabaseErrors[keyof DatabaseDeleteKvDatabaseErrors];
|
|
99376
|
+
export type DatabaseDeleteKvDatabaseResponses = {
|
|
98668
99377
|
/**
|
|
98669
99378
|
* Success
|
|
98670
99379
|
*/
|
|
98671
99380
|
200: DatabaseDatabase;
|
|
98672
99381
|
};
|
|
98673
|
-
export type
|
|
98674
|
-
export type
|
|
99382
|
+
export type DatabaseDeleteKvDatabaseResponse = DatabaseDeleteKvDatabaseResponses[keyof DatabaseDeleteKvDatabaseResponses];
|
|
99383
|
+
export type DatabaseGetKvDatabaseData = {
|
|
98675
99384
|
body?: never;
|
|
98676
99385
|
path: {
|
|
98677
99386
|
/**
|
|
98678
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99387
|
+
* Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
98679
99388
|
*/
|
|
98680
99389
|
database_id: string;
|
|
98681
99390
|
};
|
|
98682
99391
|
query?: never;
|
|
98683
|
-
url: '/database/v1/
|
|
99392
|
+
url: '/database/v1/kv/{database_id}';
|
|
98684
99393
|
};
|
|
98685
|
-
export type
|
|
99394
|
+
export type DatabaseGetKvDatabaseErrors = {
|
|
99395
|
+
/**
|
|
99396
|
+
* Database error; see the error code table.
|
|
99397
|
+
*/
|
|
99398
|
+
default: DatabaseDatabaseError;
|
|
99399
|
+
};
|
|
99400
|
+
export type DatabaseGetKvDatabaseError = DatabaseGetKvDatabaseErrors[keyof DatabaseGetKvDatabaseErrors];
|
|
99401
|
+
export type DatabaseGetKvDatabaseResponses = {
|
|
99402
|
+
/**
|
|
99403
|
+
* Success
|
|
99404
|
+
*/
|
|
99405
|
+
200: DatabaseDatabase;
|
|
99406
|
+
};
|
|
99407
|
+
export type DatabaseGetKvDatabaseResponse = DatabaseGetKvDatabaseResponses[keyof DatabaseGetKvDatabaseResponses];
|
|
99408
|
+
export type DatabaseUpdateKvDatabaseData = {
|
|
99409
|
+
body: DatabaseUpdateDatabaseInput;
|
|
99410
|
+
path: {
|
|
99411
|
+
/**
|
|
99412
|
+
* Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
99413
|
+
*/
|
|
99414
|
+
database_id: string;
|
|
99415
|
+
};
|
|
99416
|
+
query?: never;
|
|
99417
|
+
url: '/database/v1/kv/{database_id}';
|
|
99418
|
+
};
|
|
99419
|
+
export type DatabaseUpdateKvDatabaseErrors = {
|
|
99420
|
+
/**
|
|
99421
|
+
* Database error; see the error code table.
|
|
99422
|
+
*/
|
|
99423
|
+
default: DatabaseDatabaseError;
|
|
99424
|
+
};
|
|
99425
|
+
export type DatabaseUpdateKvDatabaseError = DatabaseUpdateKvDatabaseErrors[keyof DatabaseUpdateKvDatabaseErrors];
|
|
99426
|
+
export type DatabaseUpdateKvDatabaseResponses = {
|
|
99427
|
+
/**
|
|
99428
|
+
* Success
|
|
99429
|
+
*/
|
|
99430
|
+
200: DatabaseDatabase;
|
|
99431
|
+
};
|
|
99432
|
+
export type DatabaseUpdateKvDatabaseResponse = DatabaseUpdateKvDatabaseResponses[keyof DatabaseUpdateKvDatabaseResponses];
|
|
99433
|
+
export type DatabaseRestoreTableDatabaseData = {
|
|
99434
|
+
body?: never;
|
|
99435
|
+
path: {
|
|
99436
|
+
/**
|
|
99437
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
99438
|
+
*/
|
|
99439
|
+
database_id: string;
|
|
99440
|
+
};
|
|
99441
|
+
query?: never;
|
|
99442
|
+
url: '/database/v1/table/{database_id}/restore';
|
|
99443
|
+
};
|
|
99444
|
+
export type DatabaseRestoreTableDatabaseErrors = {
|
|
99445
|
+
/**
|
|
99446
|
+
* Database error; see the error code table.
|
|
99447
|
+
*/
|
|
99448
|
+
default: DatabaseDatabaseError;
|
|
99449
|
+
};
|
|
99450
|
+
export type DatabaseRestoreTableDatabaseError = DatabaseRestoreTableDatabaseErrors[keyof DatabaseRestoreTableDatabaseErrors];
|
|
99451
|
+
export type DatabaseRestoreTableDatabaseResponses = {
|
|
99452
|
+
/**
|
|
99453
|
+
* Success
|
|
99454
|
+
*/
|
|
99455
|
+
200: DatabaseDatabase;
|
|
99456
|
+
};
|
|
99457
|
+
export type DatabaseRestoreTableDatabaseResponse = DatabaseRestoreTableDatabaseResponses[keyof DatabaseRestoreTableDatabaseResponses];
|
|
99458
|
+
export type DatabaseRestoreKvDatabaseData = {
|
|
99459
|
+
body?: never;
|
|
99460
|
+
path: {
|
|
99461
|
+
/**
|
|
99462
|
+
* Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
99463
|
+
*/
|
|
99464
|
+
database_id: string;
|
|
99465
|
+
};
|
|
99466
|
+
query?: never;
|
|
99467
|
+
url: '/database/v1/kv/{database_id}/restore';
|
|
99468
|
+
};
|
|
99469
|
+
export type DatabaseRestoreKvDatabaseErrors = {
|
|
99470
|
+
/**
|
|
99471
|
+
* Database error; see the error code table.
|
|
99472
|
+
*/
|
|
99473
|
+
default: DatabaseDatabaseError;
|
|
99474
|
+
};
|
|
99475
|
+
export type DatabaseRestoreKvDatabaseError = DatabaseRestoreKvDatabaseErrors[keyof DatabaseRestoreKvDatabaseErrors];
|
|
99476
|
+
export type DatabaseRestoreKvDatabaseResponses = {
|
|
99477
|
+
/**
|
|
99478
|
+
* Success
|
|
99479
|
+
*/
|
|
99480
|
+
200: DatabaseDatabase;
|
|
99481
|
+
};
|
|
99482
|
+
export type DatabaseRestoreKvDatabaseResponse = DatabaseRestoreKvDatabaseResponses[keyof DatabaseRestoreKvDatabaseResponses];
|
|
99483
|
+
export type DatabasePurgeTableDatabaseData = {
|
|
99484
|
+
body?: never;
|
|
99485
|
+
path: {
|
|
99486
|
+
/**
|
|
99487
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
99488
|
+
*/
|
|
99489
|
+
database_id: string;
|
|
99490
|
+
};
|
|
99491
|
+
query?: never;
|
|
99492
|
+
url: '/database/v1/table/{database_id}/purge';
|
|
99493
|
+
};
|
|
99494
|
+
export type DatabasePurgeTableDatabaseErrors = {
|
|
98686
99495
|
/**
|
|
98687
99496
|
* DATABASE_NOT_FOUND
|
|
98688
99497
|
*/
|
|
@@ -98692,8 +99501,8 @@ export type DatabasePurgeDatabaseErrors = {
|
|
|
98692
99501
|
*/
|
|
98693
99502
|
409: DatabaseDatabaseError;
|
|
98694
99503
|
};
|
|
98695
|
-
export type
|
|
98696
|
-
export type
|
|
99504
|
+
export type DatabasePurgeTableDatabaseError = DatabasePurgeTableDatabaseErrors[keyof DatabasePurgeTableDatabaseErrors];
|
|
99505
|
+
export type DatabasePurgeTableDatabaseResponses = {
|
|
98697
99506
|
/**
|
|
98698
99507
|
* Permanently purged
|
|
98699
99508
|
*/
|
|
@@ -98712,26 +99521,68 @@ export type DatabasePurgeDatabaseResponses = {
|
|
|
98712
99521
|
purged: true;
|
|
98713
99522
|
};
|
|
98714
99523
|
};
|
|
98715
|
-
export type
|
|
98716
|
-
export type
|
|
99524
|
+
export type DatabasePurgeTableDatabaseResponse = DatabasePurgeTableDatabaseResponses[keyof DatabasePurgeTableDatabaseResponses];
|
|
99525
|
+
export type DatabasePurgeKvDatabaseData = {
|
|
98717
99526
|
body?: never;
|
|
98718
99527
|
path: {
|
|
98719
99528
|
/**
|
|
98720
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99529
|
+
* Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
98721
99530
|
*/
|
|
98722
99531
|
database_id: string;
|
|
98723
99532
|
};
|
|
98724
99533
|
query?: never;
|
|
98725
|
-
url: '/database/v1/
|
|
99534
|
+
url: '/database/v1/kv/{database_id}/purge';
|
|
98726
99535
|
};
|
|
98727
|
-
export type
|
|
99536
|
+
export type DatabasePurgeKvDatabaseErrors = {
|
|
99537
|
+
/**
|
|
99538
|
+
* DATABASE_NOT_FOUND
|
|
99539
|
+
*/
|
|
99540
|
+
404: DatabaseDatabaseError;
|
|
99541
|
+
/**
|
|
99542
|
+
* DATABASE_INVALID_STATE: DELETE must precede purge.
|
|
99543
|
+
*/
|
|
99544
|
+
409: DatabaseDatabaseError;
|
|
99545
|
+
};
|
|
99546
|
+
export type DatabasePurgeKvDatabaseError = DatabasePurgeKvDatabaseErrors[keyof DatabasePurgeKvDatabaseErrors];
|
|
99547
|
+
export type DatabasePurgeKvDatabaseResponses = {
|
|
99548
|
+
/**
|
|
99549
|
+
* Permanently purged
|
|
99550
|
+
*/
|
|
99551
|
+
200: {
|
|
99552
|
+
/**
|
|
99553
|
+
* Id (db_…) of the database that was permanently purged; it no longer resolves.
|
|
99554
|
+
*/
|
|
99555
|
+
id: string;
|
|
99556
|
+
/**
|
|
99557
|
+
* Resource type of the purged object; always database.
|
|
99558
|
+
*/
|
|
99559
|
+
object: 'database';
|
|
99560
|
+
/**
|
|
99561
|
+
* Always true: the database and all of its data were permanently removed and cannot be recovered.
|
|
99562
|
+
*/
|
|
99563
|
+
purged: true;
|
|
99564
|
+
};
|
|
99565
|
+
};
|
|
99566
|
+
export type DatabasePurgeKvDatabaseResponse = DatabasePurgeKvDatabaseResponses[keyof DatabasePurgeKvDatabaseResponses];
|
|
99567
|
+
export type DatabaseTableListTablesData = {
|
|
99568
|
+
body?: never;
|
|
99569
|
+
path: {
|
|
99570
|
+
/**
|
|
99571
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
99572
|
+
*/
|
|
99573
|
+
database_id: string;
|
|
99574
|
+
};
|
|
99575
|
+
query?: never;
|
|
99576
|
+
url: '/database/v1/table/{database_id}/tables';
|
|
99577
|
+
};
|
|
99578
|
+
export type DatabaseTableListTablesErrors = {
|
|
98728
99579
|
/**
|
|
98729
99580
|
* Database error; see the error code table.
|
|
98730
99581
|
*/
|
|
98731
99582
|
default: DatabaseDatabaseError;
|
|
98732
99583
|
};
|
|
98733
|
-
export type
|
|
98734
|
-
export type
|
|
99584
|
+
export type DatabaseTableListTablesError = DatabaseTableListTablesErrors[keyof DatabaseTableListTablesErrors];
|
|
99585
|
+
export type DatabaseTableListTablesResponses = {
|
|
98735
99586
|
/**
|
|
98736
99587
|
* Success
|
|
98737
99588
|
*/
|
|
@@ -98742,37 +99593,37 @@ export type DatabaseListTablesResponses = {
|
|
|
98742
99593
|
data: Array<DatabaseTable>;
|
|
98743
99594
|
};
|
|
98744
99595
|
};
|
|
98745
|
-
export type
|
|
98746
|
-
export type
|
|
99596
|
+
export type DatabaseTableListTablesResponse = DatabaseTableListTablesResponses[keyof DatabaseTableListTablesResponses];
|
|
99597
|
+
export type DatabaseTableCreateTableData = {
|
|
98747
99598
|
body: DatabaseCreateTableInput;
|
|
98748
99599
|
path: {
|
|
98749
99600
|
/**
|
|
98750
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99601
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98751
99602
|
*/
|
|
98752
99603
|
database_id: string;
|
|
98753
99604
|
};
|
|
98754
99605
|
query?: never;
|
|
98755
|
-
url: '/database/v1/
|
|
99606
|
+
url: '/database/v1/table/{database_id}/tables';
|
|
98756
99607
|
};
|
|
98757
|
-
export type
|
|
99608
|
+
export type DatabaseTableCreateTableErrors = {
|
|
98758
99609
|
/**
|
|
98759
99610
|
* Database error; see the error code table.
|
|
98760
99611
|
*/
|
|
98761
99612
|
default: DatabaseDatabaseError;
|
|
98762
99613
|
};
|
|
98763
|
-
export type
|
|
98764
|
-
export type
|
|
99614
|
+
export type DatabaseTableCreateTableError = DatabaseTableCreateTableErrors[keyof DatabaseTableCreateTableErrors];
|
|
99615
|
+
export type DatabaseTableCreateTableResponses = {
|
|
98765
99616
|
/**
|
|
98766
99617
|
* Success
|
|
98767
99618
|
*/
|
|
98768
99619
|
201: DatabaseTable;
|
|
98769
99620
|
};
|
|
98770
|
-
export type
|
|
98771
|
-
export type
|
|
99621
|
+
export type DatabaseTableCreateTableResponse = DatabaseTableCreateTableResponses[keyof DatabaseTableCreateTableResponses];
|
|
99622
|
+
export type DatabaseTableDeleteTableData = {
|
|
98772
99623
|
body?: never;
|
|
98773
99624
|
path: {
|
|
98774
99625
|
/**
|
|
98775
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99626
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98776
99627
|
*/
|
|
98777
99628
|
database_id: string;
|
|
98778
99629
|
/**
|
|
@@ -98781,16 +99632,16 @@ export type DatabaseDeleteTableData = {
|
|
|
98781
99632
|
table: string;
|
|
98782
99633
|
};
|
|
98783
99634
|
query?: never;
|
|
98784
|
-
url: '/database/v1/
|
|
99635
|
+
url: '/database/v1/table/{database_id}/tables/{table}';
|
|
98785
99636
|
};
|
|
98786
|
-
export type
|
|
99637
|
+
export type DatabaseTableDeleteTableErrors = {
|
|
98787
99638
|
/**
|
|
98788
99639
|
* Database error; see the error code table.
|
|
98789
99640
|
*/
|
|
98790
99641
|
default: DatabaseDatabaseError;
|
|
98791
99642
|
};
|
|
98792
|
-
export type
|
|
98793
|
-
export type
|
|
99643
|
+
export type DatabaseTableDeleteTableError = DatabaseTableDeleteTableErrors[keyof DatabaseTableDeleteTableErrors];
|
|
99644
|
+
export type DatabaseTableDeleteTableResponses = {
|
|
98794
99645
|
/**
|
|
98795
99646
|
* Success
|
|
98796
99647
|
*/
|
|
@@ -98801,12 +99652,12 @@ export type DatabaseDeleteTableResponses = {
|
|
|
98801
99652
|
deleted: true;
|
|
98802
99653
|
};
|
|
98803
99654
|
};
|
|
98804
|
-
export type
|
|
98805
|
-
export type
|
|
99655
|
+
export type DatabaseTableDeleteTableResponse = DatabaseTableDeleteTableResponses[keyof DatabaseTableDeleteTableResponses];
|
|
99656
|
+
export type DatabaseTableGetTableData = {
|
|
98806
99657
|
body?: never;
|
|
98807
99658
|
path: {
|
|
98808
99659
|
/**
|
|
98809
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99660
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98810
99661
|
*/
|
|
98811
99662
|
database_id: string;
|
|
98812
99663
|
/**
|
|
@@ -98815,27 +99666,27 @@ export type DatabaseGetTableData = {
|
|
|
98815
99666
|
table: string;
|
|
98816
99667
|
};
|
|
98817
99668
|
query?: never;
|
|
98818
|
-
url: '/database/v1/
|
|
99669
|
+
url: '/database/v1/table/{database_id}/tables/{table}';
|
|
98819
99670
|
};
|
|
98820
|
-
export type
|
|
99671
|
+
export type DatabaseTableGetTableErrors = {
|
|
98821
99672
|
/**
|
|
98822
99673
|
* Database error; see the error code table.
|
|
98823
99674
|
*/
|
|
98824
99675
|
default: DatabaseDatabaseError;
|
|
98825
99676
|
};
|
|
98826
|
-
export type
|
|
98827
|
-
export type
|
|
99677
|
+
export type DatabaseTableGetTableError = DatabaseTableGetTableErrors[keyof DatabaseTableGetTableErrors];
|
|
99678
|
+
export type DatabaseTableGetTableResponses = {
|
|
98828
99679
|
/**
|
|
98829
99680
|
* Success
|
|
98830
99681
|
*/
|
|
98831
99682
|
200: DatabaseTable;
|
|
98832
99683
|
};
|
|
98833
|
-
export type
|
|
98834
|
-
export type
|
|
99684
|
+
export type DatabaseTableGetTableResponse = DatabaseTableGetTableResponses[keyof DatabaseTableGetTableResponses];
|
|
99685
|
+
export type DatabaseTableUpdateTableData = {
|
|
98835
99686
|
body: DatabaseUpdateTableInput;
|
|
98836
99687
|
path: {
|
|
98837
99688
|
/**
|
|
98838
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99689
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98839
99690
|
*/
|
|
98840
99691
|
database_id: string;
|
|
98841
99692
|
/**
|
|
@@ -98844,27 +99695,27 @@ export type DatabaseUpdateTableData = {
|
|
|
98844
99695
|
table: string;
|
|
98845
99696
|
};
|
|
98846
99697
|
query?: never;
|
|
98847
|
-
url: '/database/v1/
|
|
99698
|
+
url: '/database/v1/table/{database_id}/tables/{table}';
|
|
98848
99699
|
};
|
|
98849
|
-
export type
|
|
99700
|
+
export type DatabaseTableUpdateTableErrors = {
|
|
98850
99701
|
/**
|
|
98851
99702
|
* Database error; see the error code table.
|
|
98852
99703
|
*/
|
|
98853
99704
|
default: DatabaseDatabaseError;
|
|
98854
99705
|
};
|
|
98855
|
-
export type
|
|
98856
|
-
export type
|
|
99706
|
+
export type DatabaseTableUpdateTableError = DatabaseTableUpdateTableErrors[keyof DatabaseTableUpdateTableErrors];
|
|
99707
|
+
export type DatabaseTableUpdateTableResponses = {
|
|
98857
99708
|
/**
|
|
98858
99709
|
* Success
|
|
98859
99710
|
*/
|
|
98860
99711
|
200: DatabaseTable;
|
|
98861
99712
|
};
|
|
98862
|
-
export type
|
|
98863
|
-
export type
|
|
99713
|
+
export type DatabaseTableUpdateTableResponse = DatabaseTableUpdateTableResponses[keyof DatabaseTableUpdateTableResponses];
|
|
99714
|
+
export type DatabaseTableAddFieldData = {
|
|
98864
99715
|
body: DatabaseNewField;
|
|
98865
99716
|
path: {
|
|
98866
99717
|
/**
|
|
98867
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99718
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98868
99719
|
*/
|
|
98869
99720
|
database_id: string;
|
|
98870
99721
|
/**
|
|
@@ -98873,27 +99724,27 @@ export type DatabaseAddFieldData = {
|
|
|
98873
99724
|
table: string;
|
|
98874
99725
|
};
|
|
98875
99726
|
query?: never;
|
|
98876
|
-
url: '/database/v1/
|
|
99727
|
+
url: '/database/v1/table/{database_id}/tables/{table}/fields';
|
|
98877
99728
|
};
|
|
98878
|
-
export type
|
|
99729
|
+
export type DatabaseTableAddFieldErrors = {
|
|
98879
99730
|
/**
|
|
98880
99731
|
* Database error; see the error code table.
|
|
98881
99732
|
*/
|
|
98882
99733
|
default: DatabaseDatabaseError;
|
|
98883
99734
|
};
|
|
98884
|
-
export type
|
|
98885
|
-
export type
|
|
99735
|
+
export type DatabaseTableAddFieldError = DatabaseTableAddFieldErrors[keyof DatabaseTableAddFieldErrors];
|
|
99736
|
+
export type DatabaseTableAddFieldResponses = {
|
|
98886
99737
|
/**
|
|
98887
99738
|
* Success
|
|
98888
99739
|
*/
|
|
98889
99740
|
201: DatabaseTable;
|
|
98890
99741
|
};
|
|
98891
|
-
export type
|
|
98892
|
-
export type
|
|
99742
|
+
export type DatabaseTableAddFieldResponse = DatabaseTableAddFieldResponses[keyof DatabaseTableAddFieldResponses];
|
|
99743
|
+
export type DatabaseTableDeleteFieldData = {
|
|
98893
99744
|
body?: never;
|
|
98894
99745
|
path: {
|
|
98895
99746
|
/**
|
|
98896
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99747
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98897
99748
|
*/
|
|
98898
99749
|
database_id: string;
|
|
98899
99750
|
/**
|
|
@@ -98906,27 +99757,27 @@ export type DatabaseDeleteFieldData = {
|
|
|
98906
99757
|
field: string;
|
|
98907
99758
|
};
|
|
98908
99759
|
query?: never;
|
|
98909
|
-
url: '/database/v1/
|
|
99760
|
+
url: '/database/v1/table/{database_id}/tables/{table}/fields/{field}';
|
|
98910
99761
|
};
|
|
98911
|
-
export type
|
|
99762
|
+
export type DatabaseTableDeleteFieldErrors = {
|
|
98912
99763
|
/**
|
|
98913
99764
|
* Database error; see the error code table.
|
|
98914
99765
|
*/
|
|
98915
99766
|
default: DatabaseDatabaseError;
|
|
98916
99767
|
};
|
|
98917
|
-
export type
|
|
98918
|
-
export type
|
|
99768
|
+
export type DatabaseTableDeleteFieldError = DatabaseTableDeleteFieldErrors[keyof DatabaseTableDeleteFieldErrors];
|
|
99769
|
+
export type DatabaseTableDeleteFieldResponses = {
|
|
98919
99770
|
/**
|
|
98920
99771
|
* Success
|
|
98921
99772
|
*/
|
|
98922
99773
|
200: DatabaseTable;
|
|
98923
99774
|
};
|
|
98924
|
-
export type
|
|
98925
|
-
export type
|
|
99775
|
+
export type DatabaseTableDeleteFieldResponse = DatabaseTableDeleteFieldResponses[keyof DatabaseTableDeleteFieldResponses];
|
|
99776
|
+
export type DatabaseTableUpdateFieldData = {
|
|
98926
99777
|
body: DatabaseUpdateFieldInput;
|
|
98927
99778
|
path: {
|
|
98928
99779
|
/**
|
|
98929
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99780
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98930
99781
|
*/
|
|
98931
99782
|
database_id: string;
|
|
98932
99783
|
/**
|
|
@@ -98939,27 +99790,27 @@ export type DatabaseUpdateFieldData = {
|
|
|
98939
99790
|
field: string;
|
|
98940
99791
|
};
|
|
98941
99792
|
query?: never;
|
|
98942
|
-
url: '/database/v1/
|
|
99793
|
+
url: '/database/v1/table/{database_id}/tables/{table}/fields/{field}';
|
|
98943
99794
|
};
|
|
98944
|
-
export type
|
|
99795
|
+
export type DatabaseTableUpdateFieldErrors = {
|
|
98945
99796
|
/**
|
|
98946
99797
|
* Database error; see the error code table.
|
|
98947
99798
|
*/
|
|
98948
99799
|
default: DatabaseDatabaseError;
|
|
98949
99800
|
};
|
|
98950
|
-
export type
|
|
98951
|
-
export type
|
|
99801
|
+
export type DatabaseTableUpdateFieldError = DatabaseTableUpdateFieldErrors[keyof DatabaseTableUpdateFieldErrors];
|
|
99802
|
+
export type DatabaseTableUpdateFieldResponses = {
|
|
98952
99803
|
/**
|
|
98953
99804
|
* Success
|
|
98954
99805
|
*/
|
|
98955
99806
|
200: DatabaseTable;
|
|
98956
99807
|
};
|
|
98957
|
-
export type
|
|
98958
|
-
export type
|
|
99808
|
+
export type DatabaseTableUpdateFieldResponse = DatabaseTableUpdateFieldResponses[keyof DatabaseTableUpdateFieldResponses];
|
|
99809
|
+
export type DatabaseTableListEventsData = {
|
|
98959
99810
|
body?: never;
|
|
98960
99811
|
path: {
|
|
98961
99812
|
/**
|
|
98962
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99813
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
98963
99814
|
*/
|
|
98964
99815
|
database_id: string;
|
|
98965
99816
|
};
|
|
@@ -98981,9 +99832,9 @@ export type DatabaseListEventsData = {
|
|
|
98981
99832
|
*/
|
|
98982
99833
|
before_seq?: number;
|
|
98983
99834
|
};
|
|
98984
|
-
url: '/database/v1/
|
|
99835
|
+
url: '/database/v1/table/{database_id}/events';
|
|
98985
99836
|
};
|
|
98986
|
-
export type
|
|
99837
|
+
export type DatabaseTableListEventsErrors = {
|
|
98987
99838
|
/**
|
|
98988
99839
|
* INVALID_PARAMS: both cursors supplied, before_seq with order=asc, or invalid parameters.
|
|
98989
99840
|
*/
|
|
@@ -98993,8 +99844,8 @@ export type DatabaseListEventsErrors = {
|
|
|
98993
99844
|
*/
|
|
98994
99845
|
default: DatabaseDatabaseError;
|
|
98995
99846
|
};
|
|
98996
|
-
export type
|
|
98997
|
-
export type
|
|
99847
|
+
export type DatabaseTableListEventsError = DatabaseTableListEventsErrors[keyof DatabaseTableListEventsErrors];
|
|
99848
|
+
export type DatabaseTableListEventsResponses = {
|
|
98998
99849
|
/**
|
|
98999
99850
|
* Success
|
|
99000
99851
|
*/
|
|
@@ -99005,8 +99856,59 @@ export type DatabaseListEventsResponses = {
|
|
|
99005
99856
|
data: Array<DatabaseDatabaseEvent>;
|
|
99006
99857
|
};
|
|
99007
99858
|
};
|
|
99008
|
-
export type
|
|
99009
|
-
export type
|
|
99859
|
+
export type DatabaseTableListEventsResponse = DatabaseTableListEventsResponses[keyof DatabaseTableListEventsResponses];
|
|
99860
|
+
export type DatabaseKvListEventsData = {
|
|
99861
|
+
body?: never;
|
|
99862
|
+
path: {
|
|
99863
|
+
/**
|
|
99864
|
+
* Identifier of the key-value database to act on: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
99865
|
+
*/
|
|
99866
|
+
database_id: string;
|
|
99867
|
+
};
|
|
99868
|
+
query?: {
|
|
99869
|
+
/**
|
|
99870
|
+
* With order=asc, return only events with seq greater than this value. Cannot be combined with before_seq.
|
|
99871
|
+
*/
|
|
99872
|
+
after_seq?: number;
|
|
99873
|
+
/**
|
|
99874
|
+
* Page size.
|
|
99875
|
+
*/
|
|
99876
|
+
limit?: number;
|
|
99877
|
+
/**
|
|
99878
|
+
* Sequence order: asc or desc (newest first). Defaults to asc, or to desc when before_seq is supplied.
|
|
99879
|
+
*/
|
|
99880
|
+
order?: 'asc' | 'desc';
|
|
99881
|
+
/**
|
|
99882
|
+
* Return only events with seq less than this value, newest first; implies order=desc when order is omitted. Cannot be combined with after_seq or order=asc.
|
|
99883
|
+
*/
|
|
99884
|
+
before_seq?: number;
|
|
99885
|
+
};
|
|
99886
|
+
url: '/database/v1/kv/{database_id}/events';
|
|
99887
|
+
};
|
|
99888
|
+
export type DatabaseKvListEventsErrors = {
|
|
99889
|
+
/**
|
|
99890
|
+
* INVALID_PARAMS: both cursors supplied, before_seq with order=asc, or invalid parameters.
|
|
99891
|
+
*/
|
|
99892
|
+
400: DatabaseDatabaseError;
|
|
99893
|
+
/**
|
|
99894
|
+
* Database error; see the error code table.
|
|
99895
|
+
*/
|
|
99896
|
+
default: DatabaseDatabaseError;
|
|
99897
|
+
};
|
|
99898
|
+
export type DatabaseKvListEventsError = DatabaseKvListEventsErrors[keyof DatabaseKvListEventsErrors];
|
|
99899
|
+
export type DatabaseKvListEventsResponses = {
|
|
99900
|
+
/**
|
|
99901
|
+
* Success
|
|
99902
|
+
*/
|
|
99903
|
+
200: DatabasePage & {
|
|
99904
|
+
/**
|
|
99905
|
+
* Events on this page in the requested order (ascending seq by default, newest first with before_seq or order=desc).
|
|
99906
|
+
*/
|
|
99907
|
+
data: Array<DatabaseDatabaseEvent>;
|
|
99908
|
+
};
|
|
99909
|
+
};
|
|
99910
|
+
export type DatabaseKvListEventsResponse = DatabaseKvListEventsResponses[keyof DatabaseKvListEventsResponses];
|
|
99911
|
+
export type DatabaseTableDeleteData = {
|
|
99010
99912
|
body?: never;
|
|
99011
99913
|
headers?: {
|
|
99012
99914
|
/**
|
|
@@ -99028,7 +99930,7 @@ export type DatabaseDeleteData = {
|
|
|
99028
99930
|
};
|
|
99029
99931
|
path: {
|
|
99030
99932
|
/**
|
|
99031
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
99933
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
99032
99934
|
*/
|
|
99033
99935
|
database_id: string;
|
|
99034
99936
|
/**
|
|
@@ -99082,9 +99984,9 @@ export type DatabaseDeleteData = {
|
|
|
99082
99984
|
*/
|
|
99083
99985
|
columns?: string;
|
|
99084
99986
|
};
|
|
99085
|
-
url: '/database/v1/
|
|
99987
|
+
url: '/database/v1/table/{database_id}/rest/{table}';
|
|
99086
99988
|
};
|
|
99087
|
-
export type
|
|
99989
|
+
export type DatabaseTableDeleteErrors = {
|
|
99088
99990
|
/**
|
|
99089
99991
|
* PostgREST error; see the error code table.
|
|
99090
99992
|
*/
|
|
@@ -99110,8 +100012,8 @@ export type DatabaseDeleteErrors = {
|
|
|
99110
100012
|
*/
|
|
99111
100013
|
500: DatabasePostgrestError;
|
|
99112
100014
|
};
|
|
99113
|
-
export type
|
|
99114
|
-
export type
|
|
100015
|
+
export type DatabaseTableDeleteError = DatabaseTableDeleteErrors[keyof DatabaseTableDeleteErrors];
|
|
100016
|
+
export type DatabaseTableDeleteResponses = {
|
|
99115
100017
|
/**
|
|
99116
100018
|
* Success; write bodies require Prefer: return=representation
|
|
99117
100019
|
*/
|
|
@@ -99121,8 +100023,8 @@ export type DatabaseDeleteResponses = {
|
|
|
99121
100023
|
*/
|
|
99122
100024
|
204: void;
|
|
99123
100025
|
};
|
|
99124
|
-
export type
|
|
99125
|
-
export type
|
|
100026
|
+
export type DatabaseTableDeleteResponse = DatabaseTableDeleteResponses[keyof DatabaseTableDeleteResponses];
|
|
100027
|
+
export type DatabaseTableSelectData = {
|
|
99126
100028
|
body?: never;
|
|
99127
100029
|
headers?: {
|
|
99128
100030
|
/**
|
|
@@ -99148,7 +100050,1370 @@ export type DatabaseSelectData = {
|
|
|
99148
100050
|
};
|
|
99149
100051
|
path: {
|
|
99150
100052
|
/**
|
|
99151
|
-
* Identifier of the database to act on: the id (db_…) returned by
|
|
100053
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
100054
|
+
*/
|
|
100055
|
+
database_id: string;
|
|
100056
|
+
/**
|
|
100057
|
+
* table ID or name.
|
|
100058
|
+
*/
|
|
100059
|
+
table: string;
|
|
100060
|
+
};
|
|
100061
|
+
query?: {
|
|
100062
|
+
/**
|
|
100063
|
+
* Comma-separated columns; supports *, aliases, JSON paths and link-based embedding. Casts, aggregates, spread and join modifiers are unsupported.
|
|
100064
|
+
*/
|
|
100065
|
+
select?: string;
|
|
100066
|
+
/**
|
|
100067
|
+
* Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported.
|
|
100068
|
+
*/
|
|
100069
|
+
'{column}'?: string;
|
|
100070
|
+
/**
|
|
100071
|
+
* Parenthesized conditions, e.g. (done.eq.false,title.neq.draft).
|
|
100072
|
+
*/
|
|
100073
|
+
and?: string;
|
|
100074
|
+
/**
|
|
100075
|
+
* Parenthesized alternatives; not.and and not.or are also supported.
|
|
100076
|
+
*/
|
|
100077
|
+
or?: string;
|
|
100078
|
+
/**
|
|
100079
|
+
* Negated conjunction.
|
|
100080
|
+
*/
|
|
100081
|
+
'not.and'?: string;
|
|
100082
|
+
/**
|
|
100083
|
+
* Negated disjunction.
|
|
100084
|
+
*/
|
|
100085
|
+
'not.or'?: string;
|
|
100086
|
+
/**
|
|
100087
|
+
* Comma-separated columns with asc/desc and nullsfirst/nullslast; JSON paths allowed.
|
|
100088
|
+
*/
|
|
100089
|
+
order?: string;
|
|
100090
|
+
/**
|
|
100091
|
+
* Maximum page size. Defaults to 1000; values above 1000 are accepted and capped at 1000.
|
|
100092
|
+
*/
|
|
100093
|
+
limit?: number;
|
|
100094
|
+
/**
|
|
100095
|
+
* Rows to skip.
|
|
100096
|
+
*/
|
|
100097
|
+
offset?: number;
|
|
100098
|
+
/**
|
|
100099
|
+
* POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id.
|
|
100100
|
+
*/
|
|
100101
|
+
on_conflict?: string;
|
|
100102
|
+
/**
|
|
100103
|
+
* Comma-separated input columns; keys outside this set are ignored.
|
|
100104
|
+
*/
|
|
100105
|
+
columns?: string;
|
|
100106
|
+
};
|
|
100107
|
+
url: '/database/v1/table/{database_id}/rest/{table}';
|
|
100108
|
+
};
|
|
100109
|
+
export type DatabaseTableSelectErrors = {
|
|
100110
|
+
/**
|
|
100111
|
+
* PostgREST error; see the error code table.
|
|
100112
|
+
*/
|
|
100113
|
+
400: DatabasePostgrestError;
|
|
100114
|
+
/**
|
|
100115
|
+
* PostgREST error; see the error code table.
|
|
100116
|
+
*/
|
|
100117
|
+
404: DatabasePostgrestError;
|
|
100118
|
+
/**
|
|
100119
|
+
* PostgREST error; see the error code table.
|
|
100120
|
+
*/
|
|
100121
|
+
406: DatabasePostgrestError;
|
|
100122
|
+
/**
|
|
100123
|
+
* PostgREST error; see the error code table.
|
|
100124
|
+
*/
|
|
100125
|
+
409: DatabasePostgrestError;
|
|
100126
|
+
/**
|
|
100127
|
+
* PostgREST error; see the error code table.
|
|
100128
|
+
*/
|
|
100129
|
+
416: DatabasePostgrestError;
|
|
100130
|
+
/**
|
|
100131
|
+
* PostgREST error; see the error code table.
|
|
100132
|
+
*/
|
|
100133
|
+
500: DatabasePostgrestError;
|
|
100134
|
+
};
|
|
100135
|
+
export type DatabaseTableSelectError = DatabaseTableSelectErrors[keyof DatabaseTableSelectErrors];
|
|
100136
|
+
export type DatabaseTableSelectResponses = {
|
|
100137
|
+
/**
|
|
100138
|
+
* Success; write bodies require Prefer: return=representation
|
|
100139
|
+
*/
|
|
100140
|
+
200: Array<DatabaseRow | DatabaseProjectedRow>;
|
|
100141
|
+
/**
|
|
100142
|
+
* Partial range with requested count
|
|
100143
|
+
*/
|
|
100144
|
+
206: Array<DatabaseRow | DatabaseProjectedRow>;
|
|
100145
|
+
};
|
|
100146
|
+
export type DatabaseTableSelectResponse = DatabaseTableSelectResponses[keyof DatabaseTableSelectResponses];
|
|
100147
|
+
export type DatabaseTableHeadData = {
|
|
100148
|
+
body?: never;
|
|
100149
|
+
headers?: {
|
|
100150
|
+
/**
|
|
100151
|
+
* Inclusive row interval, e.g. 0-9. Intersects limit/offset, then caps the page at 1000 rows; open-ended ranges use the same cap.
|
|
100152
|
+
*/
|
|
100153
|
+
Range?: string;
|
|
100154
|
+
/**
|
|
100155
|
+
* items; other units cause Range to be ignored.
|
|
100156
|
+
*/
|
|
100157
|
+
'Range-Unit'?: string;
|
|
100158
|
+
/**
|
|
100159
|
+
* Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122).
|
|
100160
|
+
*/
|
|
100161
|
+
Prefer?: string;
|
|
100162
|
+
/**
|
|
100163
|
+
* application/json, **, or application/vnd.pgrst.object+json. Singular output requires exactly one row; otherwise 406 PGRST116. Other media types return 406 PGRST107; text/csv, application/geo+json and application/vnd.pgrst.plan return 400 PGRST127.
|
|
100164
|
+
*/
|
|
100165
|
+
Accept?: string;
|
|
100166
|
+
/**
|
|
100167
|
+
* Entity tag from a previous GET or HEAD (weak comparison). When it matches the current ETag the response is 304 with no body.
|
|
100168
|
+
*/
|
|
100169
|
+
'If-None-Match'?: string;
|
|
100170
|
+
};
|
|
100171
|
+
path: {
|
|
100172
|
+
/**
|
|
100173
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
100174
|
+
*/
|
|
100175
|
+
database_id: string;
|
|
100176
|
+
/**
|
|
100177
|
+
* table ID or name.
|
|
100178
|
+
*/
|
|
100179
|
+
table: string;
|
|
100180
|
+
};
|
|
100181
|
+
query?: {
|
|
100182
|
+
/**
|
|
100183
|
+
* Comma-separated columns; supports *, aliases, JSON paths and link-based embedding. Casts, aggregates, spread and join modifiers are unsupported.
|
|
100184
|
+
*/
|
|
100185
|
+
select?: string;
|
|
100186
|
+
/**
|
|
100187
|
+
* Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported.
|
|
100188
|
+
*/
|
|
100189
|
+
'{column}'?: string;
|
|
100190
|
+
/**
|
|
100191
|
+
* Parenthesized conditions, e.g. (done.eq.false,title.neq.draft).
|
|
100192
|
+
*/
|
|
100193
|
+
and?: string;
|
|
100194
|
+
/**
|
|
100195
|
+
* Parenthesized alternatives; not.and and not.or are also supported.
|
|
100196
|
+
*/
|
|
100197
|
+
or?: string;
|
|
100198
|
+
/**
|
|
100199
|
+
* Negated conjunction.
|
|
100200
|
+
*/
|
|
100201
|
+
'not.and'?: string;
|
|
100202
|
+
/**
|
|
100203
|
+
* Negated disjunction.
|
|
100204
|
+
*/
|
|
100205
|
+
'not.or'?: string;
|
|
100206
|
+
/**
|
|
100207
|
+
* Comma-separated columns with asc/desc and nullsfirst/nullslast; JSON paths allowed.
|
|
100208
|
+
*/
|
|
100209
|
+
order?: string;
|
|
100210
|
+
/**
|
|
100211
|
+
* Maximum page size. Defaults to 1000; values above 1000 are accepted and capped at 1000.
|
|
100212
|
+
*/
|
|
100213
|
+
limit?: number;
|
|
100214
|
+
/**
|
|
100215
|
+
* Rows to skip.
|
|
100216
|
+
*/
|
|
100217
|
+
offset?: number;
|
|
100218
|
+
/**
|
|
100219
|
+
* POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id.
|
|
100220
|
+
*/
|
|
100221
|
+
on_conflict?: string;
|
|
100222
|
+
/**
|
|
100223
|
+
* Comma-separated input columns; keys outside this set are ignored.
|
|
100224
|
+
*/
|
|
100225
|
+
columns?: string;
|
|
100226
|
+
};
|
|
100227
|
+
url: '/database/v1/table/{database_id}/rest/{table}';
|
|
100228
|
+
};
|
|
100229
|
+
export type DatabaseTableHeadErrors = {
|
|
100230
|
+
/**
|
|
100231
|
+
* PostgREST error; see the error code table.
|
|
100232
|
+
*/
|
|
100233
|
+
400: DatabasePostgrestError;
|
|
100234
|
+
/**
|
|
100235
|
+
* PostgREST error; see the error code table.
|
|
100236
|
+
*/
|
|
100237
|
+
404: DatabasePostgrestError;
|
|
100238
|
+
/**
|
|
100239
|
+
* PostgREST error; see the error code table.
|
|
100240
|
+
*/
|
|
100241
|
+
406: DatabasePostgrestError;
|
|
100242
|
+
/**
|
|
100243
|
+
* PostgREST error; see the error code table.
|
|
100244
|
+
*/
|
|
100245
|
+
409: DatabasePostgrestError;
|
|
100246
|
+
/**
|
|
100247
|
+
* PostgREST error; see the error code table.
|
|
100248
|
+
*/
|
|
100249
|
+
416: DatabasePostgrestError;
|
|
100250
|
+
/**
|
|
100251
|
+
* PostgREST error; see the error code table.
|
|
100252
|
+
*/
|
|
100253
|
+
500: DatabasePostgrestError;
|
|
100254
|
+
};
|
|
100255
|
+
export type DatabaseTableHeadError = DatabaseTableHeadErrors[keyof DatabaseTableHeadErrors];
|
|
100256
|
+
export type DatabaseTableHeadResponses = {
|
|
100257
|
+
/**
|
|
100258
|
+
* Success; write bodies require Prefer: return=representation
|
|
100259
|
+
*/
|
|
100260
|
+
200: unknown;
|
|
100261
|
+
/**
|
|
100262
|
+
* Partial range with requested count
|
|
100263
|
+
*/
|
|
100264
|
+
206: unknown;
|
|
100265
|
+
};
|
|
100266
|
+
export type DatabaseTableUpdateData = {
|
|
100267
|
+
body: {
|
|
100268
|
+
[key: string]: unknown;
|
|
100269
|
+
};
|
|
100270
|
+
headers?: {
|
|
100271
|
+
/**
|
|
100272
|
+
* GET/HEAD inclusive row interval, e.g. 0-9. Intersects limit/offset.
|
|
100273
|
+
*/
|
|
100274
|
+
Range?: string;
|
|
100275
|
+
/**
|
|
100276
|
+
* items; other units cause Range to be ignored.
|
|
100277
|
+
*/
|
|
100278
|
+
'Range-Unit'?: string;
|
|
100279
|
+
/**
|
|
100280
|
+
* Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122).
|
|
100281
|
+
*/
|
|
100282
|
+
Prefer?: string;
|
|
100283
|
+
/**
|
|
100284
|
+
* application/json, **, or application/vnd.pgrst.object+json. Singular output requires exactly one row; otherwise 406 PGRST116. Other media types return 406 PGRST107; text/csv, application/geo+json and application/vnd.pgrst.plan return 400 PGRST127.
|
|
100285
|
+
*/
|
|
100286
|
+
Accept?: string;
|
|
100287
|
+
};
|
|
100288
|
+
path: {
|
|
100289
|
+
/**
|
|
100290
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
100291
|
+
*/
|
|
100292
|
+
database_id: string;
|
|
100293
|
+
/**
|
|
100294
|
+
* table ID or name.
|
|
100295
|
+
*/
|
|
100296
|
+
table: string;
|
|
100297
|
+
};
|
|
100298
|
+
query?: {
|
|
100299
|
+
/**
|
|
100300
|
+
* Comma-separated columns; supports *, aliases, JSON paths and link-based embedding. Casts, aggregates, spread and join modifiers are unsupported.
|
|
100301
|
+
*/
|
|
100302
|
+
select?: string;
|
|
100303
|
+
/**
|
|
100304
|
+
* Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported.
|
|
100305
|
+
*/
|
|
100306
|
+
'{column}'?: string;
|
|
100307
|
+
/**
|
|
100308
|
+
* Parenthesized conditions, e.g. (done.eq.false,title.neq.draft).
|
|
100309
|
+
*/
|
|
100310
|
+
and?: string;
|
|
100311
|
+
/**
|
|
100312
|
+
* Parenthesized alternatives; not.and and not.or are also supported.
|
|
100313
|
+
*/
|
|
100314
|
+
or?: string;
|
|
100315
|
+
/**
|
|
100316
|
+
* Negated conjunction.
|
|
100317
|
+
*/
|
|
100318
|
+
'not.and'?: string;
|
|
100319
|
+
/**
|
|
100320
|
+
* Negated disjunction.
|
|
100321
|
+
*/
|
|
100322
|
+
'not.or'?: string;
|
|
100323
|
+
/**
|
|
100324
|
+
* Comma-separated columns with asc/desc and nullsfirst/nullslast; JSON paths allowed.
|
|
100325
|
+
*/
|
|
100326
|
+
order?: string;
|
|
100327
|
+
/**
|
|
100328
|
+
* Maximum returned rows.
|
|
100329
|
+
*/
|
|
100330
|
+
limit?: number;
|
|
100331
|
+
/**
|
|
100332
|
+
* Rows to skip.
|
|
100333
|
+
*/
|
|
100334
|
+
offset?: number;
|
|
100335
|
+
/**
|
|
100336
|
+
* POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id.
|
|
100337
|
+
*/
|
|
100338
|
+
on_conflict?: string;
|
|
100339
|
+
/**
|
|
100340
|
+
* Comma-separated input columns; keys outside this set are ignored.
|
|
100341
|
+
*/
|
|
100342
|
+
columns?: string;
|
|
100343
|
+
};
|
|
100344
|
+
url: '/database/v1/table/{database_id}/rest/{table}';
|
|
100345
|
+
};
|
|
100346
|
+
export type DatabaseTableUpdateErrors = {
|
|
100347
|
+
/**
|
|
100348
|
+
* PostgREST error; see the error code table.
|
|
100349
|
+
*/
|
|
100350
|
+
400: DatabasePostgrestError;
|
|
100351
|
+
/**
|
|
100352
|
+
* PostgREST error; see the error code table.
|
|
100353
|
+
*/
|
|
100354
|
+
404: DatabasePostgrestError;
|
|
100355
|
+
/**
|
|
100356
|
+
* PostgREST error; see the error code table.
|
|
100357
|
+
*/
|
|
100358
|
+
406: DatabasePostgrestError;
|
|
100359
|
+
/**
|
|
100360
|
+
* PostgREST error; see the error code table.
|
|
100361
|
+
*/
|
|
100362
|
+
409: DatabasePostgrestError;
|
|
100363
|
+
/**
|
|
100364
|
+
* PostgREST error; see the error code table.
|
|
100365
|
+
*/
|
|
100366
|
+
416: DatabasePostgrestError;
|
|
100367
|
+
/**
|
|
100368
|
+
* PostgREST error; see the error code table.
|
|
100369
|
+
*/
|
|
100370
|
+
500: DatabasePostgrestError;
|
|
100371
|
+
};
|
|
100372
|
+
export type DatabaseTableUpdateError = DatabaseTableUpdateErrors[keyof DatabaseTableUpdateErrors];
|
|
100373
|
+
export type DatabaseTableUpdateResponses = {
|
|
100374
|
+
/**
|
|
100375
|
+
* Success; write bodies require Prefer: return=representation
|
|
100376
|
+
*/
|
|
100377
|
+
200: Array<DatabaseRow | DatabaseProjectedRow>;
|
|
100378
|
+
/**
|
|
100379
|
+
* Success without a body
|
|
100380
|
+
*/
|
|
100381
|
+
204: void;
|
|
100382
|
+
};
|
|
100383
|
+
export type DatabaseTableUpdateResponse = DatabaseTableUpdateResponses[keyof DatabaseTableUpdateResponses];
|
|
100384
|
+
export type DatabaseTableInsertData = {
|
|
100385
|
+
body: {
|
|
100386
|
+
[key: string]: unknown;
|
|
100387
|
+
} | Array<{
|
|
100388
|
+
[key: string]: unknown;
|
|
100389
|
+
}>;
|
|
100390
|
+
headers?: {
|
|
100391
|
+
/**
|
|
100392
|
+
* GET/HEAD inclusive row interval, e.g. 0-9. Intersects limit/offset.
|
|
100393
|
+
*/
|
|
100394
|
+
Range?: string;
|
|
100395
|
+
/**
|
|
100396
|
+
* items; other units cause Range to be ignored.
|
|
100397
|
+
*/
|
|
100398
|
+
'Range-Unit'?: string;
|
|
100399
|
+
/**
|
|
100400
|
+
* Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122).
|
|
100401
|
+
*/
|
|
100402
|
+
Prefer?: string;
|
|
100403
|
+
/**
|
|
100404
|
+
* application/json, **, or application/vnd.pgrst.object+json. Singular output requires exactly one row; otherwise 406 PGRST116. Other media types return 406 PGRST107; text/csv, application/geo+json and application/vnd.pgrst.plan return 400 PGRST127.
|
|
100405
|
+
*/
|
|
100406
|
+
Accept?: string;
|
|
100407
|
+
};
|
|
100408
|
+
path: {
|
|
100409
|
+
/**
|
|
100410
|
+
* Identifier of the table database to act on: the id (db_…) returned by databaseCreateTableDatabase or databaseListTableDatabases. A display name is not accepted; the id of a key-value database returns 404 DATABASE_NOT_FOUND.
|
|
100411
|
+
*/
|
|
100412
|
+
database_id: string;
|
|
100413
|
+
/**
|
|
100414
|
+
* table ID or name.
|
|
100415
|
+
*/
|
|
100416
|
+
table: string;
|
|
100417
|
+
};
|
|
100418
|
+
query?: {
|
|
100419
|
+
/**
|
|
100420
|
+
* Comma-separated columns; supports *, aliases, JSON paths and link-based embedding. Casts, aggregates, spread and join modifiers are unsupported.
|
|
100421
|
+
*/
|
|
100422
|
+
select?: string;
|
|
100423
|
+
/**
|
|
100424
|
+
* Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported.
|
|
100425
|
+
*/
|
|
100426
|
+
'{column}'?: string;
|
|
100427
|
+
/**
|
|
100428
|
+
* Parenthesized conditions, e.g. (done.eq.false,title.neq.draft).
|
|
100429
|
+
*/
|
|
100430
|
+
and?: string;
|
|
100431
|
+
/**
|
|
100432
|
+
* Parenthesized alternatives; not.and and not.or are also supported.
|
|
100433
|
+
*/
|
|
100434
|
+
or?: string;
|
|
100435
|
+
/**
|
|
100436
|
+
* Negated conjunction.
|
|
100437
|
+
*/
|
|
100438
|
+
'not.and'?: string;
|
|
100439
|
+
/**
|
|
100440
|
+
* Negated disjunction.
|
|
100441
|
+
*/
|
|
100442
|
+
'not.or'?: string;
|
|
100443
|
+
/**
|
|
100444
|
+
* Comma-separated columns with asc/desc and nullsfirst/nullslast; JSON paths allowed.
|
|
100445
|
+
*/
|
|
100446
|
+
order?: string;
|
|
100447
|
+
/**
|
|
100448
|
+
* Maximum returned rows.
|
|
100449
|
+
*/
|
|
100450
|
+
limit?: number;
|
|
100451
|
+
/**
|
|
100452
|
+
* Rows to skip.
|
|
100453
|
+
*/
|
|
100454
|
+
offset?: number;
|
|
100455
|
+
/**
|
|
100456
|
+
* POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id.
|
|
100457
|
+
*/
|
|
100458
|
+
on_conflict?: string;
|
|
100459
|
+
/**
|
|
100460
|
+
* Comma-separated input columns; keys outside this set are ignored.
|
|
100461
|
+
*/
|
|
100462
|
+
columns?: string;
|
|
100463
|
+
};
|
|
100464
|
+
url: '/database/v1/table/{database_id}/rest/{table}';
|
|
100465
|
+
};
|
|
100466
|
+
export type DatabaseTableInsertErrors = {
|
|
100467
|
+
/**
|
|
100468
|
+
* PostgREST error; see the error code table.
|
|
100469
|
+
*/
|
|
100470
|
+
400: DatabasePostgrestError;
|
|
100471
|
+
/**
|
|
100472
|
+
* PostgREST error; see the error code table.
|
|
100473
|
+
*/
|
|
100474
|
+
404: DatabasePostgrestError;
|
|
100475
|
+
/**
|
|
100476
|
+
* PostgREST error; see the error code table.
|
|
100477
|
+
*/
|
|
100478
|
+
406: DatabasePostgrestError;
|
|
100479
|
+
/**
|
|
100480
|
+
* PostgREST error; see the error code table.
|
|
100481
|
+
*/
|
|
100482
|
+
409: DatabasePostgrestError;
|
|
100483
|
+
/**
|
|
100484
|
+
* PostgREST error; see the error code table.
|
|
100485
|
+
*/
|
|
100486
|
+
416: DatabasePostgrestError;
|
|
100487
|
+
/**
|
|
100488
|
+
* PostgREST error; see the error code table.
|
|
100489
|
+
*/
|
|
100490
|
+
500: DatabasePostgrestError;
|
|
100491
|
+
};
|
|
100492
|
+
export type DatabaseTableInsertError = DatabaseTableInsertErrors[keyof DatabaseTableInsertErrors];
|
|
100493
|
+
export type DatabaseTableInsertResponses = {
|
|
100494
|
+
/**
|
|
100495
|
+
* Success (201). With the default return=minimal the body is empty; Prefer: return=representation returns rows.
|
|
100496
|
+
*/
|
|
100497
|
+
201: Array<DatabaseRow | DatabaseProjectedRow>;
|
|
100498
|
+
};
|
|
100499
|
+
export type DatabaseTableInsertResponse = DatabaseTableInsertResponses[keyof DatabaseTableInsertResponses];
|
|
100500
|
+
export type DatabaseKvListKeysData = {
|
|
100501
|
+
body?: never;
|
|
100502
|
+
path: {
|
|
100503
|
+
/**
|
|
100504
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
100505
|
+
*/
|
|
100506
|
+
database_id: string;
|
|
100507
|
+
};
|
|
100508
|
+
query?: {
|
|
100509
|
+
/**
|
|
100510
|
+
* Keys per page, 1–500, default 50; a value outside the range returns 400 INVALID_PARAMS.
|
|
100511
|
+
*/
|
|
100512
|
+
limit?: number;
|
|
100513
|
+
/**
|
|
100514
|
+
* The next_cursor of the previous page, passed back unchanged; omit it to start from the first key.
|
|
100515
|
+
*/
|
|
100516
|
+
cursor?: string;
|
|
100517
|
+
/**
|
|
100518
|
+
* Redis glob (* any run, ? one character, [abc] a set, [^abc] a negated set) matched against the whole key, for example user:*; omitted returns every key.
|
|
100519
|
+
*/
|
|
100520
|
+
pattern?: string;
|
|
100521
|
+
/**
|
|
100522
|
+
* Return only keys holding this value type; omitted returns every type.
|
|
100523
|
+
*/
|
|
100524
|
+
type?: 'string' | 'hash' | 'list' | 'set' | 'zset';
|
|
100525
|
+
};
|
|
100526
|
+
url: '/database/v1/kv/{database_id}/keys';
|
|
100527
|
+
};
|
|
100528
|
+
export type DatabaseKvListKeysErrors = {
|
|
100529
|
+
/**
|
|
100530
|
+
* INVALID_PARAMS: limit outside 1–500 or a malformed query; fix the parameter named in details.
|
|
100531
|
+
*/
|
|
100532
|
+
400: DatabaseDatabaseError;
|
|
100533
|
+
/**
|
|
100534
|
+
* DATABASE_NOT_FOUND: no key-value database with this id in your tenant (the id of a table database is not found here), or a credential scoped to other databases.
|
|
100535
|
+
*/
|
|
100536
|
+
404: DatabaseDatabaseError;
|
|
100537
|
+
/**
|
|
100538
|
+
* Database error; see the error code table.
|
|
100539
|
+
*/
|
|
100540
|
+
default: DatabaseDatabaseError;
|
|
100541
|
+
};
|
|
100542
|
+
export type DatabaseKvListKeysError = DatabaseKvListKeysErrors[keyof DatabaseKvListKeysErrors];
|
|
100543
|
+
export type DatabaseKvListKeysResponses = {
|
|
100544
|
+
/**
|
|
100545
|
+
* Success
|
|
100546
|
+
*/
|
|
100547
|
+
200: {
|
|
100548
|
+
/**
|
|
100549
|
+
* Key summaries on this page in lexicographic key order; empty when nothing matches.
|
|
100550
|
+
*/
|
|
100551
|
+
data: Array<DatabaseKeySummary>;
|
|
100552
|
+
/**
|
|
100553
|
+
* Cursor for the next page, passed back unchanged as cursor; null when this is the last page.
|
|
100554
|
+
*/
|
|
100555
|
+
next_cursor: string | null;
|
|
100556
|
+
};
|
|
100557
|
+
};
|
|
100558
|
+
export type DatabaseKvListKeysResponse = DatabaseKvListKeysResponses[keyof DatabaseKvListKeysResponses];
|
|
100559
|
+
export type DatabaseKvDeleteKeyData = {
|
|
100560
|
+
body?: never;
|
|
100561
|
+
path: {
|
|
100562
|
+
/**
|
|
100563
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
100564
|
+
*/
|
|
100565
|
+
database_id: string;
|
|
100566
|
+
/**
|
|
100567
|
+
* The key to delete: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
100568
|
+
*/
|
|
100569
|
+
key: string;
|
|
100570
|
+
};
|
|
100571
|
+
query?: never;
|
|
100572
|
+
url: '/database/v1/kv/{database_id}/keys/{key}';
|
|
100573
|
+
};
|
|
100574
|
+
export type DatabaseKvDeleteKeyErrors = {
|
|
100575
|
+
/**
|
|
100576
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
100577
|
+
*/
|
|
100578
|
+
403: DatabaseDatabaseError;
|
|
100579
|
+
/**
|
|
100580
|
+
* DATABASE_NOT_FOUND: no key-value database with this id in your tenant (the id of a table database is not found here), or a credential scoped to other databases.
|
|
100581
|
+
*/
|
|
100582
|
+
404: DatabaseDatabaseError;
|
|
100583
|
+
/**
|
|
100584
|
+
* Database error; see the error code table.
|
|
100585
|
+
*/
|
|
100586
|
+
default: DatabaseDatabaseError;
|
|
100587
|
+
};
|
|
100588
|
+
export type DatabaseKvDeleteKeyError = DatabaseKvDeleteKeyErrors[keyof DatabaseKvDeleteKeyErrors];
|
|
100589
|
+
export type DatabaseKvDeleteKeyResponses = {
|
|
100590
|
+
/**
|
|
100591
|
+
* Success
|
|
100592
|
+
*/
|
|
100593
|
+
200: {
|
|
100594
|
+
/**
|
|
100595
|
+
* True when the key existed and was removed; false when it was absent or had already expired.
|
|
100596
|
+
*/
|
|
100597
|
+
deleted: boolean;
|
|
100598
|
+
};
|
|
100599
|
+
};
|
|
100600
|
+
export type DatabaseKvDeleteKeyResponse = DatabaseKvDeleteKeyResponses[keyof DatabaseKvDeleteKeyResponses];
|
|
100601
|
+
export type DatabaseKvGetKeyData = {
|
|
100602
|
+
body?: never;
|
|
100603
|
+
path: {
|
|
100604
|
+
/**
|
|
100605
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
100606
|
+
*/
|
|
100607
|
+
database_id: string;
|
|
100608
|
+
/**
|
|
100609
|
+
* The key to read: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
100610
|
+
*/
|
|
100611
|
+
key: string;
|
|
100612
|
+
};
|
|
100613
|
+
query?: {
|
|
100614
|
+
/**
|
|
100615
|
+
* Container entries per page, 1–1000, default 100; ignored for a string value, which is never paged.
|
|
100616
|
+
*/
|
|
100617
|
+
limit?: number;
|
|
100618
|
+
/**
|
|
100619
|
+
* The next_cursor of the previous page of this key, passed back unchanged; omit it for the first page.
|
|
100620
|
+
*/
|
|
100621
|
+
cursor?: string;
|
|
100622
|
+
};
|
|
100623
|
+
url: '/database/v1/kv/{database_id}/keys/{key}';
|
|
100624
|
+
};
|
|
100625
|
+
export type DatabaseKvGetKeyErrors = {
|
|
100626
|
+
/**
|
|
100627
|
+
* INVALID_PARAMS: limit outside 1–1000 or a malformed query; fix the parameter named in details.
|
|
100628
|
+
*/
|
|
100629
|
+
400: DatabaseDatabaseError;
|
|
100630
|
+
/**
|
|
100631
|
+
* KEY_NOT_FOUND: the key does not exist or has expired; list keys to find a live one. DATABASE_NOT_FOUND: no key-value database with this id in your tenant (the id of a table database is not found here), or a credential scoped to other databases.
|
|
100632
|
+
*/
|
|
100633
|
+
404: DatabaseDatabaseError;
|
|
100634
|
+
/**
|
|
100635
|
+
* Database error; see the error code table.
|
|
100636
|
+
*/
|
|
100637
|
+
default: DatabaseDatabaseError;
|
|
100638
|
+
};
|
|
100639
|
+
export type DatabaseKvGetKeyError = DatabaseKvGetKeyErrors[keyof DatabaseKvGetKeyErrors];
|
|
100640
|
+
export type DatabaseKvGetKeyResponses = {
|
|
100641
|
+
/**
|
|
100642
|
+
* Success
|
|
100643
|
+
*/
|
|
100644
|
+
200: DatabaseKey;
|
|
100645
|
+
};
|
|
100646
|
+
export type DatabaseKvGetKeyResponse = DatabaseKvGetKeyResponses[keyof DatabaseKvGetKeyResponses];
|
|
100647
|
+
export type DatabaseKvUpdateKeyData = {
|
|
100648
|
+
body: DatabaseUpdateKeyInput;
|
|
100649
|
+
path: {
|
|
100650
|
+
/**
|
|
100651
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
100652
|
+
*/
|
|
100653
|
+
database_id: string;
|
|
100654
|
+
/**
|
|
100655
|
+
* The key whose TTL changes: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
100656
|
+
*/
|
|
100657
|
+
key: string;
|
|
100658
|
+
};
|
|
100659
|
+
query?: never;
|
|
100660
|
+
url: '/database/v1/kv/{database_id}/keys/{key}';
|
|
100661
|
+
};
|
|
100662
|
+
export type DatabaseKvUpdateKeyErrors = {
|
|
100663
|
+
/**
|
|
100664
|
+
* INVALID_PARAMS: update_mask is not ttl_ms, or ttl_ms is neither a positive integer nor null.
|
|
100665
|
+
*/
|
|
100666
|
+
400: DatabaseDatabaseError;
|
|
100667
|
+
/**
|
|
100668
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
100669
|
+
*/
|
|
100670
|
+
403: DatabaseDatabaseError;
|
|
100671
|
+
/**
|
|
100672
|
+
* KEY_NOT_FOUND: the key does not exist or has expired. DATABASE_NOT_FOUND: no key-value database with this id in your tenant (the id of a table database is not found here), or a credential scoped to other databases.
|
|
100673
|
+
*/
|
|
100674
|
+
404: DatabaseDatabaseError;
|
|
100675
|
+
/**
|
|
100676
|
+
* Database error; see the error code table.
|
|
100677
|
+
*/
|
|
100678
|
+
default: DatabaseDatabaseError;
|
|
100679
|
+
};
|
|
100680
|
+
export type DatabaseKvUpdateKeyError = DatabaseKvUpdateKeyErrors[keyof DatabaseKvUpdateKeyErrors];
|
|
100681
|
+
export type DatabaseKvUpdateKeyResponses = {
|
|
100682
|
+
/**
|
|
100683
|
+
* Success
|
|
100684
|
+
*/
|
|
100685
|
+
200: DatabaseKey;
|
|
100686
|
+
};
|
|
100687
|
+
export type DatabaseKvUpdateKeyResponse = DatabaseKvUpdateKeyResponses[keyof DatabaseKvUpdateKeyResponses];
|
|
100688
|
+
export type DatabaseKvSetKeyData = {
|
|
100689
|
+
body: DatabaseSetKeyInput;
|
|
100690
|
+
path: {
|
|
100691
|
+
/**
|
|
100692
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
100693
|
+
*/
|
|
100694
|
+
database_id: string;
|
|
100695
|
+
/**
|
|
100696
|
+
* The key to write: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
100697
|
+
*/
|
|
100698
|
+
key: string;
|
|
100699
|
+
};
|
|
100700
|
+
query?: never;
|
|
100701
|
+
url: '/database/v1/kv/{database_id}/keys/{key}';
|
|
100702
|
+
};
|
|
100703
|
+
export type DatabaseKvSetKeyErrors = {
|
|
100704
|
+
/**
|
|
100705
|
+
* INVALID_PARAMS: empty container, duplicate hash field or set member, non-finite zset score, value not matching type, or ttl_ms not a positive integer or null; LIMIT_EXCEEDED: key over 1 KiB or value over 1 MiB. Fix the field named in details.
|
|
100706
|
+
*/
|
|
100707
|
+
400: DatabaseDatabaseError;
|
|
100708
|
+
/**
|
|
100709
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
100710
|
+
*/
|
|
100711
|
+
403: DatabaseDatabaseError;
|
|
100712
|
+
/**
|
|
100713
|
+
* DATABASE_NOT_FOUND: no key-value database with this id in your tenant (the id of a table database is not found here), or a credential scoped to other databases.
|
|
100714
|
+
*/
|
|
100715
|
+
404: DatabaseDatabaseError;
|
|
100716
|
+
/**
|
|
100717
|
+
* CAPACITY: the database reached its storage ceiling of 1 GiB; delete keys before writing more.
|
|
100718
|
+
*/
|
|
100719
|
+
503: DatabaseDatabaseError;
|
|
100720
|
+
/**
|
|
100721
|
+
* Database error; see the error code table.
|
|
100722
|
+
*/
|
|
100723
|
+
default: DatabaseDatabaseError;
|
|
100724
|
+
};
|
|
100725
|
+
export type DatabaseKvSetKeyError = DatabaseKvSetKeyErrors[keyof DatabaseKvSetKeyErrors];
|
|
100726
|
+
export type DatabaseKvSetKeyResponses = {
|
|
100727
|
+
/**
|
|
100728
|
+
* Success
|
|
100729
|
+
*/
|
|
100730
|
+
200: DatabaseKey;
|
|
100731
|
+
};
|
|
100732
|
+
export type DatabaseKvSetKeyResponse = DatabaseKvSetKeyResponses[keyof DatabaseKvSetKeyResponses];
|
|
100733
|
+
export type DatabaseKvExecuteCommandData = {
|
|
100734
|
+
body: DatabaseExecuteCommandInput;
|
|
100735
|
+
path: {
|
|
100736
|
+
/**
|
|
100737
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateKvDatabase or databaseListKvDatabases. A display name is not accepted; the id of a table database returns 404 DATABASE_NOT_FOUND.
|
|
100738
|
+
*/
|
|
100739
|
+
database_id: string;
|
|
100740
|
+
};
|
|
100741
|
+
query?: never;
|
|
100742
|
+
url: '/database/v1/kv/{database_id}/commands';
|
|
100743
|
+
};
|
|
100744
|
+
export type DatabaseKvExecuteCommandErrors = {
|
|
100745
|
+
/**
|
|
100746
|
+
* KV_COMMAND_ERROR: Redis rejected the command and message carries Redis's own text (WRONGTYPE …, ERR …); fix the command. INVALID_PARAMS: command missing, empty or containing a non-string element.
|
|
100747
|
+
*/
|
|
100748
|
+
400: DatabaseDatabaseError;
|
|
100749
|
+
/**
|
|
100750
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
100751
|
+
*/
|
|
100752
|
+
403: DatabaseDatabaseError;
|
|
100753
|
+
/**
|
|
100754
|
+
* DATABASE_NOT_FOUND: no key-value database with this id in your tenant (the id of a table database is not found here), or a credential scoped to other databases.
|
|
100755
|
+
*/
|
|
100756
|
+
404: DatabaseDatabaseError;
|
|
100757
|
+
/**
|
|
100758
|
+
* Database error; see the error code table.
|
|
100759
|
+
*/
|
|
100760
|
+
default: DatabaseDatabaseError;
|
|
100761
|
+
};
|
|
100762
|
+
export type DatabaseKvExecuteCommandError = DatabaseKvExecuteCommandErrors[keyof DatabaseKvExecuteCommandErrors];
|
|
100763
|
+
export type DatabaseKvExecuteCommandResponses = {
|
|
100764
|
+
/**
|
|
100765
|
+
* Success
|
|
100766
|
+
*/
|
|
100767
|
+
200: {
|
|
100768
|
+
/**
|
|
100769
|
+
* Redis's reply as JSON: an integer, a string, an array (possibly nested) or null, exactly the Redis reply for the command; not base64-encoded.
|
|
100770
|
+
*/
|
|
100771
|
+
result: unknown;
|
|
100772
|
+
};
|
|
100773
|
+
};
|
|
100774
|
+
export type DatabaseKvExecuteCommandResponse = DatabaseKvExecuteCommandResponses[keyof DatabaseKvExecuteCommandResponses];
|
|
100775
|
+
export type DatabaseListDatabasesData = {
|
|
100776
|
+
body?: never;
|
|
100777
|
+
path?: never;
|
|
100778
|
+
query?: {
|
|
100779
|
+
/**
|
|
100780
|
+
* Opaque next_cursor from the previous page.
|
|
100781
|
+
*/
|
|
100782
|
+
cursor?: string;
|
|
100783
|
+
/**
|
|
100784
|
+
* Page size.
|
|
100785
|
+
*/
|
|
100786
|
+
limit?: number;
|
|
100787
|
+
/**
|
|
100788
|
+
* Exact label match, encoded as labels[purpose]=docs.
|
|
100789
|
+
*/
|
|
100790
|
+
labels?: {
|
|
100791
|
+
[key: string]: string;
|
|
100792
|
+
};
|
|
100793
|
+
/**
|
|
100794
|
+
* Filter by lifecycle state. active (the default when omitted) lists usable databases; deleting lists databases that were deleted and are still inside the seven-day restore window. Any other value returns 400 INVALID_PARAMS.
|
|
100795
|
+
*/
|
|
100796
|
+
status?: 'active' | 'deleting';
|
|
100797
|
+
};
|
|
100798
|
+
url: '/database/v1/databases';
|
|
100799
|
+
};
|
|
100800
|
+
export type DatabaseListDatabasesErrors = {
|
|
100801
|
+
/**
|
|
100802
|
+
* Database error; see the error code table.
|
|
100803
|
+
*/
|
|
100804
|
+
default: DatabaseDatabaseError;
|
|
100805
|
+
};
|
|
100806
|
+
export type DatabaseListDatabasesError = DatabaseListDatabasesErrors[keyof DatabaseListDatabasesErrors];
|
|
100807
|
+
export type DatabaseListDatabasesResponses = {
|
|
100808
|
+
/**
|
|
100809
|
+
* Success
|
|
100810
|
+
*/
|
|
100811
|
+
200: DatabasePage & {
|
|
100812
|
+
/**
|
|
100813
|
+
* Databases on this page, newest first (created_at descending, ties by id). Deleting databases are excluded unless status=deleting.
|
|
100814
|
+
*/
|
|
100815
|
+
data: Array<DatabaseDatabase>;
|
|
100816
|
+
};
|
|
100817
|
+
};
|
|
100818
|
+
export type DatabaseListDatabasesResponse = DatabaseListDatabasesResponses[keyof DatabaseListDatabasesResponses];
|
|
100819
|
+
export type DatabaseCreateDatabaseData = {
|
|
100820
|
+
body: DatabaseCreateDatabaseInput;
|
|
100821
|
+
path?: never;
|
|
100822
|
+
query?: never;
|
|
100823
|
+
url: '/database/v1/databases';
|
|
100824
|
+
};
|
|
100825
|
+
export type DatabaseCreateDatabaseErrors = {
|
|
100826
|
+
/**
|
|
100827
|
+
* Database error; see the error code table.
|
|
100828
|
+
*/
|
|
100829
|
+
default: DatabaseDatabaseError;
|
|
100830
|
+
};
|
|
100831
|
+
export type DatabaseCreateDatabaseError = DatabaseCreateDatabaseErrors[keyof DatabaseCreateDatabaseErrors];
|
|
100832
|
+
export type DatabaseCreateDatabaseResponses = {
|
|
100833
|
+
/**
|
|
100834
|
+
* Success
|
|
100835
|
+
*/
|
|
100836
|
+
201: DatabaseDatabase;
|
|
100837
|
+
};
|
|
100838
|
+
export type DatabaseCreateDatabaseResponse = DatabaseCreateDatabaseResponses[keyof DatabaseCreateDatabaseResponses];
|
|
100839
|
+
export type DatabaseDeleteDatabaseData = {
|
|
100840
|
+
body?: never;
|
|
100841
|
+
path: {
|
|
100842
|
+
/**
|
|
100843
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
100844
|
+
*/
|
|
100845
|
+
database_id: string;
|
|
100846
|
+
};
|
|
100847
|
+
query?: never;
|
|
100848
|
+
url: '/database/v1/databases/{database_id}';
|
|
100849
|
+
};
|
|
100850
|
+
export type DatabaseDeleteDatabaseErrors = {
|
|
100851
|
+
/**
|
|
100852
|
+
* Database error; see the error code table.
|
|
100853
|
+
*/
|
|
100854
|
+
default: DatabaseDatabaseError;
|
|
100855
|
+
};
|
|
100856
|
+
export type DatabaseDeleteDatabaseError = DatabaseDeleteDatabaseErrors[keyof DatabaseDeleteDatabaseErrors];
|
|
100857
|
+
export type DatabaseDeleteDatabaseResponses = {
|
|
100858
|
+
/**
|
|
100859
|
+
* Success
|
|
100860
|
+
*/
|
|
100861
|
+
200: DatabaseDatabase;
|
|
100862
|
+
};
|
|
100863
|
+
export type DatabaseDeleteDatabaseResponse = DatabaseDeleteDatabaseResponses[keyof DatabaseDeleteDatabaseResponses];
|
|
100864
|
+
export type DatabaseGetDatabaseData = {
|
|
100865
|
+
body?: never;
|
|
100866
|
+
path: {
|
|
100867
|
+
/**
|
|
100868
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
100869
|
+
*/
|
|
100870
|
+
database_id: string;
|
|
100871
|
+
};
|
|
100872
|
+
query?: never;
|
|
100873
|
+
url: '/database/v1/databases/{database_id}';
|
|
100874
|
+
};
|
|
100875
|
+
export type DatabaseGetDatabaseErrors = {
|
|
100876
|
+
/**
|
|
100877
|
+
* Database error; see the error code table.
|
|
100878
|
+
*/
|
|
100879
|
+
default: DatabaseDatabaseError;
|
|
100880
|
+
};
|
|
100881
|
+
export type DatabaseGetDatabaseError = DatabaseGetDatabaseErrors[keyof DatabaseGetDatabaseErrors];
|
|
100882
|
+
export type DatabaseGetDatabaseResponses = {
|
|
100883
|
+
/**
|
|
100884
|
+
* Success
|
|
100885
|
+
*/
|
|
100886
|
+
200: DatabaseDatabase;
|
|
100887
|
+
};
|
|
100888
|
+
export type DatabaseGetDatabaseResponse = DatabaseGetDatabaseResponses[keyof DatabaseGetDatabaseResponses];
|
|
100889
|
+
export type DatabaseUpdateDatabaseData = {
|
|
100890
|
+
body: DatabaseUpdateDatabaseInput;
|
|
100891
|
+
path: {
|
|
100892
|
+
/**
|
|
100893
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
100894
|
+
*/
|
|
100895
|
+
database_id: string;
|
|
100896
|
+
};
|
|
100897
|
+
query?: never;
|
|
100898
|
+
url: '/database/v1/databases/{database_id}';
|
|
100899
|
+
};
|
|
100900
|
+
export type DatabaseUpdateDatabaseErrors = {
|
|
100901
|
+
/**
|
|
100902
|
+
* Database error; see the error code table.
|
|
100903
|
+
*/
|
|
100904
|
+
default: DatabaseDatabaseError;
|
|
100905
|
+
};
|
|
100906
|
+
export type DatabaseUpdateDatabaseError = DatabaseUpdateDatabaseErrors[keyof DatabaseUpdateDatabaseErrors];
|
|
100907
|
+
export type DatabaseUpdateDatabaseResponses = {
|
|
100908
|
+
/**
|
|
100909
|
+
* Success
|
|
100910
|
+
*/
|
|
100911
|
+
200: DatabaseDatabase;
|
|
100912
|
+
};
|
|
100913
|
+
export type DatabaseUpdateDatabaseResponse = DatabaseUpdateDatabaseResponses[keyof DatabaseUpdateDatabaseResponses];
|
|
100914
|
+
export type DatabaseRestoreDatabaseData = {
|
|
100915
|
+
body?: never;
|
|
100916
|
+
path: {
|
|
100917
|
+
/**
|
|
100918
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
100919
|
+
*/
|
|
100920
|
+
database_id: string;
|
|
100921
|
+
};
|
|
100922
|
+
query?: never;
|
|
100923
|
+
url: '/database/v1/databases/{database_id}/restore';
|
|
100924
|
+
};
|
|
100925
|
+
export type DatabaseRestoreDatabaseErrors = {
|
|
100926
|
+
/**
|
|
100927
|
+
* Database error; see the error code table.
|
|
100928
|
+
*/
|
|
100929
|
+
default: DatabaseDatabaseError;
|
|
100930
|
+
};
|
|
100931
|
+
export type DatabaseRestoreDatabaseError = DatabaseRestoreDatabaseErrors[keyof DatabaseRestoreDatabaseErrors];
|
|
100932
|
+
export type DatabaseRestoreDatabaseResponses = {
|
|
100933
|
+
/**
|
|
100934
|
+
* Success
|
|
100935
|
+
*/
|
|
100936
|
+
200: DatabaseDatabase;
|
|
100937
|
+
};
|
|
100938
|
+
export type DatabaseRestoreDatabaseResponse = DatabaseRestoreDatabaseResponses[keyof DatabaseRestoreDatabaseResponses];
|
|
100939
|
+
export type DatabasePurgeDatabaseData = {
|
|
100940
|
+
body?: never;
|
|
100941
|
+
path: {
|
|
100942
|
+
/**
|
|
100943
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
100944
|
+
*/
|
|
100945
|
+
database_id: string;
|
|
100946
|
+
};
|
|
100947
|
+
query?: never;
|
|
100948
|
+
url: '/database/v1/databases/{database_id}/purge';
|
|
100949
|
+
};
|
|
100950
|
+
export type DatabasePurgeDatabaseErrors = {
|
|
100951
|
+
/**
|
|
100952
|
+
* DATABASE_NOT_FOUND
|
|
100953
|
+
*/
|
|
100954
|
+
404: DatabaseDatabaseError;
|
|
100955
|
+
/**
|
|
100956
|
+
* DATABASE_INVALID_STATE: DELETE must precede purge.
|
|
100957
|
+
*/
|
|
100958
|
+
409: DatabaseDatabaseError;
|
|
100959
|
+
};
|
|
100960
|
+
export type DatabasePurgeDatabaseError = DatabasePurgeDatabaseErrors[keyof DatabasePurgeDatabaseErrors];
|
|
100961
|
+
export type DatabasePurgeDatabaseResponses = {
|
|
100962
|
+
/**
|
|
100963
|
+
* Permanently purged
|
|
100964
|
+
*/
|
|
100965
|
+
200: {
|
|
100966
|
+
/**
|
|
100967
|
+
* Id (db_…) of the database that was permanently purged; it no longer resolves.
|
|
100968
|
+
*/
|
|
100969
|
+
id: string;
|
|
100970
|
+
/**
|
|
100971
|
+
* Resource type of the purged object; always database.
|
|
100972
|
+
*/
|
|
100973
|
+
object: 'database';
|
|
100974
|
+
/**
|
|
100975
|
+
* Always true: the database and all of its data were permanently removed and cannot be recovered.
|
|
100976
|
+
*/
|
|
100977
|
+
purged: true;
|
|
100978
|
+
};
|
|
100979
|
+
};
|
|
100980
|
+
export type DatabasePurgeDatabaseResponse = DatabasePurgeDatabaseResponses[keyof DatabasePurgeDatabaseResponses];
|
|
100981
|
+
export type DatabaseListTablesData = {
|
|
100982
|
+
body?: never;
|
|
100983
|
+
path: {
|
|
100984
|
+
/**
|
|
100985
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
100986
|
+
*/
|
|
100987
|
+
database_id: string;
|
|
100988
|
+
};
|
|
100989
|
+
query?: never;
|
|
100990
|
+
url: '/database/v1/databases/{database_id}/tables';
|
|
100991
|
+
};
|
|
100992
|
+
export type DatabaseListTablesErrors = {
|
|
100993
|
+
/**
|
|
100994
|
+
* Database error; see the error code table.
|
|
100995
|
+
*/
|
|
100996
|
+
default: DatabaseDatabaseError;
|
|
100997
|
+
};
|
|
100998
|
+
export type DatabaseListTablesError = DatabaseListTablesErrors[keyof DatabaseListTablesErrors];
|
|
100999
|
+
export type DatabaseListTablesResponses = {
|
|
101000
|
+
/**
|
|
101001
|
+
* Success
|
|
101002
|
+
*/
|
|
101003
|
+
200: DatabasePage & {
|
|
101004
|
+
/**
|
|
101005
|
+
* Every table of the database with its fields, in creation order; at most 50 items.
|
|
101006
|
+
*/
|
|
101007
|
+
data: Array<DatabaseTable>;
|
|
101008
|
+
};
|
|
101009
|
+
};
|
|
101010
|
+
export type DatabaseListTablesResponse = DatabaseListTablesResponses[keyof DatabaseListTablesResponses];
|
|
101011
|
+
export type DatabaseCreateTableData = {
|
|
101012
|
+
body: DatabaseCreateTableInput;
|
|
101013
|
+
path: {
|
|
101014
|
+
/**
|
|
101015
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101016
|
+
*/
|
|
101017
|
+
database_id: string;
|
|
101018
|
+
};
|
|
101019
|
+
query?: never;
|
|
101020
|
+
url: '/database/v1/databases/{database_id}/tables';
|
|
101021
|
+
};
|
|
101022
|
+
export type DatabaseCreateTableErrors = {
|
|
101023
|
+
/**
|
|
101024
|
+
* Database error; see the error code table.
|
|
101025
|
+
*/
|
|
101026
|
+
default: DatabaseDatabaseError;
|
|
101027
|
+
};
|
|
101028
|
+
export type DatabaseCreateTableError = DatabaseCreateTableErrors[keyof DatabaseCreateTableErrors];
|
|
101029
|
+
export type DatabaseCreateTableResponses = {
|
|
101030
|
+
/**
|
|
101031
|
+
* Success
|
|
101032
|
+
*/
|
|
101033
|
+
201: DatabaseTable;
|
|
101034
|
+
};
|
|
101035
|
+
export type DatabaseCreateTableResponse = DatabaseCreateTableResponses[keyof DatabaseCreateTableResponses];
|
|
101036
|
+
export type DatabaseDeleteTableData = {
|
|
101037
|
+
body?: never;
|
|
101038
|
+
path: {
|
|
101039
|
+
/**
|
|
101040
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101041
|
+
*/
|
|
101042
|
+
database_id: string;
|
|
101043
|
+
/**
|
|
101044
|
+
* table ID or name.
|
|
101045
|
+
*/
|
|
101046
|
+
table: string;
|
|
101047
|
+
};
|
|
101048
|
+
query?: never;
|
|
101049
|
+
url: '/database/v1/databases/{database_id}/tables/{table}';
|
|
101050
|
+
};
|
|
101051
|
+
export type DatabaseDeleteTableErrors = {
|
|
101052
|
+
/**
|
|
101053
|
+
* Database error; see the error code table.
|
|
101054
|
+
*/
|
|
101055
|
+
default: DatabaseDatabaseError;
|
|
101056
|
+
};
|
|
101057
|
+
export type DatabaseDeleteTableError = DatabaseDeleteTableErrors[keyof DatabaseDeleteTableErrors];
|
|
101058
|
+
export type DatabaseDeleteTableResponses = {
|
|
101059
|
+
/**
|
|
101060
|
+
* Success
|
|
101061
|
+
*/
|
|
101062
|
+
200: {
|
|
101063
|
+
/**
|
|
101064
|
+
* Always true: the table and all of its rows were dropped immediately and cannot be recovered.
|
|
101065
|
+
*/
|
|
101066
|
+
deleted: true;
|
|
101067
|
+
};
|
|
101068
|
+
};
|
|
101069
|
+
export type DatabaseDeleteTableResponse = DatabaseDeleteTableResponses[keyof DatabaseDeleteTableResponses];
|
|
101070
|
+
export type DatabaseGetTableData = {
|
|
101071
|
+
body?: never;
|
|
101072
|
+
path: {
|
|
101073
|
+
/**
|
|
101074
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101075
|
+
*/
|
|
101076
|
+
database_id: string;
|
|
101077
|
+
/**
|
|
101078
|
+
* table ID or name.
|
|
101079
|
+
*/
|
|
101080
|
+
table: string;
|
|
101081
|
+
};
|
|
101082
|
+
query?: never;
|
|
101083
|
+
url: '/database/v1/databases/{database_id}/tables/{table}';
|
|
101084
|
+
};
|
|
101085
|
+
export type DatabaseGetTableErrors = {
|
|
101086
|
+
/**
|
|
101087
|
+
* Database error; see the error code table.
|
|
101088
|
+
*/
|
|
101089
|
+
default: DatabaseDatabaseError;
|
|
101090
|
+
};
|
|
101091
|
+
export type DatabaseGetTableError = DatabaseGetTableErrors[keyof DatabaseGetTableErrors];
|
|
101092
|
+
export type DatabaseGetTableResponses = {
|
|
101093
|
+
/**
|
|
101094
|
+
* Success
|
|
101095
|
+
*/
|
|
101096
|
+
200: DatabaseTable;
|
|
101097
|
+
};
|
|
101098
|
+
export type DatabaseGetTableResponse = DatabaseGetTableResponses[keyof DatabaseGetTableResponses];
|
|
101099
|
+
export type DatabaseUpdateTableData = {
|
|
101100
|
+
body: DatabaseUpdateTableInput;
|
|
101101
|
+
path: {
|
|
101102
|
+
/**
|
|
101103
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101104
|
+
*/
|
|
101105
|
+
database_id: string;
|
|
101106
|
+
/**
|
|
101107
|
+
* table ID or name.
|
|
101108
|
+
*/
|
|
101109
|
+
table: string;
|
|
101110
|
+
};
|
|
101111
|
+
query?: never;
|
|
101112
|
+
url: '/database/v1/databases/{database_id}/tables/{table}';
|
|
101113
|
+
};
|
|
101114
|
+
export type DatabaseUpdateTableErrors = {
|
|
101115
|
+
/**
|
|
101116
|
+
* Database error; see the error code table.
|
|
101117
|
+
*/
|
|
101118
|
+
default: DatabaseDatabaseError;
|
|
101119
|
+
};
|
|
101120
|
+
export type DatabaseUpdateTableError = DatabaseUpdateTableErrors[keyof DatabaseUpdateTableErrors];
|
|
101121
|
+
export type DatabaseUpdateTableResponses = {
|
|
101122
|
+
/**
|
|
101123
|
+
* Success
|
|
101124
|
+
*/
|
|
101125
|
+
200: DatabaseTable;
|
|
101126
|
+
};
|
|
101127
|
+
export type DatabaseUpdateTableResponse = DatabaseUpdateTableResponses[keyof DatabaseUpdateTableResponses];
|
|
101128
|
+
export type DatabaseAddFieldData = {
|
|
101129
|
+
body: DatabaseNewField;
|
|
101130
|
+
path: {
|
|
101131
|
+
/**
|
|
101132
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101133
|
+
*/
|
|
101134
|
+
database_id: string;
|
|
101135
|
+
/**
|
|
101136
|
+
* table ID or name.
|
|
101137
|
+
*/
|
|
101138
|
+
table: string;
|
|
101139
|
+
};
|
|
101140
|
+
query?: never;
|
|
101141
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields';
|
|
101142
|
+
};
|
|
101143
|
+
export type DatabaseAddFieldErrors = {
|
|
101144
|
+
/**
|
|
101145
|
+
* Database error; see the error code table.
|
|
101146
|
+
*/
|
|
101147
|
+
default: DatabaseDatabaseError;
|
|
101148
|
+
};
|
|
101149
|
+
export type DatabaseAddFieldError = DatabaseAddFieldErrors[keyof DatabaseAddFieldErrors];
|
|
101150
|
+
export type DatabaseAddFieldResponses = {
|
|
101151
|
+
/**
|
|
101152
|
+
* Success
|
|
101153
|
+
*/
|
|
101154
|
+
201: DatabaseTable;
|
|
101155
|
+
};
|
|
101156
|
+
export type DatabaseAddFieldResponse = DatabaseAddFieldResponses[keyof DatabaseAddFieldResponses];
|
|
101157
|
+
export type DatabaseDeleteFieldData = {
|
|
101158
|
+
body?: never;
|
|
101159
|
+
path: {
|
|
101160
|
+
/**
|
|
101161
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101162
|
+
*/
|
|
101163
|
+
database_id: string;
|
|
101164
|
+
/**
|
|
101165
|
+
* table ID or name.
|
|
101166
|
+
*/
|
|
101167
|
+
table: string;
|
|
101168
|
+
/**
|
|
101169
|
+
* field ID or name.
|
|
101170
|
+
*/
|
|
101171
|
+
field: string;
|
|
101172
|
+
};
|
|
101173
|
+
query?: never;
|
|
101174
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields/{field}';
|
|
101175
|
+
};
|
|
101176
|
+
export type DatabaseDeleteFieldErrors = {
|
|
101177
|
+
/**
|
|
101178
|
+
* Database error; see the error code table.
|
|
101179
|
+
*/
|
|
101180
|
+
default: DatabaseDatabaseError;
|
|
101181
|
+
};
|
|
101182
|
+
export type DatabaseDeleteFieldError = DatabaseDeleteFieldErrors[keyof DatabaseDeleteFieldErrors];
|
|
101183
|
+
export type DatabaseDeleteFieldResponses = {
|
|
101184
|
+
/**
|
|
101185
|
+
* Success
|
|
101186
|
+
*/
|
|
101187
|
+
200: DatabaseTable;
|
|
101188
|
+
};
|
|
101189
|
+
export type DatabaseDeleteFieldResponse = DatabaseDeleteFieldResponses[keyof DatabaseDeleteFieldResponses];
|
|
101190
|
+
export type DatabaseUpdateFieldData = {
|
|
101191
|
+
body: DatabaseUpdateFieldInput;
|
|
101192
|
+
path: {
|
|
101193
|
+
/**
|
|
101194
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101195
|
+
*/
|
|
101196
|
+
database_id: string;
|
|
101197
|
+
/**
|
|
101198
|
+
* table ID or name.
|
|
101199
|
+
*/
|
|
101200
|
+
table: string;
|
|
101201
|
+
/**
|
|
101202
|
+
* field ID or name.
|
|
101203
|
+
*/
|
|
101204
|
+
field: string;
|
|
101205
|
+
};
|
|
101206
|
+
query?: never;
|
|
101207
|
+
url: '/database/v1/databases/{database_id}/tables/{table}/fields/{field}';
|
|
101208
|
+
};
|
|
101209
|
+
export type DatabaseUpdateFieldErrors = {
|
|
101210
|
+
/**
|
|
101211
|
+
* Database error; see the error code table.
|
|
101212
|
+
*/
|
|
101213
|
+
default: DatabaseDatabaseError;
|
|
101214
|
+
};
|
|
101215
|
+
export type DatabaseUpdateFieldError = DatabaseUpdateFieldErrors[keyof DatabaseUpdateFieldErrors];
|
|
101216
|
+
export type DatabaseUpdateFieldResponses = {
|
|
101217
|
+
/**
|
|
101218
|
+
* Success
|
|
101219
|
+
*/
|
|
101220
|
+
200: DatabaseTable;
|
|
101221
|
+
};
|
|
101222
|
+
export type DatabaseUpdateFieldResponse = DatabaseUpdateFieldResponses[keyof DatabaseUpdateFieldResponses];
|
|
101223
|
+
export type DatabaseListEventsData = {
|
|
101224
|
+
body?: never;
|
|
101225
|
+
path: {
|
|
101226
|
+
/**
|
|
101227
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101228
|
+
*/
|
|
101229
|
+
database_id: string;
|
|
101230
|
+
};
|
|
101231
|
+
query?: {
|
|
101232
|
+
/**
|
|
101233
|
+
* With order=asc, return only events with seq greater than this value. Cannot be combined with before_seq.
|
|
101234
|
+
*/
|
|
101235
|
+
after_seq?: number;
|
|
101236
|
+
/**
|
|
101237
|
+
* Page size.
|
|
101238
|
+
*/
|
|
101239
|
+
limit?: number;
|
|
101240
|
+
/**
|
|
101241
|
+
* Sequence order: asc or desc (newest first). Defaults to asc, or to desc when before_seq is supplied.
|
|
101242
|
+
*/
|
|
101243
|
+
order?: 'asc' | 'desc';
|
|
101244
|
+
/**
|
|
101245
|
+
* Return only events with seq less than this value, newest first; implies order=desc when order is omitted. Cannot be combined with after_seq or order=asc.
|
|
101246
|
+
*/
|
|
101247
|
+
before_seq?: number;
|
|
101248
|
+
};
|
|
101249
|
+
url: '/database/v1/databases/{database_id}/events';
|
|
101250
|
+
};
|
|
101251
|
+
export type DatabaseListEventsErrors = {
|
|
101252
|
+
/**
|
|
101253
|
+
* INVALID_PARAMS: both cursors supplied, before_seq with order=asc, or invalid parameters.
|
|
101254
|
+
*/
|
|
101255
|
+
400: DatabaseDatabaseError;
|
|
101256
|
+
/**
|
|
101257
|
+
* Database error; see the error code table.
|
|
101258
|
+
*/
|
|
101259
|
+
default: DatabaseDatabaseError;
|
|
101260
|
+
};
|
|
101261
|
+
export type DatabaseListEventsError = DatabaseListEventsErrors[keyof DatabaseListEventsErrors];
|
|
101262
|
+
export type DatabaseListEventsResponses = {
|
|
101263
|
+
/**
|
|
101264
|
+
* Success
|
|
101265
|
+
*/
|
|
101266
|
+
200: DatabasePage & {
|
|
101267
|
+
/**
|
|
101268
|
+
* Events on this page in the requested order (ascending seq by default, newest first with before_seq or order=desc).
|
|
101269
|
+
*/
|
|
101270
|
+
data: Array<DatabaseDatabaseEvent>;
|
|
101271
|
+
};
|
|
101272
|
+
};
|
|
101273
|
+
export type DatabaseListEventsResponse = DatabaseListEventsResponses[keyof DatabaseListEventsResponses];
|
|
101274
|
+
export type DatabaseDeleteData = {
|
|
101275
|
+
body?: never;
|
|
101276
|
+
headers?: {
|
|
101277
|
+
/**
|
|
101278
|
+
* GET/HEAD inclusive row interval, e.g. 0-9. Intersects limit/offset.
|
|
101279
|
+
*/
|
|
101280
|
+
Range?: string;
|
|
101281
|
+
/**
|
|
101282
|
+
* items; other units cause Range to be ignored.
|
|
101283
|
+
*/
|
|
101284
|
+
'Range-Unit'?: string;
|
|
101285
|
+
/**
|
|
101286
|
+
* Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122).
|
|
101287
|
+
*/
|
|
101288
|
+
Prefer?: string;
|
|
101289
|
+
/**
|
|
101290
|
+
* application/json, **, or application/vnd.pgrst.object+json. Singular output requires exactly one row; otherwise 406 PGRST116. Other media types return 406 PGRST107; text/csv, application/geo+json and application/vnd.pgrst.plan return 400 PGRST127.
|
|
101291
|
+
*/
|
|
101292
|
+
Accept?: string;
|
|
101293
|
+
};
|
|
101294
|
+
path: {
|
|
101295
|
+
/**
|
|
101296
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
101297
|
+
*/
|
|
101298
|
+
database_id: string;
|
|
101299
|
+
/**
|
|
101300
|
+
* table ID or name.
|
|
101301
|
+
*/
|
|
101302
|
+
table: string;
|
|
101303
|
+
};
|
|
101304
|
+
query?: {
|
|
101305
|
+
/**
|
|
101306
|
+
* Comma-separated columns; supports *, aliases, JSON paths and link-based embedding. Casts, aggregates, spread and join modifiers are unsupported.
|
|
101307
|
+
*/
|
|
101308
|
+
select?: string;
|
|
101309
|
+
/**
|
|
101310
|
+
* Horizontal filter: replace {column} with a field name or JSON path, e.g. title=eq.summary. Repeat for more columns. Supported operators: eq (equal), neq (not equal; ne is not supported), gt/gte/lt/lte (comparisons), like (case-sensitive text pattern), ilike (case-insensitive text pattern), in (membership), is (null/boolean test), cs (contains), cd (contained by), and ov (array overlap). For like/ilike, * or % matches any sequence and _ matches one character, e.g. title=ilike.*spring*; URL-encode a literal % as %25. Use days=in.(1,2,3), title=is.null, active=is.true or active=is.false; is.not_null and is.unknown are also accepted (unknown means null). Negate a condition with not., e.g. title=not.eq.draft. Multiple filters are ANDed; use or=(title.eq.a,title.eq.b), and=(days.gte.1,days.lte.3), not.or=(...) or not.and=(...), with nested and(...) and or(...) groups as needed. cs/cd accept JSON objects or arrays on JSON fields; cs also accepts a JSON scalar. For array values or multi-link fields, use cs.{a,b}, cd.{a,b} or ov.{a,b}. JSON paths use -> for JSON and ->> for text, e.g. attributes->>has_onsen=eq.true or attributes->tags=cs.[1,2]; chain -> segments and end with ->> for text. Dot paths such as attributes.has_onsen are unsupported. Full-text, regex, range operators and any/all modifiers are unsupported.
|
|
101311
|
+
*/
|
|
101312
|
+
'{column}'?: string;
|
|
101313
|
+
/**
|
|
101314
|
+
* Parenthesized conditions, e.g. (done.eq.false,title.neq.draft).
|
|
101315
|
+
*/
|
|
101316
|
+
and?: string;
|
|
101317
|
+
/**
|
|
101318
|
+
* Parenthesized alternatives; not.and and not.or are also supported.
|
|
101319
|
+
*/
|
|
101320
|
+
or?: string;
|
|
101321
|
+
/**
|
|
101322
|
+
* Negated conjunction.
|
|
101323
|
+
*/
|
|
101324
|
+
'not.and'?: string;
|
|
101325
|
+
/**
|
|
101326
|
+
* Negated disjunction.
|
|
101327
|
+
*/
|
|
101328
|
+
'not.or'?: string;
|
|
101329
|
+
/**
|
|
101330
|
+
* Comma-separated columns with asc/desc and nullsfirst/nullslast; JSON paths allowed.
|
|
101331
|
+
*/
|
|
101332
|
+
order?: string;
|
|
101333
|
+
/**
|
|
101334
|
+
* Maximum returned rows.
|
|
101335
|
+
*/
|
|
101336
|
+
limit?: number;
|
|
101337
|
+
/**
|
|
101338
|
+
* Rows to skip.
|
|
101339
|
+
*/
|
|
101340
|
+
offset?: number;
|
|
101341
|
+
/**
|
|
101342
|
+
* POST upsert: id or one unique field with resolution=merge-duplicates|ignore-duplicates. With resolution=merge-duplicates, a conflicting row keeps columns omitted from the request; supplied values replace the whole field value (including JSON objects), and explicit null clears a nullable field. With resolution=ignore-duplicates, a conflicting row is left unchanged. Without a conflict, both modes insert a new row using field defaults for omitted fields. In a batch, a key present in another row is filled with null when omitted in this row unless missing=default is set; that null can overwrite a value during merge. With missing=default, omitted keys stay omitted for conflict merges (existing values are preserved); new rows use defaults, or null when no default exists. Explicit null never invokes a default. POST accepts an optional client id matching [A-Za-z0-9_-]{1,64}; omitted ids are generated. PATCH cannot change id.
|
|
101343
|
+
*/
|
|
101344
|
+
on_conflict?: string;
|
|
101345
|
+
/**
|
|
101346
|
+
* Comma-separated input columns; keys outside this set are ignored.
|
|
101347
|
+
*/
|
|
101348
|
+
columns?: string;
|
|
101349
|
+
};
|
|
101350
|
+
url: '/database/v1/databases/{database_id}/rest/{table}';
|
|
101351
|
+
};
|
|
101352
|
+
export type DatabaseDeleteErrors = {
|
|
101353
|
+
/**
|
|
101354
|
+
* PostgREST error; see the error code table.
|
|
101355
|
+
*/
|
|
101356
|
+
400: DatabasePostgrestError;
|
|
101357
|
+
/**
|
|
101358
|
+
* PostgREST error; see the error code table.
|
|
101359
|
+
*/
|
|
101360
|
+
404: DatabasePostgrestError;
|
|
101361
|
+
/**
|
|
101362
|
+
* PostgREST error; see the error code table.
|
|
101363
|
+
*/
|
|
101364
|
+
406: DatabasePostgrestError;
|
|
101365
|
+
/**
|
|
101366
|
+
* PostgREST error; see the error code table.
|
|
101367
|
+
*/
|
|
101368
|
+
409: DatabasePostgrestError;
|
|
101369
|
+
/**
|
|
101370
|
+
* PostgREST error; see the error code table.
|
|
101371
|
+
*/
|
|
101372
|
+
416: DatabasePostgrestError;
|
|
101373
|
+
/**
|
|
101374
|
+
* PostgREST error; see the error code table.
|
|
101375
|
+
*/
|
|
101376
|
+
500: DatabasePostgrestError;
|
|
101377
|
+
};
|
|
101378
|
+
export type DatabaseDeleteError = DatabaseDeleteErrors[keyof DatabaseDeleteErrors];
|
|
101379
|
+
export type DatabaseDeleteResponses = {
|
|
101380
|
+
/**
|
|
101381
|
+
* Success; write bodies require Prefer: return=representation
|
|
101382
|
+
*/
|
|
101383
|
+
200: Array<DatabaseRow | DatabaseProjectedRow>;
|
|
101384
|
+
/**
|
|
101385
|
+
* Success without a body
|
|
101386
|
+
*/
|
|
101387
|
+
204: void;
|
|
101388
|
+
};
|
|
101389
|
+
export type DatabaseDeleteResponse = DatabaseDeleteResponses[keyof DatabaseDeleteResponses];
|
|
101390
|
+
export type DatabaseSelectData = {
|
|
101391
|
+
body?: never;
|
|
101392
|
+
headers?: {
|
|
101393
|
+
/**
|
|
101394
|
+
* Inclusive row interval, e.g. 0-9. Intersects limit/offset, then caps the page at 1000 rows; open-ended ranges use the same cap.
|
|
101395
|
+
*/
|
|
101396
|
+
Range?: string;
|
|
101397
|
+
/**
|
|
101398
|
+
* items; other units cause Range to be ignored.
|
|
101399
|
+
*/
|
|
101400
|
+
'Range-Unit'?: string;
|
|
101401
|
+
/**
|
|
101402
|
+
* Comma-separated preferences. count=exact|planned|estimated: unfiltered counts are exact; filtered planned reports *, estimated falls back to * when predicted over budget. missing=default skips null-filling of missing batch columns: inserts use field defaults (or null without a default), while conflict merges preserve omitted columns. Otherwise, holes in the batch key union are filled with null and can clear values during merge. Explicit null stays null. resolution=merge-duplicates updates supplied columns on conflict; resolution=ignore-duplicates leaves conflicting rows unchanged. Unknown preferences are ignored unless handling=strict (400 PGRST122).
|
|
101403
|
+
*/
|
|
101404
|
+
Prefer?: string;
|
|
101405
|
+
/**
|
|
101406
|
+
* application/json, **, or application/vnd.pgrst.object+json. Singular output requires exactly one row; otherwise 406 PGRST116. Other media types return 406 PGRST107; text/csv, application/geo+json and application/vnd.pgrst.plan return 400 PGRST127.
|
|
101407
|
+
*/
|
|
101408
|
+
Accept?: string;
|
|
101409
|
+
/**
|
|
101410
|
+
* Entity tag from a previous GET or HEAD (weak comparison). When it matches the current ETag the response is 304 with no body.
|
|
101411
|
+
*/
|
|
101412
|
+
'If-None-Match'?: string;
|
|
101413
|
+
};
|
|
101414
|
+
path: {
|
|
101415
|
+
/**
|
|
101416
|
+
* Identifier of the database to act on: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases. A display name is not accepted.
|
|
99152
101417
|
*/
|
|
99153
101418
|
database_id: string;
|
|
99154
101419
|
/**
|
|
@@ -99595,6 +101860,305 @@ export type DatabaseInsertResponses = {
|
|
|
99595
101860
|
201: Array<DatabaseRow | DatabaseProjectedRow>;
|
|
99596
101861
|
};
|
|
99597
101862
|
export type DatabaseInsertResponse = DatabaseInsertResponses[keyof DatabaseInsertResponses];
|
|
101863
|
+
export type DatabaseListKeysData = {
|
|
101864
|
+
body?: never;
|
|
101865
|
+
path: {
|
|
101866
|
+
/**
|
|
101867
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases for a database created with kind kv. A display name is not accepted; a table database returns 409 DATABASE_KIND_MISMATCH.
|
|
101868
|
+
*/
|
|
101869
|
+
database_id: string;
|
|
101870
|
+
};
|
|
101871
|
+
query?: {
|
|
101872
|
+
/**
|
|
101873
|
+
* Keys per page, 1–500, default 50; a value outside the range returns 400 INVALID_PARAMS.
|
|
101874
|
+
*/
|
|
101875
|
+
limit?: number;
|
|
101876
|
+
/**
|
|
101877
|
+
* The next_cursor of the previous page, passed back unchanged; omit it to start from the first key.
|
|
101878
|
+
*/
|
|
101879
|
+
cursor?: string;
|
|
101880
|
+
/**
|
|
101881
|
+
* Redis glob (* any run, ? one character, [abc] a set, [^abc] a negated set) matched against the whole key, for example user:*; omitted returns every key.
|
|
101882
|
+
*/
|
|
101883
|
+
pattern?: string;
|
|
101884
|
+
/**
|
|
101885
|
+
* Return only keys holding this value type; omitted returns every type.
|
|
101886
|
+
*/
|
|
101887
|
+
type?: 'string' | 'hash' | 'list' | 'set' | 'zset';
|
|
101888
|
+
};
|
|
101889
|
+
url: '/database/v1/databases/{database_id}/keys';
|
|
101890
|
+
};
|
|
101891
|
+
export type DatabaseListKeysErrors = {
|
|
101892
|
+
/**
|
|
101893
|
+
* INVALID_PARAMS: limit outside 1–500 or a malformed query; fix the parameter named in details.
|
|
101894
|
+
*/
|
|
101895
|
+
400: DatabaseDatabaseError;
|
|
101896
|
+
/**
|
|
101897
|
+
* DATABASE_NOT_FOUND: no database with this id in your tenant, or a credential scoped to other databases.
|
|
101898
|
+
*/
|
|
101899
|
+
404: DatabaseDatabaseError;
|
|
101900
|
+
/**
|
|
101901
|
+
* DATABASE_KIND_MISMATCH: the database is a table database (kind table); use the tables and rows operations on it, or create a database with kind kv.
|
|
101902
|
+
*/
|
|
101903
|
+
409: DatabaseDatabaseError;
|
|
101904
|
+
/**
|
|
101905
|
+
* Database error; see the error code table.
|
|
101906
|
+
*/
|
|
101907
|
+
default: DatabaseDatabaseError;
|
|
101908
|
+
};
|
|
101909
|
+
export type DatabaseListKeysError = DatabaseListKeysErrors[keyof DatabaseListKeysErrors];
|
|
101910
|
+
export type DatabaseListKeysResponses = {
|
|
101911
|
+
/**
|
|
101912
|
+
* Success
|
|
101913
|
+
*/
|
|
101914
|
+
200: {
|
|
101915
|
+
/**
|
|
101916
|
+
* Key summaries on this page in lexicographic key order; empty when nothing matches.
|
|
101917
|
+
*/
|
|
101918
|
+
data: Array<DatabaseKeySummary>;
|
|
101919
|
+
/**
|
|
101920
|
+
* Cursor for the next page, passed back unchanged as cursor; null when this is the last page.
|
|
101921
|
+
*/
|
|
101922
|
+
next_cursor: string | null;
|
|
101923
|
+
};
|
|
101924
|
+
};
|
|
101925
|
+
export type DatabaseListKeysResponse = DatabaseListKeysResponses[keyof DatabaseListKeysResponses];
|
|
101926
|
+
export type DatabaseDeleteKeyData = {
|
|
101927
|
+
body?: never;
|
|
101928
|
+
path: {
|
|
101929
|
+
/**
|
|
101930
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases for a database created with kind kv. A display name is not accepted; a table database returns 409 DATABASE_KIND_MISMATCH.
|
|
101931
|
+
*/
|
|
101932
|
+
database_id: string;
|
|
101933
|
+
/**
|
|
101934
|
+
* The key to delete: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
101935
|
+
*/
|
|
101936
|
+
key: string;
|
|
101937
|
+
};
|
|
101938
|
+
query?: never;
|
|
101939
|
+
url: '/database/v1/databases/{database_id}/keys/{key}';
|
|
101940
|
+
};
|
|
101941
|
+
export type DatabaseDeleteKeyErrors = {
|
|
101942
|
+
/**
|
|
101943
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
101944
|
+
*/
|
|
101945
|
+
403: DatabaseDatabaseError;
|
|
101946
|
+
/**
|
|
101947
|
+
* DATABASE_NOT_FOUND: no database with this id in your tenant, or a credential scoped to other databases.
|
|
101948
|
+
*/
|
|
101949
|
+
404: DatabaseDatabaseError;
|
|
101950
|
+
/**
|
|
101951
|
+
* DATABASE_KIND_MISMATCH: the database is a table database (kind table); use the tables and rows operations on it, or create a database with kind kv.
|
|
101952
|
+
*/
|
|
101953
|
+
409: DatabaseDatabaseError;
|
|
101954
|
+
/**
|
|
101955
|
+
* Database error; see the error code table.
|
|
101956
|
+
*/
|
|
101957
|
+
default: DatabaseDatabaseError;
|
|
101958
|
+
};
|
|
101959
|
+
export type DatabaseDeleteKeyError = DatabaseDeleteKeyErrors[keyof DatabaseDeleteKeyErrors];
|
|
101960
|
+
export type DatabaseDeleteKeyResponses = {
|
|
101961
|
+
/**
|
|
101962
|
+
* Success
|
|
101963
|
+
*/
|
|
101964
|
+
200: {
|
|
101965
|
+
/**
|
|
101966
|
+
* True when the key existed and was removed; false when it was absent or had already expired.
|
|
101967
|
+
*/
|
|
101968
|
+
deleted: boolean;
|
|
101969
|
+
};
|
|
101970
|
+
};
|
|
101971
|
+
export type DatabaseDeleteKeyResponse = DatabaseDeleteKeyResponses[keyof DatabaseDeleteKeyResponses];
|
|
101972
|
+
export type DatabaseGetKeyData = {
|
|
101973
|
+
body?: never;
|
|
101974
|
+
path: {
|
|
101975
|
+
/**
|
|
101976
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases for a database created with kind kv. A display name is not accepted; a table database returns 409 DATABASE_KIND_MISMATCH.
|
|
101977
|
+
*/
|
|
101978
|
+
database_id: string;
|
|
101979
|
+
/**
|
|
101980
|
+
* The key to read: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
101981
|
+
*/
|
|
101982
|
+
key: string;
|
|
101983
|
+
};
|
|
101984
|
+
query?: {
|
|
101985
|
+
/**
|
|
101986
|
+
* Container entries per page, 1–1000, default 100; ignored for a string value, which is never paged.
|
|
101987
|
+
*/
|
|
101988
|
+
limit?: number;
|
|
101989
|
+
/**
|
|
101990
|
+
* The next_cursor of the previous page of this key, passed back unchanged; omit it for the first page.
|
|
101991
|
+
*/
|
|
101992
|
+
cursor?: string;
|
|
101993
|
+
};
|
|
101994
|
+
url: '/database/v1/databases/{database_id}/keys/{key}';
|
|
101995
|
+
};
|
|
101996
|
+
export type DatabaseGetKeyErrors = {
|
|
101997
|
+
/**
|
|
101998
|
+
* INVALID_PARAMS: limit outside 1–1000 or a malformed query; fix the parameter named in details.
|
|
101999
|
+
*/
|
|
102000
|
+
400: DatabaseDatabaseError;
|
|
102001
|
+
/**
|
|
102002
|
+
* KEY_NOT_FOUND: the key does not exist or has expired; list keys to find a live one. DATABASE_NOT_FOUND: no database with this id in your tenant, or a credential scoped to other databases.
|
|
102003
|
+
*/
|
|
102004
|
+
404: DatabaseDatabaseError;
|
|
102005
|
+
/**
|
|
102006
|
+
* DATABASE_KIND_MISMATCH: the database is a table database (kind table); use the tables and rows operations on it, or create a database with kind kv.
|
|
102007
|
+
*/
|
|
102008
|
+
409: DatabaseDatabaseError;
|
|
102009
|
+
/**
|
|
102010
|
+
* Database error; see the error code table.
|
|
102011
|
+
*/
|
|
102012
|
+
default: DatabaseDatabaseError;
|
|
102013
|
+
};
|
|
102014
|
+
export type DatabaseGetKeyError = DatabaseGetKeyErrors[keyof DatabaseGetKeyErrors];
|
|
102015
|
+
export type DatabaseGetKeyResponses = {
|
|
102016
|
+
/**
|
|
102017
|
+
* Success
|
|
102018
|
+
*/
|
|
102019
|
+
200: DatabaseKey;
|
|
102020
|
+
};
|
|
102021
|
+
export type DatabaseGetKeyResponse = DatabaseGetKeyResponses[keyof DatabaseGetKeyResponses];
|
|
102022
|
+
export type DatabaseUpdateKeyData = {
|
|
102023
|
+
body: DatabaseUpdateKeyInput;
|
|
102024
|
+
path: {
|
|
102025
|
+
/**
|
|
102026
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases for a database created with kind kv. A display name is not accepted; a table database returns 409 DATABASE_KIND_MISMATCH.
|
|
102027
|
+
*/
|
|
102028
|
+
database_id: string;
|
|
102029
|
+
/**
|
|
102030
|
+
* The key whose TTL changes: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
102031
|
+
*/
|
|
102032
|
+
key: string;
|
|
102033
|
+
};
|
|
102034
|
+
query?: never;
|
|
102035
|
+
url: '/database/v1/databases/{database_id}/keys/{key}';
|
|
102036
|
+
};
|
|
102037
|
+
export type DatabaseUpdateKeyErrors = {
|
|
102038
|
+
/**
|
|
102039
|
+
* INVALID_PARAMS: update_mask is not ttl_ms, or ttl_ms is neither a positive integer nor null.
|
|
102040
|
+
*/
|
|
102041
|
+
400: DatabaseDatabaseError;
|
|
102042
|
+
/**
|
|
102043
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
102044
|
+
*/
|
|
102045
|
+
403: DatabaseDatabaseError;
|
|
102046
|
+
/**
|
|
102047
|
+
* KEY_NOT_FOUND: the key does not exist or has expired. DATABASE_NOT_FOUND: no database with this id in your tenant, or a credential scoped to other databases.
|
|
102048
|
+
*/
|
|
102049
|
+
404: DatabaseDatabaseError;
|
|
102050
|
+
/**
|
|
102051
|
+
* DATABASE_KIND_MISMATCH: the database is a table database (kind table); use the tables and rows operations on it, or create a database with kind kv.
|
|
102052
|
+
*/
|
|
102053
|
+
409: DatabaseDatabaseError;
|
|
102054
|
+
/**
|
|
102055
|
+
* Database error; see the error code table.
|
|
102056
|
+
*/
|
|
102057
|
+
default: DatabaseDatabaseError;
|
|
102058
|
+
};
|
|
102059
|
+
export type DatabaseUpdateKeyError = DatabaseUpdateKeyErrors[keyof DatabaseUpdateKeyErrors];
|
|
102060
|
+
export type DatabaseUpdateKeyResponses = {
|
|
102061
|
+
/**
|
|
102062
|
+
* Success
|
|
102063
|
+
*/
|
|
102064
|
+
200: DatabaseKey;
|
|
102065
|
+
};
|
|
102066
|
+
export type DatabaseUpdateKeyResponse = DatabaseUpdateKeyResponses[keyof DatabaseUpdateKeyResponses];
|
|
102067
|
+
export type DatabaseSetKeyData = {
|
|
102068
|
+
body: DatabaseSetKeyInput;
|
|
102069
|
+
path: {
|
|
102070
|
+
/**
|
|
102071
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases for a database created with kind kv. A display name is not accepted; a table database returns 409 DATABASE_KIND_MISMATCH.
|
|
102072
|
+
*/
|
|
102073
|
+
database_id: string;
|
|
102074
|
+
/**
|
|
102075
|
+
* The key to write: any UTF-8 string up to 1 KiB, percent-encoded in the path (for example user%3A1 for user:1). Keys are case-sensitive.
|
|
102076
|
+
*/
|
|
102077
|
+
key: string;
|
|
102078
|
+
};
|
|
102079
|
+
query?: never;
|
|
102080
|
+
url: '/database/v1/databases/{database_id}/keys/{key}';
|
|
102081
|
+
};
|
|
102082
|
+
export type DatabaseSetKeyErrors = {
|
|
102083
|
+
/**
|
|
102084
|
+
* INVALID_PARAMS: empty container, duplicate hash field or set member, non-finite zset score, value not matching type, or ttl_ms not a positive integer or null; LIMIT_EXCEEDED: key over 1 KiB or value over 1 MiB. Fix the field named in details.
|
|
102085
|
+
*/
|
|
102086
|
+
400: DatabaseDatabaseError;
|
|
102087
|
+
/**
|
|
102088
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
102089
|
+
*/
|
|
102090
|
+
403: DatabaseDatabaseError;
|
|
102091
|
+
/**
|
|
102092
|
+
* DATABASE_NOT_FOUND: no database with this id in your tenant, or a credential scoped to other databases.
|
|
102093
|
+
*/
|
|
102094
|
+
404: DatabaseDatabaseError;
|
|
102095
|
+
/**
|
|
102096
|
+
* DATABASE_KIND_MISMATCH: the database is a table database (kind table); use the tables and rows operations on it, or create a database with kind kv.
|
|
102097
|
+
*/
|
|
102098
|
+
409: DatabaseDatabaseError;
|
|
102099
|
+
/**
|
|
102100
|
+
* CAPACITY: the database reached its storage ceiling of 1 GiB; delete keys before writing more.
|
|
102101
|
+
*/
|
|
102102
|
+
503: DatabaseDatabaseError;
|
|
102103
|
+
/**
|
|
102104
|
+
* Database error; see the error code table.
|
|
102105
|
+
*/
|
|
102106
|
+
default: DatabaseDatabaseError;
|
|
102107
|
+
};
|
|
102108
|
+
export type DatabaseSetKeyError = DatabaseSetKeyErrors[keyof DatabaseSetKeyErrors];
|
|
102109
|
+
export type DatabaseSetKeyResponses = {
|
|
102110
|
+
/**
|
|
102111
|
+
* Success
|
|
102112
|
+
*/
|
|
102113
|
+
200: DatabaseKey;
|
|
102114
|
+
};
|
|
102115
|
+
export type DatabaseSetKeyResponse = DatabaseSetKeyResponses[keyof DatabaseSetKeyResponses];
|
|
102116
|
+
export type DatabaseExecuteCommandData = {
|
|
102117
|
+
body: DatabaseExecuteCommandInput;
|
|
102118
|
+
path: {
|
|
102119
|
+
/**
|
|
102120
|
+
* Identifier of the key-value database: the id (db_…) returned by databaseCreateDatabase or databaseListDatabases for a database created with kind kv. A display name is not accepted; a table database returns 409 DATABASE_KIND_MISMATCH.
|
|
102121
|
+
*/
|
|
102122
|
+
database_id: string;
|
|
102123
|
+
};
|
|
102124
|
+
query?: never;
|
|
102125
|
+
url: '/database/v1/databases/{database_id}/commands';
|
|
102126
|
+
};
|
|
102127
|
+
export type DatabaseExecuteCommandErrors = {
|
|
102128
|
+
/**
|
|
102129
|
+
* KV_COMMAND_ERROR: Redis rejected the command and message carries Redis's own text (WRONGTYPE …, ERR …); fix the command. INVALID_PARAMS: command missing, empty or containing a non-string element.
|
|
102130
|
+
*/
|
|
102131
|
+
400: DatabaseDatabaseError;
|
|
102132
|
+
/**
|
|
102133
|
+
* BINDING_READ_ONLY: the credential is bound to this database read-only and the call writes.
|
|
102134
|
+
*/
|
|
102135
|
+
403: DatabaseDatabaseError;
|
|
102136
|
+
/**
|
|
102137
|
+
* DATABASE_NOT_FOUND: no database with this id in your tenant, or a credential scoped to other databases.
|
|
102138
|
+
*/
|
|
102139
|
+
404: DatabaseDatabaseError;
|
|
102140
|
+
/**
|
|
102141
|
+
* DATABASE_KIND_MISMATCH: the database is a table database (kind table); use the tables and rows operations on it, or create a database with kind kv.
|
|
102142
|
+
*/
|
|
102143
|
+
409: DatabaseDatabaseError;
|
|
102144
|
+
/**
|
|
102145
|
+
* Database error; see the error code table.
|
|
102146
|
+
*/
|
|
102147
|
+
default: DatabaseDatabaseError;
|
|
102148
|
+
};
|
|
102149
|
+
export type DatabaseExecuteCommandError = DatabaseExecuteCommandErrors[keyof DatabaseExecuteCommandErrors];
|
|
102150
|
+
export type DatabaseExecuteCommandResponses = {
|
|
102151
|
+
/**
|
|
102152
|
+
* Success
|
|
102153
|
+
*/
|
|
102154
|
+
200: {
|
|
102155
|
+
/**
|
|
102156
|
+
* Redis's reply as JSON: an integer, a string, an array (possibly nested) or null, exactly the Redis reply for the command; not base64-encoded.
|
|
102157
|
+
*/
|
|
102158
|
+
result: unknown;
|
|
102159
|
+
};
|
|
102160
|
+
};
|
|
102161
|
+
export type DatabaseExecuteCommandResponse = DatabaseExecuteCommandResponses[keyof DatabaseExecuteCommandResponses];
|
|
99598
102162
|
export type DevopsTestCatalogGetData = {
|
|
99599
102163
|
body?: never;
|
|
99600
102164
|
path: {
|