@read-frog/api-contract 0.12.0 → 0.12.2
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.ts +646 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +291 -87
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/contracts/hosted-ai.ts +23 -3
- package/src/contracts/srs.ts +13 -0
- package/src/contracts/stats.ts +42 -0
- package/src/index.ts +5 -0
- package/src/public-errors.ts +26 -0
- package/src/schemas/hosted-ai.ts +128 -28
- package/src/schemas/notebase-column.ts +2 -0
- package/src/schemas/notebase-stats.ts +24 -0
- package/src/schemas/notebase.ts +1 -0
- package/src/schemas/srs-stats.ts +26 -0
- package/src/schemas/srs.ts +12 -0
- package/src/schemas/stats.ts +25 -0
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,55 @@ declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
|
|
|
40
40
|
notebaseColumnIds: z.ZodArray<z.ZodString>;
|
|
41
41
|
}, z.core.$strict>;
|
|
42
42
|
type CardTemplateInvalidColumnsData = z.infer<typeof CardTemplateInvalidColumnsDataSchema>;
|
|
43
|
+
declare const HostedAiTierRestrictedDataSchema: z.ZodObject<{
|
|
44
|
+
modelTier: z.ZodEnum<{
|
|
45
|
+
normal: "normal";
|
|
46
|
+
ultra: "ultra";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
declare const HostedAiQuotaExhaustedDataSchema: z.ZodObject<{
|
|
50
|
+
modelTier: z.ZodEnum<{
|
|
51
|
+
normal: "normal";
|
|
52
|
+
ultra: "ultra";
|
|
53
|
+
}>;
|
|
54
|
+
policyId: z.ZodEnum<{
|
|
55
|
+
"custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
|
|
56
|
+
"custom-action-user-daily-v1": "custom-action-user-daily-v1";
|
|
57
|
+
"custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
|
|
58
|
+
"ultra-weekly-v1": "ultra-weekly-v1";
|
|
59
|
+
}>;
|
|
60
|
+
usedPercent: z.ZodNumber;
|
|
61
|
+
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
62
|
+
}, z.core.$strict>;
|
|
43
63
|
declare const PUBLIC_APP_ERROR_DEFS: {
|
|
64
|
+
readonly HOSTED_AI_TIER_RESTRICTED: {
|
|
65
|
+
readonly data: z.ZodObject<{
|
|
66
|
+
modelTier: z.ZodEnum<{
|
|
67
|
+
normal: "normal";
|
|
68
|
+
ultra: "ultra";
|
|
69
|
+
}>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
readonly message: "This Built-in AI tier is not available for this account";
|
|
72
|
+
readonly status: 403;
|
|
73
|
+
};
|
|
74
|
+
readonly HOSTED_AI_QUOTA_EXHAUSTED: {
|
|
75
|
+
readonly data: z.ZodObject<{
|
|
76
|
+
modelTier: z.ZodEnum<{
|
|
77
|
+
normal: "normal";
|
|
78
|
+
ultra: "ultra";
|
|
79
|
+
}>;
|
|
80
|
+
policyId: z.ZodEnum<{
|
|
81
|
+
"custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
|
|
82
|
+
"custom-action-user-daily-v1": "custom-action-user-daily-v1";
|
|
83
|
+
"custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
|
|
84
|
+
"ultra-weekly-v1": "ultra-weekly-v1";
|
|
85
|
+
}>;
|
|
86
|
+
usedPercent: z.ZodNumber;
|
|
87
|
+
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
88
|
+
}, z.core.$strict>;
|
|
89
|
+
readonly message: "Built-in AI credit exhausted";
|
|
90
|
+
readonly status: 429;
|
|
91
|
+
};
|
|
44
92
|
readonly NOTEBASE_BETA_RESTRICTED: {
|
|
45
93
|
readonly message: "Notebase is currently in beta for selected accounts";
|
|
46
94
|
readonly status: 403;
|
|
@@ -204,6 +252,34 @@ type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLIC_APP_E
|
|
|
204
252
|
} ? z.output<TSchema> : undefined;
|
|
205
253
|
declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
|
|
206
254
|
declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code: TCode): {
|
|
255
|
+
readonly HOSTED_AI_TIER_RESTRICTED: {
|
|
256
|
+
readonly data: z.ZodObject<{
|
|
257
|
+
modelTier: z.ZodEnum<{
|
|
258
|
+
normal: "normal";
|
|
259
|
+
ultra: "ultra";
|
|
260
|
+
}>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
readonly message: "This Built-in AI tier is not available for this account";
|
|
263
|
+
readonly status: 403;
|
|
264
|
+
};
|
|
265
|
+
readonly HOSTED_AI_QUOTA_EXHAUSTED: {
|
|
266
|
+
readonly data: z.ZodObject<{
|
|
267
|
+
modelTier: z.ZodEnum<{
|
|
268
|
+
normal: "normal";
|
|
269
|
+
ultra: "ultra";
|
|
270
|
+
}>;
|
|
271
|
+
policyId: z.ZodEnum<{
|
|
272
|
+
"custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
|
|
273
|
+
"custom-action-user-daily-v1": "custom-action-user-daily-v1";
|
|
274
|
+
"custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
|
|
275
|
+
"ultra-weekly-v1": "ultra-weekly-v1";
|
|
276
|
+
}>;
|
|
277
|
+
usedPercent: z.ZodNumber;
|
|
278
|
+
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
279
|
+
}, z.core.$strict>;
|
|
280
|
+
readonly message: "Built-in AI credit exhausted";
|
|
281
|
+
readonly status: 429;
|
|
282
|
+
};
|
|
207
283
|
readonly NOTEBASE_BETA_RESTRICTED: {
|
|
208
284
|
readonly message: "Notebase is currently in beta for selected accounts";
|
|
209
285
|
readonly status: 403;
|
|
@@ -406,14 +482,14 @@ declare const billingSubscriptionStatusSchema: z.ZodEnum<{
|
|
|
406
482
|
}>;
|
|
407
483
|
type BillingSubscriptionStatus = z.infer<typeof billingSubscriptionStatusSchema>;
|
|
408
484
|
declare const billingPlanSchema: z.ZodEnum<{
|
|
485
|
+
ultra: "ultra";
|
|
409
486
|
free: "free";
|
|
410
487
|
pro: "pro";
|
|
411
|
-
ultra: "ultra";
|
|
412
488
|
}>;
|
|
413
489
|
type BillingPlan = z.infer<typeof billingPlanSchema>;
|
|
414
490
|
declare const billingCheckoutPlanSchema: z.ZodEnum<{
|
|
415
|
-
pro: "pro";
|
|
416
491
|
ultra: "ultra";
|
|
492
|
+
pro: "pro";
|
|
417
493
|
}>;
|
|
418
494
|
type BillingCheckoutPlan = z.infer<typeof billingCheckoutPlanSchema>;
|
|
419
495
|
declare const billingCurrencySchema: z.ZodEnum<{
|
|
@@ -441,8 +517,8 @@ declare const billingAccessSourceSchema: z.ZodEnum<{
|
|
|
441
517
|
type BillingAccessSource = z.infer<typeof billingAccessSourceSchema>;
|
|
442
518
|
declare const billingScheduledChangeSchema: z.ZodObject<{
|
|
443
519
|
plan: z.ZodEnum<{
|
|
444
|
-
pro: "pro";
|
|
445
520
|
ultra: "ultra";
|
|
521
|
+
pro: "pro";
|
|
446
522
|
}>;
|
|
447
523
|
interval: z.ZodEnum<{
|
|
448
524
|
month: "month";
|
|
@@ -453,9 +529,9 @@ declare const billingScheduledChangeSchema: z.ZodObject<{
|
|
|
453
529
|
type BillingScheduledChange = z.infer<typeof billingScheduledChangeSchema>;
|
|
454
530
|
declare const billingStatusSchema: z.ZodObject<{
|
|
455
531
|
plan: z.ZodEnum<{
|
|
532
|
+
ultra: "ultra";
|
|
456
533
|
free: "free";
|
|
457
534
|
pro: "pro";
|
|
458
|
-
ultra: "ultra";
|
|
459
535
|
}>;
|
|
460
536
|
status: z.ZodNullable<z.ZodEnum<{
|
|
461
537
|
incomplete: "incomplete";
|
|
@@ -479,8 +555,8 @@ declare const billingStatusSchema: z.ZodObject<{
|
|
|
479
555
|
}>>;
|
|
480
556
|
scheduledChange: z.ZodNullable<z.ZodObject<{
|
|
481
557
|
plan: z.ZodEnum<{
|
|
482
|
-
pro: "pro";
|
|
483
558
|
ultra: "ultra";
|
|
559
|
+
pro: "pro";
|
|
484
560
|
}>;
|
|
485
561
|
interval: z.ZodEnum<{
|
|
486
562
|
month: "month";
|
|
@@ -515,8 +591,8 @@ declare const billingCreateCheckoutSessionInputSchema: z.ZodObject<{
|
|
|
515
591
|
"zh-TW": "zh-TW";
|
|
516
592
|
}>;
|
|
517
593
|
plan: z.ZodDefault<z.ZodEnum<{
|
|
518
|
-
pro: "pro";
|
|
519
594
|
ultra: "ultra";
|
|
595
|
+
pro: "pro";
|
|
520
596
|
}>>;
|
|
521
597
|
}, z.core.$strict>;
|
|
522
598
|
type BillingCreateCheckoutSessionInput = z.infer<typeof billingCreateCheckoutSessionInputSchema>;
|
|
@@ -1032,15 +1108,28 @@ declare const HostedAiOutputFieldSchema: z.ZodObject<{
|
|
|
1032
1108
|
number: "number";
|
|
1033
1109
|
}>;
|
|
1034
1110
|
}, z.core.$strict>;
|
|
1111
|
+
declare const HostedAiModelTierSchema: z.ZodEnum<{
|
|
1112
|
+
normal: "normal";
|
|
1113
|
+
ultra: "ultra";
|
|
1114
|
+
}>;
|
|
1115
|
+
declare const HostedAiFeatureSchema: z.ZodEnum<{
|
|
1116
|
+
pageTranslation: "pageTranslation";
|
|
1117
|
+
customAction: "customAction";
|
|
1118
|
+
noteSuggestion: "noteSuggestion";
|
|
1119
|
+
}>;
|
|
1120
|
+
declare const HostedAiRequestIdSchema: z.ZodUUID;
|
|
1035
1121
|
declare const HostedAiStreamTextInputSchema: z.ZodObject<{
|
|
1036
|
-
instructions: z.
|
|
1037
|
-
system: z.ZodOptional<z.ZodString>;
|
|
1122
|
+
instructions: z.ZodString;
|
|
1038
1123
|
prompt: z.ZodString;
|
|
1039
1124
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1125
|
+
modelTier: z.ZodDefault<z.ZodEnum<{
|
|
1126
|
+
normal: "normal";
|
|
1127
|
+
ultra: "ultra";
|
|
1128
|
+
}>>;
|
|
1129
|
+
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1040
1130
|
}, z.core.$strict>;
|
|
1041
1131
|
declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
|
|
1042
|
-
instructions: z.
|
|
1043
|
-
system: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
instructions: z.ZodString;
|
|
1044
1133
|
prompt: z.ZodString;
|
|
1045
1134
|
outputSchema: z.ZodArray<z.ZodObject<{
|
|
1046
1135
|
name: z.ZodString;
|
|
@@ -1050,6 +1139,11 @@ declare const HostedAiStreamStructuredObjectInputSchema: z.ZodObject<{
|
|
|
1050
1139
|
}>;
|
|
1051
1140
|
}, z.core.$strict>>;
|
|
1052
1141
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1142
|
+
modelTier: z.ZodDefault<z.ZodEnum<{
|
|
1143
|
+
normal: "normal";
|
|
1144
|
+
ultra: "ultra";
|
|
1145
|
+
}>>;
|
|
1146
|
+
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1053
1147
|
}, z.core.$strict>;
|
|
1054
1148
|
declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES = 2;
|
|
1055
1149
|
declare const HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS = 16;
|
|
@@ -1057,6 +1151,11 @@ declare const HostedAiNoteSuggestionStreamInputSchema: z.ZodObject<{
|
|
|
1057
1151
|
instructions: z.ZodString;
|
|
1058
1152
|
prompt: z.ZodString;
|
|
1059
1153
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
+
modelTier: z.ZodDefault<z.ZodEnum<{
|
|
1155
|
+
normal: "normal";
|
|
1156
|
+
ultra: "ultra";
|
|
1157
|
+
}>>;
|
|
1158
|
+
requestId: z.ZodOptional<z.ZodUUID>;
|
|
1060
1159
|
}, z.core.$strict>;
|
|
1061
1160
|
/**
|
|
1062
1161
|
* Fixed structured-output schema for hosted note suggestions. Must stay
|
|
@@ -1082,13 +1181,211 @@ declare const HostedAiNoteSuggestionObjectSchema: z.ZodObject<{
|
|
|
1082
1181
|
declare const HostedAiStreamPartSchema: z.ZodObject<{
|
|
1083
1182
|
type: z.ZodString;
|
|
1084
1183
|
}, z.core.$loose>;
|
|
1184
|
+
/**
|
|
1185
|
+
* The only stream part types this API emits. Every other part the AI SDK
|
|
1186
|
+
* produces (`start-step`, `finish-step`, `text-start`, ...) carries upstream
|
|
1187
|
+
* metadata — provider model id, response headers, request body — and is dropped
|
|
1188
|
+
* server-side so it never reaches a client.
|
|
1189
|
+
*
|
|
1190
|
+
* The consumer switch lives in the extension's background stream reader. Adding
|
|
1191
|
+
* a type here without teaching that switch about it is a no-op; removing one
|
|
1192
|
+
* breaks rendering. `error` is absent on purpose: it is converted into a thrown
|
|
1193
|
+
* error before it can be yielded.
|
|
1194
|
+
*/
|
|
1195
|
+
declare const HOSTED_AI_CLIENT_STREAM_PART_TYPES: readonly ["text-delta", "reasoning-start", "reasoning-delta", "reasoning-end", "reasoning-file", "finish"];
|
|
1196
|
+
/**
|
|
1197
|
+
* Status is per-identity, not per-feature: one call reports every feature and
|
|
1198
|
+
* every pool, so a client caches a single response instead of one per feature.
|
|
1199
|
+
* Non-strict so a client still sending the retired `feature` argument gets a
|
|
1200
|
+
* useful response rather than a validation error.
|
|
1201
|
+
*/
|
|
1202
|
+
declare const HostedAiStatusInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
1203
|
+
declare const HostedAiUnavailableReasonSchema: z.ZodEnum<{
|
|
1204
|
+
authentication_required: "authentication_required";
|
|
1205
|
+
ultra_required: "ultra_required";
|
|
1206
|
+
quota_exhausted: "quota_exhausted";
|
|
1207
|
+
service_unavailable: "service_unavailable";
|
|
1208
|
+
}>;
|
|
1209
|
+
declare const HostedAiCreditPolicyIdSchema: z.ZodEnum<{
|
|
1210
|
+
"custom-action-guest-daily-v1": "custom-action-guest-daily-v1";
|
|
1211
|
+
"custom-action-user-daily-v1": "custom-action-user-daily-v1";
|
|
1212
|
+
"custom-action-pro-daily-v1": "custom-action-pro-daily-v1";
|
|
1213
|
+
"ultra-weekly-v1": "ultra-weekly-v1";
|
|
1214
|
+
}>;
|
|
1215
|
+
declare const HostedAiCreditPeriodKindSchema: z.ZodEnum<{
|
|
1216
|
+
daily: "daily";
|
|
1217
|
+
weekly: "weekly";
|
|
1218
|
+
}>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Deliberately free of dollar amounts and of the versioned policy id. Clients
|
|
1221
|
+
* render a consumption bar and a reset time, so a percentage and a period kind
|
|
1222
|
+
* are all they need, and neither leaks what a call costs us. `usedPercent`
|
|
1223
|
+
* counts settled spend only: including in-flight reservations would make the
|
|
1224
|
+
* bar jump forward and then back as each stream settles.
|
|
1225
|
+
*/
|
|
1226
|
+
declare const HostedAiCreditStatusSchema: z.ZodObject<{
|
|
1227
|
+
periodKind: z.ZodEnum<{
|
|
1228
|
+
daily: "daily";
|
|
1229
|
+
weekly: "weekly";
|
|
1230
|
+
}>;
|
|
1231
|
+
usedPercent: z.ZodNumber;
|
|
1232
|
+
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1233
|
+
features: z.ZodArray<z.ZodEnum<{
|
|
1234
|
+
pageTranslation: "pageTranslation";
|
|
1235
|
+
customAction: "customAction";
|
|
1236
|
+
noteSuggestion: "noteSuggestion";
|
|
1237
|
+
}>>;
|
|
1238
|
+
}, z.core.$strict>;
|
|
1239
|
+
declare const HostedAiTierStatusSchema: z.ZodObject<{
|
|
1240
|
+
accessAllowed: z.ZodBoolean;
|
|
1241
|
+
available: z.ZodBoolean;
|
|
1242
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1243
|
+
authentication_required: "authentication_required";
|
|
1244
|
+
ultra_required: "ultra_required";
|
|
1245
|
+
quota_exhausted: "quota_exhausted";
|
|
1246
|
+
service_unavailable: "service_unavailable";
|
|
1247
|
+
}>>;
|
|
1248
|
+
requiresUltra: z.ZodBoolean;
|
|
1249
|
+
modelRevision: z.ZodString;
|
|
1250
|
+
}, z.core.$strict>;
|
|
1251
|
+
declare const HostedAiFeatureStatusSchema: z.ZodObject<{
|
|
1252
|
+
normal: z.ZodObject<{
|
|
1253
|
+
accessAllowed: z.ZodBoolean;
|
|
1254
|
+
available: z.ZodBoolean;
|
|
1255
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1256
|
+
authentication_required: "authentication_required";
|
|
1257
|
+
ultra_required: "ultra_required";
|
|
1258
|
+
quota_exhausted: "quota_exhausted";
|
|
1259
|
+
service_unavailable: "service_unavailable";
|
|
1260
|
+
}>>;
|
|
1261
|
+
requiresUltra: z.ZodBoolean;
|
|
1262
|
+
modelRevision: z.ZodString;
|
|
1263
|
+
}, z.core.$strict>;
|
|
1264
|
+
ultra: z.ZodObject<{
|
|
1265
|
+
accessAllowed: z.ZodBoolean;
|
|
1266
|
+
available: z.ZodBoolean;
|
|
1267
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1268
|
+
authentication_required: "authentication_required";
|
|
1269
|
+
ultra_required: "ultra_required";
|
|
1270
|
+
quota_exhausted: "quota_exhausted";
|
|
1271
|
+
service_unavailable: "service_unavailable";
|
|
1272
|
+
}>>;
|
|
1273
|
+
requiresUltra: z.ZodBoolean;
|
|
1274
|
+
modelRevision: z.ZodString;
|
|
1275
|
+
}, z.core.$strict>;
|
|
1276
|
+
}, z.core.$strict>;
|
|
1277
|
+
declare const HostedAiStatusOutputSchema: z.ZodObject<{
|
|
1278
|
+
credits: z.ZodArray<z.ZodObject<{
|
|
1279
|
+
periodKind: z.ZodEnum<{
|
|
1280
|
+
daily: "daily";
|
|
1281
|
+
weekly: "weekly";
|
|
1282
|
+
}>;
|
|
1283
|
+
usedPercent: z.ZodNumber;
|
|
1284
|
+
resetAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1285
|
+
features: z.ZodArray<z.ZodEnum<{
|
|
1286
|
+
pageTranslation: "pageTranslation";
|
|
1287
|
+
customAction: "customAction";
|
|
1288
|
+
noteSuggestion: "noteSuggestion";
|
|
1289
|
+
}>>;
|
|
1290
|
+
}, z.core.$strict>>;
|
|
1291
|
+
features: z.ZodObject<{
|
|
1292
|
+
pageTranslation: z.ZodObject<{
|
|
1293
|
+
normal: z.ZodObject<{
|
|
1294
|
+
accessAllowed: z.ZodBoolean;
|
|
1295
|
+
available: z.ZodBoolean;
|
|
1296
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1297
|
+
authentication_required: "authentication_required";
|
|
1298
|
+
ultra_required: "ultra_required";
|
|
1299
|
+
quota_exhausted: "quota_exhausted";
|
|
1300
|
+
service_unavailable: "service_unavailable";
|
|
1301
|
+
}>>;
|
|
1302
|
+
requiresUltra: z.ZodBoolean;
|
|
1303
|
+
modelRevision: z.ZodString;
|
|
1304
|
+
}, z.core.$strict>;
|
|
1305
|
+
ultra: z.ZodObject<{
|
|
1306
|
+
accessAllowed: z.ZodBoolean;
|
|
1307
|
+
available: z.ZodBoolean;
|
|
1308
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1309
|
+
authentication_required: "authentication_required";
|
|
1310
|
+
ultra_required: "ultra_required";
|
|
1311
|
+
quota_exhausted: "quota_exhausted";
|
|
1312
|
+
service_unavailable: "service_unavailable";
|
|
1313
|
+
}>>;
|
|
1314
|
+
requiresUltra: z.ZodBoolean;
|
|
1315
|
+
modelRevision: z.ZodString;
|
|
1316
|
+
}, z.core.$strict>;
|
|
1317
|
+
}, z.core.$strict>;
|
|
1318
|
+
customAction: z.ZodObject<{
|
|
1319
|
+
normal: z.ZodObject<{
|
|
1320
|
+
accessAllowed: z.ZodBoolean;
|
|
1321
|
+
available: z.ZodBoolean;
|
|
1322
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1323
|
+
authentication_required: "authentication_required";
|
|
1324
|
+
ultra_required: "ultra_required";
|
|
1325
|
+
quota_exhausted: "quota_exhausted";
|
|
1326
|
+
service_unavailable: "service_unavailable";
|
|
1327
|
+
}>>;
|
|
1328
|
+
requiresUltra: z.ZodBoolean;
|
|
1329
|
+
modelRevision: z.ZodString;
|
|
1330
|
+
}, z.core.$strict>;
|
|
1331
|
+
ultra: z.ZodObject<{
|
|
1332
|
+
accessAllowed: z.ZodBoolean;
|
|
1333
|
+
available: z.ZodBoolean;
|
|
1334
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1335
|
+
authentication_required: "authentication_required";
|
|
1336
|
+
ultra_required: "ultra_required";
|
|
1337
|
+
quota_exhausted: "quota_exhausted";
|
|
1338
|
+
service_unavailable: "service_unavailable";
|
|
1339
|
+
}>>;
|
|
1340
|
+
requiresUltra: z.ZodBoolean;
|
|
1341
|
+
modelRevision: z.ZodString;
|
|
1342
|
+
}, z.core.$strict>;
|
|
1343
|
+
}, z.core.$strict>;
|
|
1344
|
+
noteSuggestion: z.ZodObject<{
|
|
1345
|
+
normal: z.ZodObject<{
|
|
1346
|
+
accessAllowed: z.ZodBoolean;
|
|
1347
|
+
available: z.ZodBoolean;
|
|
1348
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1349
|
+
authentication_required: "authentication_required";
|
|
1350
|
+
ultra_required: "ultra_required";
|
|
1351
|
+
quota_exhausted: "quota_exhausted";
|
|
1352
|
+
service_unavailable: "service_unavailable";
|
|
1353
|
+
}>>;
|
|
1354
|
+
requiresUltra: z.ZodBoolean;
|
|
1355
|
+
modelRevision: z.ZodString;
|
|
1356
|
+
}, z.core.$strict>;
|
|
1357
|
+
ultra: z.ZodObject<{
|
|
1358
|
+
accessAllowed: z.ZodBoolean;
|
|
1359
|
+
available: z.ZodBoolean;
|
|
1360
|
+
unavailableReason: z.ZodNullable<z.ZodEnum<{
|
|
1361
|
+
authentication_required: "authentication_required";
|
|
1362
|
+
ultra_required: "ultra_required";
|
|
1363
|
+
quota_exhausted: "quota_exhausted";
|
|
1364
|
+
service_unavailable: "service_unavailable";
|
|
1365
|
+
}>>;
|
|
1366
|
+
requiresUltra: z.ZodBoolean;
|
|
1367
|
+
modelRevision: z.ZodString;
|
|
1368
|
+
}, z.core.$strict>;
|
|
1369
|
+
}, z.core.$strict>;
|
|
1370
|
+
}, z.core.$strict>;
|
|
1371
|
+
}, z.core.$strict>;
|
|
1085
1372
|
type HostedAiOutputFieldType = z.infer<typeof HostedAiOutputFieldTypeSchema>;
|
|
1086
1373
|
type HostedAiOutputField = z.infer<typeof HostedAiOutputFieldSchema>;
|
|
1374
|
+
type HostedAiModelTier = z.infer<typeof HostedAiModelTierSchema>;
|
|
1375
|
+
type HostedAiFeature = z.infer<typeof HostedAiFeatureSchema>;
|
|
1087
1376
|
type HostedAiStreamTextInput = z.infer<typeof HostedAiStreamTextInputSchema>;
|
|
1088
1377
|
type HostedAiStreamStructuredObjectInput = z.infer<typeof HostedAiStreamStructuredObjectInputSchema>;
|
|
1089
1378
|
type HostedAiNoteSuggestionStreamInput = z.infer<typeof HostedAiNoteSuggestionStreamInputSchema>;
|
|
1090
1379
|
type HostedAiNoteSuggestionObject = z.infer<typeof HostedAiNoteSuggestionObjectSchema>;
|
|
1091
1380
|
type HostedAiStreamPart = z.infer<typeof HostedAiStreamPartSchema>;
|
|
1381
|
+
type HostedAiStatusInput = z.infer<typeof HostedAiStatusInputSchema>;
|
|
1382
|
+
type HostedAiUnavailableReason = z.infer<typeof HostedAiUnavailableReasonSchema>;
|
|
1383
|
+
type HostedAiCreditPolicyId = z.infer<typeof HostedAiCreditPolicyIdSchema>;
|
|
1384
|
+
type HostedAiCreditPeriodKind = z.infer<typeof HostedAiCreditPeriodKindSchema>;
|
|
1385
|
+
type HostedAiCreditStatus = z.infer<typeof HostedAiCreditStatusSchema>;
|
|
1386
|
+
type HostedAiTierStatus = z.infer<typeof HostedAiTierStatusSchema>;
|
|
1387
|
+
type HostedAiFeatureStatus = z.infer<typeof HostedAiFeatureStatusSchema>;
|
|
1388
|
+
type HostedAiStatusOutput = z.infer<typeof HostedAiStatusOutputSchema>;
|
|
1092
1389
|
//#endregion
|
|
1093
1390
|
//#region src/schemas/notebase.d.ts
|
|
1094
1391
|
declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
@@ -1213,12 +1510,14 @@ declare const notebaseUpdateDataSchema: z.ZodObject<{
|
|
|
1213
1510
|
name: z.ZodOptional<z.ZodString>;
|
|
1214
1511
|
srsNewPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1215
1512
|
srsReviewsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1513
|
+
srsDesiredRetention: z.ZodOptional<z.ZodNumber>;
|
|
1216
1514
|
}, z.core.$strict>;
|
|
1217
1515
|
type NotebaseUpdateData = z.infer<typeof notebaseUpdateDataSchema>;
|
|
1218
1516
|
declare const NotebaseUpdateInputSchema: z.ZodObject<{
|
|
1219
1517
|
name: z.ZodOptional<z.ZodString>;
|
|
1220
1518
|
srsNewPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1221
1519
|
srsReviewsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
1520
|
+
srsDesiredRetention: z.ZodOptional<z.ZodNumber>;
|
|
1222
1521
|
id: z.ZodUUID;
|
|
1223
1522
|
}, z.core.$strict>;
|
|
1224
1523
|
type NotebaseUpdateInput = z.infer<typeof NotebaseUpdateInputSchema>;
|
|
@@ -1288,6 +1587,7 @@ declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
|
1288
1587
|
position: z.ZodNumber;
|
|
1289
1588
|
isPrimary: z.ZodBoolean;
|
|
1290
1589
|
width: z.ZodNullable<z.ZodNumber>;
|
|
1590
|
+
wrap: z.ZodBoolean;
|
|
1291
1591
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1292
1592
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1293
1593
|
}, z.core.$strip>>;
|
|
@@ -1355,6 +1655,7 @@ declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
|
1355
1655
|
position: z.ZodNumber;
|
|
1356
1656
|
isPrimary: z.ZodBoolean;
|
|
1357
1657
|
width: z.ZodNullable<z.ZodNumber>;
|
|
1658
|
+
wrap: z.ZodBoolean;
|
|
1358
1659
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1359
1660
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1360
1661
|
}, z.core.$strip>>;
|
|
@@ -1393,6 +1694,7 @@ declare const notebaseColumnSchema: z.ZodObject<{
|
|
|
1393
1694
|
position: z.ZodNumber;
|
|
1394
1695
|
isPrimary: z.ZodBoolean;
|
|
1395
1696
|
width: z.ZodNullable<z.ZodNumber>;
|
|
1697
|
+
wrap: z.ZodBoolean;
|
|
1396
1698
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1397
1699
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1398
1700
|
}, z.core.$strip>;
|
|
@@ -1451,6 +1753,7 @@ declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
|
1451
1753
|
}, z.core.$strip>>>;
|
|
1452
1754
|
}, z.core.$strip>], "type">>;
|
|
1453
1755
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1756
|
+
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
1454
1757
|
}, z.core.$strict>;
|
|
1455
1758
|
type NotebaseColumnUpdateData = z.infer<typeof notebaseColumnUpdateDataSchema>;
|
|
1456
1759
|
declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
@@ -1516,6 +1819,7 @@ declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
|
1516
1819
|
}, z.core.$strip>>>;
|
|
1517
1820
|
}, z.core.$strip>], "type">>;
|
|
1518
1821
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1822
|
+
wrap: z.ZodOptional<z.ZodBoolean>;
|
|
1519
1823
|
}, z.core.$strict>;
|
|
1520
1824
|
}, z.core.$strip>;
|
|
1521
1825
|
type NotebaseColumnUpdateInput = z.infer<typeof NotebaseColumnUpdateInputSchema>;
|
|
@@ -1621,6 +1925,33 @@ declare const NotebaseRowReorderOutputSchema: z.ZodObject<{
|
|
|
1621
1925
|
}, z.core.$strip>;
|
|
1622
1926
|
type NotebaseRowReorderOutput = z.infer<typeof NotebaseRowReorderOutputSchema>;
|
|
1623
1927
|
//#endregion
|
|
1928
|
+
//#region src/schemas/notebase-stats.d.ts
|
|
1929
|
+
declare const notebaseActivityStatsItemSchema: z.ZodObject<{
|
|
1930
|
+
date: z.ZodISODate;
|
|
1931
|
+
notes: z.ZodNumber;
|
|
1932
|
+
}, z.core.$strict>;
|
|
1933
|
+
type NotebaseActivityStatsItem = z.infer<typeof notebaseActivityStatsItemSchema>;
|
|
1934
|
+
declare const notebaseActivityStatsOutputSchema: z.ZodObject<{
|
|
1935
|
+
daily: z.ZodArray<z.ZodObject<{
|
|
1936
|
+
date: z.ZodISODate;
|
|
1937
|
+
notes: z.ZodNumber;
|
|
1938
|
+
}, z.core.$strict>>;
|
|
1939
|
+
}, z.core.$strict>;
|
|
1940
|
+
type NotebaseActivityStatsOutput = z.infer<typeof notebaseActivityStatsOutputSchema>;
|
|
1941
|
+
declare const notebaseRowGrowthStatsItemSchema: z.ZodObject<{
|
|
1942
|
+
date: z.ZodISODate;
|
|
1943
|
+
delta: z.ZodNumber;
|
|
1944
|
+
}, z.core.$strict>;
|
|
1945
|
+
type NotebaseRowGrowthStatsItem = z.infer<typeof notebaseRowGrowthStatsItemSchema>;
|
|
1946
|
+
declare const notebaseRowGrowthStatsOutputSchema: z.ZodObject<{
|
|
1947
|
+
baseTotal: z.ZodNumber;
|
|
1948
|
+
daily: z.ZodArray<z.ZodObject<{
|
|
1949
|
+
date: z.ZodISODate;
|
|
1950
|
+
delta: z.ZodNumber;
|
|
1951
|
+
}, z.core.$strict>>;
|
|
1952
|
+
}, z.core.$strict>;
|
|
1953
|
+
type NotebaseRowGrowthStatsOutput = z.infer<typeof notebaseRowGrowthStatsOutputSchema>;
|
|
1954
|
+
//#endregion
|
|
1624
1955
|
//#region src/schemas/notebase-view.d.ts
|
|
1625
1956
|
declare const notebaseViewTypeSchema: z.ZodEnum<{
|
|
1626
1957
|
table: "table";
|
|
@@ -1813,6 +2144,7 @@ declare const srsRevlogSchema: z.ZodObject<{
|
|
|
1813
2144
|
review: "review";
|
|
1814
2145
|
relearning: "relearning";
|
|
1815
2146
|
}>;
|
|
2147
|
+
stability: z.ZodNumber;
|
|
1816
2148
|
afterScheduleStatus: z.ZodEnum<{
|
|
1817
2149
|
new: "new";
|
|
1818
2150
|
learning: "learning";
|
|
@@ -1820,6 +2152,7 @@ declare const srsRevlogSchema: z.ZodObject<{
|
|
|
1820
2152
|
suspended: "suspended";
|
|
1821
2153
|
buried: "buried";
|
|
1822
2154
|
}>;
|
|
2155
|
+
afterStability: z.ZodNumber;
|
|
1823
2156
|
reviewedAt: z.ZodCoercedDate<unknown>;
|
|
1824
2157
|
durationMs: z.ZodNumber;
|
|
1825
2158
|
fsrsReviewLogSnapshot: z.ZodObject<{
|
|
@@ -1844,15 +2177,15 @@ declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
|
|
|
1844
2177
|
review: "review";
|
|
1845
2178
|
relearning: "relearning";
|
|
1846
2179
|
}>;
|
|
2180
|
+
stability: z.ZodNumber;
|
|
1847
2181
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
2182
|
+
cardId: z.ZodUUID;
|
|
1848
2183
|
rating: z.ZodEnum<{
|
|
1849
2184
|
again: "again";
|
|
1850
2185
|
hard: "hard";
|
|
1851
2186
|
good: "good";
|
|
1852
2187
|
easy: "easy";
|
|
1853
2188
|
}>;
|
|
1854
|
-
cardId: z.ZodUUID;
|
|
1855
|
-
durationMs: z.ZodNumber;
|
|
1856
2189
|
afterScheduleStatus: z.ZodEnum<{
|
|
1857
2190
|
new: "new";
|
|
1858
2191
|
learning: "learning";
|
|
@@ -1860,9 +2193,47 @@ declare const srsRevlogWithoutSnapshotSchema: z.ZodObject<{
|
|
|
1860
2193
|
suspended: "suspended";
|
|
1861
2194
|
buried: "buried";
|
|
1862
2195
|
}>;
|
|
2196
|
+
afterStability: z.ZodNumber;
|
|
1863
2197
|
reviewedAt: z.ZodCoercedDate<unknown>;
|
|
2198
|
+
durationMs: z.ZodNumber;
|
|
1864
2199
|
}, z.core.$strip>;
|
|
1865
2200
|
type SrsRevlogWithoutSnapshot = z.infer<typeof srsRevlogWithoutSnapshotSchema>;
|
|
2201
|
+
declare const srsListCardRevlogsInputSchema: z.ZodObject<{
|
|
2202
|
+
cardId: z.ZodUUID;
|
|
2203
|
+
}, z.core.$strict>;
|
|
2204
|
+
type SrsListCardRevlogsInput = z.infer<typeof srsListCardRevlogsInputSchema>;
|
|
2205
|
+
declare const srsListCardRevlogsOutputSchema: z.ZodObject<{
|
|
2206
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2207
|
+
id: z.ZodUUID;
|
|
2208
|
+
notebaseId: z.ZodUUID;
|
|
2209
|
+
state: z.ZodEnum<{
|
|
2210
|
+
new: "new";
|
|
2211
|
+
learning: "learning";
|
|
2212
|
+
review: "review";
|
|
2213
|
+
relearning: "relearning";
|
|
2214
|
+
}>;
|
|
2215
|
+
stability: z.ZodNumber;
|
|
2216
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
2217
|
+
cardId: z.ZodUUID;
|
|
2218
|
+
rating: z.ZodEnum<{
|
|
2219
|
+
again: "again";
|
|
2220
|
+
hard: "hard";
|
|
2221
|
+
good: "good";
|
|
2222
|
+
easy: "easy";
|
|
2223
|
+
}>;
|
|
2224
|
+
afterScheduleStatus: z.ZodEnum<{
|
|
2225
|
+
new: "new";
|
|
2226
|
+
learning: "learning";
|
|
2227
|
+
review: "review";
|
|
2228
|
+
suspended: "suspended";
|
|
2229
|
+
buried: "buried";
|
|
2230
|
+
}>;
|
|
2231
|
+
afterStability: z.ZodNumber;
|
|
2232
|
+
reviewedAt: z.ZodCoercedDate<unknown>;
|
|
2233
|
+
durationMs: z.ZodNumber;
|
|
2234
|
+
}, z.core.$strip>>;
|
|
2235
|
+
}, z.core.$strict>;
|
|
2236
|
+
type SrsListCardRevlogsOutput = z.infer<typeof srsListCardRevlogsOutputSchema>;
|
|
1866
2237
|
declare const srsReviewOutputSchema: z.ZodObject<{
|
|
1867
2238
|
card: z.ZodObject<{
|
|
1868
2239
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -1910,6 +2281,7 @@ declare const srsReviewOutputSchema: z.ZodObject<{
|
|
|
1910
2281
|
review: "review";
|
|
1911
2282
|
relearning: "relearning";
|
|
1912
2283
|
}>;
|
|
2284
|
+
stability: z.ZodNumber;
|
|
1913
2285
|
afterScheduleStatus: z.ZodEnum<{
|
|
1914
2286
|
new: "new";
|
|
1915
2287
|
learning: "learning";
|
|
@@ -1917,6 +2289,7 @@ declare const srsReviewOutputSchema: z.ZodObject<{
|
|
|
1917
2289
|
suspended: "suspended";
|
|
1918
2290
|
buried: "buried";
|
|
1919
2291
|
}>;
|
|
2292
|
+
afterStability: z.ZodNumber;
|
|
1920
2293
|
reviewedAt: z.ZodCoercedDate<unknown>;
|
|
1921
2294
|
durationMs: z.ZodNumber;
|
|
1922
2295
|
fsrsReviewLogSnapshot: z.ZodObject<{
|
|
@@ -1983,6 +2356,62 @@ declare const srsSetCardSuspendedOutputSchema: z.ZodObject<{
|
|
|
1983
2356
|
}, z.core.$strip>;
|
|
1984
2357
|
type SrsSetCardSuspendedOutput = SrsTxidOutput;
|
|
1985
2358
|
//#endregion
|
|
2359
|
+
//#region src/schemas/srs-stats.d.ts
|
|
2360
|
+
declare const srsActivityStatsItemSchema: z.ZodObject<{
|
|
2361
|
+
date: z.ZodISODate;
|
|
2362
|
+
answers: z.ZodNumber;
|
|
2363
|
+
durationMs: z.ZodNumber;
|
|
2364
|
+
}, z.core.$strict>;
|
|
2365
|
+
type SrsActivityStatsItem = z.infer<typeof srsActivityStatsItemSchema>;
|
|
2366
|
+
declare const srsActivityStatsOutputSchema: z.ZodObject<{
|
|
2367
|
+
learnedCards: z.ZodNumber;
|
|
2368
|
+
daily: z.ZodArray<z.ZodObject<{
|
|
2369
|
+
date: z.ZodISODate;
|
|
2370
|
+
answers: z.ZodNumber;
|
|
2371
|
+
durationMs: z.ZodNumber;
|
|
2372
|
+
}, z.core.$strict>>;
|
|
2373
|
+
}, z.core.$strict>;
|
|
2374
|
+
type SrsActivityStatsOutput = z.infer<typeof srsActivityStatsOutputSchema>;
|
|
2375
|
+
declare const srsMemoryGrowthStatsItemSchema: z.ZodObject<{
|
|
2376
|
+
date: z.ZodISODate;
|
|
2377
|
+
delta: z.ZodNumber;
|
|
2378
|
+
}, z.core.$strict>;
|
|
2379
|
+
type SrsMemoryGrowthStatsItem = z.infer<typeof srsMemoryGrowthStatsItemSchema>;
|
|
2380
|
+
declare const srsMemoryGrowthStatsOutputSchema: z.ZodObject<{
|
|
2381
|
+
baseTotal: z.ZodNumber;
|
|
2382
|
+
daily: z.ZodArray<z.ZodObject<{
|
|
2383
|
+
date: z.ZodISODate;
|
|
2384
|
+
delta: z.ZodNumber;
|
|
2385
|
+
}, z.core.$strict>>;
|
|
2386
|
+
}, z.core.$strict>;
|
|
2387
|
+
type SrsMemoryGrowthStatsOutput = z.infer<typeof srsMemoryGrowthStatsOutputSchema>;
|
|
2388
|
+
//#endregion
|
|
2389
|
+
//#region src/schemas/stats.d.ts
|
|
2390
|
+
declare const statsInputSchema: z.ZodObject<{
|
|
2391
|
+
notebaseIds: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUUID>, z.ZodTransform<string[], string[]>>>;
|
|
2392
|
+
from: z.ZodOptional<z.ZodISODate>;
|
|
2393
|
+
to: z.ZodISODate;
|
|
2394
|
+
timezone: z.ZodString;
|
|
2395
|
+
}, z.core.$strict>;
|
|
2396
|
+
type StatsInput = z.infer<typeof statsInputSchema>;
|
|
2397
|
+
declare const activityStatsOutputSchema: z.ZodObject<{
|
|
2398
|
+
srs: z.ZodObject<{
|
|
2399
|
+
learnedCards: z.ZodNumber;
|
|
2400
|
+
daily: z.ZodArray<z.ZodObject<{
|
|
2401
|
+
date: z.ZodISODate;
|
|
2402
|
+
answers: z.ZodNumber;
|
|
2403
|
+
durationMs: z.ZodNumber;
|
|
2404
|
+
}, z.core.$strict>>;
|
|
2405
|
+
}, z.core.$strict>;
|
|
2406
|
+
notebase: z.ZodObject<{
|
|
2407
|
+
daily: z.ZodArray<z.ZodObject<{
|
|
2408
|
+
date: z.ZodISODate;
|
|
2409
|
+
notes: z.ZodNumber;
|
|
2410
|
+
}, z.core.$strict>>;
|
|
2411
|
+
}, z.core.$strict>;
|
|
2412
|
+
}, z.core.$strict>;
|
|
2413
|
+
type ActivityStatsOutput = z.infer<typeof activityStatsOutputSchema>;
|
|
2414
|
+
//#endregion
|
|
1986
2415
|
//#region src/schemas/user.d.ts
|
|
1987
2416
|
declare const userEnsureTimezoneInputSchema: z.ZodObject<{
|
|
1988
2417
|
timezone: z.ZodString;
|
|
@@ -2075,9 +2504,9 @@ declare const contract: {
|
|
|
2075
2504
|
billing: {
|
|
2076
2505
|
status: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
2077
2506
|
plan: import("zod").ZodEnum<{
|
|
2507
|
+
ultra: "ultra";
|
|
2078
2508
|
free: "free";
|
|
2079
2509
|
pro: "pro";
|
|
2080
|
-
ultra: "ultra";
|
|
2081
2510
|
}>;
|
|
2082
2511
|
status: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2083
2512
|
incomplete: "incomplete";
|
|
@@ -2101,8 +2530,8 @@ declare const contract: {
|
|
|
2101
2530
|
}>>;
|
|
2102
2531
|
scheduledChange: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
2103
2532
|
plan: import("zod").ZodEnum<{
|
|
2104
|
-
pro: "pro";
|
|
2105
2533
|
ultra: "ultra";
|
|
2534
|
+
pro: "pro";
|
|
2106
2535
|
}>;
|
|
2107
2536
|
interval: import("zod").ZodEnum<{
|
|
2108
2537
|
month: "month";
|
|
@@ -2136,8 +2565,8 @@ declare const contract: {
|
|
|
2136
2565
|
"zh-TW": "zh-TW";
|
|
2137
2566
|
}>;
|
|
2138
2567
|
plan: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2139
|
-
pro: "pro";
|
|
2140
2568
|
ultra: "ultra";
|
|
2569
|
+
pro: "pro";
|
|
2141
2570
|
}>>;
|
|
2142
2571
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
2143
2572
|
url: import("zod").ZodURL;
|
|
@@ -2446,24 +2875,122 @@ declare const contract: {
|
|
|
2446
2875
|
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "EBOOK_BETA_RESTRICTED" | "EBOOK_NOT_FOUND">>, Record<never, never>>;
|
|
2447
2876
|
};
|
|
2448
2877
|
hostedAi: {
|
|
2878
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2879
|
+
credits: import("zod").ZodArray<import("zod").ZodObject<{
|
|
2880
|
+
periodKind: import("zod").ZodEnum<{
|
|
2881
|
+
daily: "daily";
|
|
2882
|
+
weekly: "weekly";
|
|
2883
|
+
}>;
|
|
2884
|
+
usedPercent: import("zod").ZodNumber;
|
|
2885
|
+
resetAt: import("zod").ZodNullable<import("zod").ZodISODateTime>;
|
|
2886
|
+
features: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
2887
|
+
pageTranslation: "pageTranslation";
|
|
2888
|
+
customAction: "customAction";
|
|
2889
|
+
noteSuggestion: "noteSuggestion";
|
|
2890
|
+
}>>;
|
|
2891
|
+
}, import("zod/v4/core").$strict>>;
|
|
2892
|
+
features: import("zod").ZodObject<{
|
|
2893
|
+
pageTranslation: import("zod").ZodObject<{
|
|
2894
|
+
normal: import("zod").ZodObject<{
|
|
2895
|
+
accessAllowed: import("zod").ZodBoolean;
|
|
2896
|
+
available: import("zod").ZodBoolean;
|
|
2897
|
+
unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2898
|
+
authentication_required: "authentication_required";
|
|
2899
|
+
ultra_required: "ultra_required";
|
|
2900
|
+
quota_exhausted: "quota_exhausted";
|
|
2901
|
+
service_unavailable: "service_unavailable";
|
|
2902
|
+
}>>;
|
|
2903
|
+
requiresUltra: import("zod").ZodBoolean;
|
|
2904
|
+
modelRevision: import("zod").ZodString;
|
|
2905
|
+
}, import("zod/v4/core").$strict>;
|
|
2906
|
+
ultra: import("zod").ZodObject<{
|
|
2907
|
+
accessAllowed: import("zod").ZodBoolean;
|
|
2908
|
+
available: import("zod").ZodBoolean;
|
|
2909
|
+
unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2910
|
+
authentication_required: "authentication_required";
|
|
2911
|
+
ultra_required: "ultra_required";
|
|
2912
|
+
quota_exhausted: "quota_exhausted";
|
|
2913
|
+
service_unavailable: "service_unavailable";
|
|
2914
|
+
}>>;
|
|
2915
|
+
requiresUltra: import("zod").ZodBoolean;
|
|
2916
|
+
modelRevision: import("zod").ZodString;
|
|
2917
|
+
}, import("zod/v4/core").$strict>;
|
|
2918
|
+
}, import("zod/v4/core").$strict>;
|
|
2919
|
+
customAction: import("zod").ZodObject<{
|
|
2920
|
+
normal: import("zod").ZodObject<{
|
|
2921
|
+
accessAllowed: import("zod").ZodBoolean;
|
|
2922
|
+
available: import("zod").ZodBoolean;
|
|
2923
|
+
unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2924
|
+
authentication_required: "authentication_required";
|
|
2925
|
+
ultra_required: "ultra_required";
|
|
2926
|
+
quota_exhausted: "quota_exhausted";
|
|
2927
|
+
service_unavailable: "service_unavailable";
|
|
2928
|
+
}>>;
|
|
2929
|
+
requiresUltra: import("zod").ZodBoolean;
|
|
2930
|
+
modelRevision: import("zod").ZodString;
|
|
2931
|
+
}, import("zod/v4/core").$strict>;
|
|
2932
|
+
ultra: import("zod").ZodObject<{
|
|
2933
|
+
accessAllowed: import("zod").ZodBoolean;
|
|
2934
|
+
available: import("zod").ZodBoolean;
|
|
2935
|
+
unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2936
|
+
authentication_required: "authentication_required";
|
|
2937
|
+
ultra_required: "ultra_required";
|
|
2938
|
+
quota_exhausted: "quota_exhausted";
|
|
2939
|
+
service_unavailable: "service_unavailable";
|
|
2940
|
+
}>>;
|
|
2941
|
+
requiresUltra: import("zod").ZodBoolean;
|
|
2942
|
+
modelRevision: import("zod").ZodString;
|
|
2943
|
+
}, import("zod/v4/core").$strict>;
|
|
2944
|
+
}, import("zod/v4/core").$strict>;
|
|
2945
|
+
noteSuggestion: import("zod").ZodObject<{
|
|
2946
|
+
normal: import("zod").ZodObject<{
|
|
2947
|
+
accessAllowed: import("zod").ZodBoolean;
|
|
2948
|
+
available: import("zod").ZodBoolean;
|
|
2949
|
+
unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2950
|
+
authentication_required: "authentication_required";
|
|
2951
|
+
ultra_required: "ultra_required";
|
|
2952
|
+
quota_exhausted: "quota_exhausted";
|
|
2953
|
+
service_unavailable: "service_unavailable";
|
|
2954
|
+
}>>;
|
|
2955
|
+
requiresUltra: import("zod").ZodBoolean;
|
|
2956
|
+
modelRevision: import("zod").ZodString;
|
|
2957
|
+
}, import("zod/v4/core").$strict>;
|
|
2958
|
+
ultra: import("zod").ZodObject<{
|
|
2959
|
+
accessAllowed: import("zod").ZodBoolean;
|
|
2960
|
+
available: import("zod").ZodBoolean;
|
|
2961
|
+
unavailableReason: import("zod").ZodNullable<import("zod").ZodEnum<{
|
|
2962
|
+
authentication_required: "authentication_required";
|
|
2963
|
+
ultra_required: "ultra_required";
|
|
2964
|
+
quota_exhausted: "quota_exhausted";
|
|
2965
|
+
service_unavailable: "service_unavailable";
|
|
2966
|
+
}>>;
|
|
2967
|
+
requiresUltra: import("zod").ZodBoolean;
|
|
2968
|
+
modelRevision: import("zod").ZodString;
|
|
2969
|
+
}, import("zod/v4/core").$strict>;
|
|
2970
|
+
}, import("zod/v4/core").$strict>;
|
|
2971
|
+
}, import("zod/v4/core").$strict>;
|
|
2972
|
+
}, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
|
|
2449
2973
|
translate: {
|
|
2450
2974
|
streamText: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2451
|
-
instructions: import("zod").
|
|
2452
|
-
system: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2975
|
+
instructions: import("zod").ZodString;
|
|
2453
2976
|
prompt: import("zod").ZodString;
|
|
2454
2977
|
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2978
|
+
modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2979
|
+
normal: "normal";
|
|
2980
|
+
ultra: "ultra";
|
|
2981
|
+
}>>;
|
|
2982
|
+
requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
2455
2983
|
}, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
2456
2984
|
[x: string]: unknown;
|
|
2457
2985
|
type: string;
|
|
2458
2986
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
2459
2987
|
[x: string]: unknown;
|
|
2460
2988
|
type: string;
|
|
2461
|
-
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
2989
|
+
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
|
|
2462
2990
|
};
|
|
2463
2991
|
customAction: {
|
|
2464
2992
|
streamStructuredObject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2465
|
-
instructions: import("zod").
|
|
2466
|
-
system: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2993
|
+
instructions: import("zod").ZodString;
|
|
2467
2994
|
prompt: import("zod").ZodString;
|
|
2468
2995
|
outputSchema: import("zod").ZodArray<import("zod").ZodObject<{
|
|
2469
2996
|
name: import("zod").ZodString;
|
|
@@ -2473,26 +3000,36 @@ declare const contract: {
|
|
|
2473
3000
|
}>;
|
|
2474
3001
|
}, import("zod/v4/core").$strict>>;
|
|
2475
3002
|
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3003
|
+
modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
3004
|
+
normal: "normal";
|
|
3005
|
+
ultra: "ultra";
|
|
3006
|
+
}>>;
|
|
3007
|
+
requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
2476
3008
|
}, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
2477
3009
|
[x: string]: unknown;
|
|
2478
3010
|
type: string;
|
|
2479
3011
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
2480
3012
|
[x: string]: unknown;
|
|
2481
3013
|
type: string;
|
|
2482
|
-
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
3014
|
+
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
|
|
2483
3015
|
};
|
|
2484
3016
|
noteSuggestion: {
|
|
2485
3017
|
streamStructuredObject: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2486
3018
|
instructions: import("zod").ZodString;
|
|
2487
3019
|
prompt: import("zod").ZodString;
|
|
2488
3020
|
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3021
|
+
modelTier: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
3022
|
+
normal: "normal";
|
|
3023
|
+
ultra: "ultra";
|
|
3024
|
+
}>>;
|
|
3025
|
+
requestId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
2489
3026
|
}, import("zod/v4/core").$strict>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
2490
3027
|
[x: string]: unknown;
|
|
2491
3028
|
type: string;
|
|
2492
3029
|
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
2493
3030
|
[x: string]: unknown;
|
|
2494
3031
|
type: string;
|
|
2495
|
-
}, unknown, void>>, Record<never, never>, Record<never, never>>;
|
|
3032
|
+
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "HOSTED_AI_TIER_RESTRICTED" | "HOSTED_AI_QUOTA_EXHAUSTED">>, Record<never, never>>;
|
|
2496
3033
|
};
|
|
2497
3034
|
};
|
|
2498
3035
|
notebase: {
|
|
@@ -2548,6 +3085,7 @@ declare const contract: {
|
|
|
2548
3085
|
position: import("zod").ZodNumber;
|
|
2549
3086
|
isPrimary: import("zod").ZodBoolean;
|
|
2550
3087
|
width: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
3088
|
+
wrap: import("zod").ZodBoolean;
|
|
2551
3089
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
2552
3090
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
2553
3091
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -2616,6 +3154,7 @@ declare const contract: {
|
|
|
2616
3154
|
position: import("zod").ZodNumber;
|
|
2617
3155
|
isPrimary: import("zod").ZodBoolean;
|
|
2618
3156
|
width: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
3157
|
+
wrap: import("zod").ZodBoolean;
|
|
2619
3158
|
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
2620
3159
|
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
2621
3160
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -2667,6 +3206,7 @@ declare const contract: {
|
|
|
2667
3206
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2668
3207
|
srsNewPerDay: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2669
3208
|
srsReviewsPerDay: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
3209
|
+
srsDesiredRetention: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
2670
3210
|
id: import("zod").ZodUUID;
|
|
2671
3211
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
2672
3212
|
txid: import("zod").ZodNumber;
|
|
@@ -2738,6 +3278,7 @@ declare const contract: {
|
|
|
2738
3278
|
}, import("zod/v4/core").$strip>>>;
|
|
2739
3279
|
}, import("zod/v4/core").$strip>], "type">>;
|
|
2740
3280
|
width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
3281
|
+
wrap: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2741
3282
|
}, import("zod/v4/core").$strict>;
|
|
2742
3283
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
2743
3284
|
txid: import("zod").ZodNumber;
|
|
@@ -2808,6 +3349,39 @@ declare const contract: {
|
|
|
2808
3349
|
learning: "learning";
|
|
2809
3350
|
review: "review";
|
|
2810
3351
|
}>, import("zod").ZodNumber>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
3352
|
+
listCardRevlogs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3353
|
+
cardId: import("zod").ZodUUID;
|
|
3354
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
3355
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3356
|
+
id: import("zod").ZodUUID;
|
|
3357
|
+
notebaseId: import("zod").ZodUUID;
|
|
3358
|
+
state: import("zod").ZodEnum<{
|
|
3359
|
+
new: "new";
|
|
3360
|
+
learning: "learning";
|
|
3361
|
+
review: "review";
|
|
3362
|
+
relearning: "relearning";
|
|
3363
|
+
}>;
|
|
3364
|
+
stability: import("zod").ZodNumber;
|
|
3365
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
3366
|
+
cardId: import("zod").ZodUUID;
|
|
3367
|
+
rating: import("zod").ZodEnum<{
|
|
3368
|
+
again: "again";
|
|
3369
|
+
hard: "hard";
|
|
3370
|
+
good: "good";
|
|
3371
|
+
easy: "easy";
|
|
3372
|
+
}>;
|
|
3373
|
+
afterScheduleStatus: import("zod").ZodEnum<{
|
|
3374
|
+
new: "new";
|
|
3375
|
+
learning: "learning";
|
|
3376
|
+
review: "review";
|
|
3377
|
+
suspended: "suspended";
|
|
3378
|
+
buried: "buried";
|
|
3379
|
+
}>;
|
|
3380
|
+
afterStability: import("zod").ZodNumber;
|
|
3381
|
+
reviewedAt: import("zod").ZodCoercedDate<unknown>;
|
|
3382
|
+
durationMs: import("zod").ZodNumber;
|
|
3383
|
+
}, import("zod/v4/core").$strip>>;
|
|
3384
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND">>, Record<never, never>>;
|
|
2811
3385
|
review: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2812
3386
|
cardId: import("zod").ZodUUID;
|
|
2813
3387
|
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
@@ -2866,6 +3440,7 @@ declare const contract: {
|
|
|
2866
3440
|
review: "review";
|
|
2867
3441
|
relearning: "relearning";
|
|
2868
3442
|
}>;
|
|
3443
|
+
stability: import("zod").ZodNumber;
|
|
2869
3444
|
afterScheduleStatus: import("zod").ZodEnum<{
|
|
2870
3445
|
new: "new";
|
|
2871
3446
|
learning: "learning";
|
|
@@ -2873,6 +3448,7 @@ declare const contract: {
|
|
|
2873
3448
|
suspended: "suspended";
|
|
2874
3449
|
buried: "buried";
|
|
2875
3450
|
}>;
|
|
3451
|
+
afterStability: import("zod").ZodNumber;
|
|
2876
3452
|
reviewedAt: import("zod").ZodCoercedDate<unknown>;
|
|
2877
3453
|
durationMs: import("zod").ZodNumber;
|
|
2878
3454
|
fsrsReviewLogSnapshot: import("zod").ZodObject<{
|
|
@@ -2939,6 +3515,53 @@ declare const contract: {
|
|
|
2939
3515
|
txid: import("zod").ZodNumber;
|
|
2940
3516
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_ALREADY_SUSPENDED" | "CARD_NOT_SUSPENDED" | "CARD_STATUS_CHANGE_UNAVAILABLE">>, Record<never, never>>;
|
|
2941
3517
|
};
|
|
3518
|
+
stats: {
|
|
3519
|
+
activity: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3520
|
+
notebaseIds: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodUUID>, import("zod").ZodTransform<string[], string[]>>>;
|
|
3521
|
+
from: import("zod").ZodOptional<import("zod").ZodISODate>;
|
|
3522
|
+
to: import("zod").ZodISODate;
|
|
3523
|
+
timezone: import("zod").ZodString;
|
|
3524
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
3525
|
+
srs: import("zod").ZodObject<{
|
|
3526
|
+
learnedCards: import("zod").ZodNumber;
|
|
3527
|
+
daily: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3528
|
+
date: import("zod").ZodISODate;
|
|
3529
|
+
answers: import("zod").ZodNumber;
|
|
3530
|
+
durationMs: import("zod").ZodNumber;
|
|
3531
|
+
}, import("zod/v4/core").$strict>>;
|
|
3532
|
+
}, import("zod/v4/core").$strict>;
|
|
3533
|
+
notebase: import("zod").ZodObject<{
|
|
3534
|
+
daily: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3535
|
+
date: import("zod").ZodISODate;
|
|
3536
|
+
notes: import("zod").ZodNumber;
|
|
3537
|
+
}, import("zod/v4/core").$strict>>;
|
|
3538
|
+
}, import("zod/v4/core").$strict>;
|
|
3539
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
3540
|
+
srsMemoryGrowth: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3541
|
+
notebaseIds: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodUUID>, import("zod").ZodTransform<string[], string[]>>>;
|
|
3542
|
+
from: import("zod").ZodOptional<import("zod").ZodISODate>;
|
|
3543
|
+
to: import("zod").ZodISODate;
|
|
3544
|
+
timezone: import("zod").ZodString;
|
|
3545
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
3546
|
+
baseTotal: import("zod").ZodNumber;
|
|
3547
|
+
daily: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3548
|
+
date: import("zod").ZodISODate;
|
|
3549
|
+
delta: import("zod").ZodNumber;
|
|
3550
|
+
}, import("zod/v4/core").$strict>>;
|
|
3551
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
3552
|
+
notebaseRowGrowth: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3553
|
+
notebaseIds: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodArray<import("zod").ZodUUID>, import("zod").ZodTransform<string[], string[]>>>;
|
|
3554
|
+
from: import("zod").ZodOptional<import("zod").ZodISODate>;
|
|
3555
|
+
to: import("zod").ZodISODate;
|
|
3556
|
+
timezone: import("zod").ZodString;
|
|
3557
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
3558
|
+
baseTotal: import("zod").ZodNumber;
|
|
3559
|
+
daily: import("zod").ZodArray<import("zod").ZodObject<{
|
|
3560
|
+
date: import("zod").ZodISODate;
|
|
3561
|
+
delta: import("zod").ZodNumber;
|
|
3562
|
+
}, import("zod/v4/core").$strict>>;
|
|
3563
|
+
}, import("zod/v4/core").$strict>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
3564
|
+
};
|
|
2942
3565
|
user: {
|
|
2943
3566
|
ensureTimezone: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
2944
3567
|
timezone: import("zod").ZodString;
|
|
@@ -3013,5 +3636,5 @@ declare const contract: {
|
|
|
3013
3636
|
};
|
|
3014
3637
|
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
3015
3638
|
//#endregion
|
|
3016
|
-
export { BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, BillingAccessSource, BillingCancelScheduledChangeOutput, BillingCheckoutPlan, BillingCreateCheckoutSessionInput, BillingCreateCustomerPortalSessionInput, BillingCurrency, BillingInterval, BillingLocale, BillingPlan, BillingScheduledChange, BillingSessionUrlOutput, BillingStatus, BillingSubscriptionStatus, Card, CardGenerateInput, CardGenerateInputSchema, CardGenerateOutput, CardGenerateOutputSchema, CardGetInput, CardGetInputSchema, CardGetOutput, CardGetOutputSchema, CardListInput, CardListInputSchema, CardListOutput, CardListOutputSchema, type CardState, CardTemplate, CardTemplateCreateInput, CardTemplateCreateInputSchema, CardTemplateCreateOutput, CardTemplateCreateOutputSchema, CardTemplateDeleteInput, CardTemplateDeleteInputSchema, CardTemplateDeleteOutput, CardTemplateDeleteOutputSchema, CardTemplateGetInput, CardTemplateGetInputSchema, CardTemplateGetOutput, CardTemplateGetOutputSchema, CardTemplateInvalidColumnsData, CardTemplateInvalidColumnsDataSchema, CardTemplateListInput, CardTemplateListInputSchema, CardTemplateListOutput, CardTemplateListOutputSchema, CardTemplateUpdateInput, CardTemplateUpdateInputSchema, CardTemplateUpdateOutput, CardTemplateUpdateOutputSchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, EbookCoverContentType, EbookDeleteInput, EbookDeleteOutput, EbookDetail, EbookFinalizeUploadInput, EbookFinalizeUploadOutput, EbookGetDownloadUrlInput, EbookGetDownloadUrlOutput, EbookGetInput, EbookGetOutput, EbookListInput, EbookListItem, EbookListOutput, EbookPresignedPost, EbookQuota, EbookRenameData, EbookRenameInput, EbookRenameOutput, EbookRequestUploadInput, EbookRequestUploadOutput, EbookStatus, EbookUpdateProgressData, EbookUpdateProgressInput, EbookUpdateProgressOutput, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS, HostedAiNoteSuggestionObject, HostedAiNoteSuggestionObjectSchema, HostedAiNoteSuggestionStreamInput, HostedAiNoteSuggestionStreamInputSchema, HostedAiOutputField, HostedAiOutputFieldSchema, HostedAiOutputFieldType, HostedAiOutputFieldTypeSchema, HostedAiStreamPart, HostedAiStreamPartSchema, HostedAiStreamStructuredObjectInput, HostedAiStreamStructuredObjectInputSchema, HostedAiStreamTextInput, HostedAiStreamTextInputSchema, NOTEBASE_ROW_CREATE_MANY_MAX_ROWS, Notebase, NotebaseColumn, NotebaseColumnCreateData, NotebaseColumnCreateInput, NotebaseColumnCreateInputSchema, NotebaseColumnCreateOutput, NotebaseColumnCreateOutputSchema, NotebaseColumnDeleteInput, NotebaseColumnDeleteInputSchema, NotebaseColumnDeleteOutput, NotebaseColumnDeleteOutputSchema, NotebaseColumnReorderInput, NotebaseColumnReorderInputSchema, NotebaseColumnReorderOutput, NotebaseColumnReorderOutputSchema, NotebaseColumnUpdateData, NotebaseColumnUpdateInput, NotebaseColumnUpdateInputSchema, NotebaseColumnUpdateOutput, NotebaseColumnUpdateOutputSchema, NotebaseCreateData, NotebaseCreateInput, NotebaseCreateInputSchema, NotebaseCreateOutput, NotebaseCreateOutputSchema, NotebaseDeleteInput, NotebaseDeleteInputSchema, NotebaseDeleteOutput, NotebaseDeleteOutputSchema, NotebaseGetInput, NotebaseGetInputSchema, NotebaseGetOutput, NotebaseGetOutputSchema, NotebaseGetSchemaInput, NotebaseGetSchemaInputSchema, NotebaseGetSchemaOutput, NotebaseGetSchemaOutputSchema, NotebaseListInput, NotebaseListInputSchema, NotebaseListItem, NotebaseListItemSchema, NotebaseListOutput, NotebaseListOutputSchema, NotebaseRow, NotebaseRowCreateData, NotebaseRowCreateInput, NotebaseRowCreateInputSchema, NotebaseRowCreateManyInput, NotebaseRowCreateManyInputSchema, NotebaseRowCreateManyOutput, NotebaseRowCreateManyOutputSchema, NotebaseRowCreateOutput, NotebaseRowCreateOutputSchema, NotebaseRowDeleteInput, NotebaseRowDeleteInputSchema, NotebaseRowDeleteOutput, NotebaseRowDeleteOutputSchema, NotebaseRowReorderInput, NotebaseRowReorderInputSchema, NotebaseRowReorderOutput, NotebaseRowReorderOutputSchema, NotebaseRowUpdateData, NotebaseRowUpdateInput, NotebaseRowUpdateInputSchema, NotebaseRowUpdateOutput, NotebaseRowUpdateOutputSchema, NotebaseUpdateData, NotebaseUpdateInput, NotebaseUpdateInputSchema, NotebaseUpdateOutput, NotebaseUpdateOutputSchema, NotebaseView, NotebaseViewConfig, NotebaseViewCreateData, NotebaseViewFilter, NotebaseViewSort, NotebaseViewType, NotebaseViewUpdateData, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, RenderedCard, type ReviewRating, SRS_REVIEW_CLIENT_ID_NAMESPACE, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, SrsManualCardStatusInput, SrsReviewClientIdCard, SrsReviewInput, SrsReviewOutput, SrsRevlog, SrsRevlogWithoutSnapshot, SrsRollbackReviewInput, SrsRollbackReviewOutput, SrsScheduleStatusStats, SrsScheduleStatusStatsInput, SrsScheduleStatusStatsOutput, SrsSetCardBuriedInput, SrsSetCardBuriedOutput, SrsSetCardSuspendedInput, SrsSetCardSuspendedOutput, SrsTxidOutput, Step, Timezone, UserEnsureTimezoneInput, UserEnsureTimezoneOutput, UserUpdateTimezoneInput, UserUpdateTimezoneOutput, VideoTranscriptCreateInput, VideoTranscriptGetInput, VideoTranscriptResource, VideoTranscriptStatus, VideoTranscriptSubtitles, VideoTranscriptUsage, billingAccessSourceSchema, billingCancelScheduledChangeOutputSchema, billingCheckoutPlanSchema, billingCreateCheckoutSessionInputSchema, billingCreateCustomerPortalSessionInputSchema, billingCurrencySchema, billingIntervalSchema, billingLocaleSchema, billingPlanSchema, billingScheduledChangeSchema, billingSessionUrlOutputSchema, billingStatusSchema, billingSubscriptionStatusSchema, cardSchema, cardStateSchema, cardTemplateSchema, contract, createSrsReviewClientId, ebookCoverContentTypeSchema, ebookDeleteInputSchema, ebookDeleteOutputSchema, ebookDetailSchema, ebookFinalizeUploadInputSchema, ebookFinalizeUploadOutputSchema, ebookGetDownloadUrlInputSchema, ebookGetDownloadUrlOutputSchema, ebookGetInputSchema, ebookGetOutputSchema, ebookListInputSchema, ebookListItemSchema, ebookListOutputSchema, ebookPresignedPostSchema, ebookQuotaSchema, ebookRenameDataSchema, ebookRenameInputSchema, ebookRenameOutputSchema, ebookRequestUploadInputSchema, ebookRequestUploadOutputSchema, ebookStatusSchema, ebookUpdateProgressDataSchema, ebookUpdateProgressInputSchema, ebookUpdateProgressOutputSchema, getPublicErrorDefinition, isPublicAppErrorCode, notebaseColumnCreateDataSchema, notebaseColumnSchema, notebaseColumnUpdateDataSchema, notebaseColumnWidthSchema, notebaseCreateDataSchema, notebaseRowCellsSchema, notebaseRowCreateDataSchema, notebaseRowSchema, notebaseRowUpdateDataSchema, notebaseSchema, notebaseUpdateDataSchema, notebaseViewConfigSchema, notebaseViewCreateDataSchema, notebaseViewFilterSchema, notebaseViewFiltersSchema, notebaseViewSchema, notebaseViewSortSchema, notebaseViewSortsSchema, notebaseViewTypeSchema, notebaseViewUpdateDataSchema, pickPublicErrorMap, renderedCardSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema, srsManualCardStatusInputSchema, srsReviewInputSchema, srsReviewOutputSchema, srsRevlogSchema, srsRevlogWithoutSnapshotSchema, srsRollbackReviewInputSchema, srsRollbackReviewOutputSchema, srsScheduleStatusStatsInputSchema, srsScheduleStatusStatsOutputSchema, srsScheduleStatusStatsSchema, srsSetCardBuriedInputSchema, srsSetCardBuriedOutputSchema, srsSetCardSuspendedInputSchema, srsSetCardSuspendedOutputSchema, srsTxidOutputSchema, stepSchema, timezoneSchema, userEnsureTimezoneInputSchema, userEnsureTimezoneOutputSchema, userUpdateTimezoneInputSchema, userUpdateTimezoneOutputSchema, videoTranscriptCreateInputSchema, videoTranscriptGetInputSchema, videoTranscriptResourceSchema, videoTranscriptStatusSchema, videoTranscriptSubtitlesSchema, videoTranscriptUsageSchema };
|
|
3639
|
+
export { ActivityStatsOutput, BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, BillingAccessSource, BillingCancelScheduledChangeOutput, BillingCheckoutPlan, BillingCreateCheckoutSessionInput, BillingCreateCustomerPortalSessionInput, BillingCurrency, BillingInterval, BillingLocale, BillingPlan, BillingScheduledChange, BillingSessionUrlOutput, BillingStatus, BillingSubscriptionStatus, Card, CardGenerateInput, CardGenerateInputSchema, CardGenerateOutput, CardGenerateOutputSchema, CardGetInput, CardGetInputSchema, CardGetOutput, CardGetOutputSchema, CardListInput, CardListInputSchema, CardListOutput, CardListOutputSchema, type CardState, CardTemplate, CardTemplateCreateInput, CardTemplateCreateInputSchema, CardTemplateCreateOutput, CardTemplateCreateOutputSchema, CardTemplateDeleteInput, CardTemplateDeleteInputSchema, CardTemplateDeleteOutput, CardTemplateDeleteOutputSchema, CardTemplateGetInput, CardTemplateGetInputSchema, CardTemplateGetOutput, CardTemplateGetOutputSchema, CardTemplateInvalidColumnsData, CardTemplateInvalidColumnsDataSchema, CardTemplateListInput, CardTemplateListInputSchema, CardTemplateListOutput, CardTemplateListOutputSchema, CardTemplateUpdateInput, CardTemplateUpdateInputSchema, CardTemplateUpdateOutput, CardTemplateUpdateOutputSchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, EbookCoverContentType, EbookDeleteInput, EbookDeleteOutput, EbookDetail, EbookFinalizeUploadInput, EbookFinalizeUploadOutput, EbookGetDownloadUrlInput, EbookGetDownloadUrlOutput, EbookGetInput, EbookGetOutput, EbookListInput, EbookListItem, EbookListOutput, EbookPresignedPost, EbookQuota, EbookRenameData, EbookRenameInput, EbookRenameOutput, EbookRequestUploadInput, EbookRequestUploadOutput, EbookStatus, EbookUpdateProgressData, EbookUpdateProgressInput, EbookUpdateProgressOutput, HOSTED_AI_CLIENT_STREAM_PART_TYPES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTES, HOSTED_AI_NOTE_SUGGESTION_MAX_NOTE_FIELDS, HostedAiCreditPeriodKind, HostedAiCreditPeriodKindSchema, HostedAiCreditPolicyId, HostedAiCreditPolicyIdSchema, HostedAiCreditStatus, HostedAiCreditStatusSchema, HostedAiFeature, HostedAiFeatureSchema, HostedAiFeatureStatus, HostedAiFeatureStatusSchema, HostedAiModelTier, HostedAiModelTierSchema, HostedAiNoteSuggestionObject, HostedAiNoteSuggestionObjectSchema, HostedAiNoteSuggestionStreamInput, HostedAiNoteSuggestionStreamInputSchema, HostedAiOutputField, HostedAiOutputFieldSchema, HostedAiOutputFieldType, HostedAiOutputFieldTypeSchema, HostedAiQuotaExhaustedDataSchema, HostedAiRequestIdSchema, HostedAiStatusInput, HostedAiStatusInputSchema, HostedAiStatusOutput, HostedAiStatusOutputSchema, HostedAiStreamPart, HostedAiStreamPartSchema, HostedAiStreamStructuredObjectInput, HostedAiStreamStructuredObjectInputSchema, HostedAiStreamTextInput, HostedAiStreamTextInputSchema, HostedAiTierRestrictedDataSchema, HostedAiTierStatus, HostedAiTierStatusSchema, HostedAiUnavailableReason, HostedAiUnavailableReasonSchema, NOTEBASE_ROW_CREATE_MANY_MAX_ROWS, Notebase, NotebaseActivityStatsItem, NotebaseActivityStatsOutput, NotebaseColumn, NotebaseColumnCreateData, NotebaseColumnCreateInput, NotebaseColumnCreateInputSchema, NotebaseColumnCreateOutput, NotebaseColumnCreateOutputSchema, NotebaseColumnDeleteInput, NotebaseColumnDeleteInputSchema, NotebaseColumnDeleteOutput, NotebaseColumnDeleteOutputSchema, NotebaseColumnReorderInput, NotebaseColumnReorderInputSchema, NotebaseColumnReorderOutput, NotebaseColumnReorderOutputSchema, NotebaseColumnUpdateData, NotebaseColumnUpdateInput, NotebaseColumnUpdateInputSchema, NotebaseColumnUpdateOutput, NotebaseColumnUpdateOutputSchema, NotebaseCreateData, NotebaseCreateInput, NotebaseCreateInputSchema, NotebaseCreateOutput, NotebaseCreateOutputSchema, NotebaseDeleteInput, NotebaseDeleteInputSchema, NotebaseDeleteOutput, NotebaseDeleteOutputSchema, NotebaseGetInput, NotebaseGetInputSchema, NotebaseGetOutput, NotebaseGetOutputSchema, NotebaseGetSchemaInput, NotebaseGetSchemaInputSchema, NotebaseGetSchemaOutput, NotebaseGetSchemaOutputSchema, NotebaseListInput, NotebaseListInputSchema, NotebaseListItem, NotebaseListItemSchema, NotebaseListOutput, NotebaseListOutputSchema, NotebaseRow, NotebaseRowCreateData, NotebaseRowCreateInput, NotebaseRowCreateInputSchema, NotebaseRowCreateManyInput, NotebaseRowCreateManyInputSchema, NotebaseRowCreateManyOutput, NotebaseRowCreateManyOutputSchema, NotebaseRowCreateOutput, NotebaseRowCreateOutputSchema, NotebaseRowDeleteInput, NotebaseRowDeleteInputSchema, NotebaseRowDeleteOutput, NotebaseRowDeleteOutputSchema, NotebaseRowGrowthStatsItem, NotebaseRowGrowthStatsOutput, NotebaseRowReorderInput, NotebaseRowReorderInputSchema, NotebaseRowReorderOutput, NotebaseRowReorderOutputSchema, NotebaseRowUpdateData, NotebaseRowUpdateInput, NotebaseRowUpdateInputSchema, NotebaseRowUpdateOutput, NotebaseRowUpdateOutputSchema, NotebaseUpdateData, NotebaseUpdateInput, NotebaseUpdateInputSchema, NotebaseUpdateOutput, NotebaseUpdateOutputSchema, NotebaseView, NotebaseViewConfig, NotebaseViewCreateData, NotebaseViewFilter, NotebaseViewSort, NotebaseViewType, NotebaseViewUpdateData, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, RenderedCard, type ReviewRating, SRS_REVIEW_CLIENT_ID_NAMESPACE, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, SrsActivityStatsItem, SrsActivityStatsOutput, SrsListCardRevlogsInput, SrsListCardRevlogsOutput, SrsManualCardStatusInput, SrsMemoryGrowthStatsItem, SrsMemoryGrowthStatsOutput, SrsReviewClientIdCard, SrsReviewInput, SrsReviewOutput, SrsRevlog, SrsRevlogWithoutSnapshot, SrsRollbackReviewInput, SrsRollbackReviewOutput, SrsScheduleStatusStats, SrsScheduleStatusStatsInput, SrsScheduleStatusStatsOutput, SrsSetCardBuriedInput, SrsSetCardBuriedOutput, SrsSetCardSuspendedInput, SrsSetCardSuspendedOutput, SrsTxidOutput, StatsInput, Step, Timezone, UserEnsureTimezoneInput, UserEnsureTimezoneOutput, UserUpdateTimezoneInput, UserUpdateTimezoneOutput, VideoTranscriptCreateInput, VideoTranscriptGetInput, VideoTranscriptResource, VideoTranscriptStatus, VideoTranscriptSubtitles, VideoTranscriptUsage, activityStatsOutputSchema, billingAccessSourceSchema, billingCancelScheduledChangeOutputSchema, billingCheckoutPlanSchema, billingCreateCheckoutSessionInputSchema, billingCreateCustomerPortalSessionInputSchema, billingCurrencySchema, billingIntervalSchema, billingLocaleSchema, billingPlanSchema, billingScheduledChangeSchema, billingSessionUrlOutputSchema, billingStatusSchema, billingSubscriptionStatusSchema, cardSchema, cardStateSchema, cardTemplateSchema, contract, createSrsReviewClientId, ebookCoverContentTypeSchema, ebookDeleteInputSchema, ebookDeleteOutputSchema, ebookDetailSchema, ebookFinalizeUploadInputSchema, ebookFinalizeUploadOutputSchema, ebookGetDownloadUrlInputSchema, ebookGetDownloadUrlOutputSchema, ebookGetInputSchema, ebookGetOutputSchema, ebookListInputSchema, ebookListItemSchema, ebookListOutputSchema, ebookPresignedPostSchema, ebookQuotaSchema, ebookRenameDataSchema, ebookRenameInputSchema, ebookRenameOutputSchema, ebookRequestUploadInputSchema, ebookRequestUploadOutputSchema, ebookStatusSchema, ebookUpdateProgressDataSchema, ebookUpdateProgressInputSchema, ebookUpdateProgressOutputSchema, getPublicErrorDefinition, isPublicAppErrorCode, notebaseActivityStatsItemSchema, notebaseActivityStatsOutputSchema, notebaseColumnCreateDataSchema, notebaseColumnSchema, notebaseColumnUpdateDataSchema, notebaseColumnWidthSchema, notebaseCreateDataSchema, notebaseRowCellsSchema, notebaseRowCreateDataSchema, notebaseRowGrowthStatsItemSchema, notebaseRowGrowthStatsOutputSchema, notebaseRowSchema, notebaseRowUpdateDataSchema, notebaseSchema, notebaseUpdateDataSchema, notebaseViewConfigSchema, notebaseViewCreateDataSchema, notebaseViewFilterSchema, notebaseViewFiltersSchema, notebaseViewSchema, notebaseViewSortSchema, notebaseViewSortsSchema, notebaseViewTypeSchema, notebaseViewUpdateDataSchema, pickPublicErrorMap, renderedCardSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema, srsActivityStatsItemSchema, srsActivityStatsOutputSchema, srsListCardRevlogsInputSchema, srsListCardRevlogsOutputSchema, srsManualCardStatusInputSchema, srsMemoryGrowthStatsItemSchema, srsMemoryGrowthStatsOutputSchema, srsReviewInputSchema, srsReviewOutputSchema, srsRevlogSchema, srsRevlogWithoutSnapshotSchema, srsRollbackReviewInputSchema, srsRollbackReviewOutputSchema, srsScheduleStatusStatsInputSchema, srsScheduleStatusStatsOutputSchema, srsScheduleStatusStatsSchema, srsSetCardBuriedInputSchema, srsSetCardBuriedOutputSchema, srsSetCardSuspendedInputSchema, srsSetCardSuspendedOutputSchema, srsTxidOutputSchema, statsInputSchema, stepSchema, timezoneSchema, userEnsureTimezoneInputSchema, userEnsureTimezoneOutputSchema, userUpdateTimezoneInputSchema, userUpdateTimezoneOutputSchema, videoTranscriptCreateInputSchema, videoTranscriptGetInputSchema, videoTranscriptResourceSchema, videoTranscriptStatusSchema, videoTranscriptSubtitlesSchema, videoTranscriptUsageSchema };
|
|
3017
3640
|
//# sourceMappingURL=index.d.ts.map
|