@indorania/contracts 0.1.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/README.md +117 -0
- package/dist/common.d.ts +144 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +162 -0
- package/dist/common.js.map +1 -0
- package/dist/constitution/index.d.ts +9 -0
- package/dist/constitution/index.d.ts.map +1 -0
- package/dist/constitution/index.js +9 -0
- package/dist/constitution/index.js.map +1 -0
- package/dist/constitution/openapi.d.ts +23 -0
- package/dist/constitution/openapi.d.ts.map +1 -0
- package/dist/constitution/openapi.js +375 -0
- package/dist/constitution/openapi.js.map +1 -0
- package/dist/constitution/report.d.ts +63 -0
- package/dist/constitution/report.d.ts.map +1 -0
- package/dist/constitution/report.js +73 -0
- package/dist/constitution/report.js.map +1 -0
- package/dist/constitution/tables.d.ts +53 -0
- package/dist/constitution/tables.d.ts.map +1 -0
- package/dist/constitution/tables.js +96 -0
- package/dist/constitution/tables.js.map +1 -0
- package/dist/constitution/words.d.ts +39 -0
- package/dist/constitution/words.d.ts.map +1 -0
- package/dist/constitution/words.js +126 -0
- package/dist/constitution/words.js.map +1 -0
- package/dist/document.d.ts +12 -0
- package/dist/document.d.ts.map +1 -0
- package/dist/document.js +106 -0
- package/dist/document.js.map +1 -0
- package/dist/domain-error.d.ts +14 -0
- package/dist/domain-error.d.ts.map +1 -0
- package/dist/domain-error.js +23 -0
- package/dist/domain-error.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/op.d.ts +92 -0
- package/dist/op.d.ts.map +1 -0
- package/dist/op.js +113 -0
- package/dist/op.js.map +1 -0
- package/dist/routes/asks.d.ts +77 -0
- package/dist/routes/asks.d.ts.map +1 -0
- package/dist/routes/asks.js +182 -0
- package/dist/routes/asks.js.map +1 -0
- package/dist/routes/backup.d.ts +12 -0
- package/dist/routes/backup.d.ts.map +1 -0
- package/dist/routes/backup.js +63 -0
- package/dist/routes/backup.js.map +1 -0
- package/dist/routes/capabilities.d.ts +67 -0
- package/dist/routes/capabilities.d.ts.map +1 -0
- package/dist/routes/capabilities.js +88 -0
- package/dist/routes/capabilities.js.map +1 -0
- package/dist/routes/entitlements.d.ts +137 -0
- package/dist/routes/entitlements.d.ts.map +1 -0
- package/dist/routes/entitlements.js +101 -0
- package/dist/routes/entitlements.js.map +1 -0
- package/dist/routes/guest.d.ts +57 -0
- package/dist/routes/guest.d.ts.map +1 -0
- package/dist/routes/guest.js +140 -0
- package/dist/routes/guest.js.map +1 -0
- package/dist/routes/integration.d.ts +187 -0
- package/dist/routes/integration.d.ts.map +1 -0
- package/dist/routes/integration.js +243 -0
- package/dist/routes/integration.js.map +1 -0
- package/dist/routes/meta.d.ts +50 -0
- package/dist/routes/meta.d.ts.map +1 -0
- package/dist/routes/meta.js +90 -0
- package/dist/routes/meta.js.map +1 -0
- package/dist/routes/organisations.d.ts +121 -0
- package/dist/routes/organisations.d.ts.map +1 -0
- package/dist/routes/organisations.js +175 -0
- package/dist/routes/organisations.js.map +1 -0
- package/dist/routes/presentations.d.ts +95 -0
- package/dist/routes/presentations.d.ts.map +1 -0
- package/dist/routes/presentations.js +121 -0
- package/dist/routes/presentations.js.map +1 -0
- package/dist/routes/sessions.d.ts +180 -0
- package/dist/routes/sessions.d.ts.map +1 -0
- package/dist/routes/sessions.js +240 -0
- package/dist/routes/sessions.js.map +1 -0
- package/dist/routes/standing.d.ts +24 -0
- package/dist/routes/standing.d.ts.map +1 -0
- package/dist/routes/standing.js +74 -0
- package/dist/routes/standing.js.map +1 -0
- package/dist/routes/thank-yous.d.ts +30 -0
- package/dist/routes/thank-yous.d.ts.map +1 -0
- package/dist/routes/thank-yous.js +139 -0
- package/dist/routes/thank-yous.js.map +1 -0
- package/dist/versions.d.ts +46 -0
- package/dist/versions.d.ts.map +1 -0
- package/dist/versions.js +54 -0
- package/dist/versions.js.map +1 -0
- package/dist/webhooks.d.ts +55 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +76 -0
- package/dist/webhooks.js.map +1 -0
- package/dist/zod.d.ts +3 -0
- package/dist/zod.d.ts.map +1 -0
- package/dist/zod.js +7 -0
- package/dist/zod.js.map +1 -0
- package/node/kernel-esm.mjs +27 -0
- package/node/register.mjs +5 -0
- package/openapi/2026-09-25.json +6959 -0
- package/openapi/versions.json +10 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/routes/capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAU,CAAC;AAEjE,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;IAClD,EAAE,EAAE,YAAY;IAChB,WAAW,EACT,uKAAuK;CAC1K,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC;KACvB,MAAM,EAAE;KACR,KAAK,CAAC,+CAA+C,CAAC;KACtD,IAAI,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,WAAW,EAAE,uDAAuD,EAAE,CAAC,CAAC;AAEnG,MAAM,KAAK,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;IAClE,OAAO,EAAE,6EAA6E;IACtF,MAAM,EA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AC,MAAM,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;QACpD,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,+BAA+B,EAAE,MAAM,EAAE,wBAAwB,EAAE,EAAE;KACvG,CAAC;IACF,SAAS,CAAC;QACR,WAAW,EAAE,YAAY;QACzB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sCAAsC;QAC5C,GAAG,EAAE,cAAc;QACnB,OAAO,EAAE,sEAAsE;QAC/E,IAAI,EAAE,CAAC,aAAa,CAAC;QACrB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACnD,IAAI,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;QACpC,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,kBAAkB,EAAE,EAAE;KAC/E,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { z } from "../zod.ts";
|
|
2
|
+
export declare const GRANT_SOURCES: readonly ["payment", "sponsorship", "trial", "simulation"];
|
|
3
|
+
export declare const BandId: z.ZodString;
|
|
4
|
+
export declare const Capacity: z.ZodObject<{
|
|
5
|
+
locations: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
books: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
seats: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
reports: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
exports: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
api: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
sso: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
counterparties: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export declare const EntitlementLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"book">;
|
|
17
|
+
capability: z.ZodEnum<{
|
|
18
|
+
visits: "visits";
|
|
19
|
+
money: "money";
|
|
20
|
+
work: "work";
|
|
21
|
+
}>;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"asks">;
|
|
24
|
+
}, z.core.$strict>], "kind">;
|
|
25
|
+
export declare const Grant: z.ZodObject<{
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
organisation: z.ZodString;
|
|
28
|
+
line: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"book">;
|
|
30
|
+
capability: z.ZodEnum<{
|
|
31
|
+
visits: "visits";
|
|
32
|
+
money: "money";
|
|
33
|
+
work: "work";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36
|
+
kind: z.ZodLiteral<"asks">;
|
|
37
|
+
}, z.core.$strict>], "kind">;
|
|
38
|
+
band: z.ZodString;
|
|
39
|
+
capacity: z.ZodObject<{
|
|
40
|
+
locations: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
books: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
seats: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
reports: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
exports: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
api: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
sso: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
counterparties: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
source: z.ZodEnum<{
|
|
51
|
+
payment: "payment";
|
|
52
|
+
sponsorship: "sponsorship";
|
|
53
|
+
trial: "trial";
|
|
54
|
+
simulation: "simulation";
|
|
55
|
+
}>;
|
|
56
|
+
validFromUnix: z.ZodNumber;
|
|
57
|
+
validUntilUnix: z.ZodNullable<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
export declare const GrantRequest: z.ZodObject<{
|
|
60
|
+
line: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"book">;
|
|
62
|
+
capability: z.ZodEnum<{
|
|
63
|
+
visits: "visits";
|
|
64
|
+
money: "money";
|
|
65
|
+
work: "work";
|
|
66
|
+
}>;
|
|
67
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"asks">;
|
|
69
|
+
}, z.core.$strict>], "kind">;
|
|
70
|
+
band: z.ZodString;
|
|
71
|
+
source: z.ZodEnum<{
|
|
72
|
+
trial: "trial";
|
|
73
|
+
simulation: "simulation";
|
|
74
|
+
}>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export declare const Entitlements: z.ZodObject<{
|
|
77
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
organisation: z.ZodString;
|
|
80
|
+
line: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"book">;
|
|
82
|
+
capability: z.ZodEnum<{
|
|
83
|
+
visits: "visits";
|
|
84
|
+
money: "money";
|
|
85
|
+
work: "work";
|
|
86
|
+
}>;
|
|
87
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
88
|
+
kind: z.ZodLiteral<"asks">;
|
|
89
|
+
}, z.core.$strict>], "kind">;
|
|
90
|
+
band: z.ZodString;
|
|
91
|
+
capacity: z.ZodObject<{
|
|
92
|
+
locations: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
books: z.ZodOptional<z.ZodNumber>;
|
|
94
|
+
seats: z.ZodOptional<z.ZodNumber>;
|
|
95
|
+
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
reports: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
exports: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
api: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
sso: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
counterparties: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
source: z.ZodEnum<{
|
|
103
|
+
payment: "payment";
|
|
104
|
+
sponsorship: "sponsorship";
|
|
105
|
+
trial: "trial";
|
|
106
|
+
simulation: "simulation";
|
|
107
|
+
}>;
|
|
108
|
+
validFromUnix: z.ZodNumber;
|
|
109
|
+
validUntilUnix: z.ZodNullable<z.ZodNumber>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
effective: z.ZodArray<z.ZodObject<{
|
|
112
|
+
line: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
113
|
+
kind: z.ZodLiteral<"book">;
|
|
114
|
+
capability: z.ZodEnum<{
|
|
115
|
+
visits: "visits";
|
|
116
|
+
money: "money";
|
|
117
|
+
work: "work";
|
|
118
|
+
}>;
|
|
119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"asks">;
|
|
121
|
+
}, z.core.$strict>], "kind">;
|
|
122
|
+
band: z.ZodString;
|
|
123
|
+
capacity: z.ZodObject<{
|
|
124
|
+
locations: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
books: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
seats: z.ZodOptional<z.ZodNumber>;
|
|
127
|
+
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
reports: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
exports: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
+
api: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
sso: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
counterparties: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export declare const entitlementOperations: import("../op.ts").Operation[];
|
|
137
|
+
//# sourceMappingURL=entitlements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../src/routes/entitlements.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAG9B,eAAO,MAAM,aAAa,4DAA6D,CAAC;AAExF,eAAO,MAAM,MAAM,aAGjB,CAAC;AAIH,eAAO,MAAM,QAAQ;;;;;;;;;;kBAgBjB,CAAC;AAEL,eAAO,MAAM,eAAe;;;;;;;;;4BAKM,CAAC;AAEnC,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYM,CAAC;AAEzB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;kBASM,CAAC;AAEhC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQM,CAAC;AAIhC,eAAO,MAAM,qBAAqB,gCA2BjC,CAAC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Entitlements: which capabilities an organisation runs, at which capacity. Granted by payment,
|
|
3
|
+
* sponsorship, trial or the simulation — and never read from billing, so a billing failure
|
|
4
|
+
* degrades gently and breaks nothing (d50(f)). Capacity only: never a meter, a counter or a price
|
|
5
|
+
* per record, confirmation, check, presentation, session or thank-you (d50(b)1).
|
|
6
|
+
*/
|
|
7
|
+
import { GrantId, OrganisationId, UnixTime } from "../common.js";
|
|
8
|
+
import { operation } from "../op.js";
|
|
9
|
+
import { z } from "../zod.js";
|
|
10
|
+
import { Capability } from "./capabilities.js";
|
|
11
|
+
export const GRANT_SOURCES = ["payment", "sponsorship", "trial", "simulation"];
|
|
12
|
+
export const BandId = z.string().regex(/^[a-z0-9][a-z0-9-]{0,31}$/).meta({
|
|
13
|
+
id: "BandId",
|
|
14
|
+
description: "A capacity band from the one published price list (d50(g)). Every organisation starts in `free`. The founder sets every band and number; this contract sets none.",
|
|
15
|
+
});
|
|
16
|
+
const Allowance = z.number().int().min(0);
|
|
17
|
+
export const Capacity = z
|
|
18
|
+
.object({
|
|
19
|
+
locations: Allowance.optional(),
|
|
20
|
+
books: Allowance.optional(),
|
|
21
|
+
seats: Allowance.optional().meta({ description: "Staff seats beyond those included." }),
|
|
22
|
+
retentionDays: Allowance.optional(),
|
|
23
|
+
reports: z.boolean().optional(),
|
|
24
|
+
exports: z.boolean().optional(),
|
|
25
|
+
api: z.boolean().optional().meta({ description: "API and integrations." }),
|
|
26
|
+
sso: z.boolean().optional(),
|
|
27
|
+
counterparties: Allowance.optional().meta({ description: "A programme of asks: the band of counterparties it reaches. A band, never a per-answer meter (d50(b)2)." }),
|
|
28
|
+
})
|
|
29
|
+
.strict()
|
|
30
|
+
.meta({
|
|
31
|
+
id: "Capacity",
|
|
32
|
+
description: "Capacity is what costs work (d50(b)1). Volume never is: records, confirmations, checks, presentations, sessions and thank-yous are the asset.",
|
|
33
|
+
});
|
|
34
|
+
export const EntitlementLine = z
|
|
35
|
+
.discriminatedUnion("kind", [
|
|
36
|
+
z.object({ kind: z.literal("book"), capability: Capability }).strict().meta({ description: "Running a book for one capability (d50(b)1)." }),
|
|
37
|
+
z.object({ kind: z.literal("asks") }).strict().meta({ description: "Running a programme of asks, paid by the verifier (d50(b)2)." }),
|
|
38
|
+
])
|
|
39
|
+
.meta({ id: "EntitlementLine" });
|
|
40
|
+
export const Grant = z
|
|
41
|
+
.object({
|
|
42
|
+
id: GrantId,
|
|
43
|
+
organisation: OrganisationId,
|
|
44
|
+
line: EntitlementLine,
|
|
45
|
+
band: BandId,
|
|
46
|
+
capacity: Capacity,
|
|
47
|
+
source: z.enum(GRANT_SOURCES),
|
|
48
|
+
validFromUnix: UnixTime,
|
|
49
|
+
validUntilUnix: UnixTime.nullable(),
|
|
50
|
+
})
|
|
51
|
+
.strict()
|
|
52
|
+
.meta({ id: "Grant" });
|
|
53
|
+
export const GrantRequest = z
|
|
54
|
+
.object({
|
|
55
|
+
line: EntitlementLine,
|
|
56
|
+
band: BandId,
|
|
57
|
+
source: z.enum(["trial", "simulation"]).meta({
|
|
58
|
+
description: "What a client may ask for. Payment grants come only from billing (PL-15, after incorporation); sponsorship grants come with their own resource.",
|
|
59
|
+
}),
|
|
60
|
+
})
|
|
61
|
+
.strict()
|
|
62
|
+
.meta({ id: "GrantRequest" });
|
|
63
|
+
export const Entitlements = z
|
|
64
|
+
.object({
|
|
65
|
+
grants: z.array(Grant),
|
|
66
|
+
effective: z.array(z.object({ line: EntitlementLine, band: BandId, capacity: Capacity }).strict()).meta({
|
|
67
|
+
description: "What the portal checks: one entry per line, the best current grant or the free band. Never payment status.",
|
|
68
|
+
}),
|
|
69
|
+
})
|
|
70
|
+
.strict()
|
|
71
|
+
.meta({ id: "Entitlements" });
|
|
72
|
+
const OrgParams = z.object({ orgId: OrganisationId }).strict();
|
|
73
|
+
export const entitlementOperations = [
|
|
74
|
+
operation({
|
|
75
|
+
operationId: "getEntitlements",
|
|
76
|
+
method: "get",
|
|
77
|
+
path: "/v1/organisations/{orgId}/entitlements",
|
|
78
|
+
tag: "entitlements",
|
|
79
|
+
summary: "Your organisation's grants and effective capacity",
|
|
80
|
+
auth: ["seat"],
|
|
81
|
+
pending: null,
|
|
82
|
+
collection: "An organisation's own grants.",
|
|
83
|
+
params: OrgParams,
|
|
84
|
+
responses: { 200: { description: "Grants, and what is in effect.", schema: Entitlements } },
|
|
85
|
+
}),
|
|
86
|
+
operation({
|
|
87
|
+
operationId: "grantEntitlement",
|
|
88
|
+
method: "post",
|
|
89
|
+
path: "/v1/organisations/{orgId}/entitlements",
|
|
90
|
+
tag: "entitlements",
|
|
91
|
+
summary: "Start a trial, or switch on a capability in the simulation",
|
|
92
|
+
description: "The simulation, the platform's test mode, is free for every organisation, for ever (d50(a)).",
|
|
93
|
+
auth: ["seat"],
|
|
94
|
+
pending: null,
|
|
95
|
+
idempotency: "key",
|
|
96
|
+
params: OrgParams,
|
|
97
|
+
body: { schema: GrantRequest },
|
|
98
|
+
responses: { 201: { description: "Granted.", schema: Grant } },
|
|
99
|
+
}),
|
|
100
|
+
];
|
|
101
|
+
//# sourceMappingURL=entitlements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../src/routes/entitlements.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,CAAU,CAAC;AAExF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,IAAI,CAAC;IACvE,EAAE,EAAE,QAAQ;IACZ,WAAW,EAAE,mKAAmK;CACjL,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAE1C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC;KACtB,MAAM,CAAC;IACN,SAAS,EAAE,SAAS,CAAC,QAAQ,EAAE;IAC/B,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC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W,EAAE,iBAAiB;QAC9B,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,wCAAwC;QAC9C,GAAG,EAAE,cAAc;QACnB,OAAO,EAAE,mDAAmD;QAC5D,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,+BAA+B;QAC3C,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,gCAAgC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;KAC5F,CAAC;IACF,SAAS,CAAC;QACR,WAAW,EAAE,kBAAkB;QAC/B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,wCAAwC;QAC9C,GAAG,EAAE,cAAc;QACnB,OAAO,EAAE,4DAA4D;QACrE,WAAW,EAAE,8FAA8F;QAC3G,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,KAAK;QAClB,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;QAC9B,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;KAC/D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from "../zod.ts";
|
|
2
|
+
/** @kashscript/identity-server 0.2.0's COUNTERSIGN_MAX_TTL_SECONDS. */
|
|
3
|
+
export declare const GUEST_LINK_MAX_TTL_SEC: number;
|
|
4
|
+
export declare const GuestLinkCreate: z.ZodObject<{
|
|
5
|
+
organisation: z.ZodOptional<z.ZodString>;
|
|
6
|
+
record: z.ZodObject<{
|
|
7
|
+
payloadType: z.ZodString;
|
|
8
|
+
payload: z.ZodString;
|
|
9
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
10
|
+
keyid: z.ZodString;
|
|
11
|
+
sig: z.ZodString;
|
|
12
|
+
}, z.core.$strict>>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
statement: z.ZodString;
|
|
15
|
+
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
export declare const GuestLink: z.ZodObject<{
|
|
18
|
+
requestId: z.ZodString;
|
|
19
|
+
link: z.ZodURL;
|
|
20
|
+
expiresAtUnix: z.ZodNumber;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const GuestLinkState: z.ZodObject<{
|
|
23
|
+
requestId: z.ZodString;
|
|
24
|
+
state: z.ZodEnum<{
|
|
25
|
+
waiting: "waiting";
|
|
26
|
+
countersigned: "countersigned";
|
|
27
|
+
}>;
|
|
28
|
+
bundle: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
+
expiresAtUnix: z.ZodNumber;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
/** What the guest's page needs to sign, and nothing else. It names the requester as the requester named itself, and no one of ours. */
|
|
32
|
+
export declare const GuestCeremony: z.ZodObject<{
|
|
33
|
+
request: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
34
|
+
record: z.ZodObject<{
|
|
35
|
+
payloadType: z.ZodString;
|
|
36
|
+
payload: z.ZodString;
|
|
37
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
38
|
+
keyid: z.ZodString;
|
|
39
|
+
sig: z.ZodString;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
requesterLabel: z.ZodString;
|
|
43
|
+
expiresAtUnix: z.ZodNumber;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export declare const GuestAcceptance: z.ZodObject<{
|
|
46
|
+
envelope: z.ZodObject<{
|
|
47
|
+
payloadType: z.ZodString;
|
|
48
|
+
payload: z.ZodString;
|
|
49
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
50
|
+
keyid: z.ZodString;
|
|
51
|
+
sig: z.ZodString;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
}, z.core.$strict>;
|
|
54
|
+
acceptance: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export declare const guestOperations: import("../op.ts").Operation[];
|
|
57
|
+
//# sourceMappingURL=guest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guest.d.ts","sourceRoot":"","sources":["../../src/routes/guest.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,uEAAuE;AACvE,eAAO,MAAM,sBAAsB,QAAc,CAAC;AASlD,eAAO,MAAM,eAAe;;;;;;;;;;;;kBAQuH,CAAC;AAEpJ,eAAO,MAAM,SAAS;;;;kBAOM,CAAC;AAE7B,eAAO,MAAM,cAAc;;;;;;;;kBAWvB,CAAC;AAIL,uIAAuI;AACvI,eAAO,MAAM,aAAa;;;;;;;;;;;;kBAQ4H,CAAC;AAEvJ,eAAO,MAAM,eAAe;;;;;;;;;;kBAMsH,CAAC;AAEnJ,eAAO,MAAM,eAAe,gCA4E3B,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A counterparty with no account countersigns through a link (d26, d47(f)). The platform hosts
|
|
3
|
+
* @kashscript/identity-server's ceremony (PL-7); this is the organisation's side of it. The
|
|
4
|
+
* guest's own endpoints arrive with that ceremony, in its shapes.
|
|
5
|
+
*/
|
|
6
|
+
import { DsseEnvelope, OrganisationId, UnixTime, words } from "../common.js";
|
|
7
|
+
import { operation } from "../op.js";
|
|
8
|
+
import { z } from "../zod.js";
|
|
9
|
+
/** @kashscript/identity-server 0.2.0's COUNTERSIGN_MAX_TTL_SECONDS. */
|
|
10
|
+
export const GUEST_LINK_MAX_TTL_SEC = 90 * 86_400;
|
|
11
|
+
/** https, or http on this machine: the practice run serves its own pages on localhost. */
|
|
12
|
+
const LinkUrl = z
|
|
13
|
+
.url()
|
|
14
|
+
.refine((u) => u.startsWith("https://") || /^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?\//.test(u), { message: "An https URL, or http on this machine for a practice run." });
|
|
15
|
+
const RequestId = z.string().regex(/^[A-Za-z0-9_-]{8,128}$/).meta({ description: "identity-server's request id for the link." });
|
|
16
|
+
export const GuestLinkCreate = z
|
|
17
|
+
.object({
|
|
18
|
+
organisation: OrganisationId.optional().meta({ description: "Which of your organisations asks. Say it if your login holds seats in more than one; an integration asks for its own organisation and says nothing." }),
|
|
19
|
+
record: DsseEnvelope,
|
|
20
|
+
statement: words(280).meta({ description: "What the guest confirms by signing, in plain words." }),
|
|
21
|
+
ttlSeconds: z.number().int().min(60).max(GUEST_LINK_MAX_TTL_SEC).optional().meta({ description: "At most 90 days; identity-server's default when absent." }),
|
|
22
|
+
})
|
|
23
|
+
.strict()
|
|
24
|
+
.meta({ id: "GuestLinkCreate", description: "`record` is the record the guest is asked to countersign, exactly as the organisation signed it." });
|
|
25
|
+
export const GuestLink = z
|
|
26
|
+
.object({
|
|
27
|
+
requestId: RequestId,
|
|
28
|
+
link: LinkUrl.meta({ description: "One click, no install, no password. Whoever holds it can sign, so send it only to the guest. https; a practice run on this machine serves http on localhost." }),
|
|
29
|
+
expiresAtUnix: UnixTime,
|
|
30
|
+
})
|
|
31
|
+
.strict()
|
|
32
|
+
.meta({ id: "GuestLink" });
|
|
33
|
+
export const GuestLinkState = z
|
|
34
|
+
.object({
|
|
35
|
+
requestId: RequestId,
|
|
36
|
+
state: z.enum(["waiting", "countersigned"]),
|
|
37
|
+
bundle: z.record(z.string(), z.unknown()).nullable().meta({ description: "The countersign bundle (@kashscript/attest/countersign) once the guest has signed." }),
|
|
38
|
+
expiresAtUnix: UnixTime,
|
|
39
|
+
})
|
|
40
|
+
.strict()
|
|
41
|
+
.meta({
|
|
42
|
+
id: "GuestLinkState",
|
|
43
|
+
description: "No state says a guest declined. A link nobody signs stays waiting until it expires, then it is gone (d49(a)).",
|
|
44
|
+
});
|
|
45
|
+
const RequestParams = z.object({ requestId: RequestId }).strict();
|
|
46
|
+
/** What the guest's page needs to sign, and nothing else. It names the requester as the requester named itself, and no one of ours. */
|
|
47
|
+
export const GuestCeremony = z
|
|
48
|
+
.object({
|
|
49
|
+
request: z.record(z.string(), z.unknown()).meta({ description: "The signed countersign request (@kashscript/attest), as its requester signed it." }),
|
|
50
|
+
record: DsseEnvelope.meta({ description: "The record being countersigned, as its signer made it." }),
|
|
51
|
+
requesterLabel: words(80).meta({ description: "The requester's own name for itself, shown as theirs and trusted for nothing." }),
|
|
52
|
+
expiresAtUnix: UnixTime,
|
|
53
|
+
})
|
|
54
|
+
.strict()
|
|
55
|
+
.meta({ id: "GuestCeremony", description: "Opened with the link's own request id: nobody signs in, and nothing about the guest is asked or kept." });
|
|
56
|
+
export const GuestAcceptance = z
|
|
57
|
+
.object({
|
|
58
|
+
envelope: DsseEnvelope.meta({ description: "The record with the second signature appended: ordinary DSSE." }),
|
|
59
|
+
acceptance: z.record(z.string(), z.unknown()).meta({ description: "The signed acceptance: the time, the request it answers, and the custody of the key." }),
|
|
60
|
+
})
|
|
61
|
+
.strict()
|
|
62
|
+
.meta({ id: "GuestAcceptance", description: "What the ceremony page posts. A decline posts nothing at all, so no such shape exists (d49(a))." });
|
|
63
|
+
export const guestOperations = [
|
|
64
|
+
operation({
|
|
65
|
+
operationId: "openGuestLink",
|
|
66
|
+
method: "get",
|
|
67
|
+
path: "/v1/guest/{requestId}",
|
|
68
|
+
tag: "guest-links",
|
|
69
|
+
summary: "The guest's page reads its request",
|
|
70
|
+
description: "Public and undated: it is the guest's browser that calls it, and the request id is the only key. After the link expires, or once it is countersigned, there is nothing here.",
|
|
71
|
+
auth: [],
|
|
72
|
+
pending: null,
|
|
73
|
+
versioning: "exempt",
|
|
74
|
+
params: RequestParams,
|
|
75
|
+
responses: { 200: { description: "What the page signs.", schema: GuestCeremony } },
|
|
76
|
+
}),
|
|
77
|
+
operation({
|
|
78
|
+
operationId: "submitGuestAcceptance",
|
|
79
|
+
method: "post",
|
|
80
|
+
path: "/v1/guest/{requestId}/acceptance",
|
|
81
|
+
tag: "guest-links",
|
|
82
|
+
summary: "The guest's page posts its countersignature",
|
|
83
|
+
description: "Public and undated. Single use: the request id is its own idempotency, and a second answer is refused. The bundle is checked with the published verifier before it is kept.",
|
|
84
|
+
auth: [],
|
|
85
|
+
pending: null,
|
|
86
|
+
versioning: "exempt",
|
|
87
|
+
idempotency: "protocol",
|
|
88
|
+
params: RequestParams,
|
|
89
|
+
body: { schema: GuestAcceptance },
|
|
90
|
+
responses: { 204: { description: "Kept until the link expires." } },
|
|
91
|
+
}),
|
|
92
|
+
operation({
|
|
93
|
+
operationId: "getGuestPage",
|
|
94
|
+
method: "get",
|
|
95
|
+
path: "/guest",
|
|
96
|
+
tag: "guest-links",
|
|
97
|
+
summary: "The guest's page",
|
|
98
|
+
description: "One click, no install, no password. The link's secret sits after the # and never reaches this server. The page names the requester as the requester named itself and nobody of ours.",
|
|
99
|
+
auth: [],
|
|
100
|
+
pending: null,
|
|
101
|
+
versioning: "exempt",
|
|
102
|
+
responses: { 200: { description: "HTML.", type: "text/html", schema: z.string() } },
|
|
103
|
+
}),
|
|
104
|
+
operation({
|
|
105
|
+
operationId: "getCeremonyModule",
|
|
106
|
+
method: "get",
|
|
107
|
+
path: "/guest/ceremony.js",
|
|
108
|
+
tag: "guest-links",
|
|
109
|
+
summary: "The browser code that makes the guest's one-time key and signs",
|
|
110
|
+
description: "identity-server's ceremony, bundled. The key is made on the guest's device and leaves it only as a signature.",
|
|
111
|
+
auth: [],
|
|
112
|
+
pending: null,
|
|
113
|
+
versioning: "exempt",
|
|
114
|
+
responses: { 200: { description: "An ES module exporting signCeremony.", type: "text/javascript", schema: z.string() } },
|
|
115
|
+
}),
|
|
116
|
+
operation({
|
|
117
|
+
operationId: "createGuestLink",
|
|
118
|
+
method: "post",
|
|
119
|
+
path: "/v1/guest-links",
|
|
120
|
+
tag: "guest-links",
|
|
121
|
+
summary: "Ask a counterparty with no account to countersign a record",
|
|
122
|
+
auth: ["seat", "integration"],
|
|
123
|
+
pending: null,
|
|
124
|
+
idempotency: "key",
|
|
125
|
+
body: { schema: GuestLinkCreate },
|
|
126
|
+
responses: { 201: { description: "The link.", schema: GuestLink } },
|
|
127
|
+
}),
|
|
128
|
+
operation({
|
|
129
|
+
operationId: "getGuestLink",
|
|
130
|
+
method: "get",
|
|
131
|
+
path: "/v1/guest-links/{requestId}",
|
|
132
|
+
tag: "guest-links",
|
|
133
|
+
summary: "See whether a guest link has been countersigned",
|
|
134
|
+
auth: ["seat", "integration"],
|
|
135
|
+
pending: null,
|
|
136
|
+
params: RequestParams,
|
|
137
|
+
responses: { 200: { description: "Waiting, or countersigned with its bundle.", schema: GuestLinkState } },
|
|
138
|
+
}),
|
|
139
|
+
];
|
|
140
|
+
//# sourceMappingURL=guest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guest.js","sourceRoot":"","sources":["../../src/routes/guest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAE9B,uEAAuE;AACvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,GAAG,MAAM,CAAC;AAElD,0FAA0F;AAC1F,MAAM,OAAO,GAAG,CAAC;KACd,GAAG,EAAE;KACL,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,6CAA6C,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,CAAC,CAAC;AAE9K,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,EAAE,CAA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
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { z } from "../zod.ts";
|
|
2
|
+
export declare const IssuerConfiguration: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
format: z.ZodLiteral<"kash-artifact">;
|
|
5
|
+
dst: z.ZodString;
|
|
6
|
+
label: z.ZodString;
|
|
7
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
10
|
+
vct: z.ZodString;
|
|
11
|
+
label: z.ZodString;
|
|
12
|
+
}, z.core.$strict>], "format">;
|
|
13
|
+
export declare const IssuerRegistration: z.ZodObject<{
|
|
14
|
+
credentialIssuer: z.ZodURL;
|
|
15
|
+
configurations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
format: z.ZodLiteral<"kash-artifact">;
|
|
18
|
+
dst: z.ZodString;
|
|
19
|
+
label: z.ZodString;
|
|
20
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
23
|
+
vct: z.ZodString;
|
|
24
|
+
label: z.ZodString;
|
|
25
|
+
}, z.core.$strict>], "format">>;
|
|
26
|
+
signers: z.ZodArray<z.ZodString>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export declare const IssuerRegistrationState: z.ZodObject<{
|
|
29
|
+
registration: z.ZodObject<{
|
|
30
|
+
credentialIssuer: z.ZodURL;
|
|
31
|
+
configurations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
format: z.ZodLiteral<"kash-artifact">;
|
|
34
|
+
dst: z.ZodString;
|
|
35
|
+
label: z.ZodString;
|
|
36
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
39
|
+
vct: z.ZodString;
|
|
40
|
+
label: z.ZodString;
|
|
41
|
+
}, z.core.$strict>], "format">>;
|
|
42
|
+
signers: z.ZodArray<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
trustList: z.ZodEnum<{
|
|
45
|
+
"pending-review": "pending-review";
|
|
46
|
+
listed: "listed";
|
|
47
|
+
"not-listed": "not-listed";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const PredicateAnswerWebhook: z.ZodObject<{
|
|
51
|
+
url: z.ZodURL;
|
|
52
|
+
predicates: z.ZodArray<z.ZodObject<{
|
|
53
|
+
kind: z.ZodString;
|
|
54
|
+
rule: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
version: z.ZodString;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
export declare const SessionEventWebhook: z.ZodObject<{
|
|
61
|
+
url: z.ZodURL;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
export declare const Integration: z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
clientId: z.ZodString;
|
|
66
|
+
capability: z.ZodEnum<{
|
|
67
|
+
visits: "visits";
|
|
68
|
+
money: "money";
|
|
69
|
+
work: "work";
|
|
70
|
+
}>;
|
|
71
|
+
apiVersion: z.ZodString;
|
|
72
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
73
|
+
kty: z.ZodLiteral<"OKP">;
|
|
74
|
+
crv: z.ZodLiteral<"Ed25519">;
|
|
75
|
+
x: z.ZodString;
|
|
76
|
+
kid: z.ZodString;
|
|
77
|
+
use: z.ZodOptional<z.ZodLiteral<"sig">>;
|
|
78
|
+
alg: z.ZodOptional<z.ZodLiteral<"EdDSA">>;
|
|
79
|
+
}, z.core.$strict>>;
|
|
80
|
+
issuer: z.ZodNullable<z.ZodObject<{
|
|
81
|
+
registration: z.ZodObject<{
|
|
82
|
+
credentialIssuer: z.ZodURL;
|
|
83
|
+
configurations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
format: z.ZodLiteral<"kash-artifact">;
|
|
86
|
+
dst: z.ZodString;
|
|
87
|
+
label: z.ZodString;
|
|
88
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
format: z.ZodLiteral<"dc+sd-jwt">;
|
|
91
|
+
vct: z.ZodString;
|
|
92
|
+
label: z.ZodString;
|
|
93
|
+
}, z.core.$strict>], "format">>;
|
|
94
|
+
signers: z.ZodArray<z.ZodString>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
trustList: z.ZodEnum<{
|
|
97
|
+
"pending-review": "pending-review";
|
|
98
|
+
listed: "listed";
|
|
99
|
+
"not-listed": "not-listed";
|
|
100
|
+
}>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
webhooks: z.ZodObject<{
|
|
103
|
+
predicateAnswer: z.ZodNullable<z.ZodObject<{
|
|
104
|
+
url: z.ZodURL;
|
|
105
|
+
predicates: z.ZodArray<z.ZodObject<{
|
|
106
|
+
kind: z.ZodString;
|
|
107
|
+
rule: z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
version: z.ZodString;
|
|
110
|
+
}, z.core.$strict>;
|
|
111
|
+
}, z.core.$strict>>;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
sessionEvent: z.ZodNullable<z.ZodObject<{
|
|
114
|
+
url: z.ZodURL;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
export declare const PredicateAnswered: z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"predicate.answered">;
|
|
120
|
+
timestamp: z.ZodISODateTime;
|
|
121
|
+
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
answer: z.ZodString;
|
|
123
|
+
result: z.ZodLiteral<"holds">;
|
|
124
|
+
predicate: z.ZodString;
|
|
125
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
126
|
+
answer: z.ZodString;
|
|
127
|
+
result: z.ZodLiteral<"does-not-hold">;
|
|
128
|
+
}, z.core.$strict>], "result">;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
export declare const PredicateAnswerRequested: z.ZodObject<{
|
|
131
|
+
type: z.ZodLiteral<"predicate.answer-requested">;
|
|
132
|
+
timestamp: z.ZodISODateTime;
|
|
133
|
+
data: z.ZodObject<{
|
|
134
|
+
answer: z.ZodString;
|
|
135
|
+
ask: z.ZodObject<{
|
|
136
|
+
key: z.ZodString;
|
|
137
|
+
version: z.ZodNumber;
|
|
138
|
+
sha256: z.ZodString;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
need: z.ZodObject<{
|
|
141
|
+
id: z.ZodString;
|
|
142
|
+
predicate: z.ZodString;
|
|
143
|
+
withinDays: z.ZodNumber;
|
|
144
|
+
issuers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
book: z.ZodString;
|
|
147
|
+
}, z.core.$strict>;
|
|
148
|
+
}, z.core.$strict>;
|
|
149
|
+
export declare const SessionLineEvent: z.ZodObject<{
|
|
150
|
+
type: z.ZodLiteral<"session.line">;
|
|
151
|
+
timestamp: z.ZodISODateTime;
|
|
152
|
+
data: z.ZodObject<{
|
|
153
|
+
session: z.ZodString;
|
|
154
|
+
seq: z.ZodNumber;
|
|
155
|
+
line: z.ZodObject<{
|
|
156
|
+
payloadType: z.ZodString;
|
|
157
|
+
payload: z.ZodString;
|
|
158
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
159
|
+
keyid: z.ZodString;
|
|
160
|
+
sig: z.ZodString;
|
|
161
|
+
}, z.core.$strict>>;
|
|
162
|
+
}, z.core.$strict>;
|
|
163
|
+
state: z.ZodEnum<{
|
|
164
|
+
waiting: "waiting";
|
|
165
|
+
"signed-by-both": "signed-by-both";
|
|
166
|
+
}>;
|
|
167
|
+
}, z.core.$strict>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
export declare const IntegrationCreate: z.ZodObject<{
|
|
170
|
+
capability: z.ZodEnum<{
|
|
171
|
+
visits: "visits";
|
|
172
|
+
money: "money";
|
|
173
|
+
work: "work";
|
|
174
|
+
}>;
|
|
175
|
+
keys: z.ZodArray<z.ZodObject<{
|
|
176
|
+
kty: z.ZodLiteral<"OKP">;
|
|
177
|
+
crv: z.ZodLiteral<"Ed25519">;
|
|
178
|
+
x: z.ZodString;
|
|
179
|
+
kid: z.ZodString;
|
|
180
|
+
use: z.ZodOptional<z.ZodLiteral<"sig">>;
|
|
181
|
+
alg: z.ZodOptional<z.ZodLiteral<"EdDSA">>;
|
|
182
|
+
}, z.core.$strict>>;
|
|
183
|
+
}, z.core.$strict>;
|
|
184
|
+
export declare const integrationOperations: import("../op.ts").Operation[];
|
|
185
|
+
/** What the platform sends: registered in the document's `webhooks` section. */
|
|
186
|
+
export declare const integrationWebhooks: import("../op.ts").Operation[];
|
|
187
|
+
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/routes/integration.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,WAAW,CAAC;AAa9B,eAAO,MAAM,mBAAmB;;;;;;;;;;8BAqBM,CAAC;AAEvC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;kBAU3B,CAAC;AAEL,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;kBAQM,CAAC;AAE3C,eAAO,MAAM,sBAAsB;;;;;;;;;kBAgBM,CAAC;AAE1C,eAAO,MAAM,mBAAmB;;kBAA2E,CAAC;AAE5G,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWM,CAAC;AAW/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;kBAGoG,CAAC;AAEnI,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;kBAcM,CAAC;AAE5C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;kBAOoG,CAAC;AAElI,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;kBAMqF,CAAC;AAEpH,eAAO,MAAM,qBAAqB,gCAyEjC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,gCA8B/B,CAAC"}
|