@deepintel-ltd/farmpro-contracts 1.30.1 → 1.33.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/routes/auth.routes.d.ts +753 -0
- package/dist/routes/auth.routes.d.ts.map +1 -1
- package/dist/routes/auth.routes.js +25 -1
- package/dist/routes/field-monitoring.routes.d.ts +3 -0
- package/dist/routes/field-monitoring.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.d.ts +4 -0
- package/dist/routes/finance.routes.d.ts.map +1 -1
- package/dist/routes/finance.routes.js +5 -0
- package/dist/routes/index.d.ts +3 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +2 -0
- package/dist/routes/integrations.routes.d.ts +4500 -0
- package/dist/routes/integrations.routes.d.ts.map +1 -0
- package/dist/routes/integrations.routes.js +189 -0
- package/dist/routes/invoices.routes.d.ts +210 -0
- package/dist/routes/invoices.routes.d.ts.map +1 -1
- package/dist/routes/market-intelligence.routes.d.ts +670 -0
- package/dist/routes/market-intelligence.routes.d.ts.map +1 -1
- package/dist/routes/market-intelligence.routes.js +52 -0
- package/dist/routes/poultry.routes.d.ts +14 -14
- package/dist/routes/subscriptions.routes.d.ts +369 -0
- package/dist/routes/subscriptions.routes.d.ts.map +1 -1
- package/dist/routes/subscriptions.routes.js +22 -1
- package/dist/routes/trade-cash-events.routes.d.ts +121 -31
- package/dist/routes/trade-cash-events.routes.d.ts.map +1 -1
- package/dist/routes/users.routes.d.ts +280 -0
- package/dist/routes/users.routes.d.ts.map +1 -1
- package/dist/routes/users.routes.js +14 -0
- package/dist/schemas/auth.schemas.d.ts +75 -0
- package/dist/schemas/auth.schemas.d.ts.map +1 -1
- package/dist/schemas/auth.schemas.js +21 -0
- package/dist/schemas/farm-enterprises.schemas.d.ts +1 -1
- package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
- package/dist/schemas/farm-enterprises.schemas.js +1 -1
- package/dist/schemas/field-monitoring.schemas.d.ts +4 -0
- package/dist/schemas/field-monitoring.schemas.d.ts.map +1 -1
- package/dist/schemas/field-monitoring.schemas.js +2 -0
- package/dist/schemas/integrations.schemas.d.ts +717 -0
- package/dist/schemas/integrations.schemas.d.ts.map +1 -0
- package/dist/schemas/integrations.schemas.js +149 -0
- package/dist/schemas/invoices.schemas.d.ts +132 -0
- package/dist/schemas/invoices.schemas.d.ts.map +1 -1
- package/dist/schemas/invoices.schemas.js +6 -0
- package/dist/schemas/locale.schemas.d.ts +2 -2
- package/dist/schemas/subscriptions.schemas.d.ts +56 -0
- package/dist/schemas/subscriptions.schemas.d.ts.map +1 -1
- package/dist/schemas/subscriptions.schemas.js +12 -0
- package/dist/schemas/trade-cash-events.schemas.d.ts +101 -31
- package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -1
- package/dist/schemas/trade-cash-events.schemas.js +13 -0
- package/package.json +1 -1
|
@@ -4108,6 +4108,759 @@ export declare const authRouter: {
|
|
|
4108
4108
|
}>;
|
|
4109
4109
|
};
|
|
4110
4110
|
};
|
|
4111
|
+
requestPhoneOtp: {
|
|
4112
|
+
summary: "Send a sign-in code by SMS";
|
|
4113
|
+
description: "Always returns a requestId (even for unknown numbers) so the response does not reveal which phones are registered.";
|
|
4114
|
+
method: "POST";
|
|
4115
|
+
body: z.ZodObject<{
|
|
4116
|
+
data: z.ZodObject<{
|
|
4117
|
+
type: z.ZodLiteral<"phone-otp-request">;
|
|
4118
|
+
attributes: z.ZodObject<{
|
|
4119
|
+
phone: z.ZodString;
|
|
4120
|
+
}, "strip", z.ZodTypeAny, {
|
|
4121
|
+
phone: string;
|
|
4122
|
+
}, {
|
|
4123
|
+
phone: string;
|
|
4124
|
+
}>;
|
|
4125
|
+
}, "strip", z.ZodTypeAny, {
|
|
4126
|
+
type: "phone-otp-request";
|
|
4127
|
+
attributes: {
|
|
4128
|
+
phone: string;
|
|
4129
|
+
};
|
|
4130
|
+
}, {
|
|
4131
|
+
type: "phone-otp-request";
|
|
4132
|
+
attributes: {
|
|
4133
|
+
phone: string;
|
|
4134
|
+
};
|
|
4135
|
+
}>;
|
|
4136
|
+
}, "strip", z.ZodTypeAny, {
|
|
4137
|
+
data: {
|
|
4138
|
+
type: "phone-otp-request";
|
|
4139
|
+
attributes: {
|
|
4140
|
+
phone: string;
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
}, {
|
|
4144
|
+
data: {
|
|
4145
|
+
type: "phone-otp-request";
|
|
4146
|
+
attributes: {
|
|
4147
|
+
phone: string;
|
|
4148
|
+
};
|
|
4149
|
+
};
|
|
4150
|
+
}>;
|
|
4151
|
+
path: "/auth/phone/otp/request";
|
|
4152
|
+
responses: {
|
|
4153
|
+
200: z.ZodObject<{
|
|
4154
|
+
data: z.ZodObject<{
|
|
4155
|
+
requestId: z.ZodString;
|
|
4156
|
+
expiresInSeconds: z.ZodNumber;
|
|
4157
|
+
channel: z.ZodOptional<z.ZodNullable<z.ZodEnum<["email", "whatsapp", "sms"]>>>;
|
|
4158
|
+
}, "strip", z.ZodTypeAny, {
|
|
4159
|
+
requestId: string;
|
|
4160
|
+
expiresInSeconds: number;
|
|
4161
|
+
channel?: "email" | "whatsapp" | "sms" | null | undefined;
|
|
4162
|
+
}, {
|
|
4163
|
+
requestId: string;
|
|
4164
|
+
expiresInSeconds: number;
|
|
4165
|
+
channel?: "email" | "whatsapp" | "sms" | null | undefined;
|
|
4166
|
+
}>;
|
|
4167
|
+
}, "strip", z.ZodTypeAny, {
|
|
4168
|
+
data: {
|
|
4169
|
+
requestId: string;
|
|
4170
|
+
expiresInSeconds: number;
|
|
4171
|
+
channel?: "email" | "whatsapp" | "sms" | null | undefined;
|
|
4172
|
+
};
|
|
4173
|
+
}, {
|
|
4174
|
+
data: {
|
|
4175
|
+
requestId: string;
|
|
4176
|
+
expiresInSeconds: number;
|
|
4177
|
+
channel?: "email" | "whatsapp" | "sms" | null | undefined;
|
|
4178
|
+
};
|
|
4179
|
+
}>;
|
|
4180
|
+
400: z.ZodObject<{
|
|
4181
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4182
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4183
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4184
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4185
|
+
}, "strip", z.ZodTypeAny, {
|
|
4186
|
+
about?: string | undefined;
|
|
4187
|
+
}, {
|
|
4188
|
+
about?: string | undefined;
|
|
4189
|
+
}>>;
|
|
4190
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4191
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4192
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4193
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4194
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4195
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4196
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4197
|
+
}, "strip", z.ZodTypeAny, {
|
|
4198
|
+
pointer?: string | undefined;
|
|
4199
|
+
parameter?: string | undefined;
|
|
4200
|
+
}, {
|
|
4201
|
+
pointer?: string | undefined;
|
|
4202
|
+
parameter?: string | undefined;
|
|
4203
|
+
}>>;
|
|
4204
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4205
|
+
}, "strip", z.ZodTypeAny, {
|
|
4206
|
+
status?: string | undefined;
|
|
4207
|
+
code?: string | undefined;
|
|
4208
|
+
id?: string | undefined;
|
|
4209
|
+
links?: {
|
|
4210
|
+
about?: string | undefined;
|
|
4211
|
+
} | undefined;
|
|
4212
|
+
meta?: Record<string, unknown> | undefined;
|
|
4213
|
+
title?: string | undefined;
|
|
4214
|
+
detail?: string | undefined;
|
|
4215
|
+
source?: {
|
|
4216
|
+
pointer?: string | undefined;
|
|
4217
|
+
parameter?: string | undefined;
|
|
4218
|
+
} | undefined;
|
|
4219
|
+
}, {
|
|
4220
|
+
status?: string | undefined;
|
|
4221
|
+
code?: string | undefined;
|
|
4222
|
+
id?: string | undefined;
|
|
4223
|
+
links?: {
|
|
4224
|
+
about?: string | undefined;
|
|
4225
|
+
} | undefined;
|
|
4226
|
+
meta?: Record<string, unknown> | undefined;
|
|
4227
|
+
title?: string | undefined;
|
|
4228
|
+
detail?: string | undefined;
|
|
4229
|
+
source?: {
|
|
4230
|
+
pointer?: string | undefined;
|
|
4231
|
+
parameter?: string | undefined;
|
|
4232
|
+
} | undefined;
|
|
4233
|
+
}>, "many">;
|
|
4234
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4235
|
+
}, "strip", z.ZodTypeAny, {
|
|
4236
|
+
errors: {
|
|
4237
|
+
status?: string | undefined;
|
|
4238
|
+
code?: string | undefined;
|
|
4239
|
+
id?: string | undefined;
|
|
4240
|
+
links?: {
|
|
4241
|
+
about?: string | undefined;
|
|
4242
|
+
} | undefined;
|
|
4243
|
+
meta?: Record<string, unknown> | undefined;
|
|
4244
|
+
title?: string | undefined;
|
|
4245
|
+
detail?: string | undefined;
|
|
4246
|
+
source?: {
|
|
4247
|
+
pointer?: string | undefined;
|
|
4248
|
+
parameter?: string | undefined;
|
|
4249
|
+
} | undefined;
|
|
4250
|
+
}[];
|
|
4251
|
+
meta?: Record<string, unknown> | undefined;
|
|
4252
|
+
}, {
|
|
4253
|
+
errors: {
|
|
4254
|
+
status?: string | undefined;
|
|
4255
|
+
code?: string | undefined;
|
|
4256
|
+
id?: string | undefined;
|
|
4257
|
+
links?: {
|
|
4258
|
+
about?: string | undefined;
|
|
4259
|
+
} | undefined;
|
|
4260
|
+
meta?: Record<string, unknown> | undefined;
|
|
4261
|
+
title?: string | undefined;
|
|
4262
|
+
detail?: string | undefined;
|
|
4263
|
+
source?: {
|
|
4264
|
+
pointer?: string | undefined;
|
|
4265
|
+
parameter?: string | undefined;
|
|
4266
|
+
} | undefined;
|
|
4267
|
+
}[];
|
|
4268
|
+
meta?: Record<string, unknown> | undefined;
|
|
4269
|
+
}>;
|
|
4270
|
+
429: z.ZodObject<{
|
|
4271
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4272
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4273
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4274
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4275
|
+
}, "strip", z.ZodTypeAny, {
|
|
4276
|
+
about?: string | undefined;
|
|
4277
|
+
}, {
|
|
4278
|
+
about?: string | undefined;
|
|
4279
|
+
}>>;
|
|
4280
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4281
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4282
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4283
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4284
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4285
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4286
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4287
|
+
}, "strip", z.ZodTypeAny, {
|
|
4288
|
+
pointer?: string | undefined;
|
|
4289
|
+
parameter?: string | undefined;
|
|
4290
|
+
}, {
|
|
4291
|
+
pointer?: string | undefined;
|
|
4292
|
+
parameter?: string | undefined;
|
|
4293
|
+
}>>;
|
|
4294
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4295
|
+
}, "strip", z.ZodTypeAny, {
|
|
4296
|
+
status?: string | undefined;
|
|
4297
|
+
code?: string | undefined;
|
|
4298
|
+
id?: string | undefined;
|
|
4299
|
+
links?: {
|
|
4300
|
+
about?: string | undefined;
|
|
4301
|
+
} | undefined;
|
|
4302
|
+
meta?: Record<string, unknown> | undefined;
|
|
4303
|
+
title?: string | undefined;
|
|
4304
|
+
detail?: string | undefined;
|
|
4305
|
+
source?: {
|
|
4306
|
+
pointer?: string | undefined;
|
|
4307
|
+
parameter?: string | undefined;
|
|
4308
|
+
} | undefined;
|
|
4309
|
+
}, {
|
|
4310
|
+
status?: string | undefined;
|
|
4311
|
+
code?: string | undefined;
|
|
4312
|
+
id?: string | undefined;
|
|
4313
|
+
links?: {
|
|
4314
|
+
about?: string | undefined;
|
|
4315
|
+
} | undefined;
|
|
4316
|
+
meta?: Record<string, unknown> | undefined;
|
|
4317
|
+
title?: string | undefined;
|
|
4318
|
+
detail?: string | undefined;
|
|
4319
|
+
source?: {
|
|
4320
|
+
pointer?: string | undefined;
|
|
4321
|
+
parameter?: string | undefined;
|
|
4322
|
+
} | undefined;
|
|
4323
|
+
}>, "many">;
|
|
4324
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4325
|
+
}, "strip", z.ZodTypeAny, {
|
|
4326
|
+
errors: {
|
|
4327
|
+
status?: string | undefined;
|
|
4328
|
+
code?: string | undefined;
|
|
4329
|
+
id?: string | undefined;
|
|
4330
|
+
links?: {
|
|
4331
|
+
about?: string | undefined;
|
|
4332
|
+
} | undefined;
|
|
4333
|
+
meta?: Record<string, unknown> | undefined;
|
|
4334
|
+
title?: string | undefined;
|
|
4335
|
+
detail?: string | undefined;
|
|
4336
|
+
source?: {
|
|
4337
|
+
pointer?: string | undefined;
|
|
4338
|
+
parameter?: string | undefined;
|
|
4339
|
+
} | undefined;
|
|
4340
|
+
}[];
|
|
4341
|
+
meta?: Record<string, unknown> | undefined;
|
|
4342
|
+
}, {
|
|
4343
|
+
errors: {
|
|
4344
|
+
status?: string | undefined;
|
|
4345
|
+
code?: string | undefined;
|
|
4346
|
+
id?: string | undefined;
|
|
4347
|
+
links?: {
|
|
4348
|
+
about?: string | undefined;
|
|
4349
|
+
} | undefined;
|
|
4350
|
+
meta?: Record<string, unknown> | undefined;
|
|
4351
|
+
title?: string | undefined;
|
|
4352
|
+
detail?: string | undefined;
|
|
4353
|
+
source?: {
|
|
4354
|
+
pointer?: string | undefined;
|
|
4355
|
+
parameter?: string | undefined;
|
|
4356
|
+
} | undefined;
|
|
4357
|
+
}[];
|
|
4358
|
+
meta?: Record<string, unknown> | undefined;
|
|
4359
|
+
}>;
|
|
4360
|
+
503: z.ZodObject<{
|
|
4361
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4362
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4363
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4364
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4365
|
+
}, "strip", z.ZodTypeAny, {
|
|
4366
|
+
about?: string | undefined;
|
|
4367
|
+
}, {
|
|
4368
|
+
about?: string | undefined;
|
|
4369
|
+
}>>;
|
|
4370
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4371
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4372
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4373
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4374
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4375
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4376
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4377
|
+
}, "strip", z.ZodTypeAny, {
|
|
4378
|
+
pointer?: string | undefined;
|
|
4379
|
+
parameter?: string | undefined;
|
|
4380
|
+
}, {
|
|
4381
|
+
pointer?: string | undefined;
|
|
4382
|
+
parameter?: string | undefined;
|
|
4383
|
+
}>>;
|
|
4384
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4385
|
+
}, "strip", z.ZodTypeAny, {
|
|
4386
|
+
status?: string | undefined;
|
|
4387
|
+
code?: string | undefined;
|
|
4388
|
+
id?: string | undefined;
|
|
4389
|
+
links?: {
|
|
4390
|
+
about?: string | undefined;
|
|
4391
|
+
} | undefined;
|
|
4392
|
+
meta?: Record<string, unknown> | undefined;
|
|
4393
|
+
title?: string | undefined;
|
|
4394
|
+
detail?: string | undefined;
|
|
4395
|
+
source?: {
|
|
4396
|
+
pointer?: string | undefined;
|
|
4397
|
+
parameter?: string | undefined;
|
|
4398
|
+
} | undefined;
|
|
4399
|
+
}, {
|
|
4400
|
+
status?: string | undefined;
|
|
4401
|
+
code?: string | undefined;
|
|
4402
|
+
id?: string | undefined;
|
|
4403
|
+
links?: {
|
|
4404
|
+
about?: string | undefined;
|
|
4405
|
+
} | undefined;
|
|
4406
|
+
meta?: Record<string, unknown> | undefined;
|
|
4407
|
+
title?: string | undefined;
|
|
4408
|
+
detail?: string | undefined;
|
|
4409
|
+
source?: {
|
|
4410
|
+
pointer?: string | undefined;
|
|
4411
|
+
parameter?: string | undefined;
|
|
4412
|
+
} | undefined;
|
|
4413
|
+
}>, "many">;
|
|
4414
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4415
|
+
}, "strip", z.ZodTypeAny, {
|
|
4416
|
+
errors: {
|
|
4417
|
+
status?: string | undefined;
|
|
4418
|
+
code?: string | undefined;
|
|
4419
|
+
id?: string | undefined;
|
|
4420
|
+
links?: {
|
|
4421
|
+
about?: string | undefined;
|
|
4422
|
+
} | undefined;
|
|
4423
|
+
meta?: Record<string, unknown> | undefined;
|
|
4424
|
+
title?: string | undefined;
|
|
4425
|
+
detail?: string | undefined;
|
|
4426
|
+
source?: {
|
|
4427
|
+
pointer?: string | undefined;
|
|
4428
|
+
parameter?: string | undefined;
|
|
4429
|
+
} | undefined;
|
|
4430
|
+
}[];
|
|
4431
|
+
meta?: Record<string, unknown> | undefined;
|
|
4432
|
+
}, {
|
|
4433
|
+
errors: {
|
|
4434
|
+
status?: string | undefined;
|
|
4435
|
+
code?: string | undefined;
|
|
4436
|
+
id?: string | undefined;
|
|
4437
|
+
links?: {
|
|
4438
|
+
about?: string | undefined;
|
|
4439
|
+
} | undefined;
|
|
4440
|
+
meta?: Record<string, unknown> | undefined;
|
|
4441
|
+
title?: string | undefined;
|
|
4442
|
+
detail?: string | undefined;
|
|
4443
|
+
source?: {
|
|
4444
|
+
pointer?: string | undefined;
|
|
4445
|
+
parameter?: string | undefined;
|
|
4446
|
+
} | undefined;
|
|
4447
|
+
}[];
|
|
4448
|
+
meta?: Record<string, unknown> | undefined;
|
|
4449
|
+
}>;
|
|
4450
|
+
};
|
|
4451
|
+
};
|
|
4452
|
+
verifyPhoneOtp: {
|
|
4453
|
+
summary: "Sign in with the SMS code";
|
|
4454
|
+
method: "POST";
|
|
4455
|
+
body: z.ZodObject<{
|
|
4456
|
+
data: z.ZodObject<{
|
|
4457
|
+
type: z.ZodLiteral<"phone-otp-verify">;
|
|
4458
|
+
attributes: z.ZodObject<{
|
|
4459
|
+
requestId: z.ZodString;
|
|
4460
|
+
code: z.ZodString;
|
|
4461
|
+
}, "strip", z.ZodTypeAny, {
|
|
4462
|
+
code: string;
|
|
4463
|
+
requestId: string;
|
|
4464
|
+
}, {
|
|
4465
|
+
code: string;
|
|
4466
|
+
requestId: string;
|
|
4467
|
+
}>;
|
|
4468
|
+
}, "strip", z.ZodTypeAny, {
|
|
4469
|
+
type: "phone-otp-verify";
|
|
4470
|
+
attributes: {
|
|
4471
|
+
code: string;
|
|
4472
|
+
requestId: string;
|
|
4473
|
+
};
|
|
4474
|
+
}, {
|
|
4475
|
+
type: "phone-otp-verify";
|
|
4476
|
+
attributes: {
|
|
4477
|
+
code: string;
|
|
4478
|
+
requestId: string;
|
|
4479
|
+
};
|
|
4480
|
+
}>;
|
|
4481
|
+
}, "strip", z.ZodTypeAny, {
|
|
4482
|
+
data: {
|
|
4483
|
+
type: "phone-otp-verify";
|
|
4484
|
+
attributes: {
|
|
4485
|
+
code: string;
|
|
4486
|
+
requestId: string;
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
4489
|
+
}, {
|
|
4490
|
+
data: {
|
|
4491
|
+
type: "phone-otp-verify";
|
|
4492
|
+
attributes: {
|
|
4493
|
+
code: string;
|
|
4494
|
+
requestId: string;
|
|
4495
|
+
};
|
|
4496
|
+
};
|
|
4497
|
+
}>;
|
|
4498
|
+
path: "/auth/phone/otp/verify";
|
|
4499
|
+
responses: {
|
|
4500
|
+
200: z.ZodObject<{
|
|
4501
|
+
data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
4502
|
+
type: z.ZodLiteral<string>;
|
|
4503
|
+
id: z.ZodString;
|
|
4504
|
+
attributes: z.ZodObject<{
|
|
4505
|
+
name: z.ZodString;
|
|
4506
|
+
email: z.ZodString;
|
|
4507
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
4508
|
+
emailVerified: z.ZodBoolean;
|
|
4509
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
4510
|
+
} & {
|
|
4511
|
+
createdAt: z.ZodString;
|
|
4512
|
+
updatedAt: z.ZodString;
|
|
4513
|
+
}, "strip", z.ZodTypeAny, {
|
|
4514
|
+
email: string;
|
|
4515
|
+
createdAt: string;
|
|
4516
|
+
updatedAt: string;
|
|
4517
|
+
name: string;
|
|
4518
|
+
phone: string | null;
|
|
4519
|
+
emailVerified: boolean;
|
|
4520
|
+
avatar: string | null;
|
|
4521
|
+
}, {
|
|
4522
|
+
email: string;
|
|
4523
|
+
createdAt: string;
|
|
4524
|
+
updatedAt: string;
|
|
4525
|
+
name: string;
|
|
4526
|
+
phone: string | null;
|
|
4527
|
+
emailVerified: boolean;
|
|
4528
|
+
avatar: string | null;
|
|
4529
|
+
}>;
|
|
4530
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4531
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4532
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4533
|
+
}, "strip", z.ZodTypeAny, {
|
|
4534
|
+
type: string;
|
|
4535
|
+
id: string;
|
|
4536
|
+
attributes: {
|
|
4537
|
+
email: string;
|
|
4538
|
+
createdAt: string;
|
|
4539
|
+
updatedAt: string;
|
|
4540
|
+
name: string;
|
|
4541
|
+
phone: string | null;
|
|
4542
|
+
emailVerified: boolean;
|
|
4543
|
+
avatar: string | null;
|
|
4544
|
+
};
|
|
4545
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4546
|
+
links?: Record<string, string> | undefined;
|
|
4547
|
+
meta?: Record<string, unknown> | undefined;
|
|
4548
|
+
}, {
|
|
4549
|
+
type: string;
|
|
4550
|
+
id: string;
|
|
4551
|
+
attributes: {
|
|
4552
|
+
email: string;
|
|
4553
|
+
createdAt: string;
|
|
4554
|
+
updatedAt: string;
|
|
4555
|
+
name: string;
|
|
4556
|
+
phone: string | null;
|
|
4557
|
+
emailVerified: boolean;
|
|
4558
|
+
avatar: string | null;
|
|
4559
|
+
};
|
|
4560
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4561
|
+
links?: Record<string, string> | undefined;
|
|
4562
|
+
meta?: Record<string, unknown> | undefined;
|
|
4563
|
+
}>, z.ZodObject<{
|
|
4564
|
+
type: z.ZodLiteral<string>;
|
|
4565
|
+
id: z.ZodString;
|
|
4566
|
+
attributes: z.ZodObject<{
|
|
4567
|
+
accessToken: z.ZodString;
|
|
4568
|
+
refreshToken: z.ZodString;
|
|
4569
|
+
expiresIn: z.ZodNumber;
|
|
4570
|
+
tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
|
|
4571
|
+
}, "strip", z.ZodTypeAny, {
|
|
4572
|
+
refreshToken: string;
|
|
4573
|
+
accessToken: string;
|
|
4574
|
+
expiresIn: number;
|
|
4575
|
+
tokenType: "Bearer";
|
|
4576
|
+
}, {
|
|
4577
|
+
refreshToken: string;
|
|
4578
|
+
accessToken: string;
|
|
4579
|
+
expiresIn: number;
|
|
4580
|
+
tokenType?: "Bearer" | undefined;
|
|
4581
|
+
}>;
|
|
4582
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4583
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4584
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4585
|
+
}, "strip", z.ZodTypeAny, {
|
|
4586
|
+
type: string;
|
|
4587
|
+
id: string;
|
|
4588
|
+
attributes: {
|
|
4589
|
+
refreshToken: string;
|
|
4590
|
+
accessToken: string;
|
|
4591
|
+
expiresIn: number;
|
|
4592
|
+
tokenType: "Bearer";
|
|
4593
|
+
};
|
|
4594
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4595
|
+
links?: Record<string, string> | undefined;
|
|
4596
|
+
meta?: Record<string, unknown> | undefined;
|
|
4597
|
+
}, {
|
|
4598
|
+
type: string;
|
|
4599
|
+
id: string;
|
|
4600
|
+
attributes: {
|
|
4601
|
+
refreshToken: string;
|
|
4602
|
+
accessToken: string;
|
|
4603
|
+
expiresIn: number;
|
|
4604
|
+
tokenType?: "Bearer" | undefined;
|
|
4605
|
+
};
|
|
4606
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4607
|
+
links?: Record<string, string> | undefined;
|
|
4608
|
+
meta?: Record<string, unknown> | undefined;
|
|
4609
|
+
}>]>, "many">;
|
|
4610
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
4611
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4612
|
+
}, "strip", z.ZodTypeAny, {
|
|
4613
|
+
message?: string | undefined;
|
|
4614
|
+
}, {
|
|
4615
|
+
message?: string | undefined;
|
|
4616
|
+
}>>;
|
|
4617
|
+
}, "strip", z.ZodTypeAny, {
|
|
4618
|
+
data: ({
|
|
4619
|
+
type: string;
|
|
4620
|
+
id: string;
|
|
4621
|
+
attributes: {
|
|
4622
|
+
email: string;
|
|
4623
|
+
createdAt: string;
|
|
4624
|
+
updatedAt: string;
|
|
4625
|
+
name: string;
|
|
4626
|
+
phone: string | null;
|
|
4627
|
+
emailVerified: boolean;
|
|
4628
|
+
avatar: string | null;
|
|
4629
|
+
};
|
|
4630
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4631
|
+
links?: Record<string, string> | undefined;
|
|
4632
|
+
meta?: Record<string, unknown> | undefined;
|
|
4633
|
+
} | {
|
|
4634
|
+
type: string;
|
|
4635
|
+
id: string;
|
|
4636
|
+
attributes: {
|
|
4637
|
+
refreshToken: string;
|
|
4638
|
+
accessToken: string;
|
|
4639
|
+
expiresIn: number;
|
|
4640
|
+
tokenType: "Bearer";
|
|
4641
|
+
};
|
|
4642
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4643
|
+
links?: Record<string, string> | undefined;
|
|
4644
|
+
meta?: Record<string, unknown> | undefined;
|
|
4645
|
+
})[];
|
|
4646
|
+
meta?: {
|
|
4647
|
+
message?: string | undefined;
|
|
4648
|
+
} | undefined;
|
|
4649
|
+
}, {
|
|
4650
|
+
data: ({
|
|
4651
|
+
type: string;
|
|
4652
|
+
id: string;
|
|
4653
|
+
attributes: {
|
|
4654
|
+
email: string;
|
|
4655
|
+
createdAt: string;
|
|
4656
|
+
updatedAt: string;
|
|
4657
|
+
name: string;
|
|
4658
|
+
phone: string | null;
|
|
4659
|
+
emailVerified: boolean;
|
|
4660
|
+
avatar: string | null;
|
|
4661
|
+
};
|
|
4662
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4663
|
+
links?: Record<string, string> | undefined;
|
|
4664
|
+
meta?: Record<string, unknown> | undefined;
|
|
4665
|
+
} | {
|
|
4666
|
+
type: string;
|
|
4667
|
+
id: string;
|
|
4668
|
+
attributes: {
|
|
4669
|
+
refreshToken: string;
|
|
4670
|
+
accessToken: string;
|
|
4671
|
+
expiresIn: number;
|
|
4672
|
+
tokenType?: "Bearer" | undefined;
|
|
4673
|
+
};
|
|
4674
|
+
relationships?: Record<string, unknown> | undefined;
|
|
4675
|
+
links?: Record<string, string> | undefined;
|
|
4676
|
+
meta?: Record<string, unknown> | undefined;
|
|
4677
|
+
})[];
|
|
4678
|
+
meta?: {
|
|
4679
|
+
message?: string | undefined;
|
|
4680
|
+
} | undefined;
|
|
4681
|
+
}>;
|
|
4682
|
+
400: z.ZodObject<{
|
|
4683
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4684
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4685
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4686
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4687
|
+
}, "strip", z.ZodTypeAny, {
|
|
4688
|
+
about?: string | undefined;
|
|
4689
|
+
}, {
|
|
4690
|
+
about?: string | undefined;
|
|
4691
|
+
}>>;
|
|
4692
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4693
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4694
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4695
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4696
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4697
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4698
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4699
|
+
}, "strip", z.ZodTypeAny, {
|
|
4700
|
+
pointer?: string | undefined;
|
|
4701
|
+
parameter?: string | undefined;
|
|
4702
|
+
}, {
|
|
4703
|
+
pointer?: string | undefined;
|
|
4704
|
+
parameter?: string | undefined;
|
|
4705
|
+
}>>;
|
|
4706
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4707
|
+
}, "strip", z.ZodTypeAny, {
|
|
4708
|
+
status?: string | undefined;
|
|
4709
|
+
code?: string | undefined;
|
|
4710
|
+
id?: string | undefined;
|
|
4711
|
+
links?: {
|
|
4712
|
+
about?: string | undefined;
|
|
4713
|
+
} | undefined;
|
|
4714
|
+
meta?: Record<string, unknown> | undefined;
|
|
4715
|
+
title?: string | undefined;
|
|
4716
|
+
detail?: string | undefined;
|
|
4717
|
+
source?: {
|
|
4718
|
+
pointer?: string | undefined;
|
|
4719
|
+
parameter?: string | undefined;
|
|
4720
|
+
} | undefined;
|
|
4721
|
+
}, {
|
|
4722
|
+
status?: string | undefined;
|
|
4723
|
+
code?: string | undefined;
|
|
4724
|
+
id?: string | undefined;
|
|
4725
|
+
links?: {
|
|
4726
|
+
about?: string | undefined;
|
|
4727
|
+
} | undefined;
|
|
4728
|
+
meta?: Record<string, unknown> | undefined;
|
|
4729
|
+
title?: string | undefined;
|
|
4730
|
+
detail?: string | undefined;
|
|
4731
|
+
source?: {
|
|
4732
|
+
pointer?: string | undefined;
|
|
4733
|
+
parameter?: string | undefined;
|
|
4734
|
+
} | undefined;
|
|
4735
|
+
}>, "many">;
|
|
4736
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4737
|
+
}, "strip", z.ZodTypeAny, {
|
|
4738
|
+
errors: {
|
|
4739
|
+
status?: string | undefined;
|
|
4740
|
+
code?: string | undefined;
|
|
4741
|
+
id?: string | undefined;
|
|
4742
|
+
links?: {
|
|
4743
|
+
about?: string | undefined;
|
|
4744
|
+
} | undefined;
|
|
4745
|
+
meta?: Record<string, unknown> | undefined;
|
|
4746
|
+
title?: string | undefined;
|
|
4747
|
+
detail?: string | undefined;
|
|
4748
|
+
source?: {
|
|
4749
|
+
pointer?: string | undefined;
|
|
4750
|
+
parameter?: string | undefined;
|
|
4751
|
+
} | undefined;
|
|
4752
|
+
}[];
|
|
4753
|
+
meta?: Record<string, unknown> | undefined;
|
|
4754
|
+
}, {
|
|
4755
|
+
errors: {
|
|
4756
|
+
status?: string | undefined;
|
|
4757
|
+
code?: string | undefined;
|
|
4758
|
+
id?: string | undefined;
|
|
4759
|
+
links?: {
|
|
4760
|
+
about?: string | undefined;
|
|
4761
|
+
} | undefined;
|
|
4762
|
+
meta?: Record<string, unknown> | undefined;
|
|
4763
|
+
title?: string | undefined;
|
|
4764
|
+
detail?: string | undefined;
|
|
4765
|
+
source?: {
|
|
4766
|
+
pointer?: string | undefined;
|
|
4767
|
+
parameter?: string | undefined;
|
|
4768
|
+
} | undefined;
|
|
4769
|
+
}[];
|
|
4770
|
+
meta?: Record<string, unknown> | undefined;
|
|
4771
|
+
}>;
|
|
4772
|
+
401: z.ZodObject<{
|
|
4773
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4774
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4775
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4776
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4777
|
+
}, "strip", z.ZodTypeAny, {
|
|
4778
|
+
about?: string | undefined;
|
|
4779
|
+
}, {
|
|
4780
|
+
about?: string | undefined;
|
|
4781
|
+
}>>;
|
|
4782
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4783
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4784
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4785
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4786
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4787
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4788
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4789
|
+
}, "strip", z.ZodTypeAny, {
|
|
4790
|
+
pointer?: string | undefined;
|
|
4791
|
+
parameter?: string | undefined;
|
|
4792
|
+
}, {
|
|
4793
|
+
pointer?: string | undefined;
|
|
4794
|
+
parameter?: string | undefined;
|
|
4795
|
+
}>>;
|
|
4796
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4797
|
+
}, "strip", z.ZodTypeAny, {
|
|
4798
|
+
status?: string | undefined;
|
|
4799
|
+
code?: string | undefined;
|
|
4800
|
+
id?: string | undefined;
|
|
4801
|
+
links?: {
|
|
4802
|
+
about?: string | undefined;
|
|
4803
|
+
} | undefined;
|
|
4804
|
+
meta?: Record<string, unknown> | undefined;
|
|
4805
|
+
title?: string | undefined;
|
|
4806
|
+
detail?: string | undefined;
|
|
4807
|
+
source?: {
|
|
4808
|
+
pointer?: string | undefined;
|
|
4809
|
+
parameter?: string | undefined;
|
|
4810
|
+
} | undefined;
|
|
4811
|
+
}, {
|
|
4812
|
+
status?: string | undefined;
|
|
4813
|
+
code?: string | undefined;
|
|
4814
|
+
id?: string | undefined;
|
|
4815
|
+
links?: {
|
|
4816
|
+
about?: string | undefined;
|
|
4817
|
+
} | undefined;
|
|
4818
|
+
meta?: Record<string, unknown> | undefined;
|
|
4819
|
+
title?: string | undefined;
|
|
4820
|
+
detail?: string | undefined;
|
|
4821
|
+
source?: {
|
|
4822
|
+
pointer?: string | undefined;
|
|
4823
|
+
parameter?: string | undefined;
|
|
4824
|
+
} | undefined;
|
|
4825
|
+
}>, "many">;
|
|
4826
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4827
|
+
}, "strip", z.ZodTypeAny, {
|
|
4828
|
+
errors: {
|
|
4829
|
+
status?: string | undefined;
|
|
4830
|
+
code?: string | undefined;
|
|
4831
|
+
id?: string | undefined;
|
|
4832
|
+
links?: {
|
|
4833
|
+
about?: string | undefined;
|
|
4834
|
+
} | undefined;
|
|
4835
|
+
meta?: Record<string, unknown> | undefined;
|
|
4836
|
+
title?: string | undefined;
|
|
4837
|
+
detail?: string | undefined;
|
|
4838
|
+
source?: {
|
|
4839
|
+
pointer?: string | undefined;
|
|
4840
|
+
parameter?: string | undefined;
|
|
4841
|
+
} | undefined;
|
|
4842
|
+
}[];
|
|
4843
|
+
meta?: Record<string, unknown> | undefined;
|
|
4844
|
+
}, {
|
|
4845
|
+
errors: {
|
|
4846
|
+
status?: string | undefined;
|
|
4847
|
+
code?: string | undefined;
|
|
4848
|
+
id?: string | undefined;
|
|
4849
|
+
links?: {
|
|
4850
|
+
about?: string | undefined;
|
|
4851
|
+
} | undefined;
|
|
4852
|
+
meta?: Record<string, unknown> | undefined;
|
|
4853
|
+
title?: string | undefined;
|
|
4854
|
+
detail?: string | undefined;
|
|
4855
|
+
source?: {
|
|
4856
|
+
pointer?: string | undefined;
|
|
4857
|
+
parameter?: string | undefined;
|
|
4858
|
+
} | undefined;
|
|
4859
|
+
}[];
|
|
4860
|
+
meta?: Record<string, unknown> | undefined;
|
|
4861
|
+
}>;
|
|
4862
|
+
};
|
|
4863
|
+
};
|
|
4111
4864
|
acceptAdminInvite: {
|
|
4112
4865
|
summary: "Accept super admin invite";
|
|
4113
4866
|
description: "Set password from invite email token and return a session";
|