@typespec/http-client-js 0.4.0-dev.5 → 0.4.0-dev.7

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 (146) hide show
  1. package/README.md +7 -0
  2. package/dist/src/components/client-context/client-context-declaration.js +1 -2
  3. package/dist/src/components/client-context/client-context-factory.js +2 -4
  4. package/dist/src/components/client-context/client-context-options.js +1 -2
  5. package/dist/src/components/client-context/client-context.js +1 -2
  6. package/dist/src/components/client-context/parametrized-endpoint.js +2 -4
  7. package/dist/src/components/client-directory.js +1 -2
  8. package/dist/src/components/client-operation.js +1 -2
  9. package/dist/src/components/client.js +2 -4
  10. package/dist/src/components/encoding-provider.js +1 -2
  11. package/dist/src/components/external-packages/ts-http-runtime.js +1 -2
  12. package/dist/src/components/external-packages/uri-template.js +1 -2
  13. package/dist/src/components/http-request-options.js +1 -2
  14. package/dist/src/components/http-request-parameters-expression.js +2 -4
  15. package/dist/src/components/http-request.js +2 -5
  16. package/dist/src/components/http-response.js +2 -4
  17. package/dist/src/components/models.js +2 -4
  18. package/dist/src/components/operation-handlers/index.js +1 -2
  19. package/dist/src/components/operation-handlers/operation-pipeline.js +1 -2
  20. package/dist/src/components/operation-handlers/paging/page-item.js +1 -2
  21. package/dist/src/components/operation-handlers/paging/page-response.js +1 -2
  22. package/dist/src/components/operation-handlers/paging/page-settings.js +1 -2
  23. package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js +2 -4
  24. package/dist/src/components/operation-handlers/paging/request-send.js +2 -4
  25. package/dist/src/components/operation-handlers/paging/response-deserialize.js +2 -4
  26. package/dist/src/components/operation-handlers/paging/util.js +1 -2
  27. package/dist/src/components/operation-options.js +1 -2
  28. package/dist/src/components/operation-parameters.js +1 -2
  29. package/dist/src/components/output.js +1 -2
  30. package/dist/src/components/serializers.js +2 -4
  31. package/dist/src/components/static-helpers/bytes-encoding.js +2 -4
  32. package/dist/src/components/static-helpers/interfaces.js +1 -2
  33. package/dist/src/components/static-helpers/multipart-helpers.js +2 -4
  34. package/dist/src/components/static-helpers/paging-helper.js +2 -4
  35. package/dist/src/components/static-helpers/rest-error.js +2 -4
  36. package/dist/src/components/testing/client-options.js +1 -2
  37. package/dist/src/components/transforms/content-type-encoding-provider.js +1 -2
  38. package/dist/src/components/transforms/data-transform.js +1 -2
  39. package/dist/src/components/transforms/json/json-array-transform.js +2 -4
  40. package/dist/src/components/transforms/json/json-model-additional-properties-transform.js +2 -4
  41. package/dist/src/components/transforms/json/json-model-base-transform.js +2 -4
  42. package/dist/src/components/transforms/json/json-model-property-transform.js +1 -2
  43. package/dist/src/components/transforms/json/json-model-transform.js +2 -5
  44. package/dist/src/components/transforms/json/json-record-transform.js +2 -4
  45. package/dist/src/components/transforms/json/json-transform-discriminator.js +2 -5
  46. package/dist/src/components/transforms/json/json-transform.js +1 -2
  47. package/dist/src/components/transforms/json/union-transform.js +2 -5
  48. package/dist/src/components/transforms/json/utils/transport-namer.js +1 -2
  49. package/dist/src/components/transforms/multipart/array-part-transform.js +2 -4
  50. package/dist/src/components/transforms/multipart/file-part-transform.js +1 -2
  51. package/dist/src/components/transforms/multipart/multipart-transform.js +1 -2
  52. package/dist/src/components/transforms/multipart/part-transform.js +1 -2
  53. package/dist/src/components/transforms/multipart/simple-part-transform.js +1 -2
  54. package/dist/src/components/transforms/operation-transform-declaration.js +1 -2
  55. package/dist/src/components/transforms/operation-transform-expression.js +1 -2
  56. package/dist/src/components/transforms/scalar-transform.js +1 -2
  57. package/dist/src/components/transforms/transform-name-policy.js +1 -2
  58. package/dist/src/components/utils/unpack-model-property.js +1 -2
  59. package/dist/src/components/utils/url-template.js +2 -4
  60. package/dist/src/context/encoding/encoding-context.js +1 -2
  61. package/dist/src/emitter.js +1 -2
  62. package/dist/src/index.js +1 -2
  63. package/dist/src/lib.js +1 -2
  64. package/dist/src/testing/index.js +1 -2
  65. package/dist/src/utils/client-discovery.js +1 -2
  66. package/dist/src/utils/multipart.js +1 -2
  67. package/dist/src/utils/operations.js +1 -2
  68. package/dist/src/utils/parameters.js +1 -2
  69. package/dist/tsconfig.tsbuildinfo +1 -1
  70. package/package.json +9 -14
  71. package/test/e2e/http/payload/json-merge-patch/main.test.ts +2 -2
  72. package/test/scenarios/models/inline-models.md +4 -1
  73. package/test/scenarios/multipart/anonymous_part.md +6 -1
  74. package/test/scenarios/multipart/non-string-float.md +6 -1
  75. package/test/scenarios/operation-parameters/body_root_anonymous.md +12 -2
  76. package/vitest.config.ts +2 -9
  77. package/babel.config.js +0 -4
  78. package/dist/src/components/client-context/client-context-declaration.js.map +0 -1
  79. package/dist/src/components/client-context/client-context-factory.js.map +0 -1
  80. package/dist/src/components/client-context/client-context-options.js.map +0 -1
  81. package/dist/src/components/client-context/client-context.js.map +0 -1
  82. package/dist/src/components/client-context/parametrized-endpoint.js.map +0 -1
  83. package/dist/src/components/client-directory.js.map +0 -1
  84. package/dist/src/components/client-operation.js.map +0 -1
  85. package/dist/src/components/client.js.map +0 -1
  86. package/dist/src/components/encoding-provider.js.map +0 -1
  87. package/dist/src/components/external-packages/ts-http-runtime.js.map +0 -1
  88. package/dist/src/components/external-packages/uri-template.js.map +0 -1
  89. package/dist/src/components/http-request-options.js.map +0 -1
  90. package/dist/src/components/http-request-parameters-expression.js.map +0 -1
  91. package/dist/src/components/http-request.js.map +0 -1
  92. package/dist/src/components/http-response.js.map +0 -1
  93. package/dist/src/components/models.js.map +0 -1
  94. package/dist/src/components/operation-handlers/index.js.map +0 -1
  95. package/dist/src/components/operation-handlers/operation-pipeline.js.map +0 -1
  96. package/dist/src/components/operation-handlers/paging/page-item.js.map +0 -1
  97. package/dist/src/components/operation-handlers/paging/page-response.js.map +0 -1
  98. package/dist/src/components/operation-handlers/paging/page-settings.js.map +0 -1
  99. package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js.map +0 -1
  100. package/dist/src/components/operation-handlers/paging/request-send.js.map +0 -1
  101. package/dist/src/components/operation-handlers/paging/response-deserialize.js.map +0 -1
  102. package/dist/src/components/operation-handlers/paging/util.js.map +0 -1
  103. package/dist/src/components/operation-handlers/types.js.map +0 -1
  104. package/dist/src/components/operation-options.js.map +0 -1
  105. package/dist/src/components/operation-parameters.js.map +0 -1
  106. package/dist/src/components/output.js.map +0 -1
  107. package/dist/src/components/serializers.js.map +0 -1
  108. package/dist/src/components/static-helpers/bytes-encoding.js.map +0 -1
  109. package/dist/src/components/static-helpers/interfaces.js.map +0 -1
  110. package/dist/src/components/static-helpers/multipart-helpers.js.map +0 -1
  111. package/dist/src/components/static-helpers/paging-helper.js.map +0 -1
  112. package/dist/src/components/static-helpers/rest-error.js.map +0 -1
  113. package/dist/src/components/testing/client-options.js.map +0 -1
  114. package/dist/src/components/transforms/content-type-encoding-provider.js.map +0 -1
  115. package/dist/src/components/transforms/data-transform.js.map +0 -1
  116. package/dist/src/components/transforms/json/json-array-transform.js.map +0 -1
  117. package/dist/src/components/transforms/json/json-model-additional-properties-transform.js.map +0 -1
  118. package/dist/src/components/transforms/json/json-model-base-transform.js.map +0 -1
  119. package/dist/src/components/transforms/json/json-model-property-transform.js.map +0 -1
  120. package/dist/src/components/transforms/json/json-model-transform.js.map +0 -1
  121. package/dist/src/components/transforms/json/json-record-transform.js.map +0 -1
  122. package/dist/src/components/transforms/json/json-transform-discriminator.js.map +0 -1
  123. package/dist/src/components/transforms/json/json-transform.js.map +0 -1
  124. package/dist/src/components/transforms/json/union-transform.js.map +0 -1
  125. package/dist/src/components/transforms/json/utils/transport-namer.js.map +0 -1
  126. package/dist/src/components/transforms/multipart/array-part-transform.js.map +0 -1
  127. package/dist/src/components/transforms/multipart/file-part-transform.js.map +0 -1
  128. package/dist/src/components/transforms/multipart/multipart-transform.js.map +0 -1
  129. package/dist/src/components/transforms/multipart/part-transform.js.map +0 -1
  130. package/dist/src/components/transforms/multipart/simple-part-transform.js.map +0 -1
  131. package/dist/src/components/transforms/operation-transform-declaration.js.map +0 -1
  132. package/dist/src/components/transforms/operation-transform-expression.js.map +0 -1
  133. package/dist/src/components/transforms/scalar-transform.js.map +0 -1
  134. package/dist/src/components/transforms/transform-name-policy.js.map +0 -1
  135. package/dist/src/components/utils/unpack-model-property.js.map +0 -1
  136. package/dist/src/components/utils/url-template.js.map +0 -1
  137. package/dist/src/context/encoding/encoding-context.js.map +0 -1
  138. package/dist/src/context/encoding/types.js.map +0 -1
  139. package/dist/src/emitter.js.map +0 -1
  140. package/dist/src/index.js.map +0 -1
  141. package/dist/src/lib.js.map +0 -1
  142. package/dist/src/testing/index.js.map +0 -1
  143. package/dist/src/utils/client-discovery.js.map +0 -1
  144. package/dist/src/utils/multipart.js.map +0 -1
  145. package/dist/src/utils/operations.js.map +0 -1
  146. package/dist/src/utils/parameters.js.map +0 -1
package/README.md CHANGED
@@ -35,6 +35,13 @@ options:
35
35
 
36
36
  ## Emitter options
37
37
 
38
+ ### `emitter-output-dir`
39
+
40
+ **Type:** `absolutePath`
41
+
42
+ Defines the emitter output directory. Defaults to `{output-dir}/@typespec/http-client-js`
43
+ See [Configuring output directory for more info](https://typespec.io/docs/handbook/configuration/configuration/#configuring-output-directory)
44
+
38
45
  ### `package-name`
39
46
 
40
47
  **Type:** `string`
@@ -17,5 +17,4 @@ export function ClientContextDeclaration(props) {
17
17
  return httpRuntimeTemplateLib.Client;
18
18
  }
19
19
  });
20
- }
21
- //# sourceMappingURL=client-context-declaration.js.map
20
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -220,5 +219,4 @@ function ClientOptionsExpression(props) {
220
219
  });
221
220
  }
222
221
  });
223
- }
224
- //# sourceMappingURL=client-context-factory.js.map
222
+ }
@@ -42,5 +42,4 @@ export function ClientContextOptionsDeclaration(props) {
42
42
  }), ";"];
43
43
  }
44
44
  });
45
- }
46
- //# sourceMappingURL=client-context-options.js.map
45
+ }
@@ -24,5 +24,4 @@ export function ClientContext(props) {
24
24
  })];
25
25
  }
26
26
  });
27
- }
28
- //# sourceMappingURL=client-context.js.map
27
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { useTransformNamePolicy } from "@typespec/emitter-framework";
@@ -53,5 +52,4 @@ export function ParametrizedEndpoint(props) {
53
52
  return [params, resolvedEndpoint];
54
53
  }
55
54
  });
56
- }
57
- //# sourceMappingURL=parametrized-endpoint.js.map
55
+ }
@@ -47,5 +47,4 @@ export function SubClients(props) {
47
47
  });
48
48
  }
49
49
  });
50
- }
51
- //# sourceMappingURL=client-directory.js.map
50
+ }
@@ -100,5 +100,4 @@ export function ClientOperation(props) {
100
100
  }), ";"];
101
101
  }
102
102
  });
103
- }
104
- //# sourceMappingURL=client-operation.js.map
103
+ }
@@ -1,5 +1,4 @@
1
- import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -171,5 +170,4 @@ function NewClientExpression(props) {
171
170
  return props.args;
172
171
  }
173
172
  })];
174
- }
175
- //# sourceMappingURL=client.js.map
173
+ }
@@ -12,5 +12,4 @@ export function EncodingProvider(props) {
12
12
  return props.children;
13
13
  }
14
14
  });
15
- }
16
- //# sourceMappingURL=encoding-provider.js.map
15
+ }
@@ -7,5 +7,4 @@ export const httpRuntimeTemplateLib = createPackage({
7
7
  named: ["Client", "ClientOptions", "getClient", "ApiKeyCredential", "BasicCredential", "BearerTokenCredential", "OAuth2TokenCredential", "AuthorizationCodeFlow", "ClientCredentialsFlow", "ImplicitFlow", "PasswordFlow", "PathUncheckedResponse", "PipelineRequest", "HttpResponse", "RawHttpHeaders"]
8
8
  }
9
9
  }
10
- });
11
- //# sourceMappingURL=ts-http-runtime.js.map
10
+ });
@@ -7,5 +7,4 @@ export const uriTemplateLib = createPackage({
7
7
  named: ["parse"]
8
8
  }
9
9
  }
10
- });
11
- //# sourceMappingURL=uri-template.js.map
10
+ });
@@ -70,5 +70,4 @@ HttpRequestOptions.Body = function HttpRequestOptionsBody(props) {
70
70
  };
71
71
  export function JSONSerializer(props) {
72
72
  return code`JSON.stringify(${props.children})`;
73
- }
74
- //# sourceMappingURL=http-request-options.js.map
73
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { useTransformNamePolicy } from "@typespec/emitter-framework";
@@ -169,5 +168,4 @@ function findHttpPropertyByPath(httpOperation, path) {
169
168
  }
170
169
  }
171
170
  return undefined;
172
- }
173
- //# sourceMappingURL=http-request-parameters-expression.js.map
171
+ }
@@ -1,6 +1,4 @@
1
- import { createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo, createIntrinsic as _$createIntrinsic } from "@alloy-js/core/jsx-runtime";
4
2
  import { code, List, refkey, StatementList } from "@alloy-js/core";
5
3
  import * as ts from "@alloy-js/typescript";
6
4
  import { Reference } from "@alloy-js/typescript";
@@ -75,5 +73,4 @@ HttpRequest.Url = function HttpUrlDeclaration(props) {
75
73
  });
76
74
  }
77
75
  });
78
- };
79
- //# sourceMappingURL=http-request.js.map
76
+ };
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import { code, For, List } from "@alloy-js/core";
4
3
  import { isVoidType } from "@typespec/compiler";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -65,5 +64,4 @@ export function HttpResponses(props) {
65
64
  return null;
66
65
  }
67
66
  });
68
- }
69
- //# sourceMappingURL=http-response.js.map
67
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import { For, refkey } from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -40,5 +39,4 @@ export function Models(props) {
40
39
  });
41
40
  }
42
41
  });
43
- }
44
- //# sourceMappingURL=models.js.map
42
+ }
@@ -1,3 +1,2 @@
1
1
  export * from "./operation-pipeline.js";
2
- export * from "./types.js";
3
- //# sourceMappingURL=index.js.map
2
+ export * from "./types.js";
@@ -24,5 +24,4 @@ export function OperationPipeline({
24
24
  internal: internal,
25
25
  refkey: defaultOperationRefkey
26
26
  });
27
- }
28
- //# sourceMappingURL=operation-pipeline.js.map
27
+ }
@@ -13,5 +13,4 @@ export function getPageItemTypeName(pagingOperation) {
13
13
  }
14
14
  // not supported and throw exceptions
15
15
  throw new Error("Not supported");
16
- }
17
- //# sourceMappingURL=page-item.js.map
16
+ }
@@ -46,5 +46,4 @@ export function PageResponseDeclaration(props) {
46
46
  });
47
47
  }
48
48
  });
49
- }
50
- //# sourceMappingURL=page-response.js.map
49
+ }
@@ -48,5 +48,4 @@ export function PageSettingsDeclaration(props) {
48
48
  });
49
49
  }
50
50
  });
51
- }
52
- //# sourceMappingURL=page-settings.js.map
51
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -166,5 +165,4 @@ function GetElements(props) {
166
165
  `;
167
166
  }
168
167
  });
169
- }
170
- //# sourceMappingURL=paginated-operation-handler.js.map
168
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import { List, StatementList, code, refkey } from "@alloy-js/core";
5
4
  import * as ts from "@alloy-js/typescript";
@@ -74,5 +73,4 @@ export function HttpRequestSend(props) {
74
73
  });
75
74
  }
76
75
  });
77
- }
78
- //# sourceMappingURL=request-send.js.map
76
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import { code, List, refkey } from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { FunctionDeclaration } from "@typespec/emitter-framework/typescript";
@@ -47,5 +46,4 @@ export function HttpResponseDeserialize(props) {
47
46
  })];
48
47
  }
49
48
  });
50
- }
51
- //# sourceMappingURL=response-deserialize.js.map
49
+ }
@@ -42,5 +42,4 @@ function getResponseHeader(httpOperation, prop) {
42
42
  }
43
43
  }
44
44
  return undefined;
45
- }
46
- //# sourceMappingURL=util.js.map
45
+ }
@@ -41,5 +41,4 @@ export function OperationOptionsDeclaration(props) {
41
41
  });
42
42
  }
43
43
  });
44
- }
45
- //# sourceMappingURL=operation-options.js.map
44
+ }
@@ -31,5 +31,4 @@ export function getOperationParameters(operation) {
31
31
  optional: true
32
32
  });
33
33
  return parameters;
34
- }
35
- //# sourceMappingURL=operation-parameters.js.map
34
+ }
@@ -34,5 +34,4 @@ export function Output(props) {
34
34
  });
35
35
  }
36
36
  });
37
- }
38
- //# sourceMappingURL=output.js.map
37
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ts from "@alloy-js/typescript";
4
3
  import { $ } from "@typespec/compiler/experimental/typekit";
5
4
  import { DateDeserializer, DateRfc3339Serializer, DateRfc7231Deserializer, DateRfc7231Serializer, DateUnixTimestampDeserializer, DateUnixTimestampSerializer } from "@typespec/emitter-framework/typescript";
@@ -55,5 +54,4 @@ function isOrExtendsFile(type) {
55
54
  return true;
56
55
  }
57
56
  return type.baseModel ? isOrExtendsFile(type.baseModel) : false;
58
- }
59
- //# sourceMappingURL=serializers.js.map
57
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  export function getEncodeUint8ArrayRef() {
@@ -62,5 +61,4 @@ export function DecodeBase64() {
62
61
  `;
63
62
  }
64
63
  });
65
- }
66
- //# sourceMappingURL=bytes-encoding.js.map
64
+ }
@@ -37,5 +37,4 @@ export function Interfaces() {
37
37
  return _$createComponent(OperationOptionsInterfaceDeclaration, {});
38
38
  }
39
39
  });
40
- }
41
- //# sourceMappingURL=interfaces.js.map
40
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  export function getFileContentsTypeReference() {
@@ -81,5 +80,4 @@ function getCreateFilePartParameters() {
81
80
  refkey: ay.refkey(),
82
81
  type: "string"
83
82
  }];
84
- }
85
- //# sourceMappingURL=multipart-helpers.js.map
83
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  export function getPagedAsyncIterableIteratorRefkey() {
@@ -193,5 +192,4 @@ export function PagingHelpers() {
193
192
  return [_$createComponent(PagedAsyncIterableIteratorInterfaceDeclaration, {}), _$createComponent(PagedResultInterfaceDeclaration, {}), _$createComponent(BuildPagedAsyncIteratorOptionsInterfaceDeclaration, {}), _$createComponent(BuildPagedAsyncIteratorInterfaceDeclaration, {})];
194
193
  }
195
194
  });
196
- }
197
- //# sourceMappingURL=paging-helper.js.map
195
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { httpRuntimeTemplateLib } from "../external-packages/ts-http-runtime.js";
@@ -137,5 +136,4 @@ export function RestError() {
137
136
  }
138
137
  });
139
138
  return [restErrorClass, "\n\n", createRestError];
140
- }
141
- //# sourceMappingURL=rest-error.js.map
139
+ }
@@ -21,5 +21,4 @@ export function addClientTestOptions(options, settings = {
21
21
  options.push(testOptions);
22
22
  }
23
23
  }
24
- }
25
- //# sourceMappingURL=client-options.js.map
24
+ }
@@ -20,5 +20,4 @@ export function ContentTypeEncodingProvider(props) {
20
20
  return props.children;
21
21
  }
22
22
  });
23
- }
24
- //# sourceMappingURL=content-type-encoding-provider.js.map
23
+ }
@@ -27,5 +27,4 @@ export function ScalarDataTransform(props) {
27
27
  toTransport
28
28
  } = getScalarTransformer(scalar);
29
29
  return props.target === "transport" ? toTransport(props.itemRef, encoding) : toApplication(props.itemRef, encoding);
30
- }
31
- //# sourceMappingURL=data-transform.js.map
30
+ }
@@ -1,5 +1,4 @@
1
- import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import * as ef from "@typespec/emitter-framework/typescript";
@@ -66,5 +65,4 @@ export function JsonArrayTransformDeclaration(props) {
66
65
  }));
67
66
  }
68
67
  });
69
- }
70
- //# sourceMappingURL=json-array-transform.js.map
68
+ }
@@ -1,5 +1,4 @@
1
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -31,5 +30,4 @@ export function JsonAdditionalPropertiesTransform(props) {
31
30
  }
32
31
  const itemRef = ay.code`${props.itemRef}.additionalProperties`;
33
32
  return ["...(", _$memo(() => getJsonRecordTransformRefkey(additionalProperties, props.target)), "(", itemRef, ") ),"];
34
- }
35
- //# sourceMappingURL=json-model-additional-properties-transform.js.map
33
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
1
+ import { mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import { JsonTransform } from "./json-transform.js";
4
3
  export function JsonModelBaseTransform(props) {
5
4
  const baseModel = props.type.baseModel;
@@ -9,5 +8,4 @@ export function JsonModelBaseTransform(props) {
9
8
  return ["...", _$createComponent(JsonTransform, _$mergeProps(props, {
10
9
  type: baseModel
11
10
  })), ","];
12
- }
13
- //# sourceMappingURL=json-model-base-transform.js.map
11
+ }
@@ -53,5 +53,4 @@ export function JsonModelPropertyTransform(props) {
53
53
  },
54
54
  value: propertyValue
55
55
  })];
56
- }
57
- //# sourceMappingURL=json-model-property-transform.js.map
56
+ }
@@ -1,6 +1,4 @@
1
- import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
4
2
  import * as ay from "@alloy-js/core";
5
3
  import * as ts from "@alloy-js/typescript";
6
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -95,5 +93,4 @@ export function JsonModelTransformDeclaration(props) {
95
93
  })), "!;"];
96
94
  }
97
95
  })];
98
- }
99
- //# sourceMappingURL=json-model-transform.js.map
96
+ }
@@ -1,5 +1,4 @@
1
- import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
2
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -66,5 +65,4 @@ export function JsonRecordTransformDeclaration(props) {
66
65
  }));
67
66
  }
68
67
  });
69
- }
70
- //# sourceMappingURL=json-record-transform.js.map
68
+ }
@@ -1,6 +1,4 @@
1
- import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
3
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
1
+ import { createComponent as _$createComponent, memo as _$memo, mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
4
2
  import * as ay from "@alloy-js/core";
5
3
  import * as ts from "@alloy-js/typescript";
6
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -72,5 +70,4 @@ export function JsonTransformDiscriminatorDeclaration(props) {
72
70
  }))];
73
71
  }
74
72
  });
75
- }
76
- //# sourceMappingURL=json-transform-discriminator.js.map
73
+ }
@@ -145,5 +145,4 @@ function getTransformReference(type, target) {
145
145
  return getJsonUnionTransformRefkey(type, target);
146
146
  }
147
147
  return undefined;
148
- }
149
- //# sourceMappingURL=json-transform.js.map
148
+ }
@@ -1,6 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { mergeProps as _$mergeProps } from "@alloy-js/core/jsx-runtime";
3
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
4
2
  import * as ay from "@alloy-js/core";
5
3
  import * as ts from "@alloy-js/typescript";
6
4
  import { $ } from "@typespec/compiler/experimental/typekit";
@@ -62,5 +60,4 @@ export function JsonUnionTransformDeclaration(props) {
62
60
  }))];
63
61
  }
64
62
  })];
65
- }
66
- //# sourceMappingURL=union-transform.js.map
63
+ }
@@ -9,5 +9,4 @@ export function getJsonTransportName(type) {
9
9
  return "";
10
10
  }
11
11
  return $.type.getEncodedName(type, "json") ?? type.name;
12
- }
13
- //# sourceMappingURL=transport-namer.js.map
12
+ }
@@ -1,5 +1,4 @@
1
- import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { memo as _$memo } from "@alloy-js/core/jsx-runtime";
1
+ import { memo as _$memo, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
3
2
  import * as ay from "@alloy-js/core";
4
3
  import * as ts from "@alloy-js/typescript";
5
4
  import { HttpPartTransform } from "./part-transform.js";
@@ -25,5 +24,4 @@ function getPartRef(itemRef, partName) {
25
24
  return partName;
26
25
  }
27
26
  return ay.code`${itemRef}.${partName}`;
28
- }
29
- //# sourceMappingURL=array-part-transform.js.map
27
+ }
@@ -36,5 +36,4 @@ function getPartRef(itemRef, partName) {
36
36
  return partName;
37
37
  }
38
38
  return ay.code`${itemRef}.${partName}`;
39
- }
40
- //# sourceMappingURL=file-part-transform.js.map
39
+ }
@@ -25,5 +25,4 @@ export function MultipartTransform(props) {
25
25
  })
26
26
  });
27
27
  return ["[", partTransform, "]"];
28
- }
29
- //# sourceMappingURL=multipart-transform.js.map
28
+ }
@@ -31,5 +31,4 @@ export function HttpPartTransform(props) {
31
31
  return props.itemRef;
32
32
  }
33
33
  });
34
- }
35
- //# sourceMappingURL=part-transform.js.map
34
+ }
@@ -54,5 +54,4 @@ function getPartRef(itemRef, partName) {
54
54
  return partName;
55
55
  }
56
56
  return ay.code`${itemRef}.${partName}`;
57
- }
58
- //# sourceMappingURL=simple-part-transform.js.map
57
+ }
@@ -70,5 +70,4 @@ function TransformToTransportDeclaration(props) {
70
70
  },
71
71
  name: name
72
72
  });
73
- }
74
- //# sourceMappingURL=operation-transform-declaration.js.map
73
+ }
@@ -56,5 +56,4 @@ function payloadApplicationNameGetter(type) {
56
56
  name = `options?.${name}`;
57
57
  }
58
58
  return name;
59
- }
60
- //# sourceMappingURL=operation-transform-expression.js.map
59
+ }
@@ -313,5 +313,4 @@ function getScalarTransformKey(type) {
313
313
  }
314
314
  function passthroughTransformer(itemRef) {
315
315
  return itemRef;
316
- }
317
- //# sourceMappingURL=scalar-transform.js.map
316
+ }
@@ -107,5 +107,4 @@ export function defaultTransportNameGetter(type, encoding = "application/json")
107
107
  */
108
108
  export function hasStringName(type) {
109
109
  return typeof type.name === "string";
110
- }
111
- //# sourceMappingURL=transform-name-policy.js.map
110
+ }
@@ -38,5 +38,4 @@ export function unpackProperty(modelProperty) {
38
38
  }
39
39
  }
40
40
  return type;
41
- }
42
- //# sourceMappingURL=unpack-model-property.js.map
41
+ }