sidekick-shared 0.26.4 → 0.26.6
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 +52 -0
- package/README.md +59 -51
- package/dist/accountChanges.js +21 -2
- package/dist/accountHealth.d.ts +72 -0
- package/dist/accountHealth.js +286 -0
- package/dist/accountLaunch.d.ts +30 -0
- package/dist/accountLaunch.js +124 -0
- package/dist/accountManager.d.ts +33 -8
- package/dist/accountManager.js +183 -50
- package/dist/accountRegistry.d.ts +10 -0
- package/dist/accountRegistry.js +42 -22
- package/dist/accountSwitch.d.ts +43 -0
- package/dist/accountSwitch.js +115 -0
- package/dist/accountSync.d.ts +30 -0
- package/dist/accountSync.js +180 -0
- package/dist/accountSyncTypes.d.ts +25 -0
- package/dist/accountSyncTypes.js +7 -0
- package/dist/accounts.d.ts +58 -6
- package/dist/accounts.js +408 -189
- package/dist/claudeCredentials.d.ts +38 -0
- package/dist/claudeCredentials.js +74 -0
- package/dist/claudeProfiles.d.ts +40 -0
- package/dist/claudeProfiles.js +102 -10
- package/dist/codexAuth.d.ts +32 -0
- package/dist/codexAuth.js +127 -0
- package/dist/codexPaths.d.ts +21 -0
- package/dist/codexPaths.js +117 -0
- package/dist/codexProfiles.d.ts +58 -5
- package/dist/codexProfiles.js +574 -289
- package/dist/credentialIO.d.ts +12 -5
- package/dist/credentialIO.js +63 -29
- package/dist/credentials.d.ts +8 -0
- package/dist/credentials.js +28 -32
- package/dist/ensureDefaultAccounts.d.ts +8 -0
- package/dist/ensureDefaultAccounts.js +42 -82
- package/dist/index.d.ts +31 -12
- package/dist/index.js +68 -13
- package/dist/keepAlive.d.ts +44 -0
- package/dist/keepAlive.js +106 -0
- package/dist/node.d.ts +4 -1
- package/dist/node.js +4 -1
- package/dist/observedSessionCollector.d.ts +117 -5
- package/dist/observedSessionCollector.js +483 -76
- package/dist/processDetection.d.ts +32 -0
- package/dist/processDetection.js +210 -0
- package/dist/providers/claudeCode.d.ts +23 -2
- package/dist/providers/claudeCode.js +143 -51
- package/dist/providers/codex.d.ts +10 -2
- package/dist/providers/codex.js +95 -12
- package/dist/providers/directoryListingCache.d.ts +85 -0
- package/dist/providers/directoryListingCache.js +244 -0
- package/dist/providers/rolloutWalker.d.ts +28 -5
- package/dist/providers/rolloutWalker.js +100 -16
- package/dist/providers/types.d.ts +48 -1
- package/dist/schemas/accountManager.d.ts +283 -1
- package/dist/schemas/accountManager.js +122 -1
- package/dist/schemas/assistantTurn.d.ts +2 -2
- package/dist/schemas/index.d.ts +6 -1
- package/dist/schemas/index.js +14 -1
- package/dist/schemas/observedSessionV1.d.ts +21 -21
- package/dist/schemas/quota.d.ts +18 -18
- package/dist/schemas/quotaHistory.d.ts +1 -1
- package/dist/schemas/stateFile.d.ts +5 -5
- package/dist/sessionMonitor.js +24 -2
- package/dist/terminalSync.d.ts +5 -5
- package/dist/terminalSync.js +7 -112
- package/dist/writers/atomic.d.ts +2 -0
- package/dist/writers/atomic.js +49 -2
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @module schemas/accountManager
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.listAllAccountsResultSchema = exports.savedAccountProfileSchema = exports.accountEntrySchema = exports.accountLoginStatusSchema = exports.beginAccountLoginResultSchema = exports.accountManagerResultSchema = exports.accountProviderIdSchema = void 0;
|
|
13
|
+
exports.accountLaunchEnvSchema = exports.syncReportSchema = exports.providerSyncReportSchema = exports.lastSwitchRecordSchema = exports.switchAccountResultSchema = exports.runningAccountConsumerSchema = exports.accountConsumerKindSchema = exports.runningProcessSchema = exports.accountViewSchema = exports.accountHealthSchema = exports.accountHealthSidecarSchema = exports.accountHealthSourceSchema = exports.accountHealthStateSchema = exports.listAllAccountsResultSchema = exports.savedAccountProfileSchema = exports.accountEntrySchema = exports.accountLoginStatusSchema = exports.beginAccountLoginResultSchema = exports.accountManagerResultSchema = exports.accountProviderIdSchema = void 0;
|
|
14
14
|
const zod_1 = require("zod");
|
|
15
15
|
const providerIds_1 = require("../providerIds");
|
|
16
16
|
// ── AccountProviderId ──
|
|
@@ -32,7 +32,9 @@ const beginAccountLoginSuccessSchema = zod_1.z.object({
|
|
|
32
32
|
command: zod_1.z.string().optional(),
|
|
33
33
|
args: zod_1.z.array(zod_1.z.string()).optional(),
|
|
34
34
|
env: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
|
|
35
|
+
envUnset: zod_1.z.array(zod_1.z.string()).optional(),
|
|
35
36
|
configDir: zod_1.z.string().optional(),
|
|
37
|
+
existingAccountId: zod_1.z.string().optional(),
|
|
36
38
|
});
|
|
37
39
|
const beginAccountLoginFailureSchema = zod_1.z.object({
|
|
38
40
|
success: zod_1.z.literal(false),
|
|
@@ -61,6 +63,7 @@ const accountIdentityMetadataSchema = zod_1.z.object({
|
|
|
61
63
|
workspaceId: zod_1.z.string().optional(),
|
|
62
64
|
planType: zod_1.z.string().optional(),
|
|
63
65
|
authMode: zod_1.z.enum(['chatgpt', 'api-key', 'unknown']).optional(),
|
|
66
|
+
origin: zod_1.z.enum(['login', 'manual', 'live-sync', 'migration']).optional(),
|
|
64
67
|
});
|
|
65
68
|
exports.savedAccountProfileSchema = zod_1.z.object({
|
|
66
69
|
id: zod_1.z.string(),
|
|
@@ -80,3 +83,121 @@ exports.listAllAccountsResultSchema = zod_1.z.object({
|
|
|
80
83
|
codex: zod_1.z.string().nullable(),
|
|
81
84
|
}),
|
|
82
85
|
});
|
|
86
|
+
// ── Account health ──
|
|
87
|
+
exports.accountHealthStateSchema = zod_1.z.enum([
|
|
88
|
+
'fresh',
|
|
89
|
+
'expiring',
|
|
90
|
+
'expired',
|
|
91
|
+
'unknown',
|
|
92
|
+
'missing',
|
|
93
|
+
]);
|
|
94
|
+
exports.accountHealthSourceSchema = zod_1.z.enum([
|
|
95
|
+
'live-sync',
|
|
96
|
+
'login',
|
|
97
|
+
'switch',
|
|
98
|
+
'keepalive',
|
|
99
|
+
'migration',
|
|
100
|
+
]);
|
|
101
|
+
exports.accountHealthSidecarSchema = zod_1.z.object({
|
|
102
|
+
version: zod_1.z.literal(1),
|
|
103
|
+
capturedAt: zod_1.z.number(),
|
|
104
|
+
accessExpiresAt: zod_1.z.number().optional(),
|
|
105
|
+
refreshExpiresAt: zod_1.z.number().optional(),
|
|
106
|
+
refreshExpiryEstimated: zod_1.z.boolean().optional(),
|
|
107
|
+
lastRefreshAt: zod_1.z.number().optional(),
|
|
108
|
+
hasRefreshToken: zod_1.z.boolean().optional(),
|
|
109
|
+
authMode: zod_1.z.enum(['chatgpt', 'api-key', 'oauth']).optional(),
|
|
110
|
+
source: exports.accountHealthSourceSchema,
|
|
111
|
+
});
|
|
112
|
+
exports.accountHealthSchema = zod_1.z.object({
|
|
113
|
+
providerId: exports.accountProviderIdSchema,
|
|
114
|
+
accountId: zod_1.z.string(),
|
|
115
|
+
state: exports.accountHealthStateSchema,
|
|
116
|
+
accessExpiresAt: zod_1.z.number().optional(),
|
|
117
|
+
refreshExpiresAt: zod_1.z.number().optional(),
|
|
118
|
+
refreshExpiryEstimated: zod_1.z.boolean().optional(),
|
|
119
|
+
lastRefreshAt: zod_1.z.number().optional(),
|
|
120
|
+
checkedAt: zod_1.z.number(),
|
|
121
|
+
isLive: zod_1.z.boolean(),
|
|
122
|
+
reason: zod_1.z.string().optional(),
|
|
123
|
+
});
|
|
124
|
+
exports.accountViewSchema = zod_1.z.object({
|
|
125
|
+
id: zod_1.z.string(),
|
|
126
|
+
providerId: exports.accountProviderIdSchema,
|
|
127
|
+
label: zod_1.z.string().optional(),
|
|
128
|
+
email: zod_1.z.string().optional(),
|
|
129
|
+
planType: zod_1.z.string().optional(),
|
|
130
|
+
isActive: zod_1.z.boolean(),
|
|
131
|
+
health: exports.accountHealthSchema,
|
|
132
|
+
source: zod_1.z.enum(['registered', 'learned']),
|
|
133
|
+
addedAt: zod_1.z.string(),
|
|
134
|
+
});
|
|
135
|
+
// ── Running consumers / switch result ──
|
|
136
|
+
exports.runningProcessSchema = zod_1.z.object({
|
|
137
|
+
pid: zod_1.z.number(),
|
|
138
|
+
name: zod_1.z.string(),
|
|
139
|
+
command: zod_1.z.string(),
|
|
140
|
+
});
|
|
141
|
+
exports.accountConsumerKindSchema = zod_1.z.enum([
|
|
142
|
+
'claude-cli',
|
|
143
|
+
'claude-desktop',
|
|
144
|
+
'codex-cli',
|
|
145
|
+
'codex-app',
|
|
146
|
+
'vscode-extension-host',
|
|
147
|
+
]);
|
|
148
|
+
exports.runningAccountConsumerSchema = zod_1.z.object({
|
|
149
|
+
kind: exports.accountConsumerKindSchema,
|
|
150
|
+
pids: zod_1.z.array(zod_1.z.number()),
|
|
151
|
+
switched: zod_1.z.boolean(),
|
|
152
|
+
reachability: zod_1.z.string(),
|
|
153
|
+
});
|
|
154
|
+
exports.switchAccountResultSchema = exports.accountManagerResultSchema.extend({
|
|
155
|
+
provider: exports.accountProviderIdSchema,
|
|
156
|
+
accountId: zod_1.z.string(),
|
|
157
|
+
previousAccountId: zod_1.z.string().nullable(),
|
|
158
|
+
verified: zod_1.z.boolean(),
|
|
159
|
+
verification: zod_1.z.enum(['store', 'cli', 'none', 'failed']),
|
|
160
|
+
health: exports.accountHealthSchema.optional(),
|
|
161
|
+
warnings: zod_1.z.array(zod_1.z.string()),
|
|
162
|
+
hints: zod_1.z.array(zod_1.z.string()),
|
|
163
|
+
runningConsumers: zod_1.z.array(exports.runningAccountConsumerSchema),
|
|
164
|
+
undoToken: zod_1.z.string().optional(),
|
|
165
|
+
alreadyActive: zod_1.z.boolean().optional(),
|
|
166
|
+
email: zod_1.z.string().optional(),
|
|
167
|
+
});
|
|
168
|
+
exports.lastSwitchRecordSchema = zod_1.z.object({
|
|
169
|
+
token: zod_1.z.string(),
|
|
170
|
+
provider: exports.accountProviderIdSchema,
|
|
171
|
+
from: zod_1.z.string().nullable(),
|
|
172
|
+
to: zod_1.z.string(),
|
|
173
|
+
at: zod_1.z.string(),
|
|
174
|
+
});
|
|
175
|
+
// ── Sync report ──
|
|
176
|
+
exports.providerSyncReportSchema = zod_1.z.object({
|
|
177
|
+
registered: zod_1.z.object({ id: zod_1.z.string(), email: zod_1.z.string().optional() }).optional(),
|
|
178
|
+
folded: zod_1.z.string().optional(),
|
|
179
|
+
repointed: zod_1.z.string().optional(),
|
|
180
|
+
merged: zod_1.z.array(zod_1.z.string()).optional(),
|
|
181
|
+
skipped: zod_1.z.string().optional(),
|
|
182
|
+
warnings: zod_1.z.array(zod_1.z.string()),
|
|
183
|
+
});
|
|
184
|
+
exports.syncReportSchema = zod_1.z.object({
|
|
185
|
+
claude: exports.providerSyncReportSchema,
|
|
186
|
+
codex: exports.providerSyncReportSchema,
|
|
187
|
+
ranAt: zod_1.z.number(),
|
|
188
|
+
reason: zod_1.z.enum(['startup', 'watch', 'poll', 'pre-switch', 'manual']),
|
|
189
|
+
});
|
|
190
|
+
// ── Launch env ──
|
|
191
|
+
exports.accountLaunchEnvSchema = zod_1.z.object({
|
|
192
|
+
provider: exports.accountProviderIdSchema,
|
|
193
|
+
accountId: zod_1.z.string(),
|
|
194
|
+
label: zod_1.z.string().optional(),
|
|
195
|
+
email: zod_1.z.string().optional(),
|
|
196
|
+
home: zod_1.z.string(),
|
|
197
|
+
env: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
198
|
+
envUnset: zod_1.z.array(zod_1.z.string()),
|
|
199
|
+
command: zod_1.z.enum(['claude', 'codex']),
|
|
200
|
+
health: exports.accountHealthSchema,
|
|
201
|
+
warnings: zod_1.z.array(zod_1.z.string()),
|
|
202
|
+
error: zod_1.z.string().optional(),
|
|
203
|
+
});
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
export declare const assistantTurnEventTypeSchema: z.ZodEnum<{
|
|
9
|
-
status: "status";
|
|
10
9
|
error: "error";
|
|
11
10
|
text: "text";
|
|
11
|
+
status: "status";
|
|
12
12
|
tool_use: "tool_use";
|
|
13
13
|
tool_result: "tool_result";
|
|
14
14
|
progress: "progress";
|
|
@@ -17,9 +17,9 @@ export declare const assistantTurnEventTypeSchema: z.ZodEnum<{
|
|
|
17
17
|
}>;
|
|
18
18
|
export declare const assistantTurnEventSchema: z.ZodObject<{
|
|
19
19
|
eventType: z.ZodEnum<{
|
|
20
|
-
status: "status";
|
|
21
20
|
error: "error";
|
|
22
21
|
text: "text";
|
|
22
|
+
status: "status";
|
|
23
23
|
tool_use: "tool_use";
|
|
24
24
|
tool_result: "tool_result";
|
|
25
25
|
progress: "progress";
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -30,10 +30,15 @@ export { quotaHistoryRuntimeProviderSchema, quotaHistorySampleSchema, quotaHisto
|
|
|
30
30
|
export type { QuotaHistoryRuntimeProvider, QuotaHistorySample, QuotaHistoryDailyBucket, } from '../quotaHistory';
|
|
31
31
|
export { activeProviderAccountStatusSchema, activeAccountStatusSchema } from './accountStatus';
|
|
32
32
|
export type { ActiveProviderAccountStatus, ActiveAccountStatus } from '../accountStatus';
|
|
33
|
-
export { accountProviderIdSchema, accountManagerResultSchema, beginAccountLoginResultSchema, accountLoginStatusSchema, accountEntrySchema, savedAccountProfileSchema, listAllAccountsResultSchema, } from './accountManager';
|
|
33
|
+
export { accountProviderIdSchema, accountManagerResultSchema, beginAccountLoginResultSchema, accountLoginStatusSchema, accountEntrySchema, savedAccountProfileSchema, listAllAccountsResultSchema, accountHealthStateSchema, accountHealthSourceSchema, accountHealthSidecarSchema, accountHealthSchema, accountViewSchema, runningProcessSchema, accountConsumerKindSchema, runningAccountConsumerSchema, switchAccountResultSchema, lastSwitchRecordSchema, providerSyncReportSchema, syncReportSchema, accountLaunchEnvSchema, } from './accountManager';
|
|
34
34
|
export type { AccountEntry, AccountManagerResult } from '../accounts';
|
|
35
35
|
export type { AccountProviderId, SavedAccountProfile } from '../accountRegistry';
|
|
36
36
|
export type { AccountLoginStatus, BeginAccountLoginResult, ListAllAccountsResult, } from '../accountManager';
|
|
37
|
+
export type { AccountHealth, AccountHealthSidecar, AccountHealthState, AccountView, } from '../accountHealth';
|
|
38
|
+
export type { LastSwitchRecord, SwitchAccountResult } from '../accountSwitch';
|
|
39
|
+
export type { ProviderSyncReport, SyncReport } from '../accountSyncTypes';
|
|
40
|
+
export type { AccountLaunchEnv } from '../accountLaunch';
|
|
41
|
+
export type { RunningAccountConsumer, RunningProcess } from '../processDetection';
|
|
37
42
|
export { assistantTurnEventSchema, assistantTurnEventTypeSchema, assistantTurnNarrationStepSchema, assistantTurnProcessSchema, assistantTurnProcessStepSchema, assistantTurnProjectionSchema, assistantTurnReasoningTimelineItemSchema, assistantTurnSubagentSchema, assistantTurnSubagentStatusSchema, assistantTurnTimelineItemSchema, assistantTurnToolGroupStepSchema, assistantTurnToolRefSchema, } from './assistantTurn';
|
|
38
43
|
export type { AssistantTurnEvent, AssistantTurnEventType, AssistantTurnProcess, AssistantTurnProcessStep, AssistantTurnProjection, AssistantTurnSubagent, AssistantTurnSubagentStatus, AssistantTurnTimelineItem, AssistantTurnToolRef, } from '../turns/assistantTurn';
|
|
39
44
|
export { sidekickStateFileSchema, stateFileAccountSchema, stateFileBillingBlockSchema, stateFileContextSchema, stateFileQuotaSchema, stateFileQuotaWindowSchema, stateFileSessionSchema, stateFileWriterSchema, } from './stateFile';
|
package/dist/schemas/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.activeAccountStatusSchema = exports.activeProviderAccountStatusSchema = exports.quotaHistoryDailyBucketSchema = exports.quotaHistorySampleSchema = exports.quotaHistoryRuntimeProviderSchema = exports.providerQuotaMapSchema = exports.zaiProviderQuotaStateSchema = exports.codexProviderQuotaStateSchema = exports.claudeProviderQuotaStateSchema = exports.providerQuotaStateSchema = exports.runtimeQuotaProviderSchema = exports.quotaFailureDescriptorSchema = exports.peakHoursStateSchema = exports.codexResetCreditsSnapshotSchema = exports.codexResetCreditSchema = exports.quotaSourceSchema = exports.quotaProviderIdSchema = exports.quotaFailureKindSchema = exports.quotaStateSchema = exports.quotaWindowSchema = exports.sessionEvidenceRefV1Schema = exports.providerSessionAdapterV1Schema = exports.providerCapabilitiesV1Schema = exports.pendingUserRequestV1Schema = exports.observedValueV1Schema = exports.observedAgentSessionV1Schema = exports.observationProvenanceV1Schema = exports.canonicalSessionTranscriptSchema = exports.canonicalTranscriptMessageSchema = exports.canonicalToolCallSchema = exports.canonicalTranscriptBlockSchema = exports.transcriptSourceProvenanceSchema = exports.tokenEstimateSchema = exports.normalizedUsageCostSchema = exports.normalizedUsageSchema = exports.toolResultSessionEventSchema = exports.toolUseSessionEventSchema = exports.systemSessionEventSchema = exports.summarySessionEventSchema = exports.assistantSessionEventSchema = exports.userSessionEventSchema = exports.extractSessionEvents = exports.permissionModeSchema = exports.sessionEventSchema = exports.sessionMessageSchema = exports.messageUsageSchema = exports.SESSION_PROVIDER_IDS = exports.RUNTIME_QUOTA_PROVIDER_IDS = exports.QUOTA_PROVIDER_IDS = exports.ACCOUNT_PROVIDER_IDS = void 0;
|
|
16
|
-
exports.stateFileWriterSchema = exports.stateFileSessionSchema = exports.stateFileQuotaWindowSchema = exports.stateFileQuotaSchema = exports.stateFileContextSchema = exports.stateFileBillingBlockSchema = exports.stateFileAccountSchema = exports.sidekickStateFileSchema = exports.assistantTurnToolRefSchema = exports.assistantTurnToolGroupStepSchema = exports.assistantTurnTimelineItemSchema = exports.assistantTurnSubagentStatusSchema = exports.assistantTurnSubagentSchema = exports.assistantTurnReasoningTimelineItemSchema = exports.assistantTurnProjectionSchema = exports.assistantTurnProcessStepSchema = exports.assistantTurnProcessSchema = exports.assistantTurnNarrationStepSchema = exports.assistantTurnEventTypeSchema = exports.assistantTurnEventSchema = exports.listAllAccountsResultSchema = exports.savedAccountProfileSchema = exports.accountEntrySchema = exports.accountLoginStatusSchema = exports.beginAccountLoginResultSchema = exports.accountManagerResultSchema = exports.accountProviderIdSchema = void 0;
|
|
16
|
+
exports.stateFileWriterSchema = exports.stateFileSessionSchema = exports.stateFileQuotaWindowSchema = exports.stateFileQuotaSchema = exports.stateFileContextSchema = exports.stateFileBillingBlockSchema = exports.stateFileAccountSchema = exports.sidekickStateFileSchema = exports.assistantTurnToolRefSchema = exports.assistantTurnToolGroupStepSchema = exports.assistantTurnTimelineItemSchema = exports.assistantTurnSubagentStatusSchema = exports.assistantTurnSubagentSchema = exports.assistantTurnReasoningTimelineItemSchema = exports.assistantTurnProjectionSchema = exports.assistantTurnProcessStepSchema = exports.assistantTurnProcessSchema = exports.assistantTurnNarrationStepSchema = exports.assistantTurnEventTypeSchema = exports.assistantTurnEventSchema = exports.accountLaunchEnvSchema = exports.syncReportSchema = exports.providerSyncReportSchema = exports.lastSwitchRecordSchema = exports.switchAccountResultSchema = exports.runningAccountConsumerSchema = exports.accountConsumerKindSchema = exports.runningProcessSchema = exports.accountViewSchema = exports.accountHealthSchema = exports.accountHealthSidecarSchema = exports.accountHealthSourceSchema = exports.accountHealthStateSchema = exports.listAllAccountsResultSchema = exports.savedAccountProfileSchema = exports.accountEntrySchema = exports.accountLoginStatusSchema = exports.beginAccountLoginResultSchema = exports.accountManagerResultSchema = exports.accountProviderIdSchema = void 0;
|
|
17
17
|
var providerIds_1 = require("../providerIds");
|
|
18
18
|
Object.defineProperty(exports, "ACCOUNT_PROVIDER_IDS", { enumerable: true, get: function () { return providerIds_1.ACCOUNT_PROVIDER_IDS; } });
|
|
19
19
|
Object.defineProperty(exports, "QUOTA_PROVIDER_IDS", { enumerable: true, get: function () { return providerIds_1.QUOTA_PROVIDER_IDS; } });
|
|
@@ -81,6 +81,19 @@ Object.defineProperty(exports, "accountLoginStatusSchema", { enumerable: true, g
|
|
|
81
81
|
Object.defineProperty(exports, "accountEntrySchema", { enumerable: true, get: function () { return accountManager_1.accountEntrySchema; } });
|
|
82
82
|
Object.defineProperty(exports, "savedAccountProfileSchema", { enumerable: true, get: function () { return accountManager_1.savedAccountProfileSchema; } });
|
|
83
83
|
Object.defineProperty(exports, "listAllAccountsResultSchema", { enumerable: true, get: function () { return accountManager_1.listAllAccountsResultSchema; } });
|
|
84
|
+
Object.defineProperty(exports, "accountHealthStateSchema", { enumerable: true, get: function () { return accountManager_1.accountHealthStateSchema; } });
|
|
85
|
+
Object.defineProperty(exports, "accountHealthSourceSchema", { enumerable: true, get: function () { return accountManager_1.accountHealthSourceSchema; } });
|
|
86
|
+
Object.defineProperty(exports, "accountHealthSidecarSchema", { enumerable: true, get: function () { return accountManager_1.accountHealthSidecarSchema; } });
|
|
87
|
+
Object.defineProperty(exports, "accountHealthSchema", { enumerable: true, get: function () { return accountManager_1.accountHealthSchema; } });
|
|
88
|
+
Object.defineProperty(exports, "accountViewSchema", { enumerable: true, get: function () { return accountManager_1.accountViewSchema; } });
|
|
89
|
+
Object.defineProperty(exports, "runningProcessSchema", { enumerable: true, get: function () { return accountManager_1.runningProcessSchema; } });
|
|
90
|
+
Object.defineProperty(exports, "accountConsumerKindSchema", { enumerable: true, get: function () { return accountManager_1.accountConsumerKindSchema; } });
|
|
91
|
+
Object.defineProperty(exports, "runningAccountConsumerSchema", { enumerable: true, get: function () { return accountManager_1.runningAccountConsumerSchema; } });
|
|
92
|
+
Object.defineProperty(exports, "switchAccountResultSchema", { enumerable: true, get: function () { return accountManager_1.switchAccountResultSchema; } });
|
|
93
|
+
Object.defineProperty(exports, "lastSwitchRecordSchema", { enumerable: true, get: function () { return accountManager_1.lastSwitchRecordSchema; } });
|
|
94
|
+
Object.defineProperty(exports, "providerSyncReportSchema", { enumerable: true, get: function () { return accountManager_1.providerSyncReportSchema; } });
|
|
95
|
+
Object.defineProperty(exports, "syncReportSchema", { enumerable: true, get: function () { return accountManager_1.syncReportSchema; } });
|
|
96
|
+
Object.defineProperty(exports, "accountLaunchEnvSchema", { enumerable: true, get: function () { return accountManager_1.accountLaunchEnvSchema; } });
|
|
84
97
|
var assistantTurn_1 = require("./assistantTurn");
|
|
85
98
|
Object.defineProperty(exports, "assistantTurnEventSchema", { enumerable: true, get: function () { return assistantTurn_1.assistantTurnEventSchema; } });
|
|
86
99
|
Object.defineProperty(exports, "assistantTurnEventTypeSchema", { enumerable: true, get: function () { return assistantTurn_1.assistantTurnEventTypeSchema; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const observationProvenanceV1Schema: z.ZodEnum<{
|
|
3
|
-
reported: "reported";
|
|
4
3
|
estimated: "estimated";
|
|
4
|
+
reported: "reported";
|
|
5
5
|
inferred: "inferred";
|
|
6
6
|
}>;
|
|
7
7
|
export declare const sessionEvidenceRefV1Schema: z.ZodObject<{
|
|
@@ -20,8 +20,8 @@ export declare const sessionEvidenceRefV1Schema: z.ZodObject<{
|
|
|
20
20
|
export declare const observedValueV1Schema: <T extends z.ZodType>(value: T) => z.ZodObject<{
|
|
21
21
|
value: T;
|
|
22
22
|
provenance: z.ZodEnum<{
|
|
23
|
-
reported: "reported";
|
|
24
23
|
estimated: "estimated";
|
|
24
|
+
reported: "reported";
|
|
25
25
|
inferred: "inferred";
|
|
26
26
|
}>;
|
|
27
27
|
confidence: z.ZodNumber;
|
|
@@ -55,8 +55,8 @@ export declare const pendingUserRequestV1Schema: z.ZodObject<{
|
|
|
55
55
|
tool_approval: "tool_approval";
|
|
56
56
|
}>;
|
|
57
57
|
provenance: z.ZodEnum<{
|
|
58
|
-
reported: "reported";
|
|
59
58
|
estimated: "estimated";
|
|
59
|
+
reported: "reported";
|
|
60
60
|
inferred: "inferred";
|
|
61
61
|
}>;
|
|
62
62
|
confidence: z.ZodNumber;
|
|
@@ -77,8 +77,8 @@ export declare const pendingUserRequestV1Schema: z.ZodObject<{
|
|
|
77
77
|
requestedAt: z.ZodObject<{
|
|
78
78
|
value: z.ZodString;
|
|
79
79
|
provenance: z.ZodEnum<{
|
|
80
|
-
reported: "reported";
|
|
81
80
|
estimated: "estimated";
|
|
81
|
+
reported: "reported";
|
|
82
82
|
inferred: "inferred";
|
|
83
83
|
}>;
|
|
84
84
|
confidence: z.ZodNumber;
|
|
@@ -99,8 +99,8 @@ export declare const pendingUserRequestV1Schema: z.ZodObject<{
|
|
|
99
99
|
prompt: z.ZodObject<{
|
|
100
100
|
value: z.ZodNullable<z.ZodString>;
|
|
101
101
|
provenance: z.ZodEnum<{
|
|
102
|
-
reported: "reported";
|
|
103
102
|
estimated: "estimated";
|
|
103
|
+
reported: "reported";
|
|
104
104
|
inferred: "inferred";
|
|
105
105
|
}>;
|
|
106
106
|
confidence: z.ZodNumber;
|
|
@@ -133,8 +133,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
133
133
|
cwd: z.ZodObject<{
|
|
134
134
|
value: z.ZodString;
|
|
135
135
|
provenance: z.ZodEnum<{
|
|
136
|
-
reported: "reported";
|
|
137
136
|
estimated: "estimated";
|
|
137
|
+
reported: "reported";
|
|
138
138
|
inferred: "inferred";
|
|
139
139
|
}>;
|
|
140
140
|
confidence: z.ZodNumber;
|
|
@@ -155,8 +155,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
155
155
|
model: z.ZodObject<{
|
|
156
156
|
value: z.ZodNullable<z.ZodString>;
|
|
157
157
|
provenance: z.ZodEnum<{
|
|
158
|
-
reported: "reported";
|
|
159
158
|
estimated: "estimated";
|
|
159
|
+
reported: "reported";
|
|
160
160
|
inferred: "inferred";
|
|
161
161
|
}>;
|
|
162
162
|
confidence: z.ZodNumber;
|
|
@@ -182,8 +182,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
182
182
|
idle: "idle";
|
|
183
183
|
}>;
|
|
184
184
|
provenance: z.ZodEnum<{
|
|
185
|
-
reported: "reported";
|
|
186
185
|
estimated: "estimated";
|
|
186
|
+
reported: "reported";
|
|
187
187
|
inferred: "inferred";
|
|
188
188
|
}>;
|
|
189
189
|
confidence: z.ZodNumber;
|
|
@@ -205,8 +205,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
205
205
|
inputTokens: z.ZodObject<{
|
|
206
206
|
value: z.ZodNumber;
|
|
207
207
|
provenance: z.ZodEnum<{
|
|
208
|
-
reported: "reported";
|
|
209
208
|
estimated: "estimated";
|
|
209
|
+
reported: "reported";
|
|
210
210
|
inferred: "inferred";
|
|
211
211
|
}>;
|
|
212
212
|
confidence: z.ZodNumber;
|
|
@@ -227,8 +227,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
227
227
|
outputTokens: z.ZodObject<{
|
|
228
228
|
value: z.ZodNumber;
|
|
229
229
|
provenance: z.ZodEnum<{
|
|
230
|
-
reported: "reported";
|
|
231
230
|
estimated: "estimated";
|
|
231
|
+
reported: "reported";
|
|
232
232
|
inferred: "inferred";
|
|
233
233
|
}>;
|
|
234
234
|
confidence: z.ZodNumber;
|
|
@@ -249,8 +249,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
249
249
|
cacheReadTokens: z.ZodObject<{
|
|
250
250
|
value: z.ZodNumber;
|
|
251
251
|
provenance: z.ZodEnum<{
|
|
252
|
-
reported: "reported";
|
|
253
252
|
estimated: "estimated";
|
|
253
|
+
reported: "reported";
|
|
254
254
|
inferred: "inferred";
|
|
255
255
|
}>;
|
|
256
256
|
confidence: z.ZodNumber;
|
|
@@ -271,8 +271,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
271
271
|
cacheWriteTokens: z.ZodObject<{
|
|
272
272
|
value: z.ZodNumber;
|
|
273
273
|
provenance: z.ZodEnum<{
|
|
274
|
-
reported: "reported";
|
|
275
274
|
estimated: "estimated";
|
|
275
|
+
reported: "reported";
|
|
276
276
|
inferred: "inferred";
|
|
277
277
|
}>;
|
|
278
278
|
confidence: z.ZodNumber;
|
|
@@ -302,8 +302,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
302
302
|
totalTokens: z.ZodNumber;
|
|
303
303
|
}, z.core.$strip>;
|
|
304
304
|
provenance: z.ZodEnum<{
|
|
305
|
-
reported: "reported";
|
|
306
305
|
estimated: "estimated";
|
|
306
|
+
reported: "reported";
|
|
307
307
|
inferred: "inferred";
|
|
308
308
|
}>;
|
|
309
309
|
confidence: z.ZodNumber;
|
|
@@ -324,8 +324,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
324
324
|
costUsd: z.ZodObject<{
|
|
325
325
|
value: z.ZodNullable<z.ZodNumber>;
|
|
326
326
|
provenance: z.ZodEnum<{
|
|
327
|
-
reported: "reported";
|
|
328
327
|
estimated: "estimated";
|
|
328
|
+
reported: "reported";
|
|
329
329
|
inferred: "inferred";
|
|
330
330
|
}>;
|
|
331
331
|
confidence: z.ZodNumber;
|
|
@@ -360,8 +360,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
360
360
|
tool_approval: "tool_approval";
|
|
361
361
|
}>;
|
|
362
362
|
provenance: z.ZodEnum<{
|
|
363
|
-
reported: "reported";
|
|
364
363
|
estimated: "estimated";
|
|
364
|
+
reported: "reported";
|
|
365
365
|
inferred: "inferred";
|
|
366
366
|
}>;
|
|
367
367
|
confidence: z.ZodNumber;
|
|
@@ -382,8 +382,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
382
382
|
requestedAt: z.ZodObject<{
|
|
383
383
|
value: z.ZodString;
|
|
384
384
|
provenance: z.ZodEnum<{
|
|
385
|
-
reported: "reported";
|
|
386
385
|
estimated: "estimated";
|
|
386
|
+
reported: "reported";
|
|
387
387
|
inferred: "inferred";
|
|
388
388
|
}>;
|
|
389
389
|
confidence: z.ZodNumber;
|
|
@@ -404,8 +404,8 @@ export declare const observedAgentSessionV1Schema: z.ZodObject<{
|
|
|
404
404
|
prompt: z.ZodObject<{
|
|
405
405
|
value: z.ZodNullable<z.ZodString>;
|
|
406
406
|
provenance: z.ZodEnum<{
|
|
407
|
-
reported: "reported";
|
|
408
407
|
estimated: "estimated";
|
|
408
|
+
reported: "reported";
|
|
409
409
|
inferred: "inferred";
|
|
410
410
|
}>;
|
|
411
411
|
confidence: z.ZodNumber;
|
|
@@ -437,8 +437,8 @@ export declare const providerCapabilitiesV1Schema: z.ZodObject<{
|
|
|
437
437
|
resume: z.ZodObject<{
|
|
438
438
|
value: z.ZodBoolean;
|
|
439
439
|
provenance: z.ZodEnum<{
|
|
440
|
-
reported: "reported";
|
|
441
440
|
estimated: "estimated";
|
|
441
|
+
reported: "reported";
|
|
442
442
|
inferred: "inferred";
|
|
443
443
|
}>;
|
|
444
444
|
confidence: z.ZodNumber;
|
|
@@ -459,8 +459,8 @@ export declare const providerCapabilitiesV1Schema: z.ZodObject<{
|
|
|
459
459
|
forkLineage: z.ZodObject<{
|
|
460
460
|
value: z.ZodBoolean;
|
|
461
461
|
provenance: z.ZodEnum<{
|
|
462
|
-
reported: "reported";
|
|
463
462
|
estimated: "estimated";
|
|
463
|
+
reported: "reported";
|
|
464
464
|
inferred: "inferred";
|
|
465
465
|
}>;
|
|
466
466
|
confidence: z.ZodNumber;
|
|
@@ -486,8 +486,8 @@ export declare const providerCapabilitiesV1Schema: z.ZodObject<{
|
|
|
486
486
|
mixed: "mixed";
|
|
487
487
|
}>;
|
|
488
488
|
provenance: z.ZodEnum<{
|
|
489
|
-
reported: "reported";
|
|
490
489
|
estimated: "estimated";
|
|
490
|
+
reported: "reported";
|
|
491
491
|
inferred: "inferred";
|
|
492
492
|
}>;
|
|
493
493
|
confidence: z.ZodNumber;
|
|
@@ -508,8 +508,8 @@ export declare const providerCapabilitiesV1Schema: z.ZodObject<{
|
|
|
508
508
|
assetExtraction: z.ZodObject<{
|
|
509
509
|
value: z.ZodBoolean;
|
|
510
510
|
provenance: z.ZodEnum<{
|
|
511
|
-
reported: "reported";
|
|
512
511
|
estimated: "estimated";
|
|
512
|
+
reported: "reported";
|
|
513
513
|
inferred: "inferred";
|
|
514
514
|
}>;
|
|
515
515
|
confidence: z.ZodNumber;
|
package/dist/schemas/quota.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ export declare const quotaProviderIdSchema: z.ZodEnum<{
|
|
|
26
26
|
zai: "zai";
|
|
27
27
|
}>;
|
|
28
28
|
export declare const quotaSourceSchema: z.ZodEnum<{
|
|
29
|
-
api: "api";
|
|
30
29
|
cache: "cache";
|
|
30
|
+
api: "api";
|
|
31
31
|
session: "session";
|
|
32
32
|
statusline: "statusline";
|
|
33
33
|
}>;
|
|
@@ -59,8 +59,8 @@ export declare const codexResetCreditsSnapshotSchema: z.ZodObject<{
|
|
|
59
59
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
60
60
|
}, z.core.$strip>>;
|
|
61
61
|
source: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
api: "api";
|
|
63
62
|
cache: "cache";
|
|
63
|
+
api: "api";
|
|
64
64
|
}>>;
|
|
65
65
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
66
66
|
}, z.core.$strip>;
|
|
@@ -92,8 +92,8 @@ export declare const quotaStateSchema: z.ZodObject<{
|
|
|
92
92
|
zai: "zai";
|
|
93
93
|
}>>;
|
|
94
94
|
source: z.ZodOptional<z.ZodEnum<{
|
|
95
|
-
api: "api";
|
|
96
95
|
cache: "cache";
|
|
96
|
+
api: "api";
|
|
97
97
|
session: "session";
|
|
98
98
|
statusline: "statusline";
|
|
99
99
|
}>>;
|
|
@@ -126,8 +126,8 @@ export declare const quotaStateSchema: z.ZodObject<{
|
|
|
126
126
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
127
127
|
}, z.core.$strip>>;
|
|
128
128
|
source: z.ZodOptional<z.ZodEnum<{
|
|
129
|
-
api: "api";
|
|
130
129
|
cache: "cache";
|
|
130
|
+
api: "api";
|
|
131
131
|
}>>;
|
|
132
132
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
133
133
|
}, z.core.$strip>>;
|
|
@@ -204,8 +204,8 @@ export declare const providerQuotaStateSchema: z.ZodObject<{
|
|
|
204
204
|
zai: "zai";
|
|
205
205
|
}>>;
|
|
206
206
|
source: z.ZodOptional<z.ZodEnum<{
|
|
207
|
-
api: "api";
|
|
208
207
|
cache: "cache";
|
|
208
|
+
api: "api";
|
|
209
209
|
session: "session";
|
|
210
210
|
statusline: "statusline";
|
|
211
211
|
}>>;
|
|
@@ -238,8 +238,8 @@ export declare const providerQuotaStateSchema: z.ZodObject<{
|
|
|
238
238
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
239
239
|
}, z.core.$strip>>;
|
|
240
240
|
source: z.ZodOptional<z.ZodEnum<{
|
|
241
|
-
api: "api";
|
|
242
241
|
cache: "cache";
|
|
242
|
+
api: "api";
|
|
243
243
|
}>>;
|
|
244
244
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
245
245
|
}, z.core.$strip>>;
|
|
@@ -318,8 +318,8 @@ export declare const claudeProviderQuotaStateSchema: z.ZodObject<{
|
|
|
318
318
|
zai: "zai";
|
|
319
319
|
}>>;
|
|
320
320
|
source: z.ZodOptional<z.ZodEnum<{
|
|
321
|
-
api: "api";
|
|
322
321
|
cache: "cache";
|
|
322
|
+
api: "api";
|
|
323
323
|
session: "session";
|
|
324
324
|
statusline: "statusline";
|
|
325
325
|
}>>;
|
|
@@ -352,8 +352,8 @@ export declare const claudeProviderQuotaStateSchema: z.ZodObject<{
|
|
|
352
352
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
353
353
|
}, z.core.$strip>>;
|
|
354
354
|
source: z.ZodOptional<z.ZodEnum<{
|
|
355
|
-
api: "api";
|
|
356
355
|
cache: "cache";
|
|
356
|
+
api: "api";
|
|
357
357
|
}>>;
|
|
358
358
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
359
359
|
}, z.core.$strip>>;
|
|
@@ -428,8 +428,8 @@ export declare const codexProviderQuotaStateSchema: z.ZodObject<{
|
|
|
428
428
|
zai: "zai";
|
|
429
429
|
}>>;
|
|
430
430
|
source: z.ZodOptional<z.ZodEnum<{
|
|
431
|
-
api: "api";
|
|
432
431
|
cache: "cache";
|
|
432
|
+
api: "api";
|
|
433
433
|
session: "session";
|
|
434
434
|
statusline: "statusline";
|
|
435
435
|
}>>;
|
|
@@ -462,8 +462,8 @@ export declare const codexProviderQuotaStateSchema: z.ZodObject<{
|
|
|
462
462
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
463
463
|
}, z.core.$strip>>;
|
|
464
464
|
source: z.ZodOptional<z.ZodEnum<{
|
|
465
|
-
api: "api";
|
|
466
465
|
cache: "cache";
|
|
466
|
+
api: "api";
|
|
467
467
|
}>>;
|
|
468
468
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
469
469
|
}, z.core.$strip>>;
|
|
@@ -538,8 +538,8 @@ export declare const zaiProviderQuotaStateSchema: z.ZodObject<{
|
|
|
538
538
|
zai: "zai";
|
|
539
539
|
}>>;
|
|
540
540
|
source: z.ZodOptional<z.ZodEnum<{
|
|
541
|
-
api: "api";
|
|
542
541
|
cache: "cache";
|
|
542
|
+
api: "api";
|
|
543
543
|
session: "session";
|
|
544
544
|
statusline: "statusline";
|
|
545
545
|
}>>;
|
|
@@ -572,8 +572,8 @@ export declare const zaiProviderQuotaStateSchema: z.ZodObject<{
|
|
|
572
572
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
573
573
|
}, z.core.$strip>>;
|
|
574
574
|
source: z.ZodOptional<z.ZodEnum<{
|
|
575
|
-
api: "api";
|
|
576
575
|
cache: "cache";
|
|
576
|
+
api: "api";
|
|
577
577
|
}>>;
|
|
578
578
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
579
579
|
}, z.core.$strip>>;
|
|
@@ -649,8 +649,8 @@ export declare const providerQuotaMapSchema: z.ZodObject<{
|
|
|
649
649
|
zai: "zai";
|
|
650
650
|
}>>;
|
|
651
651
|
source: z.ZodOptional<z.ZodEnum<{
|
|
652
|
-
api: "api";
|
|
653
652
|
cache: "cache";
|
|
653
|
+
api: "api";
|
|
654
654
|
session: "session";
|
|
655
655
|
statusline: "statusline";
|
|
656
656
|
}>>;
|
|
@@ -683,8 +683,8 @@ export declare const providerQuotaMapSchema: z.ZodObject<{
|
|
|
683
683
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
684
684
|
}, z.core.$strip>>;
|
|
685
685
|
source: z.ZodOptional<z.ZodEnum<{
|
|
686
|
-
api: "api";
|
|
687
686
|
cache: "cache";
|
|
687
|
+
api: "api";
|
|
688
688
|
}>>;
|
|
689
689
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
690
690
|
}, z.core.$strip>>;
|
|
@@ -759,8 +759,8 @@ export declare const providerQuotaMapSchema: z.ZodObject<{
|
|
|
759
759
|
zai: "zai";
|
|
760
760
|
}>>;
|
|
761
761
|
source: z.ZodOptional<z.ZodEnum<{
|
|
762
|
-
api: "api";
|
|
763
762
|
cache: "cache";
|
|
763
|
+
api: "api";
|
|
764
764
|
session: "session";
|
|
765
765
|
statusline: "statusline";
|
|
766
766
|
}>>;
|
|
@@ -793,8 +793,8 @@ export declare const providerQuotaMapSchema: z.ZodObject<{
|
|
|
793
793
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
794
794
|
}, z.core.$strip>>;
|
|
795
795
|
source: z.ZodOptional<z.ZodEnum<{
|
|
796
|
-
api: "api";
|
|
797
796
|
cache: "cache";
|
|
797
|
+
api: "api";
|
|
798
798
|
}>>;
|
|
799
799
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
800
800
|
}, z.core.$strip>>;
|
|
@@ -869,8 +869,8 @@ export declare const providerQuotaMapSchema: z.ZodObject<{
|
|
|
869
869
|
zai: "zai";
|
|
870
870
|
}>>;
|
|
871
871
|
source: z.ZodOptional<z.ZodEnum<{
|
|
872
|
-
api: "api";
|
|
873
872
|
cache: "cache";
|
|
873
|
+
api: "api";
|
|
874
874
|
session: "session";
|
|
875
875
|
statusline: "statusline";
|
|
876
876
|
}>>;
|
|
@@ -903,8 +903,8 @@ export declare const providerQuotaMapSchema: z.ZodObject<{
|
|
|
903
903
|
grantedAt: z.ZodOptional<z.ZodString>;
|
|
904
904
|
}, z.core.$strip>>;
|
|
905
905
|
source: z.ZodOptional<z.ZodEnum<{
|
|
906
|
-
api: "api";
|
|
907
906
|
cache: "cache";
|
|
907
|
+
api: "api";
|
|
908
908
|
}>>;
|
|
909
909
|
capturedAt: z.ZodOptional<z.ZodString>;
|
|
910
910
|
}, z.core.$strip>>;
|
|
@@ -34,8 +34,8 @@ export declare const quotaHistorySampleSchema: z.ZodObject<{
|
|
|
34
34
|
available: z.ZodBoolean;
|
|
35
35
|
error: z.ZodOptional<z.ZodString>;
|
|
36
36
|
source: z.ZodOptional<z.ZodEnum<{
|
|
37
|
-
api: "api";
|
|
38
37
|
cache: "cache";
|
|
38
|
+
api: "api";
|
|
39
39
|
session: "session";
|
|
40
40
|
statusline: "statusline";
|
|
41
41
|
}>>;
|
|
@@ -27,8 +27,8 @@ export declare const stateFileQuotaSchema: z.ZodObject<{
|
|
|
27
27
|
resetsAt: z.ZodString;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
29
|
source: z.ZodNullable<z.ZodEnum<{
|
|
30
|
-
api: "api";
|
|
31
30
|
cache: "cache";
|
|
31
|
+
api: "api";
|
|
32
32
|
session: "session";
|
|
33
33
|
statusline: "statusline";
|
|
34
34
|
}>>;
|
|
@@ -77,8 +77,8 @@ export declare const stateFileBillingBlockSchema: z.ZodObject<{
|
|
|
77
77
|
costUsd: z.ZodNumber;
|
|
78
78
|
costProvenance: z.ZodEnum<{
|
|
79
79
|
none: "none";
|
|
80
|
-
reported: "reported";
|
|
81
80
|
estimated: "estimated";
|
|
81
|
+
reported: "reported";
|
|
82
82
|
unpriced: "unpriced";
|
|
83
83
|
mixed: "mixed";
|
|
84
84
|
}>;
|
|
@@ -114,8 +114,8 @@ export declare const sidekickStateFileSchema: z.ZodObject<{
|
|
|
114
114
|
resetsAt: z.ZodString;
|
|
115
115
|
}, z.core.$strip>;
|
|
116
116
|
source: z.ZodNullable<z.ZodEnum<{
|
|
117
|
-
api: "api";
|
|
118
117
|
cache: "cache";
|
|
118
|
+
api: "api";
|
|
119
119
|
session: "session";
|
|
120
120
|
statusline: "statusline";
|
|
121
121
|
}>>;
|
|
@@ -142,8 +142,8 @@ export declare const sidekickStateFileSchema: z.ZodObject<{
|
|
|
142
142
|
resetsAt: z.ZodString;
|
|
143
143
|
}, z.core.$strip>;
|
|
144
144
|
source: z.ZodNullable<z.ZodEnum<{
|
|
145
|
-
api: "api";
|
|
146
145
|
cache: "cache";
|
|
146
|
+
api: "api";
|
|
147
147
|
session: "session";
|
|
148
148
|
statusline: "statusline";
|
|
149
149
|
}>>;
|
|
@@ -185,8 +185,8 @@ export declare const sidekickStateFileSchema: z.ZodObject<{
|
|
|
185
185
|
costUsd: z.ZodNumber;
|
|
186
186
|
costProvenance: z.ZodEnum<{
|
|
187
187
|
none: "none";
|
|
188
|
-
reported: "reported";
|
|
189
188
|
estimated: "estimated";
|
|
189
|
+
reported: "reported";
|
|
190
190
|
unpriced: "unpriced";
|
|
191
191
|
mixed: "mixed";
|
|
192
192
|
}>;
|