@@ -252,6 +252,7 @@ export class AstraAdmin extends HierarchicalLogger<AdminCommandEventMap> {
252
252
timeout: ' databaseAdminTimeoutMs' ;
253
253
}>): Promise <AstraFullDatabaseInfo >;
254
254
dropDatabase(db : Db | string , options ? : AstraDropDatabaseOptions ): Promise <void >;
255
+ findAvailableRegions(options ? : AstraFindAvailableRegionsOptions ): Promise <AstraAvailableRegionInfo []>;
255
256
// (undocumented)
256
257
get _httpClient(): OpaqueHttpClient ;
257
258
listDatabases(options ? : ListAstraDatabasesOptions ): Promise <AstraFullDatabaseInfo []>;
@@ -260,6 +261,17 @@ export class AstraAdmin extends HierarchicalLogger<AdminCommandEventMap> {
260
261
// @public
261
262
export type AstraAdminBlockingOptions = AstraPollBlockingOptions | AstraNoBlockingOptions ;
262
263
264
+ // @public
265
+ export interface AstraAvailableRegionInfo {
266
+ classification: AstraRegionClassification ;
267
+ cloudProvider: AstraDatabaseCloudProvider ;
268
+ displayName: string ;
269
+ enabled: boolean ;
270
+ name: string ;
271
+ reservedForQualifiedUsers: boolean ;
272
+ zone: AstraRegionZone ;
273
+ }
274
+
263
275
// @public
264
276
export interface AstraBaseDatabaseInfo {
265
277
cloudProvider: AstraDatabaseCloudProvider ;
@@ -328,6 +340,13 @@ export type AstraDropDatabaseOptions = AstraAdminBlockingOptions & CommandOption
328
340
timeout: ' databaseAdminTimeoutMs' ;
329
341
}>;
330
342
343
+ // @public
344
+ export interface AstraFindAvailableRegionsOptions extends CommandOptions <{
345
+ timeout: ' databaseAdminTimeoutMs' ;
346
+ }> {
347
+ onlyOrgEnabledRegions? : boolean ;
348
+ }
349
+
331
350
// @public
332
351
export interface AstraFullDatabaseInfo extends AstraBaseDatabaseInfo {
333
352
createdAt: Date ;
@@ -354,6 +373,12 @@ export interface AstraPollBlockingOptions {
354
373
pollInterval? : number ;
355
374
}
356
375
376
+ // @public
377
+ export type AstraRegionClassification = ' standard' | ' premium' | ' premium_plus' ;
378
+
379
+ // @public
380
+ export type AstraRegionZone = ' na' | ' apac' | ' emea' | ' sa' ;
381
+
357
382
// @public
358
383
export class AWSEmbeddingHeadersProvider extends StaticHeadersProvider <' embedding' > {
359
384
constructor (accessKeyId : string , secretAccessKey : string );
@@ -891,15 +916,15 @@ export class CommandFailedEvent extends CommandEvent {
891
916
trimDuplicateFields(): this ;
892
917
}
893
918
894
- // @public (undocumented)
895
- export interface CommandOptions <Cfg extends CommandOptionsOptions = Required <CommandOptionsOptions >> {
919
+ // @public
920
+ export interface CommandOptions <Spec extends CommandOptionsSpec = Required <CommandOptionsSpec >> {
896
921
// @deprecated
897
922
maxTimeMS? : ' ERROR: The `maxTimeMS` option is no longer available; the timeouts system has been overhauled, and timeouts should now be set using `timeout`' ;
898
- timeout? : number | Pick <Partial <TimeoutDescriptor >, ' requestTimeoutMs' | Exclude <Cfg [' timeout' ], undefined >>;
923
+ timeout? : number | Pick <Partial <TimeoutDescriptor >, ' requestTimeoutMs' | Exclude <Spec [' timeout' ], undefined >>;
899
924
}
900
925
901
- // @public (undocumented)
902
- export interface CommandOptionsOptions {
926
+ // @public
927
+ export interface CommandOptionsSpec {
903
928
// (undocumented)
904
929
timeout? : keyof TimeoutDescriptor ;
905
930
}
@@ -1823,13 +1848,9 @@ export interface GenericDeleteManyResult {
1823
1848
// @public
1824
1849
export interface GenericDeleteOneOptions extends CommandOptions <{
1825
1850
timeout: ' generalMethodTimeoutMs' ;
1826
- }> {
1851
+ }>, WithDeprecatedVectorSortOptions {
1827
1852
// (undocumented)
1828
1853
sort? : Sort ;
1829
- // @deprecated
1830
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1831
- // @deprecated
1832
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1833
1854
}
1834
1855
1835
1856
// @public
@@ -1865,71 +1886,51 @@ export interface GenericFindAndRerankOptions extends CommandOptions<{
1865
1886
// @public
1866
1887
export interface GenericFindOneAndDeleteOptions extends CommandOptions <{
1867
1888
timeout: ' generalMethodTimeoutMs' ;
1868
- }> {
1889
+ }>, WithDeprecatedVectorSortOptions {
1869
1890
projection? : Projection ;
1870
1891
sort? : Sort ;
1871
- // @deprecated
1872
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1873
- // @deprecated
1874
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1875
1892
}
1876
1893
1877
1894
// @public
1878
1895
export interface GenericFindOneAndReplaceOptions extends CommandOptions <{
1879
1896
timeout: ' generalMethodTimeoutMs' ;
1880
- }> {
1897
+ }>, WithDeprecatedVectorSortOptions {
1881
1898
projection? : Projection ;
1882
1899
returnDocument? : ' before' | ' after' ;
1883
1900
sort? : Sort ;
1884
1901
upsert? : boolean ;
1885
- // @deprecated
1886
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1887
- // @deprecated
1888
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1889
1902
}
1890
1903
1891
1904
// @public
1892
1905
export interface GenericFindOneAndUpdateOptions extends CommandOptions <{
1893
1906
timeout: ' generalMethodTimeoutMs' ;
1894
- }> {
1907
+ }>, WithDeprecatedVectorSortOptions {
1895
1908
projection? : Projection ;
1896
1909
returnDocument? : ' before' | ' after' ;
1897
1910
sort? : Sort ;
1898
1911
upsert? : boolean ;
1899
- // @deprecated
1900
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1901
- // @deprecated
1902
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1903
1912
}
1904
1913
1905
1914
// @public
1906
1915
export interface GenericFindOneOptions extends CommandOptions <{
1907
1916
timeout: ' generalMethodTimeoutMs' ;
1908
- }> {
1917
+ }>, WithDeprecatedVectorSortOptions {
1909
1918
includeSimilarity? : boolean ;
1910
1919
projection? : Projection ;
1911
1920
sort? : Sort ;
1912
- // @deprecated
1913
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1914
- // @deprecated
1915
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1916
1921
}
1917
1922
1918
1923
// @public
1919
1924
export interface GenericFindOptions extends CommandOptions <{
1920
1925
timeout: ' generalMethodTimeoutMs' ;
1921
- }> {
1926
+ }>, WithDeprecatedVectorSortOptions {
1922
1927
includeSimilarity? : boolean ;
1923
1928
includeSortVector? : boolean ;
1924
1929
initialPageState? : string | null ;
1925
1930
limit? : number ;
1926
1931
projection? : Projection ;
1927
1932
skip? : number ;
1928
1933
sort? : Sort ;
1929
- // @deprecated
1930
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1931
- // @deprecated
1932
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1933
1934
}
1934
1935
1935
1936
// @public
@@ -1968,15 +1969,11 @@ export type GenericInsertOneOptions = CommandOptions<{
1968
1969
// @public
1969
1970
export interface GenericReplaceOneOptions extends CommandOptions <{
1970
1971
timeout: ' generalMethodTimeoutMs' ;
1971
- }> {
1972
+ }>, WithDeprecatedVectorSortOptions {
1972
1973
// (undocumented)
1973
1974
sort? : Sort ;
1974
1975
// (undocumented)
1975
1976
upsert? : boolean ;
1976
- // @deprecated
1977
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1978
- // @deprecated
1979
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
1980
1977
}
1981
1978
1982
1979
// @public
@@ -1990,13 +1987,9 @@ export interface GenericUpdateManyOptions extends CommandOptions<{
1990
1987
// @public
1991
1988
export interface GenericUpdateOneOptions extends CommandOptions <{
1992
1989
timeout: ' generalMethodTimeoutMs' ;
1993
- }> {
1990
+ }>, WithDeprecatedVectorSortOptions {
1994
1991
sort? : Sort ;
1995
1992
upsert? : boolean ;
1996
- // @deprecated
1997
- vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
1998
- // @deprecated
1999
- vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
2000
1993
}
2001
1994
2002
1995
// @public
@@ -2979,6 +2972,14 @@ export interface VectorizeServiceOptions {
2979
2972
provider: string ;
2980
2973
}
2981
2974
2975
+ // @public
2976
+ export interface WithDeprecatedVectorSortOptions {
2977
+ // @deprecated
2978
+ vector? : ' ERROR: Use `sort: { $vector: [...] }` instead' ;
2979
+ // @deprecated
2980
+ vectorize? : ' ERROR: Use `sort: { $vectorize: "..." }` instead' ;
2981
+ }
2982
+
2982
2983
// @public
2983
2984
export type WithId <T > = T & {
2984
2985
_id: IdOf <T >;
0 commit comments