permdock 0.27.3 → 0.28.1
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/{2020-bJfT8aIA.js → 2020-DBXhfpuK.js} +2 -2
- package/dist/{adoption-scan-CHMU7gnE.js → adoption-scan-6eUACbvC.js} +1 -1
- package/dist/approvals/index.d.ts +1 -1
- package/dist/{arazzo-DuXmPMSu.js → arazzo-DSzOxgr1.js} +1 -1
- package/dist/{arazzo-D1ZHjjea.js → arazzo-Du3koIf5.js} +2 -2
- package/dist/{args-0EWFk-4S.js → args-Bc0HLiD4.js} +1 -1
- package/dist/better-supabase/index.d.ts +2 -0
- package/dist/better-supabase/index.js +8 -6
- package/dist/{casbin-Bf9jkDMy.js → casbin-B5UnU9nM.js} +1 -1
- package/dist/{casbin-CwLL5QnK.js → casbin-CW2uo-Jt.js} +1 -1
- package/dist/catalog/index.d.ts +1 -1
- package/dist/{catalog-B3MJShnZ.js → catalog-COoxFOoy.js} +1 -1
- package/dist/catalog-DCjJIl3n.js +1 -0
- package/dist/{catalog-DyC3LKc7.js → catalog-DXSP1we9.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/generate/watch-worker.js +1 -1
- package/dist/cli/index.d.ts +5 -4
- package/dist/cli/index.js +1 -1
- package/dist/cli/plugins/app.d.ts +1 -1
- package/dist/cli/plugins/app.js +1 -1
- package/dist/cli/plugins/better-supabase.d.ts +1 -1
- package/dist/cli/plugins/openapi.d.ts +1 -1
- package/dist/cli/plugins/openapi.js +1 -1
- package/dist/cli/plugins/powersync.d.ts +1 -1
- package/dist/cli/plugins/powersync.js +1 -1
- package/dist/cli/plugins/rls.d.ts +2 -2
- package/dist/cli/plugins/rls.js +1 -1
- package/dist/cli/plugins/schemas.d.ts +1 -1
- package/dist/cli/plugins/schemas.js +1 -1
- package/dist/cli/plugins/scim.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.d.ts +2 -2
- package/dist/cli/plugins/supabase-hook.js +1 -1
- package/dist/cli/plugins/supabase.d.ts +3 -3
- package/dist/cli/plugins/supabase.js +2 -2
- package/dist/cli/plugins/ui.d.ts +1 -1
- package/dist/cli/plugins/ui.js +1 -1
- package/dist/{cloud-nXogJ7e1.js → cloud-DhpR9oxl.js} +2 -2
- package/dist/{codemod-Bp2bKwKe.js → codemod-BRY1780A.js} +2 -2
- package/dist/{codemod-DwL1E5of.js → codemod-DEsebwQn.js} +2 -2
- package/dist/{collect-BJZsuBW4.js → collect-BOh9Pxob.js} +1 -1
- package/dist/{collect-CpGnmGpL.js → collect-BYPq-0JU.js} +2 -2
- package/dist/collect-XcoQRyiA.js +1 -0
- package/dist/{compile-NM1GOb2q.js → compile-CT7x66_U.js} +1 -1
- package/dist/{completion-BQovwoTx.js → completion-CW1poYOM.js} +2 -2
- package/dist/{config-DSyn7r1l.js → config-DP7Stalz.js} +1 -1
- package/dist/{config-report--ae2r_MI.js → config-report-CnuPIG_V.js} +2 -2
- package/dist/{context-DmH-Eyvx.js → context-BdoA9DhS.js} +2 -2
- package/dist/{core-DKqrD_xW.js → core-tEfD0lwu.js} +1 -1
- package/dist/delivery/index.d.ts +1 -1
- package/dist/{diff-BIqibFnm.js → diff-CXRZ6qPa.js} +1 -1
- package/dist/{diff-n6LONVwL.js → diff-Cv9inVY5.js} +1 -1
- package/dist/{doctor-CIV882xS.js → doctor-B3rZsURs.js} +3 -3
- package/dist/{doctor-kbRrZD3Q.js → doctor-CkaAS-Uk.js} +74 -27
- package/dist/{execute-CE8P72Ez.js → execute-CdqPJ6SP.js} +3 -3
- package/dist/{gen-CuEt0o6p.js → gen-DCmo0Irk.js} +3 -3
- package/dist/gen-DnaCR5w3.js +1 -0
- package/dist/{gen-kind-BLIhHgD3.js → gen-kind-10IxFLdl.js} +1 -1
- package/dist/{generate-B-Hlc08D.js → generate-BuNebxmi.js} +2 -2
- package/dist/{generate-Dl75LKbW.js → generate-CYUj-cvA.js} +11 -11
- package/dist/{generate-options-BUh621MW.js → generate-options-AvKV0IXA.js} +6 -6
- package/dist/{hook-sql-Bxc_YRrd.js → hook-sql-Cunsdk5x.js} +6 -5
- package/dist/{import-BKTq4cxW.js → import-CDCWY5Ou.js} +1 -1
- package/dist/{index-Cq9N5B92.d.ts → index-BSJoxaOi.d.ts} +1 -1
- package/dist/{index-BXz-XXC3.d.ts → index-D1msamx_.d.ts} +1 -1
- package/dist/{index-CVuc3E1O.d.ts → index-eaNHkELi.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-B8GG9vjg.js → init-QA12XZy5.js} +3 -3
- package/dist/{init-D4YO8hVa.js → init-erhwH2o6.js} +1 -1
- package/dist/{json-schema-SDkWXxhu.d.ts → json-schema-DAeA-lJa.d.ts} +1 -1
- package/dist/{lazy-provider-CydlnKkS.d.ts → lazy-provider-C48LDq0q.d.ts} +1 -1
- package/dist/{lazy-provider-DG5rMeqL.js → lazy-provider-CVX534Kk.js} +1 -1
- package/dist/{login-OJdYkueH.js → login-BJmDn5p2.js} +3 -3
- package/dist/{login-Bl-SuTJA.js → login-OBqLmoA2.js} +1 -1
- package/dist/{manifest-BY8lK4l4.js → manifest-BY70KZmp.js} +35 -35
- package/dist/{migrate-CmTMk7rd.js → migrate-BwXtXUtE.js} +1 -1
- package/dist/next/index.d.ts +2 -2
- package/dist/next/plugin.d.ts +1 -1
- package/dist/next/plugin.js +1 -1
- package/dist/{openapi-Dpetebzt.js → openapi-B9Lpb4Px.js} +1 -1
- package/dist/{openapi-CvAjVdK7.js → openapi-DmEgZ9X8.js} +3 -3
- package/dist/{openapi-document-7K7rofeR.js → openapi-document-BJDwMJRO.js} +1 -1
- package/dist/{output-Cq0neio3.js → output-Cqtb8lW_.js} +1 -1
- package/dist/{output-files-DNid6TBl.js → output-files-D5D-8-4l.js} +1 -1
- package/dist/output-files-aPXXhV4q.js +1 -0
- package/dist/{ownership-CHND0y5L.js → ownership-fYxdtYs0.js} +1 -1
- package/dist/{permissions-ijDw4sO1.js → permissions-Bj3DRIEi.js} +1 -1
- package/dist/{plugin-1XW5OfAZ.d.ts → plugin-zOs9uqQj.d.ts} +1 -1
- package/dist/{policy-bundle-Dafv5nOx.js → policy-bundle-AFVba7nt.js} +3 -3
- package/dist/{policy-DzTU5233.js → policy-gS3zexF5.js} +1 -1
- package/dist/{powersync-BfMIjRqo.js → powersync-TraBGEw2.js} +1 -1
- package/dist/{powersync-IrDmJbqx.js → powersync-WvWQh2kU.js} +1 -1
- package/dist/{powersync-DNeS5JrT.js → powersync-d4eoYO3I.js} +6 -6
- package/dist/{prompt-CSXHcJxy.js → prompt-CPlJn_4-.js} +3 -3
- package/dist/{protected-action-D6T3eJyW.d.ts → protected-action-CEzNNtfi.d.ts} +2 -2
- package/dist/{protected-action-BMb0ftEu.js → protected-action-Dco5O_Kc.js} +1 -1
- package/dist/{provider-ClD4rfgT.js → provider-BYcoTKuS.js} +1 -1
- package/dist/{provider-CydlnKkS.d.ts → provider-C48LDq0q.d.ts} +1 -1
- package/dist/{provider-store-atQUfsVO.js → provider-store-Dq_olUjC.js} +1 -1
- package/dist/{provider-with-CSw4mBDU.js → provider-with-fxHItxDh.js} +1 -1
- package/dist/pull-Bn9a5g9Q.js +1 -0
- package/dist/{pull-DOwvDn98.js → pull-xhMWizWH.js} +1 -1
- package/dist/{push-Cb7PqXdO.js → push-DXh936bz.js} +1 -1
- package/dist/{pushed-policy-pH-EFWyx.d.ts → pushed-policy-APjMbYdV.d.ts} +1 -1
- package/dist/{rbac-CygtQB85.js → rbac-ir19O-e-.js} +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +3 -3
- package/dist/react/lazy.d.ts +4 -4
- package/dist/react/lazy.js +3 -3
- package/dist/react/provider-client-lazy.d.ts +1 -1
- package/dist/react/provider-client-lazy.js +1 -1
- package/dist/react/provider-client.d.ts +1 -1
- package/dist/react/provider-client.js +1 -1
- package/dist/react-native/index.d.ts +4 -4
- package/dist/react-native/index.js +2 -2
- package/dist/{resolve-names-D0hNHBp5.js → resolve-names-B3PM0l3J.js} +1 -1
- package/dist/{resolver-kdZ4HrpC.js → resolver-4qxIIHcC.js} +1 -1
- package/dist/{rls-BjEp-1Ob.js → rls-CYbk1UmD.js} +7 -7
- package/dist/{rls-BDmebOIp.js → rls-DEPAx9uQ.js} +1 -1
- package/dist/{rls-files-kGXtfslQ.js → rls-files-CxdOxMKl.js} +2 -2
- package/dist/{rls-options-CEpg5nDP.d.ts → rls-options-BZxfMDFo.d.ts} +1 -1
- package/dist/run-BtTQlk1R.js +1 -0
- package/dist/{run-DFe2I0T7.js → run-CI5opYjC.js} +3 -3
- package/dist/{saas-DzjKUQr5.js → saas-CUwmgUB8.js} +2 -2
- package/dist/{scan-DGCpdOuR.js → scan-BrILYXP9.js} +1 -1
- package/dist/{schema-wummOGn9.js → schema-C-Nn6M1P.js} +2 -2
- package/dist/{size-DF7xQ-nH.js → size-BqLd5oJ4.js} +1 -1
- package/dist/{skills-BntnICiJ.js → skills-C2SqRGXy.js} +2 -2
- package/dist/{skills-BQ9bEjPV.js → skills-Cuf4gcfr.js} +2 -2
- package/dist/{snapshot-size-DU7CvpMt.js → snapshot-size-B_chu2c1.js} +1 -1
- package/dist/{snapshot-size-D-pCR8x0.js → snapshot-size-CHig-Nq_.js} +1 -1
- package/dist/solid/index.d.ts +24 -24
- package/dist/solid/index.js +2 -2
- package/dist/{src-D6_T4zd7.js → src-BAYcigFU.js} +1 -1
- package/dist/{store-core-eqG8jijs.d.ts → store-core-DyNo_BwA.d.ts} +4 -2
- package/dist/{store-options-C8x39AHa.js → store-options-BtHrfJUU.js} +1 -1
- package/dist/{stores-DoA7ACkz.js → stores-BIMyclLg.js} +1 -1
- package/dist/{stores-4DOaL4ZP.d.ts → stores-DyFCruRC.d.ts} +2 -2
- package/dist/supabase/index.d.ts +6 -0
- package/dist/supabase/index.js +2 -2
- package/dist/{supabase-BI5ZhzLl.js → supabase-BzK3lplm.js} +4 -4
- package/dist/{supabase-CjUsihRL.js → supabase-V_yr_spa.js} +1 -1
- package/dist/{supabase-config-CbK7xX77.js → supabase-config-BrhSp-U7.js} +1 -1
- package/dist/supabase-hook-BJImmLmb.js +2 -0
- package/dist/{supabase-hook-nGLUvn5x.js → supabase-hook-C7v1wRUV.js} +4 -4
- package/dist/svelte/index.d.ts +3 -3
- package/dist/svelte/index.js +3 -3
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/runtime.js +1 -1
- package/dist/svelte/source.d.ts +3 -3
- package/dist/svelte/source.js +2 -2
- package/dist/{tables-CbVpFhC6.js → tables-D-tmMHww.js} +44 -7
- package/dist/testing/core.js +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +5 -5
- package/dist/testing/saas/index.js +2 -2
- package/dist/testing/saas/permissions.js +1 -1
- package/dist/{text-diff-CsglY49A.js → text-diff-DxKRNFlx.js} +2 -2
- package/dist/{types-C7QtRn3n.d.ts → types-4wjWMSFM.d.ts} +2 -2
- package/dist/{types-CVCRFYY_.d.ts → types-CQF-oYSz.d.ts} +1 -1
- package/dist/{types-3pRMqcvw.d.ts → types-PS10T9UK.d.ts} +1 -1
- package/dist/{types-nXo_oQYk.d.ts → types-config-Cq72dArb.d.ts} +740 -782
- package/dist/types-run-DG1H5vrX.d.ts +44 -0
- package/dist/unplugin/index.d.ts +1 -1
- package/dist/unplugin/index.js +1 -1
- package/dist/{usage-L1G1zlwz.js → usage-Bh-VP8co.js} +1 -1
- package/dist/usage-DpmLPRRx.js +1 -0
- package/dist/{usage-C1NKRxBJ.js → usage-XS56d_Kx.js} +3 -3
- package/dist/{verify-KX4Ohvs_.js → verify-aCeiREkh.js} +4 -4
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.js +2 -2
- package/dist/{watch-CiN6WU9k.js → watch-BNxvqCS4.js} +1 -1
- package/dist/watch-CGLmIdld.js +1 -0
- package/dist/{watch-DNIGANvR.js → watch-CnRyGEtp.js} +1 -1
- package/package.json +14 -14
- package/skills/permdock-data/references/queries-and-rls.md +1 -0
- package/dist/catalog-CgK_L4Qf.js +0 -1
- package/dist/collect-CPvCXMQ-.js +0 -1
- package/dist/gen-DbPS6a4x.js +0 -1
- package/dist/output-files-C5LFnQa4.js +0 -1
- package/dist/pull-Qh7JjiO7.js +0 -1
- package/dist/run-CdxQr6w8.js +0 -1
- package/dist/supabase-hook-b7tej2Vw.js +0 -2
- package/dist/usage-BAUV1SYl.js +0 -1
- package/dist/watch-NAUnUXph.js +0 -1
|
@@ -1948,11 +1948,11 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1948
1948
|
function countKeys(schema) {
|
|
1949
1949
|
let count = 0;
|
|
1950
1950
|
for (const key in schema) {
|
|
1951
|
-
if (key === "$ref") return
|
|
1951
|
+
if (key === "$ref") return 1e400;
|
|
1952
1952
|
count++;
|
|
1953
1953
|
if (SIMPLE_INLINED.has(key)) continue;
|
|
1954
1954
|
if (typeof schema[key] == "object") (0, util_1.eachItem)(schema[key], (sch) => count += countKeys(sch));
|
|
1955
|
-
if (count ===
|
|
1955
|
+
if (count === 1e400) return 1e400;
|
|
1956
1956
|
}
|
|
1957
1957
|
return count;
|
|
1958
1958
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as DEFAULT_APPROVAL_TTL, a as ApprovalDelegationSource, b as escalationOpenAt, c as ApprovalListQuery, d as ApprovalResumeFailureCause, f as ApprovalSignature, g as ApprovalVerdict, h as ApprovalSubjectSummary, i as ApprovalDelegation, l as ApprovalPage, m as ApprovalStore, n as ApprovalApprovers, o as ApprovalInspectResult, p as ApprovalStatus, r as ApprovalCancelMeta, s as ApprovalListFilter, t as APPROVAL_HEADER, u as ApprovalRequest, v as approvalQuorum, y as approverRelationKey } from "../types-BdNdMix7.js";
|
|
2
2
|
import { n as ApprovalErrorCode, r as isApprovalError, t as ApprovalError } from "../errors-KngVdJT9.js";
|
|
3
3
|
import { a as AccessReviewItemQuery, c as AccessReviewStore, i as AccessReviewItemPage, n as AccessReviewDecision, o as AccessReviewItemStatus, r as AccessReviewItem, s as AccessReviewStatus, t as AccessReview } from "../types-BFtFaI1W.js";
|
|
4
|
-
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-
|
|
4
|
+
import { $ as pageAccessReviewItems, A as SignApprovalOptions, B as IdempotentResponse, C as ApproverRelationsOptions, D as approvalView, E as approvalEntityTag, F as ApprovalsHandlerOptions, G as ApproverDirectory, H as idempotencyRecordKey, I as approvalsHandler, J as matchDelegation, K as ApprovalDelegationMatch, L as IdempotencyRecord, M as signApproval, N as APPROVAL_REQUEST_SCHEMA, O as ApprovalSignatureClaims, P as parseApprovalRequest, Q as memoryAccessReviewStore, R as IdempotencyStore, S as vouchApproval, T as ApprovalView, U as matchesIdempotencyRecord, V as idempotencyRecord, W as memoryIdempotencyStore, X as parseApprovalDelegation, Y as memoryApprovalDelegationSource, Z as MemoryAccessReviewStore, _ as resolveApproval, a as approverPermissions, at as AccessReviewErrorCode, b as storedApprovalToken, c as decodeApprovalCursor, ct as accessReviewerEligible, d as pageApprovals, dt as accessReviewsHandler, et as AccessReviewHolder, f as cancelApprovals, g as requestApproval, h as readApprovalHeader, i as memoryApprovalStore, it as AccessReviewError, j as approvalSignatureClaims, k as ApprovalSignatureEntry, l as encodeApprovalCursor, lt as decideAccessReviewItem, m as inspectApproval, n as applyApprovalVerdict, nt as StartAccessReviewInput, o as ApprovalCursorPosition, ot as isAccessReviewError, p as consumeApproval, q as MatchDelegationOptions, r as assertApprover, rt as startAccessReview, s as approvalPageSize, st as AccessReviewVerdict, t as MemoryApprovalStore, tt as AccessReviewOptions, u as listAllApprovals, ut as AccessReviewsHandlerOptions, v as resumeDecision, w as approverRelations, x as summarizeSubject, y as resumeFromHeader, z as IdempotentCall } from "../index-BSJoxaOi.js";
|
|
5
5
|
import { t as approvalFingerprint } from "../token-BgswTQzt.js";
|
|
6
6
|
export { APPROVAL_HEADER, APPROVAL_REQUEST_SCHEMA, type AccessReview, type AccessReviewDecision, AccessReviewError, type AccessReviewErrorCode, type AccessReviewHolder, type AccessReviewItem, type AccessReviewItemPage, type AccessReviewItemQuery, type AccessReviewItemStatus, type AccessReviewOptions, type AccessReviewStatus, type AccessReviewStore, type AccessReviewVerdict, type AccessReviewsHandlerOptions, type ApprovalApprovers, type ApprovalCancelMeta, type ApprovalCursorPosition, type ApprovalDelegation, type ApprovalDelegationMatch, type ApprovalDelegationSource, ApprovalError, type ApprovalErrorCode, type ApprovalInspectResult, type ApprovalListFilter, type ApprovalListQuery, type ApprovalPage, type ApprovalRequest, type ApprovalResumeFailureCause, type ApprovalSignature, type ApprovalSignatureClaims, type ApprovalSignatureEntry, type ApprovalStatus, type ApprovalStore, type ApprovalSubjectSummary, type ApprovalVerdict, type ApprovalView, type ApprovalsHandlerOptions, type ApproverDirectory, type ApproverRelationsOptions, DEFAULT_APPROVAL_TTL, type IdempotencyRecord, type IdempotencyStore, type IdempotentCall, type IdempotentResponse, type MatchDelegationOptions, type MemoryAccessReviewStore, type MemoryApprovalStore, type SignApprovalOptions, type StartAccessReviewInput, accessReviewerEligible, accessReviewsHandler, applyApprovalVerdict, approvalEntityTag, approvalFingerprint, approvalPageSize, approvalQuorum, approvalSignatureClaims, approvalView, approvalsHandler, approverPermissions, approverRelationKey, approverRelations, assertApprover, cancelApprovals, consumeApproval, decideAccessReviewItem, decodeApprovalCursor, encodeApprovalCursor, escalationOpenAt, idempotencyRecord, idempotencyRecordKey, inspectApproval, isAccessReviewError, isApprovalError, listAllApprovals, matchDelegation, matchesIdempotencyRecord, memoryAccessReviewStore, memoryApprovalDelegationSource, memoryApprovalStore, memoryIdempotencyStore, pageAccessReviewItems, pageApprovals, parseApprovalDelegation, parseApprovalRequest, readApprovalHeader, requestApproval, resolveApproval, resumeDecision, resumeFromHeader, signApproval, startAccessReview, storedApprovalToken, summarizeSubject, vouchApproval };
|
|
@@ -21,7 +21,7 @@ const check = defineLeaf({
|
|
|
21
21
|
...permissionsFlag
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags }) {
|
|
24
|
-
return (await import("./arazzo-
|
|
24
|
+
return (await import("./arazzo-Du3koIf5.js")).runArazzo({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
doc: given(flags.doc),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as arazzoFindings } from "./src-
|
|
1
|
+
import { _ as arazzoFindings } from "./src-BAYcigFU.js";
|
|
2
2
|
import { d as missingInput } from "./errors-DgLOqc6j.js";
|
|
3
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
3
|
+
import { t as DOCS_BASE } from "./manifest-BY70KZmp.js";
|
|
4
4
|
import { t as ARAZZO_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
5
5
|
import { i as readJsonFile } from "./files-DAR51W3J.js";
|
|
6
6
|
import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
|
|
@@ -98,7 +98,7 @@ const distance = (a, b) => {
|
|
|
98
98
|
return myers_x(a, b);
|
|
99
99
|
};
|
|
100
100
|
const closest = (str, arr) => {
|
|
101
|
-
let min_distance =
|
|
101
|
+
let min_distance = 1e400;
|
|
102
102
|
let min_index = 0;
|
|
103
103
|
for (let i = 0; i < arr.length; i++) {
|
|
104
104
|
const dist = distance(str, arr[i]);
|
|
@@ -389,6 +389,8 @@ type PermDockForResult = {
|
|
|
389
389
|
* is `authzVersion`, so the instance reads no `subject_for`.
|
|
390
390
|
*/
|
|
391
391
|
readonly subject?: unknown;
|
|
392
|
+
/** The tenant `subject` is restricted to, as `bsb.bootstrap()` reports it. */
|
|
393
|
+
readonly subjectTenant?: string | null;
|
|
392
394
|
};
|
|
393
395
|
/** Who an instance is for. */
|
|
394
396
|
type PermDockForInput = SupabaseSessionLike | ApiKeySession | SessionSnapshotLike | PermDockForResult | Subject | null | undefined;
|
|
@@ -3,7 +3,7 @@ import { r as isRecord, t as compact } from "../compact-C4LFuqbW.js";
|
|
|
3
3
|
import { o as flattenGrantee } from "../grantee-BPUG6f0r.js";
|
|
4
4
|
import { c as listPermissions, n as findPermission, o as isPermission } from "../permission-registry-DMYRZVcn.js";
|
|
5
5
|
import { i as dateAt, m as rfc3339, p as nowSeconds, u as isoAt } from "../time-r0CKBm57.js";
|
|
6
|
-
import { a as withMembers, i as ownedCaches, n as getPermissions$1, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "../resolver-
|
|
6
|
+
import { a as withMembers, i as ownedCaches, n as getPermissions$1, o as callRpc, r as subjectFromSupabaseClient, s as postgrestSources, t as createResolver } from "../resolver-4qxIIHcC.js";
|
|
7
7
|
import { s as ApprovalError } from "../types-DFZKovb3.js";
|
|
8
8
|
import { t as parseApprovalRequest } from "../parse-request-IEEzVFM8.js";
|
|
9
9
|
import { t as applyApprovalVerdict } from "../store-AH8bmaxW.js";
|
|
@@ -1310,13 +1310,14 @@ function claimsOf(request) {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
/**
|
|
1312
1312
|
* What a bootstrap read for this user, from better-supabase's runtime `seed`:
|
|
1313
|
-
* used only when it names the claims' user
|
|
1313
|
+
* used only when it names the claims' user, carries a version and covers
|
|
1314
|
+
* `tenant`: a seed restricted to another tenant is ignored.
|
|
1314
1315
|
*/
|
|
1315
|
-
function seedOf(runtime, claims) {
|
|
1316
|
+
function seedOf(runtime, claims, tenant) {
|
|
1316
1317
|
const seed = runtime?.seed;
|
|
1317
1318
|
if (seed === void 0 || !isRecord(claims)) return;
|
|
1318
1319
|
const { userId, version } = seed;
|
|
1319
|
-
return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? seed : void 0;
|
|
1320
|
+
return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 && (seed.tenant ?? tenant) === tenant ? seed : void 0;
|
|
1320
1321
|
}
|
|
1321
1322
|
const tenantOf = (request) => {
|
|
1322
1323
|
const { tenant } = request.context;
|
|
@@ -1343,7 +1344,7 @@ function authorizer(options) {
|
|
|
1343
1344
|
};
|
|
1344
1345
|
const resolve = resolverOf(options, "authorizer");
|
|
1345
1346
|
const instanceFor = (claims, tenant, intent, runtime) => {
|
|
1346
|
-
const seed = seedOf(runtime, claims);
|
|
1347
|
+
const seed = seedOf(runtime, claims, tenant);
|
|
1347
1348
|
return resolve(claims === void 0 ? null : seed === void 0 ? {
|
|
1348
1349
|
kind: "user",
|
|
1349
1350
|
claims
|
|
@@ -1354,7 +1355,8 @@ function authorizer(options) {
|
|
|
1354
1355
|
},
|
|
1355
1356
|
tenant,
|
|
1356
1357
|
authzVersion: seed.version,
|
|
1357
|
-
subject: seed.subject
|
|
1358
|
+
subject: seed.subject,
|
|
1359
|
+
subjectTenant: seed.tenant
|
|
1358
1360
|
}, {
|
|
1359
1361
|
tenant,
|
|
1360
1362
|
intent
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applyFiles } from "./files-DuV7wRim.js";
|
|
2
|
-
import { a as nonEmptyOr } from "./output-
|
|
2
|
+
import { a as nonEmptyOr } from "./output-Cqtb8lW_.js";
|
|
3
3
|
import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-Bp4HvsRg.js";
|
|
4
4
|
import { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
|
|
|
16
16
|
...outFlag
|
|
17
17
|
},
|
|
18
18
|
async run(ctx, { flags }) {
|
|
19
|
-
const { runCasbinImport } = await import("./casbin-
|
|
19
|
+
const { runCasbinImport } = await import("./casbin-B5UnU9nM.js");
|
|
20
20
|
return runCasbinImport({
|
|
21
21
|
cwd: ctx.cwd,
|
|
22
22
|
model: given(flags.model),
|
package/dist/catalog/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { c as checkHostedGrant, n as HostedGrantCheck, o as PolicyDocument } fro
|
|
|
2
2
|
import { D as Policy, Sr as Principal, s as ApprovalRequirement } from "../policy-types-93NwI8iI.js";
|
|
3
3
|
import { a as CatalogFinding, i as CatalogEventData } from "../sink-BD34OS8T.js";
|
|
4
4
|
import { a as CatalogDocument, c as CatalogOperation, d as CatalogRole, f as CatalogScope, h as CatalogValidity, i as CatalogDelegation, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, o as CatalogGrant, p as CatalogSupportAccess, r as CatalogBreakGlass, s as CatalogOAuthScope, t as CatalogActivation, u as CatalogResource } from "../types-CWmBZtQN.js";
|
|
5
|
-
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-
|
|
5
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-APjMbYdV.js";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
7
|
/**
|
|
8
8
|
* The hosted grants of `document` that `policy` no longer accepts, as drift
|
|
@@ -30,7 +30,7 @@ const catalog = defineLeaf({
|
|
|
30
30
|
...checkFlag
|
|
31
31
|
},
|
|
32
32
|
async run(ctx, { flags }) {
|
|
33
|
-
const { catalogFile, runCatalog } = await import("./catalog-
|
|
33
|
+
const { catalogFile, runCatalog } = await import("./catalog-DCjJIl3n.js");
|
|
34
34
|
const result = await runCatalog({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as catalogFile, n as runCatalog } from "./catalog-DXSP1we9.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
2
2
|
import { a as catalogSchemaDocument, n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, s as formatCatalogMarkdown, t as buildCatalog } from "./catalog-doc-Bp5khmCG.js";
|
|
3
3
|
import { t as loadConfiguredOperations } from "./catalog-operations-dxuOZr4J.js";
|
|
4
|
-
import { i as scanSources, r as runCollect } from "./collect-
|
|
4
|
+
import { i as scanSources, r as runCollect } from "./collect-BOh9Pxob.js";
|
|
5
5
|
import { n as fileSummary, t as applyFiles } from "./files-DuV7wRim.js";
|
|
6
6
|
import { r as listSourceFiles, t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
7
7
|
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
|
package/dist/cli/bin.js
CHANGED
|
@@ -11,7 +11,7 @@ if (argv.length === 1 && (argv[0] === "--version" || argv[0] === "-v")) {
|
|
|
11
11
|
const [{ isCi }, { trapSignals }, { run }, { streamHasColors }] = await Promise.all([
|
|
12
12
|
import("../env-hbYumkRp.js"),
|
|
13
13
|
import("../signals-a1NxAP0X.js"),
|
|
14
|
-
import("../run-
|
|
14
|
+
import("../run-BtTQlk1R.js"),
|
|
15
15
|
import("../style-Crf-90o6.js")
|
|
16
16
|
]);
|
|
17
17
|
const signals = trapSignals();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isRecord } from "../../compact-C4LFuqbW.js";
|
|
2
2
|
import { a as describeError } from "../../errors-DgLOqc6j.js";
|
|
3
3
|
import { i as readConfig } from "../../config-iyy90IOU.js";
|
|
4
|
-
import { t as executeGenerate } from "../../execute-
|
|
4
|
+
import { t as executeGenerate } from "../../execute-CdqPJ6SP.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
// src/cli/generate/watch-worker.ts
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as RlsApiKeys, a as PermDockConfig, c as RlsConfig, d as RlsMembershipTable, f as RlsMemberships, g as RlsTarget, h as RlsSuspension, i as GenKind, l as RlsDialect, m as RlsSuspendedScope, n as CollectConfig, p as RlsSuspendedMembership, r as GenConfig, s as RlsActiveRow, t as CatalogConfig, u as RlsFunctionMapping } from "../types-config-Cq72dArb.js";
|
|
2
2
|
import { o as OperationMap } from "../operations-BS8ExH5A.js";
|
|
3
3
|
import { E as PermissionTree } from "../vocabulary-FYgI_NoI.js";
|
|
4
|
-
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-CWmBZtQN.js";
|
|
5
4
|
import { D as Policy } from "../policy-types-93NwI8iI.js";
|
|
6
5
|
import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-DHCQEPj8.js";
|
|
7
|
-
import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-
|
|
8
|
-
import {
|
|
6
|
+
import { i as PolicyModel, n as PluginTask, r as definePlugin, t as PermDockPlugin } from "../plugin-zOs9uqQj.js";
|
|
7
|
+
import { r as RunResult, t as CliIo } from "../types-run-DG1H5vrX.js";
|
|
8
|
+
import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-APjMbYdV.js";
|
|
9
|
+
import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-CWmBZtQN.js";
|
|
9
10
|
/**
|
|
10
11
|
* The absolute path `permdock collect` writes the catalog to: `collect.out`,
|
|
11
12
|
* then `catalog.out`, then `permissions.catalog.json`, resolved against `cwd`.
|
package/dist/cli/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { t as catalogPath } from "../catalog-path-bG0XxHMu.js";
|
|
|
2
2
|
import { t as defineConfig } from "../config-iyy90IOU.js";
|
|
3
3
|
import { t as definePlugin } from "../plugin-MQVfUBUS.js";
|
|
4
4
|
import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-C-kThnKN.js";
|
|
5
|
-
import { t as run } from "../run-
|
|
5
|
+
import { t as run } from "../run-CI5opYjC.js";
|
|
6
6
|
import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-rpB6k77P.js";
|
|
7
7
|
// src/cli/token-schemas.ts
|
|
8
8
|
const ID = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
2
2
|
import { n as GenKindPluginOptions, t as ConstantsPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/**
|
|
4
4
|
* Scope, role, permission and operation names and topic and path builders:
|
package/dist/cli/plugins/app.js
CHANGED
|
@@ -32,7 +32,7 @@ function openapi(options = {}) {
|
|
|
32
32
|
return operationsFile(source.cwd, options.routes, task.out);
|
|
33
33
|
}
|
|
34
34
|
if (options.doc === void 0) return [];
|
|
35
|
-
const { openapiDocument } = await import("../../openapi-document-
|
|
35
|
+
const { openapiDocument } = await import("../../openapi-document-BJDwMJRO.js");
|
|
36
36
|
return openapiDocument(task, options, source);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -18,7 +18,7 @@ function powersync(options = {}) {
|
|
|
18
18
|
}],
|
|
19
19
|
emit: async (task, _model, source) => {
|
|
20
20
|
if (source === void 0) return [];
|
|
21
|
-
const { powersyncFiles } = await import("../../powersync-
|
|
21
|
+
const { powersyncFiles } = await import("../../powersync-WvWQh2kU.js");
|
|
22
22
|
return powersyncFiles(source.policy, source.config, task.out).files.map((file) => ({
|
|
23
23
|
path: file.path,
|
|
24
24
|
contents: file.text
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
2
|
-
import { t as RlsPluginOptions } from "../../rls-options-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
2
|
+
import { t as RlsPluginOptions } from "../../rls-options-BZxfMDFo.js";
|
|
3
3
|
/**
|
|
4
4
|
* The RLS plugin. The factory records options; the SQL generator loads on emit,
|
|
5
5
|
* so importing `rls` does not load it.
|
package/dist/cli/plugins/rls.js
CHANGED
|
@@ -19,7 +19,7 @@ function rls(options = {}) {
|
|
|
19
19
|
}],
|
|
20
20
|
config: (config) => withRlsOutputs(config, options),
|
|
21
21
|
emit: async (task, _model, source) => {
|
|
22
|
-
const { filesForRls } = await import("../../rls-files-
|
|
22
|
+
const { filesForRls } = await import("../../rls-files-CxdOxMKl.js");
|
|
23
23
|
return filesForRls(task, options, source);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
2
2
|
import { n as GenKindPluginOptions, r as ZodPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/** Row validators as Zod schemas, from the model's JSON Schema. */
|
|
4
4
|
export declare function zod(options?: ZodPluginOptions): PermDockPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { l as RlsDialect } from "../../types-config-Cq72dArb.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
3
3
|
type ScimPluginOptions = {
|
|
4
4
|
readonly schema?: string;
|
|
5
5
|
readonly dialect?: RlsDialect;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { o as SupabaseSchemas } from "../../types-config-Cq72dArb.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
3
3
|
type SupabaseHookPluginOptions = {
|
|
4
4
|
readonly out?: string;
|
|
5
5
|
readonly schemas?: SupabaseSchemas;
|
|
@@ -18,7 +18,7 @@ function supabaseHook(options = {}) {
|
|
|
18
18
|
config: (config) => withHookOut(config, options.out),
|
|
19
19
|
emit: async (_task, _model, source) => {
|
|
20
20
|
if (source === void 0) return [];
|
|
21
|
-
const { runSupabase } = await import("../../supabase-hook-
|
|
21
|
+
const { runSupabase } = await import("../../supabase-hook-BJImmLmb.js");
|
|
22
22
|
const outcome = await runSupabase({
|
|
23
23
|
cwd: source.cwd,
|
|
24
24
|
config: source.config,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
3
|
-
import { t as RlsPluginOptions } from "../../rls-options-
|
|
1
|
+
import { o as SupabaseSchemas } from "../../types-config-Cq72dArb.js";
|
|
2
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
3
|
+
import { t as RlsPluginOptions } from "../../rls-options-BZxfMDFo.js";
|
|
4
4
|
/** The Custom Access Token hook the plugin writes; `false` skips it. */
|
|
5
5
|
type SupabaseHookOption = false | {
|
|
6
6
|
readonly out?: string;
|
|
@@ -37,14 +37,14 @@ function supabase(options = {}) {
|
|
|
37
37
|
config: (config) => withHookOut(withRlsOutputs(config, options), hookOut),
|
|
38
38
|
emit: async (task, _model, source) => {
|
|
39
39
|
if (task.id === "sql") {
|
|
40
|
-
const { filesForRls } = await import("../../rls-files-
|
|
40
|
+
const { filesForRls } = await import("../../rls-files-CxdOxMKl.js");
|
|
41
41
|
return filesForRls(task, {
|
|
42
42
|
...rlsOptions,
|
|
43
43
|
dialect: "supabase"
|
|
44
44
|
}, source);
|
|
45
45
|
}
|
|
46
46
|
if (source === void 0) return [];
|
|
47
|
-
const { runSupabase } = await import("../../supabase-hook-
|
|
47
|
+
const { runSupabase } = await import("../../supabase-hook-BJImmLmb.js");
|
|
48
48
|
const hookOptions = hook === false || hook === void 0 ? {} : hook;
|
|
49
49
|
const outcome = await runSupabase({
|
|
50
50
|
cwd: source.cwd,
|
package/dist/cli/plugins/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as PermDockPlugin } from "../../plugin-
|
|
1
|
+
import { t as PermDockPlugin } from "../../plugin-zOs9uqQj.js";
|
|
2
2
|
import { n as GenKindPluginOptions } from "../../gen-kind-DFQnQwFN.js";
|
|
3
3
|
/** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
|
|
4
4
|
export declare function reactHooks(options?: GenKindPluginOptions): PermDockPlugin;
|
package/dist/cli/plugins/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as kindPlugin } from "../../gen-kind-
|
|
1
|
+
import { t as kindPlugin } from "../../gen-kind-10IxFLdl.js";
|
|
2
2
|
// src/cli/plugins/ui.ts
|
|
3
3
|
/** `permdock/react` bound to the policy's vocabulary. Carries `"use client"`. */
|
|
4
4
|
function reactHooks(options = {}) {
|
|
@@ -41,7 +41,7 @@ const push = defineLeaf({
|
|
|
41
41
|
},
|
|
42
42
|
async run(ctx, { flags }) {
|
|
43
43
|
const env = await withStdinSecret(ctx, "key", flags["key-stdin"], "PERMDOCK_CLOUD_KEY");
|
|
44
|
-
return (await import("./push-
|
|
44
|
+
return (await import("./push-DXh936bz.js")).runCloud({
|
|
45
45
|
cwd: ctx.cwd,
|
|
46
46
|
config: ctx.config,
|
|
47
47
|
url: given(flags.url),
|
|
@@ -70,7 +70,7 @@ const pull = defineLeaf({
|
|
|
70
70
|
},
|
|
71
71
|
async run(ctx, { flags }) {
|
|
72
72
|
const env = await withStdinSecret(ctx, "token", flags["token-stdin"], "PERMDOCK_CLOUD_TOKEN");
|
|
73
|
-
return (await import("./pull-
|
|
73
|
+
return (await import("./pull-Bn9a5g9Q.js")).runCloudPull({
|
|
74
74
|
cwd: ctx.cwd,
|
|
75
75
|
config: ctx.config,
|
|
76
76
|
url: given(flags.url),
|
|
@@ -3,9 +3,9 @@ import { i as refuseDirty, t as applyFiles } from "./files-DuV7wRim.js";
|
|
|
3
3
|
import { a as rel } from "./files-DAR51W3J.js";
|
|
4
4
|
import { t as catalogFingerprint } from "./catalog-fingerprint-DAWZARy6.js";
|
|
5
5
|
import { r as isRecord } from "./compact-C4LFuqbW.js";
|
|
6
|
-
import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-
|
|
6
|
+
import { n as flagSpellings, o as GLOBAL_FLAGS } from "./args-Bc0HLiD4.js";
|
|
7
7
|
import { c as generateFlags, f as policyFlag, i as dryRunFlag, r as dbUrlFlags, t as checkFlag } from "./flags-C0e-BzGW.js";
|
|
8
|
-
import { n as ROOT } from "./manifest-
|
|
8
|
+
import { n as ROOT } from "./manifest-BY70KZmp.js";
|
|
9
9
|
import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
10
10
|
import { n as defaultSqlCommand } from "./sql-T4GaBh9X.js";
|
|
11
11
|
import { t as beforeFirst } from "./text-D704xHVl.js";
|
|
@@ -7,7 +7,7 @@ const codemod = defineLeaf({
|
|
|
7
7
|
description: "The release to migrate to (0.5)",
|
|
8
8
|
required: true,
|
|
9
9
|
async complete() {
|
|
10
|
-
return (await import("./codemod-
|
|
10
|
+
return (await import("./codemod-BRY1780A.js")).codemodVersions();
|
|
11
11
|
}
|
|
12
12
|
}, {
|
|
13
13
|
name: "paths",
|
|
@@ -22,7 +22,7 @@ const codemod = defineLeaf({
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
async run(ctx, { flags, args, rest }) {
|
|
25
|
-
return (await import("./codemod-
|
|
25
|
+
return (await import("./codemod-BRY1780A.js")).runCodemod({
|
|
26
26
|
cwd: ctx.cwd,
|
|
27
27
|
version: args["version"],
|
|
28
28
|
paths: rest,
|
|
@@ -2,7 +2,7 @@ import { n as catalogForCompare, o as formatCatalogJson, r as catalogForDrift, t
|
|
|
2
2
|
import { t as loadConfiguredOperations } from "./catalog-operations-dxuOZr4J.js";
|
|
3
3
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
4
4
|
import { a as describeError, n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
|
-
import { t as shortDiff } from "./text-diff-
|
|
5
|
+
import { t as shortDiff } from "./text-diff-DxKRNFlx.js";
|
|
6
6
|
import { a as rel, r as listSourceFiles, s as writeFileEnsuringDir, t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
7
7
|
import { a as loadModule, i as loadConfiguredPolicy, r as leavesOf, s as pickNamed, t as asPermissionTree } from "./load-CZnlAyZ8.js";
|
|
8
8
|
import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-CaQWp9HA.js";
|
|
@@ -29,9 +29,9 @@ const collect = defineLeaf({
|
|
|
29
29
|
};
|
|
30
30
|
if (flags.watch) {
|
|
31
31
|
if (flags.check) throw new CliError("usage", "collect: --watch writes the catalog; drop --check", { code: "invalid_value" });
|
|
32
|
-
return (await import("./watch-
|
|
32
|
+
return (await import("./watch-CGLmIdld.js")).watchCollect(ctx, overrides);
|
|
33
33
|
}
|
|
34
|
-
const result = await (await import("./collect-
|
|
34
|
+
const result = await (await import("./collect-XcoQRyiA.js")).runCollect({
|
|
35
35
|
cwd: ctx.cwd,
|
|
36
36
|
config: ctx.config,
|
|
37
37
|
collect: overrides,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as runCollect } from "./collect-BOh9Pxob.js";
|
|
@@ -11,7 +11,7 @@ import { l as isConditionRef, o as hasConditionOp } from "./refs-Cix9Zjis.js";
|
|
|
11
11
|
import { t as requiresApproval } from "./approval-required-B-R4Yw3J.js";
|
|
12
12
|
import { c as jsonSchemaOf } from "./catalog-doc-Bp5khmCG.js";
|
|
13
13
|
import { i as configError } from "./errors-DgLOqc6j.js";
|
|
14
|
-
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-
|
|
14
|
+
import { F as capabilityAccessSql, L as apiKeyAllowsCall, S as accessSql, f as requiresSql, k as tokenScopeAllowsCall } from "./tables-D-tmMHww.js";
|
|
15
15
|
import { t as connectPgPool } from "./pg-CA651850.js";
|
|
16
16
|
import { n as interactiveAllowsCall, ut as scopeTable } from "./interactive-only-CQsgMc1E.js";
|
|
17
17
|
import { a as quoteIdent, c as quoteTable, o as quoteLiteral } from "./quote-BKrTBbcH.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as suggestion, o as GLOBAL_FLAGS } from "./args-
|
|
1
|
+
import { a as suggestion, o as GLOBAL_FLAGS } from "./args-Bc0HLiD4.js";
|
|
2
2
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
3
|
-
import { a as resolve } from "./manifest-
|
|
3
|
+
import { a as resolve } from "./manifest-BY70KZmp.js";
|
|
4
4
|
import { n as CliError } from "./errors-DgLOqc6j.js";
|
|
5
5
|
// src/cli/core/completion.ts
|
|
6
6
|
const SHELLS = [
|
|
@@ -10,7 +10,7 @@ const config = defineLeaf({
|
|
|
10
10
|
...failOnFlag
|
|
11
11
|
},
|
|
12
12
|
async run(ctx, { flags }) {
|
|
13
|
-
const { runConfig } = await import("./config-report
|
|
13
|
+
const { runConfig } = await import("./config-report-CnuPIG_V.js");
|
|
14
14
|
return runConfig({
|
|
15
15
|
cwd: ctx.cwd,
|
|
16
16
|
config: ctx.config,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./sources-DnjJPGfb.js";
|
|
2
2
|
import { t as catalogPath } from "./catalog-path-bG0XxHMu.js";
|
|
3
|
-
import { n as guessPermissions, t as barrelFile } from "./collect-
|
|
4
|
-
import { t as DOCS_BASE } from "./manifest-
|
|
3
|
+
import { n as guessPermissions, t as barrelFile } from "./collect-BOh9Pxob.js";
|
|
4
|
+
import { t as DOCS_BASE } from "./manifest-BY70KZmp.js";
|
|
5
5
|
import { r as CONFIG_REPORT_SCHEMA } from "./version-D-jWyJb9.js";
|
|
6
6
|
import { a as rel, t as defaultSrcPath } from "./files-DAR51W3J.js";
|
|
7
7
|
import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-PCJiir_3.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as switchTenant, t as providerStore } from "./provider-store-
|
|
2
|
-
import { l as isPromiseLike } from "./store-options-
|
|
1
|
+
import { n as switchTenant, t as providerStore } from "./provider-store-Dq_olUjC.js";
|
|
2
|
+
import { l as isPromiseLike } from "./store-options-BtHrfJUU.js";
|
|
3
3
|
import { t as compact } from "./compact-C4LFuqbW.js";
|
|
4
4
|
import { getContext, onDestroy, setContext } from "svelte";
|
|
5
5
|
import { toStore } from "svelte/store";
|
|
@@ -4,7 +4,7 @@ import { t as getPermDock } from "./permdock-BueSeg7X.js";
|
|
|
4
4
|
import { b as membershipsClaim } from "./evaluate-D8SdfP3h.js";
|
|
5
5
|
import { d as scopeList } from "./scopes-B-KX9EI8.js";
|
|
6
6
|
import { c as quoteSqlTable, n as defaultSqlCommand, o as quoteSqlIdent, t as SQL_IDENT } from "./sql-T4GaBh9X.js";
|
|
7
|
-
import { E as memoryCustomRoleSource } from "./src-
|
|
7
|
+
import { E as memoryCustomRoleSource } from "./src-BAYcigFU.js";
|
|
8
8
|
import { n as parseSnapshot } from "./snapshot-DckMnHk8.js";
|
|
9
9
|
import "./budget-BH81q2cj.js";
|
|
10
10
|
// src/testing/policy-matrix.ts
|
package/dist/delivery/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gn as DeliveryFailureCause, mn as DeliveryChannel, vn as EmailCategory } from "../policy-types-93NwI8iI.js";
|
|
2
2
|
import { i as approvalUrlFor, n as ApprovalUrl, r as approvalPrompt, t as ApprovalPrompt } from "../approval-prompt-C-vjNZyd.js";
|
|
3
3
|
import { _ as TransportOptions, a as DeliveryReport, c as DeliveryTransport, d as EmailTransport, f as EmailUnsubscribe, g as TransportMessages, h as TransportItem, i as DeliveryMessages, l as DeliveryTransports, m as Recipient, n as ChatTransport, o as DeliveryResult, p as OutgoingEmail, r as DeliverOptions, s as DeliveryTarget, t as ChatMessage, u as EmailMessage, v as WebhookMessage, y as WebhookTransport } from "../types-OzSal_K_.js";
|
|
4
|
-
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-
|
|
4
|
+
import { C as audience, S as SubscriberEvent, _ as ParseConnectorResult, a as DeliveryPermDock, b as Audience, c as MemoryDelivery, d as memoryDeliveryTransport, f as CONNECTOR_SCHEMA, g as ConnectorKind, h as ConnectorIssue, i as isDeliveryTarget, l as MemoryDeliveryTransport, m as Connector, n as webhookTransport, o as DeliveryPermDockOptions, p as CONNECTOR_KINDS, r as isAddrSpec, s as createPermDock, t as WebhookTransportOptions, u as MemoryDeliveryTransportOptions, v as SiemDestination, w as subscribersFor, x as AudienceOptions, y as parseConnector } from "../index-eaNHkELi.js";
|
|
5
5
|
export { type ApprovalPrompt, type ApprovalUrl, type Audience, type AudienceOptions, CONNECTOR_KINDS, CONNECTOR_SCHEMA, type ChatMessage, type ChatTransport, type Connector, type ConnectorIssue, type ConnectorKind, type DeliverOptions, type DeliveryChannel, type DeliveryFailureCause, type DeliveryMessages, type DeliveryPermDock, type DeliveryPermDockOptions, type DeliveryReport, type DeliveryResult, type DeliveryTarget, type DeliveryTransport, type DeliveryTransports, type EmailCategory, type EmailMessage, type EmailTransport, type EmailUnsubscribe, type MemoryDelivery, type MemoryDeliveryTransport, type MemoryDeliveryTransportOptions, type OutgoingEmail, type ParseConnectorResult, type Recipient, type SiemDestination, type SubscriberEvent, type TransportItem, type TransportMessages, type TransportOptions, type WebhookMessage, type WebhookTransport, type WebhookTransportOptions, approvalPrompt, approvalUrlFor, audience, createPermDock, isAddrSpec, isDeliveryTarget, memoryDeliveryTransport, parseConnector, subscribersFor, webhookTransport };
|
|
@@ -4,7 +4,7 @@ import { t as canonicalJson } from "./canonical-json-BibZkXtE.js";
|
|
|
4
4
|
import { g as secondsOf } from "./time-r0CKBm57.js";
|
|
5
5
|
import { n as findPermission } from "./permission-registry-DMYRZVcn.js";
|
|
6
6
|
import { t as getPermDock } from "./permdock-BueSeg7X.js";
|
|
7
|
-
import { E as memoryCustomRoleSource } from "./src-
|
|
7
|
+
import { E as memoryCustomRoleSource } from "./src-BAYcigFU.js";
|
|
8
8
|
import { t as buildCatalog } from "./catalog-doc-Bp5khmCG.js";
|
|
9
9
|
import { f as usageResult, i as configError } from "./errors-DgLOqc6j.js";
|
|
10
10
|
import { n as fixtureSubject, r as loadFixtures, t as fixtureRow } from "./fixtures-Bm0G0A7H.js";
|
|
@@ -21,7 +21,7 @@ const diff = defineLeaf({
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
async run(ctx, { flags, args }) {
|
|
24
|
-
return (await import("./diff-
|
|
24
|
+
return (await import("./diff-CXRZ6qPa.js")).runDiff({
|
|
25
25
|
cwd: ctx.cwd,
|
|
26
26
|
config: ctx.config,
|
|
27
27
|
sources: [args["before"], args["after"]].filter((value) => value !== void 0),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as defineLeaf } from "./command-9GAzSI7E.js";
|
|
2
2
|
import { a as failOnFlag, n as dbUrl, r as dbUrlFlags } from "./flags-C0e-BzGW.js";
|
|
3
|
-
import { n as ask, t as CANCELLED } from "./prompt-
|
|
3
|
+
import { n as ask, t as CANCELLED } from "./prompt-CPlJn_4-.js";
|
|
4
4
|
// src/cli/commands/doctor.ts
|
|
5
5
|
const doctor = defineLeaf({
|
|
6
6
|
flags: {
|
|
@@ -10,7 +10,7 @@ const doctor = defineLeaf({
|
|
|
10
10
|
description: "Check codes or groups to run",
|
|
11
11
|
valueHint: "code",
|
|
12
12
|
async complete() {
|
|
13
|
-
const { DOCTOR_CHECKS } = await import("./doctor-
|
|
13
|
+
const { DOCTOR_CHECKS } = await import("./doctor-CkaAS-Uk.js");
|
|
14
14
|
return [.../* @__PURE__ */ new Set([...DOCTOR_CHECKS.map(({ code }) => code), ...DOCTOR_CHECKS.flatMap(({ groups }) => groups)])];
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -35,7 +35,7 @@ const doctor = defineLeaf({
|
|
|
35
35
|
if (answer === void 0) return CANCELLED;
|
|
36
36
|
fix = answer;
|
|
37
37
|
}
|
|
38
|
-
return (await import("./doctor-
|
|
38
|
+
return (await import("./doctor-CkaAS-Uk.js")).runDoctor({
|
|
39
39
|
cwd: ctx.cwd,
|
|
40
40
|
config: ctx.config,
|
|
41
41
|
only: flags.only,
|