better-auth 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/adapters/drizzle.d.cts +1 -1
  2. package/dist/adapters/drizzle.d.ts +1 -1
  3. package/dist/adapters/kysely.d.cts +1 -1
  4. package/dist/adapters/kysely.d.ts +1 -1
  5. package/dist/adapters/memory.d.cts +1 -1
  6. package/dist/adapters/memory.d.ts +1 -1
  7. package/dist/adapters/mongodb.d.cts +1 -1
  8. package/dist/adapters/mongodb.d.ts +1 -1
  9. package/dist/adapters/prisma.d.cts +1 -1
  10. package/dist/adapters/prisma.d.ts +1 -1
  11. package/dist/api.cjs +4 -4
  12. package/dist/api.d.cts +1 -1
  13. package/dist/api.d.ts +1 -1
  14. package/dist/api.js +4 -4
  15. package/dist/{auth-BVa3db5J.d.cts → auth-BubrmklB.d.cts} +5 -1
  16. package/dist/{auth-5eyWphKM.d.ts → auth-DF-f5DGM.d.ts} +5 -1
  17. package/dist/client/plugins.d.cts +3 -3
  18. package/dist/client/plugins.d.ts +3 -3
  19. package/dist/client.d.cts +1 -1
  20. package/dist/client.d.ts +1 -1
  21. package/dist/cookies.d.cts +1 -1
  22. package/dist/cookies.d.ts +1 -1
  23. package/dist/db.d.cts +2 -2
  24. package/dist/db.d.ts +2 -2
  25. package/dist/{index-x5P1hIyV.d.cts → index-CwnHFdnT.d.cts} +2345 -65
  26. package/dist/{index-CX-Hopog.d.ts → index-aMRluDla.d.ts} +2345 -65
  27. package/dist/index.cjs +4 -4
  28. package/dist/index.d.cts +2 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +4 -4
  31. package/dist/next-js.d.cts +1 -1
  32. package/dist/next-js.d.ts +1 -1
  33. package/dist/node.d.cts +1 -1
  34. package/dist/node.d.ts +1 -1
  35. package/dist/oauth2.d.cts +2 -2
  36. package/dist/oauth2.d.ts +2 -2
  37. package/dist/plugins.cjs +7 -7
  38. package/dist/plugins.d.cts +233 -8
  39. package/dist/plugins.d.ts +233 -8
  40. package/dist/plugins.js +7 -7
  41. package/dist/react.d.cts +1 -1
  42. package/dist/react.d.ts +1 -1
  43. package/dist/solid-start.d.cts +1 -1
  44. package/dist/solid-start.d.ts +1 -1
  45. package/dist/solid.d.cts +1 -1
  46. package/dist/solid.d.ts +1 -1
  47. package/dist/{state-CYO8U5dl.d.cts → state-CQJXHclh.d.cts} +1 -1
  48. package/dist/{state-BpBNrIEi.d.ts → state-C_runTlH.d.ts} +1 -1
  49. package/dist/svelte-kit.d.cts +1 -1
  50. package/dist/svelte-kit.d.ts +1 -1
  51. package/dist/svelte.d.cts +1 -1
  52. package/dist/svelte.d.ts +1 -1
  53. package/dist/types.d.cts +2 -2
  54. package/dist/types.d.ts +2 -2
  55. package/dist/vue.d.cts +1 -1
  56. package/dist/vue.d.ts +1 -1
  57. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { z, ZodLiteral, ZodObject, ZodOptional, ZodArray } from 'zod';
2
- import { U as User, S as Session, k as InferOptionSchema, H as HookEndpointContext, h as AuthContext } from './auth-5eyWphKM.js';
2
+ import { U as User, S as Session, k as InferOptionSchema, H as HookEndpointContext, h as AuthContext } from './auth-DF-f5DGM.js';
3
3
  import * as better_call from 'better-call';
4
4
  import { APIError } from 'better-call';
5
5
  import { P as Prettify } from './helper-DxMBi7M2.js';
@@ -4008,6 +4008,37 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4008
4008
  };
4009
4009
  };
4010
4010
  }>, better_call.EndpointOptions>[];
4011
+ metadata: {
4012
+ openapi: {
4013
+ summary: string;
4014
+ description: string;
4015
+ responses: {
4016
+ 200: {
4017
+ description: string;
4018
+ content: {
4019
+ "application/json": {
4020
+ schema: {
4021
+ type: "object";
4022
+ properties: {
4023
+ totpURI: {
4024
+ type: string;
4025
+ description: string;
4026
+ };
4027
+ backupCodes: {
4028
+ type: string;
4029
+ items: {
4030
+ type: string;
4031
+ };
4032
+ description: string;
4033
+ };
4034
+ };
4035
+ };
4036
+ };
4037
+ };
4038
+ };
4039
+ };
4040
+ };
4041
+ };
4011
4042
  }>]>(...ctx: C): Promise<C extends [{
4012
4043
  asResponse: true;
4013
4044
  }] ? Response : {
@@ -4047,6 +4078,37 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4047
4078
  };
4048
4079
  };
4049
4080
  }>, better_call.EndpointOptions>[];
4081
+ metadata: {
4082
+ openapi: {
4083
+ summary: string;
4084
+ description: string;
4085
+ responses: {
4086
+ 200: {
4087
+ description: string;
4088
+ content: {
4089
+ "application/json": {
4090
+ schema: {
4091
+ type: "object";
4092
+ properties: {
4093
+ totpURI: {
4094
+ type: string;
4095
+ description: string;
4096
+ };
4097
+ backupCodes: {
4098
+ type: string;
4099
+ items: {
4100
+ type: string;
4101
+ };
4102
+ description: string;
4103
+ };
4104
+ };
4105
+ };
4106
+ };
4107
+ };
4108
+ };
4109
+ };
4110
+ };
4111
+ };
4050
4112
  };
4051
4113
  method: better_call.Method | better_call.Method[];
4052
4114
  headers: Headers;
@@ -4084,6 +4146,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4084
4146
  };
4085
4147
  };
4086
4148
  }>, better_call.EndpointOptions>[];
4149
+ metadata: {
4150
+ openapi: {
4151
+ summary: string;
4152
+ description: string;
4153
+ responses: {
4154
+ 200: {
4155
+ description: string;
4156
+ content: {
4157
+ "application/json": {
4158
+ schema: {
4159
+ type: "object";
4160
+ properties: {
4161
+ status: {
4162
+ type: string;
4163
+ };
4164
+ };
4165
+ };
4166
+ };
4167
+ };
4168
+ };
4169
+ };
4170
+ };
4171
+ };
4087
4172
  }>]>(...ctx: C): Promise<C extends [{
4088
4173
  asResponse: true;
4089
4174
  }] ? Response : {
@@ -4122,6 +4207,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4122
4207
  };
4123
4208
  };
4124
4209
  }>, better_call.EndpointOptions>[];
4210
+ metadata: {
4211
+ openapi: {
4212
+ summary: string;
4213
+ description: string;
4214
+ responses: {
4215
+ 200: {
4216
+ description: string;
4217
+ content: {
4218
+ "application/json": {
4219
+ schema: {
4220
+ type: "object";
4221
+ properties: {
4222
+ status: {
4223
+ type: string;
4224
+ };
4225
+ };
4226
+ };
4227
+ };
4228
+ };
4229
+ };
4230
+ };
4231
+ };
4232
+ };
4125
4233
  };
4126
4234
  method: better_call.Method | better_call.Method[];
4127
4235
  headers: Headers;
@@ -4650,6 +4758,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4650
4758
  } & {
4651
4759
  method: "*";
4652
4760
  }>[];
4761
+ metadata: {
4762
+ openapi: {
4763
+ summary: string;
4764
+ description: string;
4765
+ responses: {
4766
+ 200: {
4767
+ description: string;
4768
+ content: {
4769
+ "application/json": {
4770
+ schema: {
4771
+ type: "object";
4772
+ properties: {
4773
+ status: {
4774
+ type: string;
4775
+ };
4776
+ };
4777
+ };
4778
+ };
4779
+ };
4780
+ };
4781
+ };
4782
+ };
4783
+ };
4653
4784
  }>]>(...ctx: C): Promise<C extends [{
4654
4785
  asResponse: true;
4655
4786
  }] ? Response : {
@@ -4773,6 +4904,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4773
4904
  } & {
4774
4905
  method: "*";
4775
4906
  }>[];
4907
+ metadata: {
4908
+ openapi: {
4909
+ summary: string;
4910
+ description: string;
4911
+ responses: {
4912
+ 200: {
4913
+ description: string;
4914
+ content: {
4915
+ "application/json": {
4916
+ schema: {
4917
+ type: "object";
4918
+ properties: {
4919
+ status: {
4920
+ type: string;
4921
+ };
4922
+ };
4923
+ };
4924
+ };
4925
+ };
4926
+ };
4927
+ };
4928
+ };
4929
+ };
4776
4930
  };
4777
4931
  method: better_call.Method | better_call.Method[];
4778
4932
  headers: Headers;
@@ -4902,6 +5056,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4902
5056
  } & {
4903
5057
  method: "*";
4904
5058
  }>[];
5059
+ metadata: {
5060
+ openapi: {
5061
+ summary: string;
5062
+ description: string;
5063
+ responses: {
5064
+ 200: {
5065
+ description: string;
5066
+ content: {
5067
+ "application/json": {
5068
+ schema: {
5069
+ type: "object";
5070
+ properties: {
5071
+ status: {
5072
+ type: string;
5073
+ };
5074
+ };
5075
+ };
5076
+ };
5077
+ };
5078
+ };
5079
+ };
5080
+ };
5081
+ };
4905
5082
  }>]>(...ctx: C): Promise<C extends [{
4906
5083
  asResponse: true;
4907
5084
  }] ? Response : {
@@ -5042,6 +5219,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5042
5219
  } & {
5043
5220
  method: "*";
5044
5221
  }>[];
5222
+ metadata: {
5223
+ openapi: {
5224
+ summary: string;
5225
+ description: string;
5226
+ responses: {
5227
+ 200: {
5228
+ description: string;
5229
+ content: {
5230
+ "application/json": {
5231
+ schema: {
5232
+ type: "object";
5233
+ properties: {
5234
+ status: {
5235
+ type: string;
5236
+ };
5237
+ };
5238
+ };
5239
+ };
5240
+ };
5241
+ };
5242
+ };
5243
+ };
5244
+ };
5045
5245
  };
5046
5246
  method: better_call.Method | better_call.Method[];
5047
5247
  headers: Headers;
@@ -5072,6 +5272,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5072
5272
  };
5073
5273
  };
5074
5274
  }>, better_call.EndpointOptions>[];
5275
+ metadata: {
5276
+ openapi: {
5277
+ summary: string;
5278
+ description: string;
5279
+ responses: {
5280
+ 200: {
5281
+ description: string;
5282
+ content: {
5283
+ "application/json": {
5284
+ schema: {
5285
+ type: "object";
5286
+ properties: {
5287
+ code: {
5288
+ type: string;
5289
+ };
5290
+ };
5291
+ };
5292
+ };
5293
+ };
5294
+ };
5295
+ };
5296
+ };
5297
+ };
5075
5298
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
5076
5299
  asResponse: true;
5077
5300
  }] ? Response : {
@@ -5103,6 +5326,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5103
5326
  };
5104
5327
  };
5105
5328
  }>, better_call.EndpointOptions>[];
5329
+ metadata: {
5330
+ openapi: {
5331
+ summary: string;
5332
+ description: string;
5333
+ responses: {
5334
+ 200: {
5335
+ description: string;
5336
+ content: {
5337
+ "application/json": {
5338
+ schema: {
5339
+ type: "object";
5340
+ properties: {
5341
+ code: {
5342
+ type: string;
5343
+ };
5344
+ };
5345
+ };
5346
+ };
5347
+ };
5348
+ };
5349
+ };
5350
+ };
5351
+ };
5106
5352
  };
5107
5353
  method: better_call.Method | better_call.Method[];
5108
5354
  headers: Headers;
@@ -5140,6 +5386,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5140
5386
  }, {
5141
5387
  password: string;
5142
5388
  }>;
5389
+ metadata: {
5390
+ openapi: {
5391
+ summary: string;
5392
+ description: string;
5393
+ responses: {
5394
+ 200: {
5395
+ description: string;
5396
+ content: {
5397
+ "application/json": {
5398
+ schema: {
5399
+ type: "object";
5400
+ properties: {
5401
+ totpURI: {
5402
+ type: string;
5403
+ };
5404
+ };
5405
+ };
5406
+ };
5407
+ };
5408
+ };
5409
+ };
5410
+ };
5411
+ };
5143
5412
  }>]>(...ctx: C): Promise<C extends [{
5144
5413
  asResponse: true;
5145
5414
  }] ? Response : {
@@ -5178,6 +5447,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5178
5447
  }, {
5179
5448
  password: string;
5180
5449
  }>;
5450
+ metadata: {
5451
+ openapi: {
5452
+ summary: string;
5453
+ description: string;
5454
+ responses: {
5455
+ 200: {
5456
+ description: string;
5457
+ content: {
5458
+ "application/json": {
5459
+ schema: {
5460
+ type: "object";
5461
+ properties: {
5462
+ totpURI: {
5463
+ type: string;
5464
+ };
5465
+ };
5466
+ };
5467
+ };
5468
+ };
5469
+ };
5470
+ };
5471
+ };
5472
+ };
5181
5473
  };
5182
5474
  method: better_call.Method | better_call.Method[];
5183
5475
  headers: Headers;
@@ -5307,10 +5599,33 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5307
5599
  } & {
5308
5600
  method: "*";
5309
5601
  }>[];
5310
- }>]>(...ctx: C): Promise<C extends [{
5311
- asResponse: true;
5312
- }] ? Response : {
5313
- session: {
5602
+ metadata: {
5603
+ openapi: {
5604
+ summary: string;
5605
+ description: string;
5606
+ responses: {
5607
+ 200: {
5608
+ description: string;
5609
+ content: {
5610
+ "application/json": {
5611
+ schema: {
5612
+ type: "object";
5613
+ properties: {
5614
+ status: {
5615
+ type: string;
5616
+ };
5617
+ };
5618
+ };
5619
+ };
5620
+ };
5621
+ };
5622
+ };
5623
+ };
5624
+ };
5625
+ }>]>(...ctx: C): Promise<C extends [{
5626
+ asResponse: true;
5627
+ }] ? Response : {
5628
+ session: {
5314
5629
  id: string;
5315
5630
  userId: string;
5316
5631
  createdAt: Date;
@@ -5447,6 +5762,29 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
5447
5762
  } & {
5448
5763
  method: "*";
5449
5764
  }>[];
5765
+ metadata: {
5766
+ openapi: {
5767
+ summary: string;
5768
+ description: string;
5769
+ responses: {
5770
+ 200: {
5771
+ description: string;
5772
+ content: {
5773
+ "application/json": {
5774
+ schema: {
5775
+ type: "object";
5776
+ properties: {
5777
+ status: {
5778
+ type: string;
5779
+ };
5780
+ };
5781
+ };
5782
+ };
5783
+ };
5784
+ };
5785
+ };
5786
+ };
5787
+ };
5450
5788
  };
5451
5789
  method: better_call.Method | better_call.Method[];
5452
5790
  headers: Headers;
@@ -5706,6 +6044,108 @@ declare const passkey: (options?: PasskeyOptions) => {
5706
6044
  }>, better_call.EndpointOptions>[];
5707
6045
  metadata: {
5708
6046
  client: boolean;
6047
+ openapi: {
6048
+ description: string;
6049
+ responses: {
6050
+ 200: {
6051
+ description: string;
6052
+ content: {
6053
+ "application/json": {
6054
+ schema: {
6055
+ type: "object";
6056
+ properties: {
6057
+ challenge: {
6058
+ type: string;
6059
+ };
6060
+ rp: {
6061
+ type: string;
6062
+ properties: {
6063
+ name: {
6064
+ type: string;
6065
+ };
6066
+ id: {
6067
+ type: string;
6068
+ };
6069
+ };
6070
+ };
6071
+ user: {
6072
+ type: string;
6073
+ properties: {
6074
+ id: {
6075
+ type: string;
6076
+ };
6077
+ name: {
6078
+ type: string;
6079
+ };
6080
+ displayName: {
6081
+ type: string;
6082
+ };
6083
+ };
6084
+ };
6085
+ pubKeyCredParams: {
6086
+ type: string;
6087
+ items: {
6088
+ type: string;
6089
+ properties: {
6090
+ type: {
6091
+ type: string;
6092
+ };
6093
+ alg: {
6094
+ type: string;
6095
+ };
6096
+ };
6097
+ };
6098
+ };
6099
+ timeout: {
6100
+ type: string;
6101
+ };
6102
+ excludeCredentials: {
6103
+ type: string;
6104
+ items: {
6105
+ type: string;
6106
+ properties: {
6107
+ id: {
6108
+ type: string;
6109
+ };
6110
+ type: {
6111
+ type: string;
6112
+ };
6113
+ transports: {
6114
+ type: string;
6115
+ items: {
6116
+ type: string;
6117
+ };
6118
+ };
6119
+ };
6120
+ };
6121
+ };
6122
+ authenticatorSelection: {
6123
+ type: string;
6124
+ properties: {
6125
+ authenticatorAttachment: {
6126
+ type: string;
6127
+ };
6128
+ requireResidentKey: {
6129
+ type: string;
6130
+ };
6131
+ userVerification: {
6132
+ type: string;
6133
+ };
6134
+ };
6135
+ };
6136
+ attestation: {
6137
+ type: string;
6138
+ };
6139
+ extensions: {
6140
+ type: string;
6141
+ };
6142
+ };
6143
+ };
6144
+ };
6145
+ };
6146
+ };
6147
+ };
6148
+ };
5709
6149
  };
5710
6150
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
5711
6151
  asResponse: true;
@@ -5738,6 +6178,108 @@ declare const passkey: (options?: PasskeyOptions) => {
5738
6178
  }>, better_call.EndpointOptions>[];
5739
6179
  metadata: {
5740
6180
  client: boolean;
6181
+ openapi: {
6182
+ description: string;
6183
+ responses: {
6184
+ 200: {
6185
+ description: string;
6186
+ content: {
6187
+ "application/json": {
6188
+ schema: {
6189
+ type: "object";
6190
+ properties: {
6191
+ challenge: {
6192
+ type: string;
6193
+ };
6194
+ rp: {
6195
+ type: string;
6196
+ properties: {
6197
+ name: {
6198
+ type: string;
6199
+ };
6200
+ id: {
6201
+ type: string;
6202
+ };
6203
+ };
6204
+ };
6205
+ user: {
6206
+ type: string;
6207
+ properties: {
6208
+ id: {
6209
+ type: string;
6210
+ };
6211
+ name: {
6212
+ type: string;
6213
+ };
6214
+ displayName: {
6215
+ type: string;
6216
+ };
6217
+ };
6218
+ };
6219
+ pubKeyCredParams: {
6220
+ type: string;
6221
+ items: {
6222
+ type: string;
6223
+ properties: {
6224
+ type: {
6225
+ type: string;
6226
+ };
6227
+ alg: {
6228
+ type: string;
6229
+ };
6230
+ };
6231
+ };
6232
+ };
6233
+ timeout: {
6234
+ type: string;
6235
+ };
6236
+ excludeCredentials: {
6237
+ type: string;
6238
+ items: {
6239
+ type: string;
6240
+ properties: {
6241
+ id: {
6242
+ type: string;
6243
+ };
6244
+ type: {
6245
+ type: string;
6246
+ };
6247
+ transports: {
6248
+ type: string;
6249
+ items: {
6250
+ type: string;
6251
+ };
6252
+ };
6253
+ };
6254
+ };
6255
+ };
6256
+ authenticatorSelection: {
6257
+ type: string;
6258
+ properties: {
6259
+ authenticatorAttachment: {
6260
+ type: string;
6261
+ };
6262
+ requireResidentKey: {
6263
+ type: string;
6264
+ };
6265
+ userVerification: {
6266
+ type: string;
6267
+ };
6268
+ };
6269
+ };
6270
+ attestation: {
6271
+ type: string;
6272
+ };
6273
+ extensions: {
6274
+ type: string;
6275
+ };
6276
+ };
6277
+ };
6278
+ };
6279
+ };
6280
+ };
6281
+ };
6282
+ };
5741
6283
  };
5742
6284
  };
5743
6285
  method: better_call.Method | better_call.Method[];
@@ -5753,6 +6295,96 @@ declare const passkey: (options?: PasskeyOptions) => {
5753
6295
  }, {
5754
6296
  email?: string | undefined;
5755
6297
  }>>;
6298
+ metadata: {
6299
+ openapi: {
6300
+ description: string;
6301
+ responses: {
6302
+ 200: {
6303
+ description: string;
6304
+ content: {
6305
+ "application/json": {
6306
+ schema: {
6307
+ type: "object";
6308
+ properties: {
6309
+ challenge: {
6310
+ type: string;
6311
+ };
6312
+ rp: {
6313
+ type: string;
6314
+ properties: {
6315
+ name: {
6316
+ type: string;
6317
+ };
6318
+ id: {
6319
+ type: string;
6320
+ };
6321
+ };
6322
+ };
6323
+ user: {
6324
+ type: string;
6325
+ properties: {
6326
+ id: {
6327
+ type: string;
6328
+ };
6329
+ name: {
6330
+ type: string;
6331
+ };
6332
+ displayName: {
6333
+ type: string;
6334
+ };
6335
+ };
6336
+ };
6337
+ timeout: {
6338
+ type: string;
6339
+ };
6340
+ allowCredentials: {
6341
+ type: string;
6342
+ items: {
6343
+ type: string;
6344
+ properties: {
6345
+ id: {
6346
+ type: string;
6347
+ };
6348
+ type: {
6349
+ type: string;
6350
+ };
6351
+ transports: {
6352
+ type: string;
6353
+ items: {
6354
+ type: string;
6355
+ };
6356
+ };
6357
+ };
6358
+ };
6359
+ };
6360
+ userVerification: {
6361
+ type: string;
6362
+ };
6363
+ authenticatorSelection: {
6364
+ type: string;
6365
+ properties: {
6366
+ authenticatorAttachment: {
6367
+ type: string;
6368
+ };
6369
+ requireResidentKey: {
6370
+ type: string;
6371
+ };
6372
+ userVerification: {
6373
+ type: string;
6374
+ };
6375
+ };
6376
+ };
6377
+ extensions: {
6378
+ type: string;
6379
+ };
6380
+ };
6381
+ };
6382
+ };
6383
+ };
6384
+ };
6385
+ };
6386
+ };
6387
+ };
5756
6388
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
5757
6389
  asResponse: true;
5758
6390
  }] ? Response : _simplewebauthn_types.PublicKeyCredentialRequestOptionsJSON>;
@@ -5766,32 +6398,122 @@ declare const passkey: (options?: PasskeyOptions) => {
5766
6398
  }, {
5767
6399
  email?: string | undefined;
5768
6400
  }>>;
5769
- };
5770
- method: better_call.Method | better_call.Method[];
5771
- headers: Headers;
5772
- };
5773
- verifyPasskeyRegistration: {
5774
- <C extends [better_call.Context<"/passkey/verify-registration", {
5775
- method: "POST";
5776
- body: z.ZodObject<{
5777
- response: z.ZodAny;
5778
- name: z.ZodOptional<z.ZodString>;
5779
- }, "strip", z.ZodTypeAny, {
5780
- name?: string | undefined;
5781
- response?: any;
5782
- }, {
5783
- name?: string | undefined;
5784
- response?: any;
5785
- }>;
5786
- use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
5787
- session: {
5788
- session: Record<string, any> & {
5789
- id: string;
5790
- userId: string;
5791
- createdAt: Date;
5792
- updatedAt: Date;
5793
- expiresAt: Date;
5794
- token: string;
6401
+ metadata: {
6402
+ openapi: {
6403
+ description: string;
6404
+ responses: {
6405
+ 200: {
6406
+ description: string;
6407
+ content: {
6408
+ "application/json": {
6409
+ schema: {
6410
+ type: "object";
6411
+ properties: {
6412
+ challenge: {
6413
+ type: string;
6414
+ };
6415
+ rp: {
6416
+ type: string;
6417
+ properties: {
6418
+ name: {
6419
+ type: string;
6420
+ };
6421
+ id: {
6422
+ type: string;
6423
+ };
6424
+ };
6425
+ };
6426
+ user: {
6427
+ type: string;
6428
+ properties: {
6429
+ id: {
6430
+ type: string;
6431
+ };
6432
+ name: {
6433
+ type: string;
6434
+ };
6435
+ displayName: {
6436
+ type: string;
6437
+ };
6438
+ };
6439
+ };
6440
+ timeout: {
6441
+ type: string;
6442
+ };
6443
+ allowCredentials: {
6444
+ type: string;
6445
+ items: {
6446
+ type: string;
6447
+ properties: {
6448
+ id: {
6449
+ type: string;
6450
+ };
6451
+ type: {
6452
+ type: string;
6453
+ };
6454
+ transports: {
6455
+ type: string;
6456
+ items: {
6457
+ type: string;
6458
+ };
6459
+ };
6460
+ };
6461
+ };
6462
+ };
6463
+ userVerification: {
6464
+ type: string;
6465
+ };
6466
+ authenticatorSelection: {
6467
+ type: string;
6468
+ properties: {
6469
+ authenticatorAttachment: {
6470
+ type: string;
6471
+ };
6472
+ requireResidentKey: {
6473
+ type: string;
6474
+ };
6475
+ userVerification: {
6476
+ type: string;
6477
+ };
6478
+ };
6479
+ };
6480
+ extensions: {
6481
+ type: string;
6482
+ };
6483
+ };
6484
+ };
6485
+ };
6486
+ };
6487
+ };
6488
+ };
6489
+ };
6490
+ };
6491
+ };
6492
+ method: better_call.Method | better_call.Method[];
6493
+ headers: Headers;
6494
+ };
6495
+ verifyPasskeyRegistration: {
6496
+ <C extends [better_call.Context<"/passkey/verify-registration", {
6497
+ method: "POST";
6498
+ body: z.ZodObject<{
6499
+ response: z.ZodAny;
6500
+ name: z.ZodOptional<z.ZodString>;
6501
+ }, "strip", z.ZodTypeAny, {
6502
+ name?: string | undefined;
6503
+ response?: any;
6504
+ }, {
6505
+ name?: string | undefined;
6506
+ response?: any;
6507
+ }>;
6508
+ use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
6509
+ session: {
6510
+ session: Record<string, any> & {
6511
+ id: string;
6512
+ userId: string;
6513
+ createdAt: Date;
6514
+ updatedAt: Date;
6515
+ expiresAt: Date;
6516
+ token: string;
5795
6517
  ipAddress?: string | null | undefined;
5796
6518
  userAgent?: string | null | undefined;
5797
6519
  };
@@ -5806,6 +6528,26 @@ declare const passkey: (options?: PasskeyOptions) => {
5806
6528
  };
5807
6529
  };
5808
6530
  }>, better_call.EndpointOptions>[];
6531
+ metadata: {
6532
+ openapi: {
6533
+ description: string;
6534
+ responses: {
6535
+ 200: {
6536
+ description: string;
6537
+ content: {
6538
+ "application/json": {
6539
+ schema: {
6540
+ $ref: string;
6541
+ };
6542
+ };
6543
+ };
6544
+ };
6545
+ 400: {
6546
+ description: string;
6547
+ };
6548
+ };
6549
+ };
6550
+ };
5809
6551
  }>]>(...ctx: C): Promise<C extends [{
5810
6552
  asResponse: true;
5811
6553
  }] ? Response : Passkey | null>;
@@ -5845,6 +6587,26 @@ declare const passkey: (options?: PasskeyOptions) => {
5845
6587
  };
5846
6588
  };
5847
6589
  }>, better_call.EndpointOptions>[];
6590
+ metadata: {
6591
+ openapi: {
6592
+ description: string;
6593
+ responses: {
6594
+ 200: {
6595
+ description: string;
6596
+ content: {
6597
+ "application/json": {
6598
+ schema: {
6599
+ $ref: string;
6600
+ };
6601
+ };
6602
+ };
6603
+ };
6604
+ 400: {
6605
+ description: string;
6606
+ };
6607
+ };
6608
+ };
6609
+ };
5848
6610
  };
5849
6611
  method: better_call.Method | better_call.Method[];
5850
6612
  headers: Headers;
@@ -5859,6 +6621,31 @@ declare const passkey: (options?: PasskeyOptions) => {
5859
6621
  }, {
5860
6622
  response?: any;
5861
6623
  }>;
6624
+ metadata: {
6625
+ openapi: {
6626
+ description: string;
6627
+ responses: {
6628
+ 200: {
6629
+ description: string;
6630
+ content: {
6631
+ "application/json": {
6632
+ schema: {
6633
+ type: "object";
6634
+ properties: {
6635
+ session: {
6636
+ $ref: string;
6637
+ };
6638
+ user: {
6639
+ $ref: string;
6640
+ };
6641
+ };
6642
+ };
6643
+ };
6644
+ };
6645
+ };
6646
+ };
6647
+ };
6648
+ };
5862
6649
  }>]>(...ctx: C): Promise<C extends [{
5863
6650
  asResponse: true;
5864
6651
  }] ? Response : {
@@ -5883,6 +6670,31 @@ declare const passkey: (options?: PasskeyOptions) => {
5883
6670
  }, {
5884
6671
  response?: any;
5885
6672
  }>;
6673
+ metadata: {
6674
+ openapi: {
6675
+ description: string;
6676
+ responses: {
6677
+ 200: {
6678
+ description: string;
6679
+ content: {
6680
+ "application/json": {
6681
+ schema: {
6682
+ type: "object";
6683
+ properties: {
6684
+ session: {
6685
+ $ref: string;
6686
+ };
6687
+ user: {
6688
+ $ref: string;
6689
+ };
6690
+ };
6691
+ };
6692
+ };
6693
+ };
6694
+ };
6695
+ };
6696
+ };
6697
+ };
5886
6698
  };
5887
6699
  method: better_call.Method | better_call.Method[];
5888
6700
  headers: Headers;
@@ -6135,6 +6947,32 @@ declare const username: () => {
6135
6947
  username: string;
6136
6948
  rememberMe?: boolean | undefined;
6137
6949
  }>;
6950
+ metadata: {
6951
+ openapi: {
6952
+ summary: string;
6953
+ description: string;
6954
+ responses: {
6955
+ 200: {
6956
+ description: string;
6957
+ content: {
6958
+ "application/json": {
6959
+ schema: {
6960
+ type: "object";
6961
+ properties: {
6962
+ user: {
6963
+ $ref: string;
6964
+ };
6965
+ session: {
6966
+ $ref: string;
6967
+ };
6968
+ };
6969
+ };
6970
+ };
6971
+ };
6972
+ };
6973
+ };
6974
+ };
6975
+ };
6138
6976
  }>]>(...ctx: C): Promise<C extends [{
6139
6977
  asResponse: true;
6140
6978
  }] ? Response : {
@@ -6174,6 +7012,32 @@ declare const username: () => {
6174
7012
  username: string;
6175
7013
  rememberMe?: boolean | undefined;
6176
7014
  }>;
7015
+ metadata: {
7016
+ openapi: {
7017
+ summary: string;
7018
+ description: string;
7019
+ responses: {
7020
+ 200: {
7021
+ description: string;
7022
+ content: {
7023
+ "application/json": {
7024
+ schema: {
7025
+ type: "object";
7026
+ properties: {
7027
+ user: {
7028
+ $ref: string;
7029
+ };
7030
+ session: {
7031
+ $ref: string;
7032
+ };
7033
+ };
7034
+ };
7035
+ };
7036
+ };
7037
+ };
7038
+ };
7039
+ };
7040
+ };
6177
7041
  };
6178
7042
  method: better_call.Method | better_call.Method[];
6179
7043
  headers: Headers;
@@ -6243,6 +7107,28 @@ declare const magicLink: (options: MagicLinkOptions) => {
6243
7107
  email: string;
6244
7108
  callbackURL?: string | undefined;
6245
7109
  }>;
7110
+ metadata: {
7111
+ openapi: {
7112
+ description: string;
7113
+ responses: {
7114
+ 200: {
7115
+ description: string;
7116
+ content: {
7117
+ "application/json": {
7118
+ schema: {
7119
+ type: "object";
7120
+ properties: {
7121
+ status: {
7122
+ type: string;
7123
+ };
7124
+ };
7125
+ };
7126
+ };
7127
+ };
7128
+ };
7129
+ };
7130
+ };
7131
+ };
6246
7132
  }>]>(...ctx: C): Promise<C extends [{
6247
7133
  asResponse: true;
6248
7134
  }] ? Response : {
@@ -6262,6 +7148,28 @@ declare const magicLink: (options: MagicLinkOptions) => {
6262
7148
  email: string;
6263
7149
  callbackURL?: string | undefined;
6264
7150
  }>;
7151
+ metadata: {
7152
+ openapi: {
7153
+ description: string;
7154
+ responses: {
7155
+ 200: {
7156
+ description: string;
7157
+ content: {
7158
+ "application/json": {
7159
+ schema: {
7160
+ type: "object";
7161
+ properties: {
7162
+ status: {
7163
+ type: string;
7164
+ };
7165
+ };
7166
+ };
7167
+ };
7168
+ };
7169
+ };
7170
+ };
7171
+ };
7172
+ };
6265
7173
  };
6266
7174
  method: better_call.Method | better_call.Method[];
6267
7175
  headers: Headers;
@@ -6280,18 +7188,43 @@ declare const magicLink: (options: MagicLinkOptions) => {
6280
7188
  callbackURL?: string | undefined;
6281
7189
  }>;
6282
7190
  requireHeaders: true;
6283
- }>]>(...ctx: C): Promise<C extends [{
6284
- asResponse: true;
6285
- }] ? Response : {
6286
- session: {
6287
- id: string;
6288
- userId: string;
6289
- createdAt: Date;
6290
- updatedAt: Date;
6291
- expiresAt: Date;
6292
- token: string;
6293
- ipAddress?: string | null | undefined;
6294
- userAgent?: string | null | undefined;
7191
+ metadata: {
7192
+ openapi: {
7193
+ description: string;
7194
+ responses: {
7195
+ 200: {
7196
+ description: string;
7197
+ content: {
7198
+ "application/json": {
7199
+ schema: {
7200
+ type: "object";
7201
+ properties: {
7202
+ session: {
7203
+ $ref: string;
7204
+ };
7205
+ user: {
7206
+ $ref: string;
7207
+ };
7208
+ };
7209
+ };
7210
+ };
7211
+ };
7212
+ };
7213
+ };
7214
+ };
7215
+ };
7216
+ }>]>(...ctx: C): Promise<C extends [{
7217
+ asResponse: true;
7218
+ }] ? Response : {
7219
+ session: {
7220
+ id: string;
7221
+ userId: string;
7222
+ createdAt: Date;
7223
+ updatedAt: Date;
7224
+ expiresAt: Date;
7225
+ token: string;
7226
+ ipAddress?: string | null | undefined;
7227
+ userAgent?: string | null | undefined;
6295
7228
  };
6296
7229
  user: {
6297
7230
  id: string;
@@ -6317,6 +7250,31 @@ declare const magicLink: (options: MagicLinkOptions) => {
6317
7250
  callbackURL?: string | undefined;
6318
7251
  }>;
6319
7252
  requireHeaders: true;
7253
+ metadata: {
7254
+ openapi: {
7255
+ description: string;
7256
+ responses: {
7257
+ 200: {
7258
+ description: string;
7259
+ content: {
7260
+ "application/json": {
7261
+ schema: {
7262
+ type: "object";
7263
+ properties: {
7264
+ session: {
7265
+ $ref: string;
7266
+ };
7267
+ user: {
7268
+ $ref: string;
7269
+ };
7270
+ };
7271
+ };
7272
+ };
7273
+ };
7274
+ };
7275
+ };
7276
+ };
7277
+ };
6320
7278
  };
6321
7279
  method: better_call.Method | better_call.Method[];
6322
7280
  headers: Headers;
@@ -6419,6 +7377,35 @@ declare const phoneNumber: (options?: {
6419
7377
  phoneNumber: string;
6420
7378
  rememberMe?: boolean | undefined;
6421
7379
  }>;
7380
+ metadata: {
7381
+ openapi: {
7382
+ summary: string;
7383
+ description: string;
7384
+ responses: {
7385
+ 200: {
7386
+ description: string;
7387
+ content: {
7388
+ "application/json": {
7389
+ schema: {
7390
+ type: "object";
7391
+ properties: {
7392
+ user: {
7393
+ $ref: string;
7394
+ };
7395
+ session: {
7396
+ $ref: string;
7397
+ };
7398
+ };
7399
+ };
7400
+ };
7401
+ };
7402
+ };
7403
+ 400: {
7404
+ description: string;
7405
+ };
7406
+ };
7407
+ };
7408
+ };
6422
7409
  }>]>(...ctx: C): Promise<C extends [{
6423
7410
  asResponse: true;
6424
7411
  }] ? Response : {
@@ -6450,6 +7437,35 @@ declare const phoneNumber: (options?: {
6450
7437
  phoneNumber: string;
6451
7438
  rememberMe?: boolean | undefined;
6452
7439
  }>;
7440
+ metadata: {
7441
+ openapi: {
7442
+ summary: string;
7443
+ description: string;
7444
+ responses: {
7445
+ 200: {
7446
+ description: string;
7447
+ content: {
7448
+ "application/json": {
7449
+ schema: {
7450
+ type: "object";
7451
+ properties: {
7452
+ user: {
7453
+ $ref: string;
7454
+ };
7455
+ session: {
7456
+ $ref: string;
7457
+ };
7458
+ };
7459
+ };
7460
+ };
7461
+ };
7462
+ };
7463
+ 400: {
7464
+ description: string;
7465
+ };
7466
+ };
7467
+ };
7468
+ };
6453
7469
  };
6454
7470
  method: better_call.Method | better_call.Method[];
6455
7471
  headers: Headers;
@@ -6464,6 +7480,29 @@ declare const phoneNumber: (options?: {
6464
7480
  }, {
6465
7481
  phoneNumber: string;
6466
7482
  }>;
7483
+ metadata: {
7484
+ openapi: {
7485
+ summary: string;
7486
+ description: string;
7487
+ responses: {
7488
+ 200: {
7489
+ description: string;
7490
+ content: {
7491
+ "application/json": {
7492
+ schema: {
7493
+ type: "object";
7494
+ properties: {
7495
+ message: {
7496
+ type: string;
7497
+ };
7498
+ };
7499
+ };
7500
+ };
7501
+ };
7502
+ };
7503
+ };
7504
+ };
7505
+ };
6467
7506
  }>]>(...ctx: C): Promise<C extends [{
6468
7507
  asResponse: true;
6469
7508
  }] ? Response : {
@@ -6479,6 +7518,29 @@ declare const phoneNumber: (options?: {
6479
7518
  }, {
6480
7519
  phoneNumber: string;
6481
7520
  }>;
7521
+ metadata: {
7522
+ openapi: {
7523
+ summary: string;
7524
+ description: string;
7525
+ responses: {
7526
+ 200: {
7527
+ description: string;
7528
+ content: {
7529
+ "application/json": {
7530
+ schema: {
7531
+ type: "object";
7532
+ properties: {
7533
+ message: {
7534
+ type: string;
7535
+ };
7536
+ };
7537
+ };
7538
+ };
7539
+ };
7540
+ };
7541
+ };
7542
+ };
7543
+ };
6482
7544
  };
6483
7545
  method: better_call.Method | better_call.Method[];
6484
7546
  headers: Headers;
@@ -6517,6 +7579,35 @@ declare const phoneNumber: (options?: {
6517
7579
  disableSession?: boolean | undefined;
6518
7580
  updatePhoneNumber?: boolean | undefined;
6519
7581
  }>;
7582
+ metadata: {
7583
+ openapi: {
7584
+ summary: string;
7585
+ description: string;
7586
+ responses: {
7587
+ 200: {
7588
+ description: string;
7589
+ content: {
7590
+ "application/json": {
7591
+ schema: {
7592
+ type: "object";
7593
+ properties: {
7594
+ user: {
7595
+ $ref: string;
7596
+ };
7597
+ session: {
7598
+ $ref: string;
7599
+ };
7600
+ };
7601
+ };
7602
+ };
7603
+ };
7604
+ };
7605
+ 400: {
7606
+ description: string;
7607
+ };
7608
+ };
7609
+ };
7610
+ };
6520
7611
  }>]>(...ctx: C): Promise<C extends [{
6521
7612
  asResponse: true;
6522
7613
  }] ? Response : {
@@ -6569,6 +7660,35 @@ declare const phoneNumber: (options?: {
6569
7660
  disableSession?: boolean | undefined;
6570
7661
  updatePhoneNumber?: boolean | undefined;
6571
7662
  }>;
7663
+ metadata: {
7664
+ openapi: {
7665
+ summary: string;
7666
+ description: string;
7667
+ responses: {
7668
+ 200: {
7669
+ description: string;
7670
+ content: {
7671
+ "application/json": {
7672
+ schema: {
7673
+ type: "object";
7674
+ properties: {
7675
+ user: {
7676
+ $ref: string;
7677
+ };
7678
+ session: {
7679
+ $ref: string;
7680
+ };
7681
+ };
7682
+ };
7683
+ };
7684
+ };
7685
+ };
7686
+ 400: {
7687
+ description: string;
7688
+ };
7689
+ };
7690
+ };
7691
+ };
6572
7692
  };
6573
7693
  method: better_call.Method | better_call.Method[];
6574
7694
  headers: Headers;
@@ -6661,6 +7781,31 @@ declare const anonymous: (options?: AnonymousOptions) => {
6661
7781
  signInAnonymous: {
6662
7782
  <C extends [(better_call.Context<"/sign-in/anonymous", {
6663
7783
  method: "POST";
7784
+ metadata: {
7785
+ openapi: {
7786
+ description: string;
7787
+ responses: {
7788
+ 200: {
7789
+ description: string;
7790
+ content: {
7791
+ "application/json": {
7792
+ schema: {
7793
+ type: "object";
7794
+ properties: {
7795
+ user: {
7796
+ $ref: string;
7797
+ };
7798
+ session: {
7799
+ $ref: string;
7800
+ };
7801
+ };
7802
+ };
7803
+ };
7804
+ };
7805
+ };
7806
+ };
7807
+ };
7808
+ };
6664
7809
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
6665
7810
  asResponse: true;
6666
7811
  }] ? Response : {
@@ -6687,6 +7832,31 @@ declare const anonymous: (options?: AnonymousOptions) => {
6687
7832
  path: "/sign-in/anonymous";
6688
7833
  options: {
6689
7834
  method: "POST";
7835
+ metadata: {
7836
+ openapi: {
7837
+ description: string;
7838
+ responses: {
7839
+ 200: {
7840
+ description: string;
7841
+ content: {
7842
+ "application/json": {
7843
+ schema: {
7844
+ type: "object";
7845
+ properties: {
7846
+ user: {
7847
+ $ref: string;
7848
+ };
7849
+ session: {
7850
+ $ref: string;
7851
+ };
7852
+ };
7853
+ };
7854
+ };
7855
+ };
7856
+ };
7857
+ };
7858
+ };
7859
+ };
6690
7860
  };
6691
7861
  method: better_call.Method | better_call.Method[];
6692
7862
  headers: Headers;
@@ -6853,6 +8023,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
6853
8023
  };
6854
8024
  };
6855
8025
  }>, better_call.EndpointOptions>[];
8026
+ metadata: {
8027
+ openapi: {
8028
+ operationId: string;
8029
+ summary: string;
8030
+ description: string;
8031
+ responses: {
8032
+ 200: {
8033
+ description: string;
8034
+ content: {
8035
+ "application/json": {
8036
+ schema: {
8037
+ type: "object";
8038
+ properties: {
8039
+ user: {
8040
+ $ref: string;
8041
+ };
8042
+ };
8043
+ };
8044
+ };
8045
+ };
8046
+ };
8047
+ };
8048
+ };
8049
+ };
6856
8050
  }>]>(...ctx: C): Promise<C extends [{
6857
8051
  asResponse: true;
6858
8052
  }] ? Response : {
@@ -6886,23 +8080,47 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
6886
8080
  };
6887
8081
  };
6888
8082
  }>, better_call.EndpointOptions>[];
6889
- };
6890
- method: better_call.Method | better_call.Method[];
6891
- headers: Headers;
6892
- };
6893
- createUser: {
6894
- <C extends [better_call.Context<"/admin/create-user", {
6895
- method: "POST";
6896
- body: z.ZodObject<{
6897
- email: z.ZodString;
6898
- password: z.ZodString;
6899
- name: z.ZodString;
6900
- role: z.ZodString;
6901
- /**
6902
- * extra fields for user
6903
- */
6904
- data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6905
- }, "strip", z.ZodTypeAny, {
8083
+ metadata: {
8084
+ openapi: {
8085
+ operationId: string;
8086
+ summary: string;
8087
+ description: string;
8088
+ responses: {
8089
+ 200: {
8090
+ description: string;
8091
+ content: {
8092
+ "application/json": {
8093
+ schema: {
8094
+ type: "object";
8095
+ properties: {
8096
+ user: {
8097
+ $ref: string;
8098
+ };
8099
+ };
8100
+ };
8101
+ };
8102
+ };
8103
+ };
8104
+ };
8105
+ };
8106
+ };
8107
+ };
8108
+ method: better_call.Method | better_call.Method[];
8109
+ headers: Headers;
8110
+ };
8111
+ createUser: {
8112
+ <C extends [better_call.Context<"/admin/create-user", {
8113
+ method: "POST";
8114
+ body: z.ZodObject<{
8115
+ email: z.ZodString;
8116
+ password: z.ZodString;
8117
+ name: z.ZodString;
8118
+ role: z.ZodString;
8119
+ /**
8120
+ * extra fields for user
8121
+ */
8122
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8123
+ }, "strip", z.ZodTypeAny, {
6906
8124
  password: string;
6907
8125
  email: string;
6908
8126
  name: string;
@@ -6930,6 +8148,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
6930
8148
  };
6931
8149
  };
6932
8150
  }>, better_call.EndpointOptions>[];
8151
+ metadata: {
8152
+ openapi: {
8153
+ operationId: string;
8154
+ summary: string;
8155
+ description: string;
8156
+ responses: {
8157
+ 200: {
8158
+ description: string;
8159
+ content: {
8160
+ "application/json": {
8161
+ schema: {
8162
+ type: "object";
8163
+ properties: {
8164
+ user: {
8165
+ $ref: string;
8166
+ };
8167
+ };
8168
+ };
8169
+ };
8170
+ };
8171
+ };
8172
+ };
8173
+ };
8174
+ };
6933
8175
  }>]>(...ctx: C): Promise<C extends [{
6934
8176
  asResponse: true;
6935
8177
  }] ? Response : {
@@ -6975,6 +8217,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
6975
8217
  };
6976
8218
  };
6977
8219
  }>, better_call.EndpointOptions>[];
8220
+ metadata: {
8221
+ openapi: {
8222
+ operationId: string;
8223
+ summary: string;
8224
+ description: string;
8225
+ responses: {
8226
+ 200: {
8227
+ description: string;
8228
+ content: {
8229
+ "application/json": {
8230
+ schema: {
8231
+ type: "object";
8232
+ properties: {
8233
+ user: {
8234
+ $ref: string;
8235
+ };
8236
+ };
8237
+ };
8238
+ };
8239
+ };
8240
+ };
8241
+ };
8242
+ };
8243
+ };
6978
8244
  };
6979
8245
  method: better_call.Method | better_call.Method[];
6980
8246
  headers: Headers;
@@ -7031,6 +8297,33 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7031
8297
  filterValue?: string | number | boolean | undefined;
7032
8298
  filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
7033
8299
  }>;
8300
+ metadata: {
8301
+ openapi: {
8302
+ operationId: string;
8303
+ summary: string;
8304
+ description: string;
8305
+ responses: {
8306
+ 200: {
8307
+ description: string;
8308
+ content: {
8309
+ "application/json": {
8310
+ schema: {
8311
+ type: "object";
8312
+ properties: {
8313
+ users: {
8314
+ type: string;
8315
+ items: {
8316
+ $ref: string;
8317
+ };
8318
+ };
8319
+ };
8320
+ };
8321
+ };
8322
+ };
8323
+ };
8324
+ };
8325
+ };
8326
+ };
7034
8327
  }>]>(...ctx: C): Promise<C extends [{
7035
8328
  asResponse: true;
7036
8329
  }] ? Response : {
@@ -7088,6 +8381,33 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7088
8381
  filterValue?: string | number | boolean | undefined;
7089
8382
  filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
7090
8383
  }>;
8384
+ metadata: {
8385
+ openapi: {
8386
+ operationId: string;
8387
+ summary: string;
8388
+ description: string;
8389
+ responses: {
8390
+ 200: {
8391
+ description: string;
8392
+ content: {
8393
+ "application/json": {
8394
+ schema: {
8395
+ type: "object";
8396
+ properties: {
8397
+ users: {
8398
+ type: string;
8399
+ items: {
8400
+ $ref: string;
8401
+ };
8402
+ };
8403
+ };
8404
+ };
8405
+ };
8406
+ };
8407
+ };
8408
+ };
8409
+ };
8410
+ };
7091
8411
  };
7092
8412
  method: better_call.Method | better_call.Method[];
7093
8413
  headers: Headers;
@@ -7117,6 +8437,33 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7117
8437
  }, {
7118
8438
  userId: string;
7119
8439
  }>;
8440
+ metadata: {
8441
+ openapi: {
8442
+ operationId: string;
8443
+ summary: string;
8444
+ description: string;
8445
+ responses: {
8446
+ 200: {
8447
+ description: string;
8448
+ content: {
8449
+ "application/json": {
8450
+ schema: {
8451
+ type: "object";
8452
+ properties: {
8453
+ sessions: {
8454
+ type: string;
8455
+ items: {
8456
+ $ref: string;
8457
+ };
8458
+ };
8459
+ };
8460
+ };
8461
+ };
8462
+ };
8463
+ };
8464
+ };
8465
+ };
8466
+ };
7120
8467
  }>]>(...ctx: C): Promise<C extends [{
7121
8468
  asResponse: true;
7122
8469
  }] ? Response : {
@@ -7156,6 +8503,33 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7156
8503
  }, {
7157
8504
  userId: string;
7158
8505
  }>;
8506
+ metadata: {
8507
+ openapi: {
8508
+ operationId: string;
8509
+ summary: string;
8510
+ description: string;
8511
+ responses: {
8512
+ 200: {
8513
+ description: string;
8514
+ content: {
8515
+ "application/json": {
8516
+ schema: {
8517
+ type: "object";
8518
+ properties: {
8519
+ sessions: {
8520
+ type: string;
8521
+ items: {
8522
+ $ref: string;
8523
+ };
8524
+ };
8525
+ };
8526
+ };
8527
+ };
8528
+ };
8529
+ };
8530
+ };
8531
+ };
8532
+ };
7159
8533
  };
7160
8534
  method: better_call.Method | better_call.Method[];
7161
8535
  headers: Headers;
@@ -7185,6 +8559,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7185
8559
  };
7186
8560
  };
7187
8561
  }>, better_call.EndpointOptions>[];
8562
+ metadata: {
8563
+ openapi: {
8564
+ operationId: string;
8565
+ summary: string;
8566
+ description: string;
8567
+ responses: {
8568
+ 200: {
8569
+ description: string;
8570
+ content: {
8571
+ "application/json": {
8572
+ schema: {
8573
+ type: "object";
8574
+ properties: {
8575
+ user: {
8576
+ $ref: string;
8577
+ };
8578
+ };
8579
+ };
8580
+ };
8581
+ };
8582
+ };
8583
+ };
8584
+ };
8585
+ };
7188
8586
  }>]>(...ctx: C): Promise<C extends [{
7189
8587
  asResponse: true;
7190
8588
  }] ? Response : {
@@ -7215,6 +8613,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7215
8613
  };
7216
8614
  };
7217
8615
  }>, better_call.EndpointOptions>[];
8616
+ metadata: {
8617
+ openapi: {
8618
+ operationId: string;
8619
+ summary: string;
8620
+ description: string;
8621
+ responses: {
8622
+ 200: {
8623
+ description: string;
8624
+ content: {
8625
+ "application/json": {
8626
+ schema: {
8627
+ type: "object";
8628
+ properties: {
8629
+ user: {
8630
+ $ref: string;
8631
+ };
8632
+ };
8633
+ };
8634
+ };
8635
+ };
8636
+ };
8637
+ };
8638
+ };
8639
+ };
7218
8640
  };
7219
8641
  method: better_call.Method | better_call.Method[];
7220
8642
  headers: Headers;
@@ -7256,6 +8678,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7256
8678
  };
7257
8679
  };
7258
8680
  }>, better_call.EndpointOptions>[];
8681
+ metadata: {
8682
+ openapi: {
8683
+ operationId: string;
8684
+ summary: string;
8685
+ description: string;
8686
+ responses: {
8687
+ 200: {
8688
+ description: string;
8689
+ content: {
8690
+ "application/json": {
8691
+ schema: {
8692
+ type: "object";
8693
+ properties: {
8694
+ user: {
8695
+ $ref: string;
8696
+ };
8697
+ };
8698
+ };
8699
+ };
8700
+ };
8701
+ };
8702
+ };
8703
+ };
8704
+ };
7259
8705
  }>]>(...ctx: C): Promise<C extends [{
7260
8706
  asResponse: true;
7261
8707
  }] ? Response : {
@@ -7298,6 +8744,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7298
8744
  };
7299
8745
  };
7300
8746
  }>, better_call.EndpointOptions>[];
8747
+ metadata: {
8748
+ openapi: {
8749
+ operationId: string;
8750
+ summary: string;
8751
+ description: string;
8752
+ responses: {
8753
+ 200: {
8754
+ description: string;
8755
+ content: {
8756
+ "application/json": {
8757
+ schema: {
8758
+ type: "object";
8759
+ properties: {
8760
+ user: {
8761
+ $ref: string;
8762
+ };
8763
+ };
8764
+ };
8765
+ };
8766
+ };
8767
+ };
8768
+ };
8769
+ };
8770
+ };
7301
8771
  };
7302
8772
  method: better_call.Method | better_call.Method[];
7303
8773
  headers: Headers;
@@ -7327,6 +8797,33 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7327
8797
  };
7328
8798
  };
7329
8799
  }>, better_call.EndpointOptions>[];
8800
+ metadata: {
8801
+ openapi: {
8802
+ operationId: string;
8803
+ summary: string;
8804
+ description: string;
8805
+ responses: {
8806
+ 200: {
8807
+ description: string;
8808
+ content: {
8809
+ "application/json": {
8810
+ schema: {
8811
+ type: "object";
8812
+ properties: {
8813
+ session: {
8814
+ $ref: string;
8815
+ };
8816
+ user: {
8817
+ $ref: string;
8818
+ };
8819
+ };
8820
+ };
8821
+ };
8822
+ };
8823
+ };
8824
+ };
8825
+ };
8826
+ };
7330
8827
  }>]>(...ctx: C): Promise<C extends [{
7331
8828
  asResponse: true;
7332
8829
  }] ? Response : {
@@ -7375,8 +8872,35 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7375
8872
  };
7376
8873
  };
7377
8874
  }>, better_call.EndpointOptions>[];
7378
- };
7379
- method: better_call.Method | better_call.Method[];
8875
+ metadata: {
8876
+ openapi: {
8877
+ operationId: string;
8878
+ summary: string;
8879
+ description: string;
8880
+ responses: {
8881
+ 200: {
8882
+ description: string;
8883
+ content: {
8884
+ "application/json": {
8885
+ schema: {
8886
+ type: "object";
8887
+ properties: {
8888
+ session: {
8889
+ $ref: string;
8890
+ };
8891
+ user: {
8892
+ $ref: string;
8893
+ };
8894
+ };
8895
+ };
8896
+ };
8897
+ };
8898
+ };
8899
+ };
8900
+ };
8901
+ };
8902
+ };
8903
+ method: better_call.Method | better_call.Method[];
7380
8904
  headers: Headers;
7381
8905
  };
7382
8906
  revokeUserSession: {
@@ -7404,6 +8928,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7404
8928
  };
7405
8929
  };
7406
8930
  }>, better_call.EndpointOptions>[];
8931
+ metadata: {
8932
+ openapi: {
8933
+ operationId: string;
8934
+ summary: string;
8935
+ description: string;
8936
+ responses: {
8937
+ 200: {
8938
+ description: string;
8939
+ content: {
8940
+ "application/json": {
8941
+ schema: {
8942
+ type: "object";
8943
+ properties: {
8944
+ success: {
8945
+ type: string;
8946
+ };
8947
+ };
8948
+ };
8949
+ };
8950
+ };
8951
+ };
8952
+ };
8953
+ };
8954
+ };
7407
8955
  }>]>(...ctx: C): Promise<C extends [{
7408
8956
  asResponse: true;
7409
8957
  }] ? Response : {
@@ -7434,6 +8982,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7434
8982
  };
7435
8983
  };
7436
8984
  }>, better_call.EndpointOptions>[];
8985
+ metadata: {
8986
+ openapi: {
8987
+ operationId: string;
8988
+ summary: string;
8989
+ description: string;
8990
+ responses: {
8991
+ 200: {
8992
+ description: string;
8993
+ content: {
8994
+ "application/json": {
8995
+ schema: {
8996
+ type: "object";
8997
+ properties: {
8998
+ success: {
8999
+ type: string;
9000
+ };
9001
+ };
9002
+ };
9003
+ };
9004
+ };
9005
+ };
9006
+ };
9007
+ };
9008
+ };
7437
9009
  };
7438
9010
  method: better_call.Method | better_call.Method[];
7439
9011
  headers: Headers;
@@ -7463,6 +9035,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7463
9035
  };
7464
9036
  };
7465
9037
  }>, better_call.EndpointOptions>[];
9038
+ metadata: {
9039
+ openapi: {
9040
+ operationId: string;
9041
+ summary: string;
9042
+ description: string;
9043
+ responses: {
9044
+ 200: {
9045
+ description: string;
9046
+ content: {
9047
+ "application/json": {
9048
+ schema: {
9049
+ type: "object";
9050
+ properties: {
9051
+ success: {
9052
+ type: string;
9053
+ };
9054
+ };
9055
+ };
9056
+ };
9057
+ };
9058
+ };
9059
+ };
9060
+ };
9061
+ };
7466
9062
  }>]>(...ctx: C): Promise<C extends [{
7467
9063
  asResponse: true;
7468
9064
  }] ? Response : {
@@ -7493,6 +9089,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7493
9089
  };
7494
9090
  };
7495
9091
  }>, better_call.EndpointOptions>[];
9092
+ metadata: {
9093
+ openapi: {
9094
+ operationId: string;
9095
+ summary: string;
9096
+ description: string;
9097
+ responses: {
9098
+ 200: {
9099
+ description: string;
9100
+ content: {
9101
+ "application/json": {
9102
+ schema: {
9103
+ type: "object";
9104
+ properties: {
9105
+ success: {
9106
+ type: string;
9107
+ };
9108
+ };
9109
+ };
9110
+ };
9111
+ };
9112
+ };
9113
+ };
9114
+ };
9115
+ };
7496
9116
  };
7497
9117
  method: better_call.Method | better_call.Method[];
7498
9118
  headers: Headers;
@@ -7522,6 +9142,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7522
9142
  };
7523
9143
  };
7524
9144
  }>, better_call.EndpointOptions>[];
9145
+ metadata: {
9146
+ openapi: {
9147
+ operationId: string;
9148
+ summary: string;
9149
+ description: string;
9150
+ responses: {
9151
+ 200: {
9152
+ description: string;
9153
+ content: {
9154
+ "application/json": {
9155
+ schema: {
9156
+ type: "object";
9157
+ properties: {
9158
+ success: {
9159
+ type: string;
9160
+ };
9161
+ };
9162
+ };
9163
+ };
9164
+ };
9165
+ };
9166
+ };
9167
+ };
9168
+ };
7525
9169
  }>]>(...ctx: C): Promise<C extends [{
7526
9170
  asResponse: true;
7527
9171
  }] ? Response : {
@@ -7552,6 +9196,30 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
7552
9196
  };
7553
9197
  };
7554
9198
  }>, better_call.EndpointOptions>[];
9199
+ metadata: {
9200
+ openapi: {
9201
+ operationId: string;
9202
+ summary: string;
9203
+ description: string;
9204
+ responses: {
9205
+ 200: {
9206
+ description: string;
9207
+ content: {
9208
+ "application/json": {
9209
+ schema: {
9210
+ type: "object";
9211
+ properties: {
9212
+ success: {
9213
+ type: string;
9214
+ };
9215
+ };
9216
+ };
9217
+ };
9218
+ };
9219
+ };
9220
+ };
9221
+ };
9222
+ };
7555
9223
  };
7556
9224
  method: better_call.Method | better_call.Method[];
7557
9225
  headers: Headers;
@@ -7741,6 +9409,31 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
7741
9409
  callbackURL?: string | undefined;
7742
9410
  errorCallbackURL?: string | undefined;
7743
9411
  }>;
9412
+ metadata: {
9413
+ openapi: {
9414
+ description: string;
9415
+ responses: {
9416
+ 200: {
9417
+ description: string;
9418
+ content: {
9419
+ "application/json": {
9420
+ schema: {
9421
+ type: "object";
9422
+ properties: {
9423
+ url: {
9424
+ type: string;
9425
+ };
9426
+ redirect: {
9427
+ type: string;
9428
+ };
9429
+ };
9430
+ };
9431
+ };
9432
+ };
9433
+ };
9434
+ };
9435
+ };
9436
+ };
7744
9437
  }>]>(...ctx: C): Promise<C extends [{
7745
9438
  asResponse: true;
7746
9439
  }] ? Response : {
@@ -7774,6 +9467,31 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
7774
9467
  callbackURL?: string | undefined;
7775
9468
  errorCallbackURL?: string | undefined;
7776
9469
  }>;
9470
+ metadata: {
9471
+ openapi: {
9472
+ description: string;
9473
+ responses: {
9474
+ 200: {
9475
+ description: string;
9476
+ content: {
9477
+ "application/json": {
9478
+ schema: {
9479
+ type: "object";
9480
+ properties: {
9481
+ url: {
9482
+ type: string;
9483
+ };
9484
+ redirect: {
9485
+ type: string;
9486
+ };
9487
+ };
9488
+ };
9489
+ };
9490
+ };
9491
+ };
9492
+ };
9493
+ };
9494
+ };
7777
9495
  };
7778
9496
  method: better_call.Method | better_call.Method[];
7779
9497
  headers: Headers;
@@ -7794,6 +9512,28 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
7794
9512
  code?: string | undefined;
7795
9513
  error?: string | undefined;
7796
9514
  }>;
9515
+ metadata: {
9516
+ openapi: {
9517
+ description: string;
9518
+ responses: {
9519
+ 200: {
9520
+ description: string;
9521
+ content: {
9522
+ "application/json": {
9523
+ schema: {
9524
+ type: "object";
9525
+ properties: {
9526
+ url: {
9527
+ type: string;
9528
+ };
9529
+ };
9530
+ };
9531
+ };
9532
+ };
9533
+ };
9534
+ };
9535
+ };
9536
+ };
7797
9537
  }>]>(...ctx: C): Promise<C extends [{
7798
9538
  asResponse: true;
7799
9539
  }] ? Response : void>;
@@ -7813,6 +9553,28 @@ declare const genericOAuth: (options: GenericOAuthOptions) => {
7813
9553
  code?: string | undefined;
7814
9554
  error?: string | undefined;
7815
9555
  }>;
9556
+ metadata: {
9557
+ openapi: {
9558
+ description: string;
9559
+ responses: {
9560
+ 200: {
9561
+ description: string;
9562
+ content: {
9563
+ "application/json": {
9564
+ schema: {
9565
+ type: "object";
9566
+ properties: {
9567
+ url: {
9568
+ type: string;
9569
+ };
9570
+ };
9571
+ };
9572
+ };
9573
+ };
9574
+ };
9575
+ };
9576
+ };
9577
+ };
7816
9578
  };
7817
9579
  method: better_call.Method | better_call.Method[];
7818
9580
  headers: Headers;
@@ -7917,6 +9679,51 @@ declare const jwt: (options?: JwtOptions) => {
7917
9679
  getJwks: {
7918
9680
  <C extends [(better_call.Context<"/jwks", {
7919
9681
  method: "GET";
9682
+ metadata: {
9683
+ openapi: {
9684
+ description: string;
9685
+ responses: {
9686
+ 200: {
9687
+ description: string;
9688
+ content: {
9689
+ "application/json": {
9690
+ schema: {
9691
+ type: "object";
9692
+ properties: {
9693
+ keys: {
9694
+ type: string;
9695
+ items: {
9696
+ type: string;
9697
+ properties: {
9698
+ kid: {
9699
+ type: string;
9700
+ };
9701
+ kty: {
9702
+ type: string;
9703
+ };
9704
+ use: {
9705
+ type: string;
9706
+ };
9707
+ alg: {
9708
+ type: string;
9709
+ };
9710
+ n: {
9711
+ type: string;
9712
+ };
9713
+ e: {
9714
+ type: string;
9715
+ };
9716
+ };
9717
+ };
9718
+ };
9719
+ };
9720
+ };
9721
+ };
9722
+ };
9723
+ };
9724
+ };
9725
+ };
9726
+ };
7920
9727
  }> | undefined)?]>(...ctx: C): Promise<C extends [{
7921
9728
  asResponse: true;
7922
9729
  }] ? Response : {
@@ -7925,8 +9732,53 @@ declare const jwt: (options?: JwtOptions) => {
7925
9732
  path: "/jwks";
7926
9733
  options: {
7927
9734
  method: "GET";
7928
- };
7929
- method: better_call.Method | better_call.Method[];
9735
+ metadata: {
9736
+ openapi: {
9737
+ description: string;
9738
+ responses: {
9739
+ 200: {
9740
+ description: string;
9741
+ content: {
9742
+ "application/json": {
9743
+ schema: {
9744
+ type: "object";
9745
+ properties: {
9746
+ keys: {
9747
+ type: string;
9748
+ items: {
9749
+ type: string;
9750
+ properties: {
9751
+ kid: {
9752
+ type: string;
9753
+ };
9754
+ kty: {
9755
+ type: string;
9756
+ };
9757
+ use: {
9758
+ type: string;
9759
+ };
9760
+ alg: {
9761
+ type: string;
9762
+ };
9763
+ n: {
9764
+ type: string;
9765
+ };
9766
+ e: {
9767
+ type: string;
9768
+ };
9769
+ };
9770
+ };
9771
+ };
9772
+ };
9773
+ };
9774
+ };
9775
+ };
9776
+ };
9777
+ };
9778
+ };
9779
+ };
9780
+ };
9781
+ method: better_call.Method | better_call.Method[];
7930
9782
  headers: Headers;
7931
9783
  };
7932
9784
  getToken: {
@@ -7956,6 +9808,28 @@ declare const jwt: (options?: JwtOptions) => {
7956
9808
  };
7957
9809
  };
7958
9810
  }>, better_call.EndpointOptions>[];
9811
+ metadata: {
9812
+ openapi: {
9813
+ description: string;
9814
+ responses: {
9815
+ 200: {
9816
+ description: string;
9817
+ content: {
9818
+ "application/json": {
9819
+ schema: {
9820
+ type: "object";
9821
+ properties: {
9822
+ token: {
9823
+ type: string;
9824
+ };
9825
+ };
9826
+ };
9827
+ };
9828
+ };
9829
+ };
9830
+ };
9831
+ };
9832
+ };
7959
9833
  }>]>(...ctx: C): Promise<C extends [{
7960
9834
  asResponse: true;
7961
9835
  }] ? Response : {
@@ -7988,6 +9862,28 @@ declare const jwt: (options?: JwtOptions) => {
7988
9862
  };
7989
9863
  };
7990
9864
  }>, better_call.EndpointOptions>[];
9865
+ metadata: {
9866
+ openapi: {
9867
+ description: string;
9868
+ responses: {
9869
+ 200: {
9870
+ description: string;
9871
+ content: {
9872
+ "application/json": {
9873
+ schema: {
9874
+ type: "object";
9875
+ properties: {
9876
+ token: {
9877
+ type: string;
9878
+ };
9879
+ };
9880
+ };
9881
+ };
9882
+ };
9883
+ };
9884
+ };
9885
+ };
9886
+ };
7991
9887
  };
7992
9888
  method: better_call.Method | better_call.Method[];
7993
9889
  headers: Headers;
@@ -8076,6 +9972,28 @@ declare const multiSession: (options?: MultiSessionConfig) => {
8076
9972
  };
8077
9973
  };
8078
9974
  }>, better_call.EndpointOptions>[];
9975
+ metadata: {
9976
+ openapi: {
9977
+ description: string;
9978
+ responses: {
9979
+ 200: {
9980
+ description: string;
9981
+ content: {
9982
+ "application/json": {
9983
+ schema: {
9984
+ type: "object";
9985
+ properties: {
9986
+ session: {
9987
+ $ref: string;
9988
+ };
9989
+ };
9990
+ };
9991
+ };
9992
+ };
9993
+ };
9994
+ };
9995
+ };
9996
+ };
8079
9997
  }>]>(...ctx: C): Promise<C extends [{
8080
9998
  asResponse: true;
8081
9999
  }] ? Response : {
@@ -8116,6 +10034,28 @@ declare const multiSession: (options?: MultiSessionConfig) => {
8116
10034
  };
8117
10035
  };
8118
10036
  }>, better_call.EndpointOptions>[];
10037
+ metadata: {
10038
+ openapi: {
10039
+ description: string;
10040
+ responses: {
10041
+ 200: {
10042
+ description: string;
10043
+ content: {
10044
+ "application/json": {
10045
+ schema: {
10046
+ type: "object";
10047
+ properties: {
10048
+ session: {
10049
+ $ref: string;
10050
+ };
10051
+ };
10052
+ };
10053
+ };
10054
+ };
10055
+ };
10056
+ };
10057
+ };
10058
+ };
8119
10059
  };
8120
10060
  method: better_call.Method | better_call.Method[];
8121
10061
  headers: Headers;
@@ -8154,6 +10094,28 @@ declare const multiSession: (options?: MultiSessionConfig) => {
8154
10094
  };
8155
10095
  };
8156
10096
  }>, better_call.EndpointOptions>[];
10097
+ metadata: {
10098
+ openapi: {
10099
+ description: string;
10100
+ responses: {
10101
+ 200: {
10102
+ description: string;
10103
+ content: {
10104
+ "application/json": {
10105
+ schema: {
10106
+ type: "object";
10107
+ properties: {
10108
+ success: {
10109
+ type: string;
10110
+ };
10111
+ };
10112
+ };
10113
+ };
10114
+ };
10115
+ };
10116
+ };
10117
+ };
10118
+ };
8157
10119
  }>]>(...ctx: C): Promise<C extends [{
8158
10120
  asResponse: true;
8159
10121
  }] ? Response : {
@@ -8193,6 +10155,28 @@ declare const multiSession: (options?: MultiSessionConfig) => {
8193
10155
  };
8194
10156
  };
8195
10157
  }>, better_call.EndpointOptions>[];
10158
+ metadata: {
10159
+ openapi: {
10160
+ description: string;
10161
+ responses: {
10162
+ 200: {
10163
+ description: string;
10164
+ content: {
10165
+ "application/json": {
10166
+ schema: {
10167
+ type: "object";
10168
+ properties: {
10169
+ success: {
10170
+ type: string;
10171
+ };
10172
+ };
10173
+ };
10174
+ };
10175
+ };
10176
+ };
10177
+ };
10178
+ };
10179
+ };
8196
10180
  };
8197
10181
  method: better_call.Method | better_call.Method[];
8198
10182
  headers: Headers;
@@ -8256,6 +10240,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8256
10240
  type: "sign-in" | "forget-password" | "email-verification";
8257
10241
  email: string;
8258
10242
  }>;
10243
+ metadata: {
10244
+ openapi: {
10245
+ description: string;
10246
+ responses: {
10247
+ 200: {
10248
+ description: string;
10249
+ content: {
10250
+ "application/json": {
10251
+ schema: {
10252
+ type: "object";
10253
+ properties: {
10254
+ success: {
10255
+ type: string;
10256
+ };
10257
+ };
10258
+ };
10259
+ };
10260
+ };
10261
+ };
10262
+ };
10263
+ };
10264
+ };
8259
10265
  }>]>(...ctx: C): Promise<C extends [{
8260
10266
  asResponse: true;
8261
10267
  }] ? Response : {
@@ -8274,6 +10280,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8274
10280
  type: "sign-in" | "forget-password" | "email-verification";
8275
10281
  email: string;
8276
10282
  }>;
10283
+ metadata: {
10284
+ openapi: {
10285
+ description: string;
10286
+ responses: {
10287
+ 200: {
10288
+ description: string;
10289
+ content: {
10290
+ "application/json": {
10291
+ schema: {
10292
+ type: "object";
10293
+ properties: {
10294
+ success: {
10295
+ type: string;
10296
+ };
10297
+ };
10298
+ };
10299
+ };
10300
+ };
10301
+ };
10302
+ };
10303
+ };
10304
+ };
8277
10305
  };
8278
10306
  method: better_call.Method | better_call.Method[];
8279
10307
  headers: Headers;
@@ -8293,6 +10321,21 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8293
10321
  }>;
8294
10322
  metadata: {
8295
10323
  SERVER_ONLY: true;
10324
+ openapi: {
10325
+ description: string;
10326
+ responses: {
10327
+ 200: {
10328
+ description: string;
10329
+ content: {
10330
+ "application/json": {
10331
+ schema: {
10332
+ type: "string";
10333
+ };
10334
+ };
10335
+ };
10336
+ };
10337
+ };
10338
+ };
8296
10339
  };
8297
10340
  }>]>(...ctx: C): Promise<C extends [{
8298
10341
  asResponse: true;
@@ -8312,6 +10355,21 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8312
10355
  }>;
8313
10356
  metadata: {
8314
10357
  SERVER_ONLY: true;
10358
+ openapi: {
10359
+ description: string;
10360
+ responses: {
10361
+ 200: {
10362
+ description: string;
10363
+ content: {
10364
+ "application/json": {
10365
+ schema: {
10366
+ type: "string";
10367
+ };
10368
+ };
10369
+ };
10370
+ };
10371
+ };
10372
+ };
8315
10373
  };
8316
10374
  };
8317
10375
  method: better_call.Method | better_call.Method[];
@@ -8332,6 +10390,26 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8332
10390
  }>;
8333
10391
  metadata: {
8334
10392
  SERVER_ONLY: true;
10393
+ openapi: {
10394
+ description: string;
10395
+ responses: {
10396
+ 200: {
10397
+ description: string;
10398
+ content: {
10399
+ "application/json": {
10400
+ schema: {
10401
+ type: "object";
10402
+ properties: {
10403
+ otp: {
10404
+ type: string;
10405
+ };
10406
+ };
10407
+ };
10408
+ };
10409
+ };
10410
+ };
10411
+ };
10412
+ };
8335
10413
  };
8336
10414
  }>]>(...ctx: C): Promise<C extends [{
8337
10415
  asResponse: true;
@@ -8355,6 +10433,26 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8355
10433
  }>;
8356
10434
  metadata: {
8357
10435
  SERVER_ONLY: true;
10436
+ openapi: {
10437
+ description: string;
10438
+ responses: {
10439
+ 200: {
10440
+ description: string;
10441
+ content: {
10442
+ "application/json": {
10443
+ schema: {
10444
+ type: "object";
10445
+ properties: {
10446
+ otp: {
10447
+ type: string;
10448
+ };
10449
+ };
10450
+ };
10451
+ };
10452
+ };
10453
+ };
10454
+ };
10455
+ };
8358
10456
  };
8359
10457
  };
8360
10458
  method: better_call.Method | better_call.Method[];
@@ -8373,6 +10471,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8373
10471
  email: string;
8374
10472
  otp: string;
8375
10473
  }>;
10474
+ metadata: {
10475
+ openapi: {
10476
+ description: string;
10477
+ responses: {
10478
+ 200: {
10479
+ description: string;
10480
+ content: {
10481
+ "application/json": {
10482
+ schema: {
10483
+ type: "object";
10484
+ properties: {
10485
+ user: {
10486
+ $ref: string;
10487
+ };
10488
+ };
10489
+ };
10490
+ };
10491
+ };
10492
+ };
10493
+ };
10494
+ };
10495
+ };
8376
10496
  }>]>(...ctx: C): Promise<C extends [{
8377
10497
  asResponse: true;
8378
10498
  }] ? Response : {
@@ -8391,6 +10511,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8391
10511
  email: string;
8392
10512
  otp: string;
8393
10513
  }>;
10514
+ metadata: {
10515
+ openapi: {
10516
+ description: string;
10517
+ responses: {
10518
+ 200: {
10519
+ description: string;
10520
+ content: {
10521
+ "application/json": {
10522
+ schema: {
10523
+ type: "object";
10524
+ properties: {
10525
+ user: {
10526
+ $ref: string;
10527
+ };
10528
+ };
10529
+ };
10530
+ };
10531
+ };
10532
+ };
10533
+ };
10534
+ };
10535
+ };
8394
10536
  };
8395
10537
  method: better_call.Method | better_call.Method[];
8396
10538
  headers: Headers;
@@ -8408,6 +10550,31 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8408
10550
  email: string;
8409
10551
  otp: string;
8410
10552
  }>;
10553
+ metadata: {
10554
+ openapi: {
10555
+ description: string;
10556
+ responses: {
10557
+ 200: {
10558
+ description: string;
10559
+ content: {
10560
+ "application/json": {
10561
+ schema: {
10562
+ type: "object";
10563
+ properties: {
10564
+ user: {
10565
+ $ref: string;
10566
+ };
10567
+ session: {
10568
+ $ref: string;
10569
+ };
10570
+ };
10571
+ };
10572
+ };
10573
+ };
10574
+ };
10575
+ };
10576
+ };
10577
+ };
8411
10578
  }>]>(...ctx: C): Promise<C extends [{
8412
10579
  asResponse: true;
8413
10580
  }] ? Response : {
@@ -8481,11 +10648,36 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8481
10648
  email: string;
8482
10649
  otp: string;
8483
10650
  }>;
10651
+ metadata: {
10652
+ openapi: {
10653
+ description: string;
10654
+ responses: {
10655
+ 200: {
10656
+ description: string;
10657
+ content: {
10658
+ "application/json": {
10659
+ schema: {
10660
+ type: "object";
10661
+ properties: {
10662
+ user: {
10663
+ $ref: string;
10664
+ };
10665
+ session: {
10666
+ $ref: string;
10667
+ };
10668
+ };
10669
+ };
10670
+ };
10671
+ };
10672
+ };
10673
+ };
10674
+ };
10675
+ };
8484
10676
  };
8485
10677
  method: better_call.Method | better_call.Method[];
8486
10678
  headers: Headers;
8487
10679
  };
8488
- forgetEmailOTP: {
10680
+ forgetPasswordEmailOTP: {
8489
10681
  <C extends [better_call.Context<"/forget-password/email-otp", {
8490
10682
  method: "POST";
8491
10683
  body: z.ZodObject<{
@@ -8495,6 +10687,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8495
10687
  }, {
8496
10688
  email: string;
8497
10689
  }>;
10690
+ metadata: {
10691
+ openapi: {
10692
+ description: string;
10693
+ responses: {
10694
+ 200: {
10695
+ description: string;
10696
+ content: {
10697
+ "application/json": {
10698
+ schema: {
10699
+ type: "object";
10700
+ properties: {
10701
+ success: {
10702
+ type: string;
10703
+ };
10704
+ };
10705
+ };
10706
+ };
10707
+ };
10708
+ };
10709
+ };
10710
+ };
10711
+ };
8498
10712
  }>]>(...ctx: C): Promise<C extends [{
8499
10713
  asResponse: true;
8500
10714
  }] ? Response : {
@@ -8510,6 +10724,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8510
10724
  }, {
8511
10725
  email: string;
8512
10726
  }>;
10727
+ metadata: {
10728
+ openapi: {
10729
+ description: string;
10730
+ responses: {
10731
+ 200: {
10732
+ description: string;
10733
+ content: {
10734
+ "application/json": {
10735
+ schema: {
10736
+ type: "object";
10737
+ properties: {
10738
+ success: {
10739
+ type: string;
10740
+ };
10741
+ };
10742
+ };
10743
+ };
10744
+ };
10745
+ };
10746
+ };
10747
+ };
10748
+ };
8513
10749
  };
8514
10750
  method: better_call.Method | better_call.Method[];
8515
10751
  headers: Headers;
@@ -8530,6 +10766,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8530
10766
  email: string;
8531
10767
  otp: string;
8532
10768
  }>;
10769
+ metadata: {
10770
+ openapi: {
10771
+ description: string;
10772
+ responses: {
10773
+ 200: {
10774
+ description: string;
10775
+ content: {
10776
+ "application/json": {
10777
+ schema: {
10778
+ type: "object";
10779
+ properties: {
10780
+ success: {
10781
+ type: string;
10782
+ };
10783
+ };
10784
+ };
10785
+ };
10786
+ };
10787
+ };
10788
+ };
10789
+ };
10790
+ };
8533
10791
  }>]>(...ctx: C): Promise<C extends [{
8534
10792
  asResponse: true;
8535
10793
  }] ? Response : {
@@ -8551,6 +10809,28 @@ declare const emailOTP: (options: EmailOTPOptions) => {
8551
10809
  email: string;
8552
10810
  otp: string;
8553
10811
  }>;
10812
+ metadata: {
10813
+ openapi: {
10814
+ description: string;
10815
+ responses: {
10816
+ 200: {
10817
+ description: string;
10818
+ content: {
10819
+ "application/json": {
10820
+ schema: {
10821
+ type: "object";
10822
+ properties: {
10823
+ success: {
10824
+ type: string;
10825
+ };
10826
+ };
10827
+ };
10828
+ };
10829
+ };
10830
+ };
10831
+ };
10832
+ };
10833
+ };
8554
10834
  };
8555
10835
  method: better_call.Method | better_call.Method[];
8556
10836
  headers: Headers;