@distilled.cloud/core 1.0.0-rc.14 → 1.0.0-rc.16

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 (312) hide show
  1. package/lib/api.d.ts +118 -13
  2. package/lib/api.d.ts.map +1 -1
  3. package/lib/api.js +755 -147
  4. package/lib/api.js.map +1 -1
  5. package/lib/category.d.ts.map +1 -1
  6. package/lib/category.js +146 -146
  7. package/lib/category.js.map +1 -1
  8. package/lib/chunks.d.ts +3 -0
  9. package/lib/chunks.d.ts.map +1 -0
  10. package/lib/chunks.js +11 -0
  11. package/lib/chunks.js.map +1 -0
  12. package/lib/codegen/boolean-string-enums.js +36 -36
  13. package/lib/codegen/chunk.d.ts +7 -0
  14. package/lib/codegen/chunk.d.ts.map +1 -0
  15. package/lib/codegen/chunk.js +139 -0
  16. package/lib/codegen/chunk.js.map +1 -0
  17. package/lib/codegen/cli.d.ts.map +1 -1
  18. package/lib/codegen/cli.js +28 -14
  19. package/lib/codegen/cli.js.map +1 -1
  20. package/lib/codegen/datafy.d.ts +14 -0
  21. package/lib/codegen/datafy.d.ts.map +1 -0
  22. package/lib/codegen/datafy.js +853 -0
  23. package/lib/codegen/datafy.js.map +1 -0
  24. package/lib/codegen/dedupe.d.ts +5 -0
  25. package/lib/codegen/dedupe.d.ts.map +1 -0
  26. package/lib/codegen/dedupe.js +153 -0
  27. package/lib/codegen/dedupe.js.map +1 -0
  28. package/lib/codegen/emit.js +56 -56
  29. package/lib/codegen/format.js +18 -18
  30. package/lib/codegen/generated-at.js +29 -29
  31. package/lib/codegen/generator.d.ts.map +1 -1
  32. package/lib/codegen/generator.js +92 -84
  33. package/lib/codegen/generator.js.map +1 -1
  34. package/lib/codegen/graph.js +36 -36
  35. package/lib/codegen/graphql-client.d.ts +2 -0
  36. package/lib/codegen/graphql-client.d.ts.map +1 -1
  37. package/lib/codegen/graphql-client.js +55 -26
  38. package/lib/codegen/graphql-client.js.map +1 -1
  39. package/lib/codegen/graphql.js +113 -113
  40. package/lib/codegen/latin1.d.ts +3 -0
  41. package/lib/codegen/latin1.d.ts.map +1 -0
  42. package/lib/codegen/latin1.js +126 -0
  43. package/lib/codegen/latin1.js.map +1 -0
  44. package/lib/codegen/members.d.ts +7 -0
  45. package/lib/codegen/members.d.ts.map +1 -1
  46. package/lib/codegen/members.js +26 -19
  47. package/lib/codegen/members.js.map +1 -1
  48. package/lib/codegen/model-diff.js +6 -6
  49. package/lib/codegen/naming.js +19 -19
  50. package/lib/codegen/openapi-cli.js +15 -15
  51. package/lib/codegen/openapi.d.ts +17 -0
  52. package/lib/codegen/openapi.d.ts.map +1 -1
  53. package/lib/codegen/openapi.js +323 -169
  54. package/lib/codegen/openapi.js.map +1 -1
  55. package/lib/codegen/operations.js +14 -14
  56. package/lib/codegen/pagination.js +11 -11
  57. package/lib/codegen/patch-audit.js +57 -57
  58. package/lib/codegen/patches.js +79 -79
  59. package/lib/codegen/prelude.js +19 -19
  60. package/lib/codegen/privatize.d.ts +21 -0
  61. package/lib/codegen/privatize.d.ts.map +1 -0
  62. package/lib/codegen/privatize.js +176 -0
  63. package/lib/codegen/privatize.js.map +1 -0
  64. package/lib/codegen/proto.js +25 -25
  65. package/lib/codegen/pure.d.ts +6 -0
  66. package/lib/codegen/pure.d.ts.map +1 -0
  67. package/lib/codegen/pure.js +91 -0
  68. package/lib/codegen/pure.js.map +1 -0
  69. package/lib/codegen/rewrite-operation-ids.js +108 -108
  70. package/lib/codegen/spec-path.js +57 -57
  71. package/lib/codegen/table.d.ts +5 -0
  72. package/lib/codegen/table.d.ts.map +1 -0
  73. package/lib/codegen/table.js +249 -0
  74. package/lib/codegen/table.js.map +1 -0
  75. package/lib/config.d.ts +27 -0
  76. package/lib/config.d.ts.map +1 -0
  77. package/lib/config.js +161 -0
  78. package/lib/config.js.map +1 -0
  79. package/lib/crypto.d.ts +76 -0
  80. package/lib/crypto.d.ts.map +1 -0
  81. package/lib/crypto.js +130 -0
  82. package/lib/crypto.js.map +1 -0
  83. package/lib/debug.d.ts +2 -0
  84. package/lib/debug.d.ts.map +1 -0
  85. package/lib/debug.js +8 -0
  86. package/lib/debug.js.map +1 -0
  87. package/lib/error-category.d.ts +1 -1
  88. package/lib/error-category.d.ts.map +1 -1
  89. package/lib/error-category.js +7 -6
  90. package/lib/error-category.js.map +1 -1
  91. package/lib/errors.d.ts +62 -62
  92. package/lib/errors.d.ts.map +1 -1
  93. package/lib/errors.js +117 -114
  94. package/lib/errors.js.map +1 -1
  95. package/lib/graphql.d.ts +31 -20
  96. package/lib/graphql.d.ts.map +1 -1
  97. package/lib/graphql.js +150 -119
  98. package/lib/graphql.js.map +1 -1
  99. package/lib/graphql.types.js +4 -3
  100. package/lib/graphql.types.js.map +1 -1
  101. package/lib/index.d.ts +3 -2
  102. package/lib/index.d.ts.map +1 -1
  103. package/lib/index.js +15 -14
  104. package/lib/index.js.map +1 -1
  105. package/lib/json-patch.d.ts +2 -2
  106. package/lib/json-patch.js +28 -28
  107. package/lib/pagination.d.ts +9 -25
  108. package/lib/pagination.d.ts.map +1 -1
  109. package/lib/pagination.js +95 -90
  110. package/lib/pagination.js.map +1 -1
  111. package/lib/plain-values.d.ts +10 -0
  112. package/lib/plain-values.d.ts.map +1 -0
  113. package/lib/plain-values.js +40 -0
  114. package/lib/plain-values.js.map +1 -0
  115. package/lib/protocol-http.d.ts +50 -14
  116. package/lib/protocol-http.d.ts.map +1 -1
  117. package/lib/protocol-http.js +351 -178
  118. package/lib/protocol-http.js.map +1 -1
  119. package/lib/protocol-rest.d.ts +38 -25
  120. package/lib/protocol-rest.d.ts.map +1 -1
  121. package/lib/protocol-rest.js +238 -130
  122. package/lib/protocol-rest.js.map +1 -1
  123. package/lib/query.js +16 -16
  124. package/lib/response-validation-strict.d.ts +48 -0
  125. package/lib/response-validation-strict.d.ts.map +1 -0
  126. package/lib/response-validation-strict.js +284 -0
  127. package/lib/response-validation-strict.js.map +1 -0
  128. package/lib/response-validation.d.ts +43 -25
  129. package/lib/response-validation.d.ts.map +1 -1
  130. package/lib/response-validation.js +112 -70
  131. package/lib/response-validation.js.map +1 -1
  132. package/lib/retry-after.d.ts +3 -3
  133. package/lib/retry-after.js +49 -49
  134. package/lib/retry.d.ts +48 -29
  135. package/lib/retry.d.ts.map +1 -1
  136. package/lib/retry.js +142 -154
  137. package/lib/retry.js.map +1 -1
  138. package/lib/schema-lite-impl.d.ts +158 -0
  139. package/lib/schema-lite-impl.d.ts.map +1 -0
  140. package/lib/schema-lite-impl.js +341 -0
  141. package/lib/schema-lite-impl.js.map +1 -0
  142. package/lib/schema-lite-typed.d.ts +41 -0
  143. package/lib/schema-lite-typed.d.ts.map +1 -0
  144. package/lib/schema-lite-typed.js +27 -0
  145. package/lib/schema-lite-typed.js.map +1 -0
  146. package/lib/schema-lite.d.ts +40 -0
  147. package/lib/schema-lite.d.ts.map +1 -0
  148. package/lib/schema-lite.js +31 -0
  149. package/lib/schema-lite.js.map +1 -0
  150. package/lib/schema.d.ts +20 -6
  151. package/lib/schema.d.ts.map +1 -1
  152. package/lib/schema.js +202 -30
  153. package/lib/schema.js.map +1 -1
  154. package/lib/testing.d.ts +3 -2
  155. package/lib/testing.d.ts.map +1 -1
  156. package/lib/testing.js +22 -21
  157. package/lib/testing.js.map +1 -1
  158. package/lib/trait.d.ts +13 -13
  159. package/lib/trait.d.ts.map +1 -1
  160. package/lib/trait.js +80 -80
  161. package/lib/trait.js.map +1 -1
  162. package/lib/xml.d.ts +1 -1
  163. package/lib/xml.d.ts.map +1 -1
  164. package/lib/xml.js +38 -26
  165. package/lib/xml.js.map +1 -1
  166. package/package.json +9 -7
  167. package/src/api.ts +1079 -180
  168. package/src/category.ts +33 -33
  169. package/src/chunks.ts +30 -0
  170. package/src/codegen/chunk.ts +147 -0
  171. package/src/codegen/cli.ts +27 -1
  172. package/src/codegen/datafy.ts +874 -0
  173. package/src/codegen/dedupe.ts +173 -0
  174. package/src/codegen/generator.ts +10 -3
  175. package/src/codegen/graphql-client.ts +49 -15
  176. package/src/codegen/latin1.ts +131 -0
  177. package/src/codegen/members.ts +8 -0
  178. package/src/codegen/openapi.ts +194 -3
  179. package/src/codegen/privatize.ts +200 -0
  180. package/src/codegen/pure.ts +94 -0
  181. package/src/codegen/table.ts +254 -0
  182. package/src/config.ts +216 -0
  183. package/src/crypto.ts +202 -0
  184. package/src/debug.ts +8 -0
  185. package/src/error-category.ts +2 -1
  186. package/src/errors.ts +65 -56
  187. package/src/graphql.ts +109 -62
  188. package/src/graphql.types.ts +9 -7
  189. package/src/index.ts +3 -2
  190. package/src/json-patch.ts +2 -2
  191. package/src/pagination.ts +37 -18
  192. package/src/plain-values.ts +41 -0
  193. package/src/protocol-http.ts +378 -145
  194. package/src/protocol-rest.ts +337 -169
  195. package/src/response-validation-strict.ts +327 -0
  196. package/src/response-validation.ts +101 -50
  197. package/src/retry-after.ts +3 -3
  198. package/src/retry.ts +94 -93
  199. package/src/schema-lite-impl.ts +550 -0
  200. package/src/schema-lite-typed.ts +44 -0
  201. package/src/schema-lite.ts +44 -0
  202. package/src/schema.ts +258 -14
  203. package/src/testing.ts +4 -2
  204. package/src/trait.ts +36 -28
  205. package/src/xml.ts +31 -17
  206. package/lib/codegen/boolean-string-enums.test.d.ts +0 -2
  207. package/lib/codegen/boolean-string-enums.test.d.ts.map +0 -1
  208. package/lib/codegen/boolean-string-enums.test.js +0 -275
  209. package/lib/codegen/boolean-string-enums.test.js.map +0 -1
  210. package/lib/codegen/defer-naming.test.d.ts +0 -2
  211. package/lib/codegen/defer-naming.test.d.ts.map +0 -1
  212. package/lib/codegen/defer-naming.test.js +0 -105
  213. package/lib/codegen/defer-naming.test.js.map +0 -1
  214. package/lib/codegen/generated-at.test.d.ts +0 -2
  215. package/lib/codegen/generated-at.test.d.ts.map +0 -1
  216. package/lib/codegen/generated-at.test.js +0 -81
  217. package/lib/codegen/generated-at.test.js.map +0 -1
  218. package/lib/codegen/generator.test.d.ts +0 -2
  219. package/lib/codegen/generator.test.d.ts.map +0 -1
  220. package/lib/codegen/generator.test.js +0 -121
  221. package/lib/codegen/generator.test.js.map +0 -1
  222. package/lib/codegen/graphql-client.test.d.ts +0 -2
  223. package/lib/codegen/graphql-client.test.d.ts.map +0 -1
  224. package/lib/codegen/graphql-client.test.js +0 -171
  225. package/lib/codegen/graphql-client.test.js.map +0 -1
  226. package/lib/codegen/openapi-binary.test.d.ts +0 -2
  227. package/lib/codegen/openapi-binary.test.d.ts.map +0 -1
  228. package/lib/codegen/openapi-binary.test.js +0 -67
  229. package/lib/codegen/openapi-binary.test.js.map +0 -1
  230. package/lib/codegen/patch-audit.test.d.ts +0 -2
  231. package/lib/codegen/patch-audit.test.d.ts.map +0 -1
  232. package/lib/codegen/patch-audit.test.js +0 -141
  233. package/lib/codegen/patch-audit.test.js.map +0 -1
  234. package/lib/codegen/patches.test.d.ts +0 -2
  235. package/lib/codegen/patches.test.d.ts.map +0 -1
  236. package/lib/codegen/patches.test.js +0 -155
  237. package/lib/codegen/patches.test.js.map +0 -1
  238. package/lib/codegen/protocol-imports.test.d.ts +0 -2
  239. package/lib/codegen/protocol-imports.test.d.ts.map +0 -1
  240. package/lib/codegen/protocol-imports.test.js +0 -36
  241. package/lib/codegen/protocol-imports.test.js.map +0 -1
  242. package/lib/codegen/rewrite-operation-ids.test.d.ts +0 -2
  243. package/lib/codegen/rewrite-operation-ids.test.d.ts.map +0 -1
  244. package/lib/codegen/rewrite-operation-ids.test.js +0 -451
  245. package/lib/codegen/rewrite-operation-ids.test.js.map +0 -1
  246. package/lib/codegen/untagged-unions.test.d.ts +0 -2
  247. package/lib/codegen/untagged-unions.test.d.ts.map +0 -1
  248. package/lib/codegen/untagged-unions.test.js +0 -80
  249. package/lib/codegen/untagged-unions.test.js.map +0 -1
  250. package/lib/fixtures/xml/upstream-validator.json +0 -397
  251. package/lib/graphql.test.d.ts +0 -2
  252. package/lib/graphql.test.d.ts.map +0 -1
  253. package/lib/graphql.test.js +0 -151
  254. package/lib/graphql.test.js.map +0 -1
  255. package/lib/json-patch.test.d.ts +0 -2
  256. package/lib/json-patch.test.d.ts.map +0 -1
  257. package/lib/json-patch.test.js +0 -65
  258. package/lib/json-patch.test.js.map +0 -1
  259. package/lib/pagination.test.d.ts +0 -2
  260. package/lib/pagination.test.d.ts.map +0 -1
  261. package/lib/pagination.test.js +0 -131
  262. package/lib/pagination.test.js.map +0 -1
  263. package/lib/protocol-http.test.d.ts +0 -2
  264. package/lib/protocol-http.test.d.ts.map +0 -1
  265. package/lib/protocol-http.test.js +0 -228
  266. package/lib/protocol-http.test.js.map +0 -1
  267. package/lib/protocol-rest.test.d.ts +0 -2
  268. package/lib/protocol-rest.test.d.ts.map +0 -1
  269. package/lib/protocol-rest.test.js +0 -498
  270. package/lib/protocol-rest.test.js.map +0 -1
  271. package/lib/response-validation.test.d.ts +0 -2
  272. package/lib/response-validation.test.d.ts.map +0 -1
  273. package/lib/response-validation.test.js +0 -72
  274. package/lib/response-validation.test.js.map +0 -1
  275. package/lib/retry-after.test.d.ts +0 -2
  276. package/lib/retry-after.test.d.ts.map +0 -1
  277. package/lib/retry-after.test.js +0 -204
  278. package/lib/retry-after.test.js.map +0 -1
  279. package/lib/retry.test.d.ts +0 -2
  280. package/lib/retry.test.d.ts.map +0 -1
  281. package/lib/retry.test.js +0 -407
  282. package/lib/retry.test.js.map +0 -1
  283. package/lib/sdks.test.d.ts +0 -2
  284. package/lib/sdks.test.d.ts.map +0 -1
  285. package/lib/sdks.test.js +0 -76
  286. package/lib/sdks.test.js.map +0 -1
  287. package/lib/xml.test.d.ts +0 -2
  288. package/lib/xml.test.d.ts.map +0 -1
  289. package/lib/xml.test.js +0 -210
  290. package/lib/xml.test.js.map +0 -1
  291. package/src/codegen/boolean-string-enums.test.ts +0 -299
  292. package/src/codegen/defer-naming.test.ts +0 -113
  293. package/src/codegen/generated-at.test.ts +0 -89
  294. package/src/codegen/generator.test.ts +0 -137
  295. package/src/codegen/graphql-client.test.ts +0 -189
  296. package/src/codegen/openapi-binary.test.ts +0 -91
  297. package/src/codegen/patch-audit.test.ts +0 -160
  298. package/src/codegen/patches.test.ts +0 -188
  299. package/src/codegen/protocol-imports.test.ts +0 -39
  300. package/src/codegen/rewrite-operation-ids.test.ts +0 -472
  301. package/src/codegen/untagged-unions.test.ts +0 -85
  302. package/src/fixtures/xml/upstream-validator.json +0 -397
  303. package/src/graphql.test.ts +0 -198
  304. package/src/json-patch.test.ts +0 -77
  305. package/src/pagination.test.ts +0 -169
  306. package/src/protocol-http.test.ts +0 -276
  307. package/src/protocol-rest.test.ts +0 -703
  308. package/src/response-validation.test.ts +0 -89
  309. package/src/retry-after.test.ts +0 -267
  310. package/src/retry.test.ts +0 -566
  311. package/src/sdks.test.ts +0 -87
  312. package/src/xml.test.ts +0 -251
package/lib/crypto.js ADDED
@@ -0,0 +1,130 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+ import * as Context from "effect/Context";
24
+ import * as Data from "effect/Data";
25
+ import * as Effect from "effect/Effect";
26
+ import * as Layer from "effect/Layer";
27
+
28
+ export class CryptoError extends /*@__PURE__*/ /*@__PURE__*/ Data.TaggedError("CryptoError") {
29
+ }
30
+
31
+ const nodeModule = () => {
32
+ try {
33
+ const p = globalThis.process;
34
+ return p?.getBuiltinModule?.("node:crypto");
35
+ }
36
+ catch {
37
+ return undefined;
38
+ }
39
+ };
40
+ const encoder = /*@__PURE__*/ new TextEncoder();
41
+ const toBytes = (data) => typeof data === "string" ? encoder.encode(data) : data;
42
+
43
+ export const makeNodeCrypto = () => {
44
+ const c = nodeModule();
45
+ if (!c)
46
+ return undefined;
47
+ return {
48
+ name: "node:crypto",
49
+ sync: {
50
+ sha256: (data) => c.createHash("sha256").update(data).digest(),
51
+ importHmacKey: (key) => c.createSecretKey(toBytes(key)),
52
+ hmacSha256: (key, data) => c
53
+ .createHmac("sha256", key)
54
+ .update(data)
55
+ .digest(),
56
+ sha256Hex: c.hash
57
+ ? (data) => c.hash("sha256", data, "hex")
58
+ : (data) => c.createHash("sha256").update(data).digest("hex"),
59
+ hmacSha256Hex: (key, data) => c
60
+ .createHmac("sha256", key)
61
+ .update(data)
62
+ .digest("hex"),
63
+ },
64
+ sha256: (data) => Effect.try({
65
+ try: () => c.createHash("sha256").update(data).digest(),
66
+ catch: (cause) => new CryptoError({ operation: "sha256", cause }),
67
+ }),
68
+ importHmacKey: (key) => Effect.try({
69
+ try: () => c.createSecretKey(toBytes(key)),
70
+ catch: (cause) => new CryptoError({ operation: "importKey", cause }),
71
+ }),
72
+ hmacSha256: (key, data) => Effect.try({
73
+ try: () => c
74
+ .createHmac("sha256", key)
75
+ .update(data)
76
+ .digest(),
77
+ catch: (cause) => new CryptoError({ operation: "hmac", cause }),
78
+ }),
79
+ };
80
+ };
81
+ //#endregion
82
+ //#region WebCrypto
83
+ const buffer = (data) => {
84
+ const b = toBytes(data);
85
+ return b.buffer instanceof ArrayBuffer ? b : new Uint8Array(b);
86
+ };
87
+
88
+ export const makeWebCrypto = () => ({
89
+ name: "webcrypto",
90
+ sha256: (data) => Effect.tryPromise({
91
+ try: async () => new Uint8Array(await crypto.subtle.digest("SHA-256", buffer(data))),
92
+ catch: (cause) => new CryptoError({ operation: "sha256", cause }),
93
+ }),
94
+ importHmacKey: (key) => Effect.tryPromise({
95
+ try: () => crypto.subtle.importKey("raw", buffer(key), { name: "HMAC", hash: "SHA-256" }, false, [
96
+ "sign",
97
+ ]),
98
+ catch: (cause) => new CryptoError({ operation: "importKey", cause }),
99
+ }),
100
+ hmacSha256: (key, data) => Effect.tryPromise({
101
+ try: async () => new Uint8Array(await crypto.subtle.sign("HMAC", key, buffer(data))),
102
+ catch: (cause) => new CryptoError({ operation: "hmac", cause }),
103
+ }),
104
+ });
105
+ //#endregion
106
+
107
+ export const Crypto = /*@__PURE__*/ Context.Reference("@distilled.cloud/core/Crypto", {
108
+ defaultValue: () => makeNodeCrypto() ?? makeWebCrypto(),
109
+ });
110
+
111
+ export const layer = (impl) => Layer.succeed(Crypto, impl);
112
+
113
+ export const webCrypto = /*@__PURE__*/ Layer.sync(Crypto, makeWebCrypto);
114
+
115
+ export const nodeCrypto = /*@__PURE__*/ Layer.effect(Crypto,
116
+ /*@__PURE__*/ Effect.suspend(() => {
117
+ const impl = makeNodeCrypto();
118
+ return impl
119
+ ? Effect.succeed(impl)
120
+ : Effect.fail(new CryptoError({ operation: "importKey", cause: "node:crypto is not available" }));
121
+ }));
122
+ const HEX = /*@__PURE__*/ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
123
+
124
+ export const hex = (bytes) => {
125
+ let out = "";
126
+ for (let i = 0; i < bytes.length; i++)
127
+ out += HEX[bytes[i]];
128
+ return out;
129
+ };
130
+ //# sourceMappingURL=crypto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crypto.js","sourceRoot":"","sources":["../src/crypto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,uEAAuE;AACvE,MAAM,OAAO,WACX,SAAQ,aAAa,CAAb,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAGlD;CAAG;AA6CP,wFAAwF;AACxF,MAAM,UAAU,GAAG,GAAiC,EAAE;IACpD,IAAI,CAAC;QACH,MAAM,CAAC,GAAI,UAA2E,CAAC,OAAO,CAAC;QAC/F,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC,aAAa,CAAiC,CAAC;IAC9E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,OAAO,GAAG,aAAa,CAAC,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GAAG,GAAG,CAAC,KAAiB,EAAU,EAAE;IAC/C,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;IAC7D,OAAO,GAAG,CAAC;AACb,CAAC,CAAC"}
package/lib/debug.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const debugHttp: () => boolean;
2
+ //# sourceMappingURL=debug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS,QAAO,OAEG,CAAC"}
package/lib/debug.js ADDED
@@ -0,0 +1,8 @@
1
+
2
+
3
+
4
+
5
+ let flag;
6
+ export const debugHttp = () => (flag ??= !!globalThis.process
7
+ ?.env?.DISTILLED_DEBUG_HTTP);
8
+ //# sourceMappingURL=debug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.js","sourceRoot":"","sources":["../src/debug.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,IAAI,IAAyB,CAAC;AAC9B,MAAM,CAAC,MAAM,SAAS,GAAG,GAAY,EAAE,CACrC,CAAC,IAAI,KAAK,CAAC,CAAE,UAAyE,CAAC,OAAO;IAC5F,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Effect } from "effect";
1
+ import * as Effect from "effect/Effect";
2
2
  export declare const categoriesKey = "@distilled/meta/error-categories";
3
3
  export declare const withCategory: <Categories extends Array<PropertyKey>>(...categories: Categories) => <Args extends Array<any>, Ret, C extends {
4
4
  new (...args: Args): Ret;
@@ -1 +1 @@
1
- {"version":3,"file":"error-category.d.ts","sourceRoot":"","sources":["../src/error-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM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
- import { Effect, Predicate } from "effect";
1
+ import * as Effect from "effect/Effect";
2
+ import * as Predicate from "effect/Predicate";
2
3
  export const categoriesKey = "@distilled/meta/error-categories";
3
4
  export const withCategory = (...categories) => (C) => {
4
5
  // @ts-expect-error
@@ -14,10 +15,10 @@ export const withCategory = (...categories) => (C) => {
14
15
  }
15
16
  return Mixed;
16
17
  };
17
- /**
18
- * Runtime check: does `value` carry the given category?
19
- * Works on instances tagged via `withCategory(...)`.
20
- */
18
+
19
+
20
+
21
+
21
22
  export const hasCategory = (category) => (value) => {
22
23
  if (!Predicate.isObject(value))
23
24
  return false;
@@ -25,7 +26,7 @@ export const hasCategory = (category) => (value) => {
25
26
  return false;
26
27
  return category in value[categoriesKey];
27
28
  };
28
- /** True if `value` has any of the given categories. */
29
+
29
30
  export const hasAnyCategory = (...categories) => (value) => {
30
31
  if (!Predicate.isObject(value))
31
32
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"error-category.js","sourceRoot":"","sources":["../src/error-category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,kCAAkC,CAAC;AAEhE,MAAM,CAAC,MAAM,YAAY,GACvB,CAAwC,GAAG,UAAsB,EAAE,EAAE,CACrE,CACE,CAAI,EAKJ,EAAE;IACF,mBAAmB;IACnB,MAAM,KAAK,GAAG,KAAM,SAAQ,CAAC;KAAG,CAAC;IAEjC,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;QAClC,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YACxC,mBAAmB;YACnB,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC;QACtC,CAAC;QACD,mBAAmB;QACnB,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAClD,CAAC;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AAc,EAAW,EAAE;IAC1B,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC7C,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/D,MAAM,IAAI,GAAI,KAAa,CAAC,aAAa,CAAC,CAAC;IAC3C,KAAK,MAAM,CAAC,IAAI,UAAU;QAAE,IAAI,CAAC,IAAI,IAAI;YAAE,OAAO,IAAI,CAAC;IACvD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,aAAa,GACxB,CACE,GAAG,IAGF,EACD,EAAE,CACJ,CACE,MAA8B,EACqD,EAAE;IACrF,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAA4E,CAAC;IAC/F,MAAM,UAAU,GAAG,IAA0B,CAAC;IAC9C,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,UAAU,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAsC,CAAC,CAAQ,CAAC;AAClG,CAAC,CAAC"}
package/lib/errors.d.ts CHANGED
@@ -6,21 +6,21 @@
6
6
  * that are used across all SDKs.
7
7
  */
8
8
  import * as Duration from "effect/Duration";
9
- import * as Schema from "effect/Schema";
10
9
  import * as Category from "./category.ts";
10
+ import * as Schema from "./schema-lite-typed.ts";
11
11
  /**
12
12
  * Opaque schema for an Effect `Duration.Duration` value.
13
13
  *
14
14
  * Used on retryable errors to carry a server-provided wait hint (e.g. parsed
15
15
  * from `Retry-After` or the IETF `Ratelimit` header). Core does not encode/decode
16
- * this field over the wire — it is constructed at runtime by `matchError` from
16
+ * this field over the wire -- it is constructed at runtime by `matchError` from
17
17
  * whatever the service actually returns (delay-seconds, HTTP-date, epoch, etc.)
18
18
  * and consumed at runtime by the retry policy.
19
19
  */
20
- export declare const DurationSchema: Schema.declare<Duration.Duration, Duration.Duration>;
21
- declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.TaggedStruct<"Unauthorized", {
22
- readonly message: Schema.String;
23
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
20
+ export declare const DurationSchema: import("effect/Schema").declare<Duration.Duration, Duration.Duration>;
21
+ declare const Unauthorized_base: Schema.TaggedErrorClass<"Unauthorized", {
22
+ readonly message: import("effect/Schema").String;
23
+ }> & (new (...args: any[]) => {
24
24
  "@distilled.cloud/error/categories": {
25
25
  AuthError: true;
26
26
  };
@@ -28,11 +28,11 @@ declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.TaggedStruct<
28
28
  /**
29
29
  * Unauthorized - Authentication failure (401).
30
30
  */
31
- export declare class Unauthorized extends Unauthorized_base {
31
+ export declare class Unauthorized extends /*@__PURE__*/ Unauthorized_base {
32
32
  }
33
- declare const Forbidden_base: Schema.Class<Forbidden, Schema.TaggedStruct<"Forbidden", {
34
- readonly message: Schema.String;
35
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
33
+ declare const Forbidden_base: Schema.TaggedErrorClass<"Forbidden", {
34
+ readonly message: import("effect/Schema").String;
35
+ }> & (new (...args: any[]) => {
36
36
  "@distilled.cloud/error/categories": {
37
37
  AuthError: true;
38
38
  };
@@ -40,11 +40,11 @@ declare const Forbidden_base: Schema.Class<Forbidden, Schema.TaggedStruct<"Forbi
40
40
  /**
41
41
  * Forbidden - Access denied (403).
42
42
  */
43
- export declare class Forbidden extends Forbidden_base {
43
+ export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
44
44
  }
45
- declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFound", {
46
- readonly message: Schema.String;
47
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
45
+ declare const NotFound_base: Schema.TaggedErrorClass<"NotFound", {
46
+ readonly message: import("effect/Schema").String;
47
+ }> & (new (...args: any[]) => {
48
48
  "@distilled.cloud/error/categories": {
49
49
  NotFoundError: true;
50
50
  };
@@ -52,11 +52,11 @@ declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"NotFoun
52
52
  /**
53
53
  * NotFound - Resource not found (404).
54
54
  */
55
- export declare class NotFound extends NotFound_base {
55
+ export declare class NotFound extends /*@__PURE__*/ NotFound_base {
56
56
  }
57
- declare const BadRequest_base: Schema.Class<BadRequest, Schema.TaggedStruct<"BadRequest", {
58
- readonly message: Schema.String;
59
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
57
+ declare const BadRequest_base: Schema.TaggedErrorClass<"BadRequest", {
58
+ readonly message: import("effect/Schema").String;
59
+ }> & (new (...args: any[]) => {
60
60
  "@distilled.cloud/error/categories": {
61
61
  BadRequestError: true;
62
62
  };
@@ -64,11 +64,11 @@ declare const BadRequest_base: Schema.Class<BadRequest, Schema.TaggedStruct<"Bad
64
64
  /**
65
65
  * BadRequest - Invalid request (400).
66
66
  */
67
- export declare class BadRequest extends BadRequest_base {
67
+ export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
68
68
  }
69
- declare const Conflict_base: Schema.Class<Conflict, Schema.TaggedStruct<"Conflict", {
70
- readonly message: Schema.String;
71
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
69
+ declare const Conflict_base: Schema.TaggedErrorClass<"Conflict", {
70
+ readonly message: import("effect/Schema").String;
71
+ }> & (new (...args: any[]) => {
72
72
  "@distilled.cloud/error/categories": {
73
73
  ConflictError: true;
74
74
  };
@@ -76,11 +76,11 @@ declare const Conflict_base: Schema.Class<Conflict, Schema.TaggedStruct<"Conflic
76
76
  /**
77
77
  * Conflict - Resource conflict (409).
78
78
  */
79
- export declare class Conflict extends Conflict_base {
79
+ export declare class Conflict extends /*@__PURE__*/ Conflict_base {
80
80
  }
81
- declare const UnprocessableEntity_base: Schema.Class<UnprocessableEntity, Schema.TaggedStruct<"UnprocessableEntity", {
82
- readonly message: Schema.String;
83
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
81
+ declare const UnprocessableEntity_base: Schema.TaggedErrorClass<"UnprocessableEntity", {
82
+ readonly message: import("effect/Schema").String;
83
+ }> & (new (...args: any[]) => {
84
84
  "@distilled.cloud/error/categories": {
85
85
  BadRequestError: true;
86
86
  };
@@ -88,12 +88,12 @@ declare const UnprocessableEntity_base: Schema.Class<UnprocessableEntity, Schema
88
88
  /**
89
89
  * UnprocessableEntity - Validation error (422).
90
90
  */
91
- export declare class UnprocessableEntity extends UnprocessableEntity_base {
91
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
92
92
  }
93
- declare const TooManyRequests_base: Schema.Class<TooManyRequests, Schema.TaggedStruct<"TooManyRequests", {
94
- readonly message: Schema.String;
95
- readonly retryAfter: Schema.optional<Schema.declare<Duration.Duration, Duration.Duration>>;
96
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
93
+ declare const TooManyRequests_base: Schema.TaggedErrorClass<"TooManyRequests", {
94
+ readonly message: import("effect/Schema").String;
95
+ readonly retryAfter: import("effect/Schema").optional<import("effect/Schema").declare<Duration.Duration, Duration.Duration>>;
96
+ }> & (new (...args: any[]) => {
97
97
  "@distilled.cloud/error/categories": {
98
98
  ThrottlingError: true;
99
99
  };
@@ -103,12 +103,12 @@ declare const TooManyRequests_base: Schema.Class<TooManyRequests, Schema.TaggedS
103
103
  /**
104
104
  * TooManyRequests - Rate limited (429).
105
105
  */
106
- export declare class TooManyRequests extends TooManyRequests_base {
106
+ export declare class TooManyRequests extends /*@__PURE__*/ TooManyRequests_base {
107
107
  }
108
- declare const Locked_base: Schema.Class<Locked, Schema.TaggedStruct<"Locked", {
109
- readonly message: Schema.String;
110
- readonly retryAfter: Schema.optional<Schema.declare<Duration.Duration, Duration.Duration>>;
111
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
108
+ declare const Locked_base: Schema.TaggedErrorClass<"Locked", {
109
+ readonly message: import("effect/Schema").String;
110
+ readonly retryAfter: import("effect/Schema").optional<import("effect/Schema").declare<Duration.Duration, Duration.Duration>>;
111
+ }> & (new (...args: any[]) => {
112
112
  "@distilled.cloud/error/categories": {
113
113
  LockedError: true;
114
114
  };
@@ -118,13 +118,13 @@ declare const Locked_base: Schema.Class<Locked, Schema.TaggedStruct<"Locked", {
118
118
  /**
119
119
  * Locked - Resource locked (423).
120
120
  */
121
- export declare class Locked extends Locked_base {
121
+ export declare class Locked extends /*@__PURE__*/ Locked_base {
122
122
  }
123
- declare const InternalServerError_base: Schema.Class<InternalServerError, Schema.TaggedStruct<"InternalServerError", {
124
- readonly message: Schema.String;
125
- readonly code: Schema.optional<Schema.Number>;
126
- readonly retryAfter: Schema.optional<Schema.declare<Duration.Duration, Duration.Duration>>;
127
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
123
+ declare const InternalServerError_base: Schema.TaggedErrorClass<"InternalServerError", {
124
+ readonly message: import("effect/Schema").String;
125
+ readonly code: import("effect/Schema").optional<import("effect/Schema").Number>;
126
+ readonly retryAfter: import("effect/Schema").optional<import("effect/Schema").declare<Duration.Duration, Duration.Duration>>;
127
+ }> & (new (...args: any[]) => {
128
128
  "@distilled.cloud/error/categories": {
129
129
  ServerError: true;
130
130
  };
@@ -139,12 +139,12 @@ declare const InternalServerError_base: Schema.Class<InternalServerError, Schema
139
139
  * 200 envelope carrying `{ code: 10002, message: "An unknown error has
140
140
  * occurred" }` for transient backend failures on some endpoints).
141
141
  */
142
- export declare class InternalServerError extends InternalServerError_base {
142
+ export declare class InternalServerError extends /*@__PURE__*/ InternalServerError_base {
143
143
  }
144
- declare const BadGateway_base: Schema.Class<BadGateway, Schema.TaggedStruct<"BadGateway", {
145
- readonly message: Schema.String;
146
- readonly retryAfter: Schema.optional<Schema.declare<Duration.Duration, Duration.Duration>>;
147
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
144
+ declare const BadGateway_base: Schema.TaggedErrorClass<"BadGateway", {
145
+ readonly message: import("effect/Schema").String;
146
+ readonly retryAfter: import("effect/Schema").optional<import("effect/Schema").declare<Duration.Duration, Duration.Duration>>;
147
+ }> & (new (...args: any[]) => {
148
148
  "@distilled.cloud/error/categories": {
149
149
  ServerError: true;
150
150
  };
@@ -154,12 +154,12 @@ declare const BadGateway_base: Schema.Class<BadGateway, Schema.TaggedStruct<"Bad
154
154
  /**
155
155
  * BadGateway - Bad gateway (502).
156
156
  */
157
- export declare class BadGateway extends BadGateway_base {
157
+ export declare class BadGateway extends /*@__PURE__*/ BadGateway_base {
158
158
  }
159
- declare const ServiceUnavailable_base: Schema.Class<ServiceUnavailable, Schema.TaggedStruct<"ServiceUnavailable", {
160
- readonly message: Schema.String;
161
- readonly retryAfter: Schema.optional<Schema.declare<Duration.Duration, Duration.Duration>>;
162
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
159
+ declare const ServiceUnavailable_base: Schema.TaggedErrorClass<"ServiceUnavailable", {
160
+ readonly message: import("effect/Schema").String;
161
+ readonly retryAfter: import("effect/Schema").optional<import("effect/Schema").declare<Duration.Duration, Duration.Duration>>;
162
+ }> & (new (...args: any[]) => {
163
163
  "@distilled.cloud/error/categories": {
164
164
  ServerError: true;
165
165
  };
@@ -169,12 +169,12 @@ declare const ServiceUnavailable_base: Schema.Class<ServiceUnavailable, Schema.T
169
169
  /**
170
170
  * ServiceUnavailable - Service unavailable (503).
171
171
  */
172
- export declare class ServiceUnavailable extends ServiceUnavailable_base {
172
+ export declare class ServiceUnavailable extends /*@__PURE__*/ ServiceUnavailable_base {
173
173
  }
174
- declare const GatewayTimeout_base: Schema.Class<GatewayTimeout, Schema.TaggedStruct<"GatewayTimeout", {
175
- readonly message: Schema.String;
176
- readonly retryAfter: Schema.optional<Schema.declare<Duration.Duration, Duration.Duration>>;
177
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
174
+ declare const GatewayTimeout_base: Schema.TaggedErrorClass<"GatewayTimeout", {
175
+ readonly message: import("effect/Schema").String;
176
+ readonly retryAfter: import("effect/Schema").optional<import("effect/Schema").declare<Duration.Duration, Duration.Duration>>;
177
+ }> & (new (...args: any[]) => {
178
178
  "@distilled.cloud/error/categories": {
179
179
  ServerError: true;
180
180
  };
@@ -184,11 +184,11 @@ declare const GatewayTimeout_base: Schema.Class<GatewayTimeout, Schema.TaggedStr
184
184
  /**
185
185
  * GatewayTimeout - HTTP request or gateway timeout (408, 504).
186
186
  */
187
- export declare class GatewayTimeout extends GatewayTimeout_base {
187
+ export declare class GatewayTimeout extends /*@__PURE__*/ GatewayTimeout_base {
188
188
  }
189
- declare const ConfigError_base: Schema.Class<ConfigError, Schema.TaggedStruct<"ConfigError", {
190
- readonly message: Schema.String;
191
- }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
189
+ declare const ConfigError_base: Schema.TaggedErrorClass<"ConfigError", {
190
+ readonly message: import("effect/Schema").String;
191
+ }> & (new (...args: any[]) => {
192
192
  "@distilled.cloud/error/categories": {
193
193
  ConfigurationError: true;
194
194
  };
@@ -196,7 +196,7 @@ declare const ConfigError_base: Schema.Class<ConfigError, Schema.TaggedStruct<"C
196
196
  /**
197
197
  * Configuration error - missing or invalid configuration.
198
198
  */
199
- export declare class ConfigError extends ConfigError_base {
199
+ export declare class ConfigError extends /*@__PURE__*/ ConfigError_base {
200
200
  }
201
201
  /**
202
202
  * Mapping from HTTP status codes to common error classes.
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAM1C;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,sDAAyD,CAAC;;;;;;;;AAMrF;;GAEG;AACH,qBAAa,YAAa,SAAQ,iBAEH;CAAG;;;;;;;;AAElC;;GAE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