@vrplatform/api 1.3.1-stage.4133 → 1.3.1-stage.4140
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/generated/v1.d.ts +692 -10
- package/build/main/generated/v1.js.map +1 -1
- package/build/main/routing.d.ts +7 -0
- package/build/main/routing.js +7 -0
- package/build/main/routing.js.map +1 -1
- package/build/module/generated/v1.d.ts +692 -10
- package/build/module/generated/v1.js.map +1 -1
- package/build/module/routing.d.ts +7 -0
- package/build/module/routing.js +7 -0
- package/build/module/routing.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/v1.ts +692 -10
- package/src/routing.ts +7 -0
package/src/routing.ts
CHANGED
|
@@ -9,6 +9,13 @@ export type TenantRouting = Pick<
|
|
|
9
9
|
|
|
10
10
|
type ApiClientOptions = Parameters<typeof useApiClient>[0];
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Resolve a tenant's region and regional `apiBaseUrl` from a connection id,
|
|
14
|
+
* slug, or tenant id — the client entry point for non-API runtimes that need
|
|
15
|
+
* to reach a tenant's home region. Each call is a `/teams/resolve` round trip;
|
|
16
|
+
* hot-loop callers should cache the result (placement changes only on an
|
|
17
|
+
* explicit tenant migration).
|
|
18
|
+
*/
|
|
12
19
|
export async function resolveTenantRouting({
|
|
13
20
|
connectionId,
|
|
14
21
|
slug,
|