@xata.io/client 0.0.0-alpha.vfa37ea7 → 0.0.0-alpha.vfaba5d6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -37,7 +37,7 @@ type TraceFunction = <T>(name: string, fn: (options: {
37
37
  }) => T, options?: AttributeDictionary) => Promise<T>;
38
38
 
39
39
  type RequestInit = {
40
- body?: string;
40
+ body?: any;
41
41
  headers?: Record<string, string>;
42
42
  method?: string;
43
43
  signal?: any;
@@ -47,6 +47,8 @@ type Response = {
47
47
  status: number;
48
48
  url: string;
49
49
  json(): Promise<any>;
50
+ text(): Promise<string>;
51
+ blob(): Promise<Blob>;
50
52
  headers?: {
51
53
  get(name: string): string | null;
52
54
  };
@@ -81,6 +83,8 @@ type FetcherExtraProps = {
81
83
  clientName?: string;
82
84
  xataAgentExtra?: Record<string, string>;
83
85
  fetchOptions?: Record<string, unknown>;
86
+ rawResponse?: boolean;
87
+ headers?: Record<string, unknown>;
84
88
  };
85
89
 
86
90
  type ControlPlaneFetcherExtraProps = {
@@ -260,6 +264,7 @@ type DatabaseGithubSettings = {
260
264
  };
261
265
  type Region = {
262
266
  id: string;
267
+ name: string;
263
268
  };
264
269
  type ListRegionsResponse = {
265
270
  /**
@@ -1171,11 +1176,16 @@ type ColumnVector = {
1171
1176
  */
1172
1177
  dimension: number;
1173
1178
  };
1179
+ type ColumnFile = {
1180
+ defaultPublicAccess?: boolean;
1181
+ };
1174
1182
  type Column = {
1175
1183
  name: string;
1176
1184
  type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file';
1177
1185
  link?: ColumnLink;
1178
1186
  vector?: ColumnVector;
1187
+ file?: ColumnFile;
1188
+ ['file[]']?: ColumnFile;
1179
1189
  notNull?: boolean;
1180
1190
  defaultValue?: string;
1181
1191
  unique?: boolean;
@@ -1714,7 +1724,7 @@ type TransactionError = {
1714
1724
  message: string;
1715
1725
  };
1716
1726
  /**
1717
- * An array of errors, with indicides, from the transaction.
1727
+ * An array of errors, with indices, from the transaction.
1718
1728
  */
1719
1729
  type TransactionFailure = {
1720
1730
  /**
@@ -1823,6 +1833,14 @@ type RecordMeta = {
1823
1833
  * The record's version. Can be used for optimistic concurrency control.
1824
1834
  */
1825
1835
  version: number;
1836
+ /**
1837
+ * The time when the record was created.
1838
+ */
1839
+ createdAt?: string;
1840
+ /**
1841
+ * The time when the record was last updated.
1842
+ */
1843
+ updatedAt?: string;
1826
1844
  /**
1827
1845
  * The record's table name. APIs that return records from multiple tables will set this field accordingly.
1828
1846
  */
@@ -1862,6 +1880,30 @@ type FileResponse = {
1862
1880
  version: number;
1863
1881
  attributes?: Record<string, any>;
1864
1882
  };
1883
+ type QueryColumnsProjection = (string | ProjectionConfig)[];
1884
+ /**
1885
+ * A structured projection that allows for some configuration.
1886
+ */
1887
+ type ProjectionConfig = {
1888
+ /**
1889
+ * The name of the column to project or a reverse link specification, see [API Guide](https://xata.io/docs/concepts/data-model#links-and-relations).
1890
+ */
1891
+ name?: string;
1892
+ columns?: QueryColumnsProjection;
1893
+ /**
1894
+ * An alias for the projected field, this is how it will be returned in the response.
1895
+ */
1896
+ as?: string;
1897
+ sort?: SortExpression;
1898
+ /**
1899
+ * @default 20
1900
+ */
1901
+ limit?: number;
1902
+ /**
1903
+ * @default 0
1904
+ */
1905
+ offset?: number;
1906
+ };
1865
1907
  /**
1866
1908
  * The target expression is used to filter the search results by the target columns.
1867
1909
  */
@@ -1948,7 +1990,7 @@ type DateBooster$1 = {
1948
1990
  */
1949
1991
  origin?: string;
1950
1992
  /**
1951
- * The duration at which distance from origin the score is decayed with factor, using an exponential function. It is fromatted as number + units, for example: `5d`, `20m`, `10s`.
1993
+ * The duration at which distance from origin the score is decayed with factor, using an exponential function. It is formatted as number + units, for example: `5d`, `20m`, `10s`.
1952
1994
  *
1953
1995
  * @pattern ^(\d+)(d|h|m|s|ms)$
1954
1996
  */
@@ -1983,7 +2025,7 @@ type BoosterExpression = {
1983
2025
  /**
1984
2026
  * Maximum [Levenshtein distance](https://en.wikipedia.org/wiki/Levenshtein_distance) for the search terms. The Levenshtein
1985
2027
  * distance is the number of one character changes needed to make two strings equal. The default is 1, meaning that single
1986
- * character typos per word are tollerated by search. You can set it to 0 to remove the typo tollerance or set it to 2
2028
+ * character typos per word are tolerated by search. You can set it to 0 to remove the typo tolerance or set it to 2
1987
2029
  * to allow two typos in a word.
1988
2030
  *
1989
2031
  * @default 1
@@ -2136,7 +2178,7 @@ type UniqueCountAgg = {
2136
2178
  column: string;
2137
2179
  /**
2138
2180
  * The threshold under which the unique count is exact. If the number of unique
2139
- * values in the column is higher than this threshold, the results are approximative.
2181
+ * values in the column is higher than this threshold, the results are approximate.
2140
2182
  * Maximum value is 40,000, default value is 3000.
2141
2183
  */
2142
2184
  precisionThreshold?: number;
@@ -2159,7 +2201,7 @@ type DateHistogramAgg = {
2159
2201
  column: string;
2160
2202
  /**
2161
2203
  * The fixed interval to use when bucketing.
2162
- * It is fromatted as number + units, for example: `5d`, `20m`, `10s`.
2204
+ * It is formatted as number + units, for example: `5d`, `20m`, `10s`.
2163
2205
  *
2164
2206
  * @pattern ^(\d+)(d|h|m|s|ms)$
2165
2207
  */
@@ -2214,7 +2256,7 @@ type NumericHistogramAgg = {
2214
2256
  interval: number;
2215
2257
  /**
2216
2258
  * By default the bucket keys start with 0 and then continue in `interval` steps. The bucket
2217
- * boundaries can be shiftend by using the offset option. For example, if the `interval` is 100,
2259
+ * boundaries can be shifted by using the offset option. For example, if the `interval` is 100,
2218
2260
  * but you prefer the bucket boundaries to be `[50, 150), [150, 250), etc.`, you can set `offset`
2219
2261
  * to 50.
2220
2262
  *
@@ -2318,6 +2360,8 @@ type RecordUpdateResponse = XataRecord$1 | {
2318
2360
  id: string;
2319
2361
  xata: {
2320
2362
  version: number;
2363
+ createdAt: string;
2364
+ updatedAt: string;
2321
2365
  };
2322
2366
  };
2323
2367
  type PutFileResponse = FileResponse;
@@ -2337,6 +2381,10 @@ type QueryResponse = {
2337
2381
  records: XataRecord$1[];
2338
2382
  meta: RecordsMetadata;
2339
2383
  };
2384
+ type ServiceUnavailableError = {
2385
+ id?: string;
2386
+ message: string;
2387
+ };
2340
2388
  type SearchResponse = {
2341
2389
  records: XataRecord$1[];
2342
2390
  warning?: string;
@@ -3659,9 +3707,7 @@ type AddTableColumnVariables = {
3659
3707
  pathParams: AddTableColumnPathParams;
3660
3708
  } & DataPlaneFetcherExtraProps;
3661
3709
  /**
3662
- * Adds a new column to the table. The body of the request should contain the column definition. In the column definition, the 'name' field should
3663
- * contain the full path separated by dots. If the parent objects do not exists, they will be automatically created. For example,
3664
- * passing `"name": "address.city"` will auto-create the `address` object if it doesn't exist.
3710
+ * Adds a new column to the table. The body of the request should contain the column definition.
3665
3711
  */
3666
3712
  declare const addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
3667
3713
  type GetColumnPathParams = {
@@ -3694,7 +3740,7 @@ type GetColumnVariables = {
3694
3740
  pathParams: GetColumnPathParams;
3695
3741
  } & DataPlaneFetcherExtraProps;
3696
3742
  /**
3697
- * Get the definition of a single column. To refer to sub-objects, the column name can contain dots. For example `address.country`.
3743
+ * Get the definition of a single column.
3698
3744
  */
3699
3745
  declare const getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
3700
3746
  type UpdateColumnPathParams = {
@@ -3734,7 +3780,7 @@ type UpdateColumnVariables = {
3734
3780
  pathParams: UpdateColumnPathParams;
3735
3781
  } & DataPlaneFetcherExtraProps;
3736
3782
  /**
3737
- * Update column with partial data. Can be used for renaming the column by providing a new "name" field. To refer to sub-objects, the column name can contain dots. For example `address.country`.
3783
+ * Update column with partial data. Can be used for renaming the column by providing a new "name" field.
3738
3784
  */
3739
3785
  declare const updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
3740
3786
  type DeleteColumnPathParams = {
@@ -3767,7 +3813,7 @@ type DeleteColumnVariables = {
3767
3813
  pathParams: DeleteColumnPathParams;
3768
3814
  } & DataPlaneFetcherExtraProps;
3769
3815
  /**
3770
- * Deletes the specified column. To refer to sub-objects, the column name can contain dots. For example `address.country`.
3816
+ * Deletes the specified column.
3771
3817
  */
3772
3818
  declare const deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
3773
3819
  type BranchTransactionPathParams = {
@@ -4346,12 +4392,15 @@ type QueryTableError = ErrorWrapper<{
4346
4392
  } | {
4347
4393
  status: 404;
4348
4394
  payload: SimpleError;
4395
+ } | {
4396
+ status: 503;
4397
+ payload: ServiceUnavailableError;
4349
4398
  }>;
4350
4399
  type QueryTableRequestBody = {
4351
4400
  filter?: FilterExpression;
4352
4401
  sort?: SortExpression;
4353
4402
  page?: PageConfig;
4354
- columns?: ColumnsProjection;
4403
+ columns?: QueryColumnsProjection;
4355
4404
  /**
4356
4405
  * The consistency level for this request.
4357
4406
  *
@@ -5180,6 +5229,9 @@ type SearchBranchError = ErrorWrapper<{
5180
5229
  } | {
5181
5230
  status: 404;
5182
5231
  payload: SimpleError;
5232
+ } | {
5233
+ status: 503;
5234
+ payload: ServiceUnavailableError;
5183
5235
  }>;
5184
5236
  type SearchBranchRequestBody = {
5185
5237
  /**
@@ -5279,6 +5331,9 @@ type SqlQueryError = ErrorWrapper<{
5279
5331
  } | {
5280
5332
  status: 404;
5281
5333
  payload: SimpleError;
5334
+ } | {
5335
+ status: 503;
5336
+ payload: ServiceUnavailableError;
5282
5337
  }>;
5283
5338
  type SqlQueryRequestBody = {
5284
5339
  /**
@@ -5287,6 +5342,10 @@ type SqlQueryRequestBody = {
5287
5342
  * @minLength 1
5288
5343
  */
5289
5344
  query: string;
5345
+ /**
5346
+ * The query parameter list.
5347
+ */
5348
+ params?: any[] | null;
5290
5349
  /**
5291
5350
  * The consistency level for this request.
5292
5351
  *
@@ -5391,7 +5450,11 @@ type AskTableResponse = {
5391
5450
  /**
5392
5451
  * The answer to the input question
5393
5452
  */
5394
- answer?: string;
5453
+ answer: string;
5454
+ /**
5455
+ * The session ID for the chat session. Only returned if the `session_type` is `chat`.
5456
+ */
5457
+ sessionID?: string;
5395
5458
  };
5396
5459
  type AskTableRequestBody = {
5397
5460
  /**
@@ -5399,7 +5462,7 @@ type AskTableRequestBody = {
5399
5462
  *
5400
5463
  * @minLength 3
5401
5464
  */
5402
- question: string;
5465
+ question?: string;
5403
5466
  /**
5404
5467
  * The type of search to use. If set to `keyword` (the default), the search can be configured by passing
5405
5468
  * a `search` object with the following fields. For more details about each, see the Search endpoint documentation.
@@ -5439,13 +5502,68 @@ type AskTableRequestBody = {
5439
5502
  rules?: string[];
5440
5503
  };
5441
5504
  type AskTableVariables = {
5442
- body: AskTableRequestBody;
5505
+ body?: AskTableRequestBody;
5443
5506
  pathParams: AskTablePathParams;
5444
5507
  } & DataPlaneFetcherExtraProps;
5445
5508
  /**
5446
5509
  * Ask your table a question. If the `Accept` header is set to `text/event-stream`, Xata will stream the results back as SSE's.
5447
5510
  */
5448
5511
  declare const askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
5512
+ type ChatSessionMessagePathParams = {
5513
+ /**
5514
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
5515
+ */
5516
+ dbBranchName: DBBranchName;
5517
+ /**
5518
+ * The Table name
5519
+ */
5520
+ tableName: TableName;
5521
+ /**
5522
+ * @maxLength 36
5523
+ * @minLength 36
5524
+ */
5525
+ sessionId: string;
5526
+ workspace: string;
5527
+ region: string;
5528
+ };
5529
+ type ChatSessionMessageError = ErrorWrapper<{
5530
+ status: 400;
5531
+ payload: BadRequestError;
5532
+ } | {
5533
+ status: 401;
5534
+ payload: AuthError;
5535
+ } | {
5536
+ status: 404;
5537
+ payload: SimpleError;
5538
+ } | {
5539
+ status: 429;
5540
+ payload: RateLimitError;
5541
+ } | {
5542
+ status: 503;
5543
+ payload: ServiceUnavailableError;
5544
+ }>;
5545
+ type ChatSessionMessageResponse = {
5546
+ /**
5547
+ * The answer to the input question
5548
+ */
5549
+ answer?: string;
5550
+ };
5551
+ type ChatSessionMessageRequestBody = {
5552
+ /**
5553
+ * The question you'd like to ask.
5554
+ *
5555
+ * @minLength 3
5556
+ */
5557
+ message?: string;
5558
+ };
5559
+ type ChatSessionMessageVariables = {
5560
+ body?: ChatSessionMessageRequestBody;
5561
+ pathParams: ChatSessionMessagePathParams;
5562
+ } & DataPlaneFetcherExtraProps;
5563
+ /**
5564
+ * Ask a follow-up question. If the `Accept` header is set to `text/event-stream`, Xata will stream the results back as SSE's.
5565
+ */
5566
+ declare const chatSessionMessage: (variables: ChatSessionMessageVariables, signal?: AbortSignal) => Promise<ChatSessionMessageResponse>;
5449
5567
  type SummarizeTablePathParams = {
5450
5568
  /**
5451
5569
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
@@ -5710,6 +5828,7 @@ declare const operationsByTag: {
5710
5828
  sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
5711
5829
  vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
5712
5830
  askTable: (variables: AskTableVariables, signal?: AbortSignal | undefined) => Promise<AskTableResponse>;
5831
+ chatSessionMessage: (variables: ChatSessionMessageVariables, signal?: AbortSignal | undefined) => Promise<ChatSessionMessageResponse>;
5713
5832
  summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal | undefined) => Promise<SummarizeResponse>;
5714
5833
  aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal | undefined) => Promise<AggResponse>;
5715
5834
  };
@@ -5785,6 +5904,7 @@ type responses_SQLResponse = SQLResponse;
5785
5904
  type responses_SchemaCompareResponse = SchemaCompareResponse;
5786
5905
  type responses_SchemaUpdateResponse = SchemaUpdateResponse;
5787
5906
  type responses_SearchResponse = SearchResponse;
5907
+ type responses_ServiceUnavailableError = ServiceUnavailableError;
5788
5908
  type responses_SimpleError = SimpleError;
5789
5909
  type responses_SummarizeResponse = SummarizeResponse;
5790
5910
  declare namespace responses {
@@ -5804,6 +5924,7 @@ declare namespace responses {
5804
5924
  responses_SchemaCompareResponse as SchemaCompareResponse,
5805
5925
  responses_SchemaUpdateResponse as SchemaUpdateResponse,
5806
5926
  responses_SearchResponse as SearchResponse,
5927
+ responses_ServiceUnavailableError as ServiceUnavailableError,
5807
5928
  responses_SimpleError as SimpleError,
5808
5929
  responses_SummarizeResponse as SummarizeResponse,
5809
5930
  };
@@ -5821,6 +5942,7 @@ type schemas_BranchName = BranchName;
5821
5942
  type schemas_BranchOp = BranchOp;
5822
5943
  type schemas_BranchWithCopyID = BranchWithCopyID;
5823
5944
  type schemas_Column = Column;
5945
+ type schemas_ColumnFile = ColumnFile;
5824
5946
  type schemas_ColumnLink = ColumnLink;
5825
5947
  type schemas_ColumnMigration = ColumnMigration;
5826
5948
  type schemas_ColumnName = ColumnName;
@@ -5881,6 +6003,8 @@ type schemas_NumericHistogramAgg = NumericHistogramAgg;
5881
6003
  type schemas_ObjectValue = ObjectValue;
5882
6004
  type schemas_PageConfig = PageConfig;
5883
6005
  type schemas_PrefixExpression = PrefixExpression;
6006
+ type schemas_ProjectionConfig = ProjectionConfig;
6007
+ type schemas_QueryColumnsProjection = QueryColumnsProjection;
5884
6008
  type schemas_RecordID = RecordID;
5885
6009
  type schemas_RecordMeta = RecordMeta;
5886
6010
  type schemas_RecordsMetadata = RecordsMetadata;
@@ -5943,6 +6067,7 @@ declare namespace schemas {
5943
6067
  schemas_BranchOp as BranchOp,
5944
6068
  schemas_BranchWithCopyID as BranchWithCopyID,
5945
6069
  schemas_Column as Column,
6070
+ schemas_ColumnFile as ColumnFile,
5946
6071
  schemas_ColumnLink as ColumnLink,
5947
6072
  schemas_ColumnMigration as ColumnMigration,
5948
6073
  schemas_ColumnName as ColumnName,
@@ -6005,6 +6130,8 @@ declare namespace schemas {
6005
6130
  schemas_ObjectValue as ObjectValue,
6006
6131
  schemas_PageConfig as PageConfig,
6007
6132
  schemas_PrefixExpression as PrefixExpression,
6133
+ schemas_ProjectionConfig as ProjectionConfig,
6134
+ schemas_QueryColumnsProjection as QueryColumnsProjection,
6008
6135
  schemas_RecordID as RecordID,
6009
6136
  schemas_RecordMeta as RecordMeta,
6010
6137
  schemas_RecordsMetadata as RecordsMetadata,
@@ -6536,6 +6663,15 @@ declare class SearchAndFilterApi {
6536
6663
  table: TableName;
6537
6664
  options: AskTableRequestBody;
6538
6665
  }): Promise<AskTableResponse>;
6666
+ chatSessionMessage({ workspace, region, database, branch, table, sessionId, message }: {
6667
+ workspace: WorkspaceID;
6668
+ region: string;
6669
+ database: DBName;
6670
+ branch: BranchName;
6671
+ table: TableName;
6672
+ sessionId: string;
6673
+ message: string;
6674
+ }): Promise<ChatSessionMessageResponse>;
6539
6675
  summarizeTable({ workspace, region, database, branch, table, filter, columns, summaries, sort, summariesFilter, page, consistency }: {
6540
6676
  workspace: WorkspaceID;
6541
6677
  region: string;
@@ -6792,7 +6928,7 @@ type Narrowable = string | number | bigint | boolean;
6792
6928
  type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;
6793
6929
  type Narrow<A> = Try<A, [], NarrowRaw<A>>;
6794
6930
 
6795
- type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | DataProps<O> | NestedColumns<O, RecursivePath>;
6931
+ type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | `xata.${'version' | 'createdAt' | 'updatedAt'}` | DataProps<O> | NestedColumns<O, RecursivePath>;
6796
6932
  type WildcardColumns<O> = Values<{
6797
6933
  [K in SelectableColumn<O>]: K extends `${string}*` ? K : never;
6798
6934
  }>;
@@ -6821,6 +6957,8 @@ type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${in
6821
6957
  } : unknown;
6822
6958
  type ForwardNullable<T, R> = T extends NonNullable<T> ? R : R | null;
6823
6959
 
6960
+ declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file"];
6961
+ type Identifier = string;
6824
6962
  /**
6825
6963
  * Represents an identifiable record from the database.
6826
6964
  */
@@ -6828,7 +6966,7 @@ interface Identifiable {
6828
6966
  /**
6829
6967
  * Unique id of this record.
6830
6968
  */
6831
- id: string;
6969
+ id: Identifier;
6832
6970
  }
6833
6971
  interface BaseData {
6834
6972
  [key: string]: any;
@@ -6943,10 +7081,10 @@ type NumericOperator = ExclusiveOr<{
6943
7081
  $divide?: number;
6944
7082
  }>>>;
6945
7083
  type EditableDataFields<T> = T extends XataRecord ? {
6946
- id: string;
6947
- } | string : NonNullable<T> extends XataRecord ? {
6948
- id: string;
6949
- } | string | null | undefined : T extends Date ? string | Date : NonNullable<T> extends Date ? string | Date | null | undefined : T extends number ? number | NumericOperator : T;
7084
+ id: Identifier;
7085
+ } | Identifier : NonNullable<T> extends XataRecord ? {
7086
+ id: Identifier;
7087
+ } | Identifier | null | undefined : T extends Date ? string | Date : NonNullable<T> extends Date ? string | Date | null | undefined : T extends number ? number | NumericOperator : T;
6950
7088
  type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
6951
7089
  [K in keyof O]: EditableDataFields<O[K]>;
6952
7090
  }, keyof XataRecord>>;
@@ -7876,7 +8014,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
7876
8014
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
7877
8015
  * @returns The full persisted record.
7878
8016
  */
7879
- abstract create<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8017
+ abstract create<K extends SelectableColumn<Record>>(id: Identifier, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
7880
8018
  ifVersion?: number;
7881
8019
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
7882
8020
  /**
@@ -7885,7 +8023,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
7885
8023
  * @param object Object containing the column names with their values to be stored in the table.
7886
8024
  * @returns The full persisted record.
7887
8025
  */
7888
- abstract create(id: string, object: Omit<EditableData<Record>, 'id'>, options?: {
8026
+ abstract create(id: Identifier, object: Omit<EditableData<Record>, 'id'>, options?: {
7889
8027
  ifVersion?: number;
7890
8028
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
7891
8029
  /**
@@ -7907,26 +8045,26 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
7907
8045
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
7908
8046
  * @returns The persisted record for the given id or null if the record could not be found.
7909
8047
  */
7910
- abstract read<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
8048
+ abstract read<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
7911
8049
  /**
7912
8050
  * Queries a single record from the table given its unique id.
7913
8051
  * @param id The unique id.
7914
8052
  * @returns The persisted record for the given id or null if the record could not be found.
7915
8053
  */
7916
- abstract read(id: string): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
8054
+ abstract read(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
7917
8055
  /**
7918
8056
  * Queries multiple records from the table given their unique id.
7919
8057
  * @param ids The unique ids array.
7920
8058
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
7921
8059
  * @returns The persisted records for the given ids in order (if a record could not be found null is returned).
7922
8060
  */
7923
- abstract read<K extends SelectableColumn<Record>>(ids: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8061
+ abstract read<K extends SelectableColumn<Record>>(ids: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
7924
8062
  /**
7925
8063
  * Queries multiple records from the table given their unique id.
7926
8064
  * @param ids The unique ids array.
7927
8065
  * @returns The persisted records for the given ids in order (if a record could not be found null is returned).
7928
8066
  */
7929
- abstract read(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8067
+ abstract read(ids: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
7930
8068
  /**
7931
8069
  * Queries a single record from the table by the id in the object.
7932
8070
  * @param object Object containing the id of the record.
@@ -7960,14 +8098,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
7960
8098
  * @returns The persisted record for the given id.
7961
8099
  * @throws If the record could not be found.
7962
8100
  */
7963
- abstract readOrThrow<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8101
+ abstract readOrThrow<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
7964
8102
  /**
7965
8103
  * Queries a single record from the table given its unique id.
7966
8104
  * @param id The unique id.
7967
8105
  * @returns The persisted record for the given id.
7968
8106
  * @throws If the record could not be found.
7969
8107
  */
7970
- abstract readOrThrow(id: string): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8108
+ abstract readOrThrow(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']>>>;
7971
8109
  /**
7972
8110
  * Queries multiple records from the table given their unique id.
7973
8111
  * @param ids The unique ids array.
@@ -7975,14 +8113,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
7975
8113
  * @returns The persisted records for the given ids in order.
7976
8114
  * @throws If one or more records could not be found.
7977
8115
  */
7978
- abstract readOrThrow<K extends SelectableColumn<Record>>(ids: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8116
+ abstract readOrThrow<K extends SelectableColumn<Record>>(ids: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
7979
8117
  /**
7980
8118
  * Queries multiple records from the table given their unique id.
7981
8119
  * @param ids The unique ids array.
7982
8120
  * @returns The persisted records for the given ids in order.
7983
8121
  * @throws If one or more records could not be found.
7984
8122
  */
7985
- abstract readOrThrow(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8123
+ abstract readOrThrow(ids: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
7986
8124
  /**
7987
8125
  * Queries a single record from the table by the id in the object.
7988
8126
  * @param object Object containing the id of the record.
@@ -8037,7 +8175,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8037
8175
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8038
8176
  * @returns The full persisted record, null if the record could not be found.
8039
8177
  */
8040
- abstract update<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Record>>, columns: K[], options?: {
8178
+ abstract update<K extends SelectableColumn<Record>>(id: Identifier, object: Partial<EditableData<Record>>, columns: K[], options?: {
8041
8179
  ifVersion?: number;
8042
8180
  }): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8043
8181
  /**
@@ -8046,7 +8184,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8046
8184
  * @param object The column names and their values that have to be updated.
8047
8185
  * @returns The full persisted record, null if the record could not be found.
8048
8186
  */
8049
- abstract update(id: string, object: Partial<EditableData<Record>>, options?: {
8187
+ abstract update(id: Identifier, object: Partial<EditableData<Record>>, options?: {
8050
8188
  ifVersion?: number;
8051
8189
  }): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8052
8190
  /**
@@ -8089,7 +8227,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8089
8227
  * @returns The full persisted record.
8090
8228
  * @throws If the record could not be found.
8091
8229
  */
8092
- abstract updateOrThrow<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Record>>, columns: K[], options?: {
8230
+ abstract updateOrThrow<K extends SelectableColumn<Record>>(id: Identifier, object: Partial<EditableData<Record>>, columns: K[], options?: {
8093
8231
  ifVersion?: number;
8094
8232
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8095
8233
  /**
@@ -8099,7 +8237,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8099
8237
  * @returns The full persisted record.
8100
8238
  * @throws If the record could not be found.
8101
8239
  */
8102
- abstract updateOrThrow(id: string, object: Partial<EditableData<Record>>, options?: {
8240
+ abstract updateOrThrow(id: Identifier, object: Partial<EditableData<Record>>, options?: {
8103
8241
  ifVersion?: number;
8104
8242
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8105
8243
  /**
@@ -8124,7 +8262,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8124
8262
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8125
8263
  * @returns The full persisted record.
8126
8264
  */
8127
- abstract createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Record> & Identifiable, columns: K[], options?: {
8265
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, columns: K[], options?: {
8128
8266
  ifVersion?: number;
8129
8267
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8130
8268
  /**
@@ -8133,7 +8271,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8133
8271
  * @param object Object containing the column names with their values to be persisted in the table.
8134
8272
  * @returns The full persisted record.
8135
8273
  */
8136
- abstract createOrUpdate(object: EditableData<Record> & Identifiable, options?: {
8274
+ abstract createOrUpdate(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, options?: {
8137
8275
  ifVersion?: number;
8138
8276
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8139
8277
  /**
@@ -8144,7 +8282,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8144
8282
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8145
8283
  * @returns The full persisted record.
8146
8284
  */
8147
- abstract createOrUpdate<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8285
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8148
8286
  ifVersion?: number;
8149
8287
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8150
8288
  /**
@@ -8154,7 +8292,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8154
8292
  * @param object The column names and the values to be persisted.
8155
8293
  * @returns The full persisted record.
8156
8294
  */
8157
- abstract createOrUpdate(id: string, object: Omit<EditableData<Record>, 'id'>, options?: {
8295
+ abstract createOrUpdate(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, options?: {
8158
8296
  ifVersion?: number;
8159
8297
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8160
8298
  /**
@@ -8164,14 +8302,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8164
8302
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8165
8303
  * @returns Array of the persisted records.
8166
8304
  */
8167
- abstract createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8305
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8168
8306
  /**
8169
8307
  * Creates or updates a single record. If a record exists with the given id,
8170
8308
  * it will be partially updated, otherwise a new record will be created.
8171
8309
  * @param objects Array of objects with the column names and the values to be stored in the table.
8172
8310
  * @returns Array of the persisted records.
8173
8311
  */
8174
- abstract createOrUpdate(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8312
+ abstract createOrUpdate(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8175
8313
  /**
8176
8314
  * Creates or replaces a single record. If a record exists with the given id,
8177
8315
  * it will be replaced, otherwise a new record will be created.
@@ -8179,7 +8317,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8179
8317
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8180
8318
  * @returns The full persisted record.
8181
8319
  */
8182
- abstract createOrReplace<K extends SelectableColumn<Record>>(object: EditableData<Record> & Identifiable, columns: K[], options?: {
8320
+ abstract createOrReplace<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, columns: K[], options?: {
8183
8321
  ifVersion?: number;
8184
8322
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8185
8323
  /**
@@ -8188,7 +8326,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8188
8326
  * @param object Object containing the column names with their values to be persisted in the table.
8189
8327
  * @returns The full persisted record.
8190
8328
  */
8191
- abstract createOrReplace(object: EditableData<Record> & Identifiable, options?: {
8329
+ abstract createOrReplace(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, options?: {
8192
8330
  ifVersion?: number;
8193
8331
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8194
8332
  /**
@@ -8199,7 +8337,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8199
8337
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8200
8338
  * @returns The full persisted record.
8201
8339
  */
8202
- abstract createOrReplace<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8340
+ abstract createOrReplace<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8203
8341
  ifVersion?: number;
8204
8342
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8205
8343
  /**
@@ -8209,7 +8347,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8209
8347
  * @param object The column names and the values to be persisted.
8210
8348
  * @returns The full persisted record.
8211
8349
  */
8212
- abstract createOrReplace(id: string, object: Omit<EditableData<Record>, 'id'>, options?: {
8350
+ abstract createOrReplace(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, options?: {
8213
8351
  ifVersion?: number;
8214
8352
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8215
8353
  /**
@@ -8219,14 +8357,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8219
8357
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8220
8358
  * @returns Array of the persisted records.
8221
8359
  */
8222
- abstract createOrReplace<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8360
+ abstract createOrReplace<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8223
8361
  /**
8224
8362
  * Creates or replaces a single record. If a record exists with the given id,
8225
8363
  * it will be replaced, otherwise a new record will be created.
8226
8364
  * @param objects Array of objects with the column names and the values to be stored in the table.
8227
8365
  * @returns Array of the persisted records.
8228
8366
  */
8229
- abstract createOrReplace(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8367
+ abstract createOrReplace(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8230
8368
  /**
8231
8369
  * Deletes a record given its unique id.
8232
8370
  * @param object An object with a unique id.
@@ -8246,13 +8384,13 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8246
8384
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8247
8385
  * @returns The deleted record, null if the record could not be found.
8248
8386
  */
8249
- abstract delete<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8387
+ abstract delete<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8250
8388
  /**
8251
8389
  * Deletes a record given a unique id.
8252
8390
  * @param id The unique id.
8253
8391
  * @returns The deleted record, null if the record could not be found.
8254
8392
  */
8255
- abstract delete(id: string): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8393
+ abstract delete(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8256
8394
  /**
8257
8395
  * Deletes multiple records given an array of objects with ids.
8258
8396
  * @param objects An array of objects with unique ids.
@@ -8272,13 +8410,13 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8272
8410
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8273
8411
  * @returns Array of the deleted records in order (if a record could not be found null is returned).
8274
8412
  */
8275
- abstract delete<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8413
+ abstract delete<K extends SelectableColumn<Record>>(objects: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8276
8414
  /**
8277
8415
  * Deletes multiple records given an array of unique ids.
8278
8416
  * @param objects An array of ids.
8279
8417
  * @returns Array of the deleted records in order (if a record could not be found null is returned).
8280
8418
  */
8281
- abstract delete(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8419
+ abstract delete(objects: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8282
8420
  /**
8283
8421
  * Deletes a record given its unique id.
8284
8422
  * @param object An object with a unique id.
@@ -8301,14 +8439,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8301
8439
  * @returns The deleted record, null if the record could not be found.
8302
8440
  * @throws If the record could not be found.
8303
8441
  */
8304
- abstract deleteOrThrow<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8442
+ abstract deleteOrThrow<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8305
8443
  /**
8306
8444
  * Deletes a record given a unique id.
8307
8445
  * @param id The unique id.
8308
8446
  * @returns The deleted record, null if the record could not be found.
8309
8447
  * @throws If the record could not be found.
8310
8448
  */
8311
- abstract deleteOrThrow(id: string): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8449
+ abstract deleteOrThrow(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8312
8450
  /**
8313
8451
  * Deletes multiple records given an array of objects with ids.
8314
8452
  * @param objects An array of objects with unique ids.
@@ -8331,14 +8469,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8331
8469
  * @returns Array of the deleted records in order (if a record could not be found null is returned).
8332
8470
  * @throws If one or more records could not be found.
8333
8471
  */
8334
- abstract deleteOrThrow<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8472
+ abstract deleteOrThrow<K extends SelectableColumn<Record>>(objects: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8335
8473
  /**
8336
8474
  * Deletes multiple records given an array of unique ids.
8337
8475
  * @param objects An array of ids.
8338
8476
  * @returns Array of the deleted records in order.
8339
8477
  * @throws If one or more records could not be found.
8340
8478
  */
8341
- abstract deleteOrThrow(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8479
+ abstract deleteOrThrow(objects: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8342
8480
  /**
8343
8481
  * Search for records in the table.
8344
8482
  * @param query The query to search for.
@@ -8411,26 +8549,26 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
8411
8549
  create(object: EditableData<Record> & Partial<Identifiable>, options?: {
8412
8550
  ifVersion?: number;
8413
8551
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8414
- create<K extends SelectableColumn<Record>>(id: string, object: EditableData<Record>, columns: K[], options?: {
8552
+ create<K extends SelectableColumn<Record>>(id: Identifier, object: EditableData<Record>, columns: K[], options?: {
8415
8553
  ifVersion?: number;
8416
8554
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8417
- create(id: string, object: EditableData<Record>, options?: {
8555
+ create(id: Identifier, object: EditableData<Record>, options?: {
8418
8556
  ifVersion?: number;
8419
8557
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8420
8558
  create<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8421
8559
  create(objects: Array<EditableData<Record> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8422
- read<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
8560
+ read<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
8423
8561
  read(id: string): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
8424
- read<K extends SelectableColumn<Record>>(ids: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8425
- read(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8562
+ read<K extends SelectableColumn<Record>>(ids: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8563
+ read(ids: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8426
8564
  read<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
8427
8565
  read(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
8428
8566
  read<K extends SelectableColumn<Record>>(objects: Identifiable[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8429
8567
  read(objects: Identifiable[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8430
- readOrThrow<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8431
- readOrThrow(id: string): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8432
- readOrThrow<K extends SelectableColumn<Record>>(ids: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8433
- readOrThrow(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8568
+ readOrThrow<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8569
+ readOrThrow(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8570
+ readOrThrow<K extends SelectableColumn<Record>>(ids: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8571
+ readOrThrow(ids: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8434
8572
  readOrThrow<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8435
8573
  readOrThrow(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8436
8574
  readOrThrow<K extends SelectableColumn<Record>>(objects: Identifiable[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
@@ -8441,10 +8579,10 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
8441
8579
  update(object: Partial<EditableData<Record>> & Identifiable, options?: {
8442
8580
  ifVersion?: number;
8443
8581
  }): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8444
- update<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Record>>, columns: K[], options?: {
8582
+ update<K extends SelectableColumn<Record>>(id: Identifier, object: Partial<EditableData<Record>>, columns: K[], options?: {
8445
8583
  ifVersion?: number;
8446
8584
  }): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8447
- update(id: string, object: Partial<EditableData<Record>>, options?: {
8585
+ update(id: Identifier, object: Partial<EditableData<Record>>, options?: {
8448
8586
  ifVersion?: number;
8449
8587
  }): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8450
8588
  update<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
@@ -8455,58 +8593,58 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
8455
8593
  updateOrThrow(object: Partial<EditableData<Record>> & Identifiable, options?: {
8456
8594
  ifVersion?: number;
8457
8595
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8458
- updateOrThrow<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Record>>, columns: K[], options?: {
8596
+ updateOrThrow<K extends SelectableColumn<Record>>(id: Identifier, object: Partial<EditableData<Record>>, columns: K[], options?: {
8459
8597
  ifVersion?: number;
8460
8598
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8461
- updateOrThrow(id: string, object: Partial<EditableData<Record>>, options?: {
8599
+ updateOrThrow(id: Identifier, object: Partial<EditableData<Record>>, options?: {
8462
8600
  ifVersion?: number;
8463
8601
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8464
8602
  updateOrThrow<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8465
8603
  updateOrThrow(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8466
- createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Record> & Identifiable, columns: K[], options?: {
8604
+ createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Record> & Partial<Identifiable>, columns: K[], options?: {
8467
8605
  ifVersion?: number;
8468
8606
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8469
- createOrUpdate(object: EditableData<Record> & Identifiable, options?: {
8607
+ createOrUpdate(object: EditableData<Record> & Partial<Identifiable>, options?: {
8470
8608
  ifVersion?: number;
8471
8609
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8472
- createOrUpdate<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8610
+ createOrUpdate<K extends SelectableColumn<Record>>(id: Identifier, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8473
8611
  ifVersion?: number;
8474
8612
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8475
- createOrUpdate(id: string, object: Omit<EditableData<Record>, 'id'>, options?: {
8613
+ createOrUpdate(id: Identifier, object: Omit<EditableData<Record>, 'id'>, options?: {
8476
8614
  ifVersion?: number;
8477
8615
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8478
- createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8479
- createOrUpdate(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8480
- createOrReplace<K extends SelectableColumn<Record>>(object: EditableData<Record> & Identifiable, columns: K[], options?: {
8616
+ createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8617
+ createOrUpdate(objects: Array<EditableData<Record> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8618
+ createOrReplace<K extends SelectableColumn<Record>>(object: EditableData<Record> & Partial<Identifiable>, columns: K[], options?: {
8481
8619
  ifVersion?: number;
8482
8620
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8483
- createOrReplace(object: EditableData<Record> & Identifiable, options?: {
8621
+ createOrReplace(object: EditableData<Record> & Partial<Identifiable>, options?: {
8484
8622
  ifVersion?: number;
8485
8623
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8486
- createOrReplace<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8624
+ createOrReplace<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
8487
8625
  ifVersion?: number;
8488
8626
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8489
- createOrReplace(id: string, object: Omit<EditableData<Record>, 'id'>, options?: {
8627
+ createOrReplace(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, options?: {
8490
8628
  ifVersion?: number;
8491
8629
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8492
- createOrReplace<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8493
- createOrReplace(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8630
+ createOrReplace<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8631
+ createOrReplace(objects: Array<EditableData<Record> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8494
8632
  delete<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8495
8633
  delete(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8496
- delete<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8497
- delete(id: string): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8634
+ delete<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
8635
+ delete(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
8498
8636
  delete<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8499
8637
  delete(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8500
- delete<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8501
- delete(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8638
+ delete<K extends SelectableColumn<Record>>(objects: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
8639
+ delete(objects: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
8502
8640
  deleteOrThrow<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8503
8641
  deleteOrThrow(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8504
- deleteOrThrow<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8505
- deleteOrThrow(id: string): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8642
+ deleteOrThrow<K extends SelectableColumn<Record>>(id: Identifier, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8643
+ deleteOrThrow(id: Identifier): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8506
8644
  deleteOrThrow<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8507
8645
  deleteOrThrow(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8508
- deleteOrThrow<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8509
- deleteOrThrow(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8646
+ deleteOrThrow<K extends SelectableColumn<Record>>(objects: Identifier[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
8647
+ deleteOrThrow(objects: Identifier[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
8510
8648
  search(query: string, options?: {
8511
8649
  fuzziness?: FuzzinessExpression;
8512
8650
  prefix?: PrefixExpression;
@@ -8925,4 +9063,4 @@ declare class XataError extends Error {
8925
9063
  constructor(message: string, status: number);
8926
9064
  }
8927
9065
 
8928
- export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, AggregateTableError, AggregateTablePathParams, AggregateTableRequestBody, AggregateTableVariables, ApiExtraProps, ApplyBranchSchemaEditError, ApplyBranchSchemaEditPathParams, ApplyBranchSchemaEditRequestBody, ApplyBranchSchemaEditVariables, AskOptions, AskResult, AskTableError, AskTablePathParams, AskTableRequestBody, AskTableResponse, AskTableVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BranchTransactionError, BranchTransactionPathParams, BranchTransactionRequestBody, BranchTransactionVariables, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, ColumnsByValue, CompareBranchSchemasError, CompareBranchSchemasPathParams, CompareBranchSchemasRequestBody, CompareBranchSchemasVariables, CompareBranchWithUserSchemaError, CompareBranchWithUserSchemaPathParams, CompareBranchWithUserSchemaRequestBody, CompareBranchWithUserSchemaVariables, CompareMigrationRequestError, CompareMigrationRequestPathParams, CompareMigrationRequestVariables, CopyBranchError, CopyBranchPathParams, CopyBranchRequestBody, CopyBranchVariables, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateMigrationRequestError, CreateMigrationRequestPathParams, CreateMigrationRequestRequestBody, CreateMigrationRequestResponse, CreateMigrationRequestVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchResponse, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabaseGithubSettingsError, DeleteDatabaseGithubSettingsPathParams, DeleteDatabaseGithubSettingsVariables, DeleteDatabasePathParams, DeleteDatabaseResponse, DeleteDatabaseVariables, DeleteFileError, DeleteFileItemError, DeleteFileItemPathParams, DeleteFileItemVariables, DeleteFilePathParams, DeleteFileVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableResponse, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, DeserializedType, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherError, FetcherExtraProps, FileAccessError, FileAccessPathParams, FileAccessQueryParams, FileAccessVariables, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchSchemaHistoryError, GetBranchSchemaHistoryPathParams, GetBranchSchemaHistoryRequestBody, GetBranchSchemaHistoryResponse, GetBranchSchemaHistoryVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseGithubSettingsError, GetDatabaseGithubSettingsPathParams, GetDatabaseGithubSettingsVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetFileError, GetFileItemError, GetFileItemPathParams, GetFileItemVariables, GetFilePathParams, GetFileVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetMigrationRequestError, GetMigrationRequestIsMergedError, GetMigrationRequestIsMergedPathParams, GetMigrationRequestIsMergedResponse, GetMigrationRequestIsMergedVariables, GetMigrationRequestPathParams, GetMigrationRequestVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, HostProvider, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordQueryParams, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, JSONData, KeywordAskOptions, Link, ListMigrationRequestsCommitsError, ListMigrationRequestsCommitsPathParams, ListMigrationRequestsCommitsRequestBody, ListMigrationRequestsCommitsResponse, ListMigrationRequestsCommitsVariables, ListRegionsError, ListRegionsPathParams, ListRegionsVariables, MergeMigrationRequestError, MergeMigrationRequestPathParams, MergeMigrationRequestVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, PreviewBranchSchemaEditError, PreviewBranchSchemaEditPathParams, PreviewBranchSchemaEditRequestBody, PreviewBranchSchemaEditResponse, PreviewBranchSchemaEditVariables, PushBranchMigrationsError, PushBranchMigrationsPathParams, PushBranchMigrationsRequestBody, PushBranchMigrationsVariables, PutFileError, PutFileItemError, PutFileItemPathParams, PutFileItemVariables, PutFilePathParams, PutFileVariables, Query, QueryMigrationRequestsError, QueryMigrationRequestsPathParams, QueryMigrationRequestsRequestBody, QueryMigrationRequestsResponse, QueryMigrationRequestsVariables, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, RenameDatabaseError, RenameDatabasePathParams, RenameDatabaseRequestBody, RenameDatabaseVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SearchXataRecord, SelectableColumn, SelectedPick, SerializedString, Serializer, SerializerResult, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, SqlQueryError, SqlQueryPathParams, SqlQueryRequestBody, SqlQueryVariables, SummarizeTableError, SummarizeTablePathParams, SummarizeTableRequestBody, SummarizeTableVariables, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateBranchSchemaError, UpdateBranchSchemaPathParams, UpdateBranchSchemaVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateDatabaseGithubSettingsError, UpdateDatabaseGithubSettingsPathParams, UpdateDatabaseGithubSettingsVariables, UpdateDatabaseMetadataError, UpdateDatabaseMetadataPathParams, UpdateDatabaseMetadataRequestBody, UpdateDatabaseMetadataVariables, UpdateMigrationRequestError, UpdateMigrationRequestPathParams, UpdateMigrationRequestRequestBody, UpdateMigrationRequestVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, VectorAskOptions, VectorSearchTableError, VectorSearchTablePathParams, VectorSearchTableRequestBody, VectorSearchTableVariables, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
9066
+ export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, AggregateTableError, AggregateTablePathParams, AggregateTableRequestBody, AggregateTableVariables, ApiExtraProps, ApplyBranchSchemaEditError, ApplyBranchSchemaEditPathParams, ApplyBranchSchemaEditRequestBody, ApplyBranchSchemaEditVariables, AskOptions, AskResult, AskTableError, AskTablePathParams, AskTableRequestBody, AskTableResponse, AskTableVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BranchTransactionError, BranchTransactionPathParams, BranchTransactionRequestBody, BranchTransactionVariables, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ChatSessionMessageError, ChatSessionMessagePathParams, ChatSessionMessageRequestBody, ChatSessionMessageResponse, ChatSessionMessageVariables, ClientConstructor, ColumnsByValue, CompareBranchSchemasError, CompareBranchSchemasPathParams, CompareBranchSchemasRequestBody, CompareBranchSchemasVariables, CompareBranchWithUserSchemaError, CompareBranchWithUserSchemaPathParams, CompareBranchWithUserSchemaRequestBody, CompareBranchWithUserSchemaVariables, CompareMigrationRequestError, CompareMigrationRequestPathParams, CompareMigrationRequestVariables, CopyBranchError, CopyBranchPathParams, CopyBranchRequestBody, CopyBranchVariables, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateMigrationRequestError, CreateMigrationRequestPathParams, CreateMigrationRequestRequestBody, CreateMigrationRequestResponse, CreateMigrationRequestVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchResponse, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabaseGithubSettingsError, DeleteDatabaseGithubSettingsPathParams, DeleteDatabaseGithubSettingsVariables, DeleteDatabasePathParams, DeleteDatabaseResponse, DeleteDatabaseVariables, DeleteFileError, DeleteFileItemError, DeleteFileItemPathParams, DeleteFileItemVariables, DeleteFilePathParams, DeleteFileVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableResponse, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, DeserializedType, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherError, FetcherExtraProps, FileAccessError, FileAccessPathParams, FileAccessQueryParams, FileAccessVariables, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchSchemaHistoryError, GetBranchSchemaHistoryPathParams, GetBranchSchemaHistoryRequestBody, GetBranchSchemaHistoryResponse, GetBranchSchemaHistoryVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseGithubSettingsError, GetDatabaseGithubSettingsPathParams, GetDatabaseGithubSettingsVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetFileError, GetFileItemError, GetFileItemPathParams, GetFileItemVariables, GetFilePathParams, GetFileVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetMigrationRequestError, GetMigrationRequestIsMergedError, GetMigrationRequestIsMergedPathParams, GetMigrationRequestIsMergedResponse, GetMigrationRequestIsMergedVariables, GetMigrationRequestPathParams, GetMigrationRequestVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, HostProvider, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordQueryParams, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, JSONData, KeywordAskOptions, Link, ListMigrationRequestsCommitsError, ListMigrationRequestsCommitsPathParams, ListMigrationRequestsCommitsRequestBody, ListMigrationRequestsCommitsResponse, ListMigrationRequestsCommitsVariables, ListRegionsError, ListRegionsPathParams, ListRegionsVariables, MergeMigrationRequestError, MergeMigrationRequestPathParams, MergeMigrationRequestVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, PreviewBranchSchemaEditError, PreviewBranchSchemaEditPathParams, PreviewBranchSchemaEditRequestBody, PreviewBranchSchemaEditResponse, PreviewBranchSchemaEditVariables, PushBranchMigrationsError, PushBranchMigrationsPathParams, PushBranchMigrationsRequestBody, PushBranchMigrationsVariables, PutFileError, PutFileItemError, PutFileItemPathParams, PutFileItemVariables, PutFilePathParams, PutFileVariables, Query, QueryMigrationRequestsError, QueryMigrationRequestsPathParams, QueryMigrationRequestsRequestBody, QueryMigrationRequestsResponse, QueryMigrationRequestsVariables, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RecordColumnTypes, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, RenameDatabaseError, RenameDatabasePathParams, RenameDatabaseRequestBody, RenameDatabaseVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SearchXataRecord, SelectableColumn, SelectedPick, SerializedString, Serializer, SerializerResult, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, SqlQueryError, SqlQueryPathParams, SqlQueryRequestBody, SqlQueryVariables, SummarizeTableError, SummarizeTablePathParams, SummarizeTableRequestBody, SummarizeTableVariables, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateBranchSchemaError, UpdateBranchSchemaPathParams, UpdateBranchSchemaVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateDatabaseGithubSettingsError, UpdateDatabaseGithubSettingsPathParams, UpdateDatabaseGithubSettingsVariables, UpdateDatabaseMetadataError, UpdateDatabaseMetadataPathParams, UpdateDatabaseMetadataRequestBody, UpdateDatabaseMetadataVariables, UpdateMigrationRequestError, UpdateMigrationRequestPathParams, UpdateMigrationRequestRequestBody, UpdateMigrationRequestVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, VectorAskOptions, VectorSearchTableError, VectorSearchTablePathParams, VectorSearchTableRequestBody, VectorSearchTableVariables, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, chatSessionMessage, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };