@microsoft/typespec-msgraph 0.0.1-Preview.20 → 0.0.1-Preview.21

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 (211) hide show
  1. package/dist/src/components/entity-container-element.d.ts.map +1 -1
  2. package/dist/src/components/entity-container-element.js +6 -2
  3. package/dist/src/components/entity-container-element.js.map +1 -1
  4. package/dist/src/components/property-element.js +1 -1
  5. package/dist/src/components/property-element.js.map +1 -1
  6. package/dist/src/components/schema-element.d.ts.map +1 -1
  7. package/dist/src/components/schema-element.js +4 -1
  8. package/dist/src/components/schema-element.js.map +1 -1
  9. package/dist/src/decorators/abstract.d.ts +2 -0
  10. package/dist/src/decorators/abstract.d.ts.map +1 -1
  11. package/dist/src/decorators/abstract.js +2 -0
  12. package/dist/src/decorators/abstract.js.map +1 -1
  13. package/dist/src/decorators/action.d.ts +2 -0
  14. package/dist/src/decorators/action.d.ts.map +1 -1
  15. package/dist/src/decorators/action.js +2 -0
  16. package/dist/src/decorators/action.js.map +1 -1
  17. package/dist/src/decorators/additional-query-parameters.d.ts +2 -0
  18. package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -1
  19. package/dist/src/decorators/additional-query-parameters.js +2 -0
  20. package/dist/src/decorators/additional-query-parameters.js.map +1 -1
  21. package/dist/src/decorators/address-url-msa.d.ts +2 -0
  22. package/dist/src/decorators/address-url-msa.d.ts.map +1 -1
  23. package/dist/src/decorators/address-url-msa.js +2 -0
  24. package/dist/src/decorators/address-url-msa.js.map +1 -1
  25. package/dist/src/decorators/ags-attribute.d.ts +2 -2
  26. package/dist/src/decorators/ags-attribute.d.ts.map +1 -1
  27. package/dist/src/decorators/ags-attribute.js +22 -19
  28. package/dist/src/decorators/ags-attribute.js.map +1 -1
  29. package/dist/src/decorators/contains.d.ts +2 -0
  30. package/dist/src/decorators/contains.d.ts.map +1 -1
  31. package/dist/src/decorators/contains.js +2 -0
  32. package/dist/src/decorators/contains.js.map +1 -1
  33. package/dist/src/decorators/deprecated-definition.d.ts +2 -0
  34. package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
  35. package/dist/src/decorators/deprecated-definition.js.map +1 -1
  36. package/dist/src/decorators/expand.d.ts +2 -0
  37. package/dist/src/decorators/expand.d.ts.map +1 -1
  38. package/dist/src/decorators/expand.js +2 -0
  39. package/dist/src/decorators/expand.js.map +1 -1
  40. package/dist/src/decorators/experimental.d.ts +2 -0
  41. package/dist/src/decorators/experimental.d.ts.map +1 -1
  42. package/dist/src/decorators/experimental.js +2 -0
  43. package/dist/src/decorators/experimental.js.map +1 -1
  44. package/dist/src/decorators/flags.d.ts +2 -0
  45. package/dist/src/decorators/flags.d.ts.map +1 -1
  46. package/dist/src/decorators/flags.js +2 -0
  47. package/dist/src/decorators/flags.js.map +1 -1
  48. package/dist/src/decorators/function.d.ts +2 -0
  49. package/dist/src/decorators/function.d.ts.map +1 -1
  50. package/dist/src/decorators/function.js +2 -0
  51. package/dist/src/decorators/function.js.map +1 -1
  52. package/dist/src/decorators/global-operation.d.ts +2 -0
  53. package/dist/src/decorators/global-operation.d.ts.map +1 -1
  54. package/dist/src/decorators/global-operation.js +2 -0
  55. package/dist/src/decorators/global-operation.js.map +1 -1
  56. package/dist/src/decorators/graph-deprecated.d.ts +2 -0
  57. package/dist/src/decorators/graph-deprecated.d.ts.map +1 -1
  58. package/dist/src/decorators/graph-deprecated.js +2 -0
  59. package/dist/src/decorators/graph-deprecated.js.map +1 -1
  60. package/dist/src/decorators/graph-route.d.ts +2 -0
  61. package/dist/src/decorators/graph-route.d.ts.map +1 -1
  62. package/dist/src/decorators/graph-route.js +33 -1
  63. package/dist/src/decorators/graph-route.js.map +1 -1
  64. package/dist/src/decorators/immutable.d.ts +2 -0
  65. package/dist/src/decorators/immutable.d.ts.map +1 -1
  66. package/dist/src/decorators/immutable.js +2 -0
  67. package/dist/src/decorators/immutable.js.map +1 -1
  68. package/dist/src/decorators/is-owner.d.ts +2 -0
  69. package/dist/src/decorators/is-owner.d.ts.map +1 -1
  70. package/dist/src/decorators/is-owner.js +2 -0
  71. package/dist/src/decorators/is-owner.js.map +1 -1
  72. package/dist/src/decorators/limited-charset.d.ts +2 -0
  73. package/dist/src/decorators/limited-charset.d.ts.map +1 -1
  74. package/dist/src/decorators/limited-charset.js +2 -0
  75. package/dist/src/decorators/limited-charset.js.map +1 -1
  76. package/dist/src/decorators/media.d.ts +2 -0
  77. package/dist/src/decorators/media.d.ts.map +1 -1
  78. package/dist/src/decorators/media.js +2 -0
  79. package/dist/src/decorators/media.js.map +1 -1
  80. package/dist/src/decorators/open.d.ts +2 -0
  81. package/dist/src/decorators/open.d.ts.map +1 -1
  82. package/dist/src/decorators/open.js +2 -0
  83. package/dist/src/decorators/open.js.map +1 -1
  84. package/dist/src/decorators/operation-parameters.d.ts +2 -0
  85. package/dist/src/decorators/operation-parameters.d.ts.map +1 -1
  86. package/dist/src/decorators/operation-parameters.js +2 -0
  87. package/dist/src/decorators/operation-parameters.js.map +1 -1
  88. package/dist/src/decorators/ownerless.d.ts +2 -0
  89. package/dist/src/decorators/ownerless.d.ts.map +1 -1
  90. package/dist/src/decorators/ownerless.js +2 -0
  91. package/dist/src/decorators/ownerless.js.map +1 -1
  92. package/dist/src/decorators/passthrough-address-url-msa.d.ts +2 -0
  93. package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -1
  94. package/dist/src/decorators/passthrough-address-url-msa.js +2 -0
  95. package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -1
  96. package/dist/src/decorators/passthrough-address-url.d.ts +2 -0
  97. package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -1
  98. package/dist/src/decorators/passthrough-address-url.js +2 -0
  99. package/dist/src/decorators/passthrough-address-url.js.map +1 -1
  100. package/dist/src/decorators/private-preview.d.ts +2 -2
  101. package/dist/src/decorators/private-preview.d.ts.map +1 -1
  102. package/dist/src/decorators/private-preview.js.map +1 -1
  103. package/dist/src/decorators/privileged.d.ts +2 -0
  104. package/dist/src/decorators/privileged.d.ts.map +1 -1
  105. package/dist/src/decorators/privileged.js +2 -0
  106. package/dist/src/decorators/privileged.js.map +1 -1
  107. package/dist/src/decorators/read-only.d.ts +2 -0
  108. package/dist/src/decorators/read-only.d.ts.map +1 -1
  109. package/dist/src/decorators/read-only.js +2 -0
  110. package/dist/src/decorators/read-only.js.map +1 -1
  111. package/dist/src/decorators/reference-target.d.ts +1 -0
  112. package/dist/src/decorators/reference-target.d.ts.map +1 -1
  113. package/dist/src/decorators/reference-target.js +1 -0
  114. package/dist/src/decorators/reference-target.js.map +1 -1
  115. package/dist/src/decorators/references.d.ts +2 -0
  116. package/dist/src/decorators/references.d.ts.map +1 -1
  117. package/dist/src/decorators/references.js +2 -0
  118. package/dist/src/decorators/references.js.map +1 -1
  119. package/dist/src/decorators/return-source.d.ts +2 -0
  120. package/dist/src/decorators/return-source.d.ts.map +1 -1
  121. package/dist/src/decorators/return-source.js +2 -0
  122. package/dist/src/decorators/return-source.js.map +1 -1
  123. package/dist/src/decorators/select.d.ts +2 -0
  124. package/dist/src/decorators/select.d.ts.map +1 -1
  125. package/dist/src/decorators/select.js +2 -0
  126. package/dist/src/decorators/select.js.map +1 -1
  127. package/dist/src/decorators/workload-name-msa.d.ts +2 -0
  128. package/dist/src/decorators/workload-name-msa.d.ts.map +1 -1
  129. package/dist/src/decorators/workload-name-msa.js +2 -0
  130. package/dist/src/decorators/workload-name-msa.js.map +1 -1
  131. package/dist/src/decorators/workload-name.d.ts +2 -0
  132. package/dist/src/decorators/workload-name.d.ts.map +1 -1
  133. package/dist/src/decorators/workload-name.js +2 -0
  134. package/dist/src/decorators/workload-name.js.map +1 -1
  135. package/dist/src/decorators/workload-namespace.d.ts +2 -0
  136. package/dist/src/decorators/workload-namespace.d.ts.map +1 -1
  137. package/dist/src/decorators/workload-namespace.js +2 -0
  138. package/dist/src/decorators/workload-namespace.js.map +1 -1
  139. package/dist/src/decorators/write-only.d.ts +2 -0
  140. package/dist/src/decorators/write-only.d.ts.map +1 -1
  141. package/dist/src/decorators/write-only.js +2 -0
  142. package/dist/src/decorators/write-only.js.map +1 -1
  143. package/dist/src/entities/annotations.d.ts.map +1 -1
  144. package/dist/src/entities/annotations.js +6 -6
  145. package/dist/src/entities/annotations.js.map +1 -1
  146. package/dist/src/entities/entity-container.d.ts +3 -0
  147. package/dist/src/entities/entity-container.d.ts.map +1 -1
  148. package/dist/src/entities/entity-container.js +3 -0
  149. package/dist/src/entities/entity-container.js.map +1 -1
  150. package/dist/src/entities/enum.js +3 -3
  151. package/dist/src/entities/enum.js.map +1 -1
  152. package/dist/src/entities/model.d.ts +1 -0
  153. package/dist/src/entities/model.d.ts.map +1 -1
  154. package/dist/src/entities/model.js +37 -30
  155. package/dist/src/entities/model.js.map +1 -1
  156. package/dist/src/entities/ms-graph-route.d.ts.map +1 -1
  157. package/dist/src/entities/ms-graph-route.js +4 -7
  158. package/dist/src/entities/ms-graph-route.js.map +1 -1
  159. package/dist/src/entities/namespace.d.ts +11 -0
  160. package/dist/src/entities/namespace.d.ts.map +1 -1
  161. package/dist/src/entities/namespace.js +146 -13
  162. package/dist/src/entities/namespace.js.map +1 -1
  163. package/dist/src/entities/operation.d.ts +5 -0
  164. package/dist/src/entities/operation.d.ts.map +1 -1
  165. package/dist/src/entities/operation.js +59 -3
  166. package/dist/src/entities/operation.js.map +1 -1
  167. package/dist/src/entities/revision-definition.d.ts +2 -2
  168. package/dist/src/entities/revision-definition.d.ts.map +1 -1
  169. package/dist/src/entities/revision-definition.js +14 -3
  170. package/dist/src/entities/revision-definition.js.map +1 -1
  171. package/dist/src/lib.d.ts +4 -0
  172. package/dist/src/lib.d.ts.map +1 -1
  173. package/dist/src/lib.js +3 -1
  174. package/dist/src/lib.js.map +1 -1
  175. package/dist/src/linter.d.ts.map +1 -1
  176. package/dist/src/linter.js +9 -2
  177. package/dist/src/linter.js.map +1 -1
  178. package/dist/src/rules/delta.d.ts.map +1 -1
  179. package/dist/src/rules/delta.js +6 -7
  180. package/dist/src/rules/delta.js.map +1 -1
  181. package/dist/src/rules/expand.d.ts.map +1 -1
  182. package/dist/src/rules/expand.js +0 -3
  183. package/dist/src/rules/expand.js.map +1 -1
  184. package/dist/src/rules/filter.js +7 -7
  185. package/dist/src/rules/filter.js.map +1 -1
  186. package/dist/src/rules/function.d.ts +1 -0
  187. package/dist/src/rules/function.d.ts.map +1 -1
  188. package/dist/src/rules/function.js +39 -0
  189. package/dist/src/rules/function.js.map +1 -1
  190. package/dist/src/rules/graph-route.d.ts +1 -0
  191. package/dist/src/rules/graph-route.d.ts.map +1 -1
  192. package/dist/src/rules/graph-route.js +72 -1
  193. package/dist/src/rules/graph-route.js.map +1 -1
  194. package/dist/src/rules/operation-inside-interface.d.ts +3 -0
  195. package/dist/src/rules/operation-inside-interface.d.ts.map +1 -1
  196. package/dist/src/rules/operation-inside-interface.js +36 -2
  197. package/dist/src/rules/operation-inside-interface.js.map +1 -1
  198. package/dist/src/rules/record-t.d.ts +6 -0
  199. package/dist/src/rules/record-t.d.ts.map +1 -1
  200. package/dist/src/rules/record-t.js +48 -1
  201. package/dist/src/rules/record-t.js.map +1 -1
  202. package/dist/src/utils.d.ts +19 -3
  203. package/dist/src/utils.d.ts.map +1 -1
  204. package/dist/src/utils.js +202 -31
  205. package/dist/src/utils.js.map +1 -1
  206. package/dist/src/validate.d.ts.map +1 -1
  207. package/dist/src/validate.js +2 -0
  208. package/dist/src/validate.js.map +1 -1
  209. package/lib/decorators.tsp +1 -1
  210. package/lib/shared-models.tsp +5 -0
  211. package/package.json +3 -4
@@ -3,6 +3,8 @@ const globalOperationKey = Symbol("globalOperation");
3
3
  * `@globalOperation` - specify that this operation is a global operation
4
4
  *
5
5
  * `@globalOperation` - can only be applied to operations
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c4642f5be47133846cb7c47a825a751deb3377089dd62dabc45cf8e7b774126d)
6
8
  */
7
9
  export function $globalOperation(context, target) {
8
10
  context.program.stateSet(globalOperationKey).add(target);
@@ -1 +1 @@
1
- {"version":3,"file":"global-operation.js","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;GAIG;AAEH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAiB;IAC3E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
1
+ {"version":3,"file":"global-operation.js","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;;;GAMG;AAEH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAiB;IAC3E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Namespace, Op
3
3
  * `@graphDeprecated` - Allow us to deprecate a defined element.
4
4
  * `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
5
5
  * functions, routing interfaces and operations.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/19c5b2595ee7dbbdb644caa7a0f67211a30be1c44febcc072d5094ce24494372)
6
8
  */
7
9
  export declare function $graphDeprecated(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name: string): void;
8
10
  export declare function getGraphDeprecated(program: Program, target: Type): string;
@@ -1 +1 @@
1
- {"version":3,"file":"graph-deprecated.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AAEH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,QAGb;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAEzE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE/D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAEhE"}
1
+ {"version":3,"file":"graph-deprecated.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,QAGb;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAEzE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE/D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAEhE"}
@@ -3,6 +3,8 @@ const graphDeprecatedKey = Symbol("graphDeprecated");
3
3
  * `@graphDeprecated` - Allow us to deprecate a defined element.
4
4
  * `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
5
5
  * functions, routing interfaces and operations.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/19c5b2595ee7dbbdb644caa7a0f67211a30be1c44febcc072d5094ce24494372)
6
8
  */
7
9
  export function $graphDeprecated(context, target, name) {
8
10
  context.program.stateMap(graphDeprecatedKey).set(target, name);
@@ -1 +1 @@
1
- {"version":3,"file":"graph-deprecated.js","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAYA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;GAIG;AAEH,MAAM,UAAU,gBAAgB,CAC9B,OAAyB,EACzB,MAAyE,EACzE,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC;AAGD,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
1
+ {"version":3,"file":"graph-deprecated.js","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAYA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;;;GAMG;AAEH,MAAM,UAAU,gBAAgB,CAC9B,OAAyB,EACzB,MAAyE,EACzE,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC;AAGD,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
@@ -2,6 +2,8 @@ import { DecoratorContext, Interface, Operation, Program, Type, ModelProperty, R
2
2
  /**
3
3
  * `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
4
4
  * `@graphRoute` - Applies to interfaces and operations.
5
+ *
6
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/33ddaf863400239b20e87543c3662baf7ac97ab8e722fd155587e333efc0946f)
5
7
  */
6
8
  export declare function $graphRoute(context: DecoratorContext, target: Interface | Operation, path: string): void;
7
9
  export declare function resolveOperationParametersForGraphRoute(operation: Operation, graphRoute: string): RekeyableMap<string, ModelProperty>;
@@ -1 +1 @@
1
- {"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEJ,aAAa,EAEb,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAK5B;;;GAGG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,IAAI,EAAE,MAAM,QA6Bb;AAyBD,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,MAAM,GACjB,YAAY,CAAC,MAAM,EAAE,aAAa,CAAC,CA2BrC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAG5D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,EAAE,GAAG,SAAS,CAGvF;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE3D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC,CAanF"}
1
+ {"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEJ,aAAa,EAEb,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAK5B;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,IAAI,EAAE,MAAM,QA8Bb;AA+DD,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,MAAM,GACjB,YAAY,CAAC,MAAM,EAAE,aAAa,CAAC,CA2BrC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAG5D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,EAAE,GAAG,SAAS,CAGvF;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE3D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC,CAanF"}
@@ -1,9 +1,11 @@
1
1
  import { createRekeyableMap, } from "@typespec/compiler";
2
- import { getNavigationSourceType } from "../utils.js";
2
+ import { extractTypesFromUnion, getNavigationSourceType } from "../utils.js";
3
3
  const graphRouteKey = Symbol("graphRoute");
4
4
  /**
5
5
  * `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
6
6
  * `@graphRoute` - Applies to interfaces and operations.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/33ddaf863400239b20e87543c3662baf7ac97ab8e722fd155587e333efc0946f)
7
9
  */
8
10
  export function $graphRoute(context, target, path) {
9
11
  const state = context.program.stateMap(graphRouteKey);
@@ -30,10 +32,40 @@ export function $graphRoute(context, target, path) {
30
32
  const returnType = getNavigationSourceType(context.program, operation);
31
33
  if (returnType !== undefined) {
32
34
  replaceResourceType(context.program, operation, returnType);
35
+ replacePorcelainReturnType(context.program, operation, returnType);
33
36
  }
34
37
  });
35
38
  }
36
39
  }
40
+ function replacePorcelainReturnType(program, operation, resourceType) {
41
+ var _a;
42
+ if (!getCalculatedResourceType(program)) {
43
+ return;
44
+ }
45
+ const resourceCoreType = getResourceCoreType(resourceType);
46
+ const isTargetType = (type) => type.name === "CalculatedResourceType" || type.name === "DeltaCollectionBody";
47
+ if (operation.returnType.kind === "Model" && operation.returnType.name === "Array") {
48
+ const indexer = (_a = operation.returnType.indexer) === null || _a === void 0 ? void 0 : _a.value;
49
+ if (indexer && indexer.kind === "Model" && isTargetType(indexer)) {
50
+ operation.returnType = resourceCoreType;
51
+ }
52
+ }
53
+ if (operation.returnType.kind === "Model" && isTargetType(operation.returnType)) {
54
+ operation.returnType = resourceCoreType;
55
+ }
56
+ if (operation.returnType.kind === "Union") {
57
+ const unionTypes = extractTypesFromUnion(operation.returnType);
58
+ const modelUnionType = unionTypes.find((type) => type.kind === "Model");
59
+ if (modelUnionType && isTargetType(modelUnionType)) {
60
+ operation.returnType = resourceCoreType;
61
+ }
62
+ }
63
+ return;
64
+ }
65
+ function getCalculatedResourceType(program) {
66
+ const [calculatedResourceType, _] = program.resolveTypeReference("MsGraph.Automatic.CalculatedResourceType");
67
+ return calculatedResourceType;
68
+ }
37
69
  function replaceResourceType(program, operation, resourceType) {
38
70
  const [calculatedResourceType, _] = program.resolveTypeReference("MsGraph.Automatic.CalculatedResourceType");
39
71
  if (!calculatedResourceType) {
@@ -1 +1 @@
1
- {"version":3,"file":"graph-route.js","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,OAAyB,EACzB,MAA6B,EAC7B,IAAY;IAEZ,MAAM,KAAK,GAAG,OAAO,CAA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AAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAiC,CAAC;IAC7D,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;QAC9D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,WAAW,CAAC;gBACjB,KAAK,WAAW;oBACd,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBAC9B,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -2,6 +2,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
2
2
  /**
3
3
  * `@immutable` - mark a model property as immutable
4
4
  * '@immutable' can only be applied to Model properties.
5
+ *
6
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/417b34458b742060e55ca729ef1280471a94fab781087f6fb855e5e9d80f5314)
5
7
  */
6
8
  export declare function $immutable(context: DecoratorContext, target: ModelProperty): void;
7
9
  export declare function isImmutable(program: Program, target: ModelProperty): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"immutable.d.ts","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;GAGG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAEjF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,WAElE"}
1
+ {"version":3,"file":"immutable.d.ts","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;GAKG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAEjF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,WAElE"}
@@ -2,6 +2,8 @@ const immutableKey = Symbol("immutable");
2
2
  /**
3
3
  * `@immutable` - mark a model property as immutable
4
4
  * '@immutable' can only be applied to Model properties.
5
+ *
6
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/417b34458b742060e55ca729ef1280471a94fab781087f6fb855e5e9d80f5314)
5
7
  */
6
8
  export function $immutable(context, target) {
7
9
  context.program.stateSet(immutableKey).add(target);
@@ -1 +1 @@
1
- {"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;GAGG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAqB;IACzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAqB;IACjE,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;;;GAKG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAqB;IACzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAqB;IACjE,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, ModelProperty, Program, Type } from "@typespec
3
3
  * `@isOwner` - specify that this workload is the primary owner of this entity model
4
4
  *
5
5
  * `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6bf9ba526d4eb478a2385acbe3276c9bd05c62e8923bae3201d14af523b77c56)
6
8
  */
7
9
  export declare function $isOwner(context: DecoratorContext, target: Model | ModelProperty, value?: boolean): void;
8
10
  export declare function hasIsOwner(program: Program, target: Type): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"is-owner.d.ts","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK3F;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,GAAG,aAAa,EAAE,KAAK,CAAC,EAAE,OAAO,QAEjG;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAElE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAE3E"}
1
+ {"version":3,"file":"is-owner.d.ts","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK3F;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,GAAG,aAAa,EAAE,KAAK,CAAC,EAAE,OAAO,QAEjG;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAElE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAE3E"}
@@ -4,6 +4,8 @@ const isOwnerKey = Symbol("isOwner");
4
4
  * `@isOwner` - specify that this workload is the primary owner of this entity model
5
5
  *
6
6
  * `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6bf9ba526d4eb478a2385acbe3276c9bd05c62e8923bae3201d14af523b77c56)
7
9
  */
8
10
  export function $isOwner(context, target, value) {
9
11
  context.program.stateMap(isOwnerKey).set(target, value);
@@ -1 +1 @@
1
- {"version":3,"file":"is-owner.js","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,mCAAmC;AACnC;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAA6B,EAAE,KAAe;IAChG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,MAAY;IACvD,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,MAAY;IAChE,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC"}
1
+ {"version":3,"file":"is-owner.js","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,mCAAmC;AACnC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAA6B,EAAE,KAAe;IAChG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,MAAY;IACvD,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,MAAY;IAChE,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
3
3
  * `@limitedCharset` - indicates that the full unicode character set is not supported by the underlying back-end service that implements the API
4
4
  *
5
5
  * `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e675b750c01ebabb4a6244e465991040102076e804669797307c83393fd78597)
6
8
  */
7
9
  export declare function $limitedCharset(context: DecoratorContext, target: ModelProperty): void;
8
10
  export declare function supportsLimitedCharset(program: Program, property: ModelProperty): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"limited-charset.d.ts","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAE/E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAE/E"}
1
+ {"version":3,"file":"limited-charset.d.ts","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAE/E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAE/E"}
@@ -3,6 +3,8 @@ const limitedCharsetKey = Symbol("limitedCharset");
3
3
  * `@limitedCharset` - indicates that the full unicode character set is not supported by the underlying back-end service that implements the API
4
4
  *
5
5
  * `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e675b750c01ebabb4a6244e465991040102076e804669797307c83393fd78597)
6
8
  */
7
9
  export function $limitedCharset(context, target) {
8
10
  context.program.stateSet(limitedCharsetKey).add(target);
@@ -1 +1 @@
1
- {"version":3,"file":"limited-charset.js","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAyB,EAAE,MAAqB;IAC9E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,QAAuB;IAC9E,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC3D,CAAC"}
1
+ {"version":3,"file":"limited-charset.js","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,OAAyB,EAAE,MAAqB;IAC9E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,QAAuB;IAC9E,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC3D,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
3
3
  * `@media` - indicates that an `@entity` model is a media entity.
4
4
  *
5
5
  * `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/73ff61d95ee9b166cdb9995e9084cdc7820cd65dadc708f324fa6769deb2f90a)
6
8
  */
7
9
  export declare function $media(context: DecoratorContext, target: Model, ...mediaTypes: string[]): void;
8
10
  export declare function isMedia(program: Program, target: Model): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAEvF;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAEhE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,CAEvE"}
1
+ {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAEvF;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAEhE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,CAEvE"}
@@ -3,6 +3,8 @@ const mediaKey = Symbol("media");
3
3
  * `@media` - indicates that an `@entity` model is a media entity.
4
4
  *
5
5
  * `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/73ff61d95ee9b166cdb9995e9084cdc7820cd65dadc708f324fa6769deb2f90a)
6
8
  */
7
9
  export function $media(context, target, ...mediaTypes) {
8
10
  context.program.stateMap(mediaKey).set(target, mediaTypes);
@@ -1 +1 @@
1
- {"version":3,"file":"media.js","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,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compiler";
3
3
  * `@open` - mark a model type as open
4
4
  *
5
5
  * `@open` can only be applied to models.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e58bd4cc7e3194baa7037fb7d3eb587f655ce2b93e3f4c1a4bf0c8186ac4663d)
6
8
  */
7
9
  export declare function $open(context: DecoratorContext, entity: Model): void;
8
10
  export declare function isOpen(program: Program, entity: Model): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAE7D;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAErD"}
1
+ {"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAE7D;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAErD"}
@@ -3,6 +3,8 @@ const openKey = Symbol("open");
3
3
  * `@open` - mark a model type as open
4
4
  *
5
5
  * `@open` can only be applied to models.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e58bd4cc7e3194baa7037fb7d3eb587f655ce2b93e3f4c1a4bf0c8186ac4663d)
6
8
  */
7
9
  export function $open(context, entity) {
8
10
  context.program.stateSet(openKey).add(entity);
@@ -1 +1 @@
1
- {"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAE/B;;;;GAIG;AACH,MAAM,UAAU,KAAK,CAAC,OAAyB,EAAE,MAAa;IAC5D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,OAAgB,EAAE,MAAa;IACpD,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
1
+ {"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAE/B;;;;;;GAMG;AACH,MAAM,UAAU,KAAK,CAAC,OAAyB,EAAE,MAAa;IAC5D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,OAAgB,EAAE,MAAa;IACpD,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
@@ -5,6 +5,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
5
5
  * or any other way except through being a parameter for an action operation.
6
6
  * The purpose of this model is only to define model parameters that would be too verbose.
7
7
  * This decorator will be the equivalent of inlining the properties of the model into parameters of the operation.
8
+ *
9
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/fa1f7ea8df7e9c2233052230572210a6b11462cb723f0d6e9fa051cdf443a9cc)
8
10
  */
9
11
  export declare function $operationParameters(context: DecoratorContext, model: Model): void;
10
12
  export declare function isOperationParameters(program: Program, model: Model): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"operation-parameters.d.ts","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,QAE3E;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,WAEnE"}
1
+ {"version":3,"file":"operation-parameters.d.ts","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,QAE3E;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,WAEnE"}
@@ -5,6 +5,8 @@ const operationParametersKey = Symbol("operationParameters");
5
5
  * or any other way except through being a parameter for an action operation.
6
6
  * The purpose of this model is only to define model parameters that would be too verbose.
7
7
  * This decorator will be the equivalent of inlining the properties of the model into parameters of the operation.
8
+ *
9
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/fa1f7ea8df7e9c2233052230572210a6b11462cb723f0d6e9fa051cdf443a9cc)
8
10
  */
9
11
  export function $operationParameters(context, model) {
10
12
  context.program.stateSet(operationParametersKey).add(model);
@@ -1 +1 @@
1
- {"version":3,"file":"operation-parameters.js","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC7D;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAyB,EAAE,KAAY;IAC1E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAgB,EAAE,KAAY;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC"}
1
+ {"version":3,"file":"operation-parameters.js","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC7D;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAyB,EAAE,KAAY;IAC1E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAgB,EAAE,KAAY;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC"}
@@ -2,6 +2,8 @@ import { DecoratorContext, Interface, Program } from "@typespec/compiler";
2
2
  /**
3
3
  * `@ownerless` - mark an interface as ownerless
4
4
  * '@ownerless' can only be applied to Interfaces.
5
+ *
6
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c3a0100745b1e2985105da93daa98af72e0e111af19e69e0bab7b0724b6f5808)
5
7
  */
6
8
  export declare function $ownerless(context: DecoratorContext, target: Interface): void;
7
9
  export declare function isOwnerless(program: Program, target: Interface): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ownerless.d.ts","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;GAGG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAE7E;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE9D"}
1
+ {"version":3,"file":"ownerless.d.ts","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAE7E;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE9D"}
@@ -2,6 +2,8 @@ const ownerlessKey = Symbol("ownerless");
2
2
  /**
3
3
  * `@ownerless` - mark an interface as ownerless
4
4
  * '@ownerless' can only be applied to Interfaces.
5
+ *
6
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c3a0100745b1e2985105da93daa98af72e0e111af19e69e0bab7b0724b6f5808)
5
7
  */
6
8
  export function $ownerless(context, target) {
7
9
  context.program.stateSet(ownerlessKey).add(target);
@@ -1 +1 @@
1
- {"version":3,"file":"ownerless.js","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;GAGG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAiB;IACrE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAiB;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"ownerless.js","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;;;GAKG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAiB;IACrE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAiB;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
@@ -4,6 +4,8 @@ import { DecoratorContext, Program, Interface, Operation } from "@typespec/compi
4
4
  * is authenticated with a Microsoft account and the request is eligible for response passthrough.
5
5
  *
6
6
  * `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c96ef60bee89c9b72634b03b75142e80338e29aa6561d8d68fb673742f7e339a)
7
9
  */
8
10
  export declare function $passthroughAddressUrlMsa(context: DecoratorContext, target: Interface | Operation, url: string): void;
9
11
  export declare function hasPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"passthrough-address-url-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIrF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAGZ;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,OAAO,CAET;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAEpB"}
1
+ {"version":3,"file":"passthrough-address-url-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIrF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAGZ;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,OAAO,CAET;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAEpB"}
@@ -4,6 +4,8 @@ const passthroughAddressUrlMsaKey = Symbol("passthroughAddressUrlMsaKey");
4
4
  * is authenticated with a Microsoft account and the request is eligible for response passthrough.
5
5
  *
6
6
  * `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c96ef60bee89c9b72634b03b75142e80338e29aa6561d8d68fb673742f7e339a)
7
9
  */
8
10
  export function $passthroughAddressUrlMsa(context, target, url) {
9
11
  context.program.stateMap(passthroughAddressUrlMsaKey).set(target, url);
@@ -1 +1 @@
1
- {"version":3,"file":"passthrough-address-url-msa.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAEA,MAAM,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC"}
1
+ {"version":3,"file":"passthrough-address-url-msa.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAEA,MAAM,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAE1E;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC"}
@@ -4,6 +4,8 @@ import { DecoratorContext, Program, Interface, Operation } from "@typespec/compi
4
4
  * is authenticated with an AAD account and the request is eligible for response passthrough.
5
5
  *
6
6
  * `@passthroughAddressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/5026dfeee13c9c0f44b4c6299193a89fbb272778aa408e4cd02be293d872b74d)
7
9
  */
8
10
  export declare function $passthroughAddressUrl(context: DecoratorContext, target: Interface | Operation, url: string): void;
9
11
  export declare function hasPassthroughAddressUrl(program: Program, target: Interface | Operation): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"passthrough-address-url.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIrF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAGZ;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAEjG;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAEpB"}
1
+ {"version":3,"file":"passthrough-address-url.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAIrF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAGZ;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAEjG;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAEpB"}
@@ -4,6 +4,8 @@ const passthroughAddressUrlKey = Symbol("passthroughAddressUrlKey");
4
4
  * is authenticated with an AAD account and the request is eligible for response passthrough.
5
5
  *
6
6
  * `@passthroughAddressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
7
+ *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/5026dfeee13c9c0f44b4c6299193a89fbb272778aa408e4cd02be293d872b74d)
7
9
  */
8
10
  export function $passthroughAddressUrl(context, target, url) {
9
11
  context.program.stateMap(passthroughAddressUrlKey).set(target, url);
@@ -1 +1 @@
1
- {"version":3,"file":"passthrough-address-url.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url.ts"],"names":[],"mappings":"AAEA,MAAM,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAA6B;IACtF,OAAO,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC"}
1
+ {"version":3,"file":"passthrough-address-url.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url.ts"],"names":[],"mappings":"AAEA,MAAM,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAEpE;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAA6B;IACtF,OAAO,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC"}
@@ -1,11 +1,11 @@
1
- import { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
1
+ import { DecoratorContext, Enum, EnumMember, Interface, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
2
2
  /**
3
3
  * `@privatePreview` - Allow us to deprecate a defined element.
4
4
  * `@privatePreview` - Applies to models, model properties, enums, enum members, namespaces and operations.
5
5
  *
6
6
  * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/191497a0ac1cc510194fe3c5ced2e7423ec60febb20c90ff5c28ff0d0d74b868)
7
7
  */
8
- export declare function $privatePreview(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name: string): void;
8
+ export declare function $privatePreview(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace | Interface, name: string): void;
9
9
  export declare function getPrivatePreview(program: Program, target: Type): string;
10
10
  export declare function isPrivatePreview(program: Program, target: Type): boolean;
11
11
  //# sourceMappingURL=private-preview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"private-preview.d.ts","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,QAGb;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE9D"}
1
+ {"version":3,"file":"private-preview.d.ts","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,EACrF,IAAI,EAAE,MAAM,QAGb;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"private-preview.js","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAYA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAyB,EACzB,MAAyE,EACzE,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB,EAAE,MAAY;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC"}
1
+ {"version":3,"file":"private-preview.js","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAaA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAyB,EACzB,MAAqF,EACrF,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB,EAAE,MAAY;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, ModelProperty, Enum, EnumMember, Operation, Na
3
3
  * `@privileged` - mark the entity as privileged
4
4
  *
5
5
  * `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e4e5a27ad665f206b0f975cf6b32f7046cbef6b6cc150076e8de7d4942409337)
6
8
  */
7
9
  export declare function $privileged(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace): void;
8
10
  export declare function isPrivileged(program: Program, target: Type): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"privileged.d.ts","sourceRoot":"","sources":["../../../src/decorators/privileged.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,IAAI,EACJ,UAAU,EACV,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,QAG1E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEpE"}
1
+ {"version":3,"file":"privileged.d.ts","sourceRoot":"","sources":["../../../src/decorators/privileged.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,IAAI,EACJ,UAAU,EACV,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,QAG1E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEpE"}
@@ -3,6 +3,8 @@ const privilegedKey = Symbol("privileged");
3
3
  * `@privileged` - mark the entity as privileged
4
4
  *
5
5
  * `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e4e5a27ad665f206b0f975cf6b32f7046cbef6b6cc150076e8de7d4942409337)
6
8
  */
7
9
  export function $privileged(context, target) {
8
10
  context.program.stateSet(privilegedKey).add(target);
@@ -1 +1 @@
1
- {"version":3,"file":"privileged.js","sourceRoot":"","sources":["../../../src/decorators/privileged.ts"],"names":[],"mappings":"AAYA,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3C;;;;GAIG;AACH,MAAM,UAAU,WAAW,CACzB,OAAyB,EACzB,MAAyE;IAEzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,MAAY;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"privileged.js","sourceRoot":"","sources":["../../../src/decorators/privileged.ts"],"names":[],"mappings":"AAYA,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CACzB,OAAyB,EACzB,MAAyE;IAEzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,MAAY;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC"}
@@ -3,6 +3,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
3
3
  * `@readOnly` - mark a model property as readOnly property
4
4
  *
5
5
  * `@readOnly` can only be applied to model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/dd3eb344f046a1acc2043b7e2dc1e00df4b060f12604408ef22d0cee9ec9e9bc)
6
8
  */
7
9
  export declare function $readOnly(context: DecoratorContext, entity: ModelProperty): void;
8
10
  export declare function isReadOnly(program: Program, property: ModelProperty): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"read-only.d.ts","sourceRoot":"","sources":["../../../src/decorators/read-only.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG9E;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAEzE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
1
+ {"version":3,"file":"read-only.d.ts","sourceRoot":"","sources":["../../../src/decorators/read-only.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAEzE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
@@ -3,6 +3,8 @@ const readOnlyKey = Symbol("readOnly");
3
3
  * `@readOnly` - mark a model property as readOnly property
4
4
  *
5
5
  * `@readOnly` can only be applied to model properties.
6
+ *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/dd3eb344f046a1acc2043b7e2dc1e00df4b060f12604408ef22d0cee9ec9e9bc)
6
8
  */
7
9
  export function $readOnly(context, entity) {
8
10
  context.program.stateSet(readOnlyKey).add(entity);
@@ -1 +1 @@
1
- {"version":3,"file":"read-only.js","sourceRoot":"","sources":["../../../src/decorators/read-only.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,MAAqB;IACxE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"read-only.js","sourceRoot":"","sources":["../../../src/decorators/read-only.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,MAAqB;IACxE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
@@ -4,6 +4,7 @@ import { DecoratorContext, Interface, Program } from "@typespec/compiler";
4
4
  *
5
5
  * @referenceTarget - Applies to interfaces
6
6
  *
7
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/a42dcc762de8a9b5931abfd4d9ec732caa542f63b5dbc7bc297cadc0eb5c4f3b)
7
8
  */
8
9
  export declare function $referenceTarget(context: DecoratorContext, target: Interface, value: string): void;
9
10
  export declare function hasReferenceTarget(program: Program, target: Interface): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"reference-target.d.ts","sourceRoot":"","sources":["../../../src/decorators/reference-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,QAE3F;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAE/E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,CAE9E;AAGD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,sCAAsC,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAU7K"}
1
+ {"version":3,"file":"reference-target.d.ts","sourceRoot":"","sources":["../../../src/decorators/reference-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,QAE3F;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAE/E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,CAE9E;AAGD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,sCAAsC,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAU7K"}
@@ -5,6 +5,7 @@ const referenceTargetKey = Symbol("referenceTarget");
5
5
  *
6
6
  * @referenceTarget - Applies to interfaces
7
7
  *
8
+ * [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/a42dcc762de8a9b5931abfd4d9ec732caa542f63b5dbc7bc297cadc0eb5c4f3b)
8
9
  */
9
10
  export function $referenceTarget(context, target, value) {
10
11
  context.program.stateMap(referenceTargetKey).set(target, value);
@@ -1 +1 @@
1
- {"version":3,"file":"reference-target.js","sourceRoot":"","sources":["../../../src/decorators/reference-target.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACrD;;;;;GAKG;AAEH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAiB,EAAE,KAAa;IAC1F,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,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