@fonoster/identity 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 (28) hide show
  1. package/dist/db.d.ts +2 -2
  2. package/dist/db.js +3 -3
  3. package/dist/generated/@prisma/client/default.d.ts +1 -0
  4. package/dist/generated/@prisma/client/default.js +1 -0
  5. package/dist/generated/@prisma/client/edge.d.ts +1 -0
  6. package/dist/generated/@prisma/client/edge.js +268 -0
  7. package/dist/generated/@prisma/client/index-browser.js +256 -0
  8. package/dist/generated/@prisma/client/index.d.ts +8789 -0
  9. package/dist/generated/@prisma/client/index.js +289 -0
  10. package/dist/generated/@prisma/client/libquery_engine-darwin-arm64.dylib.node +0 -0
  11. package/dist/generated/@prisma/client/package.json +97 -0
  12. package/dist/generated/@prisma/client/runtime/edge-esm.js +31 -0
  13. package/dist/generated/@prisma/client/runtime/edge.js +31 -0
  14. package/dist/generated/@prisma/client/runtime/index-browser.d.ts +365 -0
  15. package/dist/generated/@prisma/client/runtime/index-browser.js +13 -0
  16. package/dist/generated/@prisma/client/runtime/library.d.ts +3378 -0
  17. package/dist/generated/@prisma/client/runtime/library.js +143 -0
  18. package/dist/generated/@prisma/client/runtime/react-native.js +80 -0
  19. package/dist/generated/@prisma/client/runtime/wasm.js +32 -0
  20. package/dist/generated/@prisma/client/schema.prisma +127 -0
  21. package/dist/generated/@prisma/client/wasm.d.ts +1 -0
  22. package/dist/generated/@prisma/client/wasm.js +256 -0
  23. package/dist/utils/createGenerateVerificationCode.d.ts +1 -1
  24. package/dist/utils/createGetUserByWorkspaceAccessKeyId.d.ts +1 -1
  25. package/dist/utils/createIsValidVerificationCode.d.ts +1 -1
  26. package/dist/utils/getApiKeyByAccessKeyId.d.ts +1 -1
  27. package/dist/utils/getUserByEmail.d.ts +1 -1
  28. package/package.json +5 -5
@@ -0,0 +1,256 @@
1
+
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+
4
+ const {
5
+ Decimal,
6
+ objectEnumValues,
7
+ makeStrictEnum,
8
+ Public,
9
+ getRuntime,
10
+ skip
11
+ } = require('./runtime/index-browser.js')
12
+
13
+
14
+ const Prisma = {}
15
+
16
+ exports.Prisma = Prisma
17
+ exports.$Enums = {}
18
+
19
+ /**
20
+ * Prisma Client JS version: 6.1.0
21
+ * Query Engine version: 11f085a2012c0f4778414c8db2651556ee0ef959
22
+ */
23
+ Prisma.prismaVersion = {
24
+ client: "6.1.0",
25
+ engine: "11f085a2012c0f4778414c8db2651556ee0ef959"
26
+ }
27
+
28
+ Prisma.PrismaClientKnownRequestError = () => {
29
+ const runtimeName = getRuntime().prettyName;
30
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
31
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
32
+ )};
33
+ Prisma.PrismaClientUnknownRequestError = () => {
34
+ const runtimeName = getRuntime().prettyName;
35
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
36
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
37
+ )}
38
+ Prisma.PrismaClientRustPanicError = () => {
39
+ const runtimeName = getRuntime().prettyName;
40
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
41
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
42
+ )}
43
+ Prisma.PrismaClientInitializationError = () => {
44
+ const runtimeName = getRuntime().prettyName;
45
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
46
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
47
+ )}
48
+ Prisma.PrismaClientValidationError = () => {
49
+ const runtimeName = getRuntime().prettyName;
50
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
51
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
52
+ )}
53
+ Prisma.Decimal = Decimal
54
+
55
+ /**
56
+ * Re-export of sql-template-tag
57
+ */
58
+ Prisma.sql = () => {
59
+ const runtimeName = getRuntime().prettyName;
60
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
61
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
62
+ )}
63
+ Prisma.empty = () => {
64
+ const runtimeName = getRuntime().prettyName;
65
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
66
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
67
+ )}
68
+ Prisma.join = () => {
69
+ const runtimeName = getRuntime().prettyName;
70
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
71
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
72
+ )}
73
+ Prisma.raw = () => {
74
+ const runtimeName = getRuntime().prettyName;
75
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
76
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
77
+ )}
78
+ Prisma.validator = Public.validator
79
+
80
+ /**
81
+ * Extensions
82
+ */
83
+ Prisma.getExtensionContext = () => {
84
+ const runtimeName = getRuntime().prettyName;
85
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
86
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
87
+ )}
88
+ Prisma.defineExtension = () => {
89
+ const runtimeName = getRuntime().prettyName;
90
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
91
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
92
+ )}
93
+
94
+ /**
95
+ * Shorthand utilities for JSON filtering
96
+ */
97
+ Prisma.DbNull = objectEnumValues.instances.DbNull
98
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull
99
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull
100
+
101
+ Prisma.NullTypes = {
102
+ DbNull: objectEnumValues.classes.DbNull,
103
+ JsonNull: objectEnumValues.classes.JsonNull,
104
+ AnyNull: objectEnumValues.classes.AnyNull
105
+ }
106
+
107
+
108
+
109
+ /**
110
+ * Enums
111
+ */
112
+
113
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
114
+ ReadUncommitted: 'ReadUncommitted',
115
+ ReadCommitted: 'ReadCommitted',
116
+ RepeatableRead: 'RepeatableRead',
117
+ Serializable: 'Serializable'
118
+ });
119
+
120
+ exports.Prisma.UserScalarFieldEnum = {
121
+ ref: 'ref',
122
+ accessKeyId: 'accessKeyId',
123
+ name: 'name',
124
+ email: 'email',
125
+ emailVerified: 'emailVerified',
126
+ password: 'password',
127
+ phoneNumber: 'phoneNumber',
128
+ phoneNumberVerified: 'phoneNumberVerified',
129
+ avatar: 'avatar',
130
+ createdAt: 'createdAt',
131
+ updatedAt: 'updatedAt',
132
+ extended: 'extended'
133
+ };
134
+
135
+ exports.Prisma.WorkspaceScalarFieldEnum = {
136
+ ref: 'ref',
137
+ accessKeyId: 'accessKeyId',
138
+ name: 'name',
139
+ createdAt: 'createdAt',
140
+ updatedAt: 'updatedAt',
141
+ ownerRef: 'ownerRef'
142
+ };
143
+
144
+ exports.Prisma.WorkspaceMemberScalarFieldEnum = {
145
+ ref: 'ref',
146
+ status: 'status',
147
+ role: 'role',
148
+ createdAt: 'createdAt',
149
+ updatedAt: 'updatedAt',
150
+ userRef: 'userRef',
151
+ workspaceRef: 'workspaceRef'
152
+ };
153
+
154
+ exports.Prisma.ApiKeyScalarFieldEnum = {
155
+ ref: 'ref',
156
+ accessKeyId: 'accessKeyId',
157
+ accessKeySecret: 'accessKeySecret',
158
+ role: 'role',
159
+ createdAt: 'createdAt',
160
+ updatedAt: 'updatedAt',
161
+ expiresAt: 'expiresAt',
162
+ workspaceRef: 'workspaceRef'
163
+ };
164
+
165
+ exports.Prisma.VerificationCodeScalarFieldEnum = {
166
+ ref: 'ref',
167
+ type: 'type',
168
+ code: 'code',
169
+ value: 'value',
170
+ expiresAt: 'expiresAt',
171
+ createdAt: 'createdAt'
172
+ };
173
+
174
+ exports.Prisma.SortOrder = {
175
+ asc: 'asc',
176
+ desc: 'desc'
177
+ };
178
+
179
+ exports.Prisma.NullableJsonNullValueInput = {
180
+ DbNull: Prisma.DbNull,
181
+ JsonNull: Prisma.JsonNull
182
+ };
183
+
184
+ exports.Prisma.QueryMode = {
185
+ default: 'default',
186
+ insensitive: 'insensitive'
187
+ };
188
+
189
+ exports.Prisma.JsonNullValueFilter = {
190
+ DbNull: Prisma.DbNull,
191
+ JsonNull: Prisma.JsonNull,
192
+ AnyNull: Prisma.AnyNull
193
+ };
194
+
195
+ exports.Prisma.NullsOrder = {
196
+ first: 'first',
197
+ last: 'last'
198
+ };
199
+ exports.WorkspaceMemberStatus = exports.$Enums.WorkspaceMemberStatus = {
200
+ PENDING: 'PENDING',
201
+ ACTIVE: 'ACTIVE'
202
+ };
203
+
204
+ exports.WorkspaceMemberRole = exports.$Enums.WorkspaceMemberRole = {
205
+ OWNER: 'OWNER',
206
+ ADMIN: 'ADMIN',
207
+ USER: 'USER'
208
+ };
209
+
210
+ exports.ApiKeyRole = exports.$Enums.ApiKeyRole = {
211
+ WORKSPACE_ADMIN: 'WORKSPACE_ADMIN'
212
+ };
213
+
214
+ exports.VerificationType = exports.$Enums.VerificationType = {
215
+ EMAIL: 'EMAIL',
216
+ PHONE: 'PHONE'
217
+ };
218
+
219
+ exports.Prisma.ModelName = {
220
+ User: 'User',
221
+ Workspace: 'Workspace',
222
+ WorkspaceMember: 'WorkspaceMember',
223
+ ApiKey: 'ApiKey',
224
+ VerificationCode: 'VerificationCode'
225
+ };
226
+
227
+ /**
228
+ * This is a stub Prisma Client that will error at runtime if called.
229
+ */
230
+ class PrismaClient {
231
+ constructor() {
232
+ return new Proxy(this, {
233
+ get(target, prop) {
234
+ let message
235
+ const runtime = getRuntime()
236
+ if (runtime.isEdge) {
237
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
238
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
239
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
240
+ `;
241
+ } else {
242
+ message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
243
+ }
244
+
245
+ message += `
246
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
247
+
248
+ throw new Error(message)
249
+ }
250
+ })
251
+ }
252
+ }
253
+
254
+ exports.PrismaClient = PrismaClient
255
+
256
+ Object.assign(exports, Prisma)
@@ -1,4 +1,4 @@
1
- import { VerificationType } from "@prisma/identity-client";
1
+ import { VerificationType } from "../generated/@prisma/client";
2
2
  import { Prisma } from "../db";
3
3
  declare function createGenerateVerificationCode(prisma: Prisma): (params: {
4
4
  type: VerificationType;
@@ -11,6 +11,6 @@ declare function createGetUserByWorkspaceAccessKeyId(prisma: Prisma): (accessKey
11
11
  phoneNumber: string | null;
12
12
  phoneNumberVerified: boolean;
13
13
  avatar: string | null;
14
- extended: import("@prisma/identity-client/runtime/library").JsonValue | null;
14
+ extended: import("../generated/@prisma/client/runtime/library").JsonValue | null;
15
15
  }>;
16
16
  export { createGetUserByWorkspaceAccessKeyId };
@@ -1,4 +1,4 @@
1
- import { VerificationType } from "@prisma/identity-client";
1
+ import { VerificationType } from "../generated/@prisma/client";
2
2
  import { Prisma } from "../db";
3
3
  declare function createIsValidVerificationCode(prisma: Prisma): (params: {
4
4
  type: VerificationType;
@@ -3,7 +3,7 @@ declare function getApiKeyByAccessKeyId(prisma: Prisma): (accessKeyId: string) =
3
3
  ref: string;
4
4
  accessKeyId: string;
5
5
  accessKeySecret: string;
6
- role: import("@prisma/identity-client").$Enums.ApiKeyRole;
6
+ role: import("../generated/@prisma/client").$Enums.ApiKeyRole;
7
7
  createdAt: Date;
8
8
  updatedAt: Date;
9
9
  expiresAt: Date | null;
@@ -11,6 +11,6 @@ declare function getUserByEmail(prisma: Prisma): (email: string) => Promise<{
11
11
  phoneNumber: string | null;
12
12
  phoneNumberVerified: boolean;
13
13
  avatar: string | null;
14
- extended: import("@prisma/identity-client/runtime/library").JsonValue | null;
14
+ extended: import("../generated/@prisma/client/runtime/library").JsonValue | null;
15
15
  }>;
16
16
  export { getUserByEmail };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/identity",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "Identity service for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -20,9 +20,9 @@
20
20
  "fonoster": "./dist/index.js"
21
21
  },
22
22
  "dependencies": {
23
- "@fonoster/common": "^0.8.4",
24
- "@fonoster/logger": "^0.8.4",
25
- "@fonoster/types": "^0.8.4",
23
+ "@fonoster/common": "^0.8.7",
24
+ "@fonoster/logger": "^0.8.7",
25
+ "@fonoster/types": "^0.8.7",
26
26
  "@grpc/grpc-js": "~1.10.6",
27
27
  "@prisma/client": "^6.0.1",
28
28
  "jsonwebtoken": "^9.0.2",
@@ -48,5 +48,5 @@
48
48
  "devDependencies": {
49
49
  "@types/jsonwebtoken": "^9.0.6"
50
50
  },
51
- "gitHead": "755532916ed36c12cf15416a39da7bceee5743e0"
51
+ "gitHead": "fefb76ca2b505dda9c48d5354ec68e87028e6bcc"
52
52
  }