@lyxa.ai/core 1.4.296 → 1.4.297

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.
@@ -13,14 +13,14 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
13
13
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
14
14
  profilePhoto: z.ZodNullable<z.ZodString> | z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- name: string;
17
16
  type: UserRef;
18
17
  _id: import("mongoose").Types.ObjectId;
18
+ name: string;
19
19
  profilePhoto: string | null;
20
20
  }, {
21
- name: string;
22
21
  type: UserRef;
23
22
  _id: string | import("mongoose").Types.ObjectId;
23
+ name: string;
24
24
  profilePhoto: string | null;
25
25
  }>;
26
26
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
@@ -31,49 +31,49 @@ export declare const TicketAssignSocketOutputSchema: z.ZodObject<{
31
31
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
32
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- content: string;
35
34
  createdAt: Date;
36
- }, {
37
35
  content: string;
36
+ }, {
38
37
  createdAt: string | Date;
38
+ content: string;
39
39
  }>;
40
40
  unreadCount: z.ZodNumber;
41
41
  }, "strip", z.ZodTypeAny, {
42
- type: TicketType;
43
- client: {
44
- name: string;
45
- type: UserRef;
46
- _id: import("mongoose").Types.ObjectId;
47
- profilePhoto: string | null;
48
- };
49
42
  status: TicketStatus;
43
+ type: TicketType;
50
44
  _id: import("mongoose").Types.ObjectId;
51
45
  createdAt: Date;
52
46
  updatedAt: Date;
53
47
  lastMessage: {
54
- content: string;
55
48
  createdAt: Date;
49
+ content: string;
56
50
  };
57
51
  unreadCount: number;
58
- chatroomId: import("mongoose").Types.ObjectId;
59
- orderId?: import("mongoose").Types.ObjectId | undefined;
60
- }, {
61
- type: TicketType;
62
52
  client: {
63
- name: string;
64
53
  type: UserRef;
65
- _id: string | import("mongoose").Types.ObjectId;
54
+ _id: import("mongoose").Types.ObjectId;
55
+ name: string;
66
56
  profilePhoto: string | null;
67
57
  };
58
+ chatroomId: import("mongoose").Types.ObjectId;
59
+ orderId?: import("mongoose").Types.ObjectId | undefined;
60
+ }, {
68
61
  status: TicketStatus;
62
+ type: TicketType;
69
63
  _id: string | import("mongoose").Types.ObjectId;
70
64
  createdAt: string | Date;
71
65
  updatedAt: string | Date;
72
66
  lastMessage: {
73
- content: string;
74
67
  createdAt: string | Date;
68
+ content: string;
75
69
  };
76
70
  unreadCount: number;
71
+ client: {
72
+ type: UserRef;
73
+ _id: string | import("mongoose").Types.ObjectId;
74
+ name: string;
75
+ profilePhoto: string | null;
76
+ };
77
77
  chatroomId: string | import("mongoose").Types.ObjectId;
78
78
  orderId?: string | import("mongoose").Types.ObjectId | undefined;
79
79
  }>;
@@ -91,14 +91,14 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
91
91
  name: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
92
92
  profilePhoto: z.ZodNullable<z.ZodString> | z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
93
93
  }, "strip", z.ZodTypeAny, {
94
- name: string;
95
94
  type: UserRef;
96
95
  _id: import("mongoose").Types.ObjectId;
96
+ name: string;
97
97
  profilePhoto: string | null;
98
98
  }, {
99
- name: string;
100
99
  type: UserRef;
101
100
  _id: string | import("mongoose").Types.ObjectId;
101
+ name: string;
102
102
  profilePhoto: string | null;
103
103
  }>;
104
104
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
@@ -109,49 +109,49 @@ export declare class TicketAssignEvent extends BaseSocketEvent<typeof TicketAssi
109
109
  content: z.ZodString | z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
110
110
  createdAt: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>, z.ZodDate]>, Date, string | Date>, Date, string | Date>;
111
111
  }, "strip", z.ZodTypeAny, {
112
- content: string;
113
112
  createdAt: Date;
114
- }, {
115
113
  content: string;
114
+ }, {
116
115
  createdAt: string | Date;
116
+ content: string;
117
117
  }>;
118
118
  unreadCount: z.ZodNumber;
119
119
  }, "strip", z.ZodTypeAny, {
120
- type: TicketType;
121
- client: {
122
- name: string;
123
- type: UserRef;
124
- _id: import("mongoose").Types.ObjectId;
125
- profilePhoto: string | null;
126
- };
127
120
  status: TicketStatus;
121
+ type: TicketType;
128
122
  _id: import("mongoose").Types.ObjectId;
129
123
  createdAt: Date;
130
124
  updatedAt: Date;
131
125
  lastMessage: {
132
- content: string;
133
126
  createdAt: Date;
127
+ content: string;
134
128
  };
135
129
  unreadCount: number;
136
- chatroomId: import("mongoose").Types.ObjectId;
137
- orderId?: import("mongoose").Types.ObjectId | undefined;
138
- }, {
139
- type: TicketType;
140
130
  client: {
141
- name: string;
142
131
  type: UserRef;
143
- _id: string | import("mongoose").Types.ObjectId;
132
+ _id: import("mongoose").Types.ObjectId;
133
+ name: string;
144
134
  profilePhoto: string | null;
145
135
  };
136
+ chatroomId: import("mongoose").Types.ObjectId;
137
+ orderId?: import("mongoose").Types.ObjectId | undefined;
138
+ }, {
146
139
  status: TicketStatus;
140
+ type: TicketType;
147
141
  _id: string | import("mongoose").Types.ObjectId;
148
142
  createdAt: string | Date;
149
143
  updatedAt: string | Date;
150
144
  lastMessage: {
151
- content: string;
152
145
  createdAt: string | Date;
146
+ content: string;
153
147
  };
154
148
  unreadCount: number;
149
+ client: {
150
+ type: UserRef;
151
+ _id: string | import("mongoose").Types.ObjectId;
152
+ name: string;
153
+ profilePhoto: string | null;
154
+ };
155
155
  chatroomId: string | import("mongoose").Types.ObjectId;
156
156
  orderId?: string | import("mongoose").Types.ObjectId | undefined;
157
157
  }>;
@@ -5,11 +5,11 @@ interface AuthOptions {
5
5
  autoRefresh?: boolean;
6
6
  }
7
7
  export declare function createAuthenticatedProcedure(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
8
- res: import("http").ServerResponse<import("http").IncomingMessage>;
9
- tokenType: TokenType | undefined;
10
- req: import("http").IncomingMessage;
11
8
  requestId: string | undefined;
12
9
  entity: import("../context").EntityContext | undefined;
10
+ req: import("http").IncomingMessage;
11
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
12
+ tokenType: TokenType | undefined;
13
13
  usedRefreshToken: boolean | undefined;
14
14
  tokenRenewed: boolean | undefined;
15
15
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
@@ -4,11 +4,11 @@ interface RoleProtectedOptions {
4
4
  allowedRoles: string[];
5
5
  }
6
6
  export declare function createRoleProtectedProcedure(options: RoleProtectedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
7
- res: import("http").ServerResponse<import("http").IncomingMessage>;
8
- tokenType: import("../../auth").TokenType | undefined;
9
- req: import("http").IncomingMessage;
10
7
  requestId: string | undefined;
11
8
  entity: import("../context").EntityContext | undefined;
9
+ req: import("http").IncomingMessage;
10
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
11
+ tokenType: import("../../auth").TokenType | undefined;
12
12
  usedRefreshToken: boolean | undefined;
13
13
  tokenRenewed: boolean | undefined;
14
14
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
@@ -3,11 +3,11 @@ interface PhoneVerifiedOptions {
3
3
  entityTypes: AuthEntityType[];
4
4
  }
5
5
  export declare function createPhoneVerifiedProcedure(options: PhoneVerifiedOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
6
- res: import("http").ServerResponse<import("http").IncomingMessage>;
7
- tokenType: import("../../auth").TokenType | undefined;
8
- req: import("http").IncomingMessage;
9
6
  requestId: string | undefined;
10
7
  entity: import("../context").EntityContext | undefined;
8
+ req: import("http").IncomingMessage;
9
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
10
+ tokenType: import("../../auth").TokenType | undefined;
11
11
  usedRefreshToken: boolean | undefined;
12
12
  tokenRenewed: boolean | undefined;
13
13
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
@@ -5,11 +5,11 @@ interface AuthOptions {
5
5
  autoRefresh?: boolean;
6
6
  }
7
7
  export declare function publicUserDecoder(options: AuthOptions): import("@trpc/server").TRPCProcedureBuilder<import("../context").LyxaHTTPContext, object, {
8
- res: import("http").ServerResponse<import("http").IncomingMessage>;
9
- tokenType: TokenType | undefined;
10
- req: import("http").IncomingMessage;
11
8
  requestId: string | undefined;
12
9
  entity: import("../context").EntityContext | undefined;
10
+ req: import("http").IncomingMessage;
11
+ res: import("http").ServerResponse<import("http").IncomingMessage>;
12
+ tokenType: TokenType | undefined;
13
13
  usedRefreshToken: boolean | undefined;
14
14
  tokenRenewed: boolean | undefined;
15
15
  }, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, import("@trpc/server").TRPCUnsetMarker, false>;
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.4.296
25
+ Version: 1.4.297
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.4.296",
3
+ "version": "1.4.297",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",