auth-vir 5.0.0 → 5.0.2

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 (49) hide show
  1. package/package.json +8 -8
  2. package/src/auth-client/backend-auth.client.ts +8 -0
  3. package/src/auth.ts +9 -1
  4. package/dist/auth-client/backend-auth.client.d.ts +0 -263
  5. package/dist/auth-client/backend-auth.client.js +0 -391
  6. package/dist/auth-client/frontend-auth.client.d.ts +0 -113
  7. package/dist/auth-client/frontend-auth.client.js +0 -131
  8. package/dist/auth-client/is-session-refresh-ready.d.ts +0 -23
  9. package/dist/auth-client/is-session-refresh-ready.js +0 -21
  10. package/dist/auth.d.ts +0 -74
  11. package/dist/auth.js +0 -128
  12. package/dist/cookie.d.ts +0 -111
  13. package/dist/cookie.js +0 -137
  14. package/dist/csrf-token.d.ts +0 -33
  15. package/dist/csrf-token.js +0 -42
  16. package/dist/generated/browser.d.ts +0 -9
  17. package/dist/generated/browser.js +0 -17
  18. package/dist/generated/client.d.ts +0 -26
  19. package/dist/generated/client.js +0 -32
  20. package/dist/generated/commonInputTypes.d.ts +0 -122
  21. package/dist/generated/commonInputTypes.js +0 -1
  22. package/dist/generated/enums.d.ts +0 -1
  23. package/dist/generated/enums.js +0 -10
  24. package/dist/generated/internal/class.d.ts +0 -126
  25. package/dist/generated/internal/class.js +0 -85
  26. package/dist/generated/internal/prismaNamespace.d.ts +0 -545
  27. package/dist/generated/internal/prismaNamespace.js +0 -102
  28. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +0 -75
  29. package/dist/generated/internal/prismaNamespaceBrowser.js +0 -70
  30. package/dist/generated/models/User.d.ts +0 -980
  31. package/dist/generated/models/User.js +0 -1
  32. package/dist/generated/models.d.ts +0 -2
  33. package/dist/generated/models.js +0 -1
  34. package/dist/generated/shapes.gen.d.ts +0 -8
  35. package/dist/generated/shapes.gen.js +0 -11
  36. package/dist/hash.d.ts +0 -42
  37. package/dist/hash.js +0 -52
  38. package/dist/headers.d.ts +0 -19
  39. package/dist/headers.js +0 -32
  40. package/dist/index.d.ts +0 -11
  41. package/dist/index.js +0 -11
  42. package/dist/jwt/jwt-keys.d.ts +0 -44
  43. package/dist/jwt/jwt-keys.js +0 -57
  44. package/dist/jwt/jwt-keys.script.d.ts +0 -1
  45. package/dist/jwt/jwt-keys.script.js +0 -3
  46. package/dist/jwt/jwt.d.ts +0 -126
  47. package/dist/jwt/jwt.js +0 -109
  48. package/dist/jwt/user-jwt.d.ts +0 -44
  49. package/dist/jwt/user-jwt.js +0 -53
@@ -1,122 +0,0 @@
1
- import { type UtcIsoString } from 'date-vir';
2
- import type * as runtime from "@prisma/client/runtime/client";
3
- import type * as Prisma from "./internal/prismaNamespace.js";
4
- export type StringFilter<$PrismaModel = never, FieldType = string> = {
5
- equals?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
6
- in?: FieldType[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
7
- notIn?: FieldType[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
8
- lt?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
9
- lte?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
10
- gt?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
11
- gte?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
12
- contains?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
13
- startsWith?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
14
- endsWith?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
15
- mode?: Prisma.QueryMode | runtime.Types.Skip;
16
- not?: Prisma.NestedStringFilter<$PrismaModel> | FieldType | runtime.Types.Skip;
17
- };
18
- export type DateTimeFilter<$PrismaModel = never> = {
19
- equals?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
20
- in?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
21
- notIn?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
22
- lt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
23
- lte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
24
- gt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
25
- gte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
26
- not?: Prisma.NestedDateTimeFilter<$PrismaModel> | UtcIsoString | runtime.Types.Skip;
27
- };
28
- export type StringWithAggregatesFilter<$PrismaModel = never, FieldType = string> = {
29
- equals?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
30
- in?: FieldType[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
31
- notIn?: FieldType[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
32
- lt?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
33
- lte?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
34
- gt?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
35
- gte?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
36
- contains?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
37
- startsWith?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
38
- endsWith?: FieldType | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
39
- mode?: Prisma.QueryMode | runtime.Types.Skip;
40
- not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | FieldType | runtime.Types.Skip;
41
- _count?: Prisma.NestedIntFilter<$PrismaModel> | runtime.Types.Skip;
42
- _min?: Prisma.NestedStringFilter<$PrismaModel> | runtime.Types.Skip;
43
- _max?: Prisma.NestedStringFilter<$PrismaModel> | runtime.Types.Skip;
44
- };
45
- export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
46
- equals?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
47
- in?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
48
- notIn?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
49
- lt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
50
- lte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
51
- gt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
52
- gte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
53
- not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | UtcIsoString | runtime.Types.Skip;
54
- _count?: Prisma.NestedIntFilter<$PrismaModel> | runtime.Types.Skip;
55
- _min?: Prisma.NestedDateTimeFilter<$PrismaModel> | runtime.Types.Skip;
56
- _max?: Prisma.NestedDateTimeFilter<$PrismaModel> | runtime.Types.Skip;
57
- };
58
- export type NestedStringFilter<$PrismaModel = never> = {
59
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
60
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
61
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
62
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
63
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
64
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
65
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
66
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
67
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
68
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
69
- not?: Prisma.NestedStringFilter<$PrismaModel> | string | runtime.Types.Skip;
70
- };
71
- export type NestedDateTimeFilter<$PrismaModel = never> = {
72
- equals?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
73
- in?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
74
- notIn?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
75
- lt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
76
- lte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
77
- gt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
78
- gte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
79
- not?: Prisma.NestedDateTimeFilter<$PrismaModel> | UtcIsoString | runtime.Types.Skip;
80
- };
81
- export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
82
- equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
83
- in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
84
- notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
85
- lt?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
86
- lte?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
87
- gt?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
88
- gte?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
89
- contains?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
90
- startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
91
- endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> | runtime.Types.Skip;
92
- not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string | runtime.Types.Skip;
93
- _count?: Prisma.NestedIntFilter<$PrismaModel> | runtime.Types.Skip;
94
- _min?: Prisma.NestedStringFilter<$PrismaModel> | runtime.Types.Skip;
95
- _max?: Prisma.NestedStringFilter<$PrismaModel> | runtime.Types.Skip;
96
- };
97
- export type NestedIntFilter<$PrismaModel = never> = {
98
- equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
99
- in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
100
- notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
101
- lt?: number | Prisma.IntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
102
- lte?: number | Prisma.IntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
103
- gt?: number | Prisma.IntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
104
- gte?: number | Prisma.IntFieldRefInput<$PrismaModel> | runtime.Types.Skip;
105
- not?: Prisma.NestedIntFilter<$PrismaModel> | number | runtime.Types.Skip;
106
- };
107
- export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
108
- equals?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
109
- in?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
110
- notIn?: UtcIsoString[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
111
- lt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
112
- lte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
113
- gt?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
114
- gte?: UtcIsoString | Prisma.DateTimeFieldRefInput<$PrismaModel> | runtime.Types.Skip;
115
- not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | UtcIsoString | runtime.Types.Skip;
116
- _count?: Prisma.NestedIntFilter<$PrismaModel> | runtime.Types.Skip;
117
- _min?: Prisma.NestedDateTimeFilter<$PrismaModel> | runtime.Types.Skip;
118
- _max?: Prisma.NestedDateTimeFilter<$PrismaModel> | runtime.Types.Skip;
119
- };
120
- export type StringFieldUpdateOperationsInput<FieldType = string> = {
121
- set?: FieldType | runtime.Types.Skip;
122
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
- /* eslint-disable */
3
- // biome-ignore-all lint: generated file
4
- // @ts-nocheck
5
- /*
6
- * This file exports all enum related types from the schema.
7
- *
8
- * 🟢 You can import this file directly.
9
- */
10
- export {};
@@ -1,126 +0,0 @@
1
- import * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "./prismaNamespace.js";
3
- export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
4
- export interface PrismaClientConstructor {
5
- /**
6
- * ## Prisma Client
7
- *
8
- * Type-safe database client for TypeScript
9
- * @example
10
- * ```
11
- * const prisma = new PrismaClient()
12
- * // Fetch zero or more Users
13
- * const users = await prisma.user.findMany()
14
- * ```
15
- *
16
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
17
- */
18
- new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
19
- omit: infer U;
20
- } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options?: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
21
- }
22
- /**
23
- * ## Prisma Client
24
- *
25
- * Type-safe database client for TypeScript
26
- * @example
27
- * ```
28
- * const prisma = new PrismaClient()
29
- * // Fetch zero or more Users
30
- * const users = await prisma.user.findMany()
31
- * ```
32
- *
33
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
34
- */
35
- export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
36
- [K: symbol]: {
37
- types: Prisma.TypeMap<ExtArgs>['other'];
38
- };
39
- $on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
40
- /**
41
- * Connect with the database
42
- */
43
- $connect(): runtime.Types.Utils.JsPromise<void>;
44
- /**
45
- * Disconnect from the database
46
- */
47
- $disconnect(): runtime.Types.Utils.JsPromise<void>;
48
- /**
49
- * Executes a prepared raw query and returns the number of affected rows.
50
- * @example
51
- * ```
52
- * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
53
- * ```
54
- *
55
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
56
- */
57
- $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
58
- /**
59
- * Executes a raw query and returns the number of affected rows.
60
- * Susceptible to SQL injections, see documentation.
61
- * @example
62
- * ```
63
- * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
64
- * ```
65
- *
66
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
67
- */
68
- $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
69
- /**
70
- * Performs a prepared raw query and returns the `SELECT` data.
71
- * @example
72
- * ```
73
- * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
74
- * ```
75
- *
76
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
77
- */
78
- $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
79
- /**
80
- * Performs a raw query and returns the `SELECT` data.
81
- * Susceptible to SQL injections, see documentation.
82
- * @example
83
- * ```
84
- * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
85
- * ```
86
- *
87
- * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
88
- */
89
- $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
90
- /**
91
- * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
92
- * @example
93
- * ```
94
- * const [george, bob, alice] = await prisma.$transaction([
95
- * prisma.user.create({ data: { name: 'George' } }),
96
- * prisma.user.create({ data: { name: 'Bob' } }),
97
- * prisma.user.create({ data: { name: 'Alice' } }),
98
- * ])
99
- * ```
100
- *
101
- * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
102
- */
103
- $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
104
- isolationLevel?: Prisma.TransactionIsolationLevel;
105
- }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
106
- $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
107
- maxWait?: number;
108
- timeout?: number;
109
- isolationLevel?: Prisma.TransactionIsolationLevel;
110
- }): runtime.Types.Utils.JsPromise<R>;
111
- $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
112
- extArgs: ExtArgs;
113
- }>>;
114
- /**
115
- * `prisma.user`: Exposes CRUD operations for the **User** model.
116
- * Example usage:
117
- * ```ts
118
- * // Fetch zero or more Users
119
- * const users = await prisma.user.findMany()
120
- * ```
121
- */
122
- get user(): Prisma.UserDelegate<ExtArgs, {
123
- omit: OmitOpts;
124
- }>;
125
- }
126
- export declare function getPrismaClientClass(dirname: string): PrismaClientConstructor;
@@ -1,85 +0,0 @@
1
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
- /* eslint-disable */
3
- // biome-ignore-all lint: generated file
4
- // @ts-nocheck
5
- /*
6
- * WARNING: This is an internal file that is subject to change!
7
- *
8
- * 🛑 Under no circumstances should you import this file directly! 🛑
9
- *
10
- * Please import the `PrismaClient` class from the `client.ts` file instead.
11
- */
12
- import * as runtime from "@prisma/client/runtime/client";
13
- const config = {
14
- "generator": {
15
- "name": "jsClient",
16
- "provider": {
17
- "fromEnvVar": null,
18
- "value": "prisma-client"
19
- },
20
- "output": {
21
- "value": "/Users/electrovir/repos/electrovir/auth-vir/packages/auth-vir/src/generated",
22
- "fromEnvVar": null
23
- },
24
- "config": {
25
- "moduleFormat": "esm",
26
- "engineType": "client"
27
- },
28
- "binaryTargets": [
29
- {
30
- "fromEnvVar": null,
31
- "value": "darwin-arm64",
32
- "native": true
33
- }
34
- ],
35
- "previewFeatures": [
36
- "relationJoins",
37
- "strictUndefinedChecks"
38
- ],
39
- "sourceFilePath": "/Users/electrovir/repos/electrovir/auth-vir/packages/auth-vir/test-files/schema.prisma",
40
- "isCustomOutput": true
41
- },
42
- "relativePath": "../../test-files",
43
- "clientVersion": "6.19.2",
44
- "engineVersion": "c2990dca591cba766e3b7ef5d9e8a84796e47ab7",
45
- "datasourceNames": [
46
- "db"
47
- ],
48
- "activeProvider": "postgresql",
49
- "postinstall": false,
50
- "inlineDatasources": {
51
- "db": {
52
- "url": {
53
- "fromEnvVar": "DATABASE_URL",
54
- "value": null
55
- }
56
- }
57
- },
58
- "inlineSchema": "generator jsClient {\n provider = \"prisma-client\"\n previewFeatures = [\"strictUndefinedChecks\", \"relationJoins\"]\n output = \"../src/generated\"\n engineType = \"client\"\n moduleFormat = \"esm\"\n}\n\ngenerator shapes {\n provider = \"prisma-shapes\"\n output = \"../src/generated\"\n}\n\ngenerator stringDates {\n provider = \"prisma-string-dates\"\n output = \"../src/generated\"\n}\n\ngenerator brandedFields {\n provider = \"prisma-branded-fields\"\n output = \"../src/generated\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel User {\n id String @id @default(cuid(2))\n createdAt DateTime @default(now())\n updatedAt DateTime @default(now()) @updatedAt\n\n name String\n}\n",
59
- "inlineSchemaHash": "23208c8e58615c00e5101cfaaa5341ce46c109a1169d3aea10dae8caa3594dcc",
60
- "copyEngine": true,
61
- "runtimeDataModel": {
62
- "models": {},
63
- "enums": {},
64
- "types": {}
65
- },
66
- "dirname": ""
67
- };
68
- config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}");
69
- config.engineWasm = undefined;
70
- async function decodeBase64AsWasm(wasmBase64) {
71
- const { Buffer } = await import('node:buffer');
72
- const wasmArray = Buffer.from(wasmBase64, 'base64');
73
- return new WebAssembly.Module(wasmArray);
74
- }
75
- config.compilerWasm = {
76
- getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"),
77
- getQueryCompilerWasmModule: async () => {
78
- const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.mjs");
79
- return await decodeBase64AsWasm(wasm);
80
- }
81
- };
82
- export function getPrismaClientClass(dirname) {
83
- config.dirname = dirname;
84
- return runtime.getPrismaClient(config);
85
- }