@azure-tools/typespec-azure-core 0.64.0-dev.0 → 0.64.0-dev.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/generated-defs/Azure.Core.Foundations.Private.d.ts +10 -10
- package/dist/generated-defs/Azure.Core.Foundations.Private.d.ts.map +1 -1
- package/dist/generated-defs/Azure.Core.Foundations.d.ts +4 -4
- package/dist/generated-defs/Azure.Core.Foundations.d.ts.map +1 -1
- package/dist/generated-defs/Azure.Core.Traits.Private.d.ts +7 -7
- package/dist/generated-defs/Azure.Core.Traits.Private.d.ts.map +1 -1
- package/dist/generated-defs/Azure.Core.Traits.d.ts +5 -5
- package/dist/generated-defs/Azure.Core.Traits.d.ts.map +1 -1
- package/dist/generated-defs/Azure.Core.d.ts +16 -16
- package/dist/generated-defs/Azure.Core.d.ts.map +1 -1
- package/lib/models.tsp +3 -3
- package/package.json +7 -7
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import type { DecoratorContext, Model, Operation, Scalar, Type } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Model, Operation, Scalar, Type } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* Provides a Model describing parameter customizations to spread into the target.
|
|
4
4
|
*
|
|
5
5
|
* @param customizations Model describing the customization to spread
|
|
6
6
|
*/
|
|
7
|
-
export type SpreadCustomParametersDecorator = (context: DecoratorContext, entity: Model, customizations: Model) => void;
|
|
7
|
+
export type SpreadCustomParametersDecorator = (context: DecoratorContext, entity: Model, customizations: Model) => DecoratorValidatorCallbacks | void;
|
|
8
8
|
/**
|
|
9
9
|
* Provides a Model describing response property customizations to spread into the target.
|
|
10
10
|
*
|
|
11
11
|
* @param customizations Model describing the customization to spread
|
|
12
12
|
*/
|
|
13
|
-
export type SpreadCustomResponsePropertiesDecorator = (context: DecoratorContext, entity: Model, customizations: Model) => void;
|
|
13
|
+
export type SpreadCustomResponsePropertiesDecorator = (context: DecoratorContext, entity: Model, customizations: Model) => DecoratorValidatorCallbacks | void;
|
|
14
14
|
/**
|
|
15
15
|
* Checks the Resource parameter of an operation signature to ensure it's a valid resource type.
|
|
16
16
|
* Also marks the operation as a resource operation.
|
|
17
17
|
*
|
|
18
18
|
* @param resourceType The possible resource Type to validate.
|
|
19
19
|
*/
|
|
20
|
-
export type EnsureResourceTypeDecorator = (context: DecoratorContext, entity: Operation, resourceType: Type) => void;
|
|
20
|
+
export type EnsureResourceTypeDecorator = (context: DecoratorContext, entity: Operation, resourceType: Type) => DecoratorValidatorCallbacks | void;
|
|
21
21
|
/**
|
|
22
22
|
* Identifies that a model should be treated as an embedding vector.
|
|
23
23
|
*/
|
|
24
|
-
export type EmbeddingVectorDecorator = (context: DecoratorContext, entity: Model, type: Scalar) => void;
|
|
24
|
+
export type EmbeddingVectorDecorator = (context: DecoratorContext, entity: Model, type: Scalar) => DecoratorValidatorCallbacks | void;
|
|
25
25
|
/**
|
|
26
26
|
* Configuration for the armResourceIdentifier scalar
|
|
27
27
|
*/
|
|
28
|
-
export type ArmResourceIdentifierConfigDecorator = (context: DecoratorContext, target: Scalar, options: Type) => void;
|
|
28
|
+
export type ArmResourceIdentifierConfigDecorator = (context: DecoratorContext, target: Scalar, options: Type) => DecoratorValidatorCallbacks | void;
|
|
29
29
|
/**
|
|
30
30
|
* Checks the Resource parameter of an operation signature to ensure it's a valid resource type.
|
|
31
31
|
*/
|
|
32
|
-
export type NeedsRouteDecorator = (context: DecoratorContext, entity: Operation) => void;
|
|
32
|
+
export type NeedsRouteDecorator = (context: DecoratorContext, entity: Operation) => DecoratorValidatorCallbacks | void;
|
|
33
33
|
/**
|
|
34
34
|
* Issues a warning if an operation which derives from an operation templated marked with `@ensureVerb`
|
|
35
35
|
* differs from the verb specified.
|
|
@@ -37,20 +37,20 @@ export type NeedsRouteDecorator = (context: DecoratorContext, entity: Operation)
|
|
|
37
37
|
* @param templateName : Name of the template operation.
|
|
38
38
|
* @param verb The intended HTTP verb.
|
|
39
39
|
*/
|
|
40
|
-
export type EnsureVerbDecorator = (context: DecoratorContext, entity: Operation, templateName: string, verb: string) => void;
|
|
40
|
+
export type EnsureVerbDecorator = (context: DecoratorContext, entity: Operation, templateName: string, verb: string) => DecoratorValidatorCallbacks | void;
|
|
41
41
|
/**
|
|
42
42
|
* Sets the priority order of default final-state-via options for an operation
|
|
43
43
|
*
|
|
44
44
|
* @param states : list of final-state-via options in priority order
|
|
45
45
|
*/
|
|
46
|
-
export type DefaultFinalStateViaDecorator = (context: DecoratorContext, target: Operation, states: readonly ("operation-location" | "location" | "azure-async-operation")[]) => void;
|
|
46
|
+
export type DefaultFinalStateViaDecorator = (context: DecoratorContext, target: Operation, states: readonly ("operation-location" | "location" | "azure-async-operation")[]) => DecoratorValidatorCallbacks | void;
|
|
47
47
|
/**
|
|
48
48
|
* Internal decorator marking a scalar as a next link that requires parameterization before use.
|
|
49
49
|
*
|
|
50
50
|
* You most likely don't need to use this decorator since next links that require parameterization are against
|
|
51
51
|
* guidelines.
|
|
52
52
|
*/
|
|
53
|
-
export type ParameterizedNextLinkConfigDecorator = (context: DecoratorContext, target: Scalar, parameters: Type) => void;
|
|
53
|
+
export type ParameterizedNextLinkConfigDecorator = (context: DecoratorContext, target: Scalar, parameters: Type) => DecoratorValidatorCallbacks | void;
|
|
54
54
|
export type AzureCoreFoundationsPrivateDecorators = {
|
|
55
55
|
spreadCustomParameters: SpreadCustomParametersDecorator;
|
|
56
56
|
spreadCustomResponseProperties: SpreadCustomResponsePropertiesDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.Core.Foundations.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Foundations.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Azure.Core.Foundations.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Foundations.Private.ts"],"names":[],"mappings":"AAAA,OAA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,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,CAAC,oBAAoB,GAAG,UAAU,GAAG,uBAAuB,CAAC,EAAE,KAC7E,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,IAAI,KACb,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,qCAAqC,GAAG;IAClD,sBAAsB,EAAE,+BAA+B,CAAC;IACxD,8BAA8B,EAAE,uCAAuC,CAAC;IACxE,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,eAAe,EAAE,wBAAwB,CAAC;IAC1C,2BAA2B,EAAE,oCAAoC,CAAC;IAClE,UAAU,EAAE,mBAAmB,CAAC;IAChC,UAAU,EAAE,mBAAmB,CAAC;IAChC,oBAAoB,EAAE,6BAA6B,CAAC;IACpD,2BAA2B,EAAE,oCAAoC,CAAC;CACnE,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { DecoratorContext, Model } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Model } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* Deletes any key properties from the model.
|
|
4
4
|
*/
|
|
5
|
-
export type OmitKeyPropertiesDecorator = (context: DecoratorContext, entity: Model) => void;
|
|
5
|
+
export type OmitKeyPropertiesDecorator = (context: DecoratorContext, entity: Model) => DecoratorValidatorCallbacks | void;
|
|
6
6
|
/**
|
|
7
7
|
* Identifies a property on a request model that serves as a linked operation parameter.
|
|
8
8
|
*
|
|
9
9
|
* @param name Property name on the target
|
|
10
10
|
*/
|
|
11
|
-
export type RequestParameterDecorator = (context: DecoratorContext, entity: Model, name: string) => void;
|
|
11
|
+
export type RequestParameterDecorator = (context: DecoratorContext, entity: Model, name: string) => DecoratorValidatorCallbacks | void;
|
|
12
12
|
/**
|
|
13
13
|
* Identifies a property on *all* non-error response models that serve as a linked operation parameter.
|
|
14
14
|
*
|
|
15
15
|
* @param name Property name on the target
|
|
16
16
|
*/
|
|
17
|
-
export type ResponsePropertyDecorator = (context: DecoratorContext, entity: Model, name: string) => void;
|
|
17
|
+
export type ResponsePropertyDecorator = (context: DecoratorContext, entity: Model, name: string) => DecoratorValidatorCallbacks | void;
|
|
18
18
|
export type AzureCoreFoundationsDecorators = {
|
|
19
19
|
omitKeyProperties: OmitKeyPropertiesDecorator;
|
|
20
20
|
requestParameter: RequestParameterDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.Core.Foundations.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Foundations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Azure.Core.Foundations.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Foundations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE/F;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,KACV,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,MAAM,KACT,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG,CACtC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,MAAM,KACT,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,8BAA8B,GAAG;IAC3C,iBAAiB,EAAE,0BAA0B,CAAC;IAC9C,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,gBAAgB,EAAE,yBAAyB,CAAC;CAC7C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DecoratorContext, EnumMember, Interface, Model, ModelProperty, Operation, Type } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, EnumMember, Interface, Model, ModelProperty, Operation, Type } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* `@applyTraitOverride` copies the `traitModel` into `target` and renames its envelope
|
|
4
4
|
* property to enable the trait to override another trait sharing the same name.
|
|
@@ -6,7 +6,7 @@ import type { DecoratorContext, EnumMember, Interface, Model, ModelProperty, Ope
|
|
|
6
6
|
* @param target The model into which the trait will be copied.
|
|
7
7
|
* @param traitModel The trait model type to be overridden.
|
|
8
8
|
*/
|
|
9
|
-
export type ApplyTraitOverrideDecorator = (context: DecoratorContext, target: Model, traitModel: Model) => void;
|
|
9
|
+
export type ApplyTraitOverrideDecorator = (context: DecoratorContext, target: Model, traitModel: Model) => DecoratorValidatorCallbacks | void;
|
|
10
10
|
/**
|
|
11
11
|
* `@ensureAllQueryParams` checks the properties of `paramModel` to ensure they all are marked
|
|
12
12
|
* with the `@query` decorator.
|
|
@@ -14,7 +14,7 @@ export type ApplyTraitOverrideDecorator = (context: DecoratorContext, target: Mo
|
|
|
14
14
|
* @param target The model type where this check will be established.
|
|
15
15
|
* @param paramModel The actual model type to check for query parameters.
|
|
16
16
|
*/
|
|
17
|
-
export type EnsureAllQueryParamsDecorator = (context: DecoratorContext, target: Model, paramModel: Model) => void;
|
|
17
|
+
export type EnsureAllQueryParamsDecorator = (context: DecoratorContext, target: Model, paramModel: Model) => DecoratorValidatorCallbacks | void;
|
|
18
18
|
/**
|
|
19
19
|
* `@ensureAllHeaderParams` checks the properties of `paramModel` to ensure they all are marked
|
|
20
20
|
* with the `@header` decorator.
|
|
@@ -22,7 +22,7 @@ export type EnsureAllQueryParamsDecorator = (context: DecoratorContext, target:
|
|
|
22
22
|
* @param target The model type where this check will be established.
|
|
23
23
|
* @param paramModel The actual model type to check for header properties.
|
|
24
24
|
*/
|
|
25
|
-
export type EnsureAllHeaderParamsDecorator = (context: DecoratorContext, target: Model, paramModel: Model) => void;
|
|
25
|
+
export type EnsureAllHeaderParamsDecorator = (context: DecoratorContext, target: Model, paramModel: Model) => DecoratorValidatorCallbacks | void;
|
|
26
26
|
/**
|
|
27
27
|
* Copies trait properties from `traitModel` into `target` which conform to the
|
|
28
28
|
* specified location and contexts.
|
|
@@ -31,14 +31,14 @@ export type EnsureAllHeaderParamsDecorator = (context: DecoratorContext, target:
|
|
|
31
31
|
* @param traitLocation The trait location to use for selecting trait properties.
|
|
32
32
|
* @param traitContexts The trait contexts to use for selecting trait properties.
|
|
33
33
|
*/
|
|
34
|
-
export type AddTraitPropertiesDecorator = (context: DecoratorContext, target: Model, traitModel: Model, traitLocation: EnumMember, traitContexts: Type) => void;
|
|
34
|
+
export type AddTraitPropertiesDecorator = (context: DecoratorContext, target: Model, traitModel: Model, traitLocation: EnumMember, traitContexts: Type) => DecoratorValidatorCallbacks | void;
|
|
35
35
|
/**
|
|
36
36
|
* `@traitSource` stores the `traitName` of its original trait on the envelope property.
|
|
37
37
|
*
|
|
38
38
|
* @param target The trait envelope property where `traitName` will be stored.
|
|
39
39
|
* @param traitName The name of the original trait to which this property belongs.
|
|
40
40
|
*/
|
|
41
|
-
export type TraitSourceDecorator = (context: DecoratorContext, target: ModelProperty, traitName: string) => void;
|
|
41
|
+
export type TraitSourceDecorator = (context: DecoratorContext, target: ModelProperty, traitName: string) => DecoratorValidatorCallbacks | void;
|
|
42
42
|
/**
|
|
43
43
|
* `@ensureTraitsPresent` checks the envelope properties of `traitModel` to ensure all
|
|
44
44
|
* of the `expectedTraits` are present as envelope properties.
|
|
@@ -47,7 +47,7 @@ export type TraitSourceDecorator = (context: DecoratorContext, target: ModelProp
|
|
|
47
47
|
* @param traitModel The trait model type to check.
|
|
48
48
|
* @param expectedTraits The array of `ExpectedTrait` models which describe each expected trait.
|
|
49
49
|
*/
|
|
50
|
-
export type EnsureTraitsPresentDecorator = (context: DecoratorContext, target: Interface | Operation, traitModel: Model, expectedTraits: Type) => void;
|
|
50
|
+
export type EnsureTraitsPresentDecorator = (context: DecoratorContext, target: Interface | Operation, traitModel: Model, expectedTraits: Type) => DecoratorValidatorCallbacks | void;
|
|
51
51
|
export type AzureCoreTraitsPrivateDecorators = {
|
|
52
52
|
applyTraitOverride: ApplyTraitOverrideDecorator;
|
|
53
53
|
ensureAllQueryParams: EnsureAllQueryParamsDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.Core.Traits.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Traits.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,KACd,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Azure.Core.Traits.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Traits.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,KACd,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,KACd,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,8BAA8B,GAAG,CAC3C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,KACd,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,EACjB,aAAa,EAAE,UAAU,EACzB,aAAa,EAAE,IAAI,KAChB,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,CACjC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,SAAS,EAAE,MAAM,KACd,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,UAAU,EAAE,KAAK,EACjB,cAAc,EAAE,IAAI,KACjB,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,gCAAgC,GAAG;IAC7C,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,oBAAoB,EAAE,6BAA6B,CAAC;IACpD,qBAAqB,EAAE,8BAA8B,CAAC;IACtD,kBAAkB,EAAE,2BAA2B,CAAC;IAChD,WAAW,EAAE,oBAAoB,CAAC;IAClC,mBAAmB,EAAE,4BAA4B,CAAC;CACnD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DecoratorContext, EnumMember, Model, ModelProperty, Type } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, EnumMember, Model, ModelProperty, Type } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* `@traitLocation` sets the applicable location for a trait on its envelope property.
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ import type { DecoratorContext, EnumMember, Model, ModelProperty, Type } from "@
|
|
|
6
6
|
* @param contexts An enum member or union of enum members representing the trait's
|
|
7
7
|
* applicable contexts.
|
|
8
8
|
*/
|
|
9
|
-
export type TraitLocationDecorator = (context: DecoratorContext, target: ModelProperty, contexts: EnumMember) => void;
|
|
9
|
+
export type TraitLocationDecorator = (context: DecoratorContext, target: ModelProperty, contexts: EnumMember) => DecoratorValidatorCallbacks | void;
|
|
10
10
|
/**
|
|
11
11
|
* `@traitContext` sets the applicable context for a trait on its envelope property.
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ export type TraitLocationDecorator = (context: DecoratorContext, target: ModelPr
|
|
|
14
14
|
* @param contexts An enum member or union of enum members representing the trait's
|
|
15
15
|
* applicable contexts.
|
|
16
16
|
*/
|
|
17
|
-
export type TraitContextDecorator = (context: DecoratorContext, target: ModelProperty, contexts: Type) => void;
|
|
17
|
+
export type TraitContextDecorator = (context: DecoratorContext, target: ModelProperty, contexts: Type) => DecoratorValidatorCallbacks | void;
|
|
18
18
|
/**
|
|
19
19
|
* `@trait` marks a model type as representing a 'trait' and performs basic validation
|
|
20
20
|
* checks.
|
|
@@ -23,14 +23,14 @@ export type TraitContextDecorator = (context: DecoratorContext, target: ModelPro
|
|
|
23
23
|
* @param traitName An optional name to uniquely identify the trait. If unspecified,
|
|
24
24
|
* the model type name is used.
|
|
25
25
|
*/
|
|
26
|
-
export type TraitDecorator = (context: DecoratorContext, target: Model, traitName?: string) => void;
|
|
26
|
+
export type TraitDecorator = (context: DecoratorContext, target: Model, traitName?: string) => DecoratorValidatorCallbacks | void;
|
|
27
27
|
/**
|
|
28
28
|
* Sets the version for when the trait was added to the specification. Can be applied
|
|
29
29
|
* to either a trait model type or its envelope property.
|
|
30
30
|
*
|
|
31
31
|
* @param addedVersion The enum member representing the service version.
|
|
32
32
|
*/
|
|
33
|
-
export type TraitAddedDecorator = (context: DecoratorContext, target: Model | ModelProperty, addedVersion: Type) => void;
|
|
33
|
+
export type TraitAddedDecorator = (context: DecoratorContext, target: Model | ModelProperty, addedVersion: Type) => DecoratorValidatorCallbacks | void;
|
|
34
34
|
export type AzureCoreTraitsDecorators = {
|
|
35
35
|
traitLocation: TraitLocationDecorator;
|
|
36
36
|
traitContext: TraitContextDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.Core.Traits.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Traits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Azure.Core.Traits.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.Traits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,UAAU,EACV,KAAK,EACL,aAAa,EACb,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;;;;;GAMG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,UAAU,KACjB,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAClC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,IAAI,KACX,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;;;GAOG;AACH,MAAM,MAAM,cAAc,GAAG,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,SAAS,CAAC,EAAE,MAAM,KACf,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,EAC7B,YAAY,EAAE,IAAI,KACf,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,EAAE,sBAAsB,CAAC;IACtC,YAAY,EAAE,qBAAqB,CAAC;IACpC,KAAK,EAAE,cAAc,CAAC;IACtB,UAAU,EAAE,mBAAmB,CAAC;CACjC,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Operation, Type, Union, UnionVariant } from "@typespec/compiler";
|
|
1
|
+
import type { DecoratorContext, DecoratorValidatorCallbacks, Enum, EnumMember, Model, ModelProperty, Operation, Type, Union, UnionVariant } from "@typespec/compiler";
|
|
2
2
|
/**
|
|
3
3
|
* Used for custom StatusMonitor implementation.
|
|
4
4
|
* Identifies an Enum or ModelProperty as containing long-running operation
|
|
5
5
|
* status.
|
|
6
6
|
*/
|
|
7
|
-
export type LroStatusDecorator = (context: DecoratorContext, entity: Enum | Union | ModelProperty) => void;
|
|
7
|
+
export type LroStatusDecorator = (context: DecoratorContext, entity: Enum | Union | ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
8
8
|
/**
|
|
9
9
|
* Identifies a ModelProperty as containing the final location for the operation result.
|
|
10
10
|
*
|
|
11
11
|
* @param finalResult Sets the expected return value for the final result. Overrides
|
|
12
12
|
* any value provided in the decorated property, if the property uses ResourceLocation<Resource>.
|
|
13
13
|
*/
|
|
14
|
-
export type FinalLocationDecorator = (context: DecoratorContext, entity: ModelProperty, finalResult?: Type) => void;
|
|
14
|
+
export type FinalLocationDecorator = (context: DecoratorContext, entity: ModelProperty, finalResult?: Type) => DecoratorValidatorCallbacks | void;
|
|
15
15
|
/**
|
|
16
16
|
* Identifies a model property as containing the location to poll for operation state.
|
|
17
17
|
*
|
|
@@ -19,7 +19,7 @@ export type FinalLocationDecorator = (context: DecoratorContext, entity: ModelPr
|
|
|
19
19
|
* settings derived from property value it is decorating, if the value of the
|
|
20
20
|
* property is ResourceLocation<Resource>
|
|
21
21
|
*/
|
|
22
|
-
export type PollingLocationDecorator = (context: DecoratorContext, entity: ModelProperty, options?: Type) => void;
|
|
22
|
+
export type PollingLocationDecorator = (context: DecoratorContext, entity: ModelProperty, options?: Type) => DecoratorValidatorCallbacks | void;
|
|
23
23
|
/**
|
|
24
24
|
* Decorator that marks a Version EnumMember as a preview version.
|
|
25
25
|
* This is used to indicate that the version is not yet stable and may change in future releases.
|
|
@@ -39,34 +39,34 @@ export type PollingLocationDecorator = (context: DecoratorContext, entity: Model
|
|
|
39
39
|
* }
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
|
-
export type PreviewVersionDecorator = (context: DecoratorContext, target: EnumMember) => void;
|
|
42
|
+
export type PreviewVersionDecorator = (context: DecoratorContext, target: EnumMember) => DecoratorValidatorCallbacks | void;
|
|
43
43
|
/**
|
|
44
44
|
* Used for custom StatusMonitor implementation.
|
|
45
45
|
* Identifies an EnumMember as a long-running "Succeeded" terminal state.
|
|
46
46
|
*/
|
|
47
|
-
export type LroSucceededDecorator = (context: DecoratorContext, entity: EnumMember | UnionVariant) => void;
|
|
47
|
+
export type LroSucceededDecorator = (context: DecoratorContext, entity: EnumMember | UnionVariant) => DecoratorValidatorCallbacks | void;
|
|
48
48
|
/**
|
|
49
49
|
* Used for custom StatusMonitor implementation.
|
|
50
50
|
* Identifies an EnumMember as a long-running "Canceled" terminal state.
|
|
51
51
|
*/
|
|
52
|
-
export type LroCanceledDecorator = (context: DecoratorContext, entity: EnumMember | UnionVariant) => void;
|
|
52
|
+
export type LroCanceledDecorator = (context: DecoratorContext, entity: EnumMember | UnionVariant) => DecoratorValidatorCallbacks | void;
|
|
53
53
|
/**
|
|
54
54
|
* Used for custom StatusMonitor implementation.
|
|
55
55
|
* Identifies an enum member as a long-running "Failed" terminal state.
|
|
56
56
|
*/
|
|
57
|
-
export type LroFailedDecorator = (context: DecoratorContext, entity: EnumMember | UnionVariant) => void;
|
|
57
|
+
export type LroFailedDecorator = (context: DecoratorContext, entity: EnumMember | UnionVariant) => DecoratorValidatorCallbacks | void;
|
|
58
58
|
/**
|
|
59
59
|
* Used for custom StatusMonitor implementation.
|
|
60
60
|
* Identifies a model property of a StatusMonitor as containing the result
|
|
61
61
|
* of a long-running operation that terminates successfully (Succeeded).
|
|
62
62
|
*/
|
|
63
|
-
export type LroResultDecorator = (context: DecoratorContext, entity: ModelProperty) => void;
|
|
63
|
+
export type LroResultDecorator = (context: DecoratorContext, entity: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
64
64
|
/**
|
|
65
65
|
* Used for custom StatusMonitor implementation.
|
|
66
66
|
* Identifies a model property of a StatusMonitor as containing the result
|
|
67
67
|
* of a long-running operation that terminates unsuccessfully (Failed).
|
|
68
68
|
*/
|
|
69
|
-
export type LroErrorResultDecorator = (context: DecoratorContext, entity: ModelProperty) => void;
|
|
69
|
+
export type LroErrorResultDecorator = (context: DecoratorContext, entity: ModelProperty) => DecoratorValidatorCallbacks | void;
|
|
70
70
|
/**
|
|
71
71
|
* Identifies an operation that is linked to the target operation.
|
|
72
72
|
*
|
|
@@ -75,7 +75,7 @@ export type LroErrorResultDecorator = (context: DecoratorContext, entity: ModelP
|
|
|
75
75
|
* @param parameters Map of `RequestParameter<Name>` and/or `ResponseProperty<Name>` that will
|
|
76
76
|
* be passed to the linked operation request.
|
|
77
77
|
*/
|
|
78
|
-
export type OperationLinkDecorator = (context: DecoratorContext, entity: Operation, linkedOperation: Operation, linkType: string, parameters?: Type) => void;
|
|
78
|
+
export type OperationLinkDecorator = (context: DecoratorContext, entity: Operation, linkedOperation: Operation, linkType: string, parameters?: Type) => DecoratorValidatorCallbacks | void;
|
|
79
79
|
/**
|
|
80
80
|
* Used to define how to call custom polling operations for long-running operations.
|
|
81
81
|
*
|
|
@@ -83,7 +83,7 @@ export type OperationLinkDecorator = (context: DecoratorContext, entity: Operati
|
|
|
83
83
|
* provides a value for, or the name of that parameter. The default value is the name of
|
|
84
84
|
* the decorated parameter or property.
|
|
85
85
|
*/
|
|
86
|
-
export type PollingOperationParameterDecorator = (context: DecoratorContext, entity: ModelProperty, targetParameter?: Type) => void;
|
|
86
|
+
export type PollingOperationParameterDecorator = (context: DecoratorContext, entity: ModelProperty, targetParameter?: Type) => DecoratorValidatorCallbacks | void;
|
|
87
87
|
/**
|
|
88
88
|
* Identifies that an operation is a polling operation for an LRO.
|
|
89
89
|
*
|
|
@@ -91,7 +91,7 @@ export type PollingOperationParameterDecorator = (context: DecoratorContext, ent
|
|
|
91
91
|
* @param parameters Map of `RequestParameter<Name>` and/or `ResponseProperty<Name>` that will
|
|
92
92
|
* be passed to the linked operation request.
|
|
93
93
|
*/
|
|
94
|
-
export type PollingOperationDecorator = (context: DecoratorContext, entity: Operation, linkedOperation: Operation, parameters?: Type) => void;
|
|
94
|
+
export type PollingOperationDecorator = (context: DecoratorContext, entity: Operation, linkedOperation: Operation, parameters?: Type) => DecoratorValidatorCallbacks | void;
|
|
95
95
|
/**
|
|
96
96
|
* Identifies that an operation is the final operation for an LRO.
|
|
97
97
|
*
|
|
@@ -99,17 +99,17 @@ export type PollingOperationDecorator = (context: DecoratorContext, entity: Oper
|
|
|
99
99
|
* @param parameters Map of `RequestParameter<Name>` and/or `ResponseProperty<Name>` that will
|
|
100
100
|
* be passed to the linked operation request.
|
|
101
101
|
*/
|
|
102
|
-
export type FinalOperationDecorator = (context: DecoratorContext, entity: Operation, linkedOperation: Operation, parameters?: Type) => void;
|
|
102
|
+
export type FinalOperationDecorator = (context: DecoratorContext, entity: Operation, linkedOperation: Operation, parameters?: Type) => DecoratorValidatorCallbacks | void;
|
|
103
103
|
/**
|
|
104
104
|
* Overrides the final state value for an operation
|
|
105
105
|
*
|
|
106
106
|
* @param finalState The desired final state value
|
|
107
107
|
*/
|
|
108
|
-
export type UseFinalStateViaDecorator = (context: DecoratorContext, entity: Operation, finalState: "original-uri" | "operation-location" | "location" | "azure-async-operation") => void;
|
|
108
|
+
export type UseFinalStateViaDecorator = (context: DecoratorContext, entity: Operation, finalState: "original-uri" | "operation-location" | "location" | "azure-async-operation") => DecoratorValidatorCallbacks | void;
|
|
109
109
|
/**
|
|
110
110
|
* Specifies that an array model or array-typed property should contain only unique items.
|
|
111
111
|
*/
|
|
112
|
-
export type UniqueItemsDecorator = (context: DecoratorContext, entity: ModelProperty | Model) => void;
|
|
112
|
+
export type UniqueItemsDecorator = (context: DecoratorContext, entity: ModelProperty | Model) => DecoratorValidatorCallbacks | void;
|
|
113
113
|
export type AzureCoreDecorators = {
|
|
114
114
|
lroStatus: LroStatusDecorator;
|
|
115
115
|
finalLocation: FinalLocationDecorator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.Core.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,IAAI,EACJ,KAAK,EACL,YAAY,EACb,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,IAAI,GAAG,KAAK,GAAG,aAAa,KACjC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Azure.Core.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.Core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,2BAA2B,EAC3B,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,IAAI,EACJ,KAAK,EACL,YAAY,EACb,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAC/B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,IAAI,GAAG,KAAK,GAAG,aAAa,KACjC,2BAA2B,GAAG,IAAI,CAAC;AAExC;;;;;G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,SAAS,EAAE,kBAAkB,CAAC;IAC9B,SAAS,EAAE,kBAAkB,CAAC;IAC9B,cAAc,EAAE,uBAAuB,CAAC;IACxC,aAAa,EAAE,sBAAsB,CAAC;IACtC,yBAAyB,EAAE,kCAAkC,CAAC;IAC9D,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,cAAc,EAAE,uBAAuB,CAAC;IACxC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,WAAW,EAAE,oBAAoB,CAAC;CACnC,CAAC"}
|
package/lib/models.tsp
CHANGED
|
@@ -301,7 +301,7 @@ scalar uuid extends string;
|
|
|
301
301
|
* 129.144.50.56
|
|
302
302
|
* ```
|
|
303
303
|
*/
|
|
304
|
-
#suppress "@azure-tools/typespec-autorest/
|
|
304
|
+
#suppress "@azure-tools/typespec-autorest/unknown-format" "Foundation."
|
|
305
305
|
@format("ipV4Address")
|
|
306
306
|
scalar ipV4Address extends string;
|
|
307
307
|
|
|
@@ -316,7 +316,7 @@ scalar ipV4Address extends string;
|
|
|
316
316
|
* 2001:db8:3333:4444:CCCC:DDDD:EEEE:FFFF
|
|
317
317
|
* ```
|
|
318
318
|
*/
|
|
319
|
-
#suppress "@azure-tools/typespec-autorest/
|
|
319
|
+
#suppress "@azure-tools/typespec-autorest/unknown-format" "Foundation."
|
|
320
320
|
@format("ipV6Address")
|
|
321
321
|
scalar ipV6Address extends string;
|
|
322
322
|
|
|
@@ -332,7 +332,7 @@ scalar ipV6Address extends string;
|
|
|
332
332
|
* ETag: "675af34563dc-tr34"
|
|
333
333
|
* ```
|
|
334
334
|
*/
|
|
335
|
-
#suppress "@azure-tools/typespec-autorest/
|
|
335
|
+
#suppress "@azure-tools/typespec-autorest/unknown-format" "Foundation."
|
|
336
336
|
@format("eTag")
|
|
337
337
|
scalar eTag extends string;
|
|
338
338
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-core",
|
|
3
|
-
"version": "0.64.0-dev.
|
|
3
|
+
"version": "0.64.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -47,25 +47,25 @@
|
|
|
47
47
|
"!dist/test/**"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@typespec/compiler": "^1.7.
|
|
50
|
+
"@typespec/compiler": "^1.7.1",
|
|
51
51
|
"@typespec/http": "^1.7.0",
|
|
52
52
|
"@typespec/rest": "^0.77.0 || >=0.78.0-dev <0.78.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "~
|
|
56
|
-
"@typespec/compiler": "^1.7.
|
|
55
|
+
"@types/node": "~25.0.2",
|
|
56
|
+
"@typespec/compiler": "^1.7.1",
|
|
57
57
|
"@typespec/http": "^1.7.0",
|
|
58
58
|
"@typespec/library-linter": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
59
59
|
"@typespec/openapi": "^1.7.0",
|
|
60
60
|
"@typespec/rest": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
61
61
|
"@typespec/tspd": "^0.73.2 || >=0.74.0-dev <0.74.0",
|
|
62
62
|
"@typespec/versioning": "^0.77.0 || >=0.78.0-dev <0.78.0",
|
|
63
|
-
"@vitest/coverage-v8": "^4.0.
|
|
64
|
-
"@vitest/ui": "^4.0.
|
|
63
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
64
|
+
"@vitest/ui": "^4.0.15",
|
|
65
65
|
"c8": "^10.1.3",
|
|
66
66
|
"rimraf": "~6.1.2",
|
|
67
67
|
"typescript": "~5.9.2",
|
|
68
|
-
"vitest": "^4.0.
|
|
68
|
+
"vitest": "^4.0.15"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {},
|
|
71
71
|
"scripts": {
|