@substrat-run/contracts 0.117.0 → 0.119.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/auth-delivery.d.ts +17 -0
- package/dist/auth-delivery.d.ts.map +1 -0
- package/dist/auth-delivery.js +17 -0
- package/dist/auth-delivery.js.map +1 -0
- package/dist/connection-health.d.ts +132 -0
- package/dist/connection-health.d.ts.map +1 -0
- package/dist/connection-health.js +132 -0
- package/dist/connection-health.js.map +1 -0
- package/dist/control-plane.d.ts +21 -1
- package/dist/control-plane.d.ts.map +1 -1
- package/dist/control-plane.js +33 -2
- package/dist/control-plane.js.map +1 -1
- package/dist/denial.d.ts +12 -0
- package/dist/denial.d.ts.map +1 -1
- package/dist/deploy.d.ts +68 -0
- package/dist/deploy.d.ts.map +1 -1
- package/dist/deploy.js +91 -1
- package/dist/deploy.js.map +1 -1
- package/dist/events.d.ts +42 -0
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +26 -2
- package/dist/events.js.map +1 -1
- package/dist/ids.d.ts +1 -0
- package/dist/ids.d.ts.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/manifest.d.ts +58 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +109 -3
- package/dist/manifest.js.map +1 -1
- package/dist/operations.d.ts +67 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +111 -0
- package/dist/operations.js.map +1 -1
- package/dist/peer-transport.d.ts +81 -0
- package/dist/peer-transport.d.ts.map +1 -0
- package/dist/peer-transport.js +87 -0
- package/dist/peer-transport.js.map +1 -0
- package/dist/peer.d.ts +183 -0
- package/dist/peer.d.ts.map +1 -0
- package/dist/peer.js +155 -0
- package/dist/peer.js.map +1 -0
- package/dist/permission.d.ts +42 -1
- package/dist/permission.d.ts.map +1 -1
- package/dist/permission.js +36 -2
- package/dist/permission.js.map +1 -1
- package/dist/places.d.ts +98 -0
- package/dist/places.d.ts.map +1 -0
- package/dist/places.js +103 -0
- package/dist/places.js.map +1 -0
- package/dist/platform-request.d.ts +50 -0
- package/dist/platform-request.d.ts.map +1 -1
- package/dist/platform-request.js +53 -1
- package/dist/platform-request.js.map +1 -1
- package/dist/preview-client.d.ts +154 -0
- package/dist/preview-client.d.ts.map +1 -0
- package/dist/preview-client.js +157 -0
- package/dist/preview-client.js.map +1 -0
- package/dist/registry.d.ts +1 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +7 -0
- package/dist/registry.js.map +1 -1
- package/dist/routing.d.ts +1 -0
- package/dist/routing.d.ts.map +1 -1
- package/dist/routing.js +9 -0
- package/dist/routing.js.map +1 -1
- package/dist/vertical-events.d.ts +265 -0
- package/dist/vertical-events.d.ts.map +1 -0
- package/dist/vertical-events.js +167 -0
- package/dist/vertical-events.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A preview's OWN sign-in client at the team auth-server its parent signs in with (#1704).
|
|
4
|
+
*
|
|
5
|
+
* A preview forks a prod scope into a new scope, bound to the PR's version. That version is
|
|
6
|
+
* its own dispatch script, and a Durable Object namespace belongs to its script, so the
|
|
7
|
+
* fork's config store starts empty and nothing of the parent's delivered config reaches it
|
|
8
|
+
* — not at create, and not after any later push, which binds yet another script. The
|
|
9
|
+
* parent's `substrat:auth` holds a client secret, and the platform neither keeps a copy of
|
|
10
|
+
* delivered config nor reads one back. So a preview is not handed the parent's client: it
|
|
11
|
+
* gets a client of its own, minted at the same issuer, and delivered through the ordinary
|
|
12
|
+
* `/internal/configure`. Prod's client is never touched and never learns a preview's
|
|
13
|
+
* callback. Reaping the preview deletes its client.
|
|
14
|
+
*
|
|
15
|
+
* This module is the vocabulary between the two ends of that protocol: the control plane,
|
|
16
|
+
* which decides when, and the team auth-server (`demos/auth-server`), which mints and
|
|
17
|
+
* deletes. Three platform-gated routes on the issuer, each addressed by the issuer's OWN
|
|
18
|
+
* scope and refused unless that scope is the named tenant's instance:
|
|
19
|
+
*
|
|
20
|
+
* - `POST /internal/preview-client/check` — does the parent sign in HERE? Read-only.
|
|
21
|
+
* - `POST /internal/preview-client` — mint the preview's client (re-checks first).
|
|
22
|
+
* - `DELETE /internal/preview-client` — delete the preview's clients, and only those.
|
|
23
|
+
*
|
|
24
|
+
* ## "The parent signs in here" is a platform fact, not a URI match
|
|
25
|
+
*
|
|
26
|
+
* Dynamic client registration is open at a team auth-server, and a callback URL is public.
|
|
27
|
+
* So "some client redirects to the parent's callback" proves nothing by itself: anybody can
|
|
28
|
+
* register one. The issuer claims a parent only when it holds a binding for the parent
|
|
29
|
+
* scope that ONLY the platform writes — a `place_app` row (#1670) or an `oauth_resource`
|
|
30
|
+
* row marked for that scope (#1619), both delivered by the dashboard through the
|
|
31
|
+
* platform-gated `/internal/configure` — AND an enabled client whose redirect URIs contain
|
|
32
|
+
* one of the parent's callbacks. The control plane asks every auth-server of the tenant and
|
|
33
|
+
* mints only where exactly one claims.
|
|
34
|
+
*
|
|
35
|
+
* ## Deletion is by tag, and by generation
|
|
36
|
+
*
|
|
37
|
+
* Every client minted here is recorded in the issuer's own `preview_client` table with the
|
|
38
|
+
* preview scope it belongs to and a generation the issuer assigns (monotonic per issuer, so
|
|
39
|
+
* the order is the issuer's own). A delete selects from that table and nothing else, so no
|
|
40
|
+
* delete can reach a client the platform did not mint for that preview — prod's included.
|
|
41
|
+
* A delete that keeps one client removes only the tagged clients OLDER than it, and says
|
|
42
|
+
* whether a newer one exists (`superseded`) or the kept one is gone (`kept: false`).
|
|
43
|
+
*/
|
|
44
|
+
/** Where a vertical's OIDC relying party receives the issuer's redirect. */
|
|
45
|
+
export declare const OIDC_CALLBACK_PATH = "/api/auth/callback";
|
|
46
|
+
/** The callback a relying party at `hostname` registers — exact-match, as issuers compare it. */
|
|
47
|
+
export declare function oidcCallbackUrl(hostname: string): string;
|
|
48
|
+
/** The issuer-side path of all three verbs (the check hangs off it as `/check`). */
|
|
49
|
+
export declare const PREVIEW_CLIENT_PATH = "/internal/preview-client";
|
|
50
|
+
/** `POST /internal/preview-client/check` — read-only: does the parent sign in here? */
|
|
51
|
+
export declare const previewClientCheck: z.ZodObject<{
|
|
52
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
53
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
54
|
+
parentScopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
55
|
+
parentRedirectUris: z.ZodArray<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type PreviewClientCheck = z.infer<typeof previewClientCheck>;
|
|
58
|
+
/** The check's answer. */
|
|
59
|
+
export declare const previewClientClaim: z.ZodObject<{
|
|
60
|
+
claimed: z.ZodBoolean;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type PreviewClientClaim = z.infer<typeof previewClientClaim>;
|
|
63
|
+
/**
|
|
64
|
+
* `POST /internal/preview-client` — mint the preview's client. The issuer re-runs the check
|
|
65
|
+
* first and refuses (409) a parent it does not claim. The client it registers carries
|
|
66
|
+
* EXACTLY `redirectUri` and `postLogoutRedirectUri`; either one equal to a parent callback
|
|
67
|
+
* is refused, so a preview client can never stand in for prod's.
|
|
68
|
+
*/
|
|
69
|
+
export declare const previewClientMint: z.ZodObject<{
|
|
70
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
71
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
72
|
+
parentScopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
73
|
+
parentRedirectUris: z.ZodArray<z.ZodString>;
|
|
74
|
+
previewScopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
75
|
+
redirectUri: z.ZodString;
|
|
76
|
+
postLogoutRedirectUri: z.ZodString;
|
|
77
|
+
clientName: z.ZodString;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type PreviewClientMint = z.infer<typeof previewClientMint>;
|
|
80
|
+
/** What a mint answers — ONCE. The issuer stores the secret hashed, and nobody stores it here. */
|
|
81
|
+
export declare const mintedPreviewClient: z.ZodObject<{
|
|
82
|
+
clientId: z.ZodString;
|
|
83
|
+
clientSecret: z.ZodString;
|
|
84
|
+
generation: z.ZodNumber;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type MintedPreviewClient = z.infer<typeof mintedPreviewClient>;
|
|
87
|
+
/**
|
|
88
|
+
* `DELETE /internal/preview-client` — delete a preview's clients. With neither option, every
|
|
89
|
+
* client minted for the preview (the reap). With `keep`, the ones minted BEFORE it (a push
|
|
90
|
+
* that has just delivered its own). With `only`, that one client if it is the preview's (a
|
|
91
|
+
* mint whose delivery failed cleaning up after itself).
|
|
92
|
+
*/
|
|
93
|
+
export declare const previewClientRetire: z.ZodObject<{
|
|
94
|
+
tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
|
|
95
|
+
scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
96
|
+
previewScopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
97
|
+
keep: z.ZodOptional<z.ZodString>;
|
|
98
|
+
only: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type PreviewClientRetire = z.infer<typeof previewClientRetire>;
|
|
101
|
+
/**
|
|
102
|
+
* What a delete did. `kept` is null without `keep`; otherwise whether the kept client still
|
|
103
|
+
* exists. `superseded` is true when a client NEWER than the kept one exists for the preview:
|
|
104
|
+
* another push minted after this one, and it — not this one — owns what happens next.
|
|
105
|
+
*/
|
|
106
|
+
export declare const retiredPreviewClients: z.ZodObject<{
|
|
107
|
+
deleted: z.ZodArray<z.ZodString>;
|
|
108
|
+
kept: z.ZodNullable<z.ZodBoolean>;
|
|
109
|
+
superseded: z.ZodBoolean;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type RetiredPreviewClients = z.infer<typeof retiredPreviewClients>;
|
|
112
|
+
/**
|
|
113
|
+
* What `preview create` reports about the preview's login — the `auth` field of its answer.
|
|
114
|
+
* Never a secret: the client id and issuer, and the callback, are all the output carries.
|
|
115
|
+
*
|
|
116
|
+
* - `wired` — a team auth-server claimed the parent; the preview has its own client there.
|
|
117
|
+
* - `unregistered` — no team auth-server claimed the parent: an external issuer, a builtin
|
|
118
|
+
* login, or a team install whose binding the dashboard has not delivered yet.
|
|
119
|
+
* - `ambiguous` — more than one claimed, so the platform chose none.
|
|
120
|
+
* - `unknown` — some auth-server could not be asked (it predates this, or did not answer),
|
|
121
|
+
* and none that could claimed the parent.
|
|
122
|
+
* - `superseded` — a newer push owns the preview; this push delivered nothing to it.
|
|
123
|
+
* - `not-applicable` — a clean-room preview has no parent to sign in like.
|
|
124
|
+
*/
|
|
125
|
+
export declare const previewAuthStatus: z.ZodEnum<{
|
|
126
|
+
ambiguous: "ambiguous";
|
|
127
|
+
"not-applicable": "not-applicable";
|
|
128
|
+
superseded: "superseded";
|
|
129
|
+
unknown: "unknown";
|
|
130
|
+
unregistered: "unregistered";
|
|
131
|
+
wired: "wired";
|
|
132
|
+
}>;
|
|
133
|
+
export type PreviewAuthStatus = z.infer<typeof previewAuthStatus>;
|
|
134
|
+
export declare const previewAuth: z.ZodObject<{
|
|
135
|
+
status: z.ZodEnum<{
|
|
136
|
+
ambiguous: "ambiguous";
|
|
137
|
+
"not-applicable": "not-applicable";
|
|
138
|
+
superseded: "superseded";
|
|
139
|
+
unknown: "unknown";
|
|
140
|
+
unregistered: "unregistered";
|
|
141
|
+
wired: "wired";
|
|
142
|
+
}>;
|
|
143
|
+
callbackUrl: z.ZodNullable<z.ZodString>;
|
|
144
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
145
|
+
issuerScopeId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ScopeId", "out">>;
|
|
146
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
147
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
issuerScopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
|
|
149
|
+
problem: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
note: z.ZodString;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
export type PreviewAuth = z.infer<typeof previewAuth>;
|
|
154
|
+
//# sourceMappingURL=preview-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preview-client.d.ts","sourceRoot":"","sources":["../src/preview-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AA+B9D,uFAAuF;AACvF,eAAO,MAAM,kBAAkB;;;;;iBAI7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,0BAA0B;AAC1B,eAAO,MAAM,kBAAkB;;iBAAqC,CAAC;AACrE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,kGAAkG;AAClG,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;iBAOoC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB;;;;;;;EAA4F,CAAC;AAC3H,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;iBAYtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { scopeId, tenantId } from './ids.js';
|
|
3
|
+
/**
|
|
4
|
+
* A preview's OWN sign-in client at the team auth-server its parent signs in with (#1704).
|
|
5
|
+
*
|
|
6
|
+
* A preview forks a prod scope into a new scope, bound to the PR's version. That version is
|
|
7
|
+
* its own dispatch script, and a Durable Object namespace belongs to its script, so the
|
|
8
|
+
* fork's config store starts empty and nothing of the parent's delivered config reaches it
|
|
9
|
+
* — not at create, and not after any later push, which binds yet another script. The
|
|
10
|
+
* parent's `substrat:auth` holds a client secret, and the platform neither keeps a copy of
|
|
11
|
+
* delivered config nor reads one back. So a preview is not handed the parent's client: it
|
|
12
|
+
* gets a client of its own, minted at the same issuer, and delivered through the ordinary
|
|
13
|
+
* `/internal/configure`. Prod's client is never touched and never learns a preview's
|
|
14
|
+
* callback. Reaping the preview deletes its client.
|
|
15
|
+
*
|
|
16
|
+
* This module is the vocabulary between the two ends of that protocol: the control plane,
|
|
17
|
+
* which decides when, and the team auth-server (`demos/auth-server`), which mints and
|
|
18
|
+
* deletes. Three platform-gated routes on the issuer, each addressed by the issuer's OWN
|
|
19
|
+
* scope and refused unless that scope is the named tenant's instance:
|
|
20
|
+
*
|
|
21
|
+
* - `POST /internal/preview-client/check` — does the parent sign in HERE? Read-only.
|
|
22
|
+
* - `POST /internal/preview-client` — mint the preview's client (re-checks first).
|
|
23
|
+
* - `DELETE /internal/preview-client` — delete the preview's clients, and only those.
|
|
24
|
+
*
|
|
25
|
+
* ## "The parent signs in here" is a platform fact, not a URI match
|
|
26
|
+
*
|
|
27
|
+
* Dynamic client registration is open at a team auth-server, and a callback URL is public.
|
|
28
|
+
* So "some client redirects to the parent's callback" proves nothing by itself: anybody can
|
|
29
|
+
* register one. The issuer claims a parent only when it holds a binding for the parent
|
|
30
|
+
* scope that ONLY the platform writes — a `place_app` row (#1670) or an `oauth_resource`
|
|
31
|
+
* row marked for that scope (#1619), both delivered by the dashboard through the
|
|
32
|
+
* platform-gated `/internal/configure` — AND an enabled client whose redirect URIs contain
|
|
33
|
+
* one of the parent's callbacks. The control plane asks every auth-server of the tenant and
|
|
34
|
+
* mints only where exactly one claims.
|
|
35
|
+
*
|
|
36
|
+
* ## Deletion is by tag, and by generation
|
|
37
|
+
*
|
|
38
|
+
* Every client minted here is recorded in the issuer's own `preview_client` table with the
|
|
39
|
+
* preview scope it belongs to and a generation the issuer assigns (monotonic per issuer, so
|
|
40
|
+
* the order is the issuer's own). A delete selects from that table and nothing else, so no
|
|
41
|
+
* delete can reach a client the platform did not mint for that preview — prod's included.
|
|
42
|
+
* A delete that keeps one client removes only the tagged clients OLDER than it, and says
|
|
43
|
+
* whether a newer one exists (`superseded`) or the kept one is gone (`kept: false`).
|
|
44
|
+
*/
|
|
45
|
+
/** Where a vertical's OIDC relying party receives the issuer's redirect. */
|
|
46
|
+
export const OIDC_CALLBACK_PATH = '/api/auth/callback';
|
|
47
|
+
/** The callback a relying party at `hostname` registers — exact-match, as issuers compare it. */
|
|
48
|
+
export function oidcCallbackUrl(hostname) {
|
|
49
|
+
return `https://${hostname}${OIDC_CALLBACK_PATH}`;
|
|
50
|
+
}
|
|
51
|
+
/** The issuer-side path of all three verbs (the check hangs off it as `/check`). */
|
|
52
|
+
export const PREVIEW_CLIENT_PATH = '/internal/preview-client';
|
|
53
|
+
/**
|
|
54
|
+
* An absolute `https:` URL with no fragment and no credentials — and nothing else. No
|
|
55
|
+
* loopback exception: both ends of this protocol are hosted apps, a preview always has an
|
|
56
|
+
* https `--<tag>` hostname and so does the app it forks, and previews do not exist in local
|
|
57
|
+
* dev at all. A loopback redirect registered at a hosted issuer would be a client whose
|
|
58
|
+
* code any process on the signing-in machine could receive, so it is refused outright
|
|
59
|
+
* rather than allowed "for local issuers".
|
|
60
|
+
*/
|
|
61
|
+
const redirectUri = z
|
|
62
|
+
.string()
|
|
63
|
+
.max(2048)
|
|
64
|
+
.refine((raw) => {
|
|
65
|
+
try {
|
|
66
|
+
const u = new URL(raw);
|
|
67
|
+
return u.protocol === 'https:' && !u.hash && !u.username && !u.password;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
72
|
+
}, 'an absolute https URL with no fragment or credentials');
|
|
73
|
+
/** Every hostname the parent answers on, as the callback each would have registered. */
|
|
74
|
+
const parentRedirectUris = z.array(redirectUri).min(1).max(32);
|
|
75
|
+
/** The issuer the call addresses: its own scope, and the tenant that scope must belong to. */
|
|
76
|
+
const issuerAddress = {
|
|
77
|
+
tenantId,
|
|
78
|
+
scopeId,
|
|
79
|
+
};
|
|
80
|
+
/** `POST /internal/preview-client/check` — read-only: does the parent sign in here? */
|
|
81
|
+
export const previewClientCheck = z.object({
|
|
82
|
+
...issuerAddress,
|
|
83
|
+
parentScopeId: scopeId,
|
|
84
|
+
parentRedirectUris,
|
|
85
|
+
});
|
|
86
|
+
/** The check's answer. */
|
|
87
|
+
export const previewClientClaim = z.object({ claimed: z.boolean() });
|
|
88
|
+
/**
|
|
89
|
+
* `POST /internal/preview-client` — mint the preview's client. The issuer re-runs the check
|
|
90
|
+
* first and refuses (409) a parent it does not claim. The client it registers carries
|
|
91
|
+
* EXACTLY `redirectUri` and `postLogoutRedirectUri`; either one equal to a parent callback
|
|
92
|
+
* is refused, so a preview client can never stand in for prod's.
|
|
93
|
+
*/
|
|
94
|
+
export const previewClientMint = previewClientCheck.extend({
|
|
95
|
+
previewScopeId: scopeId,
|
|
96
|
+
redirectUri,
|
|
97
|
+
postLogoutRedirectUri: redirectUri,
|
|
98
|
+
clientName: z.string().trim().min(1).max(200),
|
|
99
|
+
});
|
|
100
|
+
/** What a mint answers — ONCE. The issuer stores the secret hashed, and nobody stores it here. */
|
|
101
|
+
export const mintedPreviewClient = z.object({
|
|
102
|
+
clientId: z.string().min(1),
|
|
103
|
+
clientSecret: z.string().min(1),
|
|
104
|
+
generation: z.number().int().positive(),
|
|
105
|
+
});
|
|
106
|
+
/**
|
|
107
|
+
* `DELETE /internal/preview-client` — delete a preview's clients. With neither option, every
|
|
108
|
+
* client minted for the preview (the reap). With `keep`, the ones minted BEFORE it (a push
|
|
109
|
+
* that has just delivered its own). With `only`, that one client if it is the preview's (a
|
|
110
|
+
* mint whose delivery failed cleaning up after itself).
|
|
111
|
+
*/
|
|
112
|
+
export const previewClientRetire = z
|
|
113
|
+
.object({
|
|
114
|
+
...issuerAddress,
|
|
115
|
+
previewScopeId: scopeId,
|
|
116
|
+
keep: z.string().min(1).optional(),
|
|
117
|
+
only: z.string().min(1).optional(),
|
|
118
|
+
})
|
|
119
|
+
.refine((b) => !(b.keep && b.only), 'pass keep or only, not both');
|
|
120
|
+
/**
|
|
121
|
+
* What a delete did. `kept` is null without `keep`; otherwise whether the kept client still
|
|
122
|
+
* exists. `superseded` is true when a client NEWER than the kept one exists for the preview:
|
|
123
|
+
* another push minted after this one, and it — not this one — owns what happens next.
|
|
124
|
+
*/
|
|
125
|
+
export const retiredPreviewClients = z.object({
|
|
126
|
+
deleted: z.array(z.string()),
|
|
127
|
+
kept: z.boolean().nullable(),
|
|
128
|
+
superseded: z.boolean(),
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* What `preview create` reports about the preview's login — the `auth` field of its answer.
|
|
132
|
+
* Never a secret: the client id and issuer, and the callback, are all the output carries.
|
|
133
|
+
*
|
|
134
|
+
* - `wired` — a team auth-server claimed the parent; the preview has its own client there.
|
|
135
|
+
* - `unregistered` — no team auth-server claimed the parent: an external issuer, a builtin
|
|
136
|
+
* login, or a team install whose binding the dashboard has not delivered yet.
|
|
137
|
+
* - `ambiguous` — more than one claimed, so the platform chose none.
|
|
138
|
+
* - `unknown` — some auth-server could not be asked (it predates this, or did not answer),
|
|
139
|
+
* and none that could claimed the parent.
|
|
140
|
+
* - `superseded` — a newer push owns the preview; this push delivered nothing to it.
|
|
141
|
+
* - `not-applicable` — a clean-room preview has no parent to sign in like.
|
|
142
|
+
*/
|
|
143
|
+
export const previewAuthStatus = z.enum(['wired', 'unregistered', 'ambiguous', 'unknown', 'superseded', 'not-applicable']);
|
|
144
|
+
export const previewAuth = z.object({
|
|
145
|
+
status: previewAuthStatus,
|
|
146
|
+
/** The preview's callback — what an external issuer would need registered. */
|
|
147
|
+
callbackUrl: z.string().nullable(),
|
|
148
|
+
/** `wired` only. */
|
|
149
|
+
issuer: z.string().optional(),
|
|
150
|
+
issuerScopeId: scopeId.optional(),
|
|
151
|
+
clientId: z.string().optional(),
|
|
152
|
+
/** `ambiguous` / `unknown`: the auth-servers involved, and for `unknown` what went wrong. */
|
|
153
|
+
issuers: z.array(z.object({ issuerScopeId: scopeId, problem: z.string().optional() })).optional(),
|
|
154
|
+
/** One or more lines, written for the person reading `preview create`'s output. */
|
|
155
|
+
note: z.string(),
|
|
156
|
+
});
|
|
157
|
+
//# sourceMappingURL=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ticalVersion: z.ZodObject<{
|
|
|
188
188
|
}>>;
|
|
189
189
|
}, z.core.$strip>>>;
|
|
190
190
|
outbound: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
191
|
+
calls: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
191
192
|
createdAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
|
|
192
193
|
}, z.core.$strip>;
|
|
193
194
|
export type VerticalVersion = z.infer<typeof verticalVersion>;
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;GAUG;AAEH,yFAAyF;AACzF,eAAO,MAAM,cAAc;;;;EAAoC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuHnB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AAGH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;EAA8C,CAAC;AAC3E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO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;;;;;GAOG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;iBAmBxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6B1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;iBAoB5B,CAAC;AACL,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW;;EAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,eAAe;;;;;;;;iBAe1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAS9B,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/registry.js
CHANGED
|
@@ -232,6 +232,13 @@ export const verticalVersion = z.object({
|
|
|
232
232
|
* worker meters but does not enforce it.
|
|
233
233
|
*/
|
|
234
234
|
outbound: z.array(z.string()).nullish(),
|
|
235
|
+
/**
|
|
236
|
+
* The version's DECLARED outgoing PEER calls (#1706) — `substrat.calls`, lifted from its
|
|
237
|
+
* stored manifest exactly as `outbound` is, and null on the same terms (a version pushed
|
|
238
|
+
* before the declaration existed, which the platform reads as unenforced). The drain reads
|
|
239
|
+
* it to judge an asynchronous peer call, so the same rule holds on both legs.
|
|
240
|
+
*/
|
|
241
|
+
calls: z.array(z.string()).nullish(),
|
|
235
242
|
createdAt: instant,
|
|
236
243
|
});
|
|
237
244
|
export const publishVersionInput = verticalVersion
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;;;;;GAUG;AAEH,yFAAyF;AACzF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;AAGhE,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE,YAAY,EAAE,iFAAiF;IACrG,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,cAAc;IACtB;;;;;OAKG;IACH,WAAW,EAAE,QAAQ,CAAC,QAAQ,EAAE;IAChC;;;;;;OAMG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IACvC;;;;;;OAMG;IACH,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CA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AC,CAAC,MAAM,CAAC;IAC1C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,6BAA6B;IACpD,YAAY;IACZ,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,gFAAgF;IAChF,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,EAAE,EAAE,OAAO;CACZ,CAAC,CAAC;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC"}
|
package/dist/routing.d.ts
CHANGED
|
@@ -179,6 +179,7 @@ export declare const routeTarget: z.ZodObject<{
|
|
|
179
179
|
eu: "eu";
|
|
180
180
|
}>>;
|
|
181
181
|
outboundHosts: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
182
|
+
calls: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
182
183
|
}, z.core.$strip>;
|
|
183
184
|
export type RouteTarget = z.infer<typeof routeTarget>;
|
|
184
185
|
//# sourceMappingURL=routing.d.ts.map
|
package/dist/routing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;A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;;;;GAaG;AACH,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc;;GAA4B,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc;;;;;EAAuD,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS;;;;;;;;iBAQpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,aAA2C,CAAC;AAEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB;;;;;;;;;iBAO5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;iBAgCtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/routing.js
CHANGED
|
@@ -183,5 +183,14 @@ export const routeTarget = z.object({
|
|
|
183
183
|
* Defaulted so a resolver that predates this field still parses.
|
|
184
184
|
*/
|
|
185
185
|
outboundHosts: z.array(z.string()).nullable().default(null),
|
|
186
|
+
/**
|
|
187
|
+
* The declared outgoing PEER calls of the code this dispatch will run (#1706) — the
|
|
188
|
+
* `calls` list from the same manifest `outboundHosts` comes from, joined in the same
|
|
189
|
+
* directory read. The router hands it to the egress worker as a dispatch parameter and
|
|
190
|
+
* judges a peer call against it. `null` = a version pushed before the declaration existed,
|
|
191
|
+
* which is unenforced (as a pre-#303 `outbound` is). Defaulted, so a resolver that predates
|
|
192
|
+
* this field still parses.
|
|
193
|
+
*/
|
|
194
|
+
calls: z.array(verticalSlug).nullable().default(null),
|
|
186
195
|
});
|
|
187
196
|
//# sourceMappingURL=routing.js.map
|
package/dist/routing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.js","sourceRoot":"","sources":["../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAErD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;CACjC,CAAC,CAAC;AAGH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAGxD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,cAAc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