@eddyskywalker/dsh-chatgpt-subscription 0.12.6 → 0.13.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/CHANGELOG.md +637 -619
- package/lib/client.js +3975 -4521
- package/lib/client.js.map +1 -1
- package/lib/index.js +1146 -299
- package/lib/types/client/CodexComposerQuota.d.ts.map +1 -1
- package/lib/types/client/CodexSubscriptionSection.d.ts +1 -3
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
- package/lib/types/client/ProviderHubSection.d.ts +6 -5
- package/lib/types/client/ProviderHubSection.d.ts.map +1 -1
- package/lib/types/client/antigravity/AntigravityComposerQuota.d.ts +22 -1
- package/lib/types/client/antigravity/AntigravityComposerQuota.d.ts.map +1 -1
- package/lib/types/client/antigravity/AntigravitySection.d.ts +0 -2
- package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
- package/lib/types/client/antigravity/locales.d.ts +33 -26
- package/lib/types/client/antigravity/locales.d.ts.map +1 -1
- package/lib/types/client/antigravity/styles.d.ts.map +1 -1
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts +3 -7
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -1
- package/lib/types/client/claude/ClaudeSection.d.ts +10 -9
- package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -1
- package/lib/types/client/claude/locales.d.ts +29 -29
- package/lib/types/client/claude/locales.d.ts.map +1 -1
- package/lib/types/client/claude/useClaudeSection.d.ts +93 -0
- package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -0
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +3 -7
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -1
- package/lib/types/client/command-code/CommandCodeSection.d.ts +0 -3
- package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
- package/lib/types/client/command-code/locales.d.ts +32 -29
- package/lib/types/client/command-code/locales.d.ts.map +1 -1
- package/lib/types/client/common/AccountPoolSection.d.ts +16 -4
- package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -1
- package/lib/types/client/common/ComposerQuotaBadge.d.ts +35 -0
- package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -0
- package/lib/types/client/common/ContextWindowEditor.d.ts +69 -0
- package/lib/types/client/common/ContextWindowEditor.d.ts.map +1 -0
- package/lib/types/client/common/ModelChecklist.d.ts +29 -0
- package/lib/types/client/common/ModelChecklist.d.ts.map +1 -0
- package/lib/types/client/common/account-pool-labels.d.ts +18 -2
- package/lib/types/client/common/account-pool-labels.d.ts.map +1 -1
- package/lib/types/client/common/account-quota.d.ts +60 -0
- package/lib/types/client/common/account-quota.d.ts.map +1 -0
- package/lib/types/client/common/format.d.ts +30 -0
- package/lib/types/client/common/format.d.ts.map +1 -0
- package/lib/types/client/common/line-api.d.ts +8 -0
- package/lib/types/client/common/line-api.d.ts.map +1 -0
- package/lib/types/client/common/model-checklist-styles.d.ts +2 -0
- package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -0
- package/lib/types/client/common/styles.d.ts.map +1 -1
- package/lib/types/client/common/use-store.d.ts +3 -0
- package/lib/types/client/common/use-store.d.ts.map +1 -0
- package/lib/types/client/hub/HubOverview.d.ts +14 -0
- package/lib/types/client/hub/HubOverview.d.ts.map +1 -0
- package/lib/types/client/hub/brand-icons.d.ts +46 -0
- package/lib/types/client/hub/brand-icons.d.ts.map +1 -0
- package/lib/types/client/hub/brand-svg.d.ts +51 -0
- package/lib/types/client/hub/brand-svg.d.ts.map +1 -0
- package/lib/types/client/hub/hub-styles.d.ts +2 -0
- package/lib/types/client/hub/hub-styles.d.ts.map +1 -0
- package/lib/types/client/hub/providers.d.ts +38 -0
- package/lib/types/client/hub/providers.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +20 -6
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +3 -7
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts +0 -3
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +32 -32
- package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
- package/lib/types/client/kimi-code/styles.d.ts.map +1 -1
- package/lib/types/client/locales.d.ts +45 -35
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +4 -8
- package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -1
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +8 -37
- package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -1
- package/lib/types/client/minimax-code/api.d.ts +3 -3
- package/lib/types/client/minimax-code/api.d.ts.map +1 -1
- package/lib/types/client/minimax-code/locales.d.ts +29 -56
- package/lib/types/client/minimax-code/locales.d.ts.map +1 -1
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +115 -0
- package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
- package/lib/types/client/ollama/OllamaSection.d.ts +2 -2
- package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -1
- package/lib/types/client/ollama/locales.d.ts +54 -24
- package/lib/types/client/ollama/locales.d.ts.map +1 -1
- package/lib/types/client/styles.d.ts.map +1 -1
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +3 -7
- package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -1
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts +10 -37
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -1
- package/lib/types/client/workbuddy/locales.d.ts +0 -66
- package/lib/types/client/workbuddy/locales.d.ts.map +1 -1
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +141 -0
- package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +1 -0
- package/lib/types/host/antigravity/account-pool.d.ts +18 -1
- package/lib/types/host/antigravity/account-pool.d.ts.map +1 -1
- package/lib/types/host/antigravity/client.d.ts.map +1 -1
- package/lib/types/host/claude/account-pool.d.ts +22 -2
- package/lib/types/host/claude/account-pool.d.ts.map +1 -1
- package/lib/types/host/claude/client.d.ts +37 -5
- package/lib/types/host/claude/client.d.ts.map +1 -1
- package/lib/types/host/claude/routes.d.ts.map +1 -1
- package/lib/types/host/codex-account-pool.d.ts +26 -1
- package/lib/types/host/codex-account-pool.d.ts.map +1 -1
- package/lib/types/host/command-code/account-pool.d.ts +13 -1
- package/lib/types/host/command-code/account-pool.d.ts.map +1 -1
- package/lib/types/host/command-code/client.d.ts +2 -1
- package/lib/types/host/command-code/client.d.ts.map +1 -1
- package/lib/types/host/common/account-quota.d.ts +44 -0
- package/lib/types/host/common/account-quota.d.ts.map +1 -0
- package/lib/types/host/common/catalog-snapshot.d.ts +9 -0
- package/lib/types/host/common/catalog-snapshot.d.ts.map +1 -1
- package/lib/types/host/common/provider-route.d.ts +56 -0
- package/lib/types/host/common/provider-route.d.ts.map +1 -0
- package/lib/types/host/hub-overview.d.ts +26 -0
- package/lib/types/host/hub-overview.d.ts.map +1 -0
- package/lib/types/host/kimi-code/account-pool.d.ts +24 -1
- package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -1
- package/lib/types/host/kimi-code/client.d.ts +23 -2
- package/lib/types/host/kimi-code/client.d.ts.map +1 -1
- package/lib/types/host/minimax-code/account-pool.d.ts +34 -2
- package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -1
- package/lib/types/host/minimax-code/client.d.ts +23 -0
- package/lib/types/host/minimax-code/client.d.ts.map +1 -1
- package/lib/types/host/minimax-code/routes.d.ts.map +1 -1
- package/lib/types/host/oauth-service.d.ts +16 -0
- package/lib/types/host/oauth-service.d.ts.map +1 -1
- package/lib/types/host/usage-service.d.ts +27 -2
- package/lib/types/host/usage-service.d.ts.map +1 -1
- package/lib/types/host/workbuddy/account-pool.d.ts +13 -1
- package/lib/types/host/workbuddy/account-pool.d.ts.map +1 -1
- package/lib/types/host/workbuddy/client.d.ts +15 -0
- package/lib/types/host/workbuddy/client.d.ts.map +1 -1
- package/lib/types/host/workbuddy/routes.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/account-pool-contracts.d.ts +44 -0
- package/lib/types/shared/account-pool-contracts.d.ts.map +1 -1
- package/lib/types/shared/antigravity-contracts.d.ts +9 -3
- package/lib/types/shared/antigravity-contracts.d.ts.map +1 -1
- package/lib/types/shared/hub-contracts.d.ts +37 -0
- package/lib/types/shared/hub-contracts.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -37,6 +37,22 @@ export interface PoolAccountSummaryDto {
|
|
|
37
37
|
authFailedReason?: string;
|
|
38
38
|
/** Unix milliseconds the stored access token expires, when the provider has one. */
|
|
39
39
|
expiresAt?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The newest quota snapshot the host already holds for THIS account.
|
|
42
|
+
*
|
|
43
|
+
* Quota follows the account, not the line: a rotation moves which account
|
|
44
|
+
* spends the next request, so a single line-level quota figure describes
|
|
45
|
+
* whichever account happened to be active when it was read. Every line
|
|
46
|
+
* remembers the snapshot it read per account identity and reports it here, so
|
|
47
|
+
* the account card can draw each account's own progress.
|
|
48
|
+
*
|
|
49
|
+
* Absent means nothing was ever read for this account — which is a different
|
|
50
|
+
* statement from "nothing used", and the reason this field is optional rather
|
|
51
|
+
* than an empty snapshot. Reading quota for every pooled account when the
|
|
52
|
+
* settings page opens would cost one upstream request per account; nothing
|
|
53
|
+
* here triggers a read.
|
|
54
|
+
*/
|
|
55
|
+
quota?: PoolAccountQuotaDto;
|
|
40
56
|
/**
|
|
41
57
|
* Whether the card may offer to delete this account.
|
|
42
58
|
*
|
|
@@ -46,6 +62,34 @@ export interface PoolAccountSummaryDto {
|
|
|
46
62
|
*/
|
|
47
63
|
removable?: boolean;
|
|
48
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* One quota window, normalized so every line's account row draws the same bar.
|
|
67
|
+
*
|
|
68
|
+
* The lines disagree about the wire (buckets, groups, meters, ISO strings,
|
|
69
|
+
* unix seconds, remaining fractions); they agree about this: a window has a
|
|
70
|
+
* name, a consumed share, and usually a moment it reopens.
|
|
71
|
+
*/
|
|
72
|
+
export interface PoolAccountQuotaWindowDto {
|
|
73
|
+
/** Display label the line already has, e.g. `5 小时` / `Weekly (7 days)`. */
|
|
74
|
+
label: string;
|
|
75
|
+
/** Share of the window consumed, 0-100. */
|
|
76
|
+
usedPercent: number;
|
|
77
|
+
/** Nominal window length in minutes, when the source stated one. */
|
|
78
|
+
windowDurationMins?: number | null;
|
|
79
|
+
/** Unix milliseconds the window reopens, when the source stated one. */
|
|
80
|
+
resetsAt?: number | null;
|
|
81
|
+
}
|
|
82
|
+
/** The newest quota snapshot one line holds for one account. */
|
|
83
|
+
export interface PoolAccountQuotaDto {
|
|
84
|
+
/**
|
|
85
|
+
* Windows in the order the line's own card lists them, unlabeled ones
|
|
86
|
+
* included: no code sorts this list, and the lines that know a window's length
|
|
87
|
+
* happen to state the shortest first.
|
|
88
|
+
*/
|
|
89
|
+
windows: PoolAccountQuotaWindowDto[];
|
|
90
|
+
/** Unix milliseconds this snapshot was read, never when it was served. */
|
|
91
|
+
fetchedAt: number;
|
|
92
|
+
}
|
|
49
93
|
/** The pool slice every provider status DTO carries. */
|
|
50
94
|
export interface AccountPoolStatusDto {
|
|
51
95
|
accounts: PoolAccountSummaryDto[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-pool-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/account-pool-contracts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,aAAa,GAAG,QAAQ,CAAA;AAE7E;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D,2EAA2E;AAC3E,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,wDAAwD;AACxD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,qBAAqB,EAAE,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,uBAAuB,CAAA;CAC1C"}
|
|
1
|
+
{"version":3,"file":"account-pool-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/account-pool-contracts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,aAAa,GAAG,QAAQ,CAAA;AAE7E;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D,2EAA2E;AAC3E,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,KAAK,EAAE,MAAM,CAAA;IACb,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED,gEAAgE;AAChE,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,OAAO,EAAE,yBAAyB,EAAE,CAAA;IACpC,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,wDAAwD;AACxD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,qBAAqB,EAAE,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,EAAE,uBAAuB,CAAA;CAC1C"}
|
|
@@ -4,7 +4,15 @@ export interface AntigravityModelBucket {
|
|
|
4
4
|
window?: string;
|
|
5
5
|
resetTime?: string;
|
|
6
6
|
description?: string;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Share of this allowance still available, 0-1, or `null` when the service
|
|
9
|
+
* stated no usable number for it.
|
|
10
|
+
*
|
|
11
|
+
* `null` is NOT zero. Zero is a real measurement meaning "nothing left", while
|
|
12
|
+
* an absent field means nobody measured the bucket at all — publishing that as
|
|
13
|
+
* 0 would draw a fully consumed bar no reading supports.
|
|
14
|
+
*/
|
|
15
|
+
remainingFraction: number | null;
|
|
8
16
|
}
|
|
9
17
|
export interface AntigravityQuotaGroup {
|
|
10
18
|
displayName: string;
|
|
@@ -18,8 +26,6 @@ export interface AntigravityModelOption {
|
|
|
18
26
|
defaultContextWindow: number;
|
|
19
27
|
contextWindow?: number;
|
|
20
28
|
description?: string;
|
|
21
|
-
quotaSummary?: string;
|
|
22
|
-
remainingFraction?: number;
|
|
23
29
|
reasoningEfforts?: string[];
|
|
24
30
|
}
|
|
25
31
|
export interface AntigravityAccountQuota {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antigravity-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/antigravity-contracts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"antigravity-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/antigravity-contracts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;;;;OAOG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,EAAE,sBAAsB,EAAE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*/
|
|
2
|
+
export declare const HUB_OVERVIEW_PATH: "/api/dsh-chatgpt-subscription/hub/overview";
|
|
3
|
+
/** One provider line as the hub's overview card renders it. */
|
|
4
|
+
export interface HubProviderSummaryDto {
|
|
5
|
+
/** Client descriptor key, e.g. 'chatgpt', 'kimi-code', 'ollama'. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** LLM route id the line serves, e.g. 'codex-chatgpt', 'workbuddy-subscription'. */
|
|
8
|
+
providerId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the line has an "enable this provider" switch at all.
|
|
11
|
+
*
|
|
12
|
+
* Ollama has none (a key line is always servable), so its card renders no
|
|
13
|
+
* switch instead of a frozen one.
|
|
14
|
+
*/
|
|
15
|
+
canToggle: boolean;
|
|
16
|
+
/** Whether the line currently serves its route. Always true when `canToggle` is false. */
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
/** Signed-in / stored accounts the pool currently holds. */
|
|
19
|
+
accountCount: number;
|
|
20
|
+
/** Whether at least one account can authenticate right now. */
|
|
21
|
+
authenticated: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Enabled model count, when the line can determine it locally.
|
|
24
|
+
*
|
|
25
|
+
* Lines whose catalog only exists upstream report null rather than guessing,
|
|
26
|
+
* and the card simply omits the model annotation.
|
|
27
|
+
*/
|
|
28
|
+
enabledModelCount: number | null;
|
|
29
|
+
/** Total catalog size when locally known; null otherwise. */
|
|
30
|
+
totalModelCount: number | null;
|
|
31
|
+
/** True when this line's summary could not be read and the counts are placeholders. */
|
|
32
|
+
error?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface HubOverviewDto {
|
|
35
|
+
providers: HubProviderSummaryDto[];
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=hub-contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hub-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/hub-contracts.ts"],"names":[],"mappings":"AAUA,2EAA2E;AAC3E,eAAO,MAAM,iBAAiB,8CAA0C,CAAA;AAExE,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,oEAAoE;IACpE,EAAE,EAAE,MAAM,CAAA;IACV,oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,SAAS,EAAE,OAAO,CAAA;IAClB,0FAA0F;IAC1F,OAAO,EAAE,OAAO,CAAA;IAChB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAA;IACpB,+DAA+D;IAC/D,aAAa,EAAE,OAAO,CAAA;IACtB;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,6DAA6D;IAC7D,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,uFAAuF;IACvF,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,qBAAqB,EAAE,CAAA;CACnC"}
|