@intentius/chant-lexicon-azure 0.44.14 → 0.46.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.
Files changed (58) hide show
  1. package/dist/codegen/docs.d.ts.map +1 -1
  2. package/dist/deploy-scopes.d.ts.map +1 -1
  3. package/dist/describe-resources.d.ts.map +1 -1
  4. package/dist/generated/index.d.ts +328 -87
  5. package/dist/generated/index.d.ts.map +1 -1
  6. package/dist/integrity.json +4 -4
  7. package/dist/manifest.json +1 -1
  8. package/dist/meta.json +1923 -427
  9. package/dist/okf/index.md +22 -5
  10. package/dist/okf/rules/AZR028.md +1 -0
  11. package/dist/okf/types/{snapshots.md → Akssnapshots.md} +3 -3
  12. package/dist/okf/types/AzureStackHCIloadBalancers.md +21 -0
  13. package/dist/okf/types/AzureStackHCInatGateways.md +22 -0
  14. package/dist/okf/types/AzureStackHCInetworkSecurityGroups_securityRules.md +19 -0
  15. package/dist/okf/types/AzureStackHCIsnapshots.md +21 -0
  16. package/dist/okf/types/AzureStackHCIstorageContainers.md +21 -0
  17. package/dist/okf/types/AzureStackHCIvirtualMachineInstances.md +21 -0
  18. package/dist/okf/types/AzureStackHCIvirtualMachineInstances_guestAgents.md +18 -0
  19. package/dist/okf/types/AzureStackHCIvirtualNetworks.md +22 -0
  20. package/dist/okf/types/{storageContainers.md → DiscoverystorageContainers.md} +3 -3
  21. package/dist/okf/types/{loadBalancers.md → KubernetesRuntimeloadBalancers.md} +3 -3
  22. package/dist/okf/types/{natGateways.md → NetworknatGateways.md} +4 -4
  23. package/dist/okf/types/{networkSecurityGroups_securityRules.md → NetworknetworkSecurityGroups_securityRules.md} +3 -3
  24. package/dist/okf/types/galleryImages.md +21 -0
  25. package/dist/okf/types/logicalNetworks.md +21 -0
  26. package/dist/okf/types/marketplaceGalleryImages.md +21 -0
  27. package/dist/okf/types/natGateways_inboundRules.md +19 -0
  28. package/dist/okf/types/networkInterfaces.md +25 -0
  29. package/dist/okf/types/networkSecurityGroups.md +22 -0
  30. package/dist/okf/types/publicIPAddresses.md +21 -0
  31. package/dist/okf/types/virtualHardDisks.md +21 -0
  32. package/dist/okf/types/virtualNetworks_subnets.md +19 -0
  33. package/dist/op/activities/az-apply.d.ts +37 -23
  34. package/dist/op/activities/az-apply.d.ts.map +1 -1
  35. package/dist/op/activities/index.d.ts +1 -1
  36. package/dist/op/activities/index.d.ts.map +1 -1
  37. package/dist/serializer.d.ts +14 -0
  38. package/dist/serializer.d.ts.map +1 -1
  39. package/dist/spec/api-versions.d.ts +12 -0
  40. package/dist/spec/api-versions.d.ts.map +1 -1
  41. package/dist/types/index.d.ts +3682 -946
  42. package/dist/validate.d.ts.map +1 -1
  43. package/package.json +2 -2
  44. package/src/codegen/docs.ts +0 -16
  45. package/src/deploy-scopes.ts +19 -5
  46. package/src/describe-resources.ts +8 -0
  47. package/src/generated/index.d.ts +3682 -946
  48. package/src/generated/index.ts +328 -87
  49. package/src/generated/lexicon-azure.json +1923 -427
  50. package/src/lifecycle-integration.test.ts +40 -0
  51. package/src/op/activities/az-apply.test.ts +187 -21
  52. package/src/op/activities/az-apply.ts +104 -29
  53. package/src/op/activities/index.ts +1 -0
  54. package/src/serializer-api-versions.test.ts +94 -0
  55. package/src/serializer.ts +69 -32
  56. package/src/spec/api-versions.test.ts +16 -0
  57. package/src/spec/api-versions.ts +13 -0
  58. package/src/validate.ts +6 -0
@@ -177,37 +177,51 @@ export interface AzNotPrunable {
177
177
  type: string;
178
178
  name: string;
179
179
  /**
180
- * `no-api-version` — the resource is owned and undeclared, but its type is
181
- * absent from the current template, which is the only place an `apiVersion`
182
- * comes from. `deleteArmResource` cannot build a URL without one.
180
+ * `no-api-version` — the resource is owned and undeclared, but no apiVersion
181
+ * could be found for its type: the current template does not declare the
182
+ * type, the lexicon's pinned registry has no entry for it, and ARM's
183
+ * provider metadata listed no apiVersion for it (or the call failed).
184
+ * `deleteArmResource` cannot build a URL without one.
183
185
  */
184
186
  reason: "no-api-version";
185
187
  }
186
188
  /**
187
- * Owned-only prune: for each resource type present in the template, delete the
188
- * chant-owned live resources of that type whose (evaluated) name is not in the
189
- * template. Foreign (non-chant) resources are never touched.
189
+ * Resolve an apiVersion for a live resource type from ARM's provider metadata:
190
+ * `GET /subscriptions/{sub}/providers/{namespace}?api-version=2021-04-01`
191
+ * returns `resourceTypes[].apiVersions[]`. Picks the newest stable version,
192
+ * falling back to the newest preview when no stable one exists. One call per
193
+ * namespace per prune run; the result is memoised in `cache` so a group with
194
+ * many orphans of one provider costs one round trip. Returns `undefined` when
195
+ * the endpoint is unavailable (floci-az does not implement it) or the type is
196
+ * not listed.
197
+ */
198
+ export declare function providerApiVersion(resourceType: string, ctx: ArmEvalCtx, http?: AzHttp, signal?: AbortSignal, cache?: Map<string, Map<string, string>>): Promise<string | undefined>;
199
+ /**
200
+ * Owned-only prune: delete every chant-owned live resource in the group whose
201
+ * (evaluated) name is not declared in the template. Foreign (non-chant)
202
+ * resources are never touched.
203
+ *
204
+ * ## Where the apiVersion comes from (#1457, #1472)
190
205
  *
191
- * ## The type-left-the-template hole (#1457)
206
+ * `deleteArmResource` needs an `apiVersion`, and ARM's resource-group listing
207
+ * does not return one per resource. The template is the obvious source, but it
208
+ * only covers types it still declares: declare one storage account, apply,
209
+ * delete it from source, and the template has zero resources of that type.
210
+ * Keying the delete scope off the template alone made the last resource of a
211
+ * type a permanent orphan (#1457 made that a reported skip rather than a
212
+ * silent one).
192
213
  *
193
- * `byType` is keyed off the resources the template CURRENTLY declares, and the
194
- * `!entry` guard skipped any live resource of a type the template no longer
195
- * mentions — before `isChantOwned` was ever consulted.
214
+ * So the apiVersion is resolved in order:
196
215
  *
197
- * So: declare one storage account, apply, then delete it from source. The
198
- * template now has zero resources of that type, `byType` has no entry, and the
199
- * live account is skipped. It is owned, it is undeclared, and prune would never
200
- * touch it on that run or any future one. **Prune the last resource of a type
201
- * and you created a permanent orphan.** Prune one of several and it works,
202
- * which is why it survived testing.
216
+ * 1. the template, when it still declares the type;
217
+ * 2. the lexicon's pinned per-provider registry (`lookupApiVersion`, the same
218
+ * registry the serializer stamps into the template) deterministic, no
219
+ * extra call, covers every type the lexicon can emit;
220
+ * 3. ARM's provider metadata (`providerApiVersion`) covers a type the
221
+ * lexicon has never heard of, at one extra call per namespace per run.
203
222
  *
204
- * The guard cannot simply be removed: `deleteArmResource` needs an
205
- * `apiVersion`, and the template is the only source of one — ARM's
206
- * resource-group listing does not return it per resource. So the skip stays,
207
- * and is now REPORTED rather than silent: a permanent invisible orphan becomes
208
- * a permanent visible one, which is the difference between a bug and a known
209
- * limitation. Resolving it properly wants a per-type apiVersion source (the
210
- * provider metadata endpoint, or a lexicon-side map).
223
+ * Only when all three come up empty is the resource reported as
224
+ * `notPrunable: no-api-version`.
211
225
  *
212
226
  * This matters more since #1448, which routed `ApplyOp`'s `arm` target through
213
227
  * `azApply` — before that, the composite reached `--mode Complete` and never
@@ -1 +1 @@
1
- {"version":3,"file":"az-apply.d.ts","sourceRoot":"","sources":["../../../src/op/activities/az-apply.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,WAAW,EAGjB,MAAM,wBAAwB,CAAC;AAMhC,uEAAuE;AACvE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,mFAAmF;AACnF,MAAM,MAAM,MAAM,GAAG,CACnB,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,OAAO,EACd,MAAM,CA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AAW,EACpB,KAAK,GAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAa,GAClD,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAkC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,WAAW,EAAE,EACtB,GAAG,EAAE,UAAU,EACf,IAAI,GAAE,MAAoB,EAC1B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC;IACT,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAChE,WAAW,EAAE,aAAa,EAAE,CAAC;CAC9B,CAAC,CA8CD;AAED;;;;;GAKG;AACH,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,WAAW,EACjB,MAAM,CAAC,EAAE,WAAW,EACpB,IAAI,GAAE,MAAoB,GACzB,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAsB/E"}
@@ -7,6 +7,6 @@ export { azGroupEnsure, azGroupDelete, azGroupEnsureCommand, azGroupDeleteComman
7
7
  export type { AzGroupEnsureArgs, AzGroupDeleteArgs } from "./azure.js";
8
8
  export { flociAzUp, flociAzDown, flociAzRunCommand, flociAzRmCommand, flociAzExistsCommand, flociAzHealthUrl, flociAzEndpoint, } from "./floci-az.js";
9
9
  export type { FlociAzUpArgs, FlociAzDownArgs } from "./floci-az.js";
10
- export { azApply, azDelete, pruneArmOrphans, toApplyResult, deleteArmResource, listGroupResources, chantOwnershipTags, isChantOwned, evalArm, evalArmString, armResourceUrl, armResourceBody, armDependencies, orderArmResources, } from "./az-apply.js";
10
+ export { azApply, azDelete, pruneArmOrphans, providerApiVersion, toApplyResult, deleteArmResource, listGroupResources, chantOwnershipTags, isChantOwned, evalArm, evalArmString, armResourceUrl, armResourceBody, armDependencies, orderArmResources, } from "./az-apply.js";
11
11
  export type { AzApplyArgs, ArmEvalCtx, ArmResource, ArmListItem, AzHttp } from "./az-apply.js";
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACnG,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIpE,OAAO,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EACL,OAAO,EACP,QAAQ,EACR,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,OAAO,EACP,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACnG,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIpE,OAAO,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EACL,OAAO,EACP,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,OAAO,EACP,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC"}
@@ -10,6 +10,20 @@
10
10
  * - parameters, outputs sections
11
11
  */
12
12
  import type { Serializer } from "@intentius/chant/serializer";
13
+ export declare function apiVersionRegistryCandidates(dir?: string): string[];
14
+ export declare function loadApiVersions(candidates?: string[]): Map<string, string>;
15
+ /** Test hook: drop the cached registry so the next lookup reloads it. */
16
+ export declare function resetApiVersionCache(): void;
17
+ /**
18
+ * Registry lookup without the serializer's fallback: the pinned apiVersion for
19
+ * `resourceType`, or `undefined` when neither the overrides nor the generated
20
+ * registry know the type. ARM resource types are case-insensitive and the live
21
+ * listing does not always echo the casing the registry uses, so the match is
22
+ * case-insensitive too. Used by prune (#1472), which needs an apiVersion for a
23
+ * type the current template no longer declares.
24
+ */
25
+ export declare function lookupApiVersion(resourceType: string): string | undefined;
26
+ export declare function getApiVersion(resourceType: string): string;
13
27
  /**
14
28
  * Azure ARM template serializer implementation.
15
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAsC,MAAM,6BAA6B,CAAC;AAkblG;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,UA0C7B,CAAC"}
1
+ {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAsC,MAAM,6BAA6B,CAAC;AA8ElG,wBAAgB,4BAA4B,CAAC,GAAG,GAAE,MAAqB,GAAG,MAAM,EAAE,CAKjF;AAED,wBAAgB,eAAe,CAAC,UAAU,GAAE,MAAM,EAAmC,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAwB1G;AAcD,yEAAyE;AACzE,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAWzE;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAO1D;AA2TD;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,UA0C7B,CAAC"}
@@ -58,6 +58,18 @@ export declare function parseSchemaPath(path: string): {
58
58
  * no GA date and whose newer preview files (2024-12-01-preview and later)
59
59
  * drag in policy variables we don't want yet.
60
60
  *
61
+ * Microsoft.AzureStackHCI splits the same way (#1795): the newest dated file
62
+ * (2026-05-01-preview) carries only the cluster/edge-device family, while the
63
+ * VM family (virtualMachineInstances, virtualNetworks, networkInterfaces,
64
+ * publicIPAddresses, galleryImages, virtualHardDisks, ...) last appears in
65
+ * 2026-04-01-preview. Pin both, newest first — the cluster/edge family
66
+ * generates from 2026-05-01-preview and the VM family fills in from
67
+ * 2026-04-01-preview. `Microsoft.DataReplication/replicationVaults_
68
+ * privateEndpointConnectionProxies` dropped out in the same re-baseline but
69
+ * is NOT pinnable back: no dated Microsoft.DataReplication.json at the
70
+ * AZURE_SCHEMA_COMMIT pin (2021-02-16-preview, 2024-09-01, 2026-05-01)
71
+ * defines it — upstream removed the resource, so it stays gone.
72
+ *
61
73
  * Microsoft.Management and Microsoft.Subscription are pinned to their latest
62
74
  * GA dates: the naive latest for both is a preview (2024-02-01-preview adds
63
75
  * serviceGroups; 2025-11-01-preview adds changeTenantRequest), and the
@@ -1 +1 @@
1
- {"version":3,"file":"api-versions.d.ts","sourceRoot":"","sources":["../../src/spec/api-versions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMpD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,GACX;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAOjD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAKxE,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EAAE,GACd,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CA2B1D"}
1
+ {"version":3,"file":"api-versions.d.ts","sourceRoot":"","sources":["../../src/spec/api-versions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMpD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B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