@lukadriel/wave-sdk 0.0.0-stage → 0.1.2

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 (185) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +201 -0
  3. package/NOTICE +2 -0
  4. package/README.md +523 -2
  5. package/dist/client/wave-client-options.d.ts +29 -0
  6. package/dist/client/wave-client-options.d.ts.map +1 -0
  7. package/dist/client/wave-client-options.js +58 -0
  8. package/dist/client/wave-client-options.js.map +1 -0
  9. package/dist/client/wave-client.d.ts +47 -0
  10. package/dist/client/wave-client.d.ts.map +1 -0
  11. package/dist/client/wave-client.js +66 -0
  12. package/dist/client/wave-client.js.map +1 -0
  13. package/dist/core/auth/authentication.d.ts +8 -0
  14. package/dist/core/auth/authentication.d.ts.map +1 -0
  15. package/dist/core/auth/authentication.js +10 -0
  16. package/dist/core/auth/authentication.js.map +1 -0
  17. package/dist/core/auth/request-signer.d.ts +26 -0
  18. package/dist/core/auth/request-signer.d.ts.map +1 -0
  19. package/dist/core/auth/request-signer.js +39 -0
  20. package/dist/core/auth/request-signer.js.map +1 -0
  21. package/dist/core/errors/error-parser.d.ts +25 -0
  22. package/dist/core/errors/error-parser.d.ts.map +1 -0
  23. package/dist/core/errors/error-parser.js +198 -0
  24. package/dist/core/errors/error-parser.js.map +1 -0
  25. package/dist/core/errors/redact.d.ts +11 -0
  26. package/dist/core/errors/redact.d.ts.map +1 -0
  27. package/dist/core/errors/redact.js +20 -0
  28. package/dist/core/errors/redact.js.map +1 -0
  29. package/dist/core/errors/wave-api-error.d.ts +116 -0
  30. package/dist/core/errors/wave-api-error.d.ts.map +1 -0
  31. package/dist/core/errors/wave-api-error.js +114 -0
  32. package/dist/core/errors/wave-api-error.js.map +1 -0
  33. package/dist/core/errors/wave-error.d.ts +27 -0
  34. package/dist/core/errors/wave-error.d.ts.map +1 -0
  35. package/dist/core/errors/wave-error.js +22 -0
  36. package/dist/core/errors/wave-error.js.map +1 -0
  37. package/dist/core/errors/wave-network-error.d.ts +24 -0
  38. package/dist/core/errors/wave-network-error.d.ts.map +1 -0
  39. package/dist/core/errors/wave-network-error.js +24 -0
  40. package/dist/core/errors/wave-network-error.js.map +1 -0
  41. package/dist/core/errors/wave-webhook-verification-error.d.ts +18 -0
  42. package/dist/core/errors/wave-webhook-verification-error.d.ts.map +1 -0
  43. package/dist/core/errors/wave-webhook-verification-error.js +17 -0
  44. package/dist/core/errors/wave-webhook-verification-error.js.map +1 -0
  45. package/dist/core/http/fetch-transport.d.ts +23 -0
  46. package/dist/core/http/fetch-transport.d.ts.map +1 -0
  47. package/dist/core/http/fetch-transport.js +34 -0
  48. package/dist/core/http/fetch-transport.js.map +1 -0
  49. package/dist/core/http/http-client.d.ts +57 -0
  50. package/dist/core/http/http-client.d.ts.map +1 -0
  51. package/dist/core/http/http-client.js +254 -0
  52. package/dist/core/http/http-client.js.map +1 -0
  53. package/dist/core/http/http-request.d.ts +35 -0
  54. package/dist/core/http/http-request.d.ts.map +1 -0
  55. package/dist/core/http/http-request.js +2 -0
  56. package/dist/core/http/http-request.js.map +1 -0
  57. package/dist/core/http/http-response.d.ts +26 -0
  58. package/dist/core/http/http-response.d.ts.map +1 -0
  59. package/dist/core/http/http-response.js +23 -0
  60. package/dist/core/http/http-response.js.map +1 -0
  61. package/dist/core/http/query.d.ts +14 -0
  62. package/dist/core/http/query.d.ts.map +1 -0
  63. package/dist/core/http/query.js +23 -0
  64. package/dist/core/http/query.js.map +1 -0
  65. package/dist/core/http/transport.d.ts +44 -0
  66. package/dist/core/http/transport.d.ts.map +1 -0
  67. package/dist/core/http/transport.js +2 -0
  68. package/dist/core/http/transport.js.map +1 -0
  69. package/dist/core/idempotency/idempotency.d.ts +16 -0
  70. package/dist/core/idempotency/idempotency.d.ts.map +1 -0
  71. package/dist/core/idempotency/idempotency.js +27 -0
  72. package/dist/core/idempotency/idempotency.js.map +1 -0
  73. package/dist/core/retry/backoff.d.ts +18 -0
  74. package/dist/core/retry/backoff.d.ts.map +1 -0
  75. package/dist/core/retry/backoff.js +46 -0
  76. package/dist/core/retry/backoff.js.map +1 -0
  77. package/dist/core/retry/retry-policy.d.ts +43 -0
  78. package/dist/core/retry/retry-policy.d.ts.map +1 -0
  79. package/dist/core/retry/retry-policy.js +90 -0
  80. package/dist/core/retry/retry-policy.js.map +1 -0
  81. package/dist/core/types/common.d.ts +59 -0
  82. package/dist/core/types/common.d.ts.map +1 -0
  83. package/dist/core/types/common.js +2 -0
  84. package/dist/core/types/common.js.map +1 -0
  85. package/dist/core/types/configuration.d.ts +82 -0
  86. package/dist/core/types/configuration.d.ts.map +1 -0
  87. package/dist/core/types/configuration.js +2 -0
  88. package/dist/core/types/configuration.js.map +1 -0
  89. package/dist/core/types/json.d.ts +15 -0
  90. package/dist/core/types/json.d.ts.map +1 -0
  91. package/dist/core/types/json.js +2 -0
  92. package/dist/core/types/json.js.map +1 -0
  93. package/dist/index.d.ts +39 -0
  94. package/dist/index.d.ts.map +1 -0
  95. package/dist/index.js +24 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/resources/aggregated-merchants/aggregated-merchant-types.d.ts +82 -0
  98. package/dist/resources/aggregated-merchants/aggregated-merchant-types.d.ts.map +1 -0
  99. package/dist/resources/aggregated-merchants/aggregated-merchant-types.js +2 -0
  100. package/dist/resources/aggregated-merchants/aggregated-merchant-types.js.map +1 -0
  101. package/dist/resources/aggregated-merchants/aggregated-merchants.d.ts +67 -0
  102. package/dist/resources/aggregated-merchants/aggregated-merchants.d.ts.map +1 -0
  103. package/dist/resources/aggregated-merchants/aggregated-merchants.js +111 -0
  104. package/dist/resources/aggregated-merchants/aggregated-merchants.js.map +1 -0
  105. package/dist/resources/balance/balance-types.d.ts +18 -0
  106. package/dist/resources/balance/balance-types.d.ts.map +1 -0
  107. package/dist/resources/balance/balance-types.js +2 -0
  108. package/dist/resources/balance/balance-types.js.map +1 -0
  109. package/dist/resources/balance/balance.d.ts +20 -0
  110. package/dist/resources/balance/balance.d.ts.map +1 -0
  111. package/dist/resources/balance/balance.js +28 -0
  112. package/dist/resources/balance/balance.js.map +1 -0
  113. package/dist/resources/checkout/checkout-types.d.ts +96 -0
  114. package/dist/resources/checkout/checkout-types.d.ts.map +1 -0
  115. package/dist/resources/checkout/checkout-types.js +2 -0
  116. package/dist/resources/checkout/checkout-types.js.map +1 -0
  117. package/dist/resources/checkout/checkout.d.ts +66 -0
  118. package/dist/resources/checkout/checkout.d.ts.map +1 -0
  119. package/dist/resources/checkout/checkout.js +95 -0
  120. package/dist/resources/checkout/checkout.js.map +1 -0
  121. package/dist/resources/payout-batches/payout-batches.d.ts +31 -0
  122. package/dist/resources/payout-batches/payout-batches.d.ts.map +1 -0
  123. package/dist/resources/payout-batches/payout-batches.js +36 -0
  124. package/dist/resources/payout-batches/payout-batches.js.map +1 -0
  125. package/dist/resources/payouts/payout-types.d.ts +158 -0
  126. package/dist/resources/payouts/payout-types.d.ts.map +1 -0
  127. package/dist/resources/payouts/payout-types.js +2 -0
  128. package/dist/resources/payouts/payout-types.js.map +1 -0
  129. package/dist/resources/payouts/payouts.d.ts +63 -0
  130. package/dist/resources/payouts/payouts.d.ts.map +1 -0
  131. package/dist/resources/payouts/payouts.js +80 -0
  132. package/dist/resources/payouts/payouts.js.map +1 -0
  133. package/dist/resources/reconciliation/reconciliation-types.d.ts +86 -0
  134. package/dist/resources/reconciliation/reconciliation-types.d.ts.map +1 -0
  135. package/dist/resources/reconciliation/reconciliation-types.js +2 -0
  136. package/dist/resources/reconciliation/reconciliation-types.js.map +1 -0
  137. package/dist/resources/reconciliation/reconciliation.d.ts +41 -0
  138. package/dist/resources/reconciliation/reconciliation.d.ts.map +1 -0
  139. package/dist/resources/reconciliation/reconciliation.js +81 -0
  140. package/dist/resources/reconciliation/reconciliation.js.map +1 -0
  141. package/dist/resources/webhooks/webhook-types.d.ts +159 -0
  142. package/dist/resources/webhooks/webhook-types.d.ts.map +1 -0
  143. package/dist/resources/webhooks/webhook-types.js +36 -0
  144. package/dist/resources/webhooks/webhook-types.js.map +1 -0
  145. package/dist/resources/webhooks/webhook-verifier.d.ts +104 -0
  146. package/dist/resources/webhooks/webhook-verifier.d.ts.map +1 -0
  147. package/dist/resources/webhooks/webhook-verifier.js +188 -0
  148. package/dist/resources/webhooks/webhook-verifier.js.map +1 -0
  149. package/package.json +70 -4
  150. package/src/client/wave-client-options.ts +91 -0
  151. package/src/client/wave-client.ts +70 -0
  152. package/src/core/auth/authentication.ts +9 -0
  153. package/src/core/auth/request-signer.ts +42 -0
  154. package/src/core/errors/error-parser.ts +258 -0
  155. package/src/core/errors/redact.ts +20 -0
  156. package/src/core/errors/wave-api-error.ts +148 -0
  157. package/src/core/errors/wave-error.ts +32 -0
  158. package/src/core/errors/wave-network-error.ts +24 -0
  159. package/src/core/errors/wave-webhook-verification-error.ts +28 -0
  160. package/src/core/http/fetch-transport.ts +48 -0
  161. package/src/core/http/http-client.ts +352 -0
  162. package/src/core/http/http-request.ts +37 -0
  163. package/src/core/http/http-response.ts +37 -0
  164. package/src/core/http/query.ts +31 -0
  165. package/src/core/http/transport.ts +45 -0
  166. package/src/core/idempotency/idempotency.ts +31 -0
  167. package/src/core/retry/backoff.ts +61 -0
  168. package/src/core/retry/retry-policy.ts +106 -0
  169. package/src/core/types/common.ts +65 -0
  170. package/src/core/types/configuration.ts +85 -0
  171. package/src/core/types/json.ts +16 -0
  172. package/src/index.ts +146 -0
  173. package/src/resources/aggregated-merchants/aggregated-merchant-types.ts +87 -0
  174. package/src/resources/aggregated-merchants/aggregated-merchants.ts +171 -0
  175. package/src/resources/balance/balance-types.ts +19 -0
  176. package/src/resources/balance/balance.ts +39 -0
  177. package/src/resources/checkout/checkout-types.ts +102 -0
  178. package/src/resources/checkout/checkout.ts +144 -0
  179. package/src/resources/payout-batches/payout-batches.ts +58 -0
  180. package/src/resources/payouts/payout-types.ts +171 -0
  181. package/src/resources/payouts/payouts.ts +120 -0
  182. package/src/resources/reconciliation/reconciliation-types.ts +102 -0
  183. package/src/resources/reconciliation/reconciliation.ts +116 -0
  184. package/src/resources/webhooks/webhook-types.ts +222 -0
  185. package/src/resources/webhooks/webhook-verifier.ts +297 -0
@@ -0,0 +1,114 @@
1
+ import { WaveError } from './wave-error.js';
2
+ /**
3
+ * Base class for errors returned by the Wave API.
4
+ */
5
+ export class WaveApiError extends WaveError {
6
+ /** HTTP status code returned by Wave. */
7
+ statusCode;
8
+ /** Field-level validation details, when documented. */
9
+ details;
10
+ /** Raw response body preserved for diagnostics, with known credentials redacted. */
11
+ rawBody;
12
+ /** Response headers with lowercase names. */
13
+ responseHeaders;
14
+ /**
15
+ * @param message - Human-readable description that never contains credentials.
16
+ * @param options - Status code and preserved API error metadata.
17
+ */
18
+ constructor(message, options) {
19
+ super(message, options.code === undefined ? {} : { code: options.code });
20
+ this.statusCode = options.statusCode;
21
+ this.details = options.details;
22
+ this.rawBody = options.rawBody;
23
+ this.responseHeaders = options.responseHeaders;
24
+ }
25
+ }
26
+ /**
27
+ * Error returned when the API key or request signature is rejected (HTTP 401).
28
+ */
29
+ export class WaveAuthenticationError extends WaveApiError {
30
+ /**
31
+ * @param message - Human-readable description.
32
+ * @param options - Preserved API error metadata.
33
+ */
34
+ constructor(message, options) {
35
+ super(message, { ...options, statusCode: 401 });
36
+ }
37
+ }
38
+ /**
39
+ * Error returned when the key lacks permission for the request, the wallet cannot use the API, or
40
+ * the source IP is not allowlisted (HTTP 403).
41
+ */
42
+ export class WaveAuthorizationError extends WaveApiError {
43
+ /**
44
+ * @param message - Human-readable description.
45
+ * @param options - Preserved API error metadata.
46
+ */
47
+ constructor(message, options) {
48
+ super(message, { ...options, statusCode: 403 });
49
+ }
50
+ }
51
+ /**
52
+ * Error returned when the requested resource does not exist (HTTP 404).
53
+ */
54
+ export class WaveNotFoundError extends WaveApiError {
55
+ /**
56
+ * @param message - Human-readable description.
57
+ * @param options - Preserved API error metadata.
58
+ */
59
+ constructor(message, options) {
60
+ super(message, { ...options, statusCode: 404 });
61
+ }
62
+ }
63
+ /**
64
+ * Error returned for a malformed or semantically invalid request (HTTP 400 or 422).
65
+ */
66
+ export class WaveValidationError extends WaveApiError {
67
+ /**
68
+ * @param message - Human-readable description.
69
+ * @param options - Preserved API error metadata.
70
+ */
71
+ constructor(message, options) {
72
+ super(message, options);
73
+ }
74
+ }
75
+ /**
76
+ * Error returned when the request conflicts with the current resource state (HTTP 409).
77
+ */
78
+ export class WaveConflictError extends WaveApiError {
79
+ /**
80
+ * @param message - Human-readable description.
81
+ * @param options - Preserved API error metadata.
82
+ */
83
+ constructor(message, options) {
84
+ super(message, { ...options, statusCode: 409 });
85
+ }
86
+ }
87
+ /**
88
+ * Error returned when the rate limit is exceeded (HTTP 429).
89
+ */
90
+ export class WaveRateLimitError extends WaveApiError {
91
+ /** Retry delay parsed from `Retry-After`, when Wave provides one. */
92
+ retryAfterSeconds;
93
+ /**
94
+ * @param message - Human-readable description.
95
+ * @param options - Preserved API error metadata and optional retry delay.
96
+ */
97
+ constructor(message, options) {
98
+ super(message, { ...options, statusCode: 429 });
99
+ this.retryAfterSeconds = options.retryAfterSeconds;
100
+ }
101
+ }
102
+ /**
103
+ * Error returned when Wave fails to process a valid request (HTTP 5xx).
104
+ */
105
+ export class WaveServerError extends WaveApiError {
106
+ /**
107
+ * @param message - Human-readable description.
108
+ * @param options - Preserved API error metadata.
109
+ */
110
+ constructor(message, options) {
111
+ super(message, options);
112
+ }
113
+ }
114
+ //# sourceMappingURL=wave-api-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-api-error.js","sourceRoot":"","sources":["../../../src/core/errors/wave-api-error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAkB5C;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC,yCAAyC;IAChC,UAAU,CAAS;IAC5B,uDAAuD;IAC9C,OAAO,CAA+C;IAC/D,oFAAoF;IAC3E,OAAO,CAAqB;IACrC,6CAA6C;IACpC,eAAe,CAA+C;IAEvE;;;OAGG;IACH,YAAY,OAAe,EAAE,OAA4B;QACvD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAC/B,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IACjD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,YAAY;IACvD;;;OAGG;IACH,YAAY,OAAe,EAAE,OAAgD;QAC3E,KAAK,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAClD,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,OAAO,sBAAuB,SAAQ,YAAY;IACtD;;;OAGG;IACH,YAAY,OAAe,EAAE,OAAgD;QAC3E,KAAK,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAClD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;OAGG;IACH,YAAY,OAAe,EAAE,OAAgD;QAC3E,KAAK,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAClD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,YAAY;IACnD;;;OAGG;IACH,YAAY,OAAe,EAAE,OAA4B;QACvD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;OAGG;IACH,YAAY,OAAe,EAAE,OAAgD;QAC3E,KAAK,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAClD,CAAC;CACF;AAUD;;GAEG;AACH,MAAM,OAAO,kBAAmB,SAAQ,YAAY;IAClD,qEAAqE;IAC5D,iBAAiB,CAAqB;IAE/C;;;OAGG;IACH,YAAY,OAAe,EAAE,OAAkC;QAC7D,KAAK,CAAC,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QAChD,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IACrD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,YAAY;IAC/C;;;OAGG;IACH,YAAY,OAAe,EAAE,OAA4B;QACvD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF","sourcesContent":["import type { ValidationErrorDetail } from '../types/common.js';\nimport { WaveError } from './wave-error.js';\n\n/**\n * Options for API errors.\n */\nexport interface WaveApiErrorOptions {\n /** HTTP status code returned by Wave. */\n readonly statusCode: number;\n /** Wave error code, preserved verbatim. */\n readonly code?: string;\n /** Field-level validation details, when documented. */\n readonly details?: readonly ValidationErrorDetail[];\n /** Raw response body, preserved for diagnostics. */\n readonly rawBody?: string;\n /** Response headers with lowercase names. */\n readonly responseHeaders?: Readonly<Record<string, string>>;\n}\n\n/**\n * Base class for errors returned by the Wave API.\n */\nexport class WaveApiError extends WaveError {\n /** HTTP status code returned by Wave. */\n readonly statusCode: number;\n /** Field-level validation details, when documented. */\n readonly details: readonly ValidationErrorDetail[] | undefined;\n /** Raw response body preserved for diagnostics, with known credentials redacted. */\n readonly rawBody: string | undefined;\n /** Response headers with lowercase names. */\n readonly responseHeaders: Readonly<Record<string, string>> | undefined;\n\n /**\n * @param message - Human-readable description that never contains credentials.\n * @param options - Status code and preserved API error metadata.\n */\n constructor(message: string, options: WaveApiErrorOptions) {\n super(message, options.code === undefined ? {} : { code: options.code });\n this.statusCode = options.statusCode;\n this.details = options.details;\n this.rawBody = options.rawBody;\n this.responseHeaders = options.responseHeaders;\n }\n}\n\n/**\n * Error returned when the API key or request signature is rejected (HTTP 401).\n */\nexport class WaveAuthenticationError extends WaveApiError {\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata.\n */\n constructor(message: string, options: Omit<WaveApiErrorOptions, 'statusCode'>) {\n super(message, { ...options, statusCode: 401 });\n }\n}\n\n/**\n * Error returned when the key lacks permission for the request, the wallet cannot use the API, or\n * the source IP is not allowlisted (HTTP 403).\n */\nexport class WaveAuthorizationError extends WaveApiError {\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata.\n */\n constructor(message: string, options: Omit<WaveApiErrorOptions, 'statusCode'>) {\n super(message, { ...options, statusCode: 403 });\n }\n}\n\n/**\n * Error returned when the requested resource does not exist (HTTP 404).\n */\nexport class WaveNotFoundError extends WaveApiError {\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata.\n */\n constructor(message: string, options: Omit<WaveApiErrorOptions, 'statusCode'>) {\n super(message, { ...options, statusCode: 404 });\n }\n}\n\n/**\n * Error returned for a malformed or semantically invalid request (HTTP 400 or 422).\n */\nexport class WaveValidationError extends WaveApiError {\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata.\n */\n constructor(message: string, options: WaveApiErrorOptions) {\n super(message, options);\n }\n}\n\n/**\n * Error returned when the request conflicts with the current resource state (HTTP 409).\n */\nexport class WaveConflictError extends WaveApiError {\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata.\n */\n constructor(message: string, options: Omit<WaveApiErrorOptions, 'statusCode'>) {\n super(message, { ...options, statusCode: 409 });\n }\n}\n\n/**\n * Options for rate-limit errors.\n */\nexport interface WaveRateLimitErrorOptions extends Omit<WaveApiErrorOptions, 'statusCode'> {\n /** Retry delay parsed from a `Retry-After` response header, when present. */\n readonly retryAfterSeconds?: number;\n}\n\n/**\n * Error returned when the rate limit is exceeded (HTTP 429).\n */\nexport class WaveRateLimitError extends WaveApiError {\n /** Retry delay parsed from `Retry-After`, when Wave provides one. */\n readonly retryAfterSeconds: number | undefined;\n\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata and optional retry delay.\n */\n constructor(message: string, options: WaveRateLimitErrorOptions) {\n super(message, { ...options, statusCode: 429 });\n this.retryAfterSeconds = options.retryAfterSeconds;\n }\n}\n\n/**\n * Error returned when Wave fails to process a valid request (HTTP 5xx).\n */\nexport class WaveServerError extends WaveApiError {\n /**\n * @param message - Human-readable description.\n * @param options - Preserved API error metadata.\n */\n constructor(message: string, options: WaveApiErrorOptions) {\n super(message, options);\n }\n}\n"]}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Options shared by all SDK errors.
3
+ */
4
+ export interface WaveErrorOptions {
5
+ /** Machine-readable error code, when the API or SDK provides one. */
6
+ readonly code?: string;
7
+ /** Underlying error that caused this one. */
8
+ readonly cause?: unknown;
9
+ }
10
+ /**
11
+ * Base class for every error thrown by the SDK.
12
+ */
13
+ export declare class WaveError extends Error {
14
+ /** Machine-readable error code, when available. */
15
+ readonly code: string | undefined;
16
+ /**
17
+ * @param message - Human-readable description that never contains credentials.
18
+ * @param options - Optional error code and cause.
19
+ */
20
+ constructor(message: string, options?: WaveErrorOptions);
21
+ }
22
+ /**
23
+ * Configuration or caller-input error raised before any request is sent.
24
+ */
25
+ export declare class WaveConfigurationError extends WaveError {
26
+ }
27
+ //# sourceMappingURL=wave-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-error.d.ts","sourceRoot":"","sources":["../../../src/core/errors/wave-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,KAAK;IAClC,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IAElC;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,gBAAqB;CAK5D;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;CAAG"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Base class for every error thrown by the SDK.
3
+ */
4
+ export class WaveError extends Error {
5
+ /** Machine-readable error code, when available. */
6
+ code;
7
+ /**
8
+ * @param message - Human-readable description that never contains credentials.
9
+ * @param options - Optional error code and cause.
10
+ */
11
+ constructor(message, options = {}) {
12
+ super(message, options.cause === undefined ? undefined : { cause: options.cause });
13
+ this.name = new.target.name;
14
+ this.code = options.code;
15
+ }
16
+ }
17
+ /**
18
+ * Configuration or caller-input error raised before any request is sent.
19
+ */
20
+ export class WaveConfigurationError extends WaveError {
21
+ }
22
+ //# sourceMappingURL=wave-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-error.js","sourceRoot":"","sources":["../../../src/core/errors/wave-error.ts"],"names":[],"mappings":"AAUA;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClC,mDAAmD;IAC1C,IAAI,CAAqB;IAElC;;;OAGG;IACH,YAAY,OAAe,EAAE,UAA4B,EAAE;QACzD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACnF,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,SAAS;CAAG","sourcesContent":["/**\n * Options shared by all SDK errors.\n */\nexport interface WaveErrorOptions {\n /** Machine-readable error code, when the API or SDK provides one. */\n readonly code?: string;\n /** Underlying error that caused this one. */\n readonly cause?: unknown;\n}\n\n/**\n * Base class for every error thrown by the SDK.\n */\nexport class WaveError extends Error {\n /** Machine-readable error code, when available. */\n readonly code: string | undefined;\n\n /**\n * @param message - Human-readable description that never contains credentials.\n * @param options - Optional error code and cause.\n */\n constructor(message: string, options: WaveErrorOptions = {}) {\n super(message, options.cause === undefined ? undefined : { cause: options.cause });\n this.name = new.target.name;\n this.code = options.code;\n }\n}\n\n/**\n * Configuration or caller-input error raised before any request is sent.\n */\nexport class WaveConfigurationError extends WaveError {}\n"]}
@@ -0,0 +1,24 @@
1
+ import { WaveError } from './wave-error.js';
2
+ /**
3
+ * Error raised when a request cannot reach Wave or the connection fails.
4
+ */
5
+ export declare class WaveNetworkError extends WaveError {
6
+ /**
7
+ * @param message - Human-readable description.
8
+ * @param options - Optional underlying cause.
9
+ */
10
+ constructor(message: string, options?: {
11
+ readonly cause?: unknown;
12
+ });
13
+ }
14
+ /**
15
+ * Error raised when a request exceeds its configured timeout.
16
+ */
17
+ export declare class WaveTimeoutError extends WaveNetworkError {
18
+ }
19
+ /**
20
+ * Error raised when the caller aborts a request through an `AbortSignal`.
21
+ */
22
+ export declare class WaveAbortError extends WaveError {
23
+ }
24
+ //# sourceMappingURL=wave-network-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-network-error.d.ts","sourceRoot":"","sources":["../../../src/core/errors/wave-network-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;;OAGG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO;CAGxE;AAED;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,gBAAgB;CAAG;AAEzD;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;CAAG"}
@@ -0,0 +1,24 @@
1
+ import { WaveError } from './wave-error.js';
2
+ /**
3
+ * Error raised when a request cannot reach Wave or the connection fails.
4
+ */
5
+ export class WaveNetworkError extends WaveError {
6
+ /**
7
+ * @param message - Human-readable description.
8
+ * @param options - Optional underlying cause.
9
+ */
10
+ constructor(message, options = {}) {
11
+ super(message, options.cause === undefined ? {} : { cause: options.cause });
12
+ }
13
+ }
14
+ /**
15
+ * Error raised when a request exceeds its configured timeout.
16
+ */
17
+ export class WaveTimeoutError extends WaveNetworkError {
18
+ }
19
+ /**
20
+ * Error raised when the caller aborts a request through an `AbortSignal`.
21
+ */
22
+ export class WaveAbortError extends WaveError {
23
+ }
24
+ //# sourceMappingURL=wave-network-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-network-error.js","sourceRoot":"","sources":["../../../src/core/errors/wave-network-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C;;;OAGG;IACH,YAAY,OAAe,EAAE,UAAwC,EAAE;QACrE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;CAAG;AAEzD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,SAAS;CAAG","sourcesContent":["import { WaveError } from './wave-error.js';\n\n/**\n * Error raised when a request cannot reach Wave or the connection fails.\n */\nexport class WaveNetworkError extends WaveError {\n /**\n * @param message - Human-readable description.\n * @param options - Optional underlying cause.\n */\n constructor(message: string, options: { readonly cause?: unknown } = {}) {\n super(message, options.cause === undefined ? {} : { cause: options.cause });\n }\n}\n\n/**\n * Error raised when a request exceeds its configured timeout.\n */\nexport class WaveTimeoutError extends WaveNetworkError {}\n\n/**\n * Error raised when the caller aborts a request through an `AbortSignal`.\n */\nexport class WaveAbortError extends WaveError {}\n"]}
@@ -0,0 +1,18 @@
1
+ import { WaveError } from './wave-error.js';
2
+ /**
3
+ * Reason a webhook request failed verification.
4
+ */
5
+ export type WebhookVerificationFailureReason = 'missing-header' | 'invalid-format' | 'invalid-payload' | 'no-matching-signature' | 'timestamp-too-old';
6
+ /**
7
+ * Error raised when an incoming webhook cannot be verified as originating from Wave.
8
+ */
9
+ export declare class WaveWebhookVerificationError extends WaveError {
10
+ /** Specific verification failure. */
11
+ readonly reason: WebhookVerificationFailureReason;
12
+ /**
13
+ * @param reason - Specific verification failure.
14
+ * @param message - Human-readable description that never contains the webhook secret.
15
+ */
16
+ constructor(reason: WebhookVerificationFailureReason, message: string);
17
+ }
18
+ //# sourceMappingURL=wave-webhook-verification-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-webhook-verification-error.d.ts","sourceRoot":"","sources":["../../../src/core/errors/wave-webhook-verification-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,gCAAgC,GACxC,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,uBAAuB,GACvB,mBAAmB,CAAC;AAExB;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IACzD,qCAAqC;IACrC,QAAQ,CAAC,MAAM,EAAE,gCAAgC,CAAC;IAElD;;;OAGG;gBACS,MAAM,EAAE,gCAAgC,EAAE,OAAO,EAAE,MAAM;CAItE"}
@@ -0,0 +1,17 @@
1
+ import { WaveError } from './wave-error.js';
2
+ /**
3
+ * Error raised when an incoming webhook cannot be verified as originating from Wave.
4
+ */
5
+ export class WaveWebhookVerificationError extends WaveError {
6
+ /** Specific verification failure. */
7
+ reason;
8
+ /**
9
+ * @param reason - Specific verification failure.
10
+ * @param message - Human-readable description that never contains the webhook secret.
11
+ */
12
+ constructor(reason, message) {
13
+ super(message, { code: `webhook-${reason}` });
14
+ this.reason = reason;
15
+ }
16
+ }
17
+ //# sourceMappingURL=wave-webhook-verification-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave-webhook-verification-error.js","sourceRoot":"","sources":["../../../src/core/errors/wave-webhook-verification-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAY5C;;GAEG;AACH,MAAM,OAAO,4BAA6B,SAAQ,SAAS;IACzD,qCAAqC;IAC5B,MAAM,CAAmC;IAElD;;;OAGG;IACH,YAAY,MAAwC,EAAE,OAAe;QACnE,KAAK,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,MAAM,EAAE,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF","sourcesContent":["import { WaveError } from './wave-error.js';\n\n/**\n * Reason a webhook request failed verification.\n */\nexport type WebhookVerificationFailureReason =\n | 'missing-header'\n | 'invalid-format'\n | 'invalid-payload'\n | 'no-matching-signature'\n | 'timestamp-too-old';\n\n/**\n * Error raised when an incoming webhook cannot be verified as originating from Wave.\n */\nexport class WaveWebhookVerificationError extends WaveError {\n /** Specific verification failure. */\n readonly reason: WebhookVerificationFailureReason;\n\n /**\n * @param reason - Specific verification failure.\n * @param message - Human-readable description that never contains the webhook secret.\n */\n constructor(reason: WebhookVerificationFailureReason, message: string) {\n super(message, { code: `webhook-${reason}` });\n this.reason = reason;\n }\n}\n"]}
@@ -0,0 +1,23 @@
1
+ import type { TransportRequest, TransportResponse, WaveTransport } from './transport.js';
2
+ /**
3
+ * Minimal fetch signature accepted by {@link FetchTransport}.
4
+ *
5
+ * Compatible with the global `fetch` in Node.js 22+ and Bun.
6
+ */
7
+ export type FetchLike = (url: string, init: RequestInit) => Promise<Response>;
8
+ /**
9
+ * Default transport backed by the global Fetch API.
10
+ *
11
+ * The request body is transmitted verbatim so that the bytes signed by the SDK are the bytes sent
12
+ * over the network.
13
+ */
14
+ export declare class FetchTransport implements WaveTransport {
15
+ #private;
16
+ /**
17
+ * @param fetchImplementation - Fetch implementation to use; defaults to `globalThis.fetch`.
18
+ */
19
+ constructor(fetchImplementation?: FetchLike);
20
+ /** @inheritdoc */
21
+ send(request: TransportRequest): Promise<TransportResponse>;
22
+ }
23
+ //# sourceMappingURL=fetch-transport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-transport.d.ts","sourceRoot":"","sources":["../../../src/core/http/fetch-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEzF;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,qBAAa,cAAe,YAAW,aAAa;;IAGlD;;OAEG;gBACS,mBAAmB,GAAE,SAA4B;IAI7D,kBAAkB;IACZ,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAqBlE"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Default transport backed by the global Fetch API.
3
+ *
4
+ * The request body is transmitted verbatim so that the bytes signed by the SDK are the bytes sent
5
+ * over the network.
6
+ */
7
+ export class FetchTransport {
8
+ #fetch;
9
+ /**
10
+ * @param fetchImplementation - Fetch implementation to use; defaults to `globalThis.fetch`.
11
+ */
12
+ constructor(fetchImplementation = globalThis.fetch) {
13
+ this.#fetch = fetchImplementation;
14
+ }
15
+ /** @inheritdoc */
16
+ async send(request) {
17
+ const init = {
18
+ method: request.method,
19
+ headers: { ...request.headers },
20
+ signal: request.signal,
21
+ };
22
+ if (request.body !== undefined) {
23
+ init.body = request.body;
24
+ }
25
+ const response = await this.#fetch(request.url, init);
26
+ const bodyText = await response.text();
27
+ const headers = {};
28
+ response.headers.forEach((value, key) => {
29
+ headers[key.toLowerCase()] = value;
30
+ });
31
+ return { status: response.status, headers, bodyText };
32
+ }
33
+ }
34
+ //# sourceMappingURL=fetch-transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-transport.js","sourceRoot":"","sources":["../../../src/core/http/fetch-transport.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,MAAM,OAAO,cAAc;IAChB,MAAM,CAAY;IAE3B;;OAEG;IACH,YAAY,sBAAiC,UAAU,CAAC,KAAK;QAC3D,IAAI,CAAC,MAAM,GAAG,mBAAmB,CAAC;IACpC,CAAC;IAED,kBAAkB;IAClB,KAAK,CAAC,IAAI,CAAC,OAAyB;QAClC,MAAM,IAAI,GAAgB;YACxB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE;YAC/B,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC;QAEF,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QAC3B,CAAC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QAEvC,MAAM,OAAO,GAA2B,EAAE,CAAC;QAC3C,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACtC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;IACxD,CAAC;CACF","sourcesContent":["import type { TransportRequest, TransportResponse, WaveTransport } from './transport.js';\n\n/**\n * Minimal fetch signature accepted by {@link FetchTransport}.\n *\n * Compatible with the global `fetch` in Node.js 22+ and Bun.\n */\nexport type FetchLike = (url: string, init: RequestInit) => Promise<Response>;\n\n/**\n * Default transport backed by the global Fetch API.\n *\n * The request body is transmitted verbatim so that the bytes signed by the SDK are the bytes sent\n * over the network.\n */\nexport class FetchTransport implements WaveTransport {\n readonly #fetch: FetchLike;\n\n /**\n * @param fetchImplementation - Fetch implementation to use; defaults to `globalThis.fetch`.\n */\n constructor(fetchImplementation: FetchLike = globalThis.fetch) {\n this.#fetch = fetchImplementation;\n }\n\n /** @inheritdoc */\n async send(request: TransportRequest): Promise<TransportResponse> {\n const init: RequestInit = {\n method: request.method,\n headers: { ...request.headers },\n signal: request.signal,\n };\n\n if (request.body !== undefined) {\n init.body = request.body;\n }\n\n const response = await this.#fetch(request.url, init);\n const bodyText = await response.text();\n\n const headers: Record<string, string> = {};\n response.headers.forEach((value, key) => {\n headers[key.toLowerCase()] = value;\n });\n\n return { status: response.status, headers, bodyText };\n }\n}\n"]}
@@ -0,0 +1,57 @@
1
+ import type { RequestOptions, RetryOptions, WaveLogger } from '../types/configuration.js';
2
+ import type { HttpRequest, OperationDefinition } from './http-request.js';
3
+ import type { WaveTransport } from './transport.js';
4
+ /** Default Wave API base URL. */
5
+ export declare const DEFAULT_BASE_URL = "https://api.wave.com";
6
+ /** Default request timeout in milliseconds. */
7
+ export declare const DEFAULT_TIMEOUT_MS = 30000;
8
+ /**
9
+ * Resolved HTTP client configuration.
10
+ */
11
+ export interface HttpClientConfig {
12
+ /** Normalized base URL without a trailing slash. */
13
+ readonly baseUrl: string;
14
+ /** Wave Business API key. */
15
+ readonly apiKey: string;
16
+ /** Optional signing secret. */
17
+ readonly signingSecret: string | undefined;
18
+ /** HTTP transport. */
19
+ readonly transport: WaveTransport;
20
+ /** Default request timeout in milliseconds. */
21
+ readonly timeoutMs: number;
22
+ /** Default retry policy, or `false` when disabled. */
23
+ readonly retry: RetryOptions | false;
24
+ /** Optional diagnostics logger. */
25
+ readonly logger: WaveLogger | undefined;
26
+ }
27
+ /**
28
+ * Shared request pipeline used by every API module.
29
+ *
30
+ * Responsibilities: URL and query construction, single body serialization, authentication, request
31
+ * signing, idempotency headers, timeouts, status validation, error mapping and safe retries.
32
+ */
33
+ export declare class HttpClient {
34
+ #private;
35
+ /**
36
+ * @param config - Resolved client configuration.
37
+ */
38
+ constructor(config: HttpClientConfig);
39
+ /**
40
+ * Executes a request that returns a JSON response body.
41
+ *
42
+ * @typeParam T - Expected response type.
43
+ * @param operation - Retry-safety metadata.
44
+ * @param request - Request definition.
45
+ * @param options - Per-request overrides.
46
+ */
47
+ request<T>(operation: OperationDefinition, request: HttpRequest, options?: RequestOptions): Promise<T>;
48
+ /**
49
+ * Executes a request whose documented response has no body.
50
+ *
51
+ * @param operation - Retry-safety metadata.
52
+ * @param request - Request definition.
53
+ * @param options - Per-request overrides.
54
+ */
55
+ requestVoid(operation: OperationDefinition, request: HttpRequest, options?: RequestOptions): Promise<void>;
56
+ }
57
+ //# sourceMappingURL=http-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../src/core/http/http-client.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAI1E,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEvE,iCAAiC;AACjC,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AAEvD,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AAIxC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,6BAA6B;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,sBAAsB;IACtB,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,sDAAsD;IACtD,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,KAAK,CAAC;IACrC,mCAAmC;IACnC,QAAQ,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC;CACzC;AAQD;;;;;GAKG;AACH,qBAAa,UAAU;;IAKrB;;OAEG;gBACS,MAAM,EAAE,gBAAgB;IAQpC;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,EACb,SAAS,EAAE,mBAAmB,EAC9B,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,CAAC,CAAC;IAUb;;;;;;OAMG;IACG,WAAW,CACf,SAAS,EAAE,mBAAmB,EAC9B,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC;CAiLjB"}