@deepintel-ltd/farmpro-contracts 1.5.14 → 1.5.15

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.
@@ -0,0 +1,1344 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Subscription schemas - JSON:API compliant
4
+ */
5
+ export declare const subscriptionTierSchema: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
6
+ export declare const subscriptionStatusSchema: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
7
+ export declare const billingCycleSchema: z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>;
8
+ export declare const satelliteFrequencySchema: z.ZodEnum<["monthly", "weekly", "daily"]>;
9
+ export declare const subscriptionAttributesSchema: z.ZodObject<{
10
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
11
+ status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
12
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
13
+ currency: z.ZodEnum<["NGN", "USD"]>;
14
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
15
+ currentPeriodStart: z.ZodString;
16
+ currentPeriodEnd: z.ZodString;
17
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ paymentGateway: z.ZodOptional<z.ZodNullable<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>>;
19
+ gatewaySubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ maxFields: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ maxAiImagesPerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ satelliteFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "weekly", "daily"]>>>;
23
+ } & {
24
+ createdAt: z.ZodString;
25
+ updatedAt: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ status: "cancelled" | "active" | "expired" | "trial";
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ currency: "NGN" | "USD";
31
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
32
+ currentPeriodStart: string;
33
+ currentPeriodEnd: string;
34
+ amount?: number | null | undefined;
35
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
36
+ cancelledAt?: string | null | undefined;
37
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
38
+ gatewaySubscriptionId?: string | null | undefined;
39
+ maxFields?: number | null | undefined;
40
+ maxAiImagesPerMonth?: number | null | undefined;
41
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
42
+ }, {
43
+ status: "cancelled" | "active" | "expired" | "trial";
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ currency: "NGN" | "USD";
47
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
48
+ currentPeriodStart: string;
49
+ currentPeriodEnd: string;
50
+ amount?: number | null | undefined;
51
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
52
+ cancelledAt?: string | null | undefined;
53
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
54
+ gatewaySubscriptionId?: string | null | undefined;
55
+ maxFields?: number | null | undefined;
56
+ maxAiImagesPerMonth?: number | null | undefined;
57
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
58
+ }>;
59
+ export declare const createSubscriptionAttributesSchema: z.ZodObject<{
60
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
61
+ amount: z.ZodOptional<z.ZodNumber>;
62
+ currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
63
+ billingCycle: z.ZodOptional<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>;
64
+ paymentGateway: z.ZodOptional<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>;
65
+ gatewaySubscriptionId: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ currency: "NGN" | "USD";
68
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
69
+ amount?: number | undefined;
70
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | undefined;
71
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
72
+ gatewaySubscriptionId?: string | undefined;
73
+ }, {
74
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
75
+ currency?: "NGN" | "USD" | undefined;
76
+ amount?: number | undefined;
77
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | undefined;
78
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
79
+ gatewaySubscriptionId?: string | undefined;
80
+ }>;
81
+ export declare const upgradeSubscriptionAttributesSchema: z.ZodObject<{
82
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
83
+ amount: z.ZodNumber;
84
+ currency: z.ZodDefault<z.ZodEnum<["NGN", "USD"]>>;
85
+ billingCycle: z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>;
86
+ paymentGateway: z.ZodOptional<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>;
87
+ gatewaySubscriptionId: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ currency: "NGN" | "USD";
90
+ amount: number;
91
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
92
+ billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
93
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
94
+ gatewaySubscriptionId?: string | undefined;
95
+ }, {
96
+ amount: number;
97
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
98
+ billingCycle: "custom" | "monthly" | "annual" | "bi_annual";
99
+ currency?: "NGN" | "USD" | undefined;
100
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | undefined;
101
+ gatewaySubscriptionId?: string | undefined;
102
+ }>;
103
+ export declare const subscriptionResourceSchema: z.ZodObject<{
104
+ type: z.ZodLiteral<"subscriptions">;
105
+ id: z.ZodString;
106
+ attributes: z.ZodObject<{
107
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
108
+ status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
109
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
110
+ currency: z.ZodEnum<["NGN", "USD"]>;
111
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
112
+ currentPeriodStart: z.ZodString;
113
+ currentPeriodEnd: z.ZodString;
114
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ paymentGateway: z.ZodOptional<z.ZodNullable<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>>;
116
+ gatewaySubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ maxFields: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
+ maxAiImagesPerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
119
+ satelliteFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "weekly", "daily"]>>>;
120
+ } & {
121
+ createdAt: z.ZodString;
122
+ updatedAt: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ status: "cancelled" | "active" | "expired" | "trial";
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ currency: "NGN" | "USD";
128
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
129
+ currentPeriodStart: string;
130
+ currentPeriodEnd: string;
131
+ amount?: number | null | undefined;
132
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
133
+ cancelledAt?: string | null | undefined;
134
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
135
+ gatewaySubscriptionId?: string | null | undefined;
136
+ maxFields?: number | null | undefined;
137
+ maxAiImagesPerMonth?: number | null | undefined;
138
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
139
+ }, {
140
+ status: "cancelled" | "active" | "expired" | "trial";
141
+ createdAt: string;
142
+ updatedAt: string;
143
+ currency: "NGN" | "USD";
144
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
145
+ currentPeriodStart: string;
146
+ currentPeriodEnd: string;
147
+ amount?: number | null | undefined;
148
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
149
+ cancelledAt?: string | null | undefined;
150
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
151
+ gatewaySubscriptionId?: string | null | undefined;
152
+ maxFields?: number | null | undefined;
153
+ maxAiImagesPerMonth?: number | null | undefined;
154
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
155
+ }>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ type: "subscriptions";
158
+ id: string;
159
+ attributes: {
160
+ status: "cancelled" | "active" | "expired" | "trial";
161
+ createdAt: string;
162
+ updatedAt: string;
163
+ currency: "NGN" | "USD";
164
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
165
+ currentPeriodStart: string;
166
+ currentPeriodEnd: string;
167
+ amount?: number | null | undefined;
168
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
169
+ cancelledAt?: string | null | undefined;
170
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
171
+ gatewaySubscriptionId?: string | null | undefined;
172
+ maxFields?: number | null | undefined;
173
+ maxAiImagesPerMonth?: number | null | undefined;
174
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
175
+ };
176
+ }, {
177
+ type: "subscriptions";
178
+ id: string;
179
+ attributes: {
180
+ status: "cancelled" | "active" | "expired" | "trial";
181
+ createdAt: string;
182
+ updatedAt: string;
183
+ currency: "NGN" | "USD";
184
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
185
+ currentPeriodStart: string;
186
+ currentPeriodEnd: string;
187
+ amount?: number | null | undefined;
188
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
189
+ cancelledAt?: string | null | undefined;
190
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
191
+ gatewaySubscriptionId?: string | null | undefined;
192
+ maxFields?: number | null | undefined;
193
+ maxAiImagesPerMonth?: number | null | undefined;
194
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
195
+ };
196
+ }>;
197
+ export declare const subscriptionResponseSchema: z.ZodObject<{
198
+ data: z.ZodObject<{
199
+ type: z.ZodLiteral<"subscriptions">;
200
+ id: z.ZodString;
201
+ attributes: z.ZodObject<{
202
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
203
+ status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
204
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
205
+ currency: z.ZodEnum<["NGN", "USD"]>;
206
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
207
+ currentPeriodStart: z.ZodString;
208
+ currentPeriodEnd: z.ZodString;
209
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ paymentGateway: z.ZodOptional<z.ZodNullable<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>>;
211
+ gatewaySubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ maxFields: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
213
+ maxAiImagesPerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
214
+ satelliteFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "weekly", "daily"]>>>;
215
+ } & {
216
+ createdAt: z.ZodString;
217
+ updatedAt: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ status: "cancelled" | "active" | "expired" | "trial";
220
+ createdAt: string;
221
+ updatedAt: string;
222
+ currency: "NGN" | "USD";
223
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
224
+ currentPeriodStart: string;
225
+ currentPeriodEnd: string;
226
+ amount?: number | null | undefined;
227
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
228
+ cancelledAt?: string | null | undefined;
229
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
230
+ gatewaySubscriptionId?: string | null | undefined;
231
+ maxFields?: number | null | undefined;
232
+ maxAiImagesPerMonth?: number | null | undefined;
233
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
234
+ }, {
235
+ status: "cancelled" | "active" | "expired" | "trial";
236
+ createdAt: string;
237
+ updatedAt: string;
238
+ currency: "NGN" | "USD";
239
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
240
+ currentPeriodStart: string;
241
+ currentPeriodEnd: string;
242
+ amount?: number | null | undefined;
243
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
244
+ cancelledAt?: string | null | undefined;
245
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
246
+ gatewaySubscriptionId?: string | null | undefined;
247
+ maxFields?: number | null | undefined;
248
+ maxAiImagesPerMonth?: number | null | undefined;
249
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
250
+ }>;
251
+ }, "strip", z.ZodTypeAny, {
252
+ type: "subscriptions";
253
+ id: string;
254
+ attributes: {
255
+ status: "cancelled" | "active" | "expired" | "trial";
256
+ createdAt: string;
257
+ updatedAt: string;
258
+ currency: "NGN" | "USD";
259
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
260
+ currentPeriodStart: string;
261
+ currentPeriodEnd: string;
262
+ amount?: number | null | undefined;
263
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
264
+ cancelledAt?: string | null | undefined;
265
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
266
+ gatewaySubscriptionId?: string | null | undefined;
267
+ maxFields?: number | null | undefined;
268
+ maxAiImagesPerMonth?: number | null | undefined;
269
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
270
+ };
271
+ }, {
272
+ type: "subscriptions";
273
+ id: string;
274
+ attributes: {
275
+ status: "cancelled" | "active" | "expired" | "trial";
276
+ createdAt: string;
277
+ updatedAt: string;
278
+ currency: "NGN" | "USD";
279
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
280
+ currentPeriodStart: string;
281
+ currentPeriodEnd: string;
282
+ amount?: number | null | undefined;
283
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
284
+ cancelledAt?: string | null | undefined;
285
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
286
+ gatewaySubscriptionId?: string | null | undefined;
287
+ maxFields?: number | null | undefined;
288
+ maxAiImagesPerMonth?: number | null | undefined;
289
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
290
+ };
291
+ }>;
292
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
293
+ type: z.ZodString;
294
+ id: z.ZodString;
295
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
296
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
298
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ type: string;
301
+ id: string;
302
+ attributes?: Record<string, unknown> | undefined;
303
+ relationships?: Record<string, unknown> | undefined;
304
+ links?: Record<string, string> | undefined;
305
+ meta?: Record<string, unknown> | undefined;
306
+ }, {
307
+ type: string;
308
+ id: string;
309
+ attributes?: Record<string, unknown> | undefined;
310
+ relationships?: Record<string, unknown> | undefined;
311
+ links?: Record<string, string> | undefined;
312
+ meta?: Record<string, unknown> | undefined;
313
+ }>, "many">>;
314
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
315
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
316
+ }, "strip", z.ZodTypeAny, {
317
+ data: {
318
+ type: "subscriptions";
319
+ id: string;
320
+ attributes: {
321
+ status: "cancelled" | "active" | "expired" | "trial";
322
+ createdAt: string;
323
+ updatedAt: string;
324
+ currency: "NGN" | "USD";
325
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
326
+ currentPeriodStart: string;
327
+ currentPeriodEnd: string;
328
+ amount?: number | null | undefined;
329
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
330
+ cancelledAt?: string | null | undefined;
331
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
332
+ gatewaySubscriptionId?: string | null | undefined;
333
+ maxFields?: number | null | undefined;
334
+ maxAiImagesPerMonth?: number | null | undefined;
335
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
336
+ };
337
+ };
338
+ links?: Record<string, string> | undefined;
339
+ meta?: Record<string, unknown> | undefined;
340
+ included?: {
341
+ type: string;
342
+ id: string;
343
+ attributes?: Record<string, unknown> | undefined;
344
+ relationships?: Record<string, unknown> | undefined;
345
+ links?: Record<string, string> | undefined;
346
+ meta?: Record<string, unknown> | undefined;
347
+ }[] | undefined;
348
+ }, {
349
+ data: {
350
+ type: "subscriptions";
351
+ id: string;
352
+ attributes: {
353
+ status: "cancelled" | "active" | "expired" | "trial";
354
+ createdAt: string;
355
+ updatedAt: string;
356
+ currency: "NGN" | "USD";
357
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
358
+ currentPeriodStart: string;
359
+ currentPeriodEnd: string;
360
+ amount?: number | null | undefined;
361
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
362
+ cancelledAt?: string | null | undefined;
363
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
364
+ gatewaySubscriptionId?: string | null | undefined;
365
+ maxFields?: number | null | undefined;
366
+ maxAiImagesPerMonth?: number | null | undefined;
367
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
368
+ };
369
+ };
370
+ links?: Record<string, string> | undefined;
371
+ meta?: Record<string, unknown> | undefined;
372
+ included?: {
373
+ type: string;
374
+ id: string;
375
+ attributes?: Record<string, unknown> | undefined;
376
+ relationships?: Record<string, unknown> | undefined;
377
+ links?: Record<string, string> | undefined;
378
+ meta?: Record<string, unknown> | undefined;
379
+ }[] | undefined;
380
+ }>;
381
+ export declare const subscriptionListResponseSchema: z.ZodObject<{
382
+ data: z.ZodArray<z.ZodObject<{
383
+ type: z.ZodLiteral<"subscriptions">;
384
+ id: z.ZodString;
385
+ attributes: z.ZodObject<{
386
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
387
+ status: z.ZodEnum<["active", "cancelled", "expired", "trial"]>;
388
+ amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
389
+ currency: z.ZodEnum<["NGN", "USD"]>;
390
+ billingCycle: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "annual", "bi_annual", "custom"]>>>;
391
+ currentPeriodStart: z.ZodString;
392
+ currentPeriodEnd: z.ZodString;
393
+ cancelledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
394
+ paymentGateway: z.ZodOptional<z.ZodNullable<z.ZodEnum<["flutterwave", "paystack", "stripe", "paypal", "other"]>>>;
395
+ gatewaySubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ maxFields: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
397
+ maxAiImagesPerMonth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
398
+ satelliteFrequency: z.ZodOptional<z.ZodNullable<z.ZodEnum<["monthly", "weekly", "daily"]>>>;
399
+ } & {
400
+ createdAt: z.ZodString;
401
+ updatedAt: z.ZodString;
402
+ }, "strip", z.ZodTypeAny, {
403
+ status: "cancelled" | "active" | "expired" | "trial";
404
+ createdAt: string;
405
+ updatedAt: string;
406
+ currency: "NGN" | "USD";
407
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
408
+ currentPeriodStart: string;
409
+ currentPeriodEnd: string;
410
+ amount?: number | null | undefined;
411
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
412
+ cancelledAt?: string | null | undefined;
413
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
414
+ gatewaySubscriptionId?: string | null | undefined;
415
+ maxFields?: number | null | undefined;
416
+ maxAiImagesPerMonth?: number | null | undefined;
417
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
418
+ }, {
419
+ status: "cancelled" | "active" | "expired" | "trial";
420
+ createdAt: string;
421
+ updatedAt: string;
422
+ currency: "NGN" | "USD";
423
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
424
+ currentPeriodStart: string;
425
+ currentPeriodEnd: string;
426
+ amount?: number | null | undefined;
427
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
428
+ cancelledAt?: string | null | undefined;
429
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
430
+ gatewaySubscriptionId?: string | null | undefined;
431
+ maxFields?: number | null | undefined;
432
+ maxAiImagesPerMonth?: number | null | undefined;
433
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
434
+ }>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ type: "subscriptions";
437
+ id: string;
438
+ attributes: {
439
+ status: "cancelled" | "active" | "expired" | "trial";
440
+ createdAt: string;
441
+ updatedAt: string;
442
+ currency: "NGN" | "USD";
443
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
444
+ currentPeriodStart: string;
445
+ currentPeriodEnd: string;
446
+ amount?: number | null | undefined;
447
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
448
+ cancelledAt?: string | null | undefined;
449
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
450
+ gatewaySubscriptionId?: string | null | undefined;
451
+ maxFields?: number | null | undefined;
452
+ maxAiImagesPerMonth?: number | null | undefined;
453
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
454
+ };
455
+ }, {
456
+ type: "subscriptions";
457
+ id: string;
458
+ attributes: {
459
+ status: "cancelled" | "active" | "expired" | "trial";
460
+ createdAt: string;
461
+ updatedAt: string;
462
+ currency: "NGN" | "USD";
463
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
464
+ currentPeriodStart: string;
465
+ currentPeriodEnd: string;
466
+ amount?: number | null | undefined;
467
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
468
+ cancelledAt?: string | null | undefined;
469
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
470
+ gatewaySubscriptionId?: string | null | undefined;
471
+ maxFields?: number | null | undefined;
472
+ maxAiImagesPerMonth?: number | null | undefined;
473
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
474
+ };
475
+ }>, "many">;
476
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
477
+ type: z.ZodString;
478
+ id: z.ZodString;
479
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
480
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
481
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
482
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: string;
485
+ id: string;
486
+ attributes?: Record<string, unknown> | undefined;
487
+ relationships?: Record<string, unknown> | undefined;
488
+ links?: Record<string, string> | undefined;
489
+ meta?: Record<string, unknown> | undefined;
490
+ }, {
491
+ type: string;
492
+ id: string;
493
+ attributes?: Record<string, unknown> | undefined;
494
+ relationships?: Record<string, unknown> | undefined;
495
+ links?: Record<string, string> | undefined;
496
+ meta?: Record<string, unknown> | undefined;
497
+ }>, "many">>;
498
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
499
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
500
+ }, "strip", z.ZodTypeAny, {
501
+ data: {
502
+ type: "subscriptions";
503
+ id: string;
504
+ attributes: {
505
+ status: "cancelled" | "active" | "expired" | "trial";
506
+ createdAt: string;
507
+ updatedAt: string;
508
+ currency: "NGN" | "USD";
509
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
510
+ currentPeriodStart: string;
511
+ currentPeriodEnd: string;
512
+ amount?: number | null | undefined;
513
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
514
+ cancelledAt?: string | null | undefined;
515
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
516
+ gatewaySubscriptionId?: string | null | undefined;
517
+ maxFields?: number | null | undefined;
518
+ maxAiImagesPerMonth?: number | null | undefined;
519
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
520
+ };
521
+ }[];
522
+ links?: Record<string, string> | undefined;
523
+ meta?: Record<string, unknown> | undefined;
524
+ included?: {
525
+ type: string;
526
+ id: string;
527
+ attributes?: Record<string, unknown> | undefined;
528
+ relationships?: Record<string, unknown> | undefined;
529
+ links?: Record<string, string> | undefined;
530
+ meta?: Record<string, unknown> | undefined;
531
+ }[] | undefined;
532
+ }, {
533
+ data: {
534
+ type: "subscriptions";
535
+ id: string;
536
+ attributes: {
537
+ status: "cancelled" | "active" | "expired" | "trial";
538
+ createdAt: string;
539
+ updatedAt: string;
540
+ currency: "NGN" | "USD";
541
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
542
+ currentPeriodStart: string;
543
+ currentPeriodEnd: string;
544
+ amount?: number | null | undefined;
545
+ billingCycle?: "custom" | "monthly" | "annual" | "bi_annual" | null | undefined;
546
+ cancelledAt?: string | null | undefined;
547
+ paymentGateway?: "other" | "flutterwave" | "paystack" | "stripe" | "paypal" | null | undefined;
548
+ gatewaySubscriptionId?: string | null | undefined;
549
+ maxFields?: number | null | undefined;
550
+ maxAiImagesPerMonth?: number | null | undefined;
551
+ satelliteFrequency?: "monthly" | "daily" | "weekly" | null | undefined;
552
+ };
553
+ }[];
554
+ links?: Record<string, string> | undefined;
555
+ meta?: Record<string, unknown> | undefined;
556
+ included?: {
557
+ type: string;
558
+ id: string;
559
+ attributes?: Record<string, unknown> | undefined;
560
+ relationships?: Record<string, unknown> | undefined;
561
+ links?: Record<string, string> | undefined;
562
+ meta?: Record<string, unknown> | undefined;
563
+ }[] | undefined;
564
+ }>;
565
+ export declare const usageTrackingAttributesSchema: z.ZodObject<{
566
+ resourceType: z.ZodString;
567
+ count: z.ZodNumber;
568
+ periodStart: z.ZodString;
569
+ periodEnd: z.ZodString;
570
+ } & {
571
+ createdAt: z.ZodString;
572
+ updatedAt: z.ZodString;
573
+ }, "strip", z.ZodTypeAny, {
574
+ createdAt: string;
575
+ updatedAt: string;
576
+ count: number;
577
+ resourceType: string;
578
+ periodStart: string;
579
+ periodEnd: string;
580
+ }, {
581
+ createdAt: string;
582
+ updatedAt: string;
583
+ count: number;
584
+ resourceType: string;
585
+ periodStart: string;
586
+ periodEnd: string;
587
+ }>;
588
+ export declare const usageTrackingResourceSchema: z.ZodObject<{
589
+ type: z.ZodLiteral<"usage-tracking">;
590
+ id: z.ZodString;
591
+ attributes: z.ZodObject<{
592
+ resourceType: z.ZodString;
593
+ count: z.ZodNumber;
594
+ periodStart: z.ZodString;
595
+ periodEnd: z.ZodString;
596
+ } & {
597
+ createdAt: z.ZodString;
598
+ updatedAt: z.ZodString;
599
+ }, "strip", z.ZodTypeAny, {
600
+ createdAt: string;
601
+ updatedAt: string;
602
+ count: number;
603
+ resourceType: string;
604
+ periodStart: string;
605
+ periodEnd: string;
606
+ }, {
607
+ createdAt: string;
608
+ updatedAt: string;
609
+ count: number;
610
+ resourceType: string;
611
+ periodStart: string;
612
+ periodEnd: string;
613
+ }>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ type: "usage-tracking";
616
+ id: string;
617
+ attributes: {
618
+ createdAt: string;
619
+ updatedAt: string;
620
+ count: number;
621
+ resourceType: string;
622
+ periodStart: string;
623
+ periodEnd: string;
624
+ };
625
+ }, {
626
+ type: "usage-tracking";
627
+ id: string;
628
+ attributes: {
629
+ createdAt: string;
630
+ updatedAt: string;
631
+ count: number;
632
+ resourceType: string;
633
+ periodStart: string;
634
+ periodEnd: string;
635
+ };
636
+ }>;
637
+ export declare const usageTrackingResponseSchema: z.ZodObject<{
638
+ data: z.ZodObject<{
639
+ type: z.ZodLiteral<"usage-tracking">;
640
+ id: z.ZodString;
641
+ attributes: z.ZodObject<{
642
+ resourceType: z.ZodString;
643
+ count: z.ZodNumber;
644
+ periodStart: z.ZodString;
645
+ periodEnd: z.ZodString;
646
+ } & {
647
+ createdAt: z.ZodString;
648
+ updatedAt: z.ZodString;
649
+ }, "strip", z.ZodTypeAny, {
650
+ createdAt: string;
651
+ updatedAt: string;
652
+ count: number;
653
+ resourceType: string;
654
+ periodStart: string;
655
+ periodEnd: string;
656
+ }, {
657
+ createdAt: string;
658
+ updatedAt: string;
659
+ count: number;
660
+ resourceType: string;
661
+ periodStart: string;
662
+ periodEnd: string;
663
+ }>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ type: "usage-tracking";
666
+ id: string;
667
+ attributes: {
668
+ createdAt: string;
669
+ updatedAt: string;
670
+ count: number;
671
+ resourceType: string;
672
+ periodStart: string;
673
+ periodEnd: string;
674
+ };
675
+ }, {
676
+ type: "usage-tracking";
677
+ id: string;
678
+ attributes: {
679
+ createdAt: string;
680
+ updatedAt: string;
681
+ count: number;
682
+ resourceType: string;
683
+ periodStart: string;
684
+ periodEnd: string;
685
+ };
686
+ }>;
687
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
688
+ type: z.ZodString;
689
+ id: z.ZodString;
690
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
691
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
692
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
693
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
694
+ }, "strip", z.ZodTypeAny, {
695
+ type: string;
696
+ id: string;
697
+ attributes?: Record<string, unknown> | undefined;
698
+ relationships?: Record<string, unknown> | undefined;
699
+ links?: Record<string, string> | undefined;
700
+ meta?: Record<string, unknown> | undefined;
701
+ }, {
702
+ type: string;
703
+ id: string;
704
+ attributes?: Record<string, unknown> | undefined;
705
+ relationships?: Record<string, unknown> | undefined;
706
+ links?: Record<string, string> | undefined;
707
+ meta?: Record<string, unknown> | undefined;
708
+ }>, "many">>;
709
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
710
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ data: {
713
+ type: "usage-tracking";
714
+ id: string;
715
+ attributes: {
716
+ createdAt: string;
717
+ updatedAt: string;
718
+ count: number;
719
+ resourceType: string;
720
+ periodStart: string;
721
+ periodEnd: string;
722
+ };
723
+ };
724
+ links?: Record<string, string> | undefined;
725
+ meta?: Record<string, unknown> | undefined;
726
+ included?: {
727
+ type: string;
728
+ id: string;
729
+ attributes?: Record<string, unknown> | undefined;
730
+ relationships?: Record<string, unknown> | undefined;
731
+ links?: Record<string, string> | undefined;
732
+ meta?: Record<string, unknown> | undefined;
733
+ }[] | undefined;
734
+ }, {
735
+ data: {
736
+ type: "usage-tracking";
737
+ id: string;
738
+ attributes: {
739
+ createdAt: string;
740
+ updatedAt: string;
741
+ count: number;
742
+ resourceType: string;
743
+ periodStart: string;
744
+ periodEnd: string;
745
+ };
746
+ };
747
+ links?: Record<string, string> | undefined;
748
+ meta?: Record<string, unknown> | undefined;
749
+ included?: {
750
+ type: string;
751
+ id: string;
752
+ attributes?: Record<string, unknown> | undefined;
753
+ relationships?: Record<string, unknown> | undefined;
754
+ links?: Record<string, string> | undefined;
755
+ meta?: Record<string, unknown> | undefined;
756
+ }[] | undefined;
757
+ }>;
758
+ export declare const usageTrackingListResponseSchema: z.ZodObject<{
759
+ data: z.ZodArray<z.ZodObject<{
760
+ type: z.ZodLiteral<"usage-tracking">;
761
+ id: z.ZodString;
762
+ attributes: z.ZodObject<{
763
+ resourceType: z.ZodString;
764
+ count: z.ZodNumber;
765
+ periodStart: z.ZodString;
766
+ periodEnd: z.ZodString;
767
+ } & {
768
+ createdAt: z.ZodString;
769
+ updatedAt: z.ZodString;
770
+ }, "strip", z.ZodTypeAny, {
771
+ createdAt: string;
772
+ updatedAt: string;
773
+ count: number;
774
+ resourceType: string;
775
+ periodStart: string;
776
+ periodEnd: string;
777
+ }, {
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ count: number;
781
+ resourceType: string;
782
+ periodStart: string;
783
+ periodEnd: string;
784
+ }>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ type: "usage-tracking";
787
+ id: string;
788
+ attributes: {
789
+ createdAt: string;
790
+ updatedAt: string;
791
+ count: number;
792
+ resourceType: string;
793
+ periodStart: string;
794
+ periodEnd: string;
795
+ };
796
+ }, {
797
+ type: "usage-tracking";
798
+ id: string;
799
+ attributes: {
800
+ createdAt: string;
801
+ updatedAt: string;
802
+ count: number;
803
+ resourceType: string;
804
+ periodStart: string;
805
+ periodEnd: string;
806
+ };
807
+ }>, "many">;
808
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
809
+ type: z.ZodString;
810
+ id: z.ZodString;
811
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
812
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
813
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
814
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
815
+ }, "strip", z.ZodTypeAny, {
816
+ type: string;
817
+ id: string;
818
+ attributes?: Record<string, unknown> | undefined;
819
+ relationships?: Record<string, unknown> | undefined;
820
+ links?: Record<string, string> | undefined;
821
+ meta?: Record<string, unknown> | undefined;
822
+ }, {
823
+ type: string;
824
+ id: string;
825
+ attributes?: Record<string, unknown> | undefined;
826
+ relationships?: Record<string, unknown> | undefined;
827
+ links?: Record<string, string> | undefined;
828
+ meta?: Record<string, unknown> | undefined;
829
+ }>, "many">>;
830
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
831
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
832
+ }, "strip", z.ZodTypeAny, {
833
+ data: {
834
+ type: "usage-tracking";
835
+ id: string;
836
+ attributes: {
837
+ createdAt: string;
838
+ updatedAt: string;
839
+ count: number;
840
+ resourceType: string;
841
+ periodStart: string;
842
+ periodEnd: string;
843
+ };
844
+ }[];
845
+ links?: Record<string, string> | undefined;
846
+ meta?: Record<string, unknown> | undefined;
847
+ included?: {
848
+ type: string;
849
+ id: string;
850
+ attributes?: Record<string, unknown> | undefined;
851
+ relationships?: Record<string, unknown> | undefined;
852
+ links?: Record<string, string> | undefined;
853
+ meta?: Record<string, unknown> | undefined;
854
+ }[] | undefined;
855
+ }, {
856
+ data: {
857
+ type: "usage-tracking";
858
+ id: string;
859
+ attributes: {
860
+ createdAt: string;
861
+ updatedAt: string;
862
+ count: number;
863
+ resourceType: string;
864
+ periodStart: string;
865
+ periodEnd: string;
866
+ };
867
+ }[];
868
+ links?: Record<string, string> | undefined;
869
+ meta?: Record<string, unknown> | undefined;
870
+ included?: {
871
+ type: string;
872
+ id: string;
873
+ attributes?: Record<string, unknown> | undefined;
874
+ relationships?: Record<string, unknown> | undefined;
875
+ links?: Record<string, string> | undefined;
876
+ meta?: Record<string, unknown> | undefined;
877
+ }[] | undefined;
878
+ }>;
879
+ export declare const tierLimitsResponseSchema: z.ZodObject<{
880
+ maxFields: z.ZodNullable<z.ZodNumber>;
881
+ maxAiImagesPerMonth: z.ZodNullable<z.ZodNumber>;
882
+ satelliteFrequency: z.ZodEnum<["monthly", "weekly", "daily"]>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ maxFields: number | null;
885
+ maxAiImagesPerMonth: number | null;
886
+ satelliteFrequency: "monthly" | "daily" | "weekly";
887
+ }, {
888
+ maxFields: number | null;
889
+ maxAiImagesPerMonth: number | null;
890
+ satelliteFrequency: "monthly" | "daily" | "weekly";
891
+ }>;
892
+ export declare const currentUsageResponseSchema: z.ZodObject<{
893
+ resourceType: z.ZodString;
894
+ count: z.ZodNumber;
895
+ limit: z.ZodNullable<z.ZodNumber>;
896
+ periodStart: z.ZodString;
897
+ periodEnd: z.ZodString;
898
+ }, "strip", z.ZodTypeAny, {
899
+ count: number;
900
+ limit: number | null;
901
+ resourceType: string;
902
+ periodStart: string;
903
+ periodEnd: string;
904
+ }, {
905
+ count: number;
906
+ limit: number | null;
907
+ resourceType: string;
908
+ periodStart: string;
909
+ periodEnd: string;
910
+ }>;
911
+ export declare const availablePlanSchema: z.ZodObject<{
912
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
913
+ name: z.ZodString;
914
+ description: z.ZodString;
915
+ pricing: z.ZodObject<{
916
+ monthly: z.ZodNullable<z.ZodObject<{
917
+ ngn: z.ZodNullable<z.ZodNumber>;
918
+ usd: z.ZodNullable<z.ZodNumber>;
919
+ }, "strip", z.ZodTypeAny, {
920
+ ngn: number | null;
921
+ usd: number | null;
922
+ }, {
923
+ ngn: number | null;
924
+ usd: number | null;
925
+ }>>;
926
+ annual: z.ZodNullable<z.ZodObject<{
927
+ ngn: z.ZodNullable<z.ZodNumber>;
928
+ usd: z.ZodNullable<z.ZodNumber>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ ngn: number | null;
931
+ usd: number | null;
932
+ }, {
933
+ ngn: number | null;
934
+ usd: number | null;
935
+ }>>;
936
+ custom: z.ZodBoolean;
937
+ }, "strip", z.ZodTypeAny, {
938
+ custom: boolean;
939
+ monthly: {
940
+ ngn: number | null;
941
+ usd: number | null;
942
+ } | null;
943
+ annual: {
944
+ ngn: number | null;
945
+ usd: number | null;
946
+ } | null;
947
+ }, {
948
+ custom: boolean;
949
+ monthly: {
950
+ ngn: number | null;
951
+ usd: number | null;
952
+ } | null;
953
+ annual: {
954
+ ngn: number | null;
955
+ usd: number | null;
956
+ } | null;
957
+ }>;
958
+ features: z.ZodObject<{
959
+ maxFields: z.ZodNullable<z.ZodNumber>;
960
+ maxAiImagesPerMonth: z.ZodNullable<z.ZodNumber>;
961
+ satelliteFrequency: z.ZodNullable<z.ZodEnum<["monthly", "weekly", "daily"]>>;
962
+ agronomicsAdvisor: z.ZodBoolean;
963
+ agronomicsAdvisorLimit: z.ZodNullable<z.ZodNumber>;
964
+ weatherAlerts: z.ZodBoolean;
965
+ weatherAlertsLimit: z.ZodNullable<z.ZodNumber>;
966
+ apiAccess: z.ZodBoolean;
967
+ whiteLabel: z.ZodBoolean;
968
+ cooperativeTools: z.ZodBoolean;
969
+ extensionWorkerUI: z.ZodBoolean;
970
+ meDashboard: z.ZodBoolean;
971
+ support: z.ZodEnum<["community", "email", "phone", "dedicated"]>;
972
+ }, "strip", z.ZodTypeAny, {
973
+ maxFields: number | null;
974
+ maxAiImagesPerMonth: number | null;
975
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
976
+ agronomicsAdvisor: boolean;
977
+ agronomicsAdvisorLimit: number | null;
978
+ weatherAlerts: boolean;
979
+ weatherAlertsLimit: number | null;
980
+ apiAccess: boolean;
981
+ whiteLabel: boolean;
982
+ cooperativeTools: boolean;
983
+ extensionWorkerUI: boolean;
984
+ meDashboard: boolean;
985
+ support: "email" | "phone" | "community" | "dedicated";
986
+ }, {
987
+ maxFields: number | null;
988
+ maxAiImagesPerMonth: number | null;
989
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
990
+ agronomicsAdvisor: boolean;
991
+ agronomicsAdvisorLimit: number | null;
992
+ weatherAlerts: boolean;
993
+ weatherAlertsLimit: number | null;
994
+ apiAccess: boolean;
995
+ whiteLabel: boolean;
996
+ cooperativeTools: boolean;
997
+ extensionWorkerUI: boolean;
998
+ meDashboard: boolean;
999
+ support: "email" | "phone" | "community" | "dedicated";
1000
+ }>;
1001
+ popular: z.ZodOptional<z.ZodBoolean>;
1002
+ }, "strip", z.ZodTypeAny, {
1003
+ name: string;
1004
+ description: string;
1005
+ features: {
1006
+ maxFields: number | null;
1007
+ maxAiImagesPerMonth: number | null;
1008
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1009
+ agronomicsAdvisor: boolean;
1010
+ agronomicsAdvisorLimit: number | null;
1011
+ weatherAlerts: boolean;
1012
+ weatherAlertsLimit: number | null;
1013
+ apiAccess: boolean;
1014
+ whiteLabel: boolean;
1015
+ cooperativeTools: boolean;
1016
+ extensionWorkerUI: boolean;
1017
+ meDashboard: boolean;
1018
+ support: "email" | "phone" | "community" | "dedicated";
1019
+ };
1020
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1021
+ pricing: {
1022
+ custom: boolean;
1023
+ monthly: {
1024
+ ngn: number | null;
1025
+ usd: number | null;
1026
+ } | null;
1027
+ annual: {
1028
+ ngn: number | null;
1029
+ usd: number | null;
1030
+ } | null;
1031
+ };
1032
+ popular?: boolean | undefined;
1033
+ }, {
1034
+ name: string;
1035
+ description: string;
1036
+ features: {
1037
+ maxFields: number | null;
1038
+ maxAiImagesPerMonth: number | null;
1039
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1040
+ agronomicsAdvisor: boolean;
1041
+ agronomicsAdvisorLimit: number | null;
1042
+ weatherAlerts: boolean;
1043
+ weatherAlertsLimit: number | null;
1044
+ apiAccess: boolean;
1045
+ whiteLabel: boolean;
1046
+ cooperativeTools: boolean;
1047
+ extensionWorkerUI: boolean;
1048
+ meDashboard: boolean;
1049
+ support: "email" | "phone" | "community" | "dedicated";
1050
+ };
1051
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1052
+ pricing: {
1053
+ custom: boolean;
1054
+ monthly: {
1055
+ ngn: number | null;
1056
+ usd: number | null;
1057
+ } | null;
1058
+ annual: {
1059
+ ngn: number | null;
1060
+ usd: number | null;
1061
+ } | null;
1062
+ };
1063
+ popular?: boolean | undefined;
1064
+ }>;
1065
+ export declare const availablePlansResponseSchema: z.ZodObject<{
1066
+ data: z.ZodArray<z.ZodObject<{
1067
+ tier: z.ZodEnum<["FREE", "STARTER_PACK", "COOPERATIVE", "ENTERPRISE", "GOVERNMENT"]>;
1068
+ name: z.ZodString;
1069
+ description: z.ZodString;
1070
+ pricing: z.ZodObject<{
1071
+ monthly: z.ZodNullable<z.ZodObject<{
1072
+ ngn: z.ZodNullable<z.ZodNumber>;
1073
+ usd: z.ZodNullable<z.ZodNumber>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ ngn: number | null;
1076
+ usd: number | null;
1077
+ }, {
1078
+ ngn: number | null;
1079
+ usd: number | null;
1080
+ }>>;
1081
+ annual: z.ZodNullable<z.ZodObject<{
1082
+ ngn: z.ZodNullable<z.ZodNumber>;
1083
+ usd: z.ZodNullable<z.ZodNumber>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ ngn: number | null;
1086
+ usd: number | null;
1087
+ }, {
1088
+ ngn: number | null;
1089
+ usd: number | null;
1090
+ }>>;
1091
+ custom: z.ZodBoolean;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ custom: boolean;
1094
+ monthly: {
1095
+ ngn: number | null;
1096
+ usd: number | null;
1097
+ } | null;
1098
+ annual: {
1099
+ ngn: number | null;
1100
+ usd: number | null;
1101
+ } | null;
1102
+ }, {
1103
+ custom: boolean;
1104
+ monthly: {
1105
+ ngn: number | null;
1106
+ usd: number | null;
1107
+ } | null;
1108
+ annual: {
1109
+ ngn: number | null;
1110
+ usd: number | null;
1111
+ } | null;
1112
+ }>;
1113
+ features: z.ZodObject<{
1114
+ maxFields: z.ZodNullable<z.ZodNumber>;
1115
+ maxAiImagesPerMonth: z.ZodNullable<z.ZodNumber>;
1116
+ satelliteFrequency: z.ZodNullable<z.ZodEnum<["monthly", "weekly", "daily"]>>;
1117
+ agronomicsAdvisor: z.ZodBoolean;
1118
+ agronomicsAdvisorLimit: z.ZodNullable<z.ZodNumber>;
1119
+ weatherAlerts: z.ZodBoolean;
1120
+ weatherAlertsLimit: z.ZodNullable<z.ZodNumber>;
1121
+ apiAccess: z.ZodBoolean;
1122
+ whiteLabel: z.ZodBoolean;
1123
+ cooperativeTools: z.ZodBoolean;
1124
+ extensionWorkerUI: z.ZodBoolean;
1125
+ meDashboard: z.ZodBoolean;
1126
+ support: z.ZodEnum<["community", "email", "phone", "dedicated"]>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ maxFields: number | null;
1129
+ maxAiImagesPerMonth: number | null;
1130
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1131
+ agronomicsAdvisor: boolean;
1132
+ agronomicsAdvisorLimit: number | null;
1133
+ weatherAlerts: boolean;
1134
+ weatherAlertsLimit: number | null;
1135
+ apiAccess: boolean;
1136
+ whiteLabel: boolean;
1137
+ cooperativeTools: boolean;
1138
+ extensionWorkerUI: boolean;
1139
+ meDashboard: boolean;
1140
+ support: "email" | "phone" | "community" | "dedicated";
1141
+ }, {
1142
+ maxFields: number | null;
1143
+ maxAiImagesPerMonth: number | null;
1144
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1145
+ agronomicsAdvisor: boolean;
1146
+ agronomicsAdvisorLimit: number | null;
1147
+ weatherAlerts: boolean;
1148
+ weatherAlertsLimit: number | null;
1149
+ apiAccess: boolean;
1150
+ whiteLabel: boolean;
1151
+ cooperativeTools: boolean;
1152
+ extensionWorkerUI: boolean;
1153
+ meDashboard: boolean;
1154
+ support: "email" | "phone" | "community" | "dedicated";
1155
+ }>;
1156
+ popular: z.ZodOptional<z.ZodBoolean>;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ name: string;
1159
+ description: string;
1160
+ features: {
1161
+ maxFields: number | null;
1162
+ maxAiImagesPerMonth: number | null;
1163
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1164
+ agronomicsAdvisor: boolean;
1165
+ agronomicsAdvisorLimit: number | null;
1166
+ weatherAlerts: boolean;
1167
+ weatherAlertsLimit: number | null;
1168
+ apiAccess: boolean;
1169
+ whiteLabel: boolean;
1170
+ cooperativeTools: boolean;
1171
+ extensionWorkerUI: boolean;
1172
+ meDashboard: boolean;
1173
+ support: "email" | "phone" | "community" | "dedicated";
1174
+ };
1175
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1176
+ pricing: {
1177
+ custom: boolean;
1178
+ monthly: {
1179
+ ngn: number | null;
1180
+ usd: number | null;
1181
+ } | null;
1182
+ annual: {
1183
+ ngn: number | null;
1184
+ usd: number | null;
1185
+ } | null;
1186
+ };
1187
+ popular?: boolean | undefined;
1188
+ }, {
1189
+ name: string;
1190
+ description: string;
1191
+ features: {
1192
+ maxFields: number | null;
1193
+ maxAiImagesPerMonth: number | null;
1194
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1195
+ agronomicsAdvisor: boolean;
1196
+ agronomicsAdvisorLimit: number | null;
1197
+ weatherAlerts: boolean;
1198
+ weatherAlertsLimit: number | null;
1199
+ apiAccess: boolean;
1200
+ whiteLabel: boolean;
1201
+ cooperativeTools: boolean;
1202
+ extensionWorkerUI: boolean;
1203
+ meDashboard: boolean;
1204
+ support: "email" | "phone" | "community" | "dedicated";
1205
+ };
1206
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1207
+ pricing: {
1208
+ custom: boolean;
1209
+ monthly: {
1210
+ ngn: number | null;
1211
+ usd: number | null;
1212
+ } | null;
1213
+ annual: {
1214
+ ngn: number | null;
1215
+ usd: number | null;
1216
+ } | null;
1217
+ };
1218
+ popular?: boolean | undefined;
1219
+ }>, "many">;
1220
+ meta: z.ZodOptional<z.ZodObject<{
1221
+ detectedLocation: z.ZodObject<{
1222
+ country: z.ZodString;
1223
+ countryName: z.ZodString;
1224
+ currency: z.ZodEnum<["NGN", "USD"]>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ currency: "NGN" | "USD";
1227
+ country: string;
1228
+ countryName: string;
1229
+ }, {
1230
+ currency: "NGN" | "USD";
1231
+ country: string;
1232
+ countryName: string;
1233
+ }>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ detectedLocation: {
1236
+ currency: "NGN" | "USD";
1237
+ country: string;
1238
+ countryName: string;
1239
+ };
1240
+ }, {
1241
+ detectedLocation: {
1242
+ currency: "NGN" | "USD";
1243
+ country: string;
1244
+ countryName: string;
1245
+ };
1246
+ }>>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ data: {
1249
+ name: string;
1250
+ description: string;
1251
+ features: {
1252
+ maxFields: number | null;
1253
+ maxAiImagesPerMonth: number | null;
1254
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1255
+ agronomicsAdvisor: boolean;
1256
+ agronomicsAdvisorLimit: number | null;
1257
+ weatherAlerts: boolean;
1258
+ weatherAlertsLimit: number | null;
1259
+ apiAccess: boolean;
1260
+ whiteLabel: boolean;
1261
+ cooperativeTools: boolean;
1262
+ extensionWorkerUI: boolean;
1263
+ meDashboard: boolean;
1264
+ support: "email" | "phone" | "community" | "dedicated";
1265
+ };
1266
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1267
+ pricing: {
1268
+ custom: boolean;
1269
+ monthly: {
1270
+ ngn: number | null;
1271
+ usd: number | null;
1272
+ } | null;
1273
+ annual: {
1274
+ ngn: number | null;
1275
+ usd: number | null;
1276
+ } | null;
1277
+ };
1278
+ popular?: boolean | undefined;
1279
+ }[];
1280
+ meta?: {
1281
+ detectedLocation: {
1282
+ currency: "NGN" | "USD";
1283
+ country: string;
1284
+ countryName: string;
1285
+ };
1286
+ } | undefined;
1287
+ }, {
1288
+ data: {
1289
+ name: string;
1290
+ description: string;
1291
+ features: {
1292
+ maxFields: number | null;
1293
+ maxAiImagesPerMonth: number | null;
1294
+ satelliteFrequency: "monthly" | "daily" | "weekly" | null;
1295
+ agronomicsAdvisor: boolean;
1296
+ agronomicsAdvisorLimit: number | null;
1297
+ weatherAlerts: boolean;
1298
+ weatherAlertsLimit: number | null;
1299
+ apiAccess: boolean;
1300
+ whiteLabel: boolean;
1301
+ cooperativeTools: boolean;
1302
+ extensionWorkerUI: boolean;
1303
+ meDashboard: boolean;
1304
+ support: "email" | "phone" | "community" | "dedicated";
1305
+ };
1306
+ tier: "FREE" | "STARTER_PACK" | "COOPERATIVE" | "ENTERPRISE" | "GOVERNMENT";
1307
+ pricing: {
1308
+ custom: boolean;
1309
+ monthly: {
1310
+ ngn: number | null;
1311
+ usd: number | null;
1312
+ } | null;
1313
+ annual: {
1314
+ ngn: number | null;
1315
+ usd: number | null;
1316
+ } | null;
1317
+ };
1318
+ popular?: boolean | undefined;
1319
+ }[];
1320
+ meta?: {
1321
+ detectedLocation: {
1322
+ currency: "NGN" | "USD";
1323
+ country: string;
1324
+ countryName: string;
1325
+ };
1326
+ } | undefined;
1327
+ }>;
1328
+ export type SubscriptionTier = z.infer<typeof subscriptionTierSchema>;
1329
+ export type SubscriptionStatus = z.infer<typeof subscriptionStatusSchema>;
1330
+ export type BillingCycle = z.infer<typeof billingCycleSchema>;
1331
+ export type SatelliteFrequency = z.infer<typeof satelliteFrequencySchema>;
1332
+ export type SubscriptionAttributes = z.infer<typeof subscriptionAttributesSchema>;
1333
+ export type CreateSubscriptionAttributes = z.infer<typeof createSubscriptionAttributesSchema>;
1334
+ export type UpgradeSubscriptionAttributes = z.infer<typeof upgradeSubscriptionAttributesSchema>;
1335
+ export type SubscriptionResponse = z.infer<typeof subscriptionResponseSchema>;
1336
+ export type SubscriptionListResponse = z.infer<typeof subscriptionListResponseSchema>;
1337
+ export type UsageTrackingAttributes = z.infer<typeof usageTrackingAttributesSchema>;
1338
+ export type UsageTrackingResponse = z.infer<typeof usageTrackingResponseSchema>;
1339
+ export type UsageTrackingListResponse = z.infer<typeof usageTrackingListResponseSchema>;
1340
+ export type TierLimits = z.infer<typeof tierLimitsResponseSchema>;
1341
+ export type CurrentUsage = z.infer<typeof currentUsageResponseSchema>;
1342
+ export type AvailablePlan = z.infer<typeof availablePlanSchema>;
1343
+ export type AvailablePlansResponse = z.infer<typeof availablePlansResponseSchema>;
1344
+ //# sourceMappingURL=subscriptions.schemas.d.ts.map