@azure-tools/typespec-azure-resource-manager 0.71.0-dev.2 → 0.71.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/generated-defs/Azure.ResourceManager.BaseTypes.d.ts +1 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.d.ts.map +1 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.js +2 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.js.map +1 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.d.ts.map +1 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.js +2 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.js.map +1 -1
- package/dist/src/rules/arm-common-types-version.d.ts.map +1 -1
- package/dist/src/rules/arm-common-types-version.js +2 -1
- package/dist/src/rules/arm-common-types-version.js.map +1 -1
- package/dist/src/rules/arm-custom-resource-no-key.d.ts.map +1 -1
- package/dist/src/rules/arm-custom-resource-no-key.js +2 -1
- package/dist/src/rules/arm-custom-resource-no-key.js.map +1 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.d.ts.map +1 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.js +2 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.js.map +1 -1
- package/dist/src/rules/arm-delete-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-delete-response-codes.js +3 -2
- package/dist/src/rules/arm-delete-response-codes.js.map +1 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.d.ts.map +1 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.js +2 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.js.map +1 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.d.ts.map +1 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.js +2 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.js.map +1 -1
- package/dist/src/rules/arm-no-record.d.ts.map +1 -1
- package/dist/src/rules/arm-no-record.js +2 -1
- package/dist/src/rules/arm-no-record.js.map +1 -1
- package/dist/src/rules/arm-post-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-post-response-codes.js +3 -2
- package/dist/src/rules/arm-post-response-codes.js.map +1 -1
- package/dist/src/rules/arm-put-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-put-response-codes.js +3 -2
- package/dist/src/rules/arm-put-response-codes.js.map +1 -1
- package/dist/src/rules/arm-resource-action-no-segment.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-action-no-segment.js +2 -1
- package/dist/src/rules/arm-resource-action-no-segment.js.map +1 -1
- package/dist/src/rules/arm-resource-duplicate-property.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-duplicate-property.js +2 -1
- package/dist/src/rules/arm-resource-duplicate-property.js.map +1 -1
- package/dist/src/rules/arm-resource-interfaces.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-interfaces.js +2 -1
- package/dist/src/rules/arm-resource-interfaces.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js +2 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.js +2 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-version-format.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-version-format.js +2 -1
- package/dist/src/rules/arm-resource-invalid-version-format.js.map +1 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.js +2 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.js.map +1 -1
- package/dist/src/rules/arm-resource-name-pattern.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-name-pattern.js +3 -2
- package/dist/src/rules/arm-resource-name-pattern.js.map +1 -1
- package/dist/src/rules/arm-resource-operation-response.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-operation-response.js +2 -1
- package/dist/src/rules/arm-resource-operation-response.js.map +1 -1
- package/dist/src/rules/arm-resource-patch.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-patch.js +2 -1
- package/dist/src/rules/arm-resource-patch.js.map +1 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.js +2 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.js.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js +2 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js.map +1 -1
- package/dist/src/rules/beyond-nesting-levels.d.ts.map +1 -1
- package/dist/src/rules/beyond-nesting-levels.js +2 -1
- package/dist/src/rules/beyond-nesting-levels.js.map +1 -1
- package/dist/src/rules/core-operations.d.ts.map +1 -1
- package/dist/src/rules/core-operations.js +2 -1
- package/dist/src/rules/core-operations.js.map +1 -1
- package/dist/src/rules/envelope-properties.d.ts.map +1 -1
- package/dist/src/rules/envelope-properties.js +2 -1
- package/dist/src/rules/envelope-properties.js.map +1 -1
- package/dist/src/rules/improper-subscription-list-operation.d.ts.map +1 -1
- package/dist/src/rules/improper-subscription-list-operation.js +2 -1
- package/dist/src/rules/improper-subscription-list-operation.js.map +1 -1
- package/dist/src/rules/lro-location-header.d.ts.map +1 -1
- package/dist/src/rules/lro-location-header.js +2 -1
- package/dist/src/rules/lro-location-header.js.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.d.ts.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.js +2 -1
- package/dist/src/rules/missing-x-ms-identifiers.js.map +1 -1
- package/dist/src/rules/no-empty-model.d.ts.map +1 -1
- package/dist/src/rules/no-empty-model.js +2 -1
- package/dist/src/rules/no-empty-model.js.map +1 -1
- package/dist/src/rules/no-override-props.d.ts.map +1 -1
- package/dist/src/rules/no-override-props.js +2 -1
- package/dist/src/rules/no-override-props.js.map +1 -1
- package/dist/src/rules/no-reserved-resource-property.d.ts.map +1 -1
- package/dist/src/rules/no-reserved-resource-property.js +2 -1
- package/dist/src/rules/no-reserved-resource-property.js.map +1 -1
- package/dist/src/rules/no-resource-delete-operation.d.ts.map +1 -1
- package/dist/src/rules/no-resource-delete-operation.js +2 -1
- package/dist/src/rules/no-resource-delete-operation.js.map +1 -1
- package/dist/src/rules/no-response-body.d.ts.map +1 -1
- package/dist/src/rules/no-response-body.js +2 -1
- package/dist/src/rules/no-response-body.js.map +1 -1
- package/dist/src/rules/operations-interface-missing.d.ts.map +1 -1
- package/dist/src/rules/operations-interface-missing.js +2 -1
- package/dist/src/rules/operations-interface-missing.js.map +1 -1
- package/dist/src/rules/patch-envelope-properties.d.ts.map +1 -1
- package/dist/src/rules/patch-envelope-properties.js +2 -1
- package/dist/src/rules/patch-envelope-properties.js.map +1 -1
- package/dist/src/rules/resource-name.d.ts.map +1 -1
- package/dist/src/rules/resource-name.js +2 -1
- package/dist/src/rules/resource-name.js.map +1 -1
- package/dist/src/rules/retry-after.d.ts.map +1 -1
- package/dist/src/rules/retry-after.js +2 -1
- package/dist/src/rules/retry-after.js.map +1 -1
- package/dist/src/rules/secret-prop.d.ts.map +1 -1
- package/dist/src/rules/secret-prop.js +2 -1
- package/dist/src/rules/secret-prop.js.map +1 -1
- package/dist/src/rules/unsupported-type.d.ts.map +1 -1
- package/dist/src/rules/unsupported-type.js +2 -1
- package/dist/src/rules/unsupported-type.js.map +1 -1
- package/dist/src/rules/version-progression.d.ts.map +1 -1
- package/dist/src/rules/version-progression.js +2 -1
- package/dist/src/rules/version-progression.js.map +1 -1
- package/lib/base-types/agent.tsp +1 -1
- package/lib/base-types/base-types.tsp +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-response-body.js","sourceRoot":"","sources":["../../../src/rules/no-response-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"no-response-body.js","sourceRoot":"","sources":["../../../src/rules/no-response-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAkB,EAAa,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAyB,MAAM,gBAAgB,CAAC;AACnG,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IAC3C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,+BAA+B,CAAC;IAC9D,WAAW,EACT,0GAA0G;IAC5G,GAAG,EAAE,qGAAqG;IAC1G,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE;QACR,OAAO,EAAE,mGAAmG;QAC5G,gBAAgB,EAAE,2CAA2C;QAC7D,gBAAgB,EAAE,2CAA2C;KAC9D;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,EAAa,EAAE,EAAE;gBAC3B,MAAM,CAAC,aAAa,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBAC9D,IACE,kBAAkB,CAAC,EAAE,CAAC;oBACtB,6BAA6B,CAAC,EAAE,CAAC;oBACjC,aAAa,CAAC,IAAI,KAAK,MAAM;oBAE7B,OAAO;gBAET,MAAM,SAAS,GAAG,wBAAwB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CACrE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,GAAG,IAAI,CAAC,CAAC,WAAW,KA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,IAAI,CAAC,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-interface-missing.d.ts","sourceRoot":"","sources":["../../../src/rules/operations-interface-missing.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,8BAA8B;;
|
|
1
|
+
{"version":3,"file":"operations-interface-missing.d.ts","sourceRoot":"","sources":["../../../src/rules/operations-interface-missing.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,8BAA8B;;yBAkCzC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRule, isService, paramMessage } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef, isService, paramMessage } from "@typespec/compiler";
|
|
2
2
|
import { getArmProviderNamespace } from "../namespace.js";
|
|
3
3
|
import { isArmOperationsListInterface } from "../private.decorators.js";
|
|
4
4
|
/**
|
|
@@ -6,6 +6,7 @@ import { isArmOperationsListInterface } from "../private.decorators.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export const operationsInterfaceMissingRule = createRule({
|
|
8
8
|
name: "missing-operations-endpoint",
|
|
9
|
+
docs: fileRef.fromPackageRoot("src/rules/missing-operations-endpoint.md"),
|
|
9
10
|
severity: "warning",
|
|
10
11
|
description: "Check for missing Operations interface.",
|
|
11
12
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/missing-operations-endpoint",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations-interface-missing.js","sourceRoot":"","sources":["../../../src/rules/operations-interface-missing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"operations-interface-missing.js","sourceRoot":"","sources":["../../../src/rules/operations-interface-missing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY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/patch-envelope-properties.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B;;
|
|
1
|
+
{"version":3,"file":"patch-envelope-properties.d.ts","sourceRoot":"","sources":["../../../src/rules/patch-envelope-properties.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B;;yBA0CvC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createRule, getProperty, paramMessage } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef, getProperty, paramMessage } from "@typespec/compiler";
|
|
2
2
|
import { getArmResources } from "../resource.js";
|
|
3
3
|
export const patchEnvelopePropertiesRules = createRule({
|
|
4
4
|
name: "patch-envelope",
|
|
5
|
+
docs: fileRef.fromPackageRoot("src/rules/patch-envelope.md"),
|
|
5
6
|
severity: "warning",
|
|
6
7
|
description: "Patch envelope properties should match the resource properties.",
|
|
7
8
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/patch-envelope",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-envelope-properties.js","sourceRoot":"","sources":["../../../src/rules/patch-envelope-properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"patch-envelope-properties.js","sourceRoot":"","sources":["../../../src/rules/patch-envelope-properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEjG,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,4BAA4B,GAAG,UAAU,CAAC;IACrD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,6BAA6B,CAAC;IAC5D,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,iEAAiE;IAC9E,GAAG,EAA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,OAAO;gCACzC,CAAC,CAAC,yBAAyB;gCAC3B,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS;yBACxD,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,qBAAqB,CAC5B,YAAoB,EACpB,aAAoB,EACpB,UAA4B;IAE5B,OAAO,CACL,WAAW,CAAC,aAAa,EAAE,YAAY,CAAC,KAAK,SAAS;QACtD,CAAC,UAAU,EAAE,IAAI,KAAK,OAAO,IAAI,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,KAAK,SAAS,CAAC,CACtF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-name.d.ts","sourceRoot":"","sources":["../../../src/rules/resource-name.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource-name.d.ts","sourceRoot":"","sources":["../../../src/rules/resource-name.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;yBA8C3B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRule, getProperty, } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef, getProperty, } from "@typespec/compiler";
|
|
2
2
|
import * as http from "@typespec/http";
|
|
3
3
|
import { getArmResources } from "../resource.js";
|
|
4
4
|
import { isReadonlyProperty } from "../utils.js";
|
|
@@ -7,6 +7,7 @@ import { isReadonlyProperty } from "../utils.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export const resourceNameRule = createRule({
|
|
9
9
|
name: "resource-name",
|
|
10
|
+
docs: fileRef.fromPackageRoot("src/rules/resource-name.md"),
|
|
10
11
|
severity: "warning",
|
|
11
12
|
description: "Check the resource name.",
|
|
12
13
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/resource-name",
|
|
@@ -1 +1 @@
|
|
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MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,KAAK,KAAK,CAAC,CAAC;gBAEtE,IAAI,WAAW,EAAE,CAAC;oBAChB,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;wBACxC,OAAO,CAAC,gBAAgB,CAAC;4BACvB,SAAS,EAAE,aAAa;4BACxB,MAAM,EAAE,KAAK;yBACd,CAAC,CAAC;oBACL,CAAC;oBACD,sDAAsD;oBACtD,MAAM,IAAI,GAAG,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;oBACxC,IAAI,IAAI,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;wBACpC,OAAO,CAAC,gBAAgB,CAAC;4BACvB,MAAM,EAAE,IAAI;yBACb,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;gBAED,SAAS,iBAAiB,CAAC,QAAuB;oBAChD,OAAO,CAAC,CACN,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC;wBAC3C,kBAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAC9C,CAAC;gBACJ,CAAC;gBAED,SAAS,sBAAsB,CAAC,IAAY;oBAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;oBAClD,OAAO,OAAO,KAAK,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC;gBAClD,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry-after.d.ts","sourceRoot":"","sources":["../../../src/rules/retry-after.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"retry-after.d.ts","sourceRoot":"","sources":["../../../src/rules/retry-after.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,cAAc;;yBAwBzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRule } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef } from "@typespec/compiler";
|
|
2
2
|
import { getResponsesForOperation } from "@typespec/http";
|
|
3
3
|
// import { getExtensions } from "@typespec/openapi";
|
|
4
4
|
import { getLroMetadata } from "@azure-tools/typespec-azure-core";
|
|
@@ -8,6 +8,7 @@ import { isTemplatedInterfaceOperation } from "./utils.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export const retryAfterRule = createRule({
|
|
10
10
|
name: "retry-after",
|
|
11
|
+
docs: fileRef.fromPackageRoot("src/rules/retry-after.md"),
|
|
11
12
|
severity: "warning",
|
|
12
13
|
description: "Check if retry-after header appears in response body.",
|
|
13
14
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/retry-after",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry-after.js","sourceRoot":"","sources":["../../../src/rules/retry-after.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"retry-after.js","sourceRoot":"","sources":["../../../src/rules/retry-after.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,UAAU,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,qDAAqD;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACvC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,0BAA0B,CAAC;IACzD,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,uDAAuD;IACpE,GAAG,EAAE,gGAAgG;IACrG,QAAQ,EAAE;QACR,OAAO,EAAE,0MAA0M;KACpN;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,EAAa,EAAE,EAAE;gBAC3B,IAAI,6BAA6B,CAAC,EAAE,CAAC,EAAE,CAAC;oBACtC,OAAO;gBACT,CAAC;gBACD,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,SAAS,CAAC;gBAChE,IAAI,KAAK,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC;oBACvD,OAAO,CAAC,gBAAgB,CAAC;wBACvB,MAAM,EAAE,EAAE;qBACX,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,SAAS,mBAAmB,CAAC,OAAgB,EAAE,EAAa;IAC1D,OAAO,CAAC,CAAC,wBAAwB,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAC5D,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC,CAAC,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-prop.d.ts","sourceRoot":"","sources":["../../../src/rules/secret-prop.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secret-prop.d.ts","sourceRoot":"","sources":["../../../src/rules/secret-prop.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,cAAc;;yBAmCzB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UsageFlags, createAddDecoratorCodeFix, createRule, isSecret, paramMessage, resolveUsages, } from "@typespec/compiler";
|
|
1
|
+
import { UsageFlags, createAddDecoratorCodeFix, createRule, fileRef, isSecret, paramMessage, resolveUsages, } from "@typespec/compiler";
|
|
2
2
|
import { $ } from "@typespec/compiler/typekit";
|
|
3
3
|
function isKeyValuePairKeyProp(property) {
|
|
4
4
|
return (property.name === "key" &&
|
|
@@ -7,6 +7,7 @@ function isKeyValuePairKeyProp(property) {
|
|
|
7
7
|
}
|
|
8
8
|
export const secretProprule = createRule({
|
|
9
9
|
name: "secret-prop",
|
|
10
|
+
docs: fileRef.fromPackageRoot("src/rules/secret-prop.md"),
|
|
10
11
|
description: `RPC-v1-13: Check that property with names indicating sensitive information(e.g. contains auth, password, token, secret, etc.) are marked with @secret decorator.`,
|
|
11
12
|
severity: "warning",
|
|
12
13
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/secret-prop",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-prop.js","sourceRoot":"","sources":["../../../src/rules/secret-prop.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,yBAAyB,EACzB,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,aAAa,GACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAE/C,SAAS,qBAAqB,CAAC,QAAuB;IACpD,OAAO,CACL,QAAQ,CAAC,IAAI,KAAK,KAAK;QACvB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI;QAChD,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,KAAK,CAAC,CACtC,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACvC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,kKAAkK;IAC/K,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,gGAAgG;IACrG,QAAQ,E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,CAAC,CAAC;AAE1C,+CAA+C;AAC/C,MAAM,eAAe,GAAG,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AAC9E,SAAS,4BAA4B,CAAC,YAAoB;IACxD,MAAM,SAAS,GAAG,YAAY,CAAC,WAAW,EAAE,CAAC;IAC7C,OAAO,CACL,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAChE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsupported-type.d.ts","sourceRoot":"","sources":["../../../src/rules/unsupported-type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unsupported-type.d.ts","sourceRoot":"","sources":["../../../src/rules/unsupported-type.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,eAAO,MAAM,mBAAmB;;yBAwC9B,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { createRule, isType, paramMessage } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef, isType, paramMessage, } from "@typespec/compiler";
|
|
2
2
|
const UnsupportedIntrinsicModel = new Set(["int8", "int16", "uint8", "uint16", "uint32", "uint64"]);
|
|
3
3
|
/**
|
|
4
4
|
* Validation related to versioning.
|
|
5
5
|
*/
|
|
6
6
|
export const unsupportedTypeRule = createRule({
|
|
7
7
|
name: "unsupported-type",
|
|
8
|
+
docs: fileRef.fromPackageRoot("src/rules/unsupported-type.md"),
|
|
8
9
|
severity: "warning",
|
|
9
10
|
description: "Check for unsupported ARM types.",
|
|
10
11
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/unsupported-type",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unsupported-type.js","sourceRoot":"","sources":["../../../src/rules/unsupported-type.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"unsupported-type.js","sourceRoot":"","sources":["../../../src/rules/unsupported-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,OAAO,EACP,MAAM,EACN,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AACpG;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC5C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,+BAA+B,CAAC;IAC9D,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,kCAAkC;IAC/C,GAAG,EAAE,qGAAqG;IAC1G,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY,CAAA,eAAe,UAAU,oDAAoD;KACnG;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,aAAa,EAAE,CAAC,QAAQ,EAAE,EAAE;gBAC1B,oBAAoB,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;YACD,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE;gBAChB,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YAC1C,CAAC;SACF,CAAC;QAEF,SAAS,oBAAoB,CAAC,IAAU,EAAE,MAAwB;YAChE,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;gBACpD,OAAO;YACT,CAAC;YACD,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC3B,IAAI,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC7C,OAAO,CAAC,gBAAgB,CAAC;wBACvB,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,EAAE;wBAC/B,MAAM;qBACP,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YACD,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;gBACxB,KAAK,MAAM,WAAW,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;oBACnD,IAAI,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;wBACxB,oBAAoB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;oBAC5C,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-progression.d.ts","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AAqBA;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;
|
|
1
|
+
{"version":3,"file":"version-progression.d.ts","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AAqBA;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;yBA8CjC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRule, paramMessage } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef, paramMessage } from "@typespec/compiler";
|
|
2
2
|
import { getVersion } from "@typespec/versioning";
|
|
3
3
|
/**
|
|
4
4
|
* Parse a version string of the form "YYYY-MM-DD[-suffix[.N]]" and return its
|
|
@@ -20,6 +20,7 @@ function parseVersionDate(value) {
|
|
|
20
20
|
*/
|
|
21
21
|
export const versionProgressionRule = createRule({
|
|
22
22
|
name: "version-progression",
|
|
23
|
+
docs: fileRef.fromPackageRoot("src/rules/version-progression.md"),
|
|
23
24
|
severity: "warning",
|
|
24
25
|
description: "Validate that ARM service versions all use unique dates and are declared in strictly increasing chronological order.",
|
|
25
26
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/version-progression",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-progression.js","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"version-progression.js","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE9F,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQlD;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,KAAa;IACrC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;IAC5E,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AACtC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,UAAU,CAAC;IAC/C,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,kCAAkC,CAAC;IACjE,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,sHAAsH;IACxH,GAAG,EAAE,wGAAwG;IAC7G,QAAQ,EAAE;QACR,YAAY,EAAE,YAAY,CAAA,YAAY,SAAS,wBAAwB,UAAU,uHAAuH;QACxM,aAAa,EAAE,YAAY,CAAA,YAAY,SAAS,2BAA2B,UAAU,mHAAmH;KACzM;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,SAAoB,EAAE,EAAE;gBAClC,MAAM,GAAG,GAAG,UAAU,C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,cAAc;4BACzB,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;4BACxD,MAAM,EAAE,OAAO,CAAC,UAAU;yBAC3B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/lib/base-types/agent.tsp
CHANGED
|
@@ -399,7 +399,7 @@ model ResponseInstructionsProperty {
|
|
|
399
399
|
* Applies the Agent base type decorator automatically.
|
|
400
400
|
* @template Properties RP-specific properties for the agent (must extend AgentProperties)
|
|
401
401
|
*/
|
|
402
|
-
@azureBaseType(#{ baseType: BaseType.Agent, version: "
|
|
402
|
+
@azureBaseType(#{ baseType: BaseType.Agent, version: "2026-04-01" })
|
|
403
403
|
model Agent<Properties extends AgentProperties> is TrackedResource<Properties>;
|
|
404
404
|
|
|
405
405
|
/**
|
|
@@ -51,7 +51,7 @@ model BaseTypeInfo {
|
|
|
51
51
|
*
|
|
52
52
|
* // The @azureBaseType decorator marks the resource as conforming to the Agent base type.
|
|
53
53
|
* // (The Agent template applies this automatically, but it can also be applied directly.)
|
|
54
|
-
* @azureBaseType(#{ baseType: BaseType.Agent, version: "
|
|
54
|
+
* @azureBaseType(#{ baseType: BaseType.Agent, version: "2026-04-01" })
|
|
55
55
|
* model ContosoApplianceAgent is TrackedResource<ContosoApplianceProperties> {
|
|
56
56
|
* ...ResourceNameParameter<ContosoApplianceAgent>;
|
|
57
57
|
* }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.71.0-dev.
|
|
3
|
+
"version": "0.71.0-dev.4",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"test:ci": "vitest run --coverage --reporter=junit --reporter=default",
|
|
84
84
|
"lint": "oxlint . --deny-warnings",
|
|
85
85
|
"lint:fix": "oxlint . --fix",
|
|
86
|
-
"regen-docs": "tspd doc . --enable-experimental --llmstxt --output-dir ../../website/src/content/docs/docs/libraries/azure-resource-manager/reference"
|
|
86
|
+
"regen-docs": "tspd doc . --enable-experimental --llmstxt --rules-dir ../rules --output-dir ../../website/src/content/docs/docs/libraries/azure-resource-manager/reference"
|
|
87
87
|
}
|
|
88
88
|
}
|