@vrplatform/api 1.3.1-stage.3897 → 1.3.1-stage.38975243958

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 +6 -0
  7. package/build/main/control-plane-routing.js +34 -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 +31 -17
  13. package/build/main/error.js +55 -32
  14. package/build/main/error.js.map +1 -1
  15. package/build/main/generated/routing.d.ts +11 -0
  16. package/build/main/generated/routing.js +288 -0
  17. package/build/main/generated/routing.js.map +1 -0
  18. package/build/main/generated/v1.d.ts +4 -60525
  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 +6 -0
  46. package/build/module/control-plane-routing.js +30 -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 +31 -17
  52. package/build/module/error.js +57 -31
  53. package/build/module/error.js.map +1 -1
  54. package/build/module/generated/routing.d.ts +11 -0
  55. package/build/module/generated/routing.js +285 -0
  56. package/build/module/generated/routing.js.map +1 -0
  57. package/build/module/generated/v1.d.ts +4 -60525
  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 +46 -0
  83. package/src/embed-lifecycle.ts +96 -0
  84. package/src/error.ts +103 -56
  85. package/src/generated/routing.ts +288 -0
  86. package/src/generated/v1.ts +4 -60526
  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,288 @@
1
+ // Generated by packages/client/openapi.ts from API route and deployment metadata.
2
+ export const controlPlaneRouting: {
3
+ readonly origins: Readonly<Record<string, string>>;
4
+ readonly routes: readonly { method: string; endpoint: string }[];
5
+ } = {
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
+
98
+ // Routes the API places by `x-data-region` or path, not by `x-team-id`.
99
+ export const requestRegionRoutes: readonly { method: string; endpoint: string }[] = [
100
+ {
101
+ "method": "DELETE",
102
+ "endpoint": "/internal/teams/{teamId}"
103
+ },
104
+ {
105
+ "method": "GET",
106
+ "endpoint": "/internal/memberships/{membershipId}"
107
+ },
108
+ {
109
+ "method": "GET",
110
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/cases"
111
+ },
112
+ {
113
+ "method": "GET",
114
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/cases/{caseId}"
115
+ },
116
+ {
117
+ "method": "GET",
118
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/cases/{caseId}/evidence"
119
+ },
120
+ {
121
+ "method": "GET",
122
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/health"
123
+ },
124
+ {
125
+ "method": "GET",
126
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans"
127
+ },
128
+ {
129
+ "method": "GET",
130
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}"
131
+ },
132
+ {
133
+ "method": "GET",
134
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/runs"
135
+ },
136
+ {
137
+ "method": "GET",
138
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/runs/{runId}"
139
+ },
140
+ {
141
+ "method": "GET",
142
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/work-queue"
143
+ },
144
+ {
145
+ "method": "GET",
146
+ "endpoint": "/internal/teams/billing"
147
+ },
148
+ {
149
+ "method": "GET",
150
+ "endpoint": "/internal/users"
151
+ },
152
+ {
153
+ "method": "GET",
154
+ "endpoint": "/operations"
155
+ },
156
+ {
157
+ "method": "GET",
158
+ "endpoint": "/operations/{id}"
159
+ },
160
+ {
161
+ "method": "GET",
162
+ "endpoint": "/partner/audit-events"
163
+ },
164
+ {
165
+ "method": "GET",
166
+ "endpoint": "/partner/billing"
167
+ },
168
+ {
169
+ "method": "GET",
170
+ "endpoint": "/partner/connections"
171
+ },
172
+ {
173
+ "method": "GET",
174
+ "endpoint": "/partner/listings"
175
+ },
176
+ {
177
+ "method": "GET",
178
+ "endpoint": "/partner/owner-statements"
179
+ },
180
+ {
181
+ "method": "GET",
182
+ "endpoint": "/partner/users"
183
+ },
184
+ {
185
+ "method": "GET",
186
+ "endpoint": "/partner/users/{id}"
187
+ },
188
+ {
189
+ "method": "GET",
190
+ "endpoint": "/partner/vri-to-vrt/reservation-line-mappings"
191
+ },
192
+ {
193
+ "method": "GET",
194
+ "endpoint": "/partner/vri-to-vrt/statements/account-mappings"
195
+ },
196
+ {
197
+ "method": "GET",
198
+ "endpoint": "/partner/vri-to-vrt/statements/listing-mappings"
199
+ },
200
+ {
201
+ "method": "GET",
202
+ "endpoint": "/teams"
203
+ },
204
+ {
205
+ "method": "GET",
206
+ "endpoint": "/teams/issues"
207
+ },
208
+ {
209
+ "method": "GET",
210
+ "endpoint": "/teams/lookup"
211
+ },
212
+ {
213
+ "method": "POST",
214
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/cases/{caseId}/claim"
215
+ },
216
+ {
217
+ "method": "POST",
218
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/cases/{caseId}/release"
219
+ },
220
+ {
221
+ "method": "POST",
222
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/cases/{caseId}/review"
223
+ },
224
+ {
225
+ "method": "POST",
226
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/previews"
227
+ },
228
+ {
229
+ "method": "POST",
230
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans"
231
+ },
232
+ {
233
+ "method": "POST",
234
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/cancel"
235
+ },
236
+ {
237
+ "method": "POST",
238
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/complete"
239
+ },
240
+ {
241
+ "method": "POST",
242
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/stages/{ordinal}/apply"
243
+ },
244
+ {
245
+ "method": "POST",
246
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/stages/{ordinal}/approve"
247
+ },
248
+ {
249
+ "method": "POST",
250
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/stages/{ordinal}/dry-run"
251
+ },
252
+ {
253
+ "method": "POST",
254
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/stages/{ordinal}/request-approval"
255
+ },
256
+ {
257
+ "method": "POST",
258
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/repair-plans/{planId}/stages/{ordinal}/verify"
259
+ },
260
+ {
261
+ "method": "POST",
262
+ "endpoint": "/internal/operations/accounting-integrity/regions/{region}/shadow-runs"
263
+ },
264
+ {
265
+ "method": "POST",
266
+ "endpoint": "/internal/teams/{teamId}/vri-vrt-preview"
267
+ },
268
+ {
269
+ "method": "POST",
270
+ "endpoint": "/internal/teams/{teamId}/vri-vrt-preview/activate"
271
+ },
272
+ {
273
+ "method": "POST",
274
+ "endpoint": "/partner/vri-to-vrt"
275
+ },
276
+ {
277
+ "method": "POST",
278
+ "endpoint": "/partner/vri-to-vrt/booking-channels"
279
+ },
280
+ {
281
+ "method": "POST",
282
+ "endpoint": "/partner/vri-to-vrt/cutover"
283
+ },
284
+ {
285
+ "method": "POST",
286
+ "endpoint": "/partner/vri-to-vrt/statements"
287
+ }
288
+ ];