@substrat-run/control-plane-client 0.6.18 → 0.7.0
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.
|
@@ -16,6 +16,7 @@ export declare const identityTenant: z.ZodObject<{
|
|
|
16
16
|
slug: z.ZodString;
|
|
17
17
|
name: z.ZodString;
|
|
18
18
|
entitled: z.ZodBoolean;
|
|
19
|
+
principal: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>;
|
|
19
20
|
}, z.core.$strip>;
|
|
20
21
|
/** The `/internal/builder/identity-tenants` response body. */
|
|
21
22
|
export declare const identityTenantsResponse: z.ZodObject<{
|
|
@@ -24,6 +25,7 @@ export declare const identityTenantsResponse: z.ZodObject<{
|
|
|
24
25
|
slug: z.ZodString;
|
|
25
26
|
name: z.ZodString;
|
|
26
27
|
entitled: z.ZodBoolean;
|
|
28
|
+
principal: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "PrincipalId", "out">>;
|
|
27
29
|
}, z.core.$strip>>;
|
|
28
30
|
}, z.core.$strip>;
|
|
29
31
|
export type IdentityTenant = z.infer<typeof identityTenant>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-tenants.d.ts","sourceRoot":"","sources":["../src/identity-tenants.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"identity-tenants.d.ts","sourceRoot":"","sources":["../src/identity-tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc;;;;;;iBAYzB,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB;;;;;;;;iBAAiD,CAAC;AAEtF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/identity-tenants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { slug, tenantId, z } from '@substrat-run/contracts';
|
|
1
|
+
import { principalId, slug, tenantId, z } from '@substrat-run/contracts';
|
|
2
2
|
/**
|
|
3
3
|
* A tenant a login builds for, as the control plane's studio membership read states it
|
|
4
4
|
* (`POST /internal/builder/identity-tenants`, builder-plane.md §4).
|
|
@@ -17,6 +17,12 @@ export const identityTenant = z.object({
|
|
|
17
17
|
name: z.string().min(1),
|
|
18
18
|
/** Whether the tenant holds the `builder` entitlement (the control plane applies expiry at read). */
|
|
19
19
|
entitled: z.boolean(),
|
|
20
|
+
/**
|
|
21
|
+
* The login's principal in this tenant (#3108): the person a studio names when it asks for a
|
|
22
|
+
* tenant token, so the plane judges a fork of production data as them. Absent from a plane that
|
|
23
|
+
* predates it, and for a login the directory links to no principal there.
|
|
24
|
+
*/
|
|
25
|
+
principal: principalId.optional(),
|
|
20
26
|
});
|
|
21
27
|
/** The `/internal/builder/identity-tenants` response body. */
|
|
22
28
|
export const identityTenantsResponse = z.object({ tenants: z.array(identityTenant) });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-tenants.js","sourceRoot":"","sources":["../src/identity-tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"identity-tenants.js","sourceRoot":"","sources":["../src/identity-tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAEzE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,QAAQ;IACZ,IAAI;IACJ,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,qGAAqG;IACrG,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB;;;;OAIG;IACH,SAAS,EAAE,WAAW,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,8DAA8D;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/control-plane-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "The typed HTTP client for the Substrat control-plane API — one transport (credentials, problem documents, ControlPlaneError) for the CLI, the console and a vertical's connect seam",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"LICENSE"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@substrat-run/contracts": "^0.
|
|
26
|
+
"@substrat-run/contracts": "^0.197.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.20.5",
|