permdock 0.22.0 → 0.22.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.
Files changed (72) hide show
  1. package/dist/{adoption-scan-_bHLMnVQ.js → adoption-scan-DzX5Gqcg.js} +1 -1
  2. package/dist/{arazzo-BXD-VJU_.js → arazzo-BkjyGVF0.js} +1 -1
  3. package/dist/{arazzo-Ct0PGblq.js → arazzo-CTx11zFc.js} +1 -1
  4. package/dist/better-supabase/index.d.ts +1 -1
  5. package/dist/better-supabase/index.js +13 -7
  6. package/dist/{casbin-imBS3UIf.js → casbin-BFOuRptJ.js} +1 -1
  7. package/dist/{casbin-D5evU3lX.js → casbin-BpS9ABSO.js} +1 -1
  8. package/dist/cli/bin.js +1 -1
  9. package/dist/cli/index.d.ts +1 -1
  10. package/dist/cli/index.js +1 -1
  11. package/dist/{cloud-DWCeStPH.js → cloud-DXcQXWDi.js} +2 -2
  12. package/dist/{codemod-BaPmaCYQ.js → codemod-CxyKuniX.js} +1 -1
  13. package/dist/{codemod-B7QKJ_ak.js → codemod-DJ0WqXWk.js} +2 -2
  14. package/dist/{completion-DOUMyCwa.js → completion-BHVvAJ6Q.js} +1 -1
  15. package/dist/{config-DRp-E8Ly.js → config-2grt3oll.js} +1 -1
  16. package/dist/{config-report-Bh_nLdAE.js → config-report-Cg5Y5j0h.js} +1 -1
  17. package/dist/{doctor-BBMW5ZT_.js → doctor-DaRoSPT0.js} +9 -9
  18. package/dist/{doctor-DhqSiPkq.js → doctor-iIbdUK8F.js} +2 -2
  19. package/dist/{gen-WdycZ_-b.js → gen-Cw8goef4.js} +1 -1
  20. package/dist/{gen-DXXoFjyf.js → gen-DFpWGJWF.js} +1 -1
  21. package/dist/{import-BE5sDazm.js → import-DDegvwDI.js} +1 -1
  22. package/dist/{init-CqGHcvyR.js → init-D_T_zgFg.js} +1 -1
  23. package/dist/{init-B_S8Xdz1.js → init-Dz552ZPp.js} +3 -3
  24. package/dist/{login-CzwlsBEO.js → login-B2usNw0X.js} +1 -1
  25. package/dist/{login-DoLxv1s5.js → login-DIVe6QdP.js} +3 -3
  26. package/dist/{manifest-B5yF3CIq.d.ts → manifest-C6eFl3Vo.d.ts} +1 -0
  27. package/dist/{manifest-BAf7cgRx.js → manifest-CbHnl4I_.js} +32 -32
  28. package/dist/{manifest-BdzBobNK.js → manifest-D44OkoLk.js} +1 -1
  29. package/dist/{manifest-schema-CsFsYLF-.js → manifest-schema-DUheHWcp.js} +4 -0
  30. package/dist/next/plugin.d.ts +1 -1
  31. package/dist/{openapi-EmvKwuWj.js → openapi-5moP9sTG.js} +1 -1
  32. package/dist/{openapi-DroBcLJZ.js → openapi-DcvNnLFa.js} +2 -2
  33. package/dist/{output-CYgfpT6o.js → output-RIUEs3_S.js} +1 -1
  34. package/dist/{powersync-Dpa5AnnN.js → powersync-BUO5uQve.js} +1 -1
  35. package/dist/{powersync-BeI0VmEK.js → powersync-C5_aFFaU.js} +2 -2
  36. package/dist/powersync-DhspazC8.js +1 -0
  37. package/dist/{pull-3tkn25ll.js → pull-BkT7tTKb.js} +2 -2
  38. package/dist/pull-COPm1W-l.js +1 -0
  39. package/dist/{push-dMyKdlEm.js → push-CEPcWdTJ.js} +1 -1
  40. package/dist/{resolve-names-BnGJU88N.js → resolve-names-bzYlAXRt.js} +8 -3
  41. package/dist/{rls-qrehUPf_.js → rls-DTf8X__h.js} +6 -6
  42. package/dist/{rls-DIYSRnDZ.js → rls-v6V75yf_.js} +1 -1
  43. package/dist/{run-oNqBe0gc.js → run-CgSQS9RF.js} +2 -2
  44. package/dist/run-ItR_bQGz.js +1 -0
  45. package/dist/{scan-BYXqcgON.js → scan-BY3Pp1PS.js} +1 -1
  46. package/dist/{schema-Wf-SvlHG.js → schema-B_HsJKm2.js} +1 -1
  47. package/dist/{skills-B9U465B7.js → skills-Bj2wk38p.js} +1 -1
  48. package/dist/{skills-417bOj4o.js → skills-Clo4qYLn.js} +1 -1
  49. package/dist/{sources-BfTza0zT.d.ts → sources-CdYZBVcW.d.ts} +1 -1
  50. package/dist/supabase/index.d.ts +2 -2
  51. package/dist/supabase/index.js +1 -1
  52. package/dist/{supabase-D0J99yqL.js → supabase-CJv6K3iz.js} +2 -2
  53. package/dist/{supabase-hook-Bh5syR9N.js → supabase-hook-DLQMugW8.js} +1 -1
  54. package/dist/supabase-hook-vZADjjfN.js +1 -0
  55. package/dist/{supautils-ChXR-4Or.js → supautils-BHKsP7l-.js} +3 -3
  56. package/dist/testing/fixtures/index.d.ts +1 -1
  57. package/dist/testing/fixtures/index.js +1 -1
  58. package/dist/testing/index.d.ts +1 -1
  59. package/dist/testing/index.js +1 -1
  60. package/dist/{types-CS1DI_Ke.d.ts → types-cNZhj0UF.d.ts} +1 -1
  61. package/dist/unplugin/index.d.ts +1 -1
  62. package/dist/{usage-Bl-BkXEq.js → usage-BUUXeKwk.js} +1 -1
  63. package/dist/{usage-0wsl83uw.js → usage-DlOllyPi.js} +2 -2
  64. package/dist/usage-NmH5QXKC.js +1 -0
  65. package/dist/{verify-BSLotSa0.js → verify-CfmvQjVw.js} +1 -1
  66. package/package.json +1 -1
  67. package/schemas/supabase-manifest-v1.json +6 -0
  68. package/dist/powersync-BdoR7nwS.js +0 -1
  69. package/dist/pull-D90HqWNP.js +0 -1
  70. package/dist/run-elFdnSZx.js +0 -1
  71. package/dist/supabase-hook-CVAenq-w.js +0 -1
  72. package/dist/usage-CmyGbo4e.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { r as listSourceFiles } from "./files-BSjrtIHw.js";
2
- import { t as DOCS_BASE } from "./manifest-BAf7cgRx.js";
2
+ import { t as DOCS_BASE } from "./manifest-CbHnl4I_.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { relative } from "node:path";
5
5
  //#region src/cli/adoption-scan.ts
@@ -21,7 +21,7 @@ const check = defineLeaf({
21
21
  ...permissionsFlag
22
22
  },
23
23
  async run(ctx, { flags }) {
24
- return (await import("./arazzo-Ct0PGblq.js")).runArazzo({
24
+ return (await import("./arazzo-CTx11zFc.js")).runArazzo({
25
25
  cwd: ctx.cwd,
26
26
  config: ctx.config,
27
27
  doc: given(flags.doc),
@@ -3,7 +3,7 @@ import { c as missingInput } from "./errors-BhRkoNS7.js";
3
3
  import { i as readJsonFile } from "./files-BSjrtIHw.js";
4
4
  import { t as ARAZZO_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
5
5
  import { a as loadModule, s as pickNamed, t as asPermissionTree } from "./load-C4p4VgwR.js";
6
- import { t as DOCS_BASE } from "./manifest-BAf7cgRx.js";
6
+ import { t as DOCS_BASE } from "./manifest-CbHnl4I_.js";
7
7
  import { existsSync } from "node:fs";
8
8
  import { resolve } from "node:path";
9
9
  //#region src/cli/arazzo.ts
@@ -9,7 +9,7 @@ import { n as SubjectCache, s as VersionCache } from "../subject-cache-d_Z4KAnm.
9
9
  import { c as AccessReviewStore } from "../types-BSNZMp5b.js";
10
10
  import { r as SupabaseRpcCaller } from "../postgrest-Cn0Res25.js";
11
11
  import { a as CatalogDocument } from "../types-DAyp592k.js";
12
- import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-BfTza0zT.js";
12
+ import { A as SupabaseSubjectOptions, C as SupabasePrincipal, N as SupabaseSuspension, O as SupabaseSessionLike, s as SqlMembershipSource } from "../sources-CdYZBVcW.js";
13
13
  import { t as SqlQuery } from "../sql-B80DFdpG.js";
14
14
  import { c as LinkPolicy, o as CapabilityPrincipal, t as Capability } from "../capability-YkRMUAsF.js";
15
15
  import { AccessBucketPolicy, AccessTopicPolicy, AuthorizationHooks, AuthorizationProvider, AuthorizationRequest, Authorizer, BlockTables, CredentialProvider, SupportAuthorize, SupportAuthorizeInput, ToolDecision, ToolRef } from "better-supabase/contract";
@@ -36,7 +36,7 @@ import { n as subscribersFor } from "../audience-5Xx1hdIv.js";
36
36
  import { i as qualifySqlTable, l as sqlIdent, s as quoteSqlLiteral } from "../sql-0WjxIp9g.js";
37
37
  import { o as junctionMembershipSource } from "../sources-C4vkzZJV.js";
38
38
  import { a as callRpc, i as subjectFromSupabaseSession } from "../subject-BqFwS6l3.js";
39
- import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-BdzBobNK.js";
39
+ import { n as parseSupabaseManifest, t as hasTokenHook } from "../manifest-D44OkoLk.js";
40
40
  import { t as parseCatalog } from "../parse-CORUNcCo.js";
41
41
  import { n as activeTenantMismatch, t as activeOrganizationFrom } from "../active-tenant-DVee32-T.js";
42
42
  import { AsyncResult, dbError } from "better-supabase";
@@ -1633,22 +1633,28 @@ function permittedTemplate(schema, scopes, tenantScope, catalog) {
1633
1633
  * helper's `_for` form, which `rls generate` writes beside it for Supabase.
1634
1634
  */
1635
1635
  function rowTemplatesOf(schema, manifest, requires, problems) {
1636
- const rows = Object.values(manifest.names?.resources ?? {}).flatMap((names) => names.rows === void 0 ? [] : [names.rows]);
1636
+ const rows = Object.values(manifest.names?.resources ?? {}).flatMap(({ rows: helper, idType }) => helper === void 0 ? [] : [{
1637
+ helper,
1638
+ idType
1639
+ }]);
1637
1640
  if (rows.length === 0) {
1638
1641
  problems.push("rowHelpers: the manifest names no permitted_<resource>_rows helper. Set rls.rowHelpers, run `permdock rls generate`, then `permdock supabase inspect --out`.");
1639
1642
  return {};
1640
1643
  }
1641
- for (const name of rows) requires.push({
1642
- function: `${schema}.${sqlIdent(name)}`,
1643
- args: "text, text[]",
1644
+ const types = new Set(rows.map((row) => row.idType ?? "uuid"));
1645
+ const [only] = types;
1646
+ const idType = types.size === 1 ? only : void 0;
1647
+ for (const { helper } of rows) requires.push({
1648
+ function: `${schema}.${sqlIdent(helper)}`,
1649
+ args: idType === void 0 ? "text" : `text, ${idType}[]`,
1644
1650
  role: "authenticated"
1645
1651
  }, {
1646
- function: `${schema}.${sqlIdent(`${name}_for`)}`,
1652
+ function: `${schema}.${sqlIdent(`${helper}_for`)}`,
1647
1653
  args: "uuid, text, jsonb",
1648
1654
  role: "postgres"
1649
1655
  });
1650
1656
  return {
1651
- rowsWith: `${schema}.permitted_{resource}_rows({permission}, {ids})`,
1657
+ rowsWith: idType === void 0 ? `${schema}.permitted_{resource}_rows({permission})` : `${schema}.permitted_{resource}_rows({permission}, ({ids})::${idType}[])`,
1652
1658
  rowsWithFor: `${schema}.permitted_{resource}_rows_for({user}, {permission})`
1653
1659
  };
1654
1660
  }
@@ -16,7 +16,7 @@ const casbinImport = defineLeaf({
16
16
  ...outFlag
17
17
  },
18
18
  async run(ctx, { flags }) {
19
- const { runCasbinImport } = await import("./casbin-D5evU3lX.js");
19
+ const { runCasbinImport } = await import("./casbin-BpS9ABSO.js");
20
20
  return runCasbinImport({
21
21
  cwd: ctx.cwd,
22
22
  model: given(flags.model),
@@ -1,4 +1,4 @@
1
- import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
1
+ import { a as nonEmptyOr } from "./output-RIUEs3_S.js";
2
2
  import { t as applyFiles } from "./files-CfiRtQ-m.js";
3
3
  import { n as isIdentifier, t as emitPolicyModule } from "./policy-module-xym9fnSq.js";
4
4
  import { existsSync, readFileSync } from "node:fs";
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-DJZrPjRi.js"),
13
13
  import("../signals-B1vHR3fN.js"),
14
- import("../run-elFdnSZx.js"),
14
+ import("../run-ItR_bQGz.js"),
15
15
  import("../style-DblOtSga.js")
16
16
  ]);
17
17
  const signals = trapSignals();
@@ -3,7 +3,7 @@ import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
3
3
  import { o as OperationMap } from "../operations-BMPx7HyO.js";
4
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-DAyp592k.js";
5
5
  import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-P55cJNx5.js";
6
- import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-CS1DI_Ke.js";
6
+ import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-cNZhj0UF.js";
7
7
  import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-iXJEIDe7.js";
8
8
  //#region src/cli/catalog-path.d.ts
9
9
  /**
package/dist/cli/index.js CHANGED
@@ -2,7 +2,7 @@ import { t as catalogPath } from "../catalog-path-CnI0XTFK.js";
2
2
  import { t as defineConfig } from "../config-DyNanTjZ.js";
3
3
  import { n as parsePushedPolicy, r as pushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-Bi5-il4C.js";
4
4
  import { c as parseGrantsMarker, l as parseHookMarker } from "../markers-BeHZ4x9Q.js";
5
- import { t as run } from "../run-oNqBe0gc.js";
5
+ import { t as run } from "../run-CgSQS9RF.js";
6
6
  //#region src/cli/token-schemas.ts
7
7
  const ID = {
8
8
  type: "string",
@@ -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-dMyKdlEm.js")).runCloud({
44
+ return (await import("./push-CEPcWdTJ.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-D90HqWNP.js")).runCloudPull({
73
+ return (await import("./pull-COPm1W-l.js")).runCloudPull({
74
74
  cwd: ctx.cwd,
75
75
  config: ctx.config,
76
76
  url: given(flags.url),
@@ -2,7 +2,7 @@ import { n as CliError } from "./errors-BhRkoNS7.js";
2
2
  import { a as rel } from "./files-BSjrtIHw.js";
3
3
  import { i as visitorKeyTypes, r as parseSync, t as createVisitor } from "./optional-8TKc-0j4.js";
4
4
  import { t as beforeFirst } from "./text-BMFRfBqc.js";
5
- import { n as ROOT } from "./manifest-BAf7cgRx.js";
5
+ import { n as ROOT } from "./manifest-CbHnl4I_.js";
6
6
  import { i as refuseDirty, t as applyFiles } from "./files-CfiRtQ-m.js";
7
7
  import { readFileSync, readdirSync, statSync } from "node:fs";
8
8
  import { basename, extname, join, resolve } from "node:path";
@@ -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-BaPmaCYQ.js")).codemodVersions();
10
+ return (await import("./codemod-CxyKuniX.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-BaPmaCYQ.js")).runCodemod({
25
+ return (await import("./codemod-CxyKuniX.js")).runCodemod({
26
26
  cwd: ctx.cwd,
27
27
  version: args["version"],
28
28
  paths: rest,
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-BhRkoNS7.js";
2
2
  import { a as GLOBAL_FLAGS, i as suggestion } from "./args-iafbHiXn.js";
3
- import { a as resolve } from "./manifest-BAf7cgRx.js";
3
+ import { a as resolve } from "./manifest-CbHnl4I_.js";
4
4
  import { t as defineLeaf } from "./command-L8EstFNm.js";
5
5
  //#region 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-Bh_nLdAE.js");
13
+ const { runConfig } = await import("./config-report-Cg5Y5j0h.js");
14
14
  return runConfig({
15
15
  cwd: ctx.cwd,
16
16
  config: ctx.config,
@@ -3,7 +3,7 @@ import { r as CONFIG_REPORT_SCHEMA } from "./version-DMQ0dnN5.js";
3
3
  import { t as catalogPath } from "./catalog-path-CnI0XTFK.js";
4
4
  import { n as guessPermissions, t as barrelFile } from "./collect-Cr71JA7z.js";
5
5
  import "./sources-C4vkzZJV.js";
6
- import { t as DOCS_BASE } from "./manifest-BAf7cgRx.js";
6
+ import { t as DOCS_BASE } from "./manifest-CbHnl4I_.js";
7
7
  import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
8
8
  //#region src/cli/config-report.ts
9
9
  function configReport(input) {
@@ -28,25 +28,25 @@ import { t as parseCatalog } from "./parse-CORUNcCo.js";
28
28
  import { n as activeTenantMismatch } from "./active-tenant-DVee32-T.js";
29
29
  import "./markers-BeHZ4x9Q.js";
30
30
  import { t as didYouMean } from "./args-iafbHiXn.js";
31
- import { t as DOCS_BASE } from "./manifest-BAf7cgRx.js";
31
+ import { t as DOCS_BASE } from "./manifest-CbHnl4I_.js";
32
32
  import { t as createStyle } from "./style-Ds11Hmk4.js";
33
- import { a as nonEmptyOr, r as findingOf } from "./output-CYgfpT6o.js";
34
- import { i as runSkillsInstall } from "./skills-417bOj4o.js";
33
+ import { a as nonEmptyOr, r as findingOf } from "./output-RIUEs3_S.js";
34
+ import { i as runSkillsInstall } from "./skills-Clo4qYLn.js";
35
35
  import { n as MIGRATION_DIRS, t as DEFAULT_SENSITIVE_ACTIONS } from "./constants-DcJABbLW.js";
36
36
  import { l as partPath } from "./output-files-CM0BnH05.js";
37
37
  import { n as pgConnector } from "./pg-Ddxsd5ZB.js";
38
- import { _ as readSupabaseConfig, a as supabaseHookManifest, c as activeSource, d as resolveSchemas, g as pd074, h as pd045, l as pd039, m as attrsPlan, n as hookOut, v as supabaseConfig } from "./supabase-hook-Bh5syR9N.js";
38
+ import { _ as readSupabaseConfig, a as supabaseHookManifest, c as activeSource, d as resolveSchemas, g as pd074, h as pd045, l as pd039, m as attrsPlan, n as hookOut, v as supabaseConfig } from "./supabase-hook-DLQMugW8.js";
39
39
  import { O as quoteIdent, t as CUSTOM_ROLES } from "./shared-DfaIWvIJ.js";
40
40
  import { $ as byKey, c as graphPlan, i as tableNames, ot as graphSqlName, r as tableNameOf } from "./tables-CbEOy2Ma.js";
41
41
  import { a as guardedTables, p as contextRefs, r as unsatisfiedKinds, t as ownershipRules } from "./ownership-adPAsUwY.js";
42
42
  import { t as membershipSourcesOf } from "./sources-qoIJQrJv.js";
43
43
  import { i as group, n as membershipColumns, o as sqlStatements, r as tableKey } from "./deciding-columns-NB4wcyBf.js";
44
44
  import { t as FIELD_VIEWS } from "./fields-CVyOk-f1.js";
45
- import { t as resolveNames } from "./resolve-names-BnGJU88N.js";
46
- import { C as splitIgnored, S as parseIgnores, d as rowConditionMessage, f as commandFor, h as tableFor, p as compileGrants, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-BSLotSa0.js";
47
- import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-0wsl83uw.js";
48
- import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-Dpa5AnnN.js";
49
- import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-ChXR-4Or.js";
45
+ import { t as resolveNames } from "./resolve-names-bzYlAXRt.js";
46
+ import { C as splitIgnored, S as parseIgnores, d as rowConditionMessage, f as commandFor, h as tableFor, p as compileGrants, s as ROW_CONDITION_FIX, u as helperTablePolicies } from "./verify-CfmvQjVw.js";
47
+ import { a as pd010, c as pd014, d as pd038, f as pd041, i as pd008, l as pd015, n as pd001, o as pd011, p as pd057, r as pd007, s as pd013, t as runUsage, u as pd036 } from "./usage-DlOllyPi.js";
48
+ import { a as streamOf, i as scopeSourcesOf, r as staleFiles, t as powersyncFiles } from "./powersync-BUO5uQve.js";
49
+ import { a as buildContext, n as generateOptions, r as isRefusal, s as inheritTargets, t as supautilsRejections } from "./supautils-BHKsP7l-.js";
50
50
  import { n as legacyHelperNames, r as retirePlan, t as legacyHelperCalls } from "./retire-B2xffQgY.js";
51
51
  import { basename, dirname, join, resolve } from "node:path";
52
52
  import { pathToFileURL } from "node:url";
@@ -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-BBMW5ZT_.js");
13
+ const { DOCTOR_CHECKS } = await import("./doctor-DaRoSPT0.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-BBMW5ZT_.js")).runDoctor({
38
+ return (await import("./doctor-DaRoSPT0.js")).runDoctor({
39
39
  cwd: ctx.cwd,
40
40
  config: ctx.config,
41
41
  only: flags.only,
@@ -10,7 +10,7 @@ import { c as requirePolicy } from "./load-C4p4VgwR.js";
10
10
  import { t as loadConfiguredOperations } from "./catalog-operations-Do1eD-Rt.js";
11
11
  import { n as fileSummary, r as planFiles } from "./files-CfiRtQ-m.js";
12
12
  import { f as writeOutputFiles, r as driftOf } from "./output-files-CM0BnH05.js";
13
- import { t as resolveNames } from "./resolve-names-BnGJU88N.js";
13
+ import { t as resolveNames } from "./resolve-names-bzYlAXRt.js";
14
14
  import { i as schemaExpression } from "./generate-CezbCaTI.js";
15
15
  import { existsSync, readFileSync } from "node:fs";
16
16
  import { dirname, extname, relative, resolve } from "node:path";
@@ -41,7 +41,7 @@ const gen = defineLeaf({
41
41
  const out = given(flags.out);
42
42
  const outDir = given(flags["out-dir"]);
43
43
  const from = given(flags.policy);
44
- const { runGen } = await import("./gen-WdycZ_-b.js");
44
+ const { runGen } = await import("./gen-Cw8goef4.js");
45
45
  return runGen({
46
46
  cwd: ctx.cwd,
47
47
  config: ctx.config,
@@ -4,7 +4,7 @@ import { i as readJsonFile } from "./files-BSjrtIHw.js";
4
4
  import { t as applyFiles } from "./files-CfiRtQ-m.js";
5
5
  import { n as httpRequest } from "./http-dptLQzPP.js";
6
6
  import { i as schemaExpression, t as emitPermissionsModule } from "./generate-CezbCaTI.js";
7
- import { t as validateOpenapi } from "./schema-Wf-SvlHG.js";
7
+ import { t as validateOpenapi } from "./schema-B_HsJKm2.js";
8
8
  import { existsSync, readFileSync } from "node:fs";
9
9
  import { resolve } from "node:path";
10
10
  //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/browser/dist/nodes/identity.js
@@ -1,7 +1,7 @@
1
1
  import { n as CliError } from "./errors-BhRkoNS7.js";
2
2
  import { t as addLine } from "./peer-BuK9F53f.js";
3
3
  import { a as decodePreset, g as resolvePreset, i as presetFlags, n as generatePreset, o as encodePreset } from "./preset-Bn5Z54cH.js";
4
- import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
4
+ import { a as nonEmptyOr } from "./output-RIUEs3_S.js";
5
5
  import { t as applyFiles } from "./files-CfiRtQ-m.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join } from "node:path";
@@ -48,7 +48,7 @@ const init = defineLeaf({
48
48
  ...forceFlag
49
49
  },
50
50
  async run(ctx, { flags }) {
51
- const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-CqGHcvyR.js"), import("./peer-n-swIV4H.js")]);
51
+ const [{ runInit }, { packageManagerOf }] = await Promise.all([import("./init-D_T_zgFg.js"), import("./peer-n-swIV4H.js")]);
52
52
  const agent = await packageManagerOf(ctx.cwd);
53
53
  const selection = {
54
54
  archetype: flags.archetype,
@@ -79,7 +79,7 @@ const presetDecode = defineLeaf({
79
79
  positionals: presetCode,
80
80
  flags: {},
81
81
  async run(_ctx, { args }) {
82
- const { runPreset } = await import("./init-CqGHcvyR.js");
82
+ const { runPreset } = await import("./init-D_T_zgFg.js");
83
83
  return runPreset("decode", args["code"] ?? "");
84
84
  }
85
85
  });
@@ -87,7 +87,7 @@ const presetUrl = defineLeaf({
87
87
  positionals: presetCode,
88
88
  flags: {},
89
89
  async run(_ctx, { args }) {
90
- const { runPreset } = await import("./init-CqGHcvyR.js");
90
+ const { runPreset } = await import("./init-D_T_zgFg.js");
91
91
  return runPreset("url", args["code"] ?? "");
92
92
  }
93
93
  });
@@ -3,7 +3,7 @@ import { n as CliError } from "./errors-BhRkoNS7.js";
3
3
  import { i as postForm, r as parseToken, s as runDeviceFlow } from "./device-BkSynWdg.js";
4
4
  import { i as writeCredentials, n as deleteCredentials, r as readCredentials, t as credentialsPath } from "./storage-C2bWdvJH.js";
5
5
  import { n as randomToken, t as pkce } from "./pkce-CnmmYqUZ.js";
6
- import { a as nonEmptyOr } from "./output-CYgfpT6o.js";
6
+ import { a as nonEmptyOr } from "./output-RIUEs3_S.js";
7
7
  import { n as httpRequest } from "./http-dptLQzPP.js";
8
8
  import { c as READ_SCOPES, d as issuerMetadata, i as credentialsInsideRepository, l as cloudUrl, n as cliRuntime, r as credentialStorage, s as CLI_CLIENT_ID, t as CREDENTIAL_SERVICE } from "./auth-BxXHxWRy.js";
9
9
  import { spawn } from "node:child_process";
@@ -27,7 +27,7 @@ const login = defineLeaf({
27
27
  }
28
28
  },
29
29
  async run(ctx, { flags }) {
30
- const { runLogin } = await import("./login-CzwlsBEO.js");
30
+ const { runLogin } = await import("./login-B2usNw0X.js");
31
31
  return runLogin({
32
32
  cwd: ctx.cwd,
33
33
  url: given(flags.url),
@@ -43,7 +43,7 @@ const login = defineLeaf({
43
43
  const logout = defineLeaf({
44
44
  flags: { ...urlFlag },
45
45
  async run(ctx, { flags }) {
46
- const { runLogout } = await import("./login-CzwlsBEO.js");
46
+ const { runLogout } = await import("./login-B2usNw0X.js");
47
47
  return runLogout({
48
48
  url: given(flags.url),
49
49
  json: ctx.json,
@@ -55,7 +55,7 @@ const logout = defineLeaf({
55
55
  const whoami = defineLeaf({
56
56
  flags: { ...urlFlag },
57
57
  async run(ctx, { flags }) {
58
- const { runWhoami } = await import("./login-CzwlsBEO.js");
58
+ const { runWhoami } = await import("./login-B2usNw0X.js");
59
59
  return runWhoami({
60
60
  url: given(flags.url),
61
61
  json: ctx.json,
@@ -120,6 +120,7 @@ type SupabaseManifestResourceNames = {
120
120
  /** With `rls.rowHelpers` naming the resource. */
121
121
  readonly rows?: string;
122
122
  readonly row?: string;
123
+ readonly idType?: string;
123
124
  /** With `rls.fields` and a mapped table. */
124
125
  readonly visible?: string;
125
126
  readonly visibleFields?: string;