@vrplatform/api 1.3.1-stage.3823 → 1.3.1-stage.38237574683

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.
Files changed (100) hide show
  1. package/build/main/cache.js +10 -7
  2. package/build/main/cache.js.map +1 -1
  3. package/build/main/client.d.ts +6 -2
  4. package/build/main/client.js +16 -14
  5. package/build/main/client.js.map +1 -1
  6. package/build/main/control-plane-routing.d.ts +1 -0
  7. package/build/main/control-plane-routing.js +24 -0
  8. package/build/main/control-plane-routing.js.map +1 -0
  9. package/build/main/embed-lifecycle.d.ts +140 -0
  10. package/build/main/embed-lifecycle.js +93 -0
  11. package/build/main/embed-lifecycle.js.map +1 -0
  12. package/build/main/error.d.ts +22 -17
  13. package/build/main/error.js +50 -32
  14. package/build/main/error.js.map +1 -1
  15. package/build/main/generated/routing.d.ts +7 -0
  16. package/build/main/generated/routing.js +97 -0
  17. package/build/main/generated/routing.js.map +1 -0
  18. package/build/main/generated/v1.d.ts +4 -60175
  19. package/build/main/generated/v1.js.map +4 -1
  20. package/build/main/index.d.ts +7 -0
  21. package/build/main/index.js +7 -0
  22. package/build/main/index.js.map +1 -1
  23. package/build/main/is-test-team.d.ts +6 -0
  24. package/build/main/is-test-team.js +18 -0
  25. package/build/main/is-test-team.js.map +1 -0
  26. package/build/main/is-test-user.d.ts +4 -0
  27. package/build/main/is-test-user.js +31 -0
  28. package/build/main/is-test-user.js.map +1 -0
  29. package/build/main/is-vrp-member.d.ts +4 -0
  30. package/build/main/is-vrp-member.js +33 -0
  31. package/build/main/is-vrp-member.js.map +1 -0
  32. package/build/main/routing.d.ts +24 -0
  33. package/build/main/routing.js +62 -0
  34. package/build/main/routing.js.map +1 -0
  35. package/build/main/types.d.ts +2 -0
  36. package/build/main/types.js.map +1 -1
  37. package/build/main/vrt-mcp.d.ts +214 -0
  38. package/build/main/vrt-mcp.js +161 -0
  39. package/build/main/vrt-mcp.js.map +1 -0
  40. package/build/module/cache.js +10 -7
  41. package/build/module/cache.js.map +1 -1
  42. package/build/module/client.d.ts +6 -2
  43. package/build/module/client.js +16 -14
  44. package/build/module/client.js.map +1 -1
  45. package/build/module/control-plane-routing.d.ts +1 -0
  46. package/build/module/control-plane-routing.js +21 -0
  47. package/build/module/control-plane-routing.js.map +1 -0
  48. package/build/module/embed-lifecycle.d.ts +140 -0
  49. package/build/module/embed-lifecycle.js +90 -0
  50. package/build/module/embed-lifecycle.js.map +1 -0
  51. package/build/module/error.d.ts +22 -17
  52. package/build/module/error.js +51 -31
  53. package/build/module/error.js.map +1 -1
  54. package/build/module/generated/routing.d.ts +7 -0
  55. package/build/module/generated/routing.js +94 -0
  56. package/build/module/generated/routing.js.map +1 -0
  57. package/build/module/generated/v1.d.ts +4 -60175
  58. package/build/module/generated/v1.js.map +4 -1
  59. package/build/module/index.d.ts +7 -0
  60. package/build/module/index.js +7 -0
  61. package/build/module/index.js.map +1 -1
  62. package/build/module/is-test-team.d.ts +6 -0
  63. package/build/module/is-test-team.js +14 -0
  64. package/build/module/is-test-team.js.map +1 -0
  65. package/build/module/is-test-user.d.ts +4 -0
  66. package/build/module/is-test-user.js +27 -0
  67. package/build/module/is-test-user.js.map +1 -0
  68. package/build/module/is-vrp-member.d.ts +4 -0
  69. package/build/module/is-vrp-member.js +29 -0
  70. package/build/module/is-vrp-member.js.map +1 -0
  71. package/build/module/routing.d.ts +24 -0
  72. package/build/module/routing.js +58 -0
  73. package/build/module/routing.js.map +1 -0
  74. package/build/module/types.d.ts +2 -0
  75. package/build/module/types.js.map +1 -1
  76. package/build/module/vrt-mcp.d.ts +214 -0
  77. package/build/module/vrt-mcp.js +158 -0
  78. package/build/module/vrt-mcp.js.map +1 -0
  79. package/package.json +8 -7
  80. package/src/cache.ts +11 -8
  81. package/src/client.ts +18 -16
  82. package/src/control-plane-routing.ts +30 -0
  83. package/src/embed-lifecycle.ts +96 -0
  84. package/src/error.ts +93 -56
  85. package/src/generated/routing.ts +96 -0
  86. package/src/generated/v1.ts +4 -60176
  87. package/src/index.ts +7 -0
  88. package/src/is-test-team.ts +26 -0
  89. package/src/is-test-user.ts +39 -0
  90. package/src/is-vrp-member.ts +38 -0
  91. package/src/routing.ts +89 -0
  92. package/src/types.ts +8 -0
  93. package/src/vrt-mcp.ts +185 -0
  94. package/build/main/generated/openapi-fetch.d.ts +0 -224
  95. package/build/main/generated/openapi-fetch.js +0 -14
  96. package/build/main/generated/openapi-fetch.js.map +0 -1
  97. package/build/module/generated/openapi-fetch.d.ts +0 -224
  98. package/build/module/generated/openapi-fetch.js +0 -2
  99. package/build/module/generated/openapi-fetch.js.map +0 -1
  100. package/src/generated/openapi-fetch.ts +0 -433
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.controlPlaneRouting = void 0;
4
+ // Generated by packages/client/openapi.ts from API route and deployment metadata.
5
+ exports.controlPlaneRouting = {
6
+ "origins": {
7
+ "https://api.vrplatform.app": "https://us.api.vrplatform.app",
8
+ "https://api.edge.vrplatform.app": "https://us.api.vrplatform.app",
9
+ "https://staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
10
+ "https://staging.api.edge.vrplatform.app": "https://us.staging.api.vrplatform.app",
11
+ "https://us.staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
12
+ "https://eu.staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
13
+ "https://ap.staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
14
+ "https://us.api.vrplatform.app": "https://us.api.vrplatform.app",
15
+ "https://eu.api.vrplatform.app": "https://us.api.vrplatform.app",
16
+ "https://ap.api.vrplatform.app": "https://us.api.vrplatform.app"
17
+ },
18
+ "routes": [
19
+ {
20
+ "method": "GET",
21
+ "endpoint": "/internal/message-overwrites"
22
+ },
23
+ {
24
+ "method": "GET",
25
+ "endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}"
26
+ },
27
+ {
28
+ "method": "GET",
29
+ "endpoint": "/internal/operations/accounting-integrity/definitions"
30
+ },
31
+ {
32
+ "method": "GET",
33
+ "endpoint": "/internal/operations/accounting-integrity/definitions/{code}"
34
+ },
35
+ {
36
+ "method": "GET",
37
+ "endpoint": "/internal/owner-portals/{hostname}"
38
+ },
39
+ {
40
+ "method": "GET",
41
+ "endpoint": "/internal/owner-portals/{hostname}/providers"
42
+ },
43
+ {
44
+ "method": "GET",
45
+ "endpoint": "/me/teams"
46
+ },
47
+ {
48
+ "method": "POST",
49
+ "endpoint": "/embed-sessions/exchange"
50
+ },
51
+ {
52
+ "method": "POST",
53
+ "endpoint": "/embed-sessions/frame-ancestor-policy"
54
+ },
55
+ {
56
+ "method": "POST",
57
+ "endpoint": "/internal/operations/accounting-integrity/definition-drafts"
58
+ },
59
+ {
60
+ "method": "POST",
61
+ "endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}/publish"
62
+ },
63
+ {
64
+ "method": "POST",
65
+ "endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}/validate"
66
+ },
67
+ {
68
+ "method": "POST",
69
+ "endpoint": "/internal/owner-portals/logo"
70
+ },
71
+ {
72
+ "method": "POST",
73
+ "endpoint": "/internal/owner-portals/{hostname}/providers"
74
+ },
75
+ {
76
+ "method": "POST",
77
+ "endpoint": "/owner-portal-previews/end"
78
+ },
79
+ {
80
+ "method": "POST",
81
+ "endpoint": "/owner-portal-previews/exchange"
82
+ },
83
+ {
84
+ "method": "PUT",
85
+ "endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}"
86
+ },
87
+ {
88
+ "method": "PUT",
89
+ "endpoint": "/internal/operations/grants/users/{userId}"
90
+ },
91
+ {
92
+ "method": "PUT",
93
+ "endpoint": "/internal/owner-portals/{hostname}"
94
+ }
95
+ ]
96
+ };
97
+ //# sourceMappingURL=routing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.js","sourceRoot":"src/","sources":["generated/routing.ts"],"names":[],"mappings":";;;AAAA,kFAAkF;AACrE,QAAA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;YAChB,UAAU,EAAE,4BAA4B;SACzC;QACD;YACE,QAAQ,EAAE,MAAM;YAChB,UAAU,EAAE,iCAAiC;SAC9C;QACD;YACE,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,kEAAkE;SAC/E;QACD;YACE,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,4CAA4C;SACzD;QACD;YACE,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,oCAAoC;SACjD;KACF;CACF,CAAC","sourcesContent":["// Generated by packages/client/openapi.ts from API route and deployment metadata.\nexport const controlPlaneRouting: {\n readonly origins: Readonly<Record<string, string>>;\n readonly routes: readonly { method: string; endpoint: string }[];\n} = {\n \"origins\": {\n \"https://api.vrplatform.app\": \"https://us.api.vrplatform.app\",\n \"https://api.edge.vrplatform.app\": \"https://us.api.vrplatform.app\",\n \"https://staging.api.vrplatform.app\": \"https://us.staging.api.vrplatform.app\",\n \"https://staging.api.edge.vrplatform.app\": \"https://us.staging.api.vrplatform.app\",\n \"https://us.staging.api.vrplatform.app\": \"https://us.staging.api.vrplatform.app\",\n \"https://eu.staging.api.vrplatform.app\": \"https://us.staging.api.vrplatform.app\",\n \"https://ap.staging.api.vrplatform.app\": \"https://us.staging.api.vrplatform.app\",\n \"https://us.api.vrplatform.app\": \"https://us.api.vrplatform.app\",\n \"https://eu.api.vrplatform.app\": \"https://us.api.vrplatform.app\",\n \"https://ap.api.vrplatform.app\": \"https://us.api.vrplatform.app\"\n },\n \"routes\": [\n {\n \"method\": \"GET\",\n \"endpoint\": \"/internal/message-overwrites\"\n },\n {\n \"method\": \"GET\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definition-drafts/{id}\"\n },\n {\n \"method\": \"GET\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definitions\"\n },\n {\n \"method\": \"GET\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definitions/{code}\"\n },\n {\n \"method\": \"GET\",\n \"endpoint\": \"/internal/owner-portals/{hostname}\"\n },\n {\n \"method\": \"GET\",\n \"endpoint\": \"/internal/owner-portals/{hostname}/providers\"\n },\n {\n \"method\": \"GET\",\n \"endpoint\": \"/me/teams\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/embed-sessions/exchange\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/embed-sessions/frame-ancestor-policy\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definition-drafts\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definition-drafts/{id}/publish\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definition-drafts/{id}/validate\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/internal/owner-portals/logo\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/internal/owner-portals/{hostname}/providers\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/owner-portal-previews/end\"\n },\n {\n \"method\": \"POST\",\n \"endpoint\": \"/owner-portal-previews/exchange\"\n },\n {\n \"method\": \"PUT\",\n \"endpoint\": \"/internal/operations/accounting-integrity/definition-drafts/{id}\"\n },\n {\n \"method\": \"PUT\",\n \"endpoint\": \"/internal/operations/grants/users/{userId}\"\n },\n {\n \"method\": \"PUT\",\n \"endpoint\": \"/internal/owner-portals/{hostname}\"\n }\n ]\n};\n"]}