@vrplatform/api 1.3.1-stage.4188 → 1.3.1-stage.4192

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.
@@ -919,6 +919,59 @@ export interface paths {
919
919
  patch?: never;
920
920
  trace?: never;
921
921
  };
922
+ "/files": {
923
+ parameters: {
924
+ query?: never;
925
+ header?: never;
926
+ path?: never;
927
+ cookie?: never;
928
+ };
929
+ /** @description List GL user-uploaded files for the current team. */
930
+ get: operations["getFiles"];
931
+ put?: never;
932
+ /** @description Upload a GL user file as multipart/form-data. Fields: file, optional filename, optional startDate, optional endDate, and optional contactId. The API derives team and user context from auth. */
933
+ post: operations["postFiles"];
934
+ delete?: never;
935
+ options?: never;
936
+ head?: never;
937
+ patch?: never;
938
+ trace?: never;
939
+ };
940
+ "/files/{id}": {
941
+ parameters: {
942
+ query?: never;
943
+ header?: never;
944
+ path?: never;
945
+ cookie?: never;
946
+ };
947
+ get?: never;
948
+ put?: never;
949
+ post?: never;
950
+ /** @description Delete GL file metadata and its TEAM_STORAGE object. */
951
+ delete: operations["deleteFilesById"];
952
+ options?: never;
953
+ head?: never;
954
+ /** @description Update GL file metadata: filename, date range, and contact. */
955
+ patch: operations["patchFilesById"];
956
+ trace?: never;
957
+ };
958
+ "/files/{id}/download": {
959
+ parameters: {
960
+ query?: never;
961
+ header?: never;
962
+ path?: never;
963
+ cookie?: never;
964
+ };
965
+ /** @description Download a GL user-uploaded file. */
966
+ get: operations["getFilesByIdDownload"];
967
+ put?: never;
968
+ post?: never;
969
+ delete?: never;
970
+ options?: never;
971
+ head?: never;
972
+ patch?: never;
973
+ trace?: never;
974
+ };
922
975
  "/flows": {
923
976
  parameters: {
924
977
  query?: never;
@@ -17398,6 +17451,774 @@ export interface operations {
17398
17451
  };
17399
17452
  };
17400
17453
  };
17454
+ getFiles: {
17455
+ parameters: {
17456
+ query?: {
17457
+ search?: string;
17458
+ sortBy?: "filename" | "startDate" | "endDate" | "createdAt" | "contactName";
17459
+ sortDirection?: "asc" | "desc";
17460
+ limit?: number;
17461
+ page?: number;
17462
+ offset?: number;
17463
+ };
17464
+ header?: never;
17465
+ path?: never;
17466
+ cookie?: never;
17467
+ };
17468
+ requestBody?: never;
17469
+ responses: {
17470
+ /** @description Successful response */
17471
+ 200: {
17472
+ headers: {
17473
+ [name: string]: unknown;
17474
+ };
17475
+ content: {
17476
+ "application/json": {
17477
+ data: {
17478
+ /** Format: uuid */
17479
+ id: string;
17480
+ filename: string;
17481
+ /** @constant */
17482
+ type: "userUpload";
17483
+ startDate: string | null;
17484
+ endDate: string | null;
17485
+ /**
17486
+ * Format: date-time
17487
+ * @description Timestamp string with date, time, milliseconds, and timezone.
17488
+ * @example 2024-01-15T12:30:00.000+00:00
17489
+ */
17490
+ createdAt: string;
17491
+ contact: {
17492
+ /** Format: uuid */
17493
+ id: string;
17494
+ name?: string | null;
17495
+ firstName?: string | null;
17496
+ uniqueRef?: string | null;
17497
+ shortRef?: string | null;
17498
+ email?: string | null;
17499
+ /** @enum {string} */
17500
+ type: "owner" | "vendor";
17501
+ } | null;
17502
+ }[];
17503
+ pagination: {
17504
+ /** @default 100 */
17505
+ limit: number;
17506
+ /** @default 1 */
17507
+ page: number;
17508
+ total: number;
17509
+ totalPage: number;
17510
+ nextPage?: number;
17511
+ };
17512
+ };
17513
+ };
17514
+ };
17515
+ /** @description Bad request */
17516
+ 400: {
17517
+ headers: {
17518
+ [name: string]: unknown;
17519
+ };
17520
+ content: {
17521
+ "application/json": {
17522
+ code: string;
17523
+ message: string;
17524
+ links?: {
17525
+ docs: string;
17526
+ schema: string;
17527
+ };
17528
+ issues?: {
17529
+ message: string;
17530
+ path?: (string | number)[];
17531
+ schema?: string;
17532
+ }[];
17533
+ context?: unknown;
17534
+ };
17535
+ };
17536
+ };
17537
+ /** @description Unauthorized */
17538
+ 401: {
17539
+ headers: {
17540
+ [name: string]: unknown;
17541
+ };
17542
+ content: {
17543
+ "application/json": {
17544
+ code: string;
17545
+ message: string;
17546
+ links?: {
17547
+ docs: string;
17548
+ schema: string;
17549
+ };
17550
+ issues?: {
17551
+ message: string;
17552
+ path?: (string | number)[];
17553
+ schema?: string;
17554
+ }[];
17555
+ context?: unknown;
17556
+ };
17557
+ };
17558
+ };
17559
+ /** @description Forbidden */
17560
+ 403: {
17561
+ headers: {
17562
+ [name: string]: unknown;
17563
+ };
17564
+ content: {
17565
+ "application/json": {
17566
+ code: string;
17567
+ message: string;
17568
+ links?: {
17569
+ docs: string;
17570
+ schema: string;
17571
+ };
17572
+ issues?: {
17573
+ message: string;
17574
+ path?: (string | number)[];
17575
+ schema?: string;
17576
+ }[];
17577
+ context?: unknown;
17578
+ };
17579
+ };
17580
+ };
17581
+ /** @description Not found */
17582
+ 404: {
17583
+ headers: {
17584
+ [name: string]: unknown;
17585
+ };
17586
+ content: {
17587
+ "application/json": {
17588
+ code: string;
17589
+ message: string;
17590
+ links?: {
17591
+ docs: string;
17592
+ schema: string;
17593
+ };
17594
+ issues?: {
17595
+ message: string;
17596
+ path?: (string | number)[];
17597
+ schema?: string;
17598
+ }[];
17599
+ context?: unknown;
17600
+ };
17601
+ };
17602
+ };
17603
+ /** @description Internal server error */
17604
+ 500: {
17605
+ headers: {
17606
+ [name: string]: unknown;
17607
+ };
17608
+ content: {
17609
+ "application/json": {
17610
+ code: string;
17611
+ message: string;
17612
+ links?: {
17613
+ docs: string;
17614
+ schema: string;
17615
+ };
17616
+ issues?: {
17617
+ message: string;
17618
+ path?: (string | number)[];
17619
+ schema?: string;
17620
+ }[];
17621
+ context?: unknown;
17622
+ };
17623
+ };
17624
+ };
17625
+ };
17626
+ };
17627
+ postFiles: {
17628
+ parameters: {
17629
+ query?: never;
17630
+ header?: never;
17631
+ path?: never;
17632
+ cookie?: never;
17633
+ };
17634
+ requestBody?: never;
17635
+ responses: {
17636
+ /** @description Successful response */
17637
+ 200: {
17638
+ headers: {
17639
+ [name: string]: unknown;
17640
+ };
17641
+ content: {
17642
+ "application/json": {
17643
+ /** Format: uuid */
17644
+ id: string;
17645
+ filename: string;
17646
+ /** @constant */
17647
+ type: "userUpload";
17648
+ startDate: string | null;
17649
+ endDate: string | null;
17650
+ /**
17651
+ * Format: date-time
17652
+ * @description Timestamp string with date, time, milliseconds, and timezone.
17653
+ * @example 2024-01-15T12:30:00.000+00:00
17654
+ */
17655
+ createdAt: string;
17656
+ contact: {
17657
+ /** Format: uuid */
17658
+ id: string;
17659
+ name?: string | null;
17660
+ firstName?: string | null;
17661
+ uniqueRef?: string | null;
17662
+ shortRef?: string | null;
17663
+ email?: string | null;
17664
+ /** @enum {string} */
17665
+ type: "owner" | "vendor";
17666
+ } | null;
17667
+ };
17668
+ };
17669
+ };
17670
+ /** @description Bad request */
17671
+ 400: {
17672
+ headers: {
17673
+ [name: string]: unknown;
17674
+ };
17675
+ content: {
17676
+ "application/json": {
17677
+ code: string;
17678
+ message: string;
17679
+ links?: {
17680
+ docs: string;
17681
+ schema: string;
17682
+ };
17683
+ issues?: {
17684
+ message: string;
17685
+ path?: (string | number)[];
17686
+ schema?: string;
17687
+ }[];
17688
+ context?: unknown;
17689
+ };
17690
+ };
17691
+ };
17692
+ /** @description Unauthorized */
17693
+ 401: {
17694
+ headers: {
17695
+ [name: string]: unknown;
17696
+ };
17697
+ content: {
17698
+ "application/json": {
17699
+ code: string;
17700
+ message: string;
17701
+ links?: {
17702
+ docs: string;
17703
+ schema: string;
17704
+ };
17705
+ issues?: {
17706
+ message: string;
17707
+ path?: (string | number)[];
17708
+ schema?: string;
17709
+ }[];
17710
+ context?: unknown;
17711
+ };
17712
+ };
17713
+ };
17714
+ /** @description Forbidden */
17715
+ 403: {
17716
+ headers: {
17717
+ [name: string]: unknown;
17718
+ };
17719
+ content: {
17720
+ "application/json": {
17721
+ code: string;
17722
+ message: string;
17723
+ links?: {
17724
+ docs: string;
17725
+ schema: string;
17726
+ };
17727
+ issues?: {
17728
+ message: string;
17729
+ path?: (string | number)[];
17730
+ schema?: string;
17731
+ }[];
17732
+ context?: unknown;
17733
+ };
17734
+ };
17735
+ };
17736
+ /** @description Not found */
17737
+ 404: {
17738
+ headers: {
17739
+ [name: string]: unknown;
17740
+ };
17741
+ content: {
17742
+ "application/json": {
17743
+ code: string;
17744
+ message: string;
17745
+ links?: {
17746
+ docs: string;
17747
+ schema: string;
17748
+ };
17749
+ issues?: {
17750
+ message: string;
17751
+ path?: (string | number)[];
17752
+ schema?: string;
17753
+ }[];
17754
+ context?: unknown;
17755
+ };
17756
+ };
17757
+ };
17758
+ /** @description Internal server error */
17759
+ 500: {
17760
+ headers: {
17761
+ [name: string]: unknown;
17762
+ };
17763
+ content: {
17764
+ "application/json": {
17765
+ code: string;
17766
+ message: string;
17767
+ links?: {
17768
+ docs: string;
17769
+ schema: string;
17770
+ };
17771
+ issues?: {
17772
+ message: string;
17773
+ path?: (string | number)[];
17774
+ schema?: string;
17775
+ }[];
17776
+ context?: unknown;
17777
+ };
17778
+ };
17779
+ };
17780
+ };
17781
+ };
17782
+ deleteFilesById: {
17783
+ parameters: {
17784
+ query?: never;
17785
+ header?: never;
17786
+ path: {
17787
+ id: string;
17788
+ };
17789
+ cookie?: never;
17790
+ };
17791
+ requestBody?: {
17792
+ content: {
17793
+ "application/json": Record<string, never>;
17794
+ };
17795
+ };
17796
+ responses: {
17797
+ /** @description Successful response */
17798
+ 200: {
17799
+ headers: {
17800
+ [name: string]: unknown;
17801
+ };
17802
+ content: {
17803
+ "application/json": {
17804
+ /** Format: uuid */
17805
+ id: string;
17806
+ };
17807
+ };
17808
+ };
17809
+ /** @description Bad request */
17810
+ 400: {
17811
+ headers: {
17812
+ [name: string]: unknown;
17813
+ };
17814
+ content: {
17815
+ "application/json": {
17816
+ code: string;
17817
+ message: string;
17818
+ links?: {
17819
+ docs: string;
17820
+ schema: string;
17821
+ };
17822
+ issues?: {
17823
+ message: string;
17824
+ path?: (string | number)[];
17825
+ schema?: string;
17826
+ }[];
17827
+ context?: unknown;
17828
+ };
17829
+ };
17830
+ };
17831
+ /** @description Unauthorized */
17832
+ 401: {
17833
+ headers: {
17834
+ [name: string]: unknown;
17835
+ };
17836
+ content: {
17837
+ "application/json": {
17838
+ code: string;
17839
+ message: string;
17840
+ links?: {
17841
+ docs: string;
17842
+ schema: string;
17843
+ };
17844
+ issues?: {
17845
+ message: string;
17846
+ path?: (string | number)[];
17847
+ schema?: string;
17848
+ }[];
17849
+ context?: unknown;
17850
+ };
17851
+ };
17852
+ };
17853
+ /** @description Forbidden */
17854
+ 403: {
17855
+ headers: {
17856
+ [name: string]: unknown;
17857
+ };
17858
+ content: {
17859
+ "application/json": {
17860
+ code: string;
17861
+ message: string;
17862
+ links?: {
17863
+ docs: string;
17864
+ schema: string;
17865
+ };
17866
+ issues?: {
17867
+ message: string;
17868
+ path?: (string | number)[];
17869
+ schema?: string;
17870
+ }[];
17871
+ context?: unknown;
17872
+ };
17873
+ };
17874
+ };
17875
+ /** @description Not found */
17876
+ 404: {
17877
+ headers: {
17878
+ [name: string]: unknown;
17879
+ };
17880
+ content: {
17881
+ "application/json": {
17882
+ code: string;
17883
+ message: string;
17884
+ links?: {
17885
+ docs: string;
17886
+ schema: string;
17887
+ };
17888
+ issues?: {
17889
+ message: string;
17890
+ path?: (string | number)[];
17891
+ schema?: string;
17892
+ }[];
17893
+ context?: unknown;
17894
+ };
17895
+ };
17896
+ };
17897
+ /** @description Internal server error */
17898
+ 500: {
17899
+ headers: {
17900
+ [name: string]: unknown;
17901
+ };
17902
+ content: {
17903
+ "application/json": {
17904
+ code: string;
17905
+ message: string;
17906
+ links?: {
17907
+ docs: string;
17908
+ schema: string;
17909
+ };
17910
+ issues?: {
17911
+ message: string;
17912
+ path?: (string | number)[];
17913
+ schema?: string;
17914
+ }[];
17915
+ context?: unknown;
17916
+ };
17917
+ };
17918
+ };
17919
+ };
17920
+ };
17921
+ patchFilesById: {
17922
+ parameters: {
17923
+ query?: never;
17924
+ header?: never;
17925
+ path: {
17926
+ id: string;
17927
+ };
17928
+ cookie?: never;
17929
+ };
17930
+ requestBody?: {
17931
+ content: {
17932
+ "application/json": {
17933
+ filename?: string;
17934
+ startDate?: string | null;
17935
+ endDate?: string | null;
17936
+ contactId?: string | null;
17937
+ };
17938
+ };
17939
+ };
17940
+ responses: {
17941
+ /** @description Successful response */
17942
+ 200: {
17943
+ headers: {
17944
+ [name: string]: unknown;
17945
+ };
17946
+ content: {
17947
+ "application/json": {
17948
+ /** Format: uuid */
17949
+ id: string;
17950
+ filename: string;
17951
+ /** @constant */
17952
+ type: "userUpload";
17953
+ startDate: string | null;
17954
+ endDate: string | null;
17955
+ /**
17956
+ * Format: date-time
17957
+ * @description Timestamp string with date, time, milliseconds, and timezone.
17958
+ * @example 2024-01-15T12:30:00.000+00:00
17959
+ */
17960
+ createdAt: string;
17961
+ contact: {
17962
+ /** Format: uuid */
17963
+ id: string;
17964
+ name?: string | null;
17965
+ firstName?: string | null;
17966
+ uniqueRef?: string | null;
17967
+ shortRef?: string | null;
17968
+ email?: string | null;
17969
+ /** @enum {string} */
17970
+ type: "owner" | "vendor";
17971
+ } | null;
17972
+ };
17973
+ };
17974
+ };
17975
+ /** @description Bad request */
17976
+ 400: {
17977
+ headers: {
17978
+ [name: string]: unknown;
17979
+ };
17980
+ content: {
17981
+ "application/json": {
17982
+ code: string;
17983
+ message: string;
17984
+ links?: {
17985
+ docs: string;
17986
+ schema: string;
17987
+ };
17988
+ issues?: {
17989
+ message: string;
17990
+ path?: (string | number)[];
17991
+ schema?: string;
17992
+ }[];
17993
+ context?: unknown;
17994
+ };
17995
+ };
17996
+ };
17997
+ /** @description Unauthorized */
17998
+ 401: {
17999
+ headers: {
18000
+ [name: string]: unknown;
18001
+ };
18002
+ content: {
18003
+ "application/json": {
18004
+ code: string;
18005
+ message: string;
18006
+ links?: {
18007
+ docs: string;
18008
+ schema: string;
18009
+ };
18010
+ issues?: {
18011
+ message: string;
18012
+ path?: (string | number)[];
18013
+ schema?: string;
18014
+ }[];
18015
+ context?: unknown;
18016
+ };
18017
+ };
18018
+ };
18019
+ /** @description Forbidden */
18020
+ 403: {
18021
+ headers: {
18022
+ [name: string]: unknown;
18023
+ };
18024
+ content: {
18025
+ "application/json": {
18026
+ code: string;
18027
+ message: string;
18028
+ links?: {
18029
+ docs: string;
18030
+ schema: string;
18031
+ };
18032
+ issues?: {
18033
+ message: string;
18034
+ path?: (string | number)[];
18035
+ schema?: string;
18036
+ }[];
18037
+ context?: unknown;
18038
+ };
18039
+ };
18040
+ };
18041
+ /** @description Not found */
18042
+ 404: {
18043
+ headers: {
18044
+ [name: string]: unknown;
18045
+ };
18046
+ content: {
18047
+ "application/json": {
18048
+ code: string;
18049
+ message: string;
18050
+ links?: {
18051
+ docs: string;
18052
+ schema: string;
18053
+ };
18054
+ issues?: {
18055
+ message: string;
18056
+ path?: (string | number)[];
18057
+ schema?: string;
18058
+ }[];
18059
+ context?: unknown;
18060
+ };
18061
+ };
18062
+ };
18063
+ /** @description Internal server error */
18064
+ 500: {
18065
+ headers: {
18066
+ [name: string]: unknown;
18067
+ };
18068
+ content: {
18069
+ "application/json": {
18070
+ code: string;
18071
+ message: string;
18072
+ links?: {
18073
+ docs: string;
18074
+ schema: string;
18075
+ };
18076
+ issues?: {
18077
+ message: string;
18078
+ path?: (string | number)[];
18079
+ schema?: string;
18080
+ }[];
18081
+ context?: unknown;
18082
+ };
18083
+ };
18084
+ };
18085
+ };
18086
+ };
18087
+ getFilesByIdDownload: {
18088
+ parameters: {
18089
+ query?: never;
18090
+ header?: never;
18091
+ path: {
18092
+ id: string;
18093
+ };
18094
+ cookie?: never;
18095
+ };
18096
+ requestBody?: never;
18097
+ responses: {
18098
+ /** @description Successful response */
18099
+ 200: {
18100
+ headers: {
18101
+ [name: string]: unknown;
18102
+ };
18103
+ content: {
18104
+ "application/json": {
18105
+ /** Format: uuid */
18106
+ id: string;
18107
+ };
18108
+ };
18109
+ };
18110
+ /** @description Bad request */
18111
+ 400: {
18112
+ headers: {
18113
+ [name: string]: unknown;
18114
+ };
18115
+ content: {
18116
+ "application/json": {
18117
+ code: string;
18118
+ message: string;
18119
+ links?: {
18120
+ docs: string;
18121
+ schema: string;
18122
+ };
18123
+ issues?: {
18124
+ message: string;
18125
+ path?: (string | number)[];
18126
+ schema?: string;
18127
+ }[];
18128
+ context?: unknown;
18129
+ };
18130
+ };
18131
+ };
18132
+ /** @description Unauthorized */
18133
+ 401: {
18134
+ headers: {
18135
+ [name: string]: unknown;
18136
+ };
18137
+ content: {
18138
+ "application/json": {
18139
+ code: string;
18140
+ message: string;
18141
+ links?: {
18142
+ docs: string;
18143
+ schema: string;
18144
+ };
18145
+ issues?: {
18146
+ message: string;
18147
+ path?: (string | number)[];
18148
+ schema?: string;
18149
+ }[];
18150
+ context?: unknown;
18151
+ };
18152
+ };
18153
+ };
18154
+ /** @description Forbidden */
18155
+ 403: {
18156
+ headers: {
18157
+ [name: string]: unknown;
18158
+ };
18159
+ content: {
18160
+ "application/json": {
18161
+ code: string;
18162
+ message: string;
18163
+ links?: {
18164
+ docs: string;
18165
+ schema: string;
18166
+ };
18167
+ issues?: {
18168
+ message: string;
18169
+ path?: (string | number)[];
18170
+ schema?: string;
18171
+ }[];
18172
+ context?: unknown;
18173
+ };
18174
+ };
18175
+ };
18176
+ /** @description Not found */
18177
+ 404: {
18178
+ headers: {
18179
+ [name: string]: unknown;
18180
+ };
18181
+ content: {
18182
+ "application/json": {
18183
+ code: string;
18184
+ message: string;
18185
+ links?: {
18186
+ docs: string;
18187
+ schema: string;
18188
+ };
18189
+ issues?: {
18190
+ message: string;
18191
+ path?: (string | number)[];
18192
+ schema?: string;
18193
+ }[];
18194
+ context?: unknown;
18195
+ };
18196
+ };
18197
+ };
18198
+ /** @description Internal server error */
18199
+ 500: {
18200
+ headers: {
18201
+ [name: string]: unknown;
18202
+ };
18203
+ content: {
18204
+ "application/json": {
18205
+ code: string;
18206
+ message: string;
18207
+ links?: {
18208
+ docs: string;
18209
+ schema: string;
18210
+ };
18211
+ issues?: {
18212
+ message: string;
18213
+ path?: (string | number)[];
18214
+ schema?: string;
18215
+ }[];
18216
+ context?: unknown;
18217
+ };
18218
+ };
18219
+ };
18220
+ };
18221
+ };
17401
18222
  getFlows: {
17402
18223
  parameters: {
17403
18224
  query?: {
@@ -21826,6 +22647,7 @@ export interface operations {
21826
22647
  content: {
21827
22648
  "application/json": {
21828
22649
  deleted: boolean;
22650
+ files: number;
21829
22651
  memberships: number;
21830
22652
  ownerAccess: number;
21831
22653
  tokens: number;