@cat-factory/contracts 0.246.0 → 0.248.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.d.ts +1 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/execution.d.ts +8 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/judge.d.ts +31 -0
- package/dist/judge.d.ts.map +1 -1
- package/dist/judge.js +25 -0
- package/dist/judge.js.map +1 -1
- package/dist/pr-report.d.ts +27 -0
- package/dist/pr-report.d.ts.map +1 -1
- package/dist/pr-report.js +7 -1
- package/dist/pr-report.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +8 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +96 -14
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/auth.js +46 -8
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/bug-hunt.d.ts +8 -0
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +32 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +4 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +20 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/judge.d.ts +8 -0
- package/dist/routes/judge.d.ts.map +1 -1
- package/dist/routes/public-evidence.d.ts +4 -0
- package/dist/routes/public-evidence.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +12 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +8 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +4 -0
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/sso.d.ts +70 -0
- package/dist/sso.d.ts.map +1 -0
- package/dist/sso.js +95 -0
- package/dist/sso.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"human-test.d.ts","sourceRoot":"","sources":["../../src/routes/human-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAc3E,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"human-test.d.ts","sourceRoot":"","sources":["../../src/routes/human-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAc3E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtC,CAAA"}
|
package/dist/routes/judge.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export declare const getJudgeDecisionContract: {
|
|
|
50
50
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
51
51
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
52
52
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
53
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
54
|
+
readonly requested: v.StringSchema<undefined>;
|
|
55
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
56
|
+
}, undefined>, undefined>, undefined>;
|
|
53
57
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
54
58
|
readonly round: v.NumberSchema<undefined>;
|
|
55
59
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -130,6 +134,10 @@ export declare const resolveJudgeContract: {
|
|
|
130
134
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
131
135
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
132
136
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
137
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
138
|
+
readonly requested: v.StringSchema<undefined>;
|
|
139
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
140
|
+
}, undefined>, undefined>, undefined>;
|
|
133
141
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
134
142
|
readonly round: v.NumberSchema<undefined>;
|
|
135
143
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"judge.d.ts","sourceRoot":"","sources":["../../src/routes/judge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"judge.d.ts","sourceRoot":"","sources":["../../src/routes/judge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/B,CAAA"}
|
|
@@ -233,6 +233,10 @@ export declare const getPublicRunReportContract: {
|
|
|
233
233
|
readonly bounces: import("valibot").NumberSchema<undefined>;
|
|
234
234
|
readonly maxBounces: import("valibot").NumberSchema<undefined>;
|
|
235
235
|
readonly model: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
236
|
+
readonly modelPin: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
237
|
+
readonly requested: import("valibot").StringSchema<undefined>;
|
|
238
|
+
readonly status: import("valibot").PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
239
|
+
}, undefined>, undefined>, undefined>;
|
|
236
240
|
}, undefined>, undefined>;
|
|
237
241
|
}, undefined>;
|
|
238
242
|
readonly observability: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-evidence.d.ts","sourceRoot":"","sources":["../../src/routes/public-evidence.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"public-evidence.d.ts","sourceRoot":"","sources":["../../src/routes/public-evidence.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,oGAAoG;AACpG,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzC,CAAA"}
|
|
@@ -451,6 +451,10 @@ export declare const approveVisualConfirmContract: {
|
|
|
451
451
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
452
452
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
453
453
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
454
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
455
|
+
readonly requested: v.StringSchema<undefined>;
|
|
456
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
457
|
+
}, undefined>, undefined>, undefined>;
|
|
454
458
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
455
459
|
readonly round: v.NumberSchema<undefined>;
|
|
456
460
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -1534,6 +1538,10 @@ export declare const requestVisualConfirmFixContract: {
|
|
|
1534
1538
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
1535
1539
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
1536
1540
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1541
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1542
|
+
readonly requested: v.StringSchema<undefined>;
|
|
1543
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
1544
|
+
}, undefined>, undefined>, undefined>;
|
|
1537
1545
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1538
1546
|
readonly round: v.NumberSchema<undefined>;
|
|
1539
1547
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -2615,6 +2623,10 @@ export declare const recaptureVisualConfirmContract: {
|
|
|
2615
2623
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
2616
2624
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
2617
2625
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2626
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2627
|
+
readonly requested: v.StringSchema<undefined>;
|
|
2628
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
2629
|
+
}, undefined>, undefined>, undefined>;
|
|
2618
2630
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2619
2631
|
readonly round: v.NumberSchema<undefined>;
|
|
2620
2632
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-confirm.d.ts","sourceRoot":"","sources":["../../src/routes/visual-confirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"visual-confirm.d.ts","sourceRoot":"","sources":["../../src/routes/visual-confirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMzC,CAAA"}
|
|
@@ -962,6 +962,10 @@ export declare const createWorkspaceContract: {
|
|
|
962
962
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
963
963
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
964
964
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
965
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
966
|
+
readonly requested: v.StringSchema<undefined>;
|
|
967
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
968
|
+
}, undefined>, undefined>, undefined>;
|
|
965
969
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
966
970
|
readonly round: v.NumberSchema<undefined>;
|
|
967
971
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -4343,6 +4347,10 @@ export declare const getWorkspaceContract: {
|
|
|
4343
4347
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
4344
4348
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
4345
4349
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
4350
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
4351
|
+
readonly requested: v.StringSchema<undefined>;
|
|
4352
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
4353
|
+
}, undefined>, undefined>, undefined>;
|
|
4346
4354
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4347
4355
|
readonly round: v.NumberSchema<undefined>;
|
|
4348
4356
|
readonly at: v.NumberSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;aAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAI7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;aAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAI7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA"}
|
package/dist/snapshot.d.ts
CHANGED
|
@@ -900,6 +900,10 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
900
900
|
readonly bounces: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
901
901
|
readonly maxBounces: v.OptionalSchema<v.NumberSchema<undefined>, 1>;
|
|
902
902
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
903
|
+
readonly modelPin: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
904
|
+
readonly requested: v.StringSchema<undefined>;
|
|
905
|
+
readonly status: v.PicklistSchema<["applied", "overridden", "unavailable"], undefined>;
|
|
906
|
+
}, undefined>, undefined>, undefined>;
|
|
903
907
|
readonly rounds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
904
908
|
readonly round: v.NumberSchema<undefined>;
|
|
905
909
|
readonly at: v.NumberSchema<undefined>;
|
package/dist/snapshot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyC5B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;aAGhC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyC5B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;aAGhC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;IAEH;;;;;;;;OAQG;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;;;OASG;;;;;;;;IAEH;;;;;;;;OAQG;;IAEH;;;;;;;;;OASG;;;;QAvOH;;;;;WAKG;;;;;;QALH;;;;;WAKG;;;IAqOH;;;;;;;OAOG;;IAEH;;;;;;;;;;;;;;;OAeG;;;;;IAEH;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;OAKG;;;;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/sso.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/**
|
|
3
|
+
* The SSO protocols the adapter speaks.
|
|
4
|
+
*
|
|
5
|
+
* `oidc` covers every provider that exposes an OpenID Connect discovery document, which is all
|
|
6
|
+
* of the hosted directories and a Shibboleth IdP with the OIDC OP plugin installed. A classic
|
|
7
|
+
* SAML-2.0-only Shibboleth deployment is NOT served by it and is deliberately absent rather
|
|
8
|
+
* than approximated: see `docs/initiatives/enterprise-sso-oidc.md`. Adding `saml` here is what
|
|
9
|
+
* that slice extends, and every switch over this union fails to compile until it is handled.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ssoProtocolSchema: v.PicklistSchema<["oidc"], undefined>;
|
|
12
|
+
export type SsoProtocol = v.InferOutput<typeof ssoProtocolSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* What `GET /auth/config` reports about the configured provider, so the login screen can render
|
|
15
|
+
* the operator's own wording ("Sign in with Acme SSO") instead of a generic button. Present only
|
|
16
|
+
* when SSO is configured; `providers.sso` is the boolean the SPA gates on.
|
|
17
|
+
*/
|
|
18
|
+
export declare const ssoConfigViewSchema: v.ObjectSchema<{
|
|
19
|
+
/** Operator-supplied button label (`AUTH_SSO_LABEL`), never localized — it names their IdP. */
|
|
20
|
+
readonly label: v.StringSchema<undefined>;
|
|
21
|
+
readonly protocol: v.PicklistSchema<["oidc"], undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
export type SsoConfigView = v.InferOutput<typeof ssoConfigViewSchema>;
|
|
24
|
+
/**
|
|
25
|
+
* Why an SSO sign-in did not produce a session. Each member is a DIFFERENT operator or user
|
|
26
|
+
* action, which is the whole reason the vocabulary is not one `sso_failed`:
|
|
27
|
+
*
|
|
28
|
+
* - `state_invalid` — the round-trip's signed state / browser-binding cookie didn't verify.
|
|
29
|
+
* A stale bookmark, a cookie-less browser, or a genuinely forged callback. Retrying works.
|
|
30
|
+
* - `provider_denied` — the IdP itself refused (`?error=access_denied` …): the user cancelled,
|
|
31
|
+
* or the app is not assigned to them. Nothing on this side to fix.
|
|
32
|
+
* - `exchange_failed` — the code-for-token call failed. A wrong client secret or a
|
|
33
|
+
* `redirect_uri` the IdP does not have registered: an OPERATOR fault, not the user's.
|
|
34
|
+
* - `token_invalid` — the ID token failed verification (signature, issuer, audience, nonce or
|
|
35
|
+
* expiry). A misconfigured client id, a clock skew, or an attack.
|
|
36
|
+
* - `subject_missing` — the token verified but carries no `sub`, so there is no stable identity
|
|
37
|
+
* to key a user on. A non-conforming provider.
|
|
38
|
+
* - `group_required` — the user authenticated but is in none of `AUTH_SSO_REQUIRED_GROUPS`.
|
|
39
|
+
* The user needs a directory group, and the message must say so rather than read as a bug.
|
|
40
|
+
* - `domain_not_allowed` — their verified email's domain is not on
|
|
41
|
+
* `AUTH_SSO_ALLOWED_EMAIL_DOMAINS`. Distinct from `group_required` because the remedy differs.
|
|
42
|
+
* - `email_required` — an email-domain allowlist is configured but the provider released no
|
|
43
|
+
* verified email to check it against, so admission cannot be decided. An operator must
|
|
44
|
+
* release the `email` claim (or drop the allowlist); admitting instead would silently void it.
|
|
45
|
+
* - `provider_unreachable` — the IdP (or the network to it) did not answer while the callback was
|
|
46
|
+
* being settled: its discovery document or key set could not be read. An OUTAGE, distinct from
|
|
47
|
+
* `exchange_failed` because the remedy is not the deployment's own client credentials, and
|
|
48
|
+
* distinct from `token_invalid` because nothing was wrong with the token. Retrying works once
|
|
49
|
+
* the provider does.
|
|
50
|
+
*/
|
|
51
|
+
export declare const ssoErrorReasonSchema: v.PicklistSchema<["state_invalid", "provider_denied", "exchange_failed", "token_invalid", "subject_missing", "group_required", "domain_not_allowed", "email_required", "provider_unreachable"], undefined>;
|
|
52
|
+
export type SsoErrorReason = v.InferOutput<typeof ssoErrorReasonSchema>;
|
|
53
|
+
/** Every reason, for the SPA's exhaustive copy `Record` and the coverage test over it. */
|
|
54
|
+
export declare const SSO_ERROR_REASONS: ["state_invalid", "provider_denied", "exchange_failed", "token_invalid", "subject_missing", "group_required", "domain_not_allowed", "email_required", "provider_unreachable"];
|
|
55
|
+
/**
|
|
56
|
+
* The URL-fragment key a failed SSO round-trip lands under, the sibling of the `token=` key a
|
|
57
|
+
* successful one uses. A FRAGMENT (not a query) for the same reason the token is: it never
|
|
58
|
+
* reaches a server log or a `Referer` header, and the reason names the deployment's admission
|
|
59
|
+
* rules. Shared so the redirect builder and the SPA reader cannot drift.
|
|
60
|
+
*/
|
|
61
|
+
export declare const SSO_ERROR_FRAGMENT_KEY = "sso_error";
|
|
62
|
+
/**
|
|
63
|
+
* Read a reason off an untrusted string, or null when it names none.
|
|
64
|
+
*
|
|
65
|
+
* Total by construction (derived from the picklist's own options), so a member added above is
|
|
66
|
+
* parseable with no edit here — and a value from a NEWER backend than the SPA reads as "unknown
|
|
67
|
+
* failure" rather than being rendered as the literal wire token.
|
|
68
|
+
*/
|
|
69
|
+
export declare function parseSsoErrorReason(value: string | null | undefined): SsoErrorReason | null;
|
|
70
|
+
//# sourceMappingURL=sso.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso.d.ts","sourceRoot":"","sources":["../src/sso.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,uCAAuB,CAAA;AACrD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAC9B,+FAA+F;;;aAG/F,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,oBAAoB,4MAU/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,0FAA0F;AAC1F,eAAO,MAAM,iBAAiB,+KAA+B,CAAA;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,cAAc,CAAA;AAEjD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc,GAAG,IAAI,CAG3F"}
|
package/dist/sso.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Enterprise SSO: the wire vocabulary the backend and the SPA must agree about.
|
|
4
|
+
//
|
|
5
|
+
// Sign-in through a deployment's OWN identity provider (Okta, Entra ID, Auth0, Keycloak,
|
|
6
|
+
// PingFederate, OneLogin, JumpCloud, a Shibboleth IdP running the OIDC OP plugin) rather than
|
|
7
|
+
// through a consumer provider. One generic adapter serves all of them: a discovery document
|
|
8
|
+
// plus a client id/secret is the entire configuration, so there is nothing per-vendor to name
|
|
9
|
+
// here — only the PROTOCOL, which is what a second adapter would extend.
|
|
10
|
+
//
|
|
11
|
+
// A failed SSO round-trip lands the browser back on the SPA with a machine-readable reason in
|
|
12
|
+
// the URL fragment rather than a JSON envelope the user would have to read raw. The backend
|
|
13
|
+
// does not localize prose (CLAUDE.md's i18n rule), so the vocabulary is closed here and the SPA
|
|
14
|
+
// maps each member to translated copy through an exhaustive `Record`.
|
|
15
|
+
// ---------------------------------------------------------------------------
|
|
16
|
+
/**
|
|
17
|
+
* The SSO protocols the adapter speaks.
|
|
18
|
+
*
|
|
19
|
+
* `oidc` covers every provider that exposes an OpenID Connect discovery document, which is all
|
|
20
|
+
* of the hosted directories and a Shibboleth IdP with the OIDC OP plugin installed. A classic
|
|
21
|
+
* SAML-2.0-only Shibboleth deployment is NOT served by it and is deliberately absent rather
|
|
22
|
+
* than approximated: see `docs/initiatives/enterprise-sso-oidc.md`. Adding `saml` here is what
|
|
23
|
+
* that slice extends, and every switch over this union fails to compile until it is handled.
|
|
24
|
+
*/
|
|
25
|
+
export const ssoProtocolSchema = v.picklist(['oidc']);
|
|
26
|
+
/**
|
|
27
|
+
* What `GET /auth/config` reports about the configured provider, so the login screen can render
|
|
28
|
+
* the operator's own wording ("Sign in with Acme SSO") instead of a generic button. Present only
|
|
29
|
+
* when SSO is configured; `providers.sso` is the boolean the SPA gates on.
|
|
30
|
+
*/
|
|
31
|
+
export const ssoConfigViewSchema = v.object({
|
|
32
|
+
/** Operator-supplied button label (`AUTH_SSO_LABEL`), never localized — it names their IdP. */
|
|
33
|
+
label: v.string(),
|
|
34
|
+
protocol: ssoProtocolSchema,
|
|
35
|
+
});
|
|
36
|
+
/**
|
|
37
|
+
* Why an SSO sign-in did not produce a session. Each member is a DIFFERENT operator or user
|
|
38
|
+
* action, which is the whole reason the vocabulary is not one `sso_failed`:
|
|
39
|
+
*
|
|
40
|
+
* - `state_invalid` — the round-trip's signed state / browser-binding cookie didn't verify.
|
|
41
|
+
* A stale bookmark, a cookie-less browser, or a genuinely forged callback. Retrying works.
|
|
42
|
+
* - `provider_denied` — the IdP itself refused (`?error=access_denied` …): the user cancelled,
|
|
43
|
+
* or the app is not assigned to them. Nothing on this side to fix.
|
|
44
|
+
* - `exchange_failed` — the code-for-token call failed. A wrong client secret or a
|
|
45
|
+
* `redirect_uri` the IdP does not have registered: an OPERATOR fault, not the user's.
|
|
46
|
+
* - `token_invalid` — the ID token failed verification (signature, issuer, audience, nonce or
|
|
47
|
+
* expiry). A misconfigured client id, a clock skew, or an attack.
|
|
48
|
+
* - `subject_missing` — the token verified but carries no `sub`, so there is no stable identity
|
|
49
|
+
* to key a user on. A non-conforming provider.
|
|
50
|
+
* - `group_required` — the user authenticated but is in none of `AUTH_SSO_REQUIRED_GROUPS`.
|
|
51
|
+
* The user needs a directory group, and the message must say so rather than read as a bug.
|
|
52
|
+
* - `domain_not_allowed` — their verified email's domain is not on
|
|
53
|
+
* `AUTH_SSO_ALLOWED_EMAIL_DOMAINS`. Distinct from `group_required` because the remedy differs.
|
|
54
|
+
* - `email_required` — an email-domain allowlist is configured but the provider released no
|
|
55
|
+
* verified email to check it against, so admission cannot be decided. An operator must
|
|
56
|
+
* release the `email` claim (or drop the allowlist); admitting instead would silently void it.
|
|
57
|
+
* - `provider_unreachable` — the IdP (or the network to it) did not answer while the callback was
|
|
58
|
+
* being settled: its discovery document or key set could not be read. An OUTAGE, distinct from
|
|
59
|
+
* `exchange_failed` because the remedy is not the deployment's own client credentials, and
|
|
60
|
+
* distinct from `token_invalid` because nothing was wrong with the token. Retrying works once
|
|
61
|
+
* the provider does.
|
|
62
|
+
*/
|
|
63
|
+
export const ssoErrorReasonSchema = v.picklist([
|
|
64
|
+
'state_invalid',
|
|
65
|
+
'provider_denied',
|
|
66
|
+
'exchange_failed',
|
|
67
|
+
'token_invalid',
|
|
68
|
+
'subject_missing',
|
|
69
|
+
'group_required',
|
|
70
|
+
'domain_not_allowed',
|
|
71
|
+
'email_required',
|
|
72
|
+
'provider_unreachable',
|
|
73
|
+
]);
|
|
74
|
+
/** Every reason, for the SPA's exhaustive copy `Record` and the coverage test over it. */
|
|
75
|
+
export const SSO_ERROR_REASONS = ssoErrorReasonSchema.options;
|
|
76
|
+
/**
|
|
77
|
+
* The URL-fragment key a failed SSO round-trip lands under, the sibling of the `token=` key a
|
|
78
|
+
* successful one uses. A FRAGMENT (not a query) for the same reason the token is: it never
|
|
79
|
+
* reaches a server log or a `Referer` header, and the reason names the deployment's admission
|
|
80
|
+
* rules. Shared so the redirect builder and the SPA reader cannot drift.
|
|
81
|
+
*/
|
|
82
|
+
export const SSO_ERROR_FRAGMENT_KEY = 'sso_error';
|
|
83
|
+
/**
|
|
84
|
+
* Read a reason off an untrusted string, or null when it names none.
|
|
85
|
+
*
|
|
86
|
+
* Total by construction (derived from the picklist's own options), so a member added above is
|
|
87
|
+
* parseable with no edit here — and a value from a NEWER backend than the SPA reads as "unknown
|
|
88
|
+
* failure" rather than being rendered as the literal wire token.
|
|
89
|
+
*/
|
|
90
|
+
export function parseSsoErrorReason(value) {
|
|
91
|
+
if (!value)
|
|
92
|
+
return null;
|
|
93
|
+
return SSO_ERROR_REASONS.includes(value) ? value : null;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=sso.js.map
|
package/dist/sso.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sso.js","sourceRoot":"","sources":["../src/sso.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,gFAAgF;AAChF,EAAE;AACF,yFAAyF;AACzF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