@vrplatform/api 1.3.1-stage.3793 → 1.3.1-stage.37935400411
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/build/main/cache.js +10 -7
- package/build/main/cache.js.map +1 -1
- package/build/main/client.d.ts +6 -2
- package/build/main/client.js +16 -14
- package/build/main/client.js.map +1 -1
- package/build/main/control-plane-routing.d.ts +1 -0
- package/build/main/control-plane-routing.js +24 -0
- package/build/main/control-plane-routing.js.map +1 -0
- package/build/main/embed-lifecycle.d.ts +140 -0
- package/build/main/embed-lifecycle.js +93 -0
- package/build/main/embed-lifecycle.js.map +1 -0
- package/build/main/error.d.ts +22 -17
- package/build/main/error.js +50 -32
- package/build/main/error.js.map +1 -1
- package/build/main/generated/routing.d.ts +7 -0
- package/build/main/generated/routing.js +97 -0
- package/build/main/generated/routing.js.map +1 -0
- package/build/main/generated/v1.d.ts +4 -60127
- package/build/main/generated/v1.js.map +4 -1
- package/build/main/index.d.ts +7 -0
- package/build/main/index.js +7 -0
- package/build/main/index.js.map +1 -1
- package/build/main/is-test-team.d.ts +6 -0
- package/build/main/is-test-team.js +18 -0
- package/build/main/is-test-team.js.map +1 -0
- package/build/main/is-test-user.d.ts +4 -0
- package/build/main/is-test-user.js +31 -0
- package/build/main/is-test-user.js.map +1 -0
- package/build/main/is-vrp-member.d.ts +4 -0
- package/build/main/is-vrp-member.js +33 -0
- package/build/main/is-vrp-member.js.map +1 -0
- package/build/main/routing.d.ts +24 -0
- package/build/main/routing.js +62 -0
- package/build/main/routing.js.map +1 -0
- package/build/main/types.d.ts +2 -0
- package/build/main/types.js.map +1 -1
- package/build/main/vrt-mcp.d.ts +214 -0
- package/build/main/vrt-mcp.js +161 -0
- package/build/main/vrt-mcp.js.map +1 -0
- package/build/module/cache.js +10 -7
- package/build/module/cache.js.map +1 -1
- package/build/module/client.d.ts +6 -2
- package/build/module/client.js +16 -14
- package/build/module/client.js.map +1 -1
- package/build/module/control-plane-routing.d.ts +1 -0
- package/build/module/control-plane-routing.js +21 -0
- package/build/module/control-plane-routing.js.map +1 -0
- package/build/module/embed-lifecycle.d.ts +140 -0
- package/build/module/embed-lifecycle.js +90 -0
- package/build/module/embed-lifecycle.js.map +1 -0
- package/build/module/error.d.ts +22 -17
- package/build/module/error.js +51 -31
- package/build/module/error.js.map +1 -1
- package/build/module/generated/routing.d.ts +7 -0
- package/build/module/generated/routing.js +94 -0
- package/build/module/generated/routing.js.map +1 -0
- package/build/module/generated/v1.d.ts +4 -60127
- package/build/module/generated/v1.js.map +4 -1
- package/build/module/index.d.ts +7 -0
- package/build/module/index.js +7 -0
- package/build/module/index.js.map +1 -1
- package/build/module/is-test-team.d.ts +6 -0
- package/build/module/is-test-team.js +14 -0
- package/build/module/is-test-team.js.map +1 -0
- package/build/module/is-test-user.d.ts +4 -0
- package/build/module/is-test-user.js +27 -0
- package/build/module/is-test-user.js.map +1 -0
- package/build/module/is-vrp-member.d.ts +4 -0
- package/build/module/is-vrp-member.js +29 -0
- package/build/module/is-vrp-member.js.map +1 -0
- package/build/module/routing.d.ts +24 -0
- package/build/module/routing.js +58 -0
- package/build/module/routing.js.map +1 -0
- package/build/module/types.d.ts +2 -0
- package/build/module/types.js.map +1 -1
- package/build/module/vrt-mcp.d.ts +214 -0
- package/build/module/vrt-mcp.js +158 -0
- package/build/module/vrt-mcp.js.map +1 -0
- package/package.json +8 -7
- package/src/cache.ts +11 -8
- package/src/client.ts +18 -16
- package/src/control-plane-routing.ts +30 -0
- package/src/embed-lifecycle.ts +96 -0
- package/src/error.ts +93 -56
- package/src/generated/routing.ts +96 -0
- package/src/generated/v1.ts +4 -60128
- package/src/index.ts +7 -0
- package/src/is-test-team.ts +26 -0
- package/src/is-test-user.ts +39 -0
- package/src/is-vrp-member.ts +38 -0
- package/src/routing.ts +89 -0
- package/src/types.ts +8 -0
- package/src/vrt-mcp.ts +185 -0
- package/build/main/generated/openapi-fetch.d.ts +0 -224
- package/build/main/generated/openapi-fetch.js +0 -14
- package/build/main/generated/openapi-fetch.js.map +0 -1
- package/build/module/generated/openapi-fetch.d.ts +0 -224
- package/build/module/generated/openapi-fetch.js +0 -2
- package/build/module/generated/openapi-fetch.js.map +0 -1
- package/src/generated/openapi-fetch.ts +0 -433
package/build/module/error.d.ts
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
1
|
+
import type { paths } from './generated/v1';
|
|
2
|
+
type PublicError = paths['/account-connections']['get']['responses'][400]['content']['application/json'];
|
|
3
|
+
type ErrorEnvelope = Omit<PublicError, 'code' | 'issues'> & {
|
|
3
4
|
code: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
issues?: PublicError['issues'];
|
|
6
|
+
stack?: string;
|
|
7
|
+
};
|
|
8
|
+
type ApiResponse<T> = {
|
|
9
|
+
response: Response;
|
|
10
|
+
data?: T;
|
|
11
|
+
error?: unknown;
|
|
10
12
|
};
|
|
11
13
|
export declare class ApiClientError extends Error {
|
|
12
|
-
error:
|
|
13
|
-
code:
|
|
14
|
-
issues:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
constructor(error:
|
|
14
|
+
error: ErrorEnvelope;
|
|
15
|
+
code: ErrorEnvelope['code'];
|
|
16
|
+
issues: PublicError['issues'];
|
|
17
|
+
context: PublicError['context'];
|
|
18
|
+
links: PublicError['links'];
|
|
19
|
+
retryable: PublicError['retryable'];
|
|
20
|
+
constructor(error: ErrorEnvelope);
|
|
21
|
+
}
|
|
22
|
+
export declare class ApiClientResponseError extends Error {
|
|
23
|
+
status: number;
|
|
24
|
+
constructor(message: string, status: number);
|
|
19
25
|
}
|
|
20
|
-
export declare function throwIfError<T extends
|
|
21
|
-
export declare function throwIfError<T extends FetchResponse<any, any, any>>(response: Promise<T>): Promise<NonNullable<T['data']>>;
|
|
26
|
+
export declare function throwIfError<T extends ApiResponse<unknown> | Promise<ApiResponse<unknown>>>(response: T): T extends Promise<ApiResponse<unknown>> ? Promise<NonNullable<Awaited<T>['data']>> : NonNullable<Awaited<T>['data']>;
|
|
22
27
|
export {};
|
package/build/module/error.js
CHANGED
|
@@ -1,48 +1,68 @@
|
|
|
1
|
-
import { hasValue } from '@vrplatform/utils';
|
|
2
1
|
export class ApiClientError extends Error {
|
|
3
2
|
error;
|
|
4
3
|
code;
|
|
5
4
|
issues;
|
|
6
5
|
context;
|
|
6
|
+
links;
|
|
7
|
+
retryable;
|
|
7
8
|
constructor(error) {
|
|
8
|
-
|
|
9
|
-
[
|
|
10
|
-
error.code,
|
|
11
|
-
error.issues
|
|
12
|
-
?.map((x) => [x.message, x.path?.join('->')]
|
|
13
|
-
.filter(hasValue)
|
|
14
|
-
.join(' on '))
|
|
15
|
-
.join(', '),
|
|
16
|
-
]
|
|
17
|
-
.filter(hasValue)
|
|
18
|
-
.join(': ');
|
|
19
|
-
super(message);
|
|
9
|
+
super(error.message);
|
|
20
10
|
this.error = error;
|
|
21
11
|
this.code = error.code;
|
|
22
|
-
this.issues = error.issues
|
|
23
|
-
this.context = error.context
|
|
12
|
+
this.issues = error.issues ?? [];
|
|
13
|
+
this.context = error.context;
|
|
14
|
+
this.links = error.links;
|
|
15
|
+
this.retryable = error.retryable;
|
|
24
16
|
if (error.stack)
|
|
25
17
|
this.stack = error.stack;
|
|
26
18
|
}
|
|
27
19
|
}
|
|
20
|
+
export class ApiClientResponseError extends Error {
|
|
21
|
+
status;
|
|
22
|
+
constructor(message, status) {
|
|
23
|
+
super(message);
|
|
24
|
+
this.status = status;
|
|
25
|
+
this.name = 'ApiClientResponseError';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
28
|
export function throwIfError(response) {
|
|
29
|
-
if (response instanceof Promise)
|
|
30
|
-
return response.then((
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
code: 'SERVICE_UNAVAILABLE',
|
|
34
|
-
message: 'Worker resources exceeded.',
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
const error = response.error;
|
|
38
|
-
if (error)
|
|
39
|
-
throw new ApiClientError(error);
|
|
40
|
-
return response.data;
|
|
41
|
-
});
|
|
29
|
+
if (response instanceof Promise)
|
|
30
|
+
return response.then((value) => throwIfError(value));
|
|
31
|
+
if (response.response.ok && response.error === undefined) {
|
|
32
|
+
return response.data;
|
|
42
33
|
}
|
|
43
34
|
const error = response.error;
|
|
44
|
-
if (error
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
if (typeof error !== 'object' ||
|
|
36
|
+
error === null ||
|
|
37
|
+
!('code' in error) ||
|
|
38
|
+
typeof error.code !== 'string' ||
|
|
39
|
+
!('message' in error) ||
|
|
40
|
+
typeof error.message !== 'string' ||
|
|
41
|
+
!('issues' in error) ||
|
|
42
|
+
!Array.isArray(error.issues) ||
|
|
43
|
+
!error.issues.every((issue) => typeof issue === 'object' &&
|
|
44
|
+
issue !== null &&
|
|
45
|
+
'message' in issue &&
|
|
46
|
+
typeof issue.message === 'string' &&
|
|
47
|
+
(!('path' in issue) ||
|
|
48
|
+
issue.path === undefined ||
|
|
49
|
+
(Array.isArray(issue.path) &&
|
|
50
|
+
issue.path.every((part) => typeof part === 'string' || typeof part === 'number'))) &&
|
|
51
|
+
(!('schema' in issue) ||
|
|
52
|
+
issue.schema === undefined ||
|
|
53
|
+
typeof issue.schema === 'string')) ||
|
|
54
|
+
('retryable' in error &&
|
|
55
|
+
error.retryable !== undefined &&
|
|
56
|
+
typeof error.retryable !== 'boolean') ||
|
|
57
|
+
('links' in error &&
|
|
58
|
+
error.links !== undefined &&
|
|
59
|
+
(typeof error.links !== 'object' ||
|
|
60
|
+
error.links === null ||
|
|
61
|
+
!('docs' in error.links) ||
|
|
62
|
+
typeof error.links.docs !== 'string' ||
|
|
63
|
+
!('schema' in error.links) ||
|
|
64
|
+
typeof error.links.schema !== 'string')))
|
|
65
|
+
throw new ApiClientResponseError('API response did not contain a valid error envelope', response.response.status);
|
|
66
|
+
throw new ApiClientError(error);
|
|
47
67
|
}
|
|
48
68
|
//# sourceMappingURL=error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"src/","sources":["error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"src/","sources":["error.ts"],"names":[],"mappings":"AAkBA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAOpB;IANnB,IAAI,CAAwB;IAC5B,MAAM,CAAwB;IAC9B,OAAO,CAAyB;IAChC,KAAK,CAAuB;IAC5B,SAAS,CAA2B;IAEpC,YAAmB,KAAoB;QACrC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;QAErC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;QACjC,IAAI,KAAK,CAAC,KAAK;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAC5C,CAAC;CACF;AAED,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAGtC;IAFT,YACE,OAAe,EACR,MAAc;QAErB,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,WAAM,GAAN,MAAM,CAAQ;QAGrB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;IACvC,CAAC;CACF;AASD,MAAM,UAAU,YAAY,CAC1B,QAA8D;IAE9D,IAAI,QAAQ,YAAY,OAAO;QAC7B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAA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,OAAO,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC;QACvC,CAAC,OAAO,IAAI,KAAK;YACf,KAAK,CAAC,KAAK,KAAK,SAAS;YACzB,CAAC,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ;gBAC9B,KAAK,CAAC,KAAK,KAAK,IAAI;gBACpB,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC;gBACxB,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ;gBACpC,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC;gBAC1B,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;QAE5C,MAAM,IAAI,sBAAsB,CAC9B,qDAAqD,EACrD,QAAQ,CAAC,QAAQ,CAAC,MAAM,CACzB,CAAC;IAEJ,MAAM,IAAI,cAAc,CAAC,KAAsB,CAAC,CAAC;AACnD,CAAC","sourcesContent":["import type { paths } from './generated/v1';\n\n// The shared default envelope is emitted on every route. Preserve unfamiliar\n// server codes so an older client can still expose a newer API failure.\ntype PublicError =\n paths['/account-connections']['get']['responses'][400]['content']['application/json'];\ntype ErrorEnvelope = Omit<PublicError, 'code' | 'issues'> & {\n code: string;\n issues?: PublicError['issues'];\n stack?: string;\n};\n\ntype ApiResponse<T> = {\n response: Response;\n data?: T;\n error?: unknown;\n};\n\nexport class ApiClientError extends Error {\n code: ErrorEnvelope['code'];\n issues: PublicError['issues'];\n context: PublicError['context'];\n links: PublicError['links'];\n retryable: PublicError['retryable'];\n\n constructor(public error: ErrorEnvelope) {\n super(error.message);\n this.code = error.code;\n this.issues = error.issues ?? [];\n this.context = error.context;\n this.links = error.links;\n this.retryable = error.retryable;\n if (error.stack) this.stack = error.stack;\n }\n}\n\nexport class ApiClientResponseError extends Error {\n constructor(\n message: string,\n public status: number\n ) {\n super(message);\n this.name = 'ApiClientResponseError';\n }\n}\n\nexport function throwIfError<\n T extends ApiResponse<unknown> | Promise<ApiResponse<unknown>>,\n>(\n response: T\n): T extends Promise<ApiResponse<unknown>>\n ? Promise<NonNullable<Awaited<T>['data']>>\n : NonNullable<Awaited<T>['data']>;\nexport function throwIfError(\n response: Promise<ApiResponse<unknown>> | ApiResponse<unknown>\n): unknown {\n if (response instanceof Promise)\n return response.then((value) => throwIfError(value));\n if (response.response.ok && response.error === undefined) {\n return response.data;\n }\n\n const error = response.error;\n if (\n typeof error !== 'object' ||\n error === null ||\n !('code' in error) ||\n typeof error.code !== 'string' ||\n !('message' in error) ||\n typeof error.message !== 'string' ||\n !('issues' in error) ||\n !Array.isArray(error.issues) ||\n !error.issues.every(\n (issue: unknown) =>\n typeof issue === 'object' &&\n issue !== null &&\n 'message' in issue &&\n typeof issue.message === 'string' &&\n (!('path' in issue) ||\n issue.path === undefined ||\n (Array.isArray(issue.path) &&\n issue.path.every(\n (part: unknown) =>\n typeof part === 'string' || typeof part === 'number'\n ))) &&\n (!('schema' in issue) ||\n issue.schema === undefined ||\n typeof issue.schema === 'string')\n ) ||\n ('retryable' in error &&\n error.retryable !== undefined &&\n typeof error.retryable !== 'boolean') ||\n ('links' in error &&\n error.links !== undefined &&\n (typeof error.links !== 'object' ||\n error.links === null ||\n !('docs' in error.links) ||\n typeof error.links.docs !== 'string' ||\n !('schema' in error.links) ||\n typeof error.links.schema !== 'string'))\n )\n throw new ApiClientResponseError(\n 'API response did not contain a valid error envelope',\n response.response.status\n );\n\n throw new ApiClientError(error as ErrorEnvelope);\n}\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Generated by packages/client/openapi.ts from API route and deployment metadata.
|
|
2
|
+
export const controlPlaneRouting = {
|
|
3
|
+
"origins": {
|
|
4
|
+
"https://api.vrplatform.app": "https://us.api.vrplatform.app",
|
|
5
|
+
"https://api.edge.vrplatform.app": "https://us.api.vrplatform.app",
|
|
6
|
+
"https://staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
|
|
7
|
+
"https://staging.api.edge.vrplatform.app": "https://us.staging.api.vrplatform.app",
|
|
8
|
+
"https://us.staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
|
|
9
|
+
"https://eu.staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
|
|
10
|
+
"https://ap.staging.api.vrplatform.app": "https://us.staging.api.vrplatform.app",
|
|
11
|
+
"https://us.api.vrplatform.app": "https://us.api.vrplatform.app",
|
|
12
|
+
"https://eu.api.vrplatform.app": "https://us.api.vrplatform.app",
|
|
13
|
+
"https://ap.api.vrplatform.app": "https://us.api.vrplatform.app"
|
|
14
|
+
},
|
|
15
|
+
"routes": [
|
|
16
|
+
{
|
|
17
|
+
"method": "GET",
|
|
18
|
+
"endpoint": "/internal/message-overwrites"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"method": "GET",
|
|
22
|
+
"endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"endpoint": "/internal/operations/accounting-integrity/definitions"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"method": "GET",
|
|
30
|
+
"endpoint": "/internal/operations/accounting-integrity/definitions/{code}"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"method": "GET",
|
|
34
|
+
"endpoint": "/internal/owner-portals/{hostname}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"method": "GET",
|
|
38
|
+
"endpoint": "/internal/owner-portals/{hostname}/providers"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"method": "GET",
|
|
42
|
+
"endpoint": "/me/teams"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"method": "POST",
|
|
46
|
+
"endpoint": "/embed-sessions/exchange"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"method": "POST",
|
|
50
|
+
"endpoint": "/embed-sessions/frame-ancestor-policy"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"method": "POST",
|
|
54
|
+
"endpoint": "/internal/operations/accounting-integrity/definition-drafts"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"method": "POST",
|
|
58
|
+
"endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}/publish"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"method": "POST",
|
|
62
|
+
"endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}/validate"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"method": "POST",
|
|
66
|
+
"endpoint": "/internal/owner-portals/logo"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"method": "POST",
|
|
70
|
+
"endpoint": "/internal/owner-portals/{hostname}/providers"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"method": "POST",
|
|
74
|
+
"endpoint": "/owner-portal-previews/end"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"method": "POST",
|
|
78
|
+
"endpoint": "/owner-portal-previews/exchange"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"method": "PUT",
|
|
82
|
+
"endpoint": "/internal/operations/accounting-integrity/definition-drafts/{id}"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"method": "PUT",
|
|
86
|
+
"endpoint": "/internal/operations/grants/users/{userId}"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"method": "PUT",
|
|
90
|
+
"endpoint": "/internal/owner-portals/{hostname}"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=routing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routing.js","sourceRoot":"src/","sources":["generated/routing.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,MAAM,CAAC,MAAM,mBAAmB,GAG5B;IACF,SAAS,EAAE;QACT,4BAA4B,EAAE,+BAA+B;QAC7D,iCAAiC,EAAE,+BAA+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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"]}
|