@convex-dev/better-auth 0.8.6 → 0.8.7

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 (228) hide show
  1. package/dist/commonjs/client/adapterUtils.js +1 -1
  2. package/dist/commonjs/client/adapterUtils.js.map +1 -1
  3. package/dist/commonjs/client/index.d.ts.map +1 -1
  4. package/dist/commonjs/client/index.js +2 -2
  5. package/dist/commonjs/client/index.js.map +1 -1
  6. package/dist/commonjs/plugins/cross-domain/index.d.ts +4 -3
  7. package/dist/commonjs/plugins/cross-domain/index.d.ts.map +1 -1
  8. package/dist/commonjs/plugins/cross-domain/index.js +20 -13
  9. package/dist/commonjs/plugins/cross-domain/index.js.map +1 -1
  10. package/dist/commonjs/react/index.d.ts +28 -7
  11. package/dist/commonjs/react/index.d.ts.map +1 -1
  12. package/dist/commonjs/react/index.js +59 -11
  13. package/dist/commonjs/react/index.js.map +1 -1
  14. package/dist/commonjs/{src/react/index.d.ts → react/old-index.d.ts} +1 -1
  15. package/dist/commonjs/react/old-index.d.ts.map +1 -0
  16. package/dist/commonjs/{src/react/index.js → react/old-index.js} +1 -1
  17. package/dist/commonjs/react/old-index.js.map +1 -0
  18. package/dist/esm/client/adapterUtils.js +1 -1
  19. package/dist/esm/client/adapterUtils.js.map +1 -1
  20. package/dist/esm/client/index.d.ts.map +1 -1
  21. package/dist/esm/client/index.js +2 -2
  22. package/dist/esm/client/index.js.map +1 -1
  23. package/dist/esm/plugins/cross-domain/index.d.ts +4 -3
  24. package/dist/esm/plugins/cross-domain/index.d.ts.map +1 -1
  25. package/dist/esm/plugins/cross-domain/index.js +20 -13
  26. package/dist/esm/plugins/cross-domain/index.js.map +1 -1
  27. package/dist/esm/react/index.d.ts +28 -7
  28. package/dist/esm/react/index.d.ts.map +1 -1
  29. package/dist/esm/react/index.js +59 -11
  30. package/dist/esm/react/index.js.map +1 -1
  31. package/dist/esm/{src/react/index.d.ts → react/old-index.d.ts} +1 -1
  32. package/dist/esm/react/old-index.d.ts.map +1 -0
  33. package/dist/esm/{src/react/index.js → react/old-index.js} +1 -1
  34. package/dist/esm/react/old-index.js.map +1 -0
  35. package/package.json +1 -1
  36. package/src/client/adapterUtils.ts +1 -1
  37. package/src/client/index.ts +2 -2
  38. package/src/plugins/cross-domain/index.ts +33 -20
  39. package/src/react/index.tsx +110 -28
  40. package/dist/commonjs/client/createSchemaInternal.d.ts +0 -24
  41. package/dist/commonjs/client/createSchemaInternal.d.ts.map +0 -1
  42. package/dist/commonjs/client/createSchemaInternal.js +0 -105
  43. package/dist/commonjs/client/createSchemaInternal.js.map +0 -1
  44. package/dist/commonjs/component/lib.d.ts +0 -432
  45. package/dist/commonjs/component/lib.d.ts.map +0 -1
  46. package/dist/commonjs/component/lib.js +0 -570
  47. package/dist/commonjs/component/lib.js.map +0 -1
  48. package/dist/commonjs/component/util.d.ts +0 -1406
  49. package/dist/commonjs/component/util.d.ts.map +0 -1
  50. package/dist/commonjs/component/util.js +0 -4
  51. package/dist/commonjs/component/util.js.map +0 -1
  52. package/dist/commonjs/src/auth.d.ts +0 -3085
  53. package/dist/commonjs/src/auth.d.ts.map +0 -1
  54. package/dist/commonjs/src/auth.js +0 -72
  55. package/dist/commonjs/src/auth.js.map +0 -1
  56. package/dist/commonjs/src/client/adapter.d.ts +0 -18
  57. package/dist/commonjs/src/client/adapter.d.ts.map +0 -1
  58. package/dist/commonjs/src/client/adapter.js +0 -211
  59. package/dist/commonjs/src/client/adapter.js.map +0 -1
  60. package/dist/commonjs/src/client/createSchema.d.ts +0 -25
  61. package/dist/commonjs/src/client/createSchema.d.ts.map +0 -1
  62. package/dist/commonjs/src/client/createSchema.js +0 -103
  63. package/dist/commonjs/src/client/createSchema.js.map +0 -1
  64. package/dist/commonjs/src/client/index.d.ts +0 -3310
  65. package/dist/commonjs/src/client/index.d.ts.map +0 -1
  66. package/dist/commonjs/src/client/index.js +0 -377
  67. package/dist/commonjs/src/client/index.js.map +0 -1
  68. package/dist/commonjs/src/client/plugins/index.d.ts +0 -3
  69. package/dist/commonjs/src/client/plugins/index.d.ts.map +0 -1
  70. package/dist/commonjs/src/client/plugins/index.js +0 -3
  71. package/dist/commonjs/src/client/plugins/index.js.map +0 -1
  72. package/dist/commonjs/src/component/_generated/api.d.ts +0 -12
  73. package/dist/commonjs/src/component/_generated/api.d.ts.map +0 -1
  74. package/dist/commonjs/src/component/_generated/api.js +0 -22
  75. package/dist/commonjs/src/component/_generated/api.js.map +0 -1
  76. package/dist/commonjs/src/component/_generated/server.d.ts +0 -64
  77. package/dist/commonjs/src/component/_generated/server.d.ts.map +0 -1
  78. package/dist/commonjs/src/component/_generated/server.js +0 -74
  79. package/dist/commonjs/src/component/_generated/server.js.map +0 -1
  80. package/dist/commonjs/src/component/adapter.d.ts +0 -355
  81. package/dist/commonjs/src/component/adapter.d.ts.map +0 -1
  82. package/dist/commonjs/src/component/adapter.js +0 -573
  83. package/dist/commonjs/src/component/adapter.js.map +0 -1
  84. package/dist/commonjs/src/component/adapterTest.d.ts +0 -18
  85. package/dist/commonjs/src/component/adapterTest.d.ts.map +0 -1
  86. package/dist/commonjs/src/component/adapterTest.js +0 -75
  87. package/dist/commonjs/src/component/adapterTest.js.map +0 -1
  88. package/dist/commonjs/src/component/convex.config.d.ts +0 -3
  89. package/dist/commonjs/src/component/convex.config.d.ts.map +0 -1
  90. package/dist/commonjs/src/component/convex.config.js +0 -4
  91. package/dist/commonjs/src/component/convex.config.js.map +0 -1
  92. package/dist/commonjs/src/component/schema.d.ts +0 -562
  93. package/dist/commonjs/src/component/schema.d.ts.map +0 -1
  94. package/dist/commonjs/src/component/schema.js +0 -217
  95. package/dist/commonjs/src/component/schema.js.map +0 -1
  96. package/dist/commonjs/src/nextjs/index.d.ts +0 -10
  97. package/dist/commonjs/src/nextjs/index.d.ts.map +0 -1
  98. package/dist/commonjs/src/nextjs/index.js +0 -43
  99. package/dist/commonjs/src/nextjs/index.js.map +0 -1
  100. package/dist/commonjs/src/plugins/convex/client.d.ts +0 -9
  101. package/dist/commonjs/src/plugins/convex/client.d.ts.map +0 -1
  102. package/dist/commonjs/src/plugins/convex/client.js +0 -7
  103. package/dist/commonjs/src/plugins/convex/client.js.map +0 -1
  104. package/dist/commonjs/src/plugins/convex/index.d.ts +0 -415
  105. package/dist/commonjs/src/plugins/convex/index.d.ts.map +0 -1
  106. package/dist/commonjs/src/plugins/convex/index.js +0 -354
  107. package/dist/commonjs/src/plugins/convex/index.js.map +0 -1
  108. package/dist/commonjs/src/plugins/cross-domain/client.d.ts +0 -132
  109. package/dist/commonjs/src/plugins/cross-domain/client.d.ts.map +0 -1
  110. package/dist/commonjs/src/plugins/cross-domain/client.js +0 -176
  111. package/dist/commonjs/src/plugins/cross-domain/client.js.map +0 -1
  112. package/dist/commonjs/src/plugins/cross-domain/index.d.ts +0 -83
  113. package/dist/commonjs/src/plugins/cross-domain/index.d.ts.map +0 -1
  114. package/dist/commonjs/src/plugins/cross-domain/index.js +0 -153
  115. package/dist/commonjs/src/plugins/cross-domain/index.js.map +0 -1
  116. package/dist/commonjs/src/plugins/index.d.ts +0 -3
  117. package/dist/commonjs/src/plugins/index.d.ts.map +0 -1
  118. package/dist/commonjs/src/plugins/index.js +0 -3
  119. package/dist/commonjs/src/plugins/index.js.map +0 -1
  120. package/dist/commonjs/src/react/client.d.ts +0 -31
  121. package/dist/commonjs/src/react/client.d.ts.map +0 -1
  122. package/dist/commonjs/src/react/client.js +0 -96
  123. package/dist/commonjs/src/react/client.js.map +0 -1
  124. package/dist/commonjs/src/react/index.d.ts.map +0 -1
  125. package/dist/commonjs/src/react/index.js.map +0 -1
  126. package/dist/commonjs/src/react-start/index.d.ts +0 -45
  127. package/dist/commonjs/src/react-start/index.d.ts.map +0 -1
  128. package/dist/commonjs/src/react-start/index.js +0 -60
  129. package/dist/commonjs/src/react-start/index.js.map +0 -1
  130. package/dist/commonjs/src/utils/index.d.ts +0 -9
  131. package/dist/commonjs/src/utils/index.d.ts.map +0 -1
  132. package/dist/commonjs/src/utils/index.js +0 -35
  133. package/dist/commonjs/src/utils/index.js.map +0 -1
  134. package/dist/esm/client/createSchemaInternal.d.ts +0 -24
  135. package/dist/esm/client/createSchemaInternal.d.ts.map +0 -1
  136. package/dist/esm/client/createSchemaInternal.js +0 -105
  137. package/dist/esm/client/createSchemaInternal.js.map +0 -1
  138. package/dist/esm/component/lib.d.ts +0 -432
  139. package/dist/esm/component/lib.d.ts.map +0 -1
  140. package/dist/esm/component/lib.js +0 -570
  141. package/dist/esm/component/lib.js.map +0 -1
  142. package/dist/esm/component/util.d.ts +0 -1406
  143. package/dist/esm/component/util.d.ts.map +0 -1
  144. package/dist/esm/component/util.js +0 -4
  145. package/dist/esm/component/util.js.map +0 -1
  146. package/dist/esm/src/auth.d.ts +0 -3085
  147. package/dist/esm/src/auth.d.ts.map +0 -1
  148. package/dist/esm/src/auth.js +0 -72
  149. package/dist/esm/src/auth.js.map +0 -1
  150. package/dist/esm/src/client/adapter.d.ts +0 -18
  151. package/dist/esm/src/client/adapter.d.ts.map +0 -1
  152. package/dist/esm/src/client/adapter.js +0 -211
  153. package/dist/esm/src/client/adapter.js.map +0 -1
  154. package/dist/esm/src/client/createSchema.d.ts +0 -25
  155. package/dist/esm/src/client/createSchema.d.ts.map +0 -1
  156. package/dist/esm/src/client/createSchema.js +0 -103
  157. package/dist/esm/src/client/createSchema.js.map +0 -1
  158. package/dist/esm/src/client/index.d.ts +0 -3310
  159. package/dist/esm/src/client/index.d.ts.map +0 -1
  160. package/dist/esm/src/client/index.js +0 -377
  161. package/dist/esm/src/client/index.js.map +0 -1
  162. package/dist/esm/src/client/plugins/index.d.ts +0 -3
  163. package/dist/esm/src/client/plugins/index.d.ts.map +0 -1
  164. package/dist/esm/src/client/plugins/index.js +0 -3
  165. package/dist/esm/src/client/plugins/index.js.map +0 -1
  166. package/dist/esm/src/component/_generated/api.d.ts +0 -12
  167. package/dist/esm/src/component/_generated/api.d.ts.map +0 -1
  168. package/dist/esm/src/component/_generated/api.js +0 -22
  169. package/dist/esm/src/component/_generated/api.js.map +0 -1
  170. package/dist/esm/src/component/_generated/server.d.ts +0 -64
  171. package/dist/esm/src/component/_generated/server.d.ts.map +0 -1
  172. package/dist/esm/src/component/_generated/server.js +0 -74
  173. package/dist/esm/src/component/_generated/server.js.map +0 -1
  174. package/dist/esm/src/component/adapter.d.ts +0 -355
  175. package/dist/esm/src/component/adapter.d.ts.map +0 -1
  176. package/dist/esm/src/component/adapter.js +0 -573
  177. package/dist/esm/src/component/adapter.js.map +0 -1
  178. package/dist/esm/src/component/adapterTest.d.ts +0 -18
  179. package/dist/esm/src/component/adapterTest.d.ts.map +0 -1
  180. package/dist/esm/src/component/adapterTest.js +0 -75
  181. package/dist/esm/src/component/adapterTest.js.map +0 -1
  182. package/dist/esm/src/component/convex.config.d.ts +0 -3
  183. package/dist/esm/src/component/convex.config.d.ts.map +0 -1
  184. package/dist/esm/src/component/convex.config.js +0 -4
  185. package/dist/esm/src/component/convex.config.js.map +0 -1
  186. package/dist/esm/src/component/schema.d.ts +0 -562
  187. package/dist/esm/src/component/schema.d.ts.map +0 -1
  188. package/dist/esm/src/component/schema.js +0 -217
  189. package/dist/esm/src/component/schema.js.map +0 -1
  190. package/dist/esm/src/nextjs/index.d.ts +0 -10
  191. package/dist/esm/src/nextjs/index.d.ts.map +0 -1
  192. package/dist/esm/src/nextjs/index.js +0 -43
  193. package/dist/esm/src/nextjs/index.js.map +0 -1
  194. package/dist/esm/src/plugins/convex/client.d.ts +0 -9
  195. package/dist/esm/src/plugins/convex/client.d.ts.map +0 -1
  196. package/dist/esm/src/plugins/convex/client.js +0 -7
  197. package/dist/esm/src/plugins/convex/client.js.map +0 -1
  198. package/dist/esm/src/plugins/convex/index.d.ts +0 -415
  199. package/dist/esm/src/plugins/convex/index.d.ts.map +0 -1
  200. package/dist/esm/src/plugins/convex/index.js +0 -354
  201. package/dist/esm/src/plugins/convex/index.js.map +0 -1
  202. package/dist/esm/src/plugins/cross-domain/client.d.ts +0 -132
  203. package/dist/esm/src/plugins/cross-domain/client.d.ts.map +0 -1
  204. package/dist/esm/src/plugins/cross-domain/client.js +0 -176
  205. package/dist/esm/src/plugins/cross-domain/client.js.map +0 -1
  206. package/dist/esm/src/plugins/cross-domain/index.d.ts +0 -83
  207. package/dist/esm/src/plugins/cross-domain/index.d.ts.map +0 -1
  208. package/dist/esm/src/plugins/cross-domain/index.js +0 -153
  209. package/dist/esm/src/plugins/cross-domain/index.js.map +0 -1
  210. package/dist/esm/src/plugins/index.d.ts +0 -3
  211. package/dist/esm/src/plugins/index.d.ts.map +0 -1
  212. package/dist/esm/src/plugins/index.js +0 -3
  213. package/dist/esm/src/plugins/index.js.map +0 -1
  214. package/dist/esm/src/react/client.d.ts +0 -31
  215. package/dist/esm/src/react/client.d.ts.map +0 -1
  216. package/dist/esm/src/react/client.js +0 -96
  217. package/dist/esm/src/react/client.js.map +0 -1
  218. package/dist/esm/src/react/index.d.ts.map +0 -1
  219. package/dist/esm/src/react/index.js.map +0 -1
  220. package/dist/esm/src/react-start/index.d.ts +0 -45
  221. package/dist/esm/src/react-start/index.d.ts.map +0 -1
  222. package/dist/esm/src/react-start/index.js +0 -60
  223. package/dist/esm/src/react-start/index.js.map +0 -1
  224. package/dist/esm/src/utils/index.d.ts +0 -9
  225. package/dist/esm/src/utils/index.d.ts.map +0 -1
  226. package/dist/esm/src/utils/index.js +0 -35
  227. package/dist/esm/src/utils/index.js.map +0 -1
  228. package/src/react/client.tsx +0 -178
@@ -1,415 +0,0 @@
1
- import { BetterAuthOptions } from "better-auth/types";
2
- import { z } from "zod";
3
- export declare const JWT_COOKIE_NAME = "convex_jwt";
4
- export declare const convex: <O extends BetterAuthOptions>(opts?: {
5
- jwtExpirationSeconds?: number;
6
- deleteExpiredSessionsOnLogin?: boolean;
7
- options?: O;
8
- }) => {
9
- id: "convex";
10
- init: ({ options }: import("better-auth").AuthContext) => void;
11
- hooks: {
12
- before: ({
13
- matcher(context: import("better-auth").HookEndpointContext): boolean;
14
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
15
- context: {
16
- headers: Headers;
17
- };
18
- } | undefined>;
19
- } | {
20
- matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
21
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
22
- context: import("better-call").MiddlewareContext<import("better-call").MiddlewareOptions, import("better-auth").AuthContext & {
23
- returned?: unknown;
24
- responseHeaders?: Headers;
25
- }>;
26
- }>;
27
- })[];
28
- after: ({
29
- matcher(): true;
30
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<Response | {
31
- redirect: boolean;
32
- url: string;
33
- } | undefined>;
34
- } | {
35
- matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
36
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
37
- })[];
38
- };
39
- endpoints: {
40
- getSession: {
41
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
42
- body?: undefined;
43
- } & {
44
- method?: "GET" | undefined;
45
- } & {
46
- query?: {
47
- disableCookieCache?: string | boolean | undefined;
48
- disableRefresh?: boolean | undefined;
49
- } | undefined;
50
- } & {
51
- params?: Record<string, any>;
52
- } & {
53
- request?: Request;
54
- } & {
55
- headers: HeadersInit;
56
- } & {
57
- asResponse?: boolean;
58
- returnHeaders?: boolean;
59
- use?: import("better-call").Middleware[];
60
- path?: string;
61
- } & {
62
- asResponse?: AsResponse | undefined;
63
- returnHeaders?: ReturnHeaders | undefined;
64
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
65
- headers: Headers;
66
- response: {
67
- user: Omit<import("better-auth").UnionToIntersection<import("better-auth").StripEmptyObjects<{
68
- id: string;
69
- email: string;
70
- emailVerified: boolean;
71
- name: string;
72
- createdAt: Date;
73
- updatedAt: Date;
74
- image?: string | null | undefined;
75
- } & (O extends BetterAuthOptions ? import("better-auth").AdditionalUserFieldsOutput<O> : O extends import("better-auth").Auth ? import("better-auth").AdditionalUserFieldsOutput<O["options"]> : {})>> & {
76
- userId: string;
77
- }, "userId"> & {
78
- id: string;
79
- };
80
- session: import("better-auth").UnionToIntersection<import("better-auth").StripEmptyObjects<{
81
- id: string;
82
- userId: string;
83
- expiresAt: Date;
84
- createdAt: Date;
85
- updatedAt: Date;
86
- token: string;
87
- ipAddress?: string | null | undefined;
88
- userAgent?: string | null | undefined;
89
- } & (O extends BetterAuthOptions ? import("better-auth").AdditionalSessionFieldsOutput<O> : O extends import("better-auth").Auth ? import("better-auth").AdditionalSessionFieldsOutput<O["options"]> : {})>> & {
90
- userId: string;
91
- };
92
- } | null;
93
- } : {
94
- user: Omit<import("better-auth").UnionToIntersection<import("better-auth").StripEmptyObjects<{
95
- id: string;
96
- email: string;
97
- emailVerified: boolean;
98
- name: string;
99
- createdAt: Date;
100
- updatedAt: Date;
101
- image?: string | null | undefined;
102
- } & (O extends BetterAuthOptions ? import("better-auth").AdditionalUserFieldsOutput<O> : O extends import("better-auth").Auth ? import("better-auth").AdditionalUserFieldsOutput<O["options"]> : {})>> & {
103
- userId: string;
104
- }, "userId"> & {
105
- id: string;
106
- };
107
- session: import("better-auth").UnionToIntersection<import("better-auth").StripEmptyObjects<{
108
- id: string;
109
- userId: string;
110
- expiresAt: Date;
111
- createdAt: Date;
112
- updatedAt: Date;
113
- token: string;
114
- ipAddress?: string | null | undefined;
115
- userAgent?: string | null | undefined;
116
- } & (O extends BetterAuthOptions ? import("better-auth").AdditionalSessionFieldsOutput<O> : O extends import("better-auth").Auth ? import("better-auth").AdditionalSessionFieldsOutput<O["options"]> : {})>> & {
117
- userId: string;
118
- };
119
- } | null>;
120
- options: {
121
- method: "GET";
122
- query: z.ZodOptional<z.ZodObject<{
123
- disableCookieCache: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEffects<z.ZodString, boolean, string>]>>;
124
- disableRefresh: z.ZodOptional<z.ZodBoolean>;
125
- }, "strip", z.ZodTypeAny, {
126
- disableCookieCache?: boolean | undefined;
127
- disableRefresh?: boolean | undefined;
128
- }, {
129
- disableCookieCache?: string | boolean | undefined;
130
- disableRefresh?: boolean | undefined;
131
- }>>;
132
- metadata: {
133
- CUSTOM_SESSION: boolean;
134
- openapi: {
135
- description: string;
136
- responses: {
137
- "200": {
138
- description: string;
139
- content: {
140
- "application/json": {
141
- schema: {
142
- type: "array";
143
- nullable: boolean;
144
- items: {
145
- $ref: string;
146
- };
147
- };
148
- };
149
- };
150
- };
151
- };
152
- };
153
- };
154
- requireHeaders: true;
155
- } & {
156
- use: any[];
157
- };
158
- path: "/get-session";
159
- };
160
- getOpenIdConfig: {
161
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0?: ({
162
- body?: undefined;
163
- } & {
164
- method?: "GET" | undefined;
165
- } & {
166
- query?: Record<string, any> | undefined;
167
- } & {
168
- params?: Record<string, any>;
169
- } & {
170
- request?: Request;
171
- } & {
172
- headers?: HeadersInit;
173
- } & {
174
- asResponse?: boolean;
175
- returnHeaders?: boolean;
176
- use?: import("better-call").Middleware[];
177
- path?: string;
178
- } & {
179
- asResponse?: AsResponse | undefined;
180
- returnHeaders?: ReturnHeaders | undefined;
181
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
182
- headers: Headers;
183
- response: import("better-auth/plugins").OIDCMetadata;
184
- } : import("better-auth/plugins").OIDCMetadata>;
185
- options: {
186
- method: "GET";
187
- metadata: {
188
- isAction: boolean;
189
- };
190
- } & {
191
- use: any[];
192
- };
193
- path: "/convex/.well-known/openid-configuration";
194
- };
195
- getJwks: {
196
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0?: ({
197
- body?: undefined;
198
- } & {
199
- method?: "GET" | undefined;
200
- } & {
201
- query?: Record<string, any> | undefined;
202
- } & {
203
- params?: Record<string, any>;
204
- } & {
205
- request?: Request;
206
- } & {
207
- headers?: HeadersInit;
208
- } & {
209
- asResponse?: boolean;
210
- returnHeaders?: boolean;
211
- use?: import("better-call").Middleware[];
212
- path?: string;
213
- } & {
214
- asResponse?: AsResponse | undefined;
215
- returnHeaders?: ReturnHeaders | undefined;
216
- }) | undefined): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
217
- headers: Headers;
218
- response: {
219
- keys: any[];
220
- };
221
- } : {
222
- keys: any[];
223
- }>;
224
- options: {
225
- method: "GET";
226
- metadata: {
227
- openapi: {
228
- description: string;
229
- responses: {
230
- "200": {
231
- description: string;
232
- content: {
233
- "application/json": {
234
- schema: {
235
- type: "object";
236
- properties: {
237
- keys: {
238
- type: string;
239
- description: string;
240
- items: {
241
- type: string;
242
- properties: {
243
- kid: {
244
- type: string;
245
- description: string;
246
- };
247
- kty: {
248
- type: string;
249
- description: string;
250
- };
251
- alg: {
252
- type: string;
253
- description: string;
254
- };
255
- use: {
256
- type: string;
257
- description: string;
258
- enum: string[];
259
- nullable: boolean;
260
- };
261
- n: {
262
- type: string;
263
- description: string;
264
- nullable: boolean;
265
- };
266
- e: {
267
- type: string;
268
- description: string;
269
- nullable: boolean;
270
- };
271
- crv: {
272
- type: string;
273
- description: string;
274
- nullable: boolean;
275
- };
276
- x: {
277
- type: string;
278
- description: string;
279
- nullable: boolean;
280
- };
281
- y: {
282
- type: string;
283
- description: string;
284
- nullable: boolean;
285
- };
286
- };
287
- required: string[];
288
- };
289
- };
290
- };
291
- required: string[];
292
- };
293
- };
294
- };
295
- };
296
- };
297
- };
298
- };
299
- } & {
300
- use: any[];
301
- };
302
- path: "/convex/jwks";
303
- };
304
- getToken: {
305
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
306
- body?: undefined;
307
- } & {
308
- method?: "GET" | undefined;
309
- } & {
310
- query?: Record<string, any> | undefined;
311
- } & {
312
- params?: Record<string, any>;
313
- } & {
314
- request?: Request;
315
- } & {
316
- headers: HeadersInit;
317
- } & {
318
- asResponse?: boolean;
319
- returnHeaders?: boolean;
320
- use?: import("better-call").Middleware[];
321
- path?: string;
322
- } & {
323
- asResponse?: AsResponse | undefined;
324
- returnHeaders?: ReturnHeaders | undefined;
325
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
326
- headers: Headers;
327
- response: {
328
- token: string;
329
- };
330
- } : {
331
- token: string;
332
- }>;
333
- options: {
334
- method: "GET";
335
- requireHeaders: true;
336
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
337
- session: {
338
- session: Record<string, any> & {
339
- id: string;
340
- userId: string;
341
- expiresAt: Date;
342
- createdAt: Date;
343
- updatedAt: Date;
344
- token: string;
345
- ipAddress?: string | null | undefined;
346
- userAgent?: string | null | undefined;
347
- };
348
- user: Record<string, any> & {
349
- id: string;
350
- email: string;
351
- emailVerified: boolean;
352
- name: string;
353
- createdAt: Date;
354
- updatedAt: Date;
355
- image?: string | null | undefined;
356
- };
357
- };
358
- }>)[];
359
- metadata: {
360
- openapi: {
361
- description: string;
362
- responses: {
363
- 200: {
364
- description: string;
365
- content: {
366
- "application/json": {
367
- schema: {
368
- type: "object";
369
- properties: {
370
- token: {
371
- type: string;
372
- };
373
- };
374
- };
375
- };
376
- };
377
- };
378
- };
379
- };
380
- };
381
- } & {
382
- use: any[];
383
- };
384
- path: "/convex/token";
385
- };
386
- };
387
- schema: {
388
- jwks: {
389
- fields: {
390
- publicKey: {
391
- type: "string";
392
- required: true;
393
- };
394
- privateKey: {
395
- type: "string";
396
- required: true;
397
- };
398
- createdAt: {
399
- type: "date";
400
- required: true;
401
- };
402
- };
403
- };
404
- user: {
405
- readonly fields: {
406
- readonly userId: {
407
- readonly type: "string";
408
- readonly required: false;
409
- readonly input: false;
410
- };
411
- };
412
- };
413
- };
414
- };
415
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/convex/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,iBAAiB,EAChD,OAAM;IACJ,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,OAAO,CAAC,EAAE,CAAC,CAAC;CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAaM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA+Xk+tF,CAAC;qCAAkD,CAAC;;;;;;;;;iCAA0Q,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CADpzuF,CAAC"}