asfur 1.0.45 → 1.0.46

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/types.d.ts CHANGED
@@ -275,11 +275,11 @@ export declare const zodUserSettingsSchema: z.ZodObject<{
275
275
  thread_id: z.ZodOptional<z.ZodString>;
276
276
  user_id: z.ZodString;
277
277
  instructions: z.ZodOptional<z.ZodString>;
278
- has_jobs_access: z.ZodDefault<z.ZodBoolean>;
279
- active_jobs_limit: z.ZodDefault<z.ZodNumber>;
278
+ has_jobs_access: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
279
+ active_jobs_limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
280
280
  created_at: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
281
281
  updated_at: z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>;
282
- status: z.ZodDefault<z.ZodEnum<["active", "inactive"]>>;
282
+ status: z.ZodDefault<z.ZodOptional<z.ZodEnum<["active", "inactive"]>>>;
283
283
  }, "strip", z.ZodTypeAny, {
284
284
  status: "inactive" | "active";
285
285
  user_id: string;
package/dist/types.js CHANGED
@@ -110,11 +110,11 @@ exports.zodUserSettingsSchema = zod_1.z.object({
110
110
  thread_id: zod_1.z.string().optional(),
111
111
  user_id: zod_1.z.string().nonempty('User ID must be provided'),
112
112
  instructions: zod_1.z.string().optional(),
113
- has_jobs_access: zod_1.z.boolean().default(false),
114
- active_jobs_limit: zod_1.z.number().default(5),
113
+ has_jobs_access: zod_1.z.boolean().optional().default(false),
114
+ active_jobs_limit: zod_1.z.number().optional().default(5),
115
115
  created_at: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
116
116
  updated_at: zod_1.z.coerce.date().or(zod_1.z.number()).optional(),
117
- status: zod_1.z.enum(exports.generalStatusList).default('active'), // status of the user
117
+ status: zod_1.z.enum(exports.generalStatusList).optional().default('active'), // status of the user
118
118
  });
119
119
  exports.zodConversationSchema = zod_1.z.object({
120
120
  _id: zod_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "SDK for interacting with the Asfur API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.ts CHANGED
@@ -120,12 +120,12 @@ export const zodUserSettingsSchema = z.object({
120
120
  thread_id: z.string().optional(), // thread ID for the user settings
121
121
  user_id: z.string().nonempty('User ID must be provided'), // user identifier
122
122
  instructions: z.string().optional(), // optional user instructions for the query
123
- has_jobs_access: z.boolean().default(false), // true if the user has access to jobs
124
- active_jobs_limit: z.number().default(5), // maximum number of active jobs allowed
123
+ has_jobs_access: z.boolean().optional().default(false), // true if the user has access to jobs
124
+ active_jobs_limit: z.number().optional().default(5), // maximum number of active jobs allowed
125
125
  created_at: z.coerce.date().or(z.number()).optional(), // creation date
126
126
  updated_at: z.coerce.date().or(z.number()).optional(), // last update date
127
- status: z.enum(generalStatusList).default('active'), // status of the user
128
-
127
+ status: z.enum(generalStatusList).optional().default('active'), // status of the user
128
+
129
129
  });
130
130
 
131
131
  export const zodConversationSchema = z.object({