@vrplatform/api 1.3.1-stage.4670 → 1.3.1-stage.4683

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.
@@ -191,6 +191,42 @@ export interface paths {
191
191
  patch?: never;
192
192
  trace?: never;
193
193
  };
194
+ "/api-tokens": {
195
+ parameters: {
196
+ query?: never;
197
+ header?: never;
198
+ path?: never;
199
+ cookie?: never;
200
+ };
201
+ /** @description List API token metadata for the current team without revealing token secrets. Requires an authenticated team admin. */
202
+ get: operations["getApiTokens"];
203
+ put?: never;
204
+ /** @description Create an API token for the current team. Requires an authenticated team admin. The token secret is never written to audit records. */
205
+ post: operations["postApiTokens"];
206
+ delete?: never;
207
+ options?: never;
208
+ head?: never;
209
+ patch?: never;
210
+ trace?: never;
211
+ };
212
+ "/api-tokens/{id}": {
213
+ parameters: {
214
+ query?: never;
215
+ header?: never;
216
+ path?: never;
217
+ cookie?: never;
218
+ };
219
+ /** @description Reveal one API token for the current team. Requires an authenticated team admin. */
220
+ get: operations["getApiTokensById"];
221
+ put?: never;
222
+ post?: never;
223
+ /** @description Revoke an API token for the current team immediately. Requires an authenticated team admin. */
224
+ delete: operations["deleteApiTokensById"];
225
+ options?: never;
226
+ head?: never;
227
+ patch?: never;
228
+ trace?: never;
229
+ };
194
230
  "/apps": {
195
231
  parameters: {
196
232
  query?: never;
@@ -1817,7 +1853,7 @@ export interface paths {
1817
1853
  /** @description List users in one regional data partition with their team memberships and owner accesses. Select the partition with x-data-region. */
1818
1854
  get: operations["getInternalUsers"];
1819
1855
  put?: never;
1820
- /** @description Create or update a platform user by email, optionally granting an initial team membership. Used by the identity provider signup hooks. A duplicate email belonging to another user is rejected as a user error. */
1856
+ /** @description Create or update a global platform user by primary or secondary email, optionally granting an initial team membership. Existing identities and current-team membership ids are reused and projected into the selected team region, and returned memberships cover every region. Used by identity and invite workflows. An explicit conflicting user id is rejected as a user error. */
1821
1857
  post: operations["postInternalUsers"];
1822
1858
  delete?: never;
1823
1859
  options?: never;
@@ -8164,6 +8200,682 @@ export interface operations {
8164
8200
  };
8165
8201
  };
8166
8202
  };
8203
+ getApiTokens: {
8204
+ parameters: {
8205
+ query?: {
8206
+ limit?: number;
8207
+ page?: number;
8208
+ offset?: number;
8209
+ };
8210
+ header?: never;
8211
+ path?: never;
8212
+ cookie?: never;
8213
+ };
8214
+ requestBody?: never;
8215
+ responses: {
8216
+ /** @description Successful response */
8217
+ 200: {
8218
+ headers: {
8219
+ [name: string]: unknown;
8220
+ };
8221
+ content: {
8222
+ "application/json": {
8223
+ data: {
8224
+ /** Format: uuid */
8225
+ id: string;
8226
+ /**
8227
+ * Format: date-time
8228
+ * @description Timestamp string with date, time, milliseconds, and timezone.
8229
+ * @example 2024-01-15T12:30:00.000+00:00
8230
+ */
8231
+ createdAt: string;
8232
+ hint: string | null;
8233
+ role: string | null;
8234
+ scope: string | null;
8235
+ }[];
8236
+ pagination: {
8237
+ /** @default 100 */
8238
+ limit: number;
8239
+ /** @default 1 */
8240
+ page: number;
8241
+ total: number;
8242
+ totalPage: number;
8243
+ nextPage?: number;
8244
+ };
8245
+ };
8246
+ };
8247
+ };
8248
+ /** @description Bad request */
8249
+ 400: {
8250
+ headers: {
8251
+ [name: string]: unknown;
8252
+ };
8253
+ content: {
8254
+ "application/json": {
8255
+ code: string;
8256
+ message: string;
8257
+ links?: {
8258
+ docs: string;
8259
+ schema: string;
8260
+ };
8261
+ issues?: {
8262
+ message: string;
8263
+ path?: (string | number)[];
8264
+ schema?: string;
8265
+ }[];
8266
+ context?: unknown;
8267
+ };
8268
+ };
8269
+ };
8270
+ /** @description Unauthorized */
8271
+ 401: {
8272
+ headers: {
8273
+ [name: string]: unknown;
8274
+ };
8275
+ content: {
8276
+ "application/json": {
8277
+ code: string;
8278
+ message: string;
8279
+ links?: {
8280
+ docs: string;
8281
+ schema: string;
8282
+ };
8283
+ issues?: {
8284
+ message: string;
8285
+ path?: (string | number)[];
8286
+ schema?: string;
8287
+ }[];
8288
+ context?: unknown;
8289
+ };
8290
+ };
8291
+ };
8292
+ /** @description Forbidden */
8293
+ 403: {
8294
+ headers: {
8295
+ [name: string]: unknown;
8296
+ };
8297
+ content: {
8298
+ "application/json": {
8299
+ code: string;
8300
+ message: string;
8301
+ links?: {
8302
+ docs: string;
8303
+ schema: string;
8304
+ };
8305
+ issues?: {
8306
+ message: string;
8307
+ path?: (string | number)[];
8308
+ schema?: string;
8309
+ }[];
8310
+ context?: unknown;
8311
+ };
8312
+ };
8313
+ };
8314
+ /** @description Not found */
8315
+ 404: {
8316
+ headers: {
8317
+ [name: string]: unknown;
8318
+ };
8319
+ content: {
8320
+ "application/json": {
8321
+ code: string;
8322
+ message: string;
8323
+ links?: {
8324
+ docs: string;
8325
+ schema: string;
8326
+ };
8327
+ issues?: {
8328
+ message: string;
8329
+ path?: (string | number)[];
8330
+ schema?: string;
8331
+ }[];
8332
+ context?: unknown;
8333
+ };
8334
+ };
8335
+ };
8336
+ /** @description Internal server error */
8337
+ 500: {
8338
+ headers: {
8339
+ [name: string]: unknown;
8340
+ };
8341
+ content: {
8342
+ "application/json": {
8343
+ code: string;
8344
+ message: string;
8345
+ links?: {
8346
+ docs: string;
8347
+ schema: string;
8348
+ };
8349
+ issues?: {
8350
+ message: string;
8351
+ path?: (string | number)[];
8352
+ schema?: string;
8353
+ }[];
8354
+ context?: unknown;
8355
+ };
8356
+ };
8357
+ };
8358
+ /** @description Service unavailable */
8359
+ 503: {
8360
+ headers: {
8361
+ [name: string]: unknown;
8362
+ };
8363
+ content: {
8364
+ "application/json": {
8365
+ code: string;
8366
+ message: string;
8367
+ links?: {
8368
+ docs: string;
8369
+ schema: string;
8370
+ };
8371
+ issues?: {
8372
+ message: string;
8373
+ path?: (string | number)[];
8374
+ schema?: string;
8375
+ }[];
8376
+ context?: unknown;
8377
+ };
8378
+ };
8379
+ };
8380
+ };
8381
+ };
8382
+ postApiTokens: {
8383
+ parameters: {
8384
+ query?: never;
8385
+ header?: never;
8386
+ path?: never;
8387
+ cookie?: never;
8388
+ };
8389
+ requestBody?: {
8390
+ content: {
8391
+ "application/json": {
8392
+ /** @description Client-generated API token secret to store. */
8393
+ apiToken: string;
8394
+ };
8395
+ };
8396
+ };
8397
+ responses: {
8398
+ /** @description Successful response */
8399
+ 200: {
8400
+ headers: {
8401
+ [name: string]: unknown;
8402
+ };
8403
+ content: {
8404
+ "application/json": {
8405
+ /** Format: uuid */
8406
+ id: string;
8407
+ /**
8408
+ * Format: date-time
8409
+ * @description Timestamp string with date, time, milliseconds, and timezone.
8410
+ * @example 2024-01-15T12:30:00.000+00:00
8411
+ */
8412
+ createdAt: string;
8413
+ hint: string | null;
8414
+ role: string | null;
8415
+ scope: string | null;
8416
+ };
8417
+ };
8418
+ };
8419
+ /** @description Bad request */
8420
+ 400: {
8421
+ headers: {
8422
+ [name: string]: unknown;
8423
+ };
8424
+ content: {
8425
+ "application/json": {
8426
+ code: string;
8427
+ message: string;
8428
+ links?: {
8429
+ docs: string;
8430
+ schema: string;
8431
+ };
8432
+ issues?: {
8433
+ message: string;
8434
+ path?: (string | number)[];
8435
+ schema?: string;
8436
+ }[];
8437
+ context?: unknown;
8438
+ };
8439
+ };
8440
+ };
8441
+ /** @description Unauthorized */
8442
+ 401: {
8443
+ headers: {
8444
+ [name: string]: unknown;
8445
+ };
8446
+ content: {
8447
+ "application/json": {
8448
+ code: string;
8449
+ message: string;
8450
+ links?: {
8451
+ docs: string;
8452
+ schema: string;
8453
+ };
8454
+ issues?: {
8455
+ message: string;
8456
+ path?: (string | number)[];
8457
+ schema?: string;
8458
+ }[];
8459
+ context?: unknown;
8460
+ };
8461
+ };
8462
+ };
8463
+ /** @description Forbidden */
8464
+ 403: {
8465
+ headers: {
8466
+ [name: string]: unknown;
8467
+ };
8468
+ content: {
8469
+ "application/json": {
8470
+ code: string;
8471
+ message: string;
8472
+ links?: {
8473
+ docs: string;
8474
+ schema: string;
8475
+ };
8476
+ issues?: {
8477
+ message: string;
8478
+ path?: (string | number)[];
8479
+ schema?: string;
8480
+ }[];
8481
+ context?: unknown;
8482
+ };
8483
+ };
8484
+ };
8485
+ /** @description Not found */
8486
+ 404: {
8487
+ headers: {
8488
+ [name: string]: unknown;
8489
+ };
8490
+ content: {
8491
+ "application/json": {
8492
+ code: string;
8493
+ message: string;
8494
+ links?: {
8495
+ docs: string;
8496
+ schema: string;
8497
+ };
8498
+ issues?: {
8499
+ message: string;
8500
+ path?: (string | number)[];
8501
+ schema?: string;
8502
+ }[];
8503
+ context?: unknown;
8504
+ };
8505
+ };
8506
+ };
8507
+ /** @description Internal server error */
8508
+ 500: {
8509
+ headers: {
8510
+ [name: string]: unknown;
8511
+ };
8512
+ content: {
8513
+ "application/json": {
8514
+ code: string;
8515
+ message: string;
8516
+ links?: {
8517
+ docs: string;
8518
+ schema: string;
8519
+ };
8520
+ issues?: {
8521
+ message: string;
8522
+ path?: (string | number)[];
8523
+ schema?: string;
8524
+ }[];
8525
+ context?: unknown;
8526
+ };
8527
+ };
8528
+ };
8529
+ /** @description Service unavailable */
8530
+ 503: {
8531
+ headers: {
8532
+ [name: string]: unknown;
8533
+ };
8534
+ content: {
8535
+ "application/json": {
8536
+ code: string;
8537
+ message: string;
8538
+ links?: {
8539
+ docs: string;
8540
+ schema: string;
8541
+ };
8542
+ issues?: {
8543
+ message: string;
8544
+ path?: (string | number)[];
8545
+ schema?: string;
8546
+ }[];
8547
+ context?: unknown;
8548
+ };
8549
+ };
8550
+ };
8551
+ };
8552
+ };
8553
+ getApiTokensById: {
8554
+ parameters: {
8555
+ query?: never;
8556
+ header?: never;
8557
+ path: {
8558
+ id: string;
8559
+ };
8560
+ cookie?: never;
8561
+ };
8562
+ requestBody?: never;
8563
+ responses: {
8564
+ /** @description Successful response */
8565
+ 200: {
8566
+ headers: {
8567
+ [name: string]: unknown;
8568
+ };
8569
+ content: {
8570
+ "application/json": {
8571
+ /** Format: uuid */
8572
+ id: string;
8573
+ /**
8574
+ * Format: date-time
8575
+ * @description Timestamp string with date, time, milliseconds, and timezone.
8576
+ * @example 2024-01-15T12:30:00.000+00:00
8577
+ */
8578
+ createdAt: string;
8579
+ hint: string | null;
8580
+ role: string | null;
8581
+ scope: string | null;
8582
+ apiToken: string;
8583
+ };
8584
+ };
8585
+ };
8586
+ /** @description Bad request */
8587
+ 400: {
8588
+ headers: {
8589
+ [name: string]: unknown;
8590
+ };
8591
+ content: {
8592
+ "application/json": {
8593
+ code: string;
8594
+ message: string;
8595
+ links?: {
8596
+ docs: string;
8597
+ schema: string;
8598
+ };
8599
+ issues?: {
8600
+ message: string;
8601
+ path?: (string | number)[];
8602
+ schema?: string;
8603
+ }[];
8604
+ context?: unknown;
8605
+ };
8606
+ };
8607
+ };
8608
+ /** @description Unauthorized */
8609
+ 401: {
8610
+ headers: {
8611
+ [name: string]: unknown;
8612
+ };
8613
+ content: {
8614
+ "application/json": {
8615
+ code: string;
8616
+ message: string;
8617
+ links?: {
8618
+ docs: string;
8619
+ schema: string;
8620
+ };
8621
+ issues?: {
8622
+ message: string;
8623
+ path?: (string | number)[];
8624
+ schema?: string;
8625
+ }[];
8626
+ context?: unknown;
8627
+ };
8628
+ };
8629
+ };
8630
+ /** @description Forbidden */
8631
+ 403: {
8632
+ headers: {
8633
+ [name: string]: unknown;
8634
+ };
8635
+ content: {
8636
+ "application/json": {
8637
+ code: string;
8638
+ message: string;
8639
+ links?: {
8640
+ docs: string;
8641
+ schema: string;
8642
+ };
8643
+ issues?: {
8644
+ message: string;
8645
+ path?: (string | number)[];
8646
+ schema?: string;
8647
+ }[];
8648
+ context?: unknown;
8649
+ };
8650
+ };
8651
+ };
8652
+ /** @description Not found */
8653
+ 404: {
8654
+ headers: {
8655
+ [name: string]: unknown;
8656
+ };
8657
+ content: {
8658
+ "application/json": {
8659
+ code: string;
8660
+ message: string;
8661
+ links?: {
8662
+ docs: string;
8663
+ schema: string;
8664
+ };
8665
+ issues?: {
8666
+ message: string;
8667
+ path?: (string | number)[];
8668
+ schema?: string;
8669
+ }[];
8670
+ context?: unknown;
8671
+ };
8672
+ };
8673
+ };
8674
+ /** @description Internal server error */
8675
+ 500: {
8676
+ headers: {
8677
+ [name: string]: unknown;
8678
+ };
8679
+ content: {
8680
+ "application/json": {
8681
+ code: string;
8682
+ message: string;
8683
+ links?: {
8684
+ docs: string;
8685
+ schema: string;
8686
+ };
8687
+ issues?: {
8688
+ message: string;
8689
+ path?: (string | number)[];
8690
+ schema?: string;
8691
+ }[];
8692
+ context?: unknown;
8693
+ };
8694
+ };
8695
+ };
8696
+ /** @description Service unavailable */
8697
+ 503: {
8698
+ headers: {
8699
+ [name: string]: unknown;
8700
+ };
8701
+ content: {
8702
+ "application/json": {
8703
+ code: string;
8704
+ message: string;
8705
+ links?: {
8706
+ docs: string;
8707
+ schema: string;
8708
+ };
8709
+ issues?: {
8710
+ message: string;
8711
+ path?: (string | number)[];
8712
+ schema?: string;
8713
+ }[];
8714
+ context?: unknown;
8715
+ };
8716
+ };
8717
+ };
8718
+ };
8719
+ };
8720
+ deleteApiTokensById: {
8721
+ parameters: {
8722
+ query?: never;
8723
+ header?: never;
8724
+ path: {
8725
+ id: string;
8726
+ };
8727
+ cookie?: never;
8728
+ };
8729
+ requestBody?: never;
8730
+ responses: {
8731
+ /** @description Successful response */
8732
+ 200: {
8733
+ headers: {
8734
+ [name: string]: unknown;
8735
+ };
8736
+ content: {
8737
+ "application/json": {
8738
+ /** Format: uuid */
8739
+ id: string;
8740
+ /** @constant */
8741
+ status: "deleted";
8742
+ };
8743
+ };
8744
+ };
8745
+ /** @description Bad request */
8746
+ 400: {
8747
+ headers: {
8748
+ [name: string]: unknown;
8749
+ };
8750
+ content: {
8751
+ "application/json": {
8752
+ code: string;
8753
+ message: string;
8754
+ links?: {
8755
+ docs: string;
8756
+ schema: string;
8757
+ };
8758
+ issues?: {
8759
+ message: string;
8760
+ path?: (string | number)[];
8761
+ schema?: string;
8762
+ }[];
8763
+ context?: unknown;
8764
+ };
8765
+ };
8766
+ };
8767
+ /** @description Unauthorized */
8768
+ 401: {
8769
+ headers: {
8770
+ [name: string]: unknown;
8771
+ };
8772
+ content: {
8773
+ "application/json": {
8774
+ code: string;
8775
+ message: string;
8776
+ links?: {
8777
+ docs: string;
8778
+ schema: string;
8779
+ };
8780
+ issues?: {
8781
+ message: string;
8782
+ path?: (string | number)[];
8783
+ schema?: string;
8784
+ }[];
8785
+ context?: unknown;
8786
+ };
8787
+ };
8788
+ };
8789
+ /** @description Forbidden */
8790
+ 403: {
8791
+ headers: {
8792
+ [name: string]: unknown;
8793
+ };
8794
+ content: {
8795
+ "application/json": {
8796
+ code: string;
8797
+ message: string;
8798
+ links?: {
8799
+ docs: string;
8800
+ schema: string;
8801
+ };
8802
+ issues?: {
8803
+ message: string;
8804
+ path?: (string | number)[];
8805
+ schema?: string;
8806
+ }[];
8807
+ context?: unknown;
8808
+ };
8809
+ };
8810
+ };
8811
+ /** @description Not found */
8812
+ 404: {
8813
+ headers: {
8814
+ [name: string]: unknown;
8815
+ };
8816
+ content: {
8817
+ "application/json": {
8818
+ code: string;
8819
+ message: string;
8820
+ links?: {
8821
+ docs: string;
8822
+ schema: string;
8823
+ };
8824
+ issues?: {
8825
+ message: string;
8826
+ path?: (string | number)[];
8827
+ schema?: string;
8828
+ }[];
8829
+ context?: unknown;
8830
+ };
8831
+ };
8832
+ };
8833
+ /** @description Internal server error */
8834
+ 500: {
8835
+ headers: {
8836
+ [name: string]: unknown;
8837
+ };
8838
+ content: {
8839
+ "application/json": {
8840
+ code: string;
8841
+ message: string;
8842
+ links?: {
8843
+ docs: string;
8844
+ schema: string;
8845
+ };
8846
+ issues?: {
8847
+ message: string;
8848
+ path?: (string | number)[];
8849
+ schema?: string;
8850
+ }[];
8851
+ context?: unknown;
8852
+ };
8853
+ };
8854
+ };
8855
+ /** @description Service unavailable */
8856
+ 503: {
8857
+ headers: {
8858
+ [name: string]: unknown;
8859
+ };
8860
+ content: {
8861
+ "application/json": {
8862
+ code: string;
8863
+ message: string;
8864
+ links?: {
8865
+ docs: string;
8866
+ schema: string;
8867
+ };
8868
+ issues?: {
8869
+ message: string;
8870
+ path?: (string | number)[];
8871
+ schema?: string;
8872
+ }[];
8873
+ context?: unknown;
8874
+ };
8875
+ };
8876
+ };
8877
+ };
8878
+ };
8167
8879
  getApps: {
8168
8880
  parameters: {
8169
8881
  query?: {