permdock 0.0.0 → 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 +268 -1
- package/dist/a2a/index.d.ts +178 -0
- package/dist/a2a/index.js +271 -0
- package/dist/ai-sdk/index.d.ts +74 -0
- package/dist/ai-sdk/index.js +137 -0
- package/dist/approval-required-TzNB9oQA.js +6 -0
- package/dist/approvals/index.d.ts +3 -0
- package/dist/approvals/index.js +4 -0
- package/dist/approvals-DaxY-Bdg.js +218 -0
- package/dist/approvers-aH0PJkmf.js +20 -0
- package/dist/arazzo-CTeVuXr5.js +70 -0
- package/dist/arazzo-aoTkqYsJ.js +54 -0
- package/dist/authzen/index.d.ts +48 -0
- package/dist/authzen/index.js +336 -0
- package/dist/better-auth/index.d.ts +92 -0
- package/dist/better-auth/index.js +324 -0
- package/dist/budget-JqcRqyhK.d.ts +11 -0
- package/dist/budget-NbEtbJC_.js +11 -0
- package/dist/capability-B68OFnZx.js +171 -0
- package/dist/capability-BDG_nkxt.d.ts +99 -0
- package/dist/catalog/index.d.ts +12 -0
- package/dist/catalog/index.js +2 -0
- package/dist/catalog-B0E6bggc.js +48 -0
- package/dist/catalog-H-vFGwWK.js +55 -0
- package/dist/catalog-doc-BSo_Q_-6.js +298 -0
- package/dist/catalog-idsHc0vo.js +2 -0
- package/dist/catalog-path-CnI0XTFK.js +12 -0
- package/dist/claude-agent/index.d.ts +81 -0
- package/dist/claude-agent/index.js +83 -0
- package/dist/clerk/index.d.ts +56 -0
- package/dist/clerk/index.js +280 -0
- package/dist/cli/bin.d.ts +1 -0
- package/dist/cli/bin.js +20 -0
- package/dist/cli/index.d.ts +46 -0
- package/dist/cli/index.js +5 -0
- package/dist/cloud/index.d.ts +91 -0
- package/dist/cloud/index.js +390 -0
- package/dist/cloud-BNQTrmrr.js +50 -0
- package/dist/cloud-Cuxr6Czw.js +117 -0
- package/dist/collect-B7_TIfmg.js +49 -0
- package/dist/collect-O-tOtbnk.js +350 -0
- package/dist/collect-fRPAQIWb.js +2 -0
- package/dist/commands-BMh_Etm2.js +93 -0
- package/dist/compact-y6vfu2_f.js +19 -0
- package/dist/compare-pfyVnBjE.js +12 -0
- package/dist/compile-CQbvyIBr.d.ts +30 -0
- package/dist/compile-D22iwvuV.js +558 -0
- package/dist/config-BPYmjTOp.js +26 -0
- package/dist/connection-JvqwHODC.js +194 -0
- package/dist/context-CKEAabd7.js +73 -0
- package/dist/context-gtAwAILx.js +6 -0
- package/dist/convex/index.d.ts +40 -0
- package/dist/convex/index.js +55 -0
- package/dist/create-BKF3dgFk.d.ts +162 -0
- package/dist/create-CSkhDU9T.js +222 -0
- package/dist/credential-B_rkUNlY.js +326 -0
- package/dist/credentials-BgRX3WEg.js +268 -0
- package/dist/describe-Bt1YD5uS.js +99 -0
- package/dist/describe-DernyItf.d.ts +37 -0
- package/dist/diff-BUzf5Poi.js +48 -0
- package/dist/diff-x5Il8LVa.js +418 -0
- package/dist/digest-B3kc_PgQ.d.ts +19 -0
- package/dist/digest-BI-6aa6d.js +27 -0
- package/dist/doctor-BGle8Gqi.js +1314 -0
- package/dist/doctor-Bqo6FwUa.js +53 -0
- package/dist/drizzle/index.d.ts +72 -0
- package/dist/drizzle/index.js +160 -0
- package/dist/duration-xK2jGFVc.js +25 -0
- package/dist/elysia/index.d.ts +71 -0
- package/dist/elysia/index.js +103 -0
- package/dist/errors-DSMnAVNa.js +43 -0
- package/dist/errors-DbZ1YOnb.d.ts +138 -0
- package/dist/errors-Iy71s7Oj.js +177 -0
- package/dist/errors-m3u9TmDu.js +27 -0
- package/dist/evaluations-DsAU9ppl.js +479 -0
- package/dist/eve/index.d.ts +95 -0
- package/dist/eve/index.js +181 -0
- package/dist/express/index.d.ts +46 -0
- package/dist/express/index.js +108 -0
- package/dist/fastify/index.d.ts +56 -0
- package/dist/fastify/index.js +141 -0
- package/dist/files-B_wAGYmt.js +121 -0
- package/dist/fixtures-Cvaw0gDG.js +64 -0
- package/dist/freeze-y1_jQL4v.js +31 -0
- package/dist/from-snapshot-BMGnhmgv.js +552 -0
- package/dist/generate-CH7ThJ14.js +173 -0
- package/dist/grantee-Bv04_Vzf.js +521 -0
- package/dist/headers-B5RRv3Xm.js +6 -0
- package/dist/headers-C8SHQccD.d.ts +6 -0
- package/dist/helpers-DnSOrhB9.js +682 -0
- package/dist/hono/index.d.ts +70 -0
- package/dist/hono/index.js +131 -0
- package/dist/hosted-BwKQ1BTA.js +265 -0
- package/dist/http-DPuDaChb.d.ts +13 -0
- package/dist/http-GgVApX1k.js +111 -0
- package/dist/index-CltcQ4Bf.d.ts +138 -0
- package/dist/index-LF_hS-yn.d.ts +177 -0
- package/dist/index-fG6NSXlc.d.ts +9 -0
- package/dist/index-xIxJLwOQ.d.ts +415 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +21 -0
- package/dist/jwt/index.d.ts +87 -0
- package/dist/jwt/index.js +571 -0
- package/dist/kernel-YOGCWNLf.js +211 -0
- package/dist/kysely/index.d.ts +77 -0
- package/dist/kysely/index.js +129 -0
- package/dist/load-BZ24CpZP.js +69 -0
- package/dist/load-QOOm1z70.js +2 -0
- package/dist/load-jose-BL6LH4bL.js +11 -0
- package/dist/lru-8q4WZjBV.js +28 -0
- package/dist/manifest-DDQbC6K0.d.ts +118 -0
- package/dist/map-DowSO96j.js +158 -0
- package/dist/map-claims-B_6I1Rn-.js +360 -0
- package/dist/map-error-RJ3ZsUyA.js +16 -0
- package/dist/markers-B0hYLvMD.js +60 -0
- package/dist/may-use-CnFEjVEp.js +37 -0
- package/dist/mcp/index.d.ts +127 -0
- package/dist/mcp/index.js +563 -0
- package/dist/nest/index.d.ts +80 -0
- package/dist/nest/index.js +270 -0
- package/dist/next/client.d.ts +24 -0
- package/dist/next/client.js +31 -0
- package/dist/next/index.d.ts +110 -0
- package/dist/next/index.js +195 -0
- package/dist/next/plugin.d.ts +14 -0
- package/dist/next/plugin.js +2 -0
- package/dist/node/index.d.ts +43 -0
- package/dist/node/index.js +66 -0
- package/dist/openai/index.d.ts +71 -0
- package/dist/openai/index.js +105 -0
- package/dist/openapi/index.d.ts +93 -0
- package/dist/openapi/index.js +3 -0
- package/dist/openapi-CwePaF7C.js +164 -0
- package/dist/openapi-DWD0Uc_4.js +250 -0
- package/dist/openapi-DcqM8nU7.js +306 -0
- package/dist/openapi-import-BWRUNNeW.js +5959 -0
- package/dist/openapi-schema-D8j_T9tO.js +6902 -0
- package/dist/orpc/index.d.ts +64 -0
- package/dist/orpc/index.js +188 -0
- package/dist/otel/index.d.ts +13 -0
- package/dist/otel/index.js +202 -0
- package/dist/package-root-zGkxO3oN.js +30 -0
- package/dist/parse-DPfIvFMU.js +135 -0
- package/dist/pdp/index.d.ts +22 -0
- package/dist/pdp/index.js +795 -0
- package/dist/peer-BOr_kJE1.js +31 -0
- package/dist/permdock-yoZ7EjxX.js +2956 -0
- package/dist/permissions-B4apnahQ.d.ts +185 -0
- package/dist/permissions-B8vCg_bI.d.ts +52 -0
- package/dist/permissions-CofRqesP.js +142 -0
- package/dist/permissions-DC7GROPA.js +600 -0
- package/dist/pg-4GJWDUxG.js +953 -0
- package/dist/pins-CqE1jZuF.js +12 -0
- package/dist/plugin-4gr7IxFJ.js +65 -0
- package/dist/policy-ANp36PnI.js +971 -0
- package/dist/policy-CInmNGkM.d.ts +1959 -0
- package/dist/policy-Cq2fB8Q5.d.ts +20 -0
- package/dist/prisma/index.d.ts +135 -0
- package/dist/prisma/index.js +430 -0
- package/dist/problem-Cgp9-KZA.js +226 -0
- package/dist/prompt-CXYhLfsS.js +32 -0
- package/dist/protected-B4K3BKoX.js +138 -0
- package/dist/protected-BuPAycJT.d.ts +26 -0
- package/dist/protected-wY7nXhY9.d.ts +23 -0
- package/dist/provider-_wx46HpB.js +48 -0
- package/dist/provider-wTAUda2v.d.ts +6 -0
- package/dist/react/index.d.ts +6 -0
- package/dist/react/index.js +6 -0
- package/dist/react/provider-client.d.ts +2 -0
- package/dist/react/provider-client.js +3 -0
- package/dist/react-native/index.d.ts +42 -0
- package/dist/react-native/index.js +174 -0
- package/dist/refs-ChLSxbST.js +90 -0
- package/dist/relations-r4soIFZB.js +426 -0
- package/dist/revocations-Cy06JNx2.d.ts +21 -0
- package/dist/rls-BOFU3chG.js +233 -0
- package/dist/rls-CJVja9Ww.js +2119 -0
- package/dist/rls-graph-DxQ39PJj.js +371 -0
- package/dist/rls-helpers-BxRuif0l.js +1346 -0
- package/dist/rls-import-CXV6LBlS.js +942 -0
- package/dist/rls-migrate-DrFPbf8p.js +366 -0
- package/dist/row-check-BajTgQZ-.d.ts +43 -0
- package/dist/run-CJ6UvS3a.js +155 -0
- package/dist/runtime-DP9ttFh1.js +27 -0
- package/dist/saas-BRrZzJkM.js +1193 -0
- package/dist/schema-P8yoma__.js +296 -0
- package/dist/scim/index.d.ts +2 -0
- package/dist/scim/index.js +2 -0
- package/dist/scim-9NFa0XVZ.js +1445 -0
- package/dist/scopes-cKVp_WTw.js +212 -0
- package/dist/server/index.d.ts +123 -0
- package/dist/server/index.js +8 -0
- package/dist/sha256-BO0swRXL.js +150 -0
- package/dist/sink-Bd9PSyfq.js +141 -0
- package/dist/sink-Cfr9-7YC.d.ts +104 -0
- package/dist/skills-C_lpV4Jx.js +50 -0
- package/dist/skills-Dx3QLnMY.js +110 -0
- package/dist/snapshot-DE8dE_hz.js +1051 -0
- package/dist/solid/index.d.ts +63 -0
- package/dist/solid/index.js +197 -0
- package/dist/source-DoBBYJi2.js +6 -0
- package/dist/sources-DOpW5Ila.d.ts +347 -0
- package/dist/sources-DVHM3Mwq.js +284 -0
- package/dist/sql-Bll1d7y0.js +22 -0
- package/dist/src-CTNT-PBW.js +430 -0
- package/dist/ssf/index.d.ts +3 -0
- package/dist/ssf/index.js +622 -0
- package/dist/store-Bq90395i.d.ts +27 -0
- package/dist/store-C6hFW6ta.js +508 -0
- package/dist/stores-CkG2HrSg.js +140 -0
- package/dist/stores-CvOnu_2T.d.ts +41 -0
- package/dist/stream-BhMfZOwr.d.ts +12 -0
- package/dist/stream-Q_xlB6Ko.js +52 -0
- package/dist/style-CTm1AXDT.js +22 -0
- package/dist/subject-C6dLxqHU.js +24 -0
- package/dist/subject-settings-xt7V845g.js +82 -0
- package/dist/supabase/index.d.ts +67 -0
- package/dist/supabase/index.js +4 -0
- package/dist/supabase/middleware.d.ts +77 -0
- package/dist/supabase/middleware.js +68 -0
- package/dist/supabase-D8UlBA7Z.js +83 -0
- package/dist/supabase-DTxGtYdi.js +796 -0
- package/dist/supabase-hook-DW-xP4hU.js +2 -0
- package/dist/supabase-hook-D_OqGb_V.js +1528 -0
- package/dist/svelte/Protected.svelte +34 -0
- package/dist/svelte/index.d.ts +10 -0
- package/dist/svelte/index.js +53 -0
- package/dist/svelte/runtime.d.ts +6 -0
- package/dist/svelte/runtime.js +3 -0
- package/dist/svelte/source.d.ts +10 -0
- package/dist/svelte/source.js +8 -0
- package/dist/terminal/index.d.ts +171 -0
- package/dist/terminal/index.js +821 -0
- package/dist/testing/index.d.ts +656 -0
- package/dist/testing/index.js +3208 -0
- package/dist/testing/saas/index.d.ts +194 -0
- package/dist/testing/saas/index.js +3 -0
- package/dist/testing/saas/permissions.d.ts +2 -0
- package/dist/testing/saas/permissions.js +2 -0
- package/dist/text-diff-BdkkYSbi.js +15 -0
- package/dist/thenable-okc2xDsj.js +10 -0
- package/dist/timeout-D51niuQP.js +8 -0
- package/dist/trpc/index.d.ts +80 -0
- package/dist/trpc/index.js +205 -0
- package/dist/types-B8w5PFtS.d.ts +141 -0
- package/dist/types-B9dmiiab.d.ts +66 -0
- package/dist/types-BBK-exvJ.d.ts +177 -0
- package/dist/types-BvBk1wgn.d.ts +118 -0
- package/dist/types-CxquUByI.d.ts +9 -0
- package/dist/types-D6Z6-rKJ.d.ts +312 -0
- package/dist/types-DbWdEfcm.d.ts +87 -0
- package/dist/types-bva3i4Gf.d.ts +98 -0
- package/dist/types-i4BAOvdb.d.ts +97 -0
- package/dist/unplugin/index.d.ts +7 -0
- package/dist/unplugin/index.js +30 -0
- package/dist/usage-1ozMubLY.js +42 -0
- package/dist/usage-CUnK6Ou9.js +530 -0
- package/dist/usage-PyEor6GA.js +2 -0
- package/dist/validity-D0uRmJKJ.js +224 -0
- package/dist/verifier-B90agnhl.js +461 -0
- package/dist/version-CnSh33Fj.js +16 -0
- package/dist/vocabulary-Dk0fs-Jk.d.ts +56 -0
- package/dist/vue/index.d.ts +57 -0
- package/dist/vue/index.js +203 -0
- package/dist/webmcp/index.d.ts +75 -0
- package/dist/webmcp/index.js +313 -0
- package/package.json +423 -4
- package/rulesets/permdock.yaml +29 -0
- package/schemas/catalog-v1.json +507 -0
- package/schemas/openapi/oas-3.1.json +1298 -0
- package/schemas/openapi/oas-3.2.json +1516 -0
- package/schemas/openapi/overlay-1.1.json +79 -0
- package/schemas/supabase-claims-v1.json +139 -0
- package/schemas/supabase-manifest-v1.json +217 -0
- package/skills/permdock/SKILL.md +66 -0
- package/skills/permdock-agents/SKILL.md +77 -0
- package/skills/permdock-agents/references/runtimes.md +211 -0
- package/skills/permdock-approvals/SKILL.md +80 -0
- package/skills/permdock-approvals/references/stores-and-resume.md +83 -0
- package/skills/permdock-audit/SKILL.md +67 -0
- package/skills/permdock-credentials/SKILL.md +55 -0
- package/skills/permdock-credentials/references/tokens-keys-links.md +127 -0
- package/skills/permdock-data/SKILL.md +57 -0
- package/skills/permdock-data/references/queries-and-rls.md +54 -0
- package/skills/permdock-data/references/relationships.md +65 -0
- package/skills/permdock-tenancy/SKILL.md +77 -0
- package/skills/permdock-tenancy/references/ownership-and-custom-roles.md +83 -0
- package/skills/permdock-wire/SKILL.md +116 -0
- package/skills/permdock-wire/references/adapters.md +480 -0
- package/skills/permdock-wire/references/policy-options.md +43 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { n as freezeDeep } from "./freeze-y1_jQL4v.js";
|
|
2
|
+
//#region src/catalog/schema.ts
|
|
3
|
+
const name = {
|
|
4
|
+
type: "string",
|
|
5
|
+
pattern: "^[a-z][a-z0-9_]*$"
|
|
6
|
+
};
|
|
7
|
+
const validity = {
|
|
8
|
+
type: "object",
|
|
9
|
+
properties: {
|
|
10
|
+
from: { type: "integer" },
|
|
11
|
+
until: { type: "integer" }
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
const strings = {
|
|
15
|
+
type: "array",
|
|
16
|
+
items: { type: "string" }
|
|
17
|
+
};
|
|
18
|
+
const approval = { oneOf: [{ const: "human" }, {
|
|
19
|
+
type: "object",
|
|
20
|
+
properties: {
|
|
21
|
+
by: {},
|
|
22
|
+
mode: { enum: [
|
|
23
|
+
"any",
|
|
24
|
+
"all",
|
|
25
|
+
"sequential"
|
|
26
|
+
] },
|
|
27
|
+
stages: {
|
|
28
|
+
type: "array",
|
|
29
|
+
items: {
|
|
30
|
+
type: "object",
|
|
31
|
+
required: ["by"],
|
|
32
|
+
properties: {
|
|
33
|
+
by: {},
|
|
34
|
+
quorum: {
|
|
35
|
+
type: "integer",
|
|
36
|
+
minimum: 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
distinct: { type: "boolean" },
|
|
42
|
+
staleOn: { const: "resource-change" },
|
|
43
|
+
quorum: {
|
|
44
|
+
type: "integer",
|
|
45
|
+
minimum: 1
|
|
46
|
+
},
|
|
47
|
+
ttl: { type: "string" },
|
|
48
|
+
escalation: {
|
|
49
|
+
type: "object",
|
|
50
|
+
required: ["after", "to"],
|
|
51
|
+
properties: {
|
|
52
|
+
after: { type: "string" },
|
|
53
|
+
to: {}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}] };
|
|
58
|
+
/** `schemas/catalog-v1.json`; a test keeps the two equal. */
|
|
59
|
+
const catalogSchema = freezeDeep({
|
|
60
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
61
|
+
$id: "https://permdock.dev/schemas/catalog-v1.json",
|
|
62
|
+
type: "object",
|
|
63
|
+
required: [
|
|
64
|
+
"$schema",
|
|
65
|
+
"version",
|
|
66
|
+
"generatedAt",
|
|
67
|
+
"generator",
|
|
68
|
+
"resources",
|
|
69
|
+
"permissions"
|
|
70
|
+
],
|
|
71
|
+
properties: {
|
|
72
|
+
$schema: { type: "string" },
|
|
73
|
+
version: { const: 1 },
|
|
74
|
+
generatedAt: { type: "string" },
|
|
75
|
+
generator: { type: "string" },
|
|
76
|
+
fingerprint: { type: "string" },
|
|
77
|
+
resources: {
|
|
78
|
+
type: "object",
|
|
79
|
+
additionalProperties: {
|
|
80
|
+
type: "object",
|
|
81
|
+
required: ["id", "schema"],
|
|
82
|
+
properties: {
|
|
83
|
+
id: { type: "string" },
|
|
84
|
+
schema: {},
|
|
85
|
+
definedIn: { type: "string" },
|
|
86
|
+
relations: { type: "object" },
|
|
87
|
+
version: { type: "string" },
|
|
88
|
+
restricted: { type: "string" }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
roles: {
|
|
93
|
+
type: "array",
|
|
94
|
+
items: {
|
|
95
|
+
type: "object",
|
|
96
|
+
required: ["key"],
|
|
97
|
+
properties: {
|
|
98
|
+
key: { type: "string" },
|
|
99
|
+
on: name,
|
|
100
|
+
assignable: { type: "boolean" },
|
|
101
|
+
min: {
|
|
102
|
+
type: "integer",
|
|
103
|
+
minimum: 1
|
|
104
|
+
},
|
|
105
|
+
max: {
|
|
106
|
+
type: "integer",
|
|
107
|
+
minimum: 1
|
|
108
|
+
},
|
|
109
|
+
transferOnly: { const: true },
|
|
110
|
+
assigns: strings,
|
|
111
|
+
for: strings,
|
|
112
|
+
exclusiveWith: strings,
|
|
113
|
+
audience: { type: "string" },
|
|
114
|
+
activation: {
|
|
115
|
+
type: "object",
|
|
116
|
+
required: ["justification"],
|
|
117
|
+
properties: {
|
|
118
|
+
maxDuration: { type: "string" },
|
|
119
|
+
justification: { enum: ["required", "optional"] },
|
|
120
|
+
approval: { type: "boolean" },
|
|
121
|
+
assurance: { type: "object" }
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
supportAccess: {
|
|
125
|
+
type: "object",
|
|
126
|
+
required: [
|
|
127
|
+
"actorRequired",
|
|
128
|
+
"group",
|
|
129
|
+
"durations"
|
|
130
|
+
],
|
|
131
|
+
properties: {
|
|
132
|
+
actorRequired: { type: "boolean" },
|
|
133
|
+
group: { type: "string" },
|
|
134
|
+
durations: strings
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
scopes: {
|
|
141
|
+
type: "array",
|
|
142
|
+
items: {
|
|
143
|
+
type: "object",
|
|
144
|
+
required: ["name", "key"],
|
|
145
|
+
properties: {
|
|
146
|
+
name,
|
|
147
|
+
key: { type: "string" },
|
|
148
|
+
within: { type: "string" }
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
plans: {
|
|
153
|
+
type: "array",
|
|
154
|
+
items: {
|
|
155
|
+
type: "object",
|
|
156
|
+
required: ["key"],
|
|
157
|
+
properties: { key: { type: "string" } }
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
permissions: {
|
|
161
|
+
type: "array",
|
|
162
|
+
items: {
|
|
163
|
+
type: "object",
|
|
164
|
+
required: [
|
|
165
|
+
"key",
|
|
166
|
+
"scope",
|
|
167
|
+
"resource",
|
|
168
|
+
"action",
|
|
169
|
+
"arity",
|
|
170
|
+
"meta",
|
|
171
|
+
"usages",
|
|
172
|
+
"rowConditions"
|
|
173
|
+
],
|
|
174
|
+
properties: {
|
|
175
|
+
key: { type: "string" },
|
|
176
|
+
scope: { type: "string" },
|
|
177
|
+
resource: { type: "string" },
|
|
178
|
+
action: { type: "string" },
|
|
179
|
+
arity: { enum: ["instance", "collection"] },
|
|
180
|
+
meta: { type: "object" },
|
|
181
|
+
usages: {
|
|
182
|
+
type: "array",
|
|
183
|
+
items: {
|
|
184
|
+
type: "object",
|
|
185
|
+
required: [
|
|
186
|
+
"file",
|
|
187
|
+
"line",
|
|
188
|
+
"call"
|
|
189
|
+
],
|
|
190
|
+
properties: {
|
|
191
|
+
file: { type: "string" },
|
|
192
|
+
line: {
|
|
193
|
+
type: "integer",
|
|
194
|
+
minimum: 0
|
|
195
|
+
},
|
|
196
|
+
call: { type: "string" }
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
renamedFrom: strings,
|
|
201
|
+
hostable: { const: true },
|
|
202
|
+
rowConditions: { type: "boolean" },
|
|
203
|
+
approvals: {
|
|
204
|
+
type: "array",
|
|
205
|
+
items: approval
|
|
206
|
+
},
|
|
207
|
+
breakGlass: {
|
|
208
|
+
type: "object",
|
|
209
|
+
required: [
|
|
210
|
+
"overrides",
|
|
211
|
+
"reason",
|
|
212
|
+
"obligations"
|
|
213
|
+
],
|
|
214
|
+
properties: {
|
|
215
|
+
overrides: strings,
|
|
216
|
+
purpose: strings,
|
|
217
|
+
reason: { type: "boolean" },
|
|
218
|
+
maxDuration: { type: "string" },
|
|
219
|
+
obligations: strings
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
grants: {
|
|
226
|
+
type: "array",
|
|
227
|
+
items: {
|
|
228
|
+
type: "object",
|
|
229
|
+
required: [
|
|
230
|
+
"permission",
|
|
231
|
+
"effect",
|
|
232
|
+
"role",
|
|
233
|
+
"to",
|
|
234
|
+
"scope"
|
|
235
|
+
],
|
|
236
|
+
properties: {
|
|
237
|
+
permission: { type: "string" },
|
|
238
|
+
effect: { enum: ["allow", "deny"] },
|
|
239
|
+
role: { oneOf: [{ type: "string" }, { const: null }] },
|
|
240
|
+
to: {},
|
|
241
|
+
scope: { oneOf: [{ type: "string" }, {
|
|
242
|
+
type: "object",
|
|
243
|
+
required: ["resource"],
|
|
244
|
+
properties: { resource: { type: "string" } }
|
|
245
|
+
}] },
|
|
246
|
+
where: {},
|
|
247
|
+
check: {},
|
|
248
|
+
approval,
|
|
249
|
+
fields: strings,
|
|
250
|
+
validity,
|
|
251
|
+
name: { type: "string" },
|
|
252
|
+
purpose: strings,
|
|
253
|
+
limit: {
|
|
254
|
+
type: "object",
|
|
255
|
+
required: ["count", "per"],
|
|
256
|
+
properties: {
|
|
257
|
+
count: {
|
|
258
|
+
type: "integer",
|
|
259
|
+
minimum: 1
|
|
260
|
+
},
|
|
261
|
+
per: { type: "string" },
|
|
262
|
+
mode: { enum: ["hard", "soft"] }
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
portable: { const: false }
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
delegations: {
|
|
270
|
+
type: "array",
|
|
271
|
+
items: {
|
|
272
|
+
type: "object",
|
|
273
|
+
required: [
|
|
274
|
+
"from",
|
|
275
|
+
"to",
|
|
276
|
+
"permissions"
|
|
277
|
+
],
|
|
278
|
+
properties: {
|
|
279
|
+
from: {},
|
|
280
|
+
to: {
|
|
281
|
+
type: "object",
|
|
282
|
+
required: ["kind"],
|
|
283
|
+
properties: {
|
|
284
|
+
kind: { type: "string" },
|
|
285
|
+
id: { type: "string" }
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
permissions: strings,
|
|
289
|
+
validity
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
//#endregion
|
|
296
|
+
export { catalogSchema as t };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { A as ScimPageResult, C as LIST_SCHEMA, D as ScimFilter, E as SCIM_CONTENT_TYPE, M as ScimTokenOptions, N as USER_SCHEMA, O as ScimHandlerOptions, S as GROUP_SCHEMA, T as ROLES_EXTENSION, _ as DirectoryNotFoundError, a as scimHandler, b as DirectoryUser, c as parseScimFilter, d as serviceProviderConfig, f as authenticateScim, g as DirectoryMembershipSourceOptions, h as DirectoryGroup, i as tenantFromPath, j as ScimPatchOp, k as ScimPage, l as resourceTypes, m as DirectoryChange, n as directoryMembershipSource, o as filterSupported, p as sha256Hex, r as normalizePatchOps, s as matchFilter, t as memoryDirectoryStore, u as schemas, v as DirectoryStore, w as PATCH_SCHEMA, x as ERROR_SCHEMA, y as DirectoryUniquenessError } from "../index-LF_hS-yn.js";
|
|
2
|
+
export { type DirectoryChange, type DirectoryGroup, type DirectoryMembershipSourceOptions, DirectoryNotFoundError, type DirectoryStore, DirectoryUniquenessError, type DirectoryUser, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, ROLES_EXTENSION, SCIM_CONTENT_TYPE, type ScimFilter, type ScimHandlerOptions, type ScimPage, type ScimPageResult, type ScimPatchOp, type ScimTokenOptions, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { S as sha256Hex, _ as PATCH_SCHEMA, a as normalizePatchOps, b as USER_SCHEMA, c as parseScimFilter, d as serviceProviderConfig, f as DirectoryNotFoundError, g as LIST_SCHEMA, h as GROUP_SCHEMA, i as tenantFromPath, l as resourceTypes, m as ERROR_SCHEMA, n as directoryMembershipSource, o as filterSupported, p as DirectoryUniquenessError, r as scimHandler, s as matchFilter, t as memoryDirectoryStore, u as schemas, v as ROLES_EXTENSION, x as authenticateScim, y as SCIM_CONTENT_TYPE } from "../scim-9NFa0XVZ.js";
|
|
2
|
+
export { DirectoryNotFoundError, DirectoryUniquenessError, ERROR_SCHEMA, GROUP_SCHEMA, LIST_SCHEMA, PATCH_SCHEMA, ROLES_EXTENSION, SCIM_CONTENT_TYPE, USER_SCHEMA, authenticateScim, directoryMembershipSource, filterSupported, matchFilter, memoryDirectoryStore, normalizePatchOps, parseScimFilter, resourceTypes, schemas, scimHandler, serviceProviderConfig, sha256Hex, tenantFromPath };
|