@intentius/chant-lexicon-azure 0.124.31 → 0.124.32

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 (117) hide show
  1. package/dist/actions/appservice.js +7 -0
  2. package/dist/actions/compute.js +9 -0
  3. package/dist/actions/container.js +14 -0
  4. package/dist/actions/identity.js +11 -0
  5. package/dist/actions/index.js +11 -0
  6. package/dist/actions/keyvault.js +12 -0
  7. package/dist/actions/network.js +9 -0
  8. package/dist/actions/sql.js +9 -0
  9. package/dist/actions/storage.js +15 -0
  10. package/dist/api/read-client.js +146 -0
  11. package/dist/codegen/docs-cli.js +2 -0
  12. package/dist/codegen/docs.js +83 -0
  13. package/dist/codegen/generate-cli.js +11 -0
  14. package/dist/codegen/generate-lexicon.js +77 -0
  15. package/dist/codegen/generate-typescript.js +163 -0
  16. package/dist/codegen/generate.js +106 -0
  17. package/dist/codegen/naming.js +139 -0
  18. package/dist/codegen/package.js +64 -0
  19. package/dist/composites/aks-cluster.js +68 -0
  20. package/dist/composites/app-service.js +62 -0
  21. package/dist/composites/application-gateway.js +107 -0
  22. package/dist/composites/catalog.js +856 -0
  23. package/dist/composites/container-instance.js +36 -0
  24. package/dist/composites/container-registry.js +62 -0
  25. package/dist/composites/cosmos-database.js +56 -0
  26. package/dist/composites/from-arm.js +47 -0
  27. package/dist/composites/function-app.js +57 -0
  28. package/dist/composites/index.js +16 -0
  29. package/dist/composites/keyvault.js +69 -0
  30. package/dist/composites/landing-zone.js +119 -0
  31. package/dist/composites/private-endpoint.js +61 -0
  32. package/dist/composites/redis-cache.js +21 -0
  33. package/dist/composites/service-bus-pipeline.js +54 -0
  34. package/dist/composites/sql-database.js +62 -0
  35. package/dist/composites/storage-account.js +59 -0
  36. package/dist/composites/vm-linux.js +139 -0
  37. package/dist/composites/vnet-default.js +102 -0
  38. package/dist/coverage.js +28 -0
  39. package/dist/deep-observe.js +356 -0
  40. package/dist/default-tags.js +50 -0
  41. package/dist/deploy-scopes.d.ts.map +1 -1
  42. package/dist/deploy-scopes.js +157 -0
  43. package/dist/describe-resources.js +187 -0
  44. package/dist/detect.js +17 -0
  45. package/dist/export-resources.js +108 -0
  46. package/dist/generated/index.js +16598 -0
  47. package/dist/generated/runtime.js +4 -0
  48. package/dist/governance.js +144 -0
  49. package/dist/import/generator.js +140 -0
  50. package/dist/import/live-export.js +39 -0
  51. package/dist/import/parser.js +192 -0
  52. package/dist/index.js +44 -0
  53. package/dist/integrity.json +2 -2
  54. package/dist/intrinsics.js +179 -0
  55. package/dist/lint/audit-catalog.js +36 -0
  56. package/dist/lint/audit-lineage.js +71 -0
  57. package/dist/lint/post-synth/arm-refs.js +94 -0
  58. package/dist/lint/post-synth/azr010.js +45 -0
  59. package/dist/lint/post-synth/azr011.js +43 -0
  60. package/dist/lint/post-synth/azr012.js +41 -0
  61. package/dist/lint/post-synth/azr013.js +50 -0
  62. package/dist/lint/post-synth/azr014.js +49 -0
  63. package/dist/lint/post-synth/azr015.js +66 -0
  64. package/dist/lint/post-synth/azr016.js +37 -0
  65. package/dist/lint/post-synth/azr017.js +37 -0
  66. package/dist/lint/post-synth/azr018.js +42 -0
  67. package/dist/lint/post-synth/azr019.js +41 -0
  68. package/dist/lint/post-synth/azr020.js +37 -0
  69. package/dist/lint/post-synth/azr021.js +36 -0
  70. package/dist/lint/post-synth/azr022.js +39 -0
  71. package/dist/lint/post-synth/azr023.js +39 -0
  72. package/dist/lint/post-synth/azr024.js +39 -0
  73. package/dist/lint/post-synth/azr025.js +37 -0
  74. package/dist/lint/post-synth/azr026.js +38 -0
  75. package/dist/lint/post-synth/azr027.js +37 -0
  76. package/dist/lint/post-synth/azr028.js +37 -0
  77. package/dist/lint/post-synth/azr029.js +38 -0
  78. package/dist/lint/post-synth/azr030.js +44 -0
  79. package/dist/lint/post-synth/azr031.js +36 -0
  80. package/dist/lint/post-synth/azr032.js +53 -0
  81. package/dist/lint/post-synth/azr033.js +35 -0
  82. package/dist/lint/post-synth/index.js +50 -0
  83. package/dist/lint/rules/hardcoded-location.js +82 -0
  84. package/dist/lint/rules/index.js +6 -0
  85. package/dist/lint/rules/nsg-wildcard.js +44 -0
  86. package/dist/lint/rules/storage-https.js +62 -0
  87. package/dist/lsp/completions.d.ts.map +1 -1
  88. package/dist/lsp/completions.js +18 -0
  89. package/dist/lsp/hover.d.ts.map +1 -1
  90. package/dist/lsp/hover.js +44 -0
  91. package/dist/manifest.json +1 -1
  92. package/dist/op/activities/az-apply.js +563 -0
  93. package/dist/op/activities/azure.js +48 -0
  94. package/dist/op/activities/floci-az.js +37 -0
  95. package/dist/op/activities/index.js +10 -0
  96. package/dist/op/builders.js +70 -0
  97. package/dist/ownership.js +13 -0
  98. package/dist/package-cli.js +21 -0
  99. package/dist/parameter.js +13 -0
  100. package/dist/plugin.d.ts.map +1 -1
  101. package/dist/plugin.js +472 -0
  102. package/dist/pseudo.js +40 -0
  103. package/dist/serializer.js +457 -0
  104. package/dist/spec/api-versions.js +130 -0
  105. package/dist/spec/fetch.js +196 -0
  106. package/dist/spec/parse.js +308 -0
  107. package/dist/taggable.js +34 -0
  108. package/dist/validate-cli.js +16 -0
  109. package/dist/validate.js +53 -0
  110. package/package.json +8 -8
  111. package/src/codegen/package.ts +2 -2
  112. package/src/deploy-scopes.ts +2 -1
  113. package/src/lsp/completions.ts +2 -1
  114. package/src/lsp/hover.ts +2 -1
  115. package/src/plugin.ts +3 -2
  116. package/src/serializer.ts +2 -2
  117. package/src/taggable.ts +2 -2
@@ -6,7 +6,7 @@
6
6
  import { readFileSync } from "fs";
7
7
  import { azurePlugin } from "../plugin";
8
8
  import { dirname } from "path";
9
- import { fileURLToPath } from "url";
9
+ import { moduleSourceDir } from "@intentius/chant/module-source";
10
10
  import type { IntrinsicDef } from "@intentius/chant/lexicon";
11
11
  import {
12
12
  packagePipeline,
@@ -18,7 +18,7 @@ import { generate } from "./generate";
18
18
 
19
19
  export type { PackageOptions, PackageResult };
20
20
 
21
- const pkgDir = dirname(dirname(fileURLToPath(import.meta.url)));
21
+ const pkgDir = dirname(moduleSourceDir(import.meta.url));
22
22
 
23
23
  /**
24
24
  * Map intrinsic name to its ARM output key.
@@ -14,6 +14,7 @@
14
14
  import { readFileSync } from "fs";
15
15
  import { join, dirname } from "path";
16
16
  import { fileURLToPath } from "url";
17
+ import { moduleSourceDir } from "@intentius/chant/module-source";
17
18
  import { DECLARABLE_MARKER, type Declarable } from "@intentius/chant/declarable";
18
19
 
19
20
  export type DeployScope = "resourceGroup" | "subscription" | "managementGroup" | "tenant";
@@ -94,7 +95,7 @@ let _cached: Map<string, DeployScope[]> | undefined;
94
95
  */
95
96
  function moduleDir(): string | undefined {
96
97
  try {
97
- return dirname(fileURLToPath(import.meta.url));
98
+ return moduleSourceDir(import.meta.url);
98
99
  } catch {
99
100
  return undefined;
100
101
  }
@@ -1,7 +1,8 @@
1
1
  import { createRequire } from "module";
2
+ import { moduleSourceUrl } from "@intentius/chant/module-source";
2
3
  import type { CompletionContext, CompletionItem } from "@intentius/chant/lsp/types";
3
4
  import { LexiconIndex, lexiconCompletions, type LexiconEntry } from "@intentius/chant/lsp/lexicon-providers";
4
- const require = createRequire(import.meta.url);
5
+ const require = createRequire(moduleSourceUrl(import.meta.url));
5
6
 
6
7
  let cachedIndex: LexiconIndex | null = null;
7
8
 
package/src/lsp/hover.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { createRequire } from "module";
2
+ import { moduleSourceUrl } from "@intentius/chant/module-source";
2
3
  import type { HoverContext, HoverInfo } from "@intentius/chant/lsp/types";
3
4
  import { LexiconIndex, lexiconHover, type LexiconEntry } from "@intentius/chant/lsp/lexicon-providers";
4
- const require = createRequire(import.meta.url);
5
+ const require = createRequire(moduleSourceUrl(import.meta.url));
5
6
 
6
7
  let cachedIndex: LexiconIndex | null = null;
7
8
 
package/src/plugin.ts CHANGED
@@ -13,6 +13,7 @@ import { createSkillsLoader } from "@intentius/chant/lexicon-plugin-helpers";
13
13
  import { readFileSync, readdirSync, existsSync } from "fs";
14
14
  import { join, dirname } from "path";
15
15
  import { fileURLToPath } from "url";
16
+ import { moduleSourceDir } from "@intentius/chant/module-source";
16
17
  import { azureSerializer } from "./serializer";
17
18
  import { hardcodedLocationRule } from "./lint/rules/hardcoded-location";
18
19
  import { storageHttpsRule } from "./lint/rules/storage-https";
@@ -373,7 +374,7 @@ export const tags = defaultTags([
373
374
  required: ["query"],
374
375
  },
375
376
  handler: async (args: Record<string, unknown>) => {
376
- const dir = dirname(fileURLToPath(import.meta.url));
377
+ const dir = moduleSourceDir(import.meta.url);
377
378
  try {
378
379
  const lexicon = JSON.parse(
379
380
  readFileSync(join(dir, "generated", "lexicon-azure.json"), "utf-8"),
@@ -398,7 +399,7 @@ export const tags = defaultTags([
398
399
  description: "All available Azure resource types",
399
400
  mimeType: "application/json",
400
401
  handler: async () => {
401
- const dir = dirname(fileURLToPath(import.meta.url));
402
+ const dir = moduleSourceDir(import.meta.url);
402
403
  try {
403
404
  return readFileSync(join(dir, "generated", "lexicon-azure.json"), "utf-8");
404
405
  } catch {
package/src/serializer.ts CHANGED
@@ -20,7 +20,7 @@ import { walkValue, type SerializerVisitor } from "@intentius/chant/serializer-w
20
20
  import { isChildProject, type ChildProjectInstance } from "@intentius/chant/child-project";
21
21
  import { existsSync, readFileSync } from "fs";
22
22
  import { dirname, join } from "path";
23
- import { fileURLToPath } from "url";
23
+ import { moduleSourceDir } from "@intentius/chant/module-source";
24
24
  import { isStackOutput, type StackOutput } from "@intentius/chant/stack-output";
25
25
  import { isAttrRefLike } from "@intentius/chant/utils";
26
26
  import { resolveDependsOn } from "@intentius/chant/resource-attributes";
@@ -87,7 +87,7 @@ const RESOURCE_LEVEL_FIELDS = new Set([
87
87
  * silently bypasses the per-provider pins in spec/api-versions.ts.
88
88
  */
89
89
  function resolveDir(): string {
90
- return dirname(fileURLToPath(import.meta.url));
90
+ return moduleSourceDir(import.meta.url);
91
91
  }
92
92
 
93
93
  export function apiVersionRegistryCandidates(dir: string = resolveDir()): string[] {
package/src/taggable.ts CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { readFileSync } from "fs";
8
8
  import { join, dirname } from "path";
9
- import { fileURLToPath } from "url";
9
+ import { moduleSourceDir } from "@intentius/chant/module-source";
10
10
 
11
11
  interface LexiconEntry {
12
12
  kind: string;
@@ -17,7 +17,7 @@ interface LexiconEntry {
17
17
 
18
18
  let _cached: Set<string> | undefined;
19
19
 
20
- const __dirname_ = dirname(fileURLToPath(import.meta.url));
20
+ const __dirname_ = moduleSourceDir(import.meta.url);
21
21
 
22
22
  /**
23
23
  * Load taggable resource types from the lexicon JSON.