-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi-v2.yaml
2939 lines (2839 loc) · 81.2 KB
/
openapi-v2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: "2.0"
info:
description: TileDB Storage Platform REST API
title: Tiledb Storage Platform API
version: 1.4.0
produces:
- application/json
consumes:
- application/json
schemes:
- http
- https
basePath: /v2
securityDefinitions:
BasicAuth:
type: basic
ApiKeyAuth:
type: apiKey
in: header
name: X-TILEDB-REST-API-KEY
OAuth2:
type: oauth2
flow: accessCode
authorizationUrl: https://oauth2.tiledb.com/oauth2/authorize
tokenUrl: https://oauth2.tiledb.com/oauth2/token
scopes:
read: Grants read access
write: Grants write access
admin: Grants read and write access to administrative information
security:
- BasicAuth: []
- ApiKeyAuth: []
# Commented out beacause this breaks the python autogenerated client
# It always sets the Bearer authorization header even when empty :/
# - OAuth2: [read, write, admin]
definitions:
AssetType:
description: Asset types represented as TileDB arrays
type: string
enum:
# Array
- array
# Notebook
- notebook
# Dashboard
- dashboard
# UDF
- user_defined_function
# ML Model
- ml_model
# Files
- file
# Task graphs
- registered_task_graph
# Groups
- group
# VCF
- vcf
# SOMA
- soma
# Point cloud
- pointcloud
# Biomedical imaging
- bioimg
# Geometry
- geometry
# Raster
- raster
# Vector search
- vector_search
Datatype:
description: TileDB data type
type: string
enum:
# 32-bit signed integer
- INT32
# 64-bit signed integer
- INT64
# 32-bit floating point value
- FLOAT32
# 64-bit floating point value
- FLOAT64
# Character
- CHAR
# 8-bit signed integer
- INT8
# 8-bit unsigned integer
- UINT8
# 16-bit signed integer
- INT16
# 16-bit unsigned integer
- UINT16
# 32-bit unsigned integer
- UINT32
# 64-bit unsigned integer
- UINT64
# ASCII string
- STRING_ASCII
# UTF-8 string
- STRING_UTF8
# UTF-16 string
- STRING_UTF16
# UTF-32 string
- STRING_UTF32
# UCS2 string
- STRING_UCS2
# UCS4 string
- STRING_UCS4
# This can be any datatype. Must store (type tag, value) pairs.
- ANY
# Datetime with year resolution
- DATETIME_YEAR
# Datetime with month resolution
- DATETIME_MONTH
# Datetime with week resolution
- DATETIME_WEEK
# Datetime with day resolution
- DATETIME_DAY
# Datetime with hour resolution
- DATETIME_HR
# Datetime with minute resolution
- DATETIME_MIN
# Datetime with second resolution
- DATETIME_SEC
# Datetime with millisecond resolution
- DATETIME_MS
# Datetime with microsecond resolution
- DATETIME_US
# Datetime with nanosecond resolution
- DATETIME_NS
# Datetime with picosecond resolution
- DATETIME_PS
# Datetime with femtosecond resolution
- DATETIME_FS
# Datetime with attosecond resolution
- DATETIME_AS
# Time with hour resolution
- TIME_HR
# Time with minute resolution
- TIME_MIN
# Time with second resolution
- TIME_SEC
# Time with millisecond resolution
- TIME_MS
# Time with microsecond resolution
- TIME_US
# Time with nanosecond resolution
- TIME_NS
# Time with picosecond resolution
- TIME_PS
# Time with femtosecond resolution
- TIME_FS
# Time with attosecond resolution
- TIME_AS
# 8-bit unsigned integer
- BLOB
# Boolean
- BOOL
Layout:
description: Layout of array
type: string
enum:
# Row-major layout
- row-major
# Column-major layout
- col-major
# Global-order layout
- global-order
# Unordered layout
- unordered
Querytype:
description: Type of query
type: string
enum:
# READ
- READ
# Write
- WRITE
Querystatus:
description: Status of query
type: string
enum:
# FAILED
- FAILED
# COMPLETED
- COMPLETED
# INPROGRESS
- INPROGRESS
# INCOMPLETE
- INCOMPLETE
# UNINITIALIZED
- UNINITIALIZED
DomainArray:
description: Domain object for an array of each type
type: object
properties:
int8:
type: array
x-omitempty: true
items:
type: integer
format: int8
uint8:
type: array
x-omitempty: true
items:
type: integer
format: uint8
int16:
type: array
x-omitempty: true
items:
type: integer
format: int16
uint16:
type: array
x-omitempty: true
items:
type: integer
format: uint16
int32:
type: array
x-omitempty: true
items:
type: integer
format: int32
uint32:
type: array
x-omitempty: true
items:
type: integer
format: uint32
int64:
type: array
x-omitempty: true
items:
type: integer
format: int64
uint64:
type: array
x-omitempty: true
items:
type: integer
format: uint64
float32:
type: array
x-omitempty: true
items:
type: number
format: float
float64:
type: array
x-omitempty: true
items:
type: number
format: double
Array:
description: Represents an open array
type: object
required:
- queryType
- uri
properties:
queryType:
description: Array opened for query type
$ref: "#/definitions/Querytype"
uri:
description: Array uri
type: string
endTimestamp:
description: Ending timestamp (epoch milliseconds) array is opened at
type: number
format: uint64
example: 1540471791873
startTimestamp:
description: Starting timestamp (epoch milliseconds) array is opened at
type: number
format: uint64
example: 1540471791873
arraySchemaLatest:
description: Latest array schema
$ref: "#/definitions/ArraySchema"
arraySchemasAll:
description: Array's schemas
$ref: "#/definitions/ArraySchemaMap"
arrayMetadata:
description: Array's metadata
$ref: "#/definitions/ArrayMetadata"
nonEmptyDomain:
description: Array's non empty domain
$ref: "#/definitions/NonEmptyDomainList"
arrayDirectory:
description: Array directory (for reads)
$ref: "#/definitions/ArrayDirectory"
fragmentMetadataAll:
description: metadata for all fragments (for reads)
type: array
x-omitempty: true
items:
$ref: "#/definitions/FragmentMetadata"
openedAtEndTimestamp:
description: The ending timestamp that the array was last opened at
type: number
format: uint64
FragmentMetadata:
type: object
description: Metadata of a fragment
properties:
fileSizes:
description: The size of each attribute file
type: array
x-omitempty: true
items:
type: number
format: uint64
fileVarSizes:
description: The size of each var attribute file
type: array
x-omitempty: true
items:
type: number
format: uint64
fileValiditySizes:
description: The size of each validity attribute file
type: array
x-omitempty: true
items:
type: number
format: uint64
fragmentUri:
description: The uri of the fragment this metadata belongs to
type: string
hasTimestamps:
description: True if the fragment has timestamps
type: boolean
hasDeleteMeta:
description: True if the fragment has delete metadata
type: boolean
sparseTileNum:
description: The number of sparse tiles
type: number
format: uint64
tileIndexBase:
description: Used to track the tile index base between global order writes
type: number
format: uint64
tileOffsets:
description: Tile offsets in their attribute files
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint64
tileVarOffsets:
description: Variable tile offsets in their attribute files
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint64
tileVarSizes:
description: The sizes of the uncompressed variable tiles
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint64
tileValidityOffsets:
description: Validity tile offests in their attribute files
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint64
tileMinBuffer:
description: tile min buffers
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
tileMinVarBuffer:
description: tile min buffers for var length data
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
tileMaxBuffer:
description: tile max buffers
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
tileMaxVarBuffer:
description: tile max buffers for var length data
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
tileSums:
description: tile sum values
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
tileNullCounts:
description: tile null count values
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint64
fragmentMins:
description: fragment min values
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
fragmentMaxs:
description: fragment max values
type: array
x-omitempty: true
items:
type: array
items:
type: number
format: uint8
fragmentSums:
description: fragment sum values
type: array
x-omitempty: true
items:
type: number
format: uint64
fragmentNullCounts:
description: fragment null count values
type: array
x-omitempty: true
items:
type: number
format: uint64
version:
description: the format version of this metadata
type: integer
format: uint32
timestampRange:
description: A pair of timestamps for fragment
type: array
x-omitempty: true
items:
type: number
format: uint64
lastTileCellNum:
description: The number of cells in the last tile
type: integer
format: uint64
nonEmptyDomain:
description: The non empty domain of the fragment
$ref: "#/definitions/NonEmptyDomainList"
rtree:
description: The RTree for the MBRs serialized as a blob
type: string
format: binary
hasConsolidatedFooter:
description: if the fragment metadata footer appears in a consolidated file
type: boolean
gtOffsets:
description: The start offsets of the generic tiles stored in the metadata file
$ref: "#/definitions/GenericTileOffsets"
GenericTileOffsets:
type: object
description: Array directory (for reads)
properties:
rtree:
description: RTree serialized as a blob
type: number
format: uint64
tileOffsets:
description: tile offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileVarOffsets:
description: variable tile offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileVarSizes:
description: sizes of the uncompressed variable tiles offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileValidityOffsets:
description: tile validity offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileMinOffsets:
description: min tile offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileMaxOffsets:
description: max tile offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileSumOffsets:
description: tile sum offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
tileNullCountOffsets:
description: null count offsets
type: array
x-omitempty: true
items:
type: number
format: uint64
fragmentMinMaxSumNullCountOffset:
description: fragment min/max/sum/nullcount offsets
type: number
format: uint64
processedConditionsOffsets:
description: processed conditions offsets
type: number
format: uint64
ArrayDirectory:
type: object
description: Array directory (for reads)
properties:
unfilteredFragmentUris:
description: fragment URIs
type: array
x-omitempty: true
items:
type: string
consolidatedCommitUris:
description: consolidated commit URI set
type: array
x-omitempty: true
items:
type: string
arraySchemaUris:
description: URIs of all the array schema files
type: array
x-omitempty: true
items:
type: string
latestArraySchemaUri:
description: latest array schema URI.
type: string
arrayMetaUrisToVacuum:
description: the array metadata files to vacuum
type: array
x-omitempty: true
items:
type: string
arrayMetaVacUrisToVacuum:
description: the array metadata vac files to vacuum
type: array
x-omitempty: true
items:
type: string
commitUrisToConsolidate:
description: the commit files to consolidate
type: array
x-omitempty: true
items:
type: string
commitUrisToVacuum:
description: the commit files to vacuum
type: array
x-omitempty: true
items:
type: string
consolidatedCommitUrisToVacuum:
description: the consolidated commit files to vacuum
type: array
x-omitempty: true
items:
type: string
fragmentMetaUris:
description: the URIs of the consolidated fragment metadata files
type: array
x-omitempty: true
items:
type: string
timestampStart:
description: Only the files created after timestamp_start are listed
type: number
format: uint64
timestampEnd:
description: Only the files created before timestamp_end are listed
type: number
format: uint64
arrayMetaUris:
description: the timestamped filtered array metadata URIs, after removing the ones that need to be vacuumed and those that do not fall within
type: array
x-omitempty: true
items:
$ref: "#/definitions/TimestampedURI"
deleteAndUpdateTileLocation:
description: the location of delete tiles
type: array
x-omitempty: true
items:
$ref: "#/definitions/DeleteAndUpdateTileLocation"
DeleteAndUpdateTileLocation:
type: object
description: the location of delete tiles
properties:
uri:
description: the uri
type: string
conditionMarker:
type: string
offset:
type: number
format: uint64
TimestampedURI:
type: object
description: the timestamped filtered array metadata URIs, after removing the ones that need to be vacuumed and those that do not fall within
properties:
uri:
description: the uri
type: string
timestampStart:
description: start of timestamp
type: number
format: uint64
timestampEnd:
description: end of timestamp
type: number
format: uint64
ArraySchemaMap:
type: object
description: array's schemas
properties:
entries:
description: List of array schemas entries
type: array
x-omitempty: true
items:
$ref: "#/definitions/ArraySchemaEntry"
ArraySchemaEntry:
type: object
description: key/value pair representing an array schema map entry
properties:
key:
type: string
value:
$ref: "#/definitions/ArraySchema"
NonEmptyDomainList:
type: object
description: object containing non empty domains
properties:
nonEmptyDomains:
description: Array's non empty domain
type: array
x-omitempty: true
items:
$ref: "#/definitions/NonEmptyDomain"
NonEmptyDomain:
type: object
description: object representing a non-empty domain
required:
- nonEmptyDomain
- isEmpty
properties:
nonEmptyDomain:
description: Non Empty Domain of array
$ref: "#/definitions/DomainArray"
isEmpty:
description: Is non-empty domain really empty?
type: boolean
example: False
sizes:
description: Number of elements in DomainArray for var length
type: array
items:
type: integer
format: uint64
ArrayType:
description: TileDB array type
type: string
enum:
# Dense array
- dense
# Sparse array
- sparse
Attribute:
description: Attribute of array
type: object
required:
- name
- type
- filterPipeline
- cellValNum
properties:
name:
description: Attribute name
type: string
example: attribute1
type:
$ref: "#/definitions/Datatype"
filterPipeline:
$ref: "#/definitions/FilterPipeline"
cellValNum:
description: Attribute number of values per cell
type: integer
example: 1
nullable:
description: Is attribute nullable
type: boolean
example: true
fillValueValidity:
description: Default validity fill value for nullable attributes
type: boolean
example: true
fillValue:
description: The default fill value
type: array
items:
type: integer
format: uint8
FilterType:
description: TileDB filter types
type: string
enum:
# No-op filter
- FILTER_NONE
# Gzip compressor
- FILTER_GZIP
# Zstandard compressor
- FILTER_ZSTD
# LZ4 compressor
- FILTER_LZ4
# Run-length encoding compressor
- FILTER_RLE
# Bzip2 compressor
- FILTER_BZIP2
# Double-delta compressor
- FILTER_DOUBLE_DELTA
# Bit width reduction filter.
- FILTER_BIT_WIDTH_REDUCTION
# Bitshuffle filter.
- FILTER_BITSHUFFLE
# Byteshuffle filter.
- FILTER_BYTESHUFFLE
# Positive-delta encoding filter.
- FILTER_POSITIVE_DELTA
# Scale-float filter
- FILTER_SCALE_FLOAT
# Webp filter
- FILTER_WEBP
# CHECKSUM_MD5 filter
- FILTER_CHECKSUM_MD5
# CHECKSUM_SHA256 filter
- FILTER_CHECKSUM_SHA256
# DICTIONARY filter
- FILTER_DICTIONARY
Filter:
description: Filter
type: object
required:
- type
properties:
type:
description: Filter type
$ref: "#/definitions/FilterType"
floatScaleConfig:
description: Filter type
$ref: "#/definitions/FloatScaleConfig"
data:
description: Filter data
type: object
properties:
text:
type: string
bytes:
type: array
items:
type: integer
format: uint8
int8:
type: integer
format: int8
uint8:
type: integer
format: uint8
int16:
type: integer
format: int16
uint16:
type: integer
format: uint16
int32:
type: integer
format: int32
uint32:
type: integer
format: uint32
int64:
type: integer
format: int64
uint64:
type: integer
format: uint64
float32:
type: integer
format: float
float64:
type: integer
format: double
FloatScaleConfig:
description: FloatScaleConfig
type: object
properties:
scale:
type: integer
format: double
offset:
type: integer
format: double
byteWidth:
type: integer
format: uint64
FilterPipeline:
description: One or more filters to apply
type: object
properties:
filters:
type: array
x-omitempty: true
items:
$ref: "#/definitions/Filter"
Dimension:
description: Dimension of array
type: object
required:
- type
- domain
- nullTileExtent
properties:
name:
description: Dimension name
type: string
example: "row"
type:
$ref: "#/definitions/Datatype"
domain:
description: extent of domain
$ref: "#/definitions/DomainArray"
nullTileExtent:
description: Is tile extent null
type: boolean
example: true
tileExtent:
description: Extent of tile
type: object
properties:
int8:
type: integer
format: int8
uint8:
type: integer
format: uint8
int16:
type: integer
format: int16
uint16:
type: integer
format: uint16
int32:
type: integer
format: int32
uint32:
type: integer
format: uint32
int64:
type: integer
format: int64
uint64:
type: integer
format: uint64
float32:
type: integer
format: float
float64:
type: integer
format: double
filterPipeline:
x-omit-empty: true
$ref: "#/definitions/FilterPipeline"
Domain:
description: Domain of array
type: object
required:
- type
- tileOrder
- cellOrder
- dimensions
properties:
type:
$ref: "#/definitions/Datatype"
description: Domain Type
tileOrder:
$ref: "#/definitions/Layout"
description: Tile Order
cellOrder:
$ref: "#/definitions/Layout"
description: Cell Order
dimensions:
type: array
description: Array of dimensions
items:
$ref: "#/definitions/Dimension"
ArraySchema:
description: ArraySchema during creation or retrieval
type: object
required:
- version
- arrayType
- tileOrder
- cellOrder
- capacity
- coordsFilterPipeline