@substrat-run/contracts 0.193.0 → 0.194.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.
package/dist/index.d.ts CHANGED
@@ -91,6 +91,7 @@ export * from './places.js';
91
91
  export * from './delegations.js';
92
92
  export * from './social-relay.js';
93
93
  export * from './preview-client.js';
94
+ export * from './seeded-preview.js';
94
95
  export * from './client-redirects.js';
95
96
  export * from './source-build.js';
96
97
  export * from './builder-turns.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,4BAA4B,EAC5B,mCAAmC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,2BAA2B,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC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AAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -93,6 +93,7 @@ export * from './places.js';
93
93
  export * from './delegations.js';
94
94
  export * from './social-relay.js';
95
95
  export * from './preview-client.js';
96
+ export * from './seeded-preview.js';
96
97
  export * from './client-redirects.js';
97
98
  export * from './source-build.js';
98
99
  export * from './builder-turns.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,kFAAkF;AAClF,OAAO,EACL,4BAA4B,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AAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,47 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A SEEDED preview (#3108): a clean-room preview holding the vertical's own sample world, whose
4
+ * people sign in by picking a persona. This is the vocabulary between the control plane, which
5
+ * creates the preview and runs the picker, and the vertical's deployment, which seats the world.
6
+ *
7
+ * - `POST /internal/seed-world` — seat the world's personas in one scope: a principal each, its
8
+ * role, and the link its `sub` signs in by; and, when `build` is set, the records they start
9
+ * with. Safe to repeat. Refused for any scope that is not a clean-room preview: a persona link
10
+ * on a production scope, or on a fork of one, would be a way in that nobody was invited by.
11
+ * - `POST /internal/personas` — the personas that scope offers, for the picker. Read-only.
12
+ *
13
+ * A deployment that declares no world answers both 501.
14
+ */
15
+ export declare const SEED_WORLD_PATH = "/internal/seed-world";
16
+ export declare const PERSONAS_PATH = "/internal/personas";
17
+ export declare const seedWorldBody: z.ZodObject<{
18
+ tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
19
+ scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
20
+ build: z.ZodBoolean;
21
+ }, z.core.$strict>;
22
+ export type SeedWorldBody = z.infer<typeof seedWorldBody>;
23
+ export declare const personasBody: z.ZodObject<{
24
+ tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
25
+ scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
26
+ }, z.core.$strict>;
27
+ export type PersonasBody = z.infer<typeof personasBody>;
28
+ /** A persona as the picker shows it. Its `sub` is what the persona issuer signs. */
29
+ export declare const seededPersona: z.ZodObject<{
30
+ sub: z.ZodString;
31
+ name: z.ZodString;
32
+ email: z.ZodString;
33
+ role: z.ZodOptional<z.ZodString>;
34
+ note: z.ZodOptional<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ export type SeededPersona = z.infer<typeof seededPersona>;
37
+ export declare const seededPersonas: z.ZodObject<{
38
+ personas: z.ZodArray<z.ZodObject<{
39
+ sub: z.ZodString;
40
+ name: z.ZodString;
41
+ email: z.ZodString;
42
+ role: z.ZodOptional<z.ZodString>;
43
+ note: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
46
+ export type SeededPersonas = z.infer<typeof seededPersonas>;
47
+ //# sourceMappingURL=seeded-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seeded-preview.d.ts","sourceRoot":"","sources":["../src/seeded-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,yBAAyB,CAAC;AACtD,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAElD,eAAO,MAAM,aAAa;;;;kBAWf,CAAC;AACZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,YAAY;;;kBAA2C,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,oFAAoF;AACpF,eAAO,MAAM,aAAa;;;;;;iBAMxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;iBAA0D,CAAC;AACtF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ import { scopeId, tenantId } from './ids.js';
3
+ /**
4
+ * A SEEDED preview (#3108): a clean-room preview holding the vertical's own sample world, whose
5
+ * people sign in by picking a persona. This is the vocabulary between the control plane, which
6
+ * creates the preview and runs the picker, and the vertical's deployment, which seats the world.
7
+ *
8
+ * - `POST /internal/seed-world` — seat the world's personas in one scope: a principal each, its
9
+ * role, and the link its `sub` signs in by; and, when `build` is set, the records they start
10
+ * with. Safe to repeat. Refused for any scope that is not a clean-room preview: a persona link
11
+ * on a production scope, or on a fork of one, would be a way in that nobody was invited by.
12
+ * - `POST /internal/personas` — the personas that scope offers, for the picker. Read-only.
13
+ *
14
+ * A deployment that declares no world answers both 501.
15
+ */
16
+ export const SEED_WORLD_PATH = '/internal/seed-world';
17
+ export const PERSONAS_PATH = '/internal/personas';
18
+ export const seedWorldBody = z
19
+ .object({
20
+ tenantId,
21
+ scopeId,
22
+ /**
23
+ * The platform's word that the scope is new, so the world's records are built too. A deployment
24
+ * also builds a reused scope whose data holds none of the world's people yet; a build is not
25
+ * idempotent, so it never builds where they are already seated.
26
+ */
27
+ build: z.boolean(),
28
+ })
29
+ .strict();
30
+ export const personasBody = z.object({ tenantId, scopeId }).strict();
31
+ /** A persona as the picker shows it. Its `sub` is what the persona issuer signs. */
32
+ export const seededPersona = z.object({
33
+ sub: z.string().min(1).max(200),
34
+ name: z.string().min(1).max(200),
35
+ email: z.string().email().max(320),
36
+ role: z.string().min(1).max(200).optional(),
37
+ note: z.string().max(500).optional(),
38
+ });
39
+ export const seededPersonas = z.object({ personas: z.array(seededPersona).max(100) });
40
+ //# sourceMappingURL=seeded-preview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seeded-preview.js","sourceRoot":"","sources":["../src/seeded-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,sBAAsB,CAAC;AACtD,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,QAAQ;IACR,OAAO;IACP;;;;OAIG;IACH,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACnB,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAGrE,oFAAoF;AACpF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrat-run/contracts",
3
- "version": "0.193.0",
3
+ "version": "0.194.0",
4
4
  "description": "Substrat kernel contract schemas — Zod is the source of truth (master plan D-22); OAS/JSON Schema are emitted artifacts",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {