@vrplatform/api 1.3.0-stage.1261 → 1.3.0-stage.1263

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.0-stage.1261",
6
+ "version": "1.3.0-stage.1263",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -4,6 +4,40 @@
4
4
  */
5
5
 
6
6
  export interface paths {
7
+ "/apps/{id}": {
8
+ parameters: {
9
+ query?: never;
10
+ header?: never;
11
+ path?: never;
12
+ cookie?: never;
13
+ };
14
+ /** @description Get app by ID */
15
+ get: operations["getApp"];
16
+ put?: never;
17
+ post?: never;
18
+ delete?: never;
19
+ options?: never;
20
+ head?: never;
21
+ patch?: never;
22
+ trace?: never;
23
+ };
24
+ "/apps": {
25
+ parameters: {
26
+ query?: never;
27
+ header?: never;
28
+ path?: never;
29
+ cookie?: never;
30
+ };
31
+ /** @description Get apps */
32
+ get: operations["getApps"];
33
+ put?: never;
34
+ post?: never;
35
+ delete?: never;
36
+ options?: never;
37
+ head?: never;
38
+ patch?: never;
39
+ trace?: never;
40
+ };
7
41
  "/bank-accounts/batch": {
8
42
  parameters: {
9
43
  query?: never;
@@ -2198,23 +2232,23 @@ export interface components {
2198
2232
  }[];
2199
2233
  };
2200
2234
  /**
2201
- * Internal server error error (500)
2235
+ * Not found error (404)
2202
2236
  * @description The error information
2203
2237
  * @example {
2204
- * "code": "INTERNAL_SERVER_ERROR",
2205
- * "message": "Internal server error",
2238
+ * "code": "NOT_FOUND",
2239
+ * "message": "Not found",
2206
2240
  * "issues": []
2207
2241
  * }
2208
2242
  */
2209
- "error.INTERNAL_SERVER_ERROR": {
2243
+ "error.NOT_FOUND": {
2210
2244
  /**
2211
2245
  * @description The error message
2212
- * @example Internal server error
2246
+ * @example Not found
2213
2247
  */
2214
2248
  message: string;
2215
2249
  /**
2216
2250
  * @description The error code
2217
- * @example INTERNAL_SERVER_ERROR
2251
+ * @example NOT_FOUND
2218
2252
  */
2219
2253
  code: string;
2220
2254
  /**
@@ -2226,23 +2260,23 @@ export interface components {
2226
2260
  }[];
2227
2261
  };
2228
2262
  /**
2229
- * Not found error (404)
2263
+ * Internal server error error (500)
2230
2264
  * @description The error information
2231
2265
  * @example {
2232
- * "code": "NOT_FOUND",
2233
- * "message": "Not found",
2266
+ * "code": "INTERNAL_SERVER_ERROR",
2267
+ * "message": "Internal server error",
2234
2268
  * "issues": []
2235
2269
  * }
2236
2270
  */
2237
- "error.NOT_FOUND": {
2271
+ "error.INTERNAL_SERVER_ERROR": {
2238
2272
  /**
2239
2273
  * @description The error message
2240
- * @example Not found
2274
+ * @example Internal server error
2241
2275
  */
2242
2276
  message: string;
2243
2277
  /**
2244
2278
  * @description The error code
2245
- * @example NOT_FOUND
2279
+ * @example INTERNAL_SERVER_ERROR
2246
2280
  */
2247
2281
  code: string;
2248
2282
  /**
@@ -2492,6 +2526,197 @@ export interface components {
2492
2526
  }
2493
2527
  export type $defs = Record<string, never>;
2494
2528
  export interface operations {
2529
+ getApp: {
2530
+ parameters: {
2531
+ query?: never;
2532
+ header?: {
2533
+ "X-Team-Id"?: string;
2534
+ };
2535
+ path: {
2536
+ id: string;
2537
+ };
2538
+ cookie?: never;
2539
+ };
2540
+ requestBody?: never;
2541
+ responses: {
2542
+ /** @description Successful response */
2543
+ 200: {
2544
+ headers: {
2545
+ [name: string]: unknown;
2546
+ };
2547
+ content: {
2548
+ "application/json": {
2549
+ /** Format: uuid */
2550
+ id: string;
2551
+ name: string;
2552
+ icon?: string;
2553
+ type: string;
2554
+ category: string;
2555
+ description?: string | null;
2556
+ flows: {
2557
+ /** Format: uuid */
2558
+ id: string;
2559
+ name: string;
2560
+ /** @enum {string} */
2561
+ type: "push" | "pull";
2562
+ left: string;
2563
+ right: string;
2564
+ }[];
2565
+ extractors: string[];
2566
+ importers: string[];
2567
+ };
2568
+ };
2569
+ };
2570
+ /** @description Invalid input data */
2571
+ 400: {
2572
+ headers: {
2573
+ [name: string]: unknown;
2574
+ };
2575
+ content: {
2576
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
2577
+ };
2578
+ };
2579
+ /** @description Authorization not provided */
2580
+ 401: {
2581
+ headers: {
2582
+ [name: string]: unknown;
2583
+ };
2584
+ content: {
2585
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
2586
+ };
2587
+ };
2588
+ /** @description Insufficient access */
2589
+ 403: {
2590
+ headers: {
2591
+ [name: string]: unknown;
2592
+ };
2593
+ content: {
2594
+ "application/json": components["schemas"]["error.FORBIDDEN"];
2595
+ };
2596
+ };
2597
+ /** @description Not found */
2598
+ 404: {
2599
+ headers: {
2600
+ [name: string]: unknown;
2601
+ };
2602
+ content: {
2603
+ "application/json": components["schemas"]["error.NOT_FOUND"];
2604
+ };
2605
+ };
2606
+ /** @description Internal server error */
2607
+ 500: {
2608
+ headers: {
2609
+ [name: string]: unknown;
2610
+ };
2611
+ content: {
2612
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
2613
+ };
2614
+ };
2615
+ };
2616
+ };
2617
+ getApps: {
2618
+ parameters: {
2619
+ query?: {
2620
+ search?: string;
2621
+ category?: string;
2622
+ type?: string;
2623
+ limit?: number;
2624
+ page?: number;
2625
+ };
2626
+ header?: {
2627
+ "X-Team-Id"?: string;
2628
+ };
2629
+ path?: never;
2630
+ cookie?: never;
2631
+ };
2632
+ requestBody?: never;
2633
+ responses: {
2634
+ /** @description Successful response */
2635
+ 200: {
2636
+ headers: {
2637
+ [name: string]: unknown;
2638
+ };
2639
+ content: {
2640
+ "application/json": {
2641
+ data: {
2642
+ /** Format: uuid */
2643
+ id: string;
2644
+ name: string;
2645
+ icon?: string;
2646
+ type: string;
2647
+ category: string;
2648
+ description?: string | null;
2649
+ flows: {
2650
+ /** Format: uuid */
2651
+ id: string;
2652
+ name: string;
2653
+ /** @enum {string} */
2654
+ type: "push" | "pull";
2655
+ left: string;
2656
+ right: string;
2657
+ }[];
2658
+ extractors: string[];
2659
+ importers: string[];
2660
+ }[];
2661
+ pagination: {
2662
+ /** @default 100 */
2663
+ limit: number;
2664
+ /** @default 1 */
2665
+ page: number;
2666
+ total: number;
2667
+ totalPage: number;
2668
+ nextPage?: number;
2669
+ };
2670
+ };
2671
+ };
2672
+ };
2673
+ /** @description Invalid input data */
2674
+ 400: {
2675
+ headers: {
2676
+ [name: string]: unknown;
2677
+ };
2678
+ content: {
2679
+ "application/json": components["schemas"]["error.BAD_REQUEST"];
2680
+ };
2681
+ };
2682
+ /** @description Authorization not provided */
2683
+ 401: {
2684
+ headers: {
2685
+ [name: string]: unknown;
2686
+ };
2687
+ content: {
2688
+ "application/json": components["schemas"]["error.UNAUTHORIZED"];
2689
+ };
2690
+ };
2691
+ /** @description Insufficient access */
2692
+ 403: {
2693
+ headers: {
2694
+ [name: string]: unknown;
2695
+ };
2696
+ content: {
2697
+ "application/json": components["schemas"]["error.FORBIDDEN"];
2698
+ };
2699
+ };
2700
+ /** @description Not found */
2701
+ 404: {
2702
+ headers: {
2703
+ [name: string]: unknown;
2704
+ };
2705
+ content: {
2706
+ "application/json": components["schemas"]["error.NOT_FOUND"];
2707
+ };
2708
+ };
2709
+ /** @description Internal server error */
2710
+ 500: {
2711
+ headers: {
2712
+ [name: string]: unknown;
2713
+ };
2714
+ content: {
2715
+ "application/json": components["schemas"]["error.INTERNAL_SERVER_ERROR"];
2716
+ };
2717
+ };
2718
+ };
2719
+ };
2495
2720
  batchBankAccounts: {
2496
2721
  parameters: {
2497
2722
  query?: never;