@livdot-tech/contracts 1.0.0 → 1.2.0

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.
Files changed (117) hide show
  1. package/dist/auth/index.d.mts +235 -0
  2. package/dist/auth/index.d.ts +235 -0
  3. package/dist/auth/index.js +2 -0
  4. package/dist/auth/index.js.map +1 -0
  5. package/dist/auth/index.mjs +2 -0
  6. package/dist/auth/index.mjs.map +1 -0
  7. package/dist/booking/index.d.mts +313 -0
  8. package/dist/booking/index.d.ts +313 -0
  9. package/dist/booking/index.js +2 -0
  10. package/dist/booking/index.js.map +1 -0
  11. package/dist/booking/index.mjs +2 -0
  12. package/dist/booking/index.mjs.map +1 -0
  13. package/dist/chunk-6UTUVCOM.mjs +2 -0
  14. package/dist/chunk-6UTUVCOM.mjs.map +1 -0
  15. package/dist/chunk-6ZN2TPBZ.js +2 -0
  16. package/dist/chunk-6ZN2TPBZ.js.map +1 -0
  17. package/dist/chunk-726BT6I5.js +2 -0
  18. package/dist/chunk-726BT6I5.js.map +1 -0
  19. package/dist/chunk-C2QIE2HZ.js +2 -0
  20. package/dist/chunk-C2QIE2HZ.js.map +1 -0
  21. package/dist/chunk-CIV62KPR.mjs +2 -0
  22. package/dist/chunk-CIV62KPR.mjs.map +1 -0
  23. package/dist/chunk-DF4E66H2.mjs +2 -0
  24. package/dist/chunk-DF4E66H2.mjs.map +1 -0
  25. package/dist/chunk-F663RS3D.js +2 -0
  26. package/dist/chunk-F663RS3D.js.map +1 -0
  27. package/dist/chunk-FSQX27QM.mjs +2 -0
  28. package/dist/chunk-FSQX27QM.mjs.map +1 -0
  29. package/dist/chunk-GY7PCU2T.js +2 -0
  30. package/dist/chunk-GY7PCU2T.js.map +1 -0
  31. package/dist/chunk-HI6UMYA4.mjs +2 -0
  32. package/dist/chunk-HI6UMYA4.mjs.map +1 -0
  33. package/dist/chunk-HIY5BNTM.mjs +2 -0
  34. package/dist/chunk-HIY5BNTM.mjs.map +1 -0
  35. package/dist/chunk-IJ2PAFAX.js +2 -0
  36. package/dist/chunk-IJ2PAFAX.js.map +1 -0
  37. package/dist/chunk-JT7SH43N.js +2 -0
  38. package/dist/chunk-JT7SH43N.js.map +1 -0
  39. package/dist/chunk-L6NHN3V2.js +2 -0
  40. package/dist/chunk-L6NHN3V2.js.map +1 -0
  41. package/dist/chunk-NSBUBEZK.mjs +2 -0
  42. package/dist/chunk-NSBUBEZK.mjs.map +1 -0
  43. package/dist/chunk-PHGWWUP2.mjs +2 -0
  44. package/dist/chunk-PHGWWUP2.mjs.map +1 -0
  45. package/dist/chunk-T7C4AYVD.mjs +2 -0
  46. package/dist/chunk-T7C4AYVD.mjs.map +1 -0
  47. package/dist/chunk-UDHBQDRU.js +2 -0
  48. package/dist/chunk-UDHBQDRU.js.map +1 -0
  49. package/dist/chunk-UZZ46ZPG.js +2 -0
  50. package/dist/chunk-UZZ46ZPG.js.map +1 -0
  51. package/dist/chunk-WEET4HBJ.mjs +2 -0
  52. package/dist/chunk-WEET4HBJ.mjs.map +1 -0
  53. package/dist/chunk-Y5QIEJG2.mjs +2 -0
  54. package/dist/chunk-Y5QIEJG2.mjs.map +1 -0
  55. package/dist/chunk-ZFINSMCH.js +2 -0
  56. package/dist/chunk-ZFINSMCH.js.map +1 -0
  57. package/dist/common/index.d.mts +315 -0
  58. package/dist/common/index.d.ts +315 -0
  59. package/dist/common/index.js +2 -0
  60. package/dist/common/index.js.map +1 -0
  61. package/dist/common/index.mjs +2 -0
  62. package/dist/common/index.mjs.map +1 -0
  63. package/dist/dispute/index.d.mts +79 -0
  64. package/dist/dispute/index.d.ts +79 -0
  65. package/dist/dispute/index.js +2 -0
  66. package/dist/dispute/index.js.map +1 -0
  67. package/dist/dispute/index.mjs +2 -0
  68. package/dist/dispute/index.mjs.map +1 -0
  69. package/dist/errors/index.d.mts +67 -0
  70. package/dist/errors/index.d.ts +67 -0
  71. package/dist/errors/index.js +2 -0
  72. package/dist/errors/index.js.map +1 -0
  73. package/dist/errors/index.mjs +2 -0
  74. package/dist/errors/index.mjs.map +1 -0
  75. package/dist/event/index.d.mts +360 -0
  76. package/dist/event/index.d.ts +360 -0
  77. package/dist/event/index.js +2 -0
  78. package/dist/event/index.js.map +1 -0
  79. package/dist/event/index.mjs +2 -0
  80. package/dist/event/index.mjs.map +1 -0
  81. package/dist/index.d.mts +12 -0
  82. package/dist/index.d.ts +12 -0
  83. package/dist/index.js +2 -0
  84. package/dist/index.js.map +1 -0
  85. package/dist/index.mjs +2 -0
  86. package/dist/index.mjs.map +1 -0
  87. package/dist/joblisting/index.d.mts +13 -0
  88. package/dist/joblisting/index.d.ts +13 -0
  89. package/dist/joblisting/index.js +2 -0
  90. package/dist/joblisting/index.js.map +1 -0
  91. package/dist/joblisting/index.mjs +2 -0
  92. package/dist/joblisting/index.mjs.map +1 -0
  93. package/dist/notification/index.d.mts +113 -0
  94. package/dist/notification/index.d.ts +113 -0
  95. package/dist/notification/index.js +2 -0
  96. package/dist/notification/index.js.map +1 -0
  97. package/dist/notification/index.mjs +2 -0
  98. package/dist/notification/index.mjs.map +1 -0
  99. package/dist/payment/index.d.mts +119 -0
  100. package/dist/payment/index.d.ts +119 -0
  101. package/dist/payment/index.js +2 -0
  102. package/dist/payment/index.js.map +1 -0
  103. package/dist/payment/index.mjs +2 -0
  104. package/dist/payment/index.mjs.map +1 -0
  105. package/dist/streaming/index.d.mts +79 -0
  106. package/dist/streaming/index.d.ts +79 -0
  107. package/dist/streaming/index.js +2 -0
  108. package/dist/streaming/index.js.map +1 -0
  109. package/dist/streaming/index.mjs +2 -0
  110. package/dist/streaming/index.mjs.map +1 -0
  111. package/dist/user/index.d.mts +427 -0
  112. package/dist/user/index.d.ts +427 -0
  113. package/dist/user/index.js +2 -0
  114. package/dist/user/index.js.map +1 -0
  115. package/dist/user/index.mjs +2 -0
  116. package/dist/user/index.mjs.map +1 -0
  117. package/package.json +27 -5
@@ -0,0 +1,315 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Standard API response wrapper for all LivDot endpoints.
5
+ * @template T The type of the data payload.
6
+ */
7
+ declare const ApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
8
+ success: z.ZodBoolean;
9
+ data: z.ZodOptional<T>;
10
+ error: z.ZodOptional<z.ZodObject<{
11
+ type: z.ZodString;
12
+ title: z.ZodString;
13
+ status: z.ZodNumber;
14
+ detail: z.ZodString;
15
+ instance: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: string;
18
+ status: number;
19
+ title: string;
20
+ detail: string;
21
+ instance?: string | undefined;
22
+ }, {
23
+ type: string;
24
+ status: number;
25
+ title: string;
26
+ detail: string;
27
+ instance?: string | undefined;
28
+ }>>;
29
+ meta: z.ZodOptional<z.ZodObject<{
30
+ page: z.ZodNumber;
31
+ limit: z.ZodNumber;
32
+ total: z.ZodNumber;
33
+ totalPages: z.ZodNumber;
34
+ hasNext: z.ZodBoolean;
35
+ hasPrev: z.ZodBoolean;
36
+ }, "strip", z.ZodTypeAny, {
37
+ page: number;
38
+ limit: number;
39
+ total: number;
40
+ totalPages: number;
41
+ hasNext: boolean;
42
+ hasPrev: boolean;
43
+ }, {
44
+ page: number;
45
+ limit: number;
46
+ total: number;
47
+ totalPages: number;
48
+ hasNext: boolean;
49
+ hasPrev: boolean;
50
+ }>>;
51
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
52
+ success: z.ZodBoolean;
53
+ data: z.ZodOptional<T>;
54
+ error: z.ZodOptional<z.ZodObject<{
55
+ type: z.ZodString;
56
+ title: z.ZodString;
57
+ status: z.ZodNumber;
58
+ detail: z.ZodString;
59
+ instance: z.ZodOptional<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ type: string;
62
+ status: number;
63
+ title: string;
64
+ detail: string;
65
+ instance?: string | undefined;
66
+ }, {
67
+ type: string;
68
+ status: number;
69
+ title: string;
70
+ detail: string;
71
+ instance?: string | undefined;
72
+ }>>;
73
+ meta: z.ZodOptional<z.ZodObject<{
74
+ page: z.ZodNumber;
75
+ limit: z.ZodNumber;
76
+ total: z.ZodNumber;
77
+ totalPages: z.ZodNumber;
78
+ hasNext: z.ZodBoolean;
79
+ hasPrev: z.ZodBoolean;
80
+ }, "strip", z.ZodTypeAny, {
81
+ page: number;
82
+ limit: number;
83
+ total: number;
84
+ totalPages: number;
85
+ hasNext: boolean;
86
+ hasPrev: boolean;
87
+ }, {
88
+ page: number;
89
+ limit: number;
90
+ total: number;
91
+ totalPages: number;
92
+ hasNext: boolean;
93
+ hasPrev: boolean;
94
+ }>>;
95
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
96
+ success: z.ZodBoolean;
97
+ data: z.ZodOptional<T>;
98
+ error: z.ZodOptional<z.ZodObject<{
99
+ type: z.ZodString;
100
+ title: z.ZodString;
101
+ status: z.ZodNumber;
102
+ detail: z.ZodString;
103
+ instance: z.ZodOptional<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: string;
106
+ status: number;
107
+ title: string;
108
+ detail: string;
109
+ instance?: string | undefined;
110
+ }, {
111
+ type: string;
112
+ status: number;
113
+ title: string;
114
+ detail: string;
115
+ instance?: string | undefined;
116
+ }>>;
117
+ meta: z.ZodOptional<z.ZodObject<{
118
+ page: z.ZodNumber;
119
+ limit: z.ZodNumber;
120
+ total: z.ZodNumber;
121
+ totalPages: z.ZodNumber;
122
+ hasNext: z.ZodBoolean;
123
+ hasPrev: z.ZodBoolean;
124
+ }, "strip", z.ZodTypeAny, {
125
+ page: number;
126
+ limit: number;
127
+ total: number;
128
+ totalPages: number;
129
+ hasNext: boolean;
130
+ hasPrev: boolean;
131
+ }, {
132
+ page: number;
133
+ limit: number;
134
+ total: number;
135
+ totalPages: number;
136
+ hasNext: boolean;
137
+ hasPrev: boolean;
138
+ }>>;
139
+ }>, any>[k]; } : never, z.baseObjectInputType<{
140
+ success: z.ZodBoolean;
141
+ data: z.ZodOptional<T>;
142
+ error: z.ZodOptional<z.ZodObject<{
143
+ type: z.ZodString;
144
+ title: z.ZodString;
145
+ status: z.ZodNumber;
146
+ detail: z.ZodString;
147
+ instance: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: string;
150
+ status: number;
151
+ title: string;
152
+ detail: string;
153
+ instance?: string | undefined;
154
+ }, {
155
+ type: string;
156
+ status: number;
157
+ title: string;
158
+ detail: string;
159
+ instance?: string | undefined;
160
+ }>>;
161
+ meta: z.ZodOptional<z.ZodObject<{
162
+ page: z.ZodNumber;
163
+ limit: z.ZodNumber;
164
+ total: z.ZodNumber;
165
+ totalPages: z.ZodNumber;
166
+ hasNext: z.ZodBoolean;
167
+ hasPrev: z.ZodBoolean;
168
+ }, "strip", z.ZodTypeAny, {
169
+ page: number;
170
+ limit: number;
171
+ total: number;
172
+ totalPages: number;
173
+ hasNext: boolean;
174
+ hasPrev: boolean;
175
+ }, {
176
+ page: number;
177
+ limit: number;
178
+ total: number;
179
+ totalPages: number;
180
+ hasNext: boolean;
181
+ hasPrev: boolean;
182
+ }>>;
183
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
184
+ success: z.ZodBoolean;
185
+ data: z.ZodOptional<T>;
186
+ error: z.ZodOptional<z.ZodObject<{
187
+ type: z.ZodString;
188
+ title: z.ZodString;
189
+ status: z.ZodNumber;
190
+ detail: z.ZodString;
191
+ instance: z.ZodOptional<z.ZodString>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ type: string;
194
+ status: number;
195
+ title: string;
196
+ detail: string;
197
+ instance?: string | undefined;
198
+ }, {
199
+ type: string;
200
+ status: number;
201
+ title: string;
202
+ detail: string;
203
+ instance?: string | undefined;
204
+ }>>;
205
+ meta: z.ZodOptional<z.ZodObject<{
206
+ page: z.ZodNumber;
207
+ limit: z.ZodNumber;
208
+ total: z.ZodNumber;
209
+ totalPages: z.ZodNumber;
210
+ hasNext: z.ZodBoolean;
211
+ hasPrev: z.ZodBoolean;
212
+ }, "strip", z.ZodTypeAny, {
213
+ page: number;
214
+ limit: number;
215
+ total: number;
216
+ totalPages: number;
217
+ hasNext: boolean;
218
+ hasPrev: boolean;
219
+ }, {
220
+ page: number;
221
+ limit: number;
222
+ total: number;
223
+ totalPages: number;
224
+ hasNext: boolean;
225
+ hasPrev: boolean;
226
+ }>>;
227
+ }>[k_1]; } : never>;
228
+ /**
229
+ * Common pagination parameters.
230
+ */
231
+ declare const PaginationParamsSchema: z.ZodObject<{
232
+ page: z.ZodDefault<z.ZodNumber>;
233
+ limit: z.ZodDefault<z.ZodNumber>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ page: number;
236
+ limit: number;
237
+ }, {
238
+ page?: number | undefined;
239
+ limit?: number | undefined;
240
+ }>;
241
+ type PaginationParams = z.infer<typeof PaginationParamsSchema>;
242
+
243
+ /**
244
+ * Type-safe inference for the API response.
245
+ */
246
+ type ApiResponse<T> = {
247
+ success: boolean;
248
+ data?: T;
249
+ error?: ApiError;
250
+ meta?: PaginationMeta;
251
+ };
252
+ type ApiError = {
253
+ type: string;
254
+ title: string;
255
+ status: number;
256
+ detail: string;
257
+ instance?: string;
258
+ };
259
+ type PaginationMeta = {
260
+ page: number;
261
+ limit: number;
262
+ total: number;
263
+ totalPages: number;
264
+ hasNext: boolean;
265
+ hasPrev: boolean;
266
+ };
267
+ /**
268
+ * Type-safe inference for paginated responses.
269
+ */
270
+ type PaginatedResponse<T> = ApiResponse<T[]> & {
271
+ meta: PaginationMeta;
272
+ };
273
+
274
+ /**
275
+ * Human-readable response messages for the LivDot platform.
276
+ * These are used for UI feedback and notification bodies.
277
+ */
278
+ declare const ResponseMessages: {
279
+ readonly AUTH: {
280
+ readonly LOGIN_SUCCESS: "Welcome back! You have successfully logged in.";
281
+ readonly REGISTER_SUCCESS: "Account created successfully. Please check your email for verification.";
282
+ readonly PASSWORD_RESET_SENT: "If an account exists for that email, a password reset link has been sent.";
283
+ readonly PASSWORD_RESET_SUCCESS: "Your password has been successfully updated.";
284
+ };
285
+ readonly USER: {
286
+ readonly PROFILE_UPDATE_SUCCESS: "Your profile has been updated successfully.";
287
+ readonly HOST_PROFILE_CREATED: "Host profile created. You can now start hosting events.";
288
+ readonly PRODUCER_PROFILE_CREATED: "Producer profile created. Our team will review your verification details.";
289
+ };
290
+ readonly EVENT: {
291
+ readonly CREATED: "Event created successfully.";
292
+ readonly UPDATED: "Event details updated successfully.";
293
+ readonly PUBLISHED: "Event published! It is now visible to the public.";
294
+ readonly CANCELLED: "Event has been cancelled.";
295
+ };
296
+ readonly BOOKING: {
297
+ readonly REQUEST_SENT: "Your booking request has been sent to the producer.";
298
+ readonly ACCEPTED: "Booking accepted! Please proceed to fund the escrow.";
299
+ readonly CONFIRMED: "Escrow funded and booking confirmed. Service can now begin.";
300
+ readonly COMPLETED: "Service marked as completed. Funds will be released after the dispute window.";
301
+ };
302
+ readonly PAYMENT: {
303
+ readonly INITIATED: "Payment process started.";
304
+ readonly SUCCESS: "Payment verified and transaction completed.";
305
+ readonly FAILED: "Payment failed. Please try again or use a different method.";
306
+ };
307
+ readonly GENERAL: {
308
+ readonly SUCCESS: "Operation completed successfully.";
309
+ readonly ERROR: "An unexpected error occurred. Please contact support.";
310
+ readonly VALIDATION_ERROR: "Some information you provided is incorrect. Please check the highlights.";
311
+ };
312
+ };
313
+ type ResponseMessages = typeof ResponseMessages;
314
+
315
+ export { type ApiError, type ApiResponse, ApiResponseSchema, type PaginatedResponse, type PaginationMeta, type PaginationParams, PaginationParamsSchema, ResponseMessages };
@@ -0,0 +1,315 @@
1
+ import { z } from 'zod';
2
+
3
+ /**
4
+ * Standard API response wrapper for all LivDot endpoints.
5
+ * @template T The type of the data payload.
6
+ */
7
+ declare const ApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
8
+ success: z.ZodBoolean;
9
+ data: z.ZodOptional<T>;
10
+ error: z.ZodOptional<z.ZodObject<{
11
+ type: z.ZodString;
12
+ title: z.ZodString;
13
+ status: z.ZodNumber;
14
+ detail: z.ZodString;
15
+ instance: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: string;
18
+ status: number;
19
+ title: string;
20
+ detail: string;
21
+ instance?: string | undefined;
22
+ }, {
23
+ type: string;
24
+ status: number;
25
+ title: string;
26
+ detail: string;
27
+ instance?: string | undefined;
28
+ }>>;
29
+ meta: z.ZodOptional<z.ZodObject<{
30
+ page: z.ZodNumber;
31
+ limit: z.ZodNumber;
32
+ total: z.ZodNumber;
33
+ totalPages: z.ZodNumber;
34
+ hasNext: z.ZodBoolean;
35
+ hasPrev: z.ZodBoolean;
36
+ }, "strip", z.ZodTypeAny, {
37
+ page: number;
38
+ limit: number;
39
+ total: number;
40
+ totalPages: number;
41
+ hasNext: boolean;
42
+ hasPrev: boolean;
43
+ }, {
44
+ page: number;
45
+ limit: number;
46
+ total: number;
47
+ totalPages: number;
48
+ hasNext: boolean;
49
+ hasPrev: boolean;
50
+ }>>;
51
+ }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
52
+ success: z.ZodBoolean;
53
+ data: z.ZodOptional<T>;
54
+ error: z.ZodOptional<z.ZodObject<{
55
+ type: z.ZodString;
56
+ title: z.ZodString;
57
+ status: z.ZodNumber;
58
+ detail: z.ZodString;
59
+ instance: z.ZodOptional<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ type: string;
62
+ status: number;
63
+ title: string;
64
+ detail: string;
65
+ instance?: string | undefined;
66
+ }, {
67
+ type: string;
68
+ status: number;
69
+ title: string;
70
+ detail: string;
71
+ instance?: string | undefined;
72
+ }>>;
73
+ meta: z.ZodOptional<z.ZodObject<{
74
+ page: z.ZodNumber;
75
+ limit: z.ZodNumber;
76
+ total: z.ZodNumber;
77
+ totalPages: z.ZodNumber;
78
+ hasNext: z.ZodBoolean;
79
+ hasPrev: z.ZodBoolean;
80
+ }, "strip", z.ZodTypeAny, {
81
+ page: number;
82
+ limit: number;
83
+ total: number;
84
+ totalPages: number;
85
+ hasNext: boolean;
86
+ hasPrev: boolean;
87
+ }, {
88
+ page: number;
89
+ limit: number;
90
+ total: number;
91
+ totalPages: number;
92
+ hasNext: boolean;
93
+ hasPrev: boolean;
94
+ }>>;
95
+ }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
96
+ success: z.ZodBoolean;
97
+ data: z.ZodOptional<T>;
98
+ error: z.ZodOptional<z.ZodObject<{
99
+ type: z.ZodString;
100
+ title: z.ZodString;
101
+ status: z.ZodNumber;
102
+ detail: z.ZodString;
103
+ instance: z.ZodOptional<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: string;
106
+ status: number;
107
+ title: string;
108
+ detail: string;
109
+ instance?: string | undefined;
110
+ }, {
111
+ type: string;
112
+ status: number;
113
+ title: string;
114
+ detail: string;
115
+ instance?: string | undefined;
116
+ }>>;
117
+ meta: z.ZodOptional<z.ZodObject<{
118
+ page: z.ZodNumber;
119
+ limit: z.ZodNumber;
120
+ total: z.ZodNumber;
121
+ totalPages: z.ZodNumber;
122
+ hasNext: z.ZodBoolean;
123
+ hasPrev: z.ZodBoolean;
124
+ }, "strip", z.ZodTypeAny, {
125
+ page: number;
126
+ limit: number;
127
+ total: number;
128
+ totalPages: number;
129
+ hasNext: boolean;
130
+ hasPrev: boolean;
131
+ }, {
132
+ page: number;
133
+ limit: number;
134
+ total: number;
135
+ totalPages: number;
136
+ hasNext: boolean;
137
+ hasPrev: boolean;
138
+ }>>;
139
+ }>, any>[k]; } : never, z.baseObjectInputType<{
140
+ success: z.ZodBoolean;
141
+ data: z.ZodOptional<T>;
142
+ error: z.ZodOptional<z.ZodObject<{
143
+ type: z.ZodString;
144
+ title: z.ZodString;
145
+ status: z.ZodNumber;
146
+ detail: z.ZodString;
147
+ instance: z.ZodOptional<z.ZodString>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: string;
150
+ status: number;
151
+ title: string;
152
+ detail: string;
153
+ instance?: string | undefined;
154
+ }, {
155
+ type: string;
156
+ status: number;
157
+ title: string;
158
+ detail: string;
159
+ instance?: string | undefined;
160
+ }>>;
161
+ meta: z.ZodOptional<z.ZodObject<{
162
+ page: z.ZodNumber;
163
+ limit: z.ZodNumber;
164
+ total: z.ZodNumber;
165
+ totalPages: z.ZodNumber;
166
+ hasNext: z.ZodBoolean;
167
+ hasPrev: z.ZodBoolean;
168
+ }, "strip", z.ZodTypeAny, {
169
+ page: number;
170
+ limit: number;
171
+ total: number;
172
+ totalPages: number;
173
+ hasNext: boolean;
174
+ hasPrev: boolean;
175
+ }, {
176
+ page: number;
177
+ limit: number;
178
+ total: number;
179
+ totalPages: number;
180
+ hasNext: boolean;
181
+ hasPrev: boolean;
182
+ }>>;
183
+ }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
184
+ success: z.ZodBoolean;
185
+ data: z.ZodOptional<T>;
186
+ error: z.ZodOptional<z.ZodObject<{
187
+ type: z.ZodString;
188
+ title: z.ZodString;
189
+ status: z.ZodNumber;
190
+ detail: z.ZodString;
191
+ instance: z.ZodOptional<z.ZodString>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ type: string;
194
+ status: number;
195
+ title: string;
196
+ detail: string;
197
+ instance?: string | undefined;
198
+ }, {
199
+ type: string;
200
+ status: number;
201
+ title: string;
202
+ detail: string;
203
+ instance?: string | undefined;
204
+ }>>;
205
+ meta: z.ZodOptional<z.ZodObject<{
206
+ page: z.ZodNumber;
207
+ limit: z.ZodNumber;
208
+ total: z.ZodNumber;
209
+ totalPages: z.ZodNumber;
210
+ hasNext: z.ZodBoolean;
211
+ hasPrev: z.ZodBoolean;
212
+ }, "strip", z.ZodTypeAny, {
213
+ page: number;
214
+ limit: number;
215
+ total: number;
216
+ totalPages: number;
217
+ hasNext: boolean;
218
+ hasPrev: boolean;
219
+ }, {
220
+ page: number;
221
+ limit: number;
222
+ total: number;
223
+ totalPages: number;
224
+ hasNext: boolean;
225
+ hasPrev: boolean;
226
+ }>>;
227
+ }>[k_1]; } : never>;
228
+ /**
229
+ * Common pagination parameters.
230
+ */
231
+ declare const PaginationParamsSchema: z.ZodObject<{
232
+ page: z.ZodDefault<z.ZodNumber>;
233
+ limit: z.ZodDefault<z.ZodNumber>;
234
+ }, "strip", z.ZodTypeAny, {
235
+ page: number;
236
+ limit: number;
237
+ }, {
238
+ page?: number | undefined;
239
+ limit?: number | undefined;
240
+ }>;
241
+ type PaginationParams = z.infer<typeof PaginationParamsSchema>;
242
+
243
+ /**
244
+ * Type-safe inference for the API response.
245
+ */
246
+ type ApiResponse<T> = {
247
+ success: boolean;
248
+ data?: T;
249
+ error?: ApiError;
250
+ meta?: PaginationMeta;
251
+ };
252
+ type ApiError = {
253
+ type: string;
254
+ title: string;
255
+ status: number;
256
+ detail: string;
257
+ instance?: string;
258
+ };
259
+ type PaginationMeta = {
260
+ page: number;
261
+ limit: number;
262
+ total: number;
263
+ totalPages: number;
264
+ hasNext: boolean;
265
+ hasPrev: boolean;
266
+ };
267
+ /**
268
+ * Type-safe inference for paginated responses.
269
+ */
270
+ type PaginatedResponse<T> = ApiResponse<T[]> & {
271
+ meta: PaginationMeta;
272
+ };
273
+
274
+ /**
275
+ * Human-readable response messages for the LivDot platform.
276
+ * These are used for UI feedback and notification bodies.
277
+ */
278
+ declare const ResponseMessages: {
279
+ readonly AUTH: {
280
+ readonly LOGIN_SUCCESS: "Welcome back! You have successfully logged in.";
281
+ readonly REGISTER_SUCCESS: "Account created successfully. Please check your email for verification.";
282
+ readonly PASSWORD_RESET_SENT: "If an account exists for that email, a password reset link has been sent.";
283
+ readonly PASSWORD_RESET_SUCCESS: "Your password has been successfully updated.";
284
+ };
285
+ readonly USER: {
286
+ readonly PROFILE_UPDATE_SUCCESS: "Your profile has been updated successfully.";
287
+ readonly HOST_PROFILE_CREATED: "Host profile created. You can now start hosting events.";
288
+ readonly PRODUCER_PROFILE_CREATED: "Producer profile created. Our team will review your verification details.";
289
+ };
290
+ readonly EVENT: {
291
+ readonly CREATED: "Event created successfully.";
292
+ readonly UPDATED: "Event details updated successfully.";
293
+ readonly PUBLISHED: "Event published! It is now visible to the public.";
294
+ readonly CANCELLED: "Event has been cancelled.";
295
+ };
296
+ readonly BOOKING: {
297
+ readonly REQUEST_SENT: "Your booking request has been sent to the producer.";
298
+ readonly ACCEPTED: "Booking accepted! Please proceed to fund the escrow.";
299
+ readonly CONFIRMED: "Escrow funded and booking confirmed. Service can now begin.";
300
+ readonly COMPLETED: "Service marked as completed. Funds will be released after the dispute window.";
301
+ };
302
+ readonly PAYMENT: {
303
+ readonly INITIATED: "Payment process started.";
304
+ readonly SUCCESS: "Payment verified and transaction completed.";
305
+ readonly FAILED: "Payment failed. Please try again or use a different method.";
306
+ };
307
+ readonly GENERAL: {
308
+ readonly SUCCESS: "Operation completed successfully.";
309
+ readonly ERROR: "An unexpected error occurred. Please contact support.";
310
+ readonly VALIDATION_ERROR: "Some information you provided is incorrect. Please check the highlights.";
311
+ };
312
+ };
313
+ type ResponseMessages = typeof ResponseMessages;
314
+
315
+ export { type ApiError, type ApiResponse, ApiResponseSchema, type PaginatedResponse, type PaginationMeta, type PaginationParams, PaginationParamsSchema, ResponseMessages };
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkF663RS3D_js=require('../chunk-F663RS3D.js');Object.defineProperty(exports,"ApiResponseSchema",{enumerable:true,get:function(){return chunkF663RS3D_js.a}});Object.defineProperty(exports,"PaginationParamsSchema",{enumerable:true,get:function(){return chunkF663RS3D_js.b}});Object.defineProperty(exports,"ResponseMessages",{enumerable:true,get:function(){return chunkF663RS3D_js.c}});//# sourceMappingURL=index.js.map
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
@@ -0,0 +1,2 @@
1
+ export{a as ApiResponseSchema,b as PaginationParamsSchema,c as ResponseMessages}from'../chunk-WEET4HBJ.mjs';//# sourceMappingURL=index.mjs.map
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}