@tabai/sdk 0.2.0

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 (204) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +401 -0
  3. package/bin/tab.mjs +23 -0
  4. package/dist/_shared/abi.d.ts +150 -0
  5. package/dist/_shared/abi.d.ts.map +1 -0
  6. package/dist/_shared/abi.js +197 -0
  7. package/dist/_shared/abi.js.map +1 -0
  8. package/dist/_shared/chains.d.ts +118 -0
  9. package/dist/_shared/chains.d.ts.map +1 -0
  10. package/dist/_shared/chains.js +89 -0
  11. package/dist/_shared/chains.js.map +1 -0
  12. package/dist/_shared/hex.d.ts +35 -0
  13. package/dist/_shared/hex.d.ts.map +1 -0
  14. package/dist/_shared/hex.js +40 -0
  15. package/dist/_shared/hex.js.map +1 -0
  16. package/dist/_shared/index.d.ts +14 -0
  17. package/dist/_shared/index.d.ts.map +1 -0
  18. package/dist/_shared/index.js +14 -0
  19. package/dist/_shared/index.js.map +1 -0
  20. package/dist/_shared/keccak256.d.ts +29 -0
  21. package/dist/_shared/keccak256.d.ts.map +1 -0
  22. package/dist/_shared/keccak256.js +145 -0
  23. package/dist/_shared/keccak256.js.map +1 -0
  24. package/dist/_shared/result.d.ts +78 -0
  25. package/dist/_shared/result.d.ts.map +1 -0
  26. package/dist/_shared/result.js +61 -0
  27. package/dist/_shared/result.js.map +1 -0
  28. package/dist/cli/client-config.d.ts +155 -0
  29. package/dist/cli/client-config.d.ts.map +1 -0
  30. package/dist/cli/client-config.js +382 -0
  31. package/dist/cli/client-config.js.map +1 -0
  32. package/dist/cli/connect.d.ts +76 -0
  33. package/dist/cli/connect.d.ts.map +1 -0
  34. package/dist/cli/connect.js +158 -0
  35. package/dist/cli/connect.js.map +1 -0
  36. package/dist/cli/doctor.d.ts +57 -0
  37. package/dist/cli/doctor.d.ts.map +1 -0
  38. package/dist/cli/doctor.js +253 -0
  39. package/dist/cli/doctor.js.map +1 -0
  40. package/dist/cli/index.d.ts +13 -0
  41. package/dist/cli/index.d.ts.map +1 -0
  42. package/dist/cli/index.js +13 -0
  43. package/dist/cli/index.js.map +1 -0
  44. package/dist/cli/main.d.ts +45 -0
  45. package/dist/cli/main.d.ts.map +1 -0
  46. package/dist/cli/main.js +371 -0
  47. package/dist/cli/main.js.map +1 -0
  48. package/dist/errors.d.ts +29 -0
  49. package/dist/errors.d.ts.map +1 -0
  50. package/dist/errors.js +37 -0
  51. package/dist/errors.js.map +1 -0
  52. package/dist/http/client-402.d.ts +243 -0
  53. package/dist/http/client-402.d.ts.map +1 -0
  54. package/dist/http/client-402.js +515 -0
  55. package/dist/http/client-402.js.map +1 -0
  56. package/dist/http/headers.d.ts +173 -0
  57. package/dist/http/headers.d.ts.map +1 -0
  58. package/dist/http/headers.js +284 -0
  59. package/dist/http/headers.js.map +1 -0
  60. package/dist/http/index.d.ts +15 -0
  61. package/dist/http/index.d.ts.map +1 -0
  62. package/dist/http/index.js +15 -0
  63. package/dist/http/index.js.map +1 -0
  64. package/dist/http/metering-claim.d.ts +82 -0
  65. package/dist/http/metering-claim.d.ts.map +1 -0
  66. package/dist/http/metering-claim.js +99 -0
  67. package/dist/http/metering-claim.js.map +1 -0
  68. package/dist/index.d.ts +48 -0
  69. package/dist/index.d.ts.map +1 -0
  70. package/dist/index.js +51 -0
  71. package/dist/index.js.map +1 -0
  72. package/dist/logger.d.ts +40 -0
  73. package/dist/logger.d.ts.map +1 -0
  74. package/dist/logger.js +50 -0
  75. package/dist/logger.js.map +1 -0
  76. package/dist/mcp/assets.d.ts +31 -0
  77. package/dist/mcp/assets.d.ts.map +1 -0
  78. package/dist/mcp/assets.js +78 -0
  79. package/dist/mcp/assets.js.map +1 -0
  80. package/dist/mcp/index.d.ts +19 -0
  81. package/dist/mcp/index.d.ts.map +1 -0
  82. package/dist/mcp/index.js +19 -0
  83. package/dist/mcp/index.js.map +1 -0
  84. package/dist/mcp/json-schema.d.ts +86 -0
  85. package/dist/mcp/json-schema.d.ts.map +1 -0
  86. package/dist/mcp/json-schema.js +215 -0
  87. package/dist/mcp/json-schema.js.map +1 -0
  88. package/dist/mcp/json.d.ts +43 -0
  89. package/dist/mcp/json.d.ts.map +1 -0
  90. package/dist/mcp/json.js +69 -0
  91. package/dist/mcp/json.js.map +1 -0
  92. package/dist/mcp/registry-client.d.ts +88 -0
  93. package/dist/mcp/registry-client.d.ts.map +1 -0
  94. package/dist/mcp/registry-client.js +158 -0
  95. package/dist/mcp/registry-client.js.map +1 -0
  96. package/dist/mcp/schemas.d.ts +82 -0
  97. package/dist/mcp/schemas.d.ts.map +1 -0
  98. package/dist/mcp/schemas.js +493 -0
  99. package/dist/mcp/schemas.js.map +1 -0
  100. package/dist/mcp/server.d.ts +97 -0
  101. package/dist/mcp/server.d.ts.map +1 -0
  102. package/dist/mcp/server.js +285 -0
  103. package/dist/mcp/server.js.map +1 -0
  104. package/dist/mcp/settings.d.ts +90 -0
  105. package/dist/mcp/settings.d.ts.map +1 -0
  106. package/dist/mcp/settings.js +160 -0
  107. package/dist/mcp/settings.js.map +1 -0
  108. package/dist/mcp/toolset.d.ts +231 -0
  109. package/dist/mcp/toolset.d.ts.map +1 -0
  110. package/dist/mcp/toolset.js +760 -0
  111. package/dist/mcp/toolset.js.map +1 -0
  112. package/dist/payments/abi.d.ts +9 -0
  113. package/dist/payments/abi.d.ts.map +1 -0
  114. package/dist/payments/abi.js +17 -0
  115. package/dist/payments/abi.js.map +1 -0
  116. package/dist/payments/config.d.ts +199 -0
  117. package/dist/payments/config.d.ts.map +1 -0
  118. package/dist/payments/config.js +259 -0
  119. package/dist/payments/config.js.map +1 -0
  120. package/dist/payments/index.d.ts +13 -0
  121. package/dist/payments/index.d.ts.map +1 -0
  122. package/dist/payments/index.js +13 -0
  123. package/dist/payments/index.js.map +1 -0
  124. package/dist/payments/kuru.d.ts +191 -0
  125. package/dist/payments/kuru.d.ts.map +1 -0
  126. package/dist/payments/kuru.js +377 -0
  127. package/dist/payments/kuru.js.map +1 -0
  128. package/dist/payments/monad.d.ts +69 -0
  129. package/dist/payments/monad.d.ts.map +1 -0
  130. package/dist/payments/monad.js +306 -0
  131. package/dist/payments/monad.js.map +1 -0
  132. package/dist/payments/permit2.d.ts +118 -0
  133. package/dist/payments/permit2.d.ts.map +1 -0
  134. package/dist/payments/permit2.js +366 -0
  135. package/dist/payments/permit2.js.map +1 -0
  136. package/dist/payments/registry.d.ts +119 -0
  137. package/dist/payments/registry.d.ts.map +1 -0
  138. package/dist/payments/registry.js +199 -0
  139. package/dist/payments/registry.js.map +1 -0
  140. package/dist/payments/strategy.d.ts +80 -0
  141. package/dist/payments/strategy.d.ts.map +1 -0
  142. package/dist/payments/strategy.js +103 -0
  143. package/dist/payments/strategy.js.map +1 -0
  144. package/dist/proxy/hooks.d.ts +90 -0
  145. package/dist/proxy/hooks.d.ts.map +1 -0
  146. package/dist/proxy/hooks.js +35 -0
  147. package/dist/proxy/hooks.js.map +1 -0
  148. package/dist/proxy/index.d.ts +9 -0
  149. package/dist/proxy/index.d.ts.map +1 -0
  150. package/dist/proxy/index.js +9 -0
  151. package/dist/proxy/index.js.map +1 -0
  152. package/dist/proxy/proxy.d.ts +156 -0
  153. package/dist/proxy/proxy.d.ts.map +1 -0
  154. package/dist/proxy/proxy.js +366 -0
  155. package/dist/proxy/proxy.js.map +1 -0
  156. package/dist/server/adapters/express.d.ts +89 -0
  157. package/dist/server/adapters/express.d.ts.map +1 -0
  158. package/dist/server/adapters/express.js +215 -0
  159. package/dist/server/adapters/express.js.map +1 -0
  160. package/dist/server/adapters/hono.d.ts +52 -0
  161. package/dist/server/adapters/hono.d.ts.map +1 -0
  162. package/dist/server/adapters/hono.js +61 -0
  163. package/dist/server/adapters/hono.js.map +1 -0
  164. package/dist/server/adapters/next.d.ts +52 -0
  165. package/dist/server/adapters/next.d.ts.map +1 -0
  166. package/dist/server/adapters/next.js +56 -0
  167. package/dist/server/adapters/next.js.map +1 -0
  168. package/dist/server/index.d.ts +30 -0
  169. package/dist/server/index.d.ts.map +1 -0
  170. package/dist/server/index.js +30 -0
  171. package/dist/server/index.js.map +1 -0
  172. package/dist/server/metering.d.ts +209 -0
  173. package/dist/server/metering.d.ts.map +1 -0
  174. package/dist/server/metering.js +365 -0
  175. package/dist/server/metering.js.map +1 -0
  176. package/dist/server/post-paid.d.ts +355 -0
  177. package/dist/server/post-paid.d.ts.map +1 -0
  178. package/dist/server/post-paid.js +512 -0
  179. package/dist/server/post-paid.js.map +1 -0
  180. package/dist/x402/client.d.ts +203 -0
  181. package/dist/x402/client.d.ts.map +1 -0
  182. package/dist/x402/client.js +337 -0
  183. package/dist/x402/client.js.map +1 -0
  184. package/dist/x402/hub.d.ts +79 -0
  185. package/dist/x402/hub.d.ts.map +1 -0
  186. package/dist/x402/hub.js +164 -0
  187. package/dist/x402/hub.js.map +1 -0
  188. package/dist/x402/index.d.ts +27 -0
  189. package/dist/x402/index.d.ts.map +1 -0
  190. package/dist/x402/index.js +27 -0
  191. package/dist/x402/index.js.map +1 -0
  192. package/dist/x402/proxy.d.ts +162 -0
  193. package/dist/x402/proxy.d.ts.map +1 -0
  194. package/dist/x402/proxy.js +198 -0
  195. package/dist/x402/proxy.js.map +1 -0
  196. package/dist/x402/server.d.ts +162 -0
  197. package/dist/x402/server.d.ts.map +1 -0
  198. package/dist/x402/server.js +306 -0
  199. package/dist/x402/server.js.map +1 -0
  200. package/dist/x402/wire.d.ts +104 -0
  201. package/dist/x402/wire.d.ts.map +1 -0
  202. package/dist/x402/wire.js +265 -0
  203. package/dist/x402/wire.js.map +1 -0
  204. package/package.json +61 -0
@@ -0,0 +1,243 @@
1
+ /**
2
+ * The HTTP 402 client wrapper (R23.2).
3
+ *
4
+ * ## Tab is post-paid, so a 402 is not a demand for prepayment
5
+ *
6
+ * This is the one thing to understand about this file. A `402` from a Tab Service
7
+ * does not mean "pay now and I will then serve you". Work is delivered first and
8
+ * metered after (R23.3); the charge lands on the Open Tab as an accrual, and the
9
+ * Agent settles later, asynchronously, on Ethereum, with its own keys, through
10
+ * the payment-strategy seam. So:
11
+ *
12
+ * - the **normal** metered response is a `200` carrying the charge block, and
13
+ * this client records the accrual and hands the response straight back;
14
+ * - a `402` is issued on `LimitExceeded` alone, the Agent has no headroom left
15
+ * for that Asset. It is a credit decision, not an invoice;
16
+ * - on a `402` the client records what the Service says the call requires, sends
17
+ * the original request **once** more carrying `Tab-Agent` and
18
+ * `Tab-Authorisation`, and stops. Not a retry loop, and not a backoff.
19
+ *
20
+ * **Nothing in this file settles.** There is no signer here, no strategy call, no
21
+ * transaction, and no allowance. A settlement step inside the 402 handler would
22
+ * be the prepay model Tab exists to replace. Settling is the Agent's decision,
23
+ * taken through `tab_settle`, not something a transport does on its own.
24
+ *
25
+ * ## Why a repeat at all, if the charge already landed
26
+ *
27
+ * Two cases, and the repeat serves both. On the ordinary path the first attempt
28
+ * may have reached a Service that could not identify the Agent, a caller that
29
+ * built its own headers or a proxy that dropped them, and the repeat carries the
30
+ * identity headers explicitly. On the `LimitExceeded` path a Settlement may have
31
+ * landed between the two attempts: `TabSettlement` restores headroom in the
32
+ * same block it moves the Asset (R15.1), so the second attempt is genuinely a
33
+ * different question rather than the same one asked louder. Exactly one repeat,
34
+ * because a second `402` means the
35
+ * headroom is not coming back within the life of this request, and looping would
36
+ * only meter the Service's rejection path.
37
+ *
38
+ * ## x402, the one exception, and why it is not settlement
39
+ *
40
+ * A `402` from a Tab Service that also carries `PAYMENT-REQUIRED` is a credit
41
+ * refusal with an offer attached: pay for this one call, prepaid, through x402.
42
+ * When the caller configured an x402 signer, and only then, a `402` that still
43
+ * stands after the repeat is answered by signing that offer and sending the
44
+ * request once more with `PAYMENT-SIGNATURE`. That is a prepayment for one
45
+ * call and touches no tab. It is not a Settlement, it restores no headroom,
46
+ * and it is off unless a signer was given, because an Agent that would rather
47
+ * settle than prepay should get the `LIMIT_EXCEEDED` it can act on.
48
+ *
49
+ * ## Zero-throw, everywhere
50
+ *
51
+ * Every fallible call returns a `Result` (R21.5, design section 13.1). A transport
52
+ * failure, a response object that is not one, a malformed header, a partial charge
53
+ * block, an unreplayable request body, a `402` that stands after the repeat: all
54
+ * of them are `err` values carrying an error category. Nothing here throws,
55
+ * including the consumer's own `onCharge` callback, which is called inside a guard
56
+ * so a consumer's bug cannot fail a request that succeeded.
57
+ *
58
+ * Requirements: 23.2, 21.5
59
+ */
60
+ import { type Address, type Bytes32, type Result } from "../_shared/index.js";
61
+ import { type Logger } from "../logger.js";
62
+ import { type ChargedAsset, type HeaderReader, type HeaderRecord } from "./headers.js";
63
+ import { type X402PaymentReceipt, type X402SignerSource } from "../x402/client.js";
64
+ /**
65
+ * What the caller may put on a request.
66
+ *
67
+ * A near-mirror of the standard `RequestInit` rather than an import of it, because
68
+ * `@tabai/sdk` compiles against the ES2023 library alone and must not acquire a DOM
69
+ * or `undici` type dependency to describe a request. The index signature carries
70
+ * every option this client does not read, `signal`, `redirect`, `cache`,
71
+ * `keepalive`, a dispatcher, through to the host `fetch` untouched.
72
+ */
73
+ export interface Tab402RequestInit {
74
+ readonly method?: string;
75
+ /** A plain object, a `Headers`, or an array of pairs. Merged with the Tab headers. */
76
+ readonly headers?: HeaderReader | HeaderRecord | readonly (readonly [string, string])[];
77
+ readonly body?: unknown;
78
+ readonly [option: string]: unknown;
79
+ }
80
+ /** The request this client hands to its `fetch`: the caller's options, with headers resolved. */
81
+ export interface Tab402FetchInit {
82
+ readonly headers: Readonly<Record<string, string>>;
83
+ readonly [option: string]: unknown;
84
+ }
85
+ /**
86
+ * The little of a response this client reads.
87
+ *
88
+ * Structural for the same reason as {@link Tab402RequestInit}, and loose on
89
+ * purpose: `body` and `bodyUsed` are `unknown` and duck-checked at runtime, so a
90
+ * real `Response` from any host satisfies this without the two type worlds having
91
+ * to agree. Widen it through the type parameter of {@link createTab402Client} when
92
+ * the caller supplies a typed `fetch`, and `client.fetch` then returns
93
+ * `Result<Response>` with every method of the real thing intact.
94
+ */
95
+ export interface Tab402Response {
96
+ readonly status: number;
97
+ readonly headers: HeaderReader | HeaderRecord;
98
+ readonly body?: unknown;
99
+ readonly bodyUsed?: unknown;
100
+ }
101
+ /** The `fetch` this client calls. The host's global `fetch` is the default. */
102
+ export type Tab402Fetch<Res extends Tab402Response> = (url: string, init: Tab402FetchInit) => Promise<Res>;
103
+ /** Whether the charge the Service reported landed on the Open Tab. */
104
+ export type ChargeOutcome =
105
+ /** The call was served and metered. The Open Tab now carries this amount. */
106
+ "accrued"
107
+ /**
108
+ * `LimitExceeded`: the amount is what the call *requires* and it did not land,
109
+ * because the Agent's headroom for the Asset does not cover it.
110
+ */
111
+ | "declined";
112
+ /** One charge block, read off one response, in the client's own terms. */
113
+ export interface ChargeAccrued {
114
+ /** The Agent this call was metered against. */
115
+ readonly agent: Address;
116
+ /** The absolute URL that was called. */
117
+ readonly url: string;
118
+ /** The HTTP status the charge block arrived on. */
119
+ readonly status: number;
120
+ readonly outcome: ChargeOutcome;
121
+ /** Integer Asset base units: charged on `accrued`, required on `declined`. */
122
+ readonly amount: bigint;
123
+ readonly asset: ChargedAsset;
124
+ readonly serviceId: Bytes32;
125
+ readonly tool: Bytes32;
126
+ /** The Open Tab the Service reported after this call. */
127
+ readonly openTab: bigint;
128
+ /** The headroom the Service reported for this Agent and Asset. */
129
+ readonly headroom: bigint;
130
+ readonly authorisation?: Bytes32;
131
+ /**
132
+ * The strategy the Agent intends to settle this Asset through, if the client was
133
+ * given one. Carried for the later, separate settlement path and used by nothing
134
+ * here.
135
+ */
136
+ readonly strategyId?: string;
137
+ /** `1` for the original request, `2` for the repeat. */
138
+ readonly attempt: 1 | 2;
139
+ /** Milliseconds since the epoch, when the header was read. */
140
+ readonly observedAt: number;
141
+ }
142
+ /** What this client believes about one Asset's tab, from headers alone. */
143
+ export interface TabSnapshot {
144
+ readonly asset: ChargedAsset;
145
+ /** The Open Tab most recently reported for this Asset. */
146
+ readonly openTab: bigint;
147
+ /** The headroom most recently reported for this Asset. */
148
+ readonly headroom: bigint;
149
+ /** Sum of every charge that landed, across the client's lifetime. */
150
+ readonly accrued: bigint;
151
+ /** Sum of every charge refused for want of headroom. Never part of {@link accrued}. */
152
+ readonly declined: bigint;
153
+ readonly accruedCount: number;
154
+ readonly declinedCount: number;
155
+ readonly observedAt: number;
156
+ }
157
+ export interface Tab402ClientOptions<Res extends Tab402Response = Tab402Response> {
158
+ /** Absolute base URL. A relative path handed to `fetch` resolves against it. */
159
+ readonly baseUrl: string;
160
+ /** The Agent's Monad address, sent as `Tab-Agent`. */
161
+ readonly agent: Address;
162
+ /** The authKey to meter against, sent as `Tab-Authorisation` when supplied. */
163
+ readonly authorisation?: Bytes32;
164
+ /** Called for every charge block read, on the 200 path and the 402 path alike. */
165
+ readonly onCharge?: (charge: ChargeAccrued) => void;
166
+ /**
167
+ * `1` repeats the original request once after a `402`; `0` repeats nothing.
168
+ *
169
+ * Typed as the two values it can hold rather than as a `number`, because "repeat
170
+ * once" is the semantics rather than a default: a caller who wrote `5` would be
171
+ * asking for a retry loop against a credit decision, and a number that silently
172
+ * clamped to `1` would leave them believing they had one.
173
+ */
174
+ readonly maxRetries?: 0 | 1;
175
+ /** Recorded on each accrual for the later settlement path. Never used to settle here. */
176
+ readonly strategyId?: string;
177
+ /**
178
+ * The prepaid fallback. With a signer here, a `402` that still stands after
179
+ * the repeat and carries `PAYMENT-REQUIRED` is paid through x402 and the
180
+ * request sent once more. Without one, that `402` is the `LIMIT_EXCEEDED`
181
+ * it always was. See the module note.
182
+ */
183
+ readonly x402?: Tab402X402Options;
184
+ /** Defaults to the host's global `fetch`. */
185
+ readonly fetchImpl?: Tab402Fetch<Res>;
186
+ readonly logger?: Logger;
187
+ /** Injectable clock, so `observedAt` is testable. Defaults to `Date.now`. */
188
+ readonly now?: () => number;
189
+ /**
190
+ * How many accruals {@link Tab402Client.charges} keeps. Defaults to 128.
191
+ *
192
+ * Trimming the list never touches the totals in {@link TabSnapshot}, which are
193
+ * running sums, so a long-lived client keeps exact accounting on bounded memory.
194
+ */
195
+ readonly maxChargeHistory?: number;
196
+ }
197
+ /** How the client pays when it pays. */
198
+ export interface Tab402X402Options {
199
+ /**
200
+ * The signer, or a factory called only when an offer is about to be taken. A
201
+ * factory returning `undefined` declines, and the `402` stands as the credit
202
+ * decision it was.
203
+ */
204
+ readonly signer: X402SignerSource;
205
+ /** Sign only on this chain. Defaults to any `eip155:*` the Service offers. */
206
+ readonly chainId?: bigint;
207
+ /** Sign only for this token. Defaults to any the Service offers. */
208
+ readonly asset?: Address;
209
+ /** Refuse an offer above this many atomic units. Omitted sets no ceiling. */
210
+ readonly maxAmount?: bigint;
211
+ readonly onPayment?: (receipt: X402PaymentReceipt) => void;
212
+ }
213
+ export interface Tab402Client<Res extends Tab402Response = Tab402Response> {
214
+ /**
215
+ * Sends a request, records whatever charge the response reports, and repeats
216
+ * once on a `402`.
217
+ *
218
+ * `input` may be absolute or relative to `baseUrl`. Returns the response the
219
+ * Service produced, this client never rewrites a status, so a `500` from the
220
+ * Service comes back as `ok(response)` for the caller to read. The `err` cases
221
+ * are this client's own: a bad URL, a malformed charge block, a transport
222
+ * failure, or a `402` that still stands after the repeat.
223
+ */
224
+ fetch(input: string, init?: Tab402RequestInit): Promise<Result<Res>>;
225
+ /** Every charge block read, oldest first, up to `maxChargeHistory`. */
226
+ charges(): readonly ChargeAccrued[];
227
+ /** One snapshot per Asset seen, in first-seen order. */
228
+ tabs(): readonly TabSnapshot[];
229
+ tabOf(asset: ChargedAsset): TabSnapshot | undefined;
230
+ /** Every x402 payment made, oldest first. Empty unless `x402` was configured. */
231
+ payments(): readonly X402PaymentReceipt[];
232
+ }
233
+ /**
234
+ * Builds the client.
235
+ *
236
+ * Construction is total: it cannot fail and returns a client, not a `Result`.
237
+ * Every fallible thing, an unusable `baseUrl`, an `agent` that is not an
238
+ * address, a host with no `fetch`, is reported by the call that needs it, which
239
+ * is the only place a caller can act on it. This matches
240
+ * `createEthereumUsdcStrategy` and keeps the SDK's two factories the same shape.
241
+ */
242
+ export declare function createTab402Client<Res extends Tab402Response = Tab402Response>(options: Tab402ClientOptions<Res>): Tab402Client<Res>;
243
+ //# sourceMappingURL=client-402.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-402.d.ts","sourceRoot":"","sources":["../../src/http/client-402.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,OAAO,EAA2C,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACjH,OAAO,EAAiB,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAML,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,YAAY,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAuC,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGxH;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;IACxF,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC;AAED,iGAAiG;AACjG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;CACpC;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EA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