@sol-merrai/cli 0.1.4 → 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.
package/dist/index.d.mts CHANGED
@@ -1,20 +1,293 @@
1
1
  import * as _orpc_client0 from "@orpc/client";
2
2
 
3
3
  //#region src/client.d.ts
4
- type RpcProcedure<Input = unknown> = (input?: Input) => Promise<readonly [unknown, unknown, ...unknown[]]>;
5
- type AddMemoryInput = {
4
+ type RpcProcedure<Input = unknown, Output = unknown> = (input?: Input) => Promise<readonly [unknown, Output, ...unknown[]]>;
5
+ type ThrowingRpcProcedure<Input = unknown, Output = unknown> = (input?: Input) => Promise<Output>;
6
+ type EntityType = "person" | "event" | "action" | "knowledge" | "document";
7
+ type JsonValue = boolean | number | string | null | JsonValue[] | {
8
+ [key: string]: JsonValue;
9
+ };
10
+ interface AddMemoryInput {
6
11
  memory: string;
12
+ observationDate?: string;
7
13
  source?: string;
8
14
  lobeKey?: string;
9
- };
10
- type AddMemoriesInput = {
11
- memories: Array<{
15
+ }
16
+ interface AddMemoryOutput {
17
+ queued: boolean;
18
+ workflowId: string;
19
+ }
20
+ interface AddMemoryRecallInput {
21
+ memory: string;
22
+ observationDate?: string;
23
+ }
24
+ interface AddMemoryRecallOutput {
25
+ processing: true;
26
+ status: "enqueued";
27
+ }
28
+ interface AddMemoriesInput {
29
+ memories: {
12
30
  memory: string;
31
+ observationDate?: string;
13
32
  source?: string;
14
33
  lobeKey?: string;
15
- }>;
16
- };
17
- type SearchMemoriesInput = {
34
+ }[];
35
+ }
36
+ interface AddMemoriesOutput {
37
+ failures: {
38
+ error: string;
39
+ groupKey: string | null;
40
+ }[];
41
+ queued: number;
42
+ workflowId: string;
43
+ }
44
+ interface FindMemoryEntitiesInput {
45
+ name: string;
46
+ type?: EntityType;
47
+ limit?: number;
48
+ }
49
+ interface MemoriesByEntityInput {
50
+ entityId: string;
51
+ limit?: number;
52
+ }
53
+ interface MemoriesByDateInput {
54
+ start?: string;
55
+ end?: string;
56
+ limit?: number;
57
+ }
58
+ interface MemoryRecallResult {
59
+ category: string | null;
60
+ content: string;
61
+ id: string;
62
+ lobeKey: string;
63
+ recordedAt: string;
64
+ }
65
+ interface FindMemoryEntitiesOutput {
66
+ entities: {
67
+ displayName: string;
68
+ id: string;
69
+ memoryCount: number;
70
+ name: string;
71
+ type: EntityType;
72
+ }[];
73
+ suggestedNextAction: {
74
+ entityIds: string[];
75
+ tool: "search_memories_by_entity";
76
+ when: string;
77
+ } | null;
78
+ }
79
+ interface SearchMemoryRecallInput {
80
+ limit?: number;
81
+ query: string;
82
+ }
83
+ interface SearchMemoryRecallOutput {
84
+ memories: MemoryRecallResult[];
85
+ suggestedNextAction: {
86
+ consentRequired: true;
87
+ tool: "add_memory";
88
+ when: string;
89
+ } | null;
90
+ }
91
+ interface MemoriesByEntityOutput {
92
+ entity: {
93
+ displayName: string;
94
+ id: string;
95
+ type: EntityType;
96
+ };
97
+ memories: MemoryRecallResult[];
98
+ }
99
+ interface MemoriesByDateOutput {
100
+ memories: MemoryRecallResult[];
101
+ range: {
102
+ end: string | null;
103
+ start: string | null;
104
+ };
105
+ }
106
+ interface MemoryOverviewOutput {
107
+ account: {
108
+ name: string;
109
+ numberOfAiTools: number | null;
110
+ preferredMessagingChannel: string | null;
111
+ primaryRole: string | null;
112
+ workplace: string | null;
113
+ };
114
+ profile: {
115
+ facts: Omit<MemoryRecallResult, "id">[];
116
+ ongoingContext: Omit<MemoryRecallResult, "id">[];
117
+ scope: string;
118
+ suggestions: {
119
+ expiresAt: string | null;
120
+ text: string;
121
+ }[];
122
+ updatedAt: string;
123
+ } | null;
124
+ suggestedNextAction: {
125
+ tool: "search_memory";
126
+ when: string;
127
+ };
128
+ }
129
+ interface ListLivingDocumentsInput {
130
+ status?: ("enabled" | "disabled" | "archived")[];
131
+ }
132
+ type LivingDocumentStatus = "enabled" | "disabled" | "archived";
133
+ interface LivingDocument {
134
+ autoPublish: boolean;
135
+ createdAt: string;
136
+ currentApprovedVersionId: string | null;
137
+ currentVersionId: string | null;
138
+ description: string | null;
139
+ entities: string[];
140
+ extractionPrompt: string;
141
+ id: string;
142
+ patchFailureCount: number;
143
+ routingSummary: string | null;
144
+ routingSummaryDirty: boolean;
145
+ status: LivingDocumentStatus;
146
+ title: string;
147
+ triggerKeywords: string[];
148
+ updatedAt: string;
149
+ }
150
+ interface LivingDocumentVersion {
151
+ causedByMemoryIds: string[];
152
+ causedByRunId: string | null;
153
+ contentMd: string;
154
+ contentMdSummary: string | null;
155
+ createdAt: string;
156
+ documentId: string;
157
+ extractorModel: string | null;
158
+ id: string;
159
+ parentVersionId: string | null;
160
+ patch: JsonValue;
161
+ updatedAt: string;
162
+ versionNumber: number;
163
+ }
164
+ interface LivingDocumentShare {
165
+ createdAt: string;
166
+ documentId: string;
167
+ expiresAt: string | null;
168
+ id: string;
169
+ mode: "pinned" | "live";
170
+ permissions: "view" | "view+comment";
171
+ revokedAt: string | null;
172
+ shareToken: string;
173
+ updatedAt: string;
174
+ versionId: string | null;
175
+ }
176
+ interface ListLivingDocumentsOutput {
177
+ documents: LivingDocument[];
178
+ slots: {
179
+ limit: number;
180
+ plan: string;
181
+ remaining: number;
182
+ used: number;
183
+ };
184
+ }
185
+ interface ListLivingDocumentsRecallOutput {
186
+ documents: {
187
+ autoPublish: boolean;
188
+ currentVersion: {
189
+ createdAt: string;
190
+ number: number;
191
+ } | null;
192
+ id: string;
193
+ status: string;
194
+ summary: string;
195
+ title: string;
196
+ }[];
197
+ }
198
+ interface ReadLivingDocumentRecallInput {
199
+ documentId: string;
200
+ }
201
+ interface ReadLivingDocumentRecallOutput {
202
+ document: {
203
+ activeShares: {
204
+ expiresAt: string | null;
205
+ mode: string;
206
+ permissions: string;
207
+ url: string;
208
+ versionId: string | null;
209
+ }[];
210
+ autoPublish: boolean;
211
+ currentVersion: {
212
+ contentMarkdown: string;
213
+ createdAt: string;
214
+ id: string;
215
+ number: number;
216
+ } | null;
217
+ description: string | null;
218
+ entities: string[];
219
+ headings: string[];
220
+ id: string;
221
+ status: string;
222
+ summary: string;
223
+ title: string;
224
+ triggerKeywords: string[];
225
+ };
226
+ }
227
+ interface GetLivingDocumentOutput {
228
+ currentVersion: LivingDocumentVersion | null;
229
+ document: LivingDocument;
230
+ }
231
+ interface ListLivingDocumentSharesOutput {
232
+ shares: LivingDocumentShare[];
233
+ }
234
+ interface GetLivingDocumentInput {
235
+ id: string;
236
+ }
237
+ interface ListLivingDocumentSharesInput {
238
+ documentId: string;
239
+ }
240
+ interface AddChatSessionInput {
241
+ memories: {
242
+ memory: string;
243
+ source?: string;
244
+ }[];
245
+ lobeKey?: string;
246
+ source?: string;
247
+ sessionMetadata?: Record<string, unknown>;
248
+ }
249
+ interface AddChatSessionOutput {
250
+ queued: number;
251
+ workflowId: string;
252
+ }
253
+ interface AddChatSessionsInput {
254
+ lobeKey?: string;
255
+ source?: string;
256
+ questionMetadata?: Record<string, unknown>;
257
+ /**
258
+ * Override the V3 extractor's prompt profile.
259
+ * - `general` — default chat-ingest extraction.
260
+ * - `agent` — agent-scoped ingests (no user, only agent_id).
261
+ * - `code-personal` — coding-session bias (developer intent over
262
+ * assistant scaffolding, code-specific entities).
263
+ * When omitted, the server resolves a profile from `source`
264
+ * (e.g. `claude-code` → `code-personal`); use this only to override
265
+ * that mapping or for sources the server hasn't pre-mapped.
266
+ */
267
+ extractionProfile?: "general" | "agent" | "code-personal";
268
+ /**
269
+ * Optional idempotency key (1-64 chars, [A-Za-z0-9_-]). When supplied,
270
+ * retries with the same key short-circuit on the server instead of
271
+ * re-running the ingest pipeline. Derive deterministically from
272
+ * (sessionId, turnRange) so retries collide but distinct flushes do not.
273
+ */
274
+ idempotencyKey?: string;
275
+ sessions: {
276
+ sessionId: string;
277
+ metadata?: Record<string, unknown>;
278
+ turns: {
279
+ content: string;
280
+ role: "user" | "assistant";
281
+ speaker?: string;
282
+ turnIndex: number;
283
+ }[];
284
+ }[];
285
+ }
286
+ interface AddChatSessionsOutput {
287
+ queuedSessions: number;
288
+ workflowId: string;
289
+ }
290
+ interface SearchMemoriesInput {
18
291
  query: string;
19
292
  lobeKey?: string;
20
293
  limit?: number;
@@ -25,34 +298,320 @@ type SearchMemoriesInput = {
25
298
  maxNeighborsPerSeed?: number;
26
299
  maxTotalNeighbors?: number;
27
300
  };
28
- };
29
- type MemoryStatusInput = {
301
+ }
302
+ interface SearchMemoryHit {
303
+ category: string | null;
304
+ content: string;
305
+ id: string;
306
+ memoryDate: string;
307
+ score: number;
308
+ summary: string | null;
309
+ }
310
+ interface MemoryStatusInput {
30
311
  lobeKey?: string;
31
- };
32
- type ClearLobeInput = {
312
+ }
313
+ interface MemoryStatusOutput {
314
+ count: number;
315
+ }
316
+ interface ClearLobeInput {
33
317
  lobeKey: string;
318
+ }
319
+ interface ClearLobeOutput {
320
+ deleted: number;
321
+ }
322
+ interface MemoryListItem {
323
+ category: string | null;
324
+ content: string;
325
+ createdAt: string;
326
+ expiresAt: string | null;
327
+ id: string;
328
+ isCurrent: string;
329
+ lobeKey: string;
330
+ memoryAt: string | null;
331
+ memoryKind: string;
332
+ metadata: JsonValue | null;
333
+ summary: string | null;
334
+ supersededByMemoryId: string | null;
335
+ updatedAt: string;
336
+ }
337
+ interface AuthSessionOutput {
338
+ session: {
339
+ createdAt: string | null;
340
+ expiresAt: string | null;
341
+ id: string;
342
+ ipAddress: string | null;
343
+ token: string;
344
+ updatedAt: string | null;
345
+ userAgent: string | null;
346
+ userId: string;
347
+ };
348
+ user: {
349
+ createdAt: string | null;
350
+ email: string;
351
+ emailVerified: boolean;
352
+ id: string;
353
+ image: string | null;
354
+ name: string;
355
+ onboardingComplete: boolean;
356
+ updatedAt: string | null;
357
+ };
358
+ }
359
+ type UsagePlan = "free" | "beta";
360
+ type UsageMeter = "assistant_messages" | "automation_executions" | "llm_tokens" | "memory_processed";
361
+ interface UsageMeterSummary {
362
+ allowed: boolean;
363
+ current: number;
364
+ limit: number | null;
365
+ meter: UsageMeter;
366
+ periodKey: string;
367
+ plan: UsagePlan;
368
+ remaining: number | null;
369
+ userId: string;
370
+ }
371
+ interface UsageSummaryOutput {
372
+ billing: {
373
+ hasPaidPlan: boolean;
374
+ plan: UsagePlan;
375
+ scheduledDowngradeAt: string | null;
376
+ };
377
+ llm: {
378
+ byModel: {
379
+ inputTokens: number;
380
+ model: string;
381
+ outputTokens: number;
382
+ provider: string;
383
+ requests: number;
384
+ totalTokens: number;
385
+ }[];
386
+ bySurface: {
387
+ inputTokens: number;
388
+ outputTokens: number;
389
+ requests: number;
390
+ surface: string;
391
+ totalTokens: number;
392
+ }[];
393
+ recentRequests: {
394
+ cachedInputTokens: number;
395
+ createdAt: string;
396
+ id: string;
397
+ inputTokens: number;
398
+ model: string;
399
+ outputTokens: number;
400
+ provider: string;
401
+ reasoningTokens: number;
402
+ requestId: string | null;
403
+ surface: string;
404
+ totalTokens: number;
405
+ }[];
406
+ totals: {
407
+ cachedInputTokens: number;
408
+ inputTokens: number;
409
+ outputTokens: number;
410
+ reasoningTokens: number;
411
+ requests: number;
412
+ totalTokens: number;
413
+ };
414
+ };
415
+ meters: {
416
+ automationExecutions: UsageMeterSummary;
417
+ llmTokens: UsageMeterSummary;
418
+ memoryProcessed: UsageMeterSummary;
419
+ };
420
+ periodStart: string;
421
+ plan: UsagePlan;
422
+ plans: {
423
+ automations: number | null;
424
+ id: UsagePlan;
425
+ memories: number | null;
426
+ tokens: number | null;
427
+ }[];
428
+ }
429
+ interface GetSessionStartContextInput {
430
+ /**
431
+ * Restrict to a single lobe. Plugin callers pass `cc:<repo-slug>` so memory
432
+ * is scoped to the active project. Omit to read across every lobe.
433
+ */
434
+ lobeKey?: string;
435
+ /**
436
+ * Short retrieval hints biased toward what the caller is about to do
437
+ * (e.g. current git branch name, last commit subject, cwd basename).
438
+ * Cap: 5 hints × 200 chars.
439
+ */
440
+ recentHints?: string[];
441
+ /**
442
+ * Caller-side budget. Server hard caps both numbers regardless.
443
+ */
444
+ budget?: {
445
+ /** Default 15, hard cap 30. */maxMemories?: number; /** Default 2000, hard cap 4000. Char-based estimate (chars / 4). */
446
+ maxTokens?: number;
447
+ };
448
+ }
449
+ interface GetSessionStartContextOutput {
450
+ /** Markdown block ready to drop into a hook's `additionalContext`. */
451
+ markdown: string;
452
+ /** IDs of every memory referenced in the markdown. */
453
+ memoryIds: string[];
454
+ /** True when the response was truncated by the budget. */
455
+ hasMore: boolean;
456
+ /** Server-side ISO 8601 timestamp the context was generated. */
457
+ generatedAt: string;
458
+ }
459
+ interface MerraiProcedureContract {
460
+ addChatSession: {
461
+ input: AddChatSessionInput;
462
+ output: AddChatSessionOutput;
463
+ };
464
+ addChatSessions: {
465
+ input: AddChatSessionsInput;
466
+ output: AddChatSessionsOutput;
467
+ };
468
+ addMemories: {
469
+ input: AddMemoriesInput;
470
+ output: AddMemoriesOutput;
471
+ };
472
+ addMemory: {
473
+ input: AddMemoryInput;
474
+ output: AddMemoryOutput;
475
+ };
476
+ clearLobe: {
477
+ input: ClearLobeInput;
478
+ output: ClearLobeOutput;
479
+ };
480
+ findMemoryEntities: {
481
+ input: FindMemoryEntitiesInput;
482
+ output: FindMemoryEntitiesOutput;
483
+ };
484
+ getLivingDocument: {
485
+ input: GetLivingDocumentInput;
486
+ output: GetLivingDocumentOutput;
487
+ };
488
+ getSessionStartContext: {
489
+ input: GetSessionStartContextInput;
490
+ output: GetSessionStartContextOutput;
491
+ };
492
+ healthCheck: {
493
+ input: undefined;
494
+ output: "OK";
495
+ };
496
+ listLivingDocuments: {
497
+ input: ListLivingDocumentsInput;
498
+ output: ListLivingDocumentsOutput;
499
+ };
500
+ listLivingDocumentShares: {
501
+ input: ListLivingDocumentSharesInput;
502
+ output: ListLivingDocumentSharesOutput;
503
+ };
504
+ memories: {
505
+ input: undefined;
506
+ output: MemoryListItem[];
507
+ };
508
+ memoriesByDate: {
509
+ input: MemoriesByDateInput;
510
+ output: MemoriesByDateOutput;
511
+ };
512
+ memoriesByEntity: {
513
+ input: MemoriesByEntityInput;
514
+ output: MemoriesByEntityOutput;
515
+ };
516
+ memoryOverview: {
517
+ input: undefined;
518
+ output: MemoryOverviewOutput;
519
+ };
520
+ memoryStatus: {
521
+ input: MemoryStatusInput;
522
+ output: MemoryStatusOutput;
523
+ };
524
+ searchMemories: {
525
+ input: SearchMemoriesInput;
526
+ output: SearchMemoryHit[];
527
+ };
528
+ session: {
529
+ input: undefined;
530
+ output: AuthSessionOutput | null;
531
+ };
532
+ usageSummary: {
533
+ input: undefined;
534
+ output: UsageSummaryOutput;
535
+ };
536
+ }
537
+ interface MerraiRecallProcedureContract {
538
+ addMemory: {
539
+ input: AddMemoryRecallInput;
540
+ output: AddMemoryRecallOutput;
541
+ };
542
+ listLivingDocuments: {
543
+ input: undefined;
544
+ output: ListLivingDocumentsRecallOutput;
545
+ };
546
+ readLivingDocument: {
547
+ input: ReadLivingDocumentRecallInput;
548
+ output: ReadLivingDocumentRecallOutput;
549
+ };
550
+ searchMemory: {
551
+ input: SearchMemoryRecallInput;
552
+ output: SearchMemoryRecallOutput;
553
+ };
554
+ }
555
+ type SafeProcedureClient<Contract> = { [ProcedureName in keyof Contract]: Contract[ProcedureName] extends {
556
+ input: infer Input;
557
+ output: infer Output;
558
+ } ? RpcProcedure<Input, Output> : never };
559
+ type ThrowingProcedureClient<Contract> = { [ProcedureName in keyof Contract]: Contract[ProcedureName] extends {
560
+ input: infer Input;
561
+ output: infer Output;
562
+ } ? ThrowingRpcProcedure<Input, Output> : never };
563
+ type MerraiClient = SafeProcedureClient<MerraiProcedureContract> & {
564
+ recall: SafeProcedureClient<MerraiRecallProcedureContract>;
34
565
  };
35
- type MerraiClient = Record<string, RpcProcedure> & {
36
- addMemory: RpcProcedure<AddMemoryInput>;
37
- addMemories: RpcProcedure<AddMemoriesInput>;
38
- clearLobe: RpcProcedure<ClearLobeInput>;
39
- healthCheck: RpcProcedure;
40
- memories: RpcProcedure;
41
- memoryStatus: RpcProcedure<MemoryStatusInput>;
42
- searchMemories: RpcProcedure<SearchMemoriesInput>;
43
- session: RpcProcedure;
44
- usageSummary: RpcProcedure;
566
+ type MerraiThrowingClient = ThrowingProcedureClient<MerraiProcedureContract> & {
567
+ recall: ThrowingProcedureClient<MerraiRecallProcedureContract>;
45
568
  };
46
- type MerraiClientOptions = {
569
+ interface MerraiClientOptions {
47
570
  baseURL?: string;
48
571
  apiKey?: string;
49
572
  cookie?: string;
50
573
  fetch?: typeof fetch;
51
574
  headers?: HeadersInit;
52
- };
575
+ }
53
576
  declare const resolveBaseURL: (baseURL?: string) => string;
54
577
  declare const createRawMerraiClient: (options?: MerraiClientOptions) => _orpc_client0.NestedClient<any>;
55
578
  declare const createMerraiClient: (options?: MerraiClientOptions) => MerraiClient;
579
+ declare const createMerraiThrowingClient: (options?: MerraiClientOptions) => MerraiThrowingClient;
580
+ //#endregion
581
+ //#region src/config.d.ts
582
+ declare const DEFAULT_MERRAI_BASE_URL = "https://api.merrai.app";
583
+ declare const CREDENTIALS_VERSION = 1;
584
+ type MerraiCliEnvironment = Readonly<Record<string, string | undefined>>;
585
+ interface MerraiCliConnectionOverrides {
586
+ apiKey?: string;
587
+ baseURL?: string;
588
+ cookie?: string;
589
+ }
590
+ interface MerraiCredentials {
591
+ apiKey: string;
592
+ baseURL?: string;
593
+ savedAt: string;
594
+ version: typeof CREDENTIALS_VERSION;
595
+ }
596
+ interface MerraiConfigPaths {
597
+ credentials: string;
598
+ directory: string;
599
+ legacyClaudeCredentials: string;
600
+ }
601
+ declare const resolveMerraiConfigPaths: (env: MerraiCliEnvironment) => MerraiConfigPaths;
602
+ declare const loadMerraiCredentials: (env: MerraiCliEnvironment, options?: {
603
+ strict?: boolean;
604
+ }) => MerraiCredentials | null;
605
+ declare const saveMerraiCredentials: (env: MerraiCliEnvironment, input: {
606
+ apiKey: string;
607
+ baseURL?: string;
608
+ }) => MerraiCredentials;
609
+ declare const clearMerraiCredentials: (env: MerraiCliEnvironment, options?: {
610
+ includeLegacy?: boolean;
611
+ }) => boolean;
612
+ declare const resolveMerraiClientOptions: (env: MerraiCliEnvironment, overrides: MerraiCliConnectionOverrides, options?: {
613
+ strictCredentials?: boolean;
614
+ }) => MerraiClientOptions;
56
615
  //#endregion
57
- export { type AddMemoryInput, type MerraiClient, type MerraiClientOptions, type RpcProcedure, createMerraiClient, createRawMerraiClient, resolveBaseURL };
616
+ export { type AddChatSessionInput, type AddChatSessionOutput, type AddChatSessionsInput, type AddChatSessionsOutput, type AddMemoriesInput, type AddMemoriesOutput, type AddMemoryInput, type AddMemoryOutput, type AddMemoryRecallInput, type AddMemoryRecallOutput, type AuthSessionOutput, type ClearLobeInput, type ClearLobeOutput, DEFAULT_MERRAI_BASE_URL, type EntityType, type FindMemoryEntitiesInput, type FindMemoryEntitiesOutput, type GetLivingDocumentInput, type GetLivingDocumentOutput, type GetSessionStartContextInput, type GetSessionStartContextOutput, type JsonValue, type ListLivingDocumentSharesInput, type ListLivingDocumentSharesOutput, type ListLivingDocumentsInput, type ListLivingDocumentsOutput, type ListLivingDocumentsRecallOutput, type LivingDocument, type LivingDocumentShare, type LivingDocumentStatus, type LivingDocumentVersion, type MemoriesByDateInput, type MemoriesByDateOutput, type MemoriesByEntityInput, type MemoriesByEntityOutput, type MemoryListItem, type MemoryOverviewOutput, type MemoryRecallResult, type MemoryStatusOutput, type MerraiCliConnectionOverrides, type MerraiCliEnvironment, type MerraiClient, type MerraiClientOptions, type MerraiConfigPaths, type MerraiCredentials, type MerraiThrowingClient, type ReadLivingDocumentRecallInput, type ReadLivingDocumentRecallOutput, type RpcProcedure, type SearchMemoriesInput, type SearchMemoryHit, type SearchMemoryRecallInput, type SearchMemoryRecallOutput, type ThrowingRpcProcedure, type UsageMeter, type UsageMeterSummary, type UsagePlan, type UsageSummaryOutput, clearMerraiCredentials, createMerraiClient, createMerraiThrowingClient, createRawMerraiClient, loadMerraiCredentials, resolveBaseURL, resolveMerraiClientOptions, resolveMerraiConfigPaths, saveMerraiCredentials };
58
617
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/client.ts"],"mappings":";;;KAGY,YAAA,qBACV,KAAA,GAAQ,KAAA,KACL,OAAA;AAAA,KAEO,cAAA;EACV,MAAA;EACA,MAAA;EACA,OAAA;AAAA;AAAA,KAGU,gBAAA;EACV,QAAA,EAAU,KAAA;IACR,MAAA;IACA,MAAA;IACA,OAAA;EAAA;AAAA;AAAA,KAIQ,mBAAA;EACV,KAAA;EACA,OAAA;EACA,KAAA;EACA,SAAA;EACA,IAAA;EACA,KAAA;IACE,OAAA;IACA,mBAAA;IACA,iBAAA;EAAA;AAAA;AAAA,KAIQ,iBAAA;EACV,OAAA;AAAA;AAAA,KAGU,cAAA;EACV,OAAA;AAAA;AAAA,KAGU,YAAA,GAAe,MAAA,SAAe,YAAA;EACxC,SAAA,EAAW,YAAA,CAAa,cAAA;EACxB,WAAA,EAAa,YAAA,CAAa,gBAAA;EAC1B,SAAA,EAAW,YAAA,CAAa,cAAA;EACxB,WAAA,EAAa,YAAA;EACb,QAAA,EAAU,YAAA;EACV,YAAA,EAAc,YAAA,CAAa,iBAAA;EAC3B,cAAA,EAAgB,YAAA,CAAa,mBAAA;EAC7B,OAAA,EAAS,YAAA;EACT,YAAA,EAAc,YAAA;AAAA;AAAA,KAGJ,mBAAA;EACV,OAAA;EACA,MAAA;EACA,MAAA;EACA,KAAA,UAAe,KAAA;EACf,OAAA,GAAU,WAAA;AAAA;AAAA,cAGC,cAAA,GAAkB,OAAA;AAAA,cA8BlB,qBAAA,GAAyB,OAAA,GAAS,mBAAA,KAAwB,aAAA,CAAA,YAAA;AAAA,cAW1D,kBAAA,GAAsB,OAAA,GAAS,mBAAA,KACqB,YAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/client.ts","../src/config.ts"],"mappings":";;;KAGY,YAAA,uCACV,KAAA,GAAQ,KAAA,KACL,OAAA,oBAA2B,MAAA;AAAA,KAEpB,oBAAA,uCACV,KAAA,GAAQ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