@askverdict/sdk 0.1.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.
package/dist/client.js ADDED
@@ -0,0 +1,503 @@
1
+ // @askverdict/sdk — AskVerdictClient
2
+ // HTTP client for the AskVerdict REST API.
3
+ //
4
+ // Required peer: none (uses native fetch — available in Node 18+, Bun, browsers)
5
+ import { AskVerdictError, } from "./types.js";
6
+ const DEFAULT_BASE_URL = "https://api.askverdict.ai";
7
+ export class AskVerdictClient {
8
+ baseUrl;
9
+ headers;
10
+ constructor(config = {}) {
11
+ this.baseUrl = (config.baseUrl ?? DEFAULT_BASE_URL).replace(/\/$/, "");
12
+ this.headers = {
13
+ "Content-Type": "application/json",
14
+ Accept: "application/json",
15
+ };
16
+ if (config.apiKey) {
17
+ this.headers["X-Api-Key"] = config.apiKey;
18
+ }
19
+ if (config.authToken) {
20
+ this.headers["Authorization"] = `Bearer ${config.authToken}`;
21
+ }
22
+ }
23
+ // ── Verdicts (Public API v1) ──────────────────────────────────────────────
24
+ /**
25
+ * Create a new verdict (debate). Returns the verdict ID and SSE stream URL.
26
+ * The verdict runs asynchronously — use `streamVerdict` to follow progress.
27
+ */
28
+ async createVerdict(params) {
29
+ const raw = await this.request("POST", "/v1/verdicts", params);
30
+ // Provide backward-compatible debateId alias
31
+ return { ...raw, debateId: raw.id };
32
+ }
33
+ /**
34
+ * Get a single verdict by ID (includes verdict data when completed).
35
+ */
36
+ async getVerdict(id) {
37
+ return this.request("GET", `/v1/verdicts/${encodeURIComponent(id)}`);
38
+ }
39
+ /**
40
+ * List verdicts for the authenticated user.
41
+ */
42
+ async listVerdicts(params = {}) {
43
+ const qs = buildQueryString({
44
+ page: params.page,
45
+ limit: params.pageSize ?? params.limit,
46
+ status: params.status,
47
+ });
48
+ const raw = await this.request("GET", `/v1/verdicts${qs}`);
49
+ // v1 returns { verdicts: [...] }, normalize to { debates: [...] }
50
+ const items = (raw["verdicts"] ?? raw["debates"] ?? []);
51
+ return {
52
+ debates: items,
53
+ total: raw["total"],
54
+ page: raw["page"],
55
+ pageSize: raw["pageSize"],
56
+ hasMore: raw["hasMore"],
57
+ };
58
+ }
59
+ /**
60
+ * Delete a verdict by ID.
61
+ */
62
+ async deleteVerdict(id) {
63
+ await this.request("DELETE", `/v1/verdicts/${encodeURIComponent(id)}`);
64
+ }
65
+ // ── Aliases (backward compatibility) ──────────────────────────────────────
66
+ /** @deprecated Use `createVerdict` */
67
+ async createDebate(params) {
68
+ return this.createVerdict(params);
69
+ }
70
+ /** @deprecated Use `getVerdict` */
71
+ async getDebate(id) {
72
+ const res = await this.getVerdict(id);
73
+ return res.verdict;
74
+ }
75
+ /** @deprecated Use `listVerdicts` */
76
+ async listDebates(params = {}) {
77
+ return this.listVerdicts(params);
78
+ }
79
+ /** @deprecated Use `deleteVerdict` */
80
+ async deleteDebate(id) {
81
+ return this.deleteVerdict(id);
82
+ }
83
+ // ── Streaming ──────────────────────────────────────────────────────────────
84
+ /**
85
+ * Stream SSE events for a running or completed verdict.
86
+ *
87
+ * Usage:
88
+ * ```ts
89
+ * for await (const event of client.streamVerdict(id)) {
90
+ * console.log(event.type, event.data);
91
+ * if (event.type === "stream:end") break;
92
+ * }
93
+ * ```
94
+ */
95
+ async *streamVerdict(id) {
96
+ const url = `${this.baseUrl}/v1/verdicts/${encodeURIComponent(id)}/stream`;
97
+ // Build headers without Content-Type for SSE
98
+ const streamHeaders = { ...this.headers };
99
+ streamHeaders["Accept"] = "text/event-stream";
100
+ delete streamHeaders["Content-Type"];
101
+ let response;
102
+ try {
103
+ response = await fetch(url, {
104
+ method: "GET",
105
+ headers: streamHeaders,
106
+ });
107
+ }
108
+ catch (err) {
109
+ throw new AskVerdictError({
110
+ code: "NETWORK_ERROR",
111
+ message: err instanceof Error ? err.message : "Network request failed",
112
+ });
113
+ }
114
+ if (!response.ok) {
115
+ await this.throwFromResponse(response);
116
+ }
117
+ if (!response.body) {
118
+ throw new AskVerdictError({
119
+ code: "STREAM_ERROR",
120
+ message: "Response body is empty",
121
+ status: response.status,
122
+ });
123
+ }
124
+ const reader = response.body.getReader();
125
+ const decoder = new TextDecoder();
126
+ let buffer = "";
127
+ try {
128
+ while (true) {
129
+ const { done, value } = await reader.read();
130
+ if (done)
131
+ break;
132
+ buffer += decoder.decode(value, { stream: true });
133
+ // SSE messages are separated by double newlines
134
+ const parts = buffer.split("\n\n");
135
+ // Last part may be incomplete — keep it in the buffer
136
+ buffer = parts.pop() ?? "";
137
+ for (const part of parts) {
138
+ const event = parseSseMessage(part);
139
+ if (event !== null) {
140
+ yield event;
141
+ }
142
+ }
143
+ }
144
+ // Flush remaining buffer
145
+ if (buffer.trim()) {
146
+ const event = parseSseMessage(buffer);
147
+ if (event !== null) {
148
+ yield event;
149
+ }
150
+ }
151
+ }
152
+ finally {
153
+ reader.releaseLock();
154
+ }
155
+ }
156
+ /** @deprecated Use `streamVerdict` */
157
+ async *streamDebate(id) {
158
+ yield* this.streamVerdict(id);
159
+ }
160
+ // ── User & Usage (v1) ───────────────────────────────────────────────────
161
+ /**
162
+ * Get the authenticated user's basic profile via API key.
163
+ */
164
+ async getApiUser() {
165
+ return this.request("GET", "/v1/me");
166
+ }
167
+ /**
168
+ * Get API key usage stats for the current billing period.
169
+ */
170
+ async getApiUsage() {
171
+ return this.request("GET", "/v1/usage");
172
+ }
173
+ // ── Votes ──────────────────────────────────────────────────────────────────
174
+ /**
175
+ * Get vote tallies for all claims in a debate.
176
+ * If authenticated, each tally includes the caller's own vote.
177
+ */
178
+ async getVotes(debateId) {
179
+ const res = await this.request("GET", `/api/debates/${encodeURIComponent(debateId)}/votes`);
180
+ return res.votes;
181
+ }
182
+ /**
183
+ * Cast or update a vote on a claim.
184
+ * Pass "neutral" to remove an existing vote.
185
+ */
186
+ async castVote(debateId, claimId, vote) {
187
+ await this.request("POST", `/api/debates/${encodeURIComponent(debateId)}/votes`, { claimId, vote });
188
+ }
189
+ /**
190
+ * Remove the authenticated user's vote on a specific claim.
191
+ */
192
+ async removeVote(debateId, claimId) {
193
+ await this.request("DELETE", `/api/debates/${encodeURIComponent(debateId)}/votes/${encodeURIComponent(claimId)}`);
194
+ }
195
+ // ── Polls ──────────────────────────────────────────────────────────────────
196
+ /**
197
+ * Get all polls for a debate, with tallies and (if authenticated) the
198
+ * caller's own vote per poll.
199
+ */
200
+ async getPolls(debateId) {
201
+ const res = await this.request("GET", `/api/debates/${encodeURIComponent(debateId)}/polls`);
202
+ return res.polls;
203
+ }
204
+ /**
205
+ * Create a poll on a debate (debate owner only).
206
+ */
207
+ async createPoll(debateId, question, options) {
208
+ const res = await this.request("POST", `/api/debates/${encodeURIComponent(debateId)}/polls`, { question, options });
209
+ return res.poll;
210
+ }
211
+ /**
212
+ * Vote on a poll option.
213
+ */
214
+ async votePoll(debateId, pollId, optionId) {
215
+ await this.request("POST", `/api/debates/${encodeURIComponent(debateId)}/polls/${encodeURIComponent(pollId)}/vote`, { optionId });
216
+ }
217
+ /**
218
+ * Close a poll (debate owner only).
219
+ */
220
+ async closePoll(debateId, pollId) {
221
+ await this.request("PATCH", `/api/debates/${encodeURIComponent(debateId)}/polls/${encodeURIComponent(pollId)}`);
222
+ }
223
+ /**
224
+ * Delete a poll (debate owner only).
225
+ */
226
+ async deletePoll(debateId, pollId) {
227
+ await this.request("DELETE", `/api/debates/${encodeURIComponent(debateId)}/polls/${encodeURIComponent(pollId)}`);
228
+ }
229
+ // ── Users ──────────────────────────────────────────────────────────────────
230
+ /**
231
+ * Get the authenticated user's profile.
232
+ */
233
+ async getMe() {
234
+ const res = await this.request("GET", "/api/users/me");
235
+ return res.user;
236
+ }
237
+ /**
238
+ * Get usage stats for the authenticated user.
239
+ */
240
+ async getUsage() {
241
+ return this.request("GET", "/api/users/me/usage");
242
+ }
243
+ // ── Billing ─────────────────────────────────────────────────────────────────
244
+ /**
245
+ * Get the authenticated user's credit balance and plan.
246
+ */
247
+ async getBalance() {
248
+ return this.request("GET", "/api/billing/balance");
249
+ }
250
+ /**
251
+ * Create a Stripe checkout session for a Starter or Pro subscription.
252
+ * Returns a URL to redirect the user to Stripe's hosted checkout page.
253
+ */
254
+ async createSubscriptionCheckout(plan, interval) {
255
+ return this.request("POST", "/api/billing/checkout-session-subscription", {
256
+ plan,
257
+ interval,
258
+ });
259
+ }
260
+ /**
261
+ * Create a Stripe checkout session for a BYOK subscription.
262
+ */
263
+ async createByokCheckout(interval = "monthly") {
264
+ return this.request("POST", "/api/billing/checkout-session", {
265
+ interval,
266
+ });
267
+ }
268
+ /**
269
+ * Create a Stripe checkout session for a BYOK Pro subscription.
270
+ */
271
+ async createByokProCheckout(interval = "monthly") {
272
+ return this.request("POST", "/api/billing/checkout-session-pro", {
273
+ interval,
274
+ });
275
+ }
276
+ /**
277
+ * Create a Stripe checkout session for a one-time credit pack purchase.
278
+ */
279
+ async createCreditCheckout(pack) {
280
+ return this.request("POST", "/api/billing/credit-checkout", { pack });
281
+ }
282
+ /**
283
+ * Create a Stripe Customer Portal session for subscription management.
284
+ * The returned URL redirects to Stripe's hosted billing portal.
285
+ */
286
+ async createPortalSession() {
287
+ return this.request("POST", "/api/billing/portal-session");
288
+ }
289
+ // ── Stats ───────────────────────────────────────────────────────────────────
290
+ /**
291
+ * Get dashboard statistics, optionally scoped to a workspace.
292
+ */
293
+ async getDashboard(workspaceId) {
294
+ const qs = workspaceId ? `?workspaceId=${encodeURIComponent(workspaceId)}` : "";
295
+ const res = await this.request("GET", `/api/stats/dashboard${qs}`);
296
+ return res.stats;
297
+ }
298
+ // ── Search ──────────────────────────────────────────────────────────────────
299
+ /**
300
+ * Search debates or verdicts.
301
+ */
302
+ async search(query, opts = {}) {
303
+ const qs = buildQueryString({
304
+ q: query,
305
+ type: opts.type,
306
+ sort: opts.sort,
307
+ page: opts.page,
308
+ limit: opts.limit,
309
+ status: opts.status,
310
+ mode: opts.mode,
311
+ });
312
+ return this.request("GET", `/api/search${qs}`);
313
+ }
314
+ // ── Outcomes ────────────────────────────────────────────────────────────────
315
+ /**
316
+ * Get the recorded outcome for a debate.
317
+ */
318
+ async getOutcome(debateId) {
319
+ const res = await this.request("GET", `/api/debates/${encodeURIComponent(debateId)}/outcome`);
320
+ return res.outcome;
321
+ }
322
+ /**
323
+ * Submit an outcome for a completed debate.
324
+ */
325
+ async submitOutcome(debateId, params) {
326
+ const res = await this.request("POST", `/api/debates/${encodeURIComponent(debateId)}/outcome`, params);
327
+ return res.outcome;
328
+ }
329
+ /**
330
+ * List debates with completed verdicts awaiting outcome recording.
331
+ */
332
+ async getPendingOutcomes() {
333
+ const res = await this.request("GET", "/api/outcomes/pending");
334
+ return res.outcomes;
335
+ }
336
+ /**
337
+ * Get outcome history, optionally filtered by domain.
338
+ */
339
+ async getOutcomeHistory(opts = {}) {
340
+ const qs = buildQueryString(opts);
341
+ const res = await this.request("GET", `/api/outcomes/history${qs}`);
342
+ return res.outcomes;
343
+ }
344
+ // ── Scores ──────────────────────────────────────────────────────────────────
345
+ /**
346
+ * Get the authenticated user's decision accuracy score.
347
+ */
348
+ async getScore() {
349
+ const res = await this.request("GET", "/api/scores/me");
350
+ return res.score;
351
+ }
352
+ // ── Streaks ─────────────────────────────────────────────────────────────────
353
+ /**
354
+ * Get the authenticated user's debate streak information.
355
+ */
356
+ async getStreak() {
357
+ return this.request("GET", "/api/streaks");
358
+ }
359
+ // ── Health ─────────────────────────────────────────────────────────────────
360
+ /**
361
+ * Check API health. No authentication required.
362
+ */
363
+ async health() {
364
+ return this.request("GET", "/v1/health");
365
+ }
366
+ // ── Private helpers ────────────────────────────────────────────────────────
367
+ async request(method, path, body) {
368
+ const url = `${this.baseUrl}${path}`;
369
+ const init = {
370
+ method,
371
+ headers: this.headers,
372
+ };
373
+ if (body !== undefined) {
374
+ init.body = JSON.stringify(body);
375
+ }
376
+ let response;
377
+ try {
378
+ response = await fetch(url, init);
379
+ }
380
+ catch (err) {
381
+ throw new AskVerdictError({
382
+ code: "NETWORK_ERROR",
383
+ message: err instanceof Error ? err.message : "Network request failed",
384
+ });
385
+ }
386
+ if (!response.ok) {
387
+ await this.throwFromResponse(response);
388
+ }
389
+ // 204 No Content
390
+ if (response.status === 204) {
391
+ return undefined;
392
+ }
393
+ let json;
394
+ try {
395
+ json = await response.json();
396
+ }
397
+ catch {
398
+ throw new AskVerdictError({
399
+ code: "PARSE_ERROR",
400
+ message: "Failed to parse API response as JSON",
401
+ status: response.status,
402
+ });
403
+ }
404
+ return json;
405
+ }
406
+ async throwFromResponse(response) {
407
+ let body;
408
+ try {
409
+ body = await response.json();
410
+ }
411
+ catch {
412
+ throw new AskVerdictError({
413
+ code: "HTTP_ERROR",
414
+ message: `HTTP ${response.status} ${response.statusText}`,
415
+ status: response.status,
416
+ });
417
+ }
418
+ // Standard AskVerdict API error shape: { error: { code, message, details? } }
419
+ if (body !== null &&
420
+ typeof body === "object" &&
421
+ "error" in body &&
422
+ body.error !== null &&
423
+ typeof body.error === "object") {
424
+ const err = body.error;
425
+ throw new AskVerdictError({
426
+ code: typeof err["code"] === "string" ? err["code"] : "API_ERROR",
427
+ message: typeof err["message"] === "string"
428
+ ? err["message"]
429
+ : `HTTP ${response.status}`,
430
+ status: response.status,
431
+ details: err["details"] !== undefined &&
432
+ typeof err["details"] === "object" &&
433
+ err["details"] !== null
434
+ ? err["details"]
435
+ : undefined,
436
+ });
437
+ }
438
+ throw new AskVerdictError({
439
+ code: "HTTP_ERROR",
440
+ message: `HTTP ${response.status} ${response.statusText}`,
441
+ status: response.status,
442
+ });
443
+ }
444
+ }
445
+ // ── Helpers ────────────────────────────────────────────────────────────────────
446
+ function buildQueryString(params) {
447
+ const entries = Object.entries(params).filter(([, v]) => v !== undefined && v !== null);
448
+ if (entries.length === 0)
449
+ return "";
450
+ const qs = entries
451
+ .map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(String(v))}`)
452
+ .join("&");
453
+ return `?${qs}`;
454
+ }
455
+ /**
456
+ * Parse a single SSE message block into a StreamEvent.
457
+ * Returns null if the message is a comment or has no data.
458
+ */
459
+ function parseSseMessage(raw) {
460
+ const lines = raw.split("\n");
461
+ let id = "";
462
+ let eventType = "message";
463
+ let dataLines = [];
464
+ for (const line of lines) {
465
+ if (line.startsWith(":")) {
466
+ // SSE comment — skip
467
+ continue;
468
+ }
469
+ const colonIdx = line.indexOf(":");
470
+ if (colonIdx === -1)
471
+ continue;
472
+ const field = line.slice(0, colonIdx).trim();
473
+ const value = line.slice(colonIdx + 1).trimStart();
474
+ switch (field) {
475
+ case "id":
476
+ id = value;
477
+ break;
478
+ case "event":
479
+ eventType = value;
480
+ break;
481
+ case "data":
482
+ dataLines.push(value);
483
+ break;
484
+ }
485
+ }
486
+ if (dataLines.length === 0)
487
+ return null;
488
+ const rawData = dataLines.join("\n");
489
+ let parsedData = rawData;
490
+ try {
491
+ parsedData = JSON.parse(rawData);
492
+ }
493
+ catch {
494
+ // Keep as string if not valid JSON
495
+ }
496
+ return {
497
+ id,
498
+ type: eventType,
499
+ data: parsedData,
500
+ timestamp: Date.now(),
501
+ };
502
+ }
503
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,2CAA2C;AAC3C,EAAE;AACF,iFAAiF;AAEjF,OAAO,EACL,eAAe,GAyBhB,MAAM,YAAY,CAAC;AAEpB,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AAErD,MAAM,OAAO,gBAAgB;IACV,OAAO,CAAS;IAChB,OAAO,CAAyB;IAEjD,YAAY,SAAiC,EAAE;QAC7C,IAAI,CAAC,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,gBAAgB,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACvE,IAAI,CAAC,OAAO,GAAG;YACb,cAAc,EAAE,kBAAkB;YAClC,MAAM,EAAE,kBAAkB;SAC3B,CAAC;QAEF,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;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C,CAAC,IAAI,EAAE,CAAC;QAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;QAEnD,QAAQ,KAAK,EAAE,CAAC;YACd,KAAK,IAAI;gBACP,EAAE,GAAG,KAAK,CAAC;gBACX,MAAM;YACR,KAAK,OAAO;gBACV,SAAS,GAAG,KAAK,CAAC;gBAClB,MAAM;YACR,KAAK,MAAM;gBACT,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACtB,MAAM;QACV,CAAC;IACH,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAExC,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,IAAI,UAAU,GAAY,OAAO,CAAC;IAClC,IAAI,CAAC;QACH,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,mCAAmC;IACrC,CAAC;IAED,OAAO;QACL,EAAE;QACF,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { AskVerdictClient } from "./client.js";
2
+ export { AskVerdictError, type AskVerdictClientConfig, type CreateDebateParams, type CreateDebateResult, type DebateMode, type DebateStatus, type DebateResponse, type ListDebatesParams, type ListDebatesResult, type VoteValue, type VoteMap, type ClaimVoteTally, type PollOption, type Poll, type HealthResponse, type StreamEvent, type SdkError, type Verdict, type DebateCostRecord, type FundingSource, type UserProfile, type UsageInfo, type BalanceInfo, type CheckoutPlan, type CheckoutInterval, type CreditPack, type CheckoutUrlResult, type PortalUrlResult, type DashboardStats, type SearchParams, type SearchResultItem, type SearchResult, type OutcomeRecord, type SubmitOutcomeParams, type DecisionScore, type StreakInfo, type ApiKeyUsage, } from "./types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EACL,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ // @askverdict/sdk — TypeScript API client for AskVerdict
2
+ // Published as: @askverdict/sdk
3
+ export { AskVerdictClient } from "./client.js";
4
+ export { AskVerdictError, } from "./types.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,gCAAgC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EACL,eAAe,GAqChB,MAAM,YAAY,CAAC"}