asfur 1.0.2 → 1.0.3

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
@@ -74,7 +74,8 @@ export declare const textSchema: z.ZodObject<{
74
74
  language: z.ZodOptional<z.ZodString>;
75
75
  text_geo: z.ZodArray<z.ZodString, "many">;
76
76
  source_geo: z.ZodOptional<z.ZodString>;
77
- replied_to_post_id: z.ZodOptional<z.ZodString>;
77
+ is_reply: z.ZodOptional<z.ZodBoolean>;
78
+ reply_to_message_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
78
79
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
79
80
  created_at: z.ZodDate;
80
81
  updated_at: z.ZodOptional<z.ZodDate>;
@@ -107,7 +108,8 @@ export declare const textSchema: z.ZodObject<{
107
108
  updated_at?: Date | undefined;
108
109
  original_text?: string | undefined;
109
110
  translated_text?: string | undefined;
110
- replied_to_post_id?: string | undefined;
111
+ is_reply?: boolean | undefined;
112
+ reply_to_message_id?: string | number | undefined;
111
113
  media?: {
112
114
  type: "image" | "video" | "audio" | "link";
113
115
  url: string;
@@ -129,7 +131,8 @@ export declare const textSchema: z.ZodObject<{
129
131
  updated_at?: Date | undefined;
130
132
  original_text?: string | undefined;
131
133
  translated_text?: string | undefined;
132
- replied_to_post_id?: string | undefined;
134
+ is_reply?: boolean | undefined;
135
+ reply_to_message_id?: string | number | undefined;
133
136
  media?: {
134
137
  type: "image" | "video" | "audio" | "link";
135
138
  url: string;
package/dist/types.js CHANGED
@@ -52,7 +52,8 @@ exports.textSchema = zod_1.z.object({
52
52
  language: zod_1.z.string().optional(),
53
53
  text_geo: zod_1.z.array(zod_1.z.string()),
54
54
  source_geo: zod_1.z.string().optional(),
55
- replied_to_post_id: zod_1.z.string().optional(),
55
+ is_reply: zod_1.z.boolean().optional(),
56
+ reply_to_message_id: zod_1.z.string().or(zod_1.z.number()).optional(),
56
57
  metadata: zod_1.z.record(zod_1.z.string(), zod_1.z.any()).optional(),
57
58
  created_at: zod_1.z.coerce.date(),
58
59
  updated_at: zod_1.z.coerce.date().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asfur",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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
@@ -53,7 +53,8 @@ export const textSchema = z.object({
53
53
  language: z.string().optional(),
54
54
  text_geo: z.array(z.string()), // INDEX - e.g., ["sinjil", "ramallah", "west bank"]
55
55
  source_geo: z.string().optional(), // e.g., 'hebron'
56
- replied_to_post_id: z.string().optional(),
56
+ is_reply: z.boolean().optional(), // true if this text is a reply to another text
57
+ reply_to_message_id: z.string().or(z.number()).optional(),
57
58
  metadata: z.record(z.string(), z.any()).optional(), // platform-specific fields
58
59
  created_at: z.coerce.date(),
59
60
  updated_at: z.coerce.date().optional(),