@@ -265,6 +265,25 @@ export class CommandSucceededEvent extends CommandEvent {
265
265
readonly resp? : RawDataAPIResponse ;
266
266
}
267
267
268
+ // @public
269
+ export interface CostInfo {
270
+ costPerDayCents: number ;
271
+ costPerDayMRCents: number ;
272
+ costPerDayParkedCents: number ;
273
+ costPerHourCents: number ;
274
+ costPerHourMRCents: number ;
275
+ costPerHourParkedCents: number ;
276
+ costPerMinCents: number ;
277
+ costPerMinMRCents: number ;
278
+ costPerMinParkedCents: number ;
279
+ costPerMonthCents: number ;
280
+ costPerMonthMRCents: number ;
281
+ costPerMonthParkedCents: number ;
282
+ costPerNetworkGbCents: number ;
283
+ costPerReadGbCents: number ;
284
+ costPerWrittenGbCents: number ;
285
+ }
286
+
268
287
// @public
269
288
export interface CreateCollectionOptions <Schema extends SomeDoc > extends WithTimeout , CollectionOptions <Schema >, WithNamespace {
270
289
checkExists? : boolean ;
@@ -376,13 +395,15 @@ export interface DatabaseInfo {
376
395
additionalKeyspaces? : string [];
377
396
capacityUnits: number ;
378
397
cloudProvider? : DatabaseCloudProvider ;
398
+ datacenters? : DatacenterInfo [];
379
399
dbType? : ' vector' ;
380
400
keyspace? : string ;
401
+ keyspaces? : string [];
381
402
name: string ;
382
- password: string ;
403
+ password? : string ;
383
404
region: string ;
384
405
tier: DatabaseTier ;
385
- user: string ;
406
+ user? : string ;
386
407
}
387
408
388
409
// @public
@@ -402,6 +423,22 @@ export interface DatabaseStorageInfo {
402
423
// @public
403
424
export type DatabaseTier = ' developer' | ' A5' | ' A10' | ' A20' | ' A40' | ' C10' | ' C20' | ' C40' | ' D10' | ' D20' | ' D40' | ' serverless' ;
404
425
426
+ // @public
427
+ export interface DatacenterInfo {
428
+ capacityUnits: number ;
429
+ cloudProvider: DatabaseCloudProvider ;
430
+ dateCreated: string ;
431
+ id: string ;
432
+ isPrimary: boolean ;
433
+ name: string ;
434
+ region: string ;
435
+ regionClassification: string ;
436
+ regionZone: string ;
437
+ secureBundleUrl: string ;
438
+ status: string ;
439
+ tier: DatabaseTier ;
440
+ }
441
+
405
442
// @public
406
443
export interface DateFilterOps {
407
444
$gt? : Date ;
@@ -442,15 +479,20 @@ export class Db {
442
479
443
480
// @public
444
481
export abstract class DbAdmin {
445
- // (undocumented)
446
482
abstract createNamespace(namespace : string , options ? : AdminBlockingOptions ): Promise <void >;
447
483
abstract db(): Db ;
448
- // (undocumented)
449
484
abstract dropNamespace(namespace : string , options ? : AdminBlockingOptions ): Promise <void >;
450
- // (undocumented)
451
485
abstract listNamespaces(): Promise <string []>;
452
486
}
453
487
488
+ // @public
489
+ export interface DbMetricsInfo {
490
+ errorsTotalCount: number ;
491
+ liveDataSizeBytes: number ;
492
+ readRequestsTotalCount: number ;
493
+ writeRequestsTotalCount: number ;
494
+ }
495
+
454
496
// @public
455
497
export interface DbSpawnOptions {
456
498
dataApiPath? : string ;
@@ -489,7 +531,7 @@ export interface DeleteOneModel<TSchema extends SomeDoc> {
489
531
export interface DeleteOneOptions extends WithTimeout {
490
532
sort? : Sort ;
491
533
vector? : number [];
492
- // @alpha (undocumented)
534
+ // @alpha
493
535
vectorize? : string ;
494
536
}
495
537
@@ -568,11 +610,9 @@ export class FindCursor<T, TRaw extends SomeDoc = SomeDoc> {
568
610
[Symbol .asyncIterator ](): AsyncGenerator <T , void , void >;
569
611
// @internal
570
612
constructor (namespace : string , httpClient : DataAPIHttpClient , filter : Filter <SomeDoc >, options ? : FindOptions );
571
- // (undocumented)
572
613
bufferedCount(): number ;
573
614
clone(): FindCursor <TRaw , TRaw >;
574
615
close(): Promise <void >;
575
- // (undocumented)
576
616
get closed(): boolean ;
577
617
filter(filter : Filter <TRaw >): FindCursor <T , TRaw >;
578
618
// @deprecated
@@ -581,7 +621,6 @@ export class FindCursor<T, TRaw extends SomeDoc = SomeDoc> {
581
621
includeSimilarity(includeSimilarity ? : boolean ): FindCursor <T , TRaw >;
582
622
limit(limit : number ): FindCursor <T , TRaw >;
583
623
map<R >(mapping : (doc : T ) => R ): FindCursor <R , TRaw >;
584
- // (undocumented)
585
624
get namespace(): string ;
586
625
next(): Promise <T | null >;
587
626
project<R = any , RRaw extends SomeDoc = SomeDoc >(projection : Projection ): FindCursor <R , RRaw >;
@@ -598,7 +637,7 @@ export interface FindOneAndDeleteOptions extends WithTimeout {
598
637
projection? : Projection ;
599
638
sort? : Sort ;
600
639
vector? : number [];
601
- // @alpha (undocumented)
640
+ // @alpha
602
641
vectorize? : string ;
603
642
}
604
643
@@ -610,7 +649,7 @@ export interface FindOneAndReplaceOptions extends WithTimeout {
610
649
sort? : Sort ;
611
650
upsert? : boolean ;
612
651
vector? : number [];
613
- // @alpha (undocumented)
652
+ // @alpha
614
653
vectorize? : string ;
615
654
}
616
655
@@ -622,7 +661,7 @@ export interface FindOneAndUpdateOptions extends WithTimeout {
622
661
sort? : Sort ;
623
662
upsert? : boolean ;
624
663
vector? : number [];
625
- // @alpha (undocumented)
664
+ // @alpha
626
665
vectorize? : string ;
627
666
}
628
667
@@ -632,7 +671,7 @@ export interface FindOneOptions extends WithTimeout {
632
671
projection? : Projection ;
633
672
sort? : Sort ;
634
673
vector? : number [];
635
- // @alpha (undocumented)
674
+ // @alpha
636
675
vectorize? : string ;
637
676
}
638
677
@@ -644,7 +683,7 @@ export interface FindOptions {
644
683
skip? : number ;
645
684
sort? : Sort ;
646
685
vector? : number [];
647
- // @alpha (undocumented)
686
+ // @alpha
648
687
vectorize? : string ;
649
688
}
650
689
@@ -665,14 +704,18 @@ export interface FullCollectionInfo {
665
704
// @public
666
705
export interface FullDatabaseInfo {
667
706
availableActions? : DatabaseAction [];
707
+ cost? : CostInfo ;
668
708
cqlshUrl? : string ;
669
709
creationTime? : string ;
670
710
dataEndpointUrl? : string ;
671
711
grafanaUrl? : string ;
672
712
graphqlUrl? : string ;
673
713
id: string ;
674
714
info: DatabaseInfo ;
715
+ lastUsageTime? : string ;
675
716
message? : string ;
717
+ metrics? : DbMetricsInfo ;
718
+ observedStatus: DatabaseStatus ;
676
719
orgId: string ;
677
720
ownerId: string ;
678
721
status: DatabaseStatus ;
@@ -715,7 +758,7 @@ export type InsertManyOptions = InsertManyUnorderedOptions | InsertManyOrderedOp
715
758
export interface InsertManyOrderedOptions extends WithTimeout {
716
759
chunkSize? : number ;
717
760
ordered: true ;
718
- // @alpha (undocumented)
761
+ // @alpha
719
762
vectorize? : (string | null | undefined )[];
720
763
vectors? : (number [] | null | undefined )[];
721
764
}
@@ -731,7 +774,7 @@ export interface InsertManyUnorderedOptions extends WithTimeout {
731
774
chunkSize? : number ;
732
775
concurrency? : number ;
733
776
ordered? : false ;
734
- // @alpha (undocumented)
777
+ // @alpha
735
778
vectorize? : (string | null | undefined )[];
736
779
vectors? : (number [] | null | undefined )[];
737
780
}
@@ -744,7 +787,7 @@ export interface InsertOneModel<TSchema extends SomeDoc> {
744
787
// @public
745
788
export interface InsertOneOptions extends WithTimeout {
746
789
vector? : number [];
747
- // @alpha (undocumented)
790
+ // @alpha
748
791
vectorize? : string ;
749
792
}
750
793
@@ -835,7 +878,6 @@ export type Projection = Record<string, 1 | 0 | true | false | ProjectionSlice>;
835
878
836
879
// @public
837
880
export interface ProjectionSlice {
838
- // (undocumented)
839
881
$slice: number | [number , number ];
840
882
}
841
883
@@ -847,13 +889,10 @@ export type Push<Schema> = {
847
889
});
848
890
};
849
891
850
- // @public (undocumented)
892
+ // @public
851
893
export interface RawDataAPIResponse {
852
- // (undocumented)
853
894
data? : Record <string , any >;
854
- // (undocumented)
855
895
errors? : any [];
856
- // (undocumented)
857
896
status? : Record <string , any >;
858
897
}
859
898
@@ -869,7 +908,7 @@ export interface ReplaceOneOptions extends WithTimeout {
869
908
sort? : Sort ;
870
909
upsert? : boolean ;
871
910
vector? : number [];
872
- // @alpha (undocumented)
911
+ // @alpha
873
912
vectorize? : string ;
874
913
}
875
914
@@ -884,7 +923,7 @@ export interface RunCommandOptions extends WithNamespace, WithTimeout {
884
923
// @public
885
924
export type SomeDoc = Record <string , any >;
886
925
887
- // @public (undocumented)
926
+ // @public
888
927
export type SomeId = string | number | bigint | boolean | Date | UUID | ObjectId ;
889
928
890
929
// @public
@@ -894,7 +933,7 @@ export type Sort = Record<string, SortDirection> | {
894
933
$vectorize: string ;
895
934
};
896
935
897
- // @public (undocumented)
936
+ // @public
898
937
export type SortDirection = 1 | -1 ;
899
938
900
939
// @public
@@ -948,7 +987,7 @@ export type StrictRename<Schema extends SomeDoc> = {
948
987
949
988
// @public
950
989
export type StrictSort <Schema extends SomeDoc > = {
951
- [K in keyof ToDotNotation <WithId <Schema >>]? : 1 | - 1 ;
990
+ [K in keyof ToDotNotation <WithId <Schema >>]? : SortDirection ;
952
991
} | {
953
992
$vector: number [];
954
993
} | {
@@ -983,11 +1022,9 @@ export interface StrictUpdateFilter<Schema extends SomeDoc> {
983
1022
export type ToDotNotation <Schema extends SomeDoc > = Merge <_ToDotNotation <Schema , ' ' >>;
984
1023
985
1024
// @public
986
- export class TooManyDocsToCountError extends DataAPIError {
1025
+ export class TooManyDocumentsToCountError extends DataAPIError {
987
1026
constructor (limit : number , hitServerLimit : boolean );
988
- // (undocumented)
989
1027
readonly hitServerLimit: boolean ;
990
- // (undocumented)
991
1028
readonly limit: number ;
992
1029
}
993
1030
@@ -1049,7 +1086,7 @@ export interface UpdateOneOptions extends WithTimeout {
1049
1086
sort? : Sort ;
1050
1087
upsert? : boolean ;
1051
1088
vector? : number [];
1052
- // @alpha (undocumented)
1089
+ // @alpha
1053
1090
vectorize? : string ;
1054
1091
}
1055
1092
@@ -1082,19 +1119,17 @@ export interface VectorDoc {
1082
1119
$vector? : number [];
1083
1120
}
1084
1121
1085
- // @alpha (undocumented)
1122
+ // @alpha
1086
1123
export interface VectorizeServiceOptions {
1087
- // (undocumented)
1088
1124
modelName: string ;
1089
- // (undocumented)
1090
1125
provider: string ;
1091
1126
}
1092
1127
1093
1128
// @public
1094
1129
export interface VectorOptions {
1095
1130
dimension? : number ;
1096
1131
metric? : ' cosine' | ' euclidean' | ' dot_product' ;
1097
- // @alpha (undocumented)
1132
+ // @alpha
1098
1133
service? : VectorizeServiceOptions ;
1099
1134
}
1100
1135
0 commit comments