@remit/api-zod-schemas 0.0.99 → 0.0.101
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/README.md +4 -1
- package/middleware.d.ts.map +1 -1
- package/middleware.js +26 -1
- package/middleware.js.map +1 -1
- package/middleware.ts +26 -0
- package/package.json +1 -1
- package/schemas.d.ts +57 -16
- package/schemas.d.ts.map +1 -1
- package/schemas.js +21 -1
- package/schemas.js.map +1 -1
- package/schemas.ts +25 -2
package/schemas.js
CHANGED
|
@@ -19,6 +19,8 @@ export const ConfigImportOnExistingSchema = z.enum(["abort", "merge"]);
|
|
|
19
19
|
export const SystemUpdateCheckStatusSchema = z.enum(["ok", "failed", "disabled"]);
|
|
20
20
|
export const SystemUpdatePhaseSchema = z.enum(["checking", "pulling", "snapshotting", "stopping", "starting", "verifying", "committing", "rollingBack", "recovering"]);
|
|
21
21
|
export const SystemUpdateOutcomeSchema = z.enum(["succeeded", "rolledBack", "rollbackFailed", "abandoned"]);
|
|
22
|
+
export const ClassificationPresetIdSchema = z.enum(["Jev", "Jina", "Mistral", "Gemini", "OpenAiCompatible", "Local"]);
|
|
23
|
+
export const ClassificationDefaultSourceSchema = z.enum(["Config", "Operator"]);
|
|
22
24
|
export const PersonStatusSchema = z.enum(["Active", "Disabled"]);
|
|
23
25
|
export const PeopleErrorCodeSchema = z.enum(["sign_in_disabled", "caller_disabled", "foreign_origin", "step_up_required", "wrong_password", "step_up_locked", "cannot_disable_self"]);
|
|
24
26
|
export const StepUpActionSchema = z.enum(["SignOut", "Disable", "Enable", "ResetPassword"]);
|
|
@@ -51,7 +53,6 @@ export const CalendarInviteMethodSchema = z.enum(["Request", "Reply", "Cancel",
|
|
|
51
53
|
export const OutboxMessageStatusSchema = z.enum(["draft", "queued", "sending", "sent", "unfiled", "failed", "blocked"]);
|
|
52
54
|
export const RecurrenceScopeSchema = z.enum(["This", "Following", "All"]);
|
|
53
55
|
export const CalendarInviteAnswerSchema = z.enum(["Accepted", "Tentative", "Declined"]);
|
|
54
|
-
export const ClassificationPresetIdSchema = z.enum(["Jev", "Jina", "Mistral", "Gemini", "OpenAiCompatible", "Local"]);
|
|
55
56
|
export const ClassificationPresetGroupSchema = z.enum(["Hosted", "Custom", "Local"]);
|
|
56
57
|
export const ClassificationAdapterShapeSchema = z.enum(["DecisionApi", "ChatJsonSchema", "JinaClassify"]);
|
|
57
58
|
export const ClassificationValueSourceSchema = z.enum(["Saved", "Deployment", "Default"]);
|
|
@@ -528,6 +529,23 @@ export const SystemUpdateResponseSchema = z.object({
|
|
|
528
529
|
export const ApplyUpdateInputSchema = z.object({
|
|
529
530
|
targetVersion: z.string()
|
|
530
531
|
});
|
|
532
|
+
export const ClassificationDefaultResponseSchema = z.object({
|
|
533
|
+
presetId: z.union([ClassificationPresetIdSchema, z.null()]),
|
|
534
|
+
model: z.union([z.string(), z.null()]),
|
|
535
|
+
baseUrl: z.union([z.string(), z.null()]),
|
|
536
|
+
enabled: z.boolean(),
|
|
537
|
+
dailyLimit: z.number(),
|
|
538
|
+
hasKey: z.boolean(),
|
|
539
|
+
source: ClassificationDefaultSourceSchema
|
|
540
|
+
});
|
|
541
|
+
export const PutClassificationDefaultInputSchema = z.object({
|
|
542
|
+
presetId: ClassificationPresetIdSchema,
|
|
543
|
+
model: z.string(),
|
|
544
|
+
baseUrl: z.string(),
|
|
545
|
+
apiKey: z.string(),
|
|
546
|
+
enabled: z.boolean(),
|
|
547
|
+
dailyLimit: z.number()
|
|
548
|
+
});
|
|
531
549
|
export const PersonSchema = z.object({
|
|
532
550
|
userId: z.string(),
|
|
533
551
|
email: z.string(),
|
|
@@ -604,6 +622,7 @@ export const MailboxSchema = z.object({
|
|
|
604
622
|
syncStatus: MailboxSyncStatusSchema,
|
|
605
623
|
pendingPath: z.string().max(512).optional(),
|
|
606
624
|
syncFailureReason: z.string(),
|
|
625
|
+
statusRefused: z.boolean(),
|
|
607
626
|
cursorState: MailboxCursorStateSchema,
|
|
608
627
|
specialUse: z.array(MailboxSpecialUseSchema).optional(),
|
|
609
628
|
createdAt: z.number(),
|
|
@@ -625,6 +644,7 @@ export const MailboxResponseSchema = z.object({
|
|
|
625
644
|
syncStatus: MailboxSyncStatusSchema,
|
|
626
645
|
pendingPath: z.string().max(512).optional(),
|
|
627
646
|
syncFailureReason: z.string(),
|
|
647
|
+
statusRefused: z.boolean(),
|
|
628
648
|
specialUse: z.array(MailboxSpecialUseSchema).optional(),
|
|
629
649
|
createdAt: z.number(),
|
|
630
650
|
updatedAt: z.number(),
|