@remit/api-zod-schemas 0.0.100 → 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 +54 -16
- package/schemas.d.ts.map +1 -1
- package/schemas.js +19 -1
- package/schemas.js.map +1 -1
- package/schemas.ts +23 -2
package/schemas.ts
CHANGED
|
@@ -37,6 +37,10 @@ export const SystemUpdatePhaseSchema = z.enum(["checking", "pulling", "snapshott
|
|
|
37
37
|
|
|
38
38
|
export const SystemUpdateOutcomeSchema = z.enum(["succeeded", "rolledBack", "rollbackFailed", "abandoned"]);
|
|
39
39
|
|
|
40
|
+
export const ClassificationPresetIdSchema = z.enum(["Jev", "Jina", "Mistral", "Gemini", "OpenAiCompatible", "Local"]);
|
|
41
|
+
|
|
42
|
+
export const ClassificationDefaultSourceSchema = z.enum(["Config", "Operator"]);
|
|
43
|
+
|
|
40
44
|
export const PersonStatusSchema = z.enum(["Active", "Disabled"]);
|
|
41
45
|
|
|
42
46
|
export const PeopleErrorCodeSchema = z.enum(["sign_in_disabled", "caller_disabled", "foreign_origin", "step_up_required", "wrong_password", "step_up_locked", "cannot_disable_self"]);
|
|
@@ -101,8 +105,6 @@ export const RecurrenceScopeSchema = z.enum(["This", "Following", "All"]);
|
|
|
101
105
|
|
|
102
106
|
export const CalendarInviteAnswerSchema = z.enum(["Accepted", "Tentative", "Declined"]);
|
|
103
107
|
|
|
104
|
-
export const ClassificationPresetIdSchema = z.enum(["Jev", "Jina", "Mistral", "Gemini", "OpenAiCompatible", "Local"]);
|
|
105
|
-
|
|
106
108
|
export const ClassificationPresetGroupSchema = z.enum(["Hosted", "Custom", "Local"]);
|
|
107
109
|
|
|
108
110
|
export const ClassificationAdapterShapeSchema = z.enum(["DecisionApi", "ChatJsonSchema", "JinaClassify"]);
|
|
@@ -686,6 +688,25 @@ export const ApplyUpdateInputSchema = z.object({
|
|
|
686
688
|
targetVersion: z.string()
|
|
687
689
|
});
|
|
688
690
|
|
|
691
|
+
export const ClassificationDefaultResponseSchema = z.object({
|
|
692
|
+
presetId: z.union([ClassificationPresetIdSchema, z.null()]),
|
|
693
|
+
model: z.union([z.string(), z.null()]),
|
|
694
|
+
baseUrl: z.union([z.string(), z.null()]),
|
|
695
|
+
enabled: z.boolean(),
|
|
696
|
+
dailyLimit: z.number(),
|
|
697
|
+
hasKey: z.boolean(),
|
|
698
|
+
source: ClassificationDefaultSourceSchema
|
|
699
|
+
});
|
|
700
|
+
|
|
701
|
+
export const PutClassificationDefaultInputSchema = z.object({
|
|
702
|
+
presetId: ClassificationPresetIdSchema,
|
|
703
|
+
model: z.string(),
|
|
704
|
+
baseUrl: z.string(),
|
|
705
|
+
apiKey: z.string(),
|
|
706
|
+
enabled: z.boolean(),
|
|
707
|
+
dailyLimit: z.number()
|
|
708
|
+
});
|
|
709
|
+
|
|
689
710
|
export const PersonSchema = z.object({
|
|
690
711
|
userId: z.string(),
|
|
691
712
|
email: z.string(),
|