@@ -26,7 +26,7 @@ export interface AddColumnOperation {
26
26
// @public (undocumented)
27
27
export interface AddVectorizeOperation <Schema extends SomeRow > {
28
28
// (undocumented)
29
- columns: Record <Cols <Schema >, VectorizeServiceOptions >;
29
+ columns: Partial < Record <Cols <Schema >, VectorizeServiceOptions > >;
30
30
}
31
31
32
32
// @public
@@ -642,6 +642,14 @@ export interface CreateTableDefinition {
642
642
readonly primaryKey: CreateTablePrimaryKeyDefinition ;
643
643
}
644
644
645
+ // @public (undocumented)
646
+ export interface CreateTableIndexOptions extends WithTimeout <' tableAdminTimeoutMs' > {
647
+ // (undocumented)
648
+ ifNotExists? : boolean ;
649
+ // (undocumented)
650
+ options? : TableIndexOptions ;
651
+ }
652
+
645
653
// @public
646
654
export interface CreateTableOptions <Schema extends SomeRow , Def extends CreateTableDefinition = CreateTableDefinition > extends WithTimeout <' tableAdminTimeoutMs' >, TableOptions <Schema > {
647
655
// (undocumented)
@@ -653,6 +661,14 @@ export interface CreateTableOptions<Schema extends SomeRow, Def extends CreateTa
653
661
// @public (undocumented)
654
662
export type CreateTablePrimaryKeyDefinition = ShortCreateTablePrimaryKeyDefinition | FullCreateTablePrimaryKeyDefinition ;
655
663
664
+ // @public (undocumented)
665
+ export interface CreateTableVectorIndexOptions extends WithTimeout <' tableAdminTimeoutMs' > {
666
+ // (undocumented)
667
+ ifNotExists? : boolean ;
668
+ // (undocumented)
669
+ options? : TableVectorIndexOptions ;
670
+ }
671
+
656
672
// @public
657
673
export abstract class CumulativeOperationError extends DataAPIResponseError {
658
674
readonly partialResult: unknown ;
@@ -1750,17 +1766,16 @@ export class Table<Schema extends SomeRow = SomeRow> {
1750
1766
// (undocumented)
1751
1767
alter<NewSchema extends SomeRow >(options : AlterTableOptions <Schema >): Promise <Table <NewSchema >>;
1752
1768
// (undocumented)
1753
- createIndex(name : string , column : Cols <Schema > | string , options ? : TableCreateIndexOptions ): Promise <void >;
1769
+ createIndex(name : string , column : Cols <Schema > | string , options ? : CreateTableIndexOptions ): Promise <void >;
1754
1770
// (undocumented)
1755
- createVectorIndex(name : string , column : Cols <Schema > | string , options ? : TableCreateVectorIndexOptions ): Promise <void >;
1771
+ createVectorIndex(name : string , column : Cols <Schema > | string , options ? : CreateTableVectorIndexOptions ): Promise <void >;
1756
1772
// (undocumented)
1757
1773
definition(options ? : WithTimeout <' tableAdminTimeoutMs' >): Promise <ListTableDefinition >;
1758
1774
// (undocumented)
1759
1775
deleteMany(filter : TableFilter <Schema >, options ? : WithTimeout <' generalMethodTimeoutMs' >): Promise <void >;
1776
+ deleteOne(filter : TableFilter <Schema >, options ? : WithTimeout <' generalMethodTimeoutMs' >): Promise <void >;
1760
1777
// (undocumented)
1761
- deleteOne(filter : TableFilter <Schema >, options ? : TableDeleteOneOptions ): Promise <void >;
1762
- // (undocumented)
1763
- drop(options ? : WithTimeout <' tableAdminTimeoutMs' >): Promise <void >;
1778
+ drop(options ? : Omit <DropTableOptions , ' keyspace' >): Promise <void >;
1764
1779
// (undocumented)
1765
1780
find(filter : TableFilter <Schema >, options ? : TableFindOptions & {
1766
1781
projection? : never ;
@@ -1771,43 +1786,27 @@ export class Table<Schema extends SomeRow = SomeRow> {
1771
1786
findOne(filter : TableFilter <Schema >, options ? : TableFindOneOptions ): Promise <FoundRow <Schema > | null >;
1772
1787
// (undocumented)
1773
1788
get _httpClient(): DataAPIHttpClient <" normal" >;
1774
- // (undocumented)
1775
- insertMany(document : readonly Schema [], options ? : TableInsertManyOptions ): Promise <TableInsertManyResult <Schema >>;
1776
- insertOne(row : Schema , options ? : WithTimeout <' generalMethodTimeoutMs' >): Promise <TableInsertOneResult <Schema >>;
1789
+ insertMany(rows : readonly Schema [], options ? : TableInsertManyOptions ): Promise <TableInsertManyResult <Schema >>;
1790
+ insertOne(row : Schema , timeout ? : WithTimeout <' generalMethodTimeoutMs' >): Promise <TableInsertOneResult <Schema >>;
1777
1791
readonly keyspace: string ;
1778
- readonly name: string ;
1779
- // (undocumented)
1780
- updateOne(filter : TableFilter <Schema >, update : TableUpdateFilter <Schema >, options ? : TableUpdateOneOptions ): Promise <void >;
1781
- }
1782
-
1783
- // @public (undocumented)
1784
- export type TableColumnTypeParser = (val : any , ctx : TableDesCtx , definition : SomeDoc ) => any ;
1785
-
1786
- // @public (undocumented)
1787
- export interface TableCreateIndexOptions extends WithTimeout <' tableAdminTimeoutMs' > {
1788
- // (undocumented)
1789
- ifNotExists? : boolean ;
1790
- // (undocumented)
1791
- options? : {
1792
- caseSensitive? : boolean ;
1793
- normalize? : boolean ;
1794
- ascii? : boolean ;
1795
- };
1796
- }
1797
-
1798
- // @public (undocumented)
1799
- export interface TableCreateVectorIndexOptions extends WithTimeout <' tableAdminTimeoutMs' > {
1792
+ // Warning: (ae-forgotten-export) The symbol "ListIndexOptions" needs to be exported by the entry point index.d.ts
1793
+ //
1800
1794
// (undocumented)
1801
- ifNotExists? : boolean ;
1795
+ listIndexes(options ? : ListIndexOptions & {
1796
+ nameOnly: true ;
1797
+ }): Promise <string []>;
1798
+ // Warning: (ae-forgotten-export) The symbol "TableIndexDescriptor" needs to be exported by the entry point index.d.ts
1799
+ //
1802
1800
// (undocumented)
1803
- options? : {
1804
- metric: ' cosine' | ' euclidean' | ' dot_product' ;
1805
- sourceModel? : string ;
1806
- };
1801
+ listIndexes(options ? : ListIndexOptions & {
1802
+ nameOnly? : false ;
1803
+ }): Promise <TableIndexDescriptor []>;
1804
+ readonly name: string ;
1805
+ updateOne(filter : TableFilter <Schema >, update : TableUpdateFilter <Schema >, timeout ? : WithTimeout <' generalMethodTimeoutMs' >): Promise <void >;
1807
1806
}
1808
1807
1809
1808
// @public (undocumented)
1810
- export type TableDeleteOneOptions = GenericDeleteOneOptions ;
1809
+ export type TableColumnTypeParser = ( val : any , ctx : TableDesCtx , definition : SomeDoc ) => any ;
1811
1810
1812
1811
// @public (undocumented)
1813
1812
export interface TableDescriptor {
@@ -1875,6 +1874,16 @@ export type TableFindOneOptions = GenericFindOneOptions;
1875
1874
// @public (undocumented)
1876
1875
export type TableFindOptions = GenericFindOptions ;
1877
1876
1877
+ // @public (undocumented)
1878
+ export interface TableIndexOptions {
1879
+ // (undocumented)
1880
+ ascii? : boolean ;
1881
+ // (undocumented)
1882
+ caseSensitive? : boolean ;
1883
+ // (undocumented)
1884
+ normalize? : boolean ;
1885
+ }
1886
+
1878
1887
// @public
1879
1888
export class TableInsertManyError extends CumulativeOperationError {
1880
1889
name: string ;
@@ -1892,7 +1901,6 @@ export interface TableInsertManyResult<Schema extends SomeRow> {
1892
1901
1893
1902
// @public
1894
1903
export interface TableInsertOneResult <Schema extends SomeRow > {
1895
- // (undocumented)
1896
1904
insertedId: KeyOf <Schema >;
1897
1905
}
1898
1906
@@ -1934,8 +1942,13 @@ export type TableUpdateManyOptions = GenericUpdateManyOptions;
1934
1942
// @public (undocumented)
1935
1943
export type TableUpdateManyResult <Schema extends SomeRow > = GenericUpdateResult <KeyOf <Schema >, number >;
1936
1944
1937
- // @public
1938
- export type TableUpdateOneOptions = GenericUpdateOneOptions ;
1945
+ // @public (undocumented)
1946
+ export interface TableVectorIndexOptions {
1947
+ // (undocumented)
1948
+ metric: ' cosine' | ' euclidean' | ' dot_product' ;
1949
+ // (undocumented)
1950
+ sourceModel? : string ;
1951
+ }
1939
1952
1940
1953
// @public (undocumented)
1941
1954
export const time: (time ? : string | Date | DataAPITimeComponents ) => DataAPITime ;
0 commit comments