@danielcok17/prisma-db 1.8.1 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/package.json +3 -2
  2. package/prisma/app.prisma +20 -0
  3. package/prisma/law.prisma +45 -47
  4. package/prisma/migrations/20260120212010_add_user_company_fields/migration.sql +22 -0
  5. package/dist/index.d.ts +0 -5
  6. package/dist/index.d.ts.map +0 -1
  7. package/dist/index.js +0 -24
  8. package/dist/index.js.map +0 -1
  9. package/dist/paths.d.ts +0 -4
  10. package/dist/paths.d.ts.map +0 -1
  11. package/dist/paths.js +0 -12
  12. package/dist/paths.js.map +0 -1
  13. package/dist/utils.d.ts +0 -5
  14. package/dist/utils.d.ts.map +0 -1
  15. package/dist/utils.js +0 -13
  16. package/dist/utils.js.map +0 -1
  17. package/prisma/generated/app/client.d.ts +0 -1
  18. package/prisma/generated/app/client.js +0 -4
  19. package/prisma/generated/app/default.d.ts +0 -1
  20. package/prisma/generated/app/default.js +0 -4
  21. package/prisma/generated/app/edge.d.ts +0 -1
  22. package/prisma/generated/app/edge.js +0 -754
  23. package/prisma/generated/app/index-browser.js +0 -736
  24. package/prisma/generated/app/index.d.ts +0 -62771
  25. package/prisma/generated/app/index.js +0 -779
  26. package/prisma/generated/app/libquery_engine-darwin-arm64.dylib.node +0 -0
  27. package/prisma/generated/app/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
  28. package/prisma/generated/app/package.json +0 -183
  29. package/prisma/generated/app/query_engine_bg.js +0 -2
  30. package/prisma/generated/app/query_engine_bg.wasm +0 -0
  31. package/prisma/generated/app/runtime/edge-esm.js +0 -34
  32. package/prisma/generated/app/runtime/edge.js +0 -34
  33. package/prisma/generated/app/runtime/index-browser.d.ts +0 -370
  34. package/prisma/generated/app/runtime/index-browser.js +0 -16
  35. package/prisma/generated/app/runtime/library.d.ts +0 -3977
  36. package/prisma/generated/app/runtime/library.js +0 -146
  37. package/prisma/generated/app/runtime/react-native.js +0 -83
  38. package/prisma/generated/app/runtime/wasm-compiler-edge.js +0 -84
  39. package/prisma/generated/app/runtime/wasm-engine-edge.js +0 -36
  40. package/prisma/generated/app/schema.prisma +0 -921
  41. package/prisma/generated/app/wasm-edge-light-loader.mjs +0 -4
  42. package/prisma/generated/app/wasm-worker-loader.mjs +0 -4
  43. package/prisma/generated/app/wasm.d.ts +0 -1
  44. package/prisma/generated/app/wasm.js +0 -761
  45. package/prisma/generated/law/client.d.ts +0 -1
  46. package/prisma/generated/law/client.js +0 -4
  47. package/prisma/generated/law/default.d.ts +0 -1
  48. package/prisma/generated/law/default.js +0 -4
  49. package/prisma/generated/law/edge.d.ts +0 -1
  50. package/prisma/generated/law/edge.js +0 -256
  51. package/prisma/generated/law/index-browser.js +0 -238
  52. package/prisma/generated/law/index.d.ts +0 -6868
  53. package/prisma/generated/law/index.js +0 -281
  54. package/prisma/generated/law/libquery_engine-darwin-arm64.dylib.node +0 -0
  55. package/prisma/generated/law/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
  56. package/prisma/generated/law/package.json +0 -183
  57. package/prisma/generated/law/query_engine_bg.js +0 -2
  58. package/prisma/generated/law/query_engine_bg.wasm +0 -0
  59. package/prisma/generated/law/runtime/edge-esm.js +0 -34
  60. package/prisma/generated/law/runtime/edge.js +0 -34
  61. package/prisma/generated/law/runtime/index-browser.d.ts +0 -370
  62. package/prisma/generated/law/runtime/index-browser.js +0 -16
  63. package/prisma/generated/law/runtime/library.d.ts +0 -3977
  64. package/prisma/generated/law/runtime/library.js +0 -146
  65. package/prisma/generated/law/runtime/react-native.js +0 -83
  66. package/prisma/generated/law/runtime/wasm-compiler-edge.js +0 -84
  67. package/prisma/generated/law/runtime/wasm-engine-edge.js +0 -36
  68. package/prisma/generated/law/schema.prisma +0 -82
  69. package/prisma/generated/law/wasm-edge-light-loader.mjs +0 -4
  70. package/prisma/generated/law/wasm-worker-loader.mjs +0 -4
  71. package/prisma/generated/law/wasm.d.ts +0 -1
  72. package/prisma/generated/law/wasm.js +0 -263
@@ -1,736 +0,0 @@
1
-
2
- /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
- /* eslint-disable */
4
-
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
-
7
- const {
8
- Decimal,
9
- objectEnumValues,
10
- makeStrictEnum,
11
- Public,
12
- getRuntime,
13
- skip
14
- } = require('./runtime/index-browser.js')
15
-
16
-
17
- const Prisma = {}
18
-
19
- exports.Prisma = Prisma
20
- exports.$Enums = {}
21
-
22
- /**
23
- * Prisma Client JS version: 6.17.0
24
- * Query Engine version: c0aafc03b8ef6cdced8654b9a817999e02457d6a
25
- */
26
- Prisma.prismaVersion = {
27
- client: "6.17.0",
28
- engine: "c0aafc03b8ef6cdced8654b9a817999e02457d6a"
29
- }
30
-
31
- Prisma.PrismaClientKnownRequestError = () => {
32
- const runtimeName = getRuntime().prettyName;
33
- throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
34
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
35
- )};
36
- Prisma.PrismaClientUnknownRequestError = () => {
37
- const runtimeName = getRuntime().prettyName;
38
- throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
39
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
40
- )}
41
- Prisma.PrismaClientRustPanicError = () => {
42
- const runtimeName = getRuntime().prettyName;
43
- throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
44
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
45
- )}
46
- Prisma.PrismaClientInitializationError = () => {
47
- const runtimeName = getRuntime().prettyName;
48
- throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
49
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
50
- )}
51
- Prisma.PrismaClientValidationError = () => {
52
- const runtimeName = getRuntime().prettyName;
53
- throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
54
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
55
- )}
56
- Prisma.Decimal = Decimal
57
-
58
- /**
59
- * Re-export of sql-template-tag
60
- */
61
- Prisma.sql = () => {
62
- const runtimeName = getRuntime().prettyName;
63
- throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
64
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
65
- )}
66
- Prisma.empty = () => {
67
- const runtimeName = getRuntime().prettyName;
68
- throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
69
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
70
- )}
71
- Prisma.join = () => {
72
- const runtimeName = getRuntime().prettyName;
73
- throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
74
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
75
- )}
76
- Prisma.raw = () => {
77
- const runtimeName = getRuntime().prettyName;
78
- throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
79
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
80
- )}
81
- Prisma.validator = Public.validator
82
-
83
- /**
84
- * Extensions
85
- */
86
- Prisma.getExtensionContext = () => {
87
- const runtimeName = getRuntime().prettyName;
88
- throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
89
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
90
- )}
91
- Prisma.defineExtension = () => {
92
- const runtimeName = getRuntime().prettyName;
93
- throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
94
- In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
95
- )}
96
-
97
- /**
98
- * Shorthand utilities for JSON filtering
99
- */
100
- Prisma.DbNull = objectEnumValues.instances.DbNull
101
- Prisma.JsonNull = objectEnumValues.instances.JsonNull
102
- Prisma.AnyNull = objectEnumValues.instances.AnyNull
103
-
104
- Prisma.NullTypes = {
105
- DbNull: objectEnumValues.classes.DbNull,
106
- JsonNull: objectEnumValues.classes.JsonNull,
107
- AnyNull: objectEnumValues.classes.AnyNull
108
- }
109
-
110
-
111
-
112
- /**
113
- * Enums
114
- */
115
-
116
- exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
117
- ReadUncommitted: 'ReadUncommitted',
118
- ReadCommitted: 'ReadCommitted',
119
- RepeatableRead: 'RepeatableRead',
120
- Serializable: 'Serializable'
121
- });
122
-
123
- exports.Prisma.AccountScalarFieldEnum = {
124
- id: 'id',
125
- userId: 'userId',
126
- type: 'type',
127
- provider: 'provider',
128
- providerAccountId: 'providerAccountId',
129
- refresh_token: 'refresh_token',
130
- access_token: 'access_token',
131
- expires_at: 'expires_at',
132
- token_type: 'token_type',
133
- scope: 'scope',
134
- id_token: 'id_token',
135
- session_state: 'session_state'
136
- };
137
-
138
- exports.Prisma.UserScalarFieldEnum = {
139
- id: 'id',
140
- name: 'name',
141
- email: 'email',
142
- emailVerified: 'emailVerified',
143
- image: 'image',
144
- password: 'password',
145
- createdAt: 'createdAt',
146
- agreedToTerms: 'agreedToTerms',
147
- practiceArea: 'practiceArea',
148
- lawFirm: 'lawFirm',
149
- yearsOfExperience: 'yearsOfExperience',
150
- isApproved: 'isApproved',
151
- isRejected: 'isRejected',
152
- approvedAt: 'approvedAt',
153
- rejectedAt: 'rejectedAt',
154
- approvedBy: 'approvedBy',
155
- rejectedBy: 'rejectedBy',
156
- rejectionReason: 'rejectionReason',
157
- referralSource: 'referralSource',
158
- applicationText: 'applicationText',
159
- subscriptionTier: 'subscriptionTier',
160
- messageCount: 'messageCount',
161
- messageCountResetAt: 'messageCountResetAt',
162
- adminGrantExpiresAt: 'adminGrantExpiresAt'
163
- };
164
-
165
- exports.Prisma.UserApprovalRequestScalarFieldEnum = {
166
- id: 'id',
167
- userId: 'userId',
168
- status: 'status',
169
- submittedAt: 'submittedAt',
170
- reviewedAt: 'reviewedAt',
171
- reviewedBy: 'reviewedBy',
172
- notes: 'notes'
173
- };
174
-
175
- exports.Prisma.OrganizationScalarFieldEnum = {
176
- id: 'id',
177
- name: 'name',
178
- companyNumber: 'companyNumber',
179
- vatNumber: 'vatNumber',
180
- taxNumber: 'taxNumber',
181
- legalForm: 'legalForm',
182
- billingEmail: 'billingEmail',
183
- street: 'street',
184
- city: 'city',
185
- postalCode: 'postalCode',
186
- country: 'country',
187
- subscriptionTier: 'subscriptionTier',
188
- messageCount: 'messageCount',
189
- messageLimit: 'messageLimit',
190
- messageCountResetAt: 'messageCountResetAt',
191
- adminGrantExpiresAt: 'adminGrantExpiresAt',
192
- isActive: 'isActive',
193
- maxMembers: 'maxMembers',
194
- ownerId: 'ownerId',
195
- createdAt: 'createdAt',
196
- updatedAt: 'updatedAt'
197
- };
198
-
199
- exports.Prisma.OrganizationMemberScalarFieldEnum = {
200
- id: 'id',
201
- organizationId: 'organizationId',
202
- userId: 'userId',
203
- role: 'role',
204
- joinedAt: 'joinedAt'
205
- };
206
-
207
- exports.Prisma.OrganizationInviteScalarFieldEnum = {
208
- id: 'id',
209
- organizationId: 'organizationId',
210
- token: 'token',
211
- email: 'email',
212
- role: 'role',
213
- createdBy: 'createdBy',
214
- expiresAt: 'expiresAt',
215
- maxUses: 'maxUses',
216
- currentUses: 'currentUses',
217
- isActive: 'isActive',
218
- usedAt: 'usedAt',
219
- usedBy: 'usedBy',
220
- createdAt: 'createdAt',
221
- updatedAt: 'updatedAt'
222
- };
223
-
224
- exports.Prisma.ConversationScalarFieldEnum = {
225
- id: 'id',
226
- name: 'name',
227
- userId: 'userId',
228
- isShareable: 'isShareable',
229
- shareUrl: 'shareUrl',
230
- sharedAt: 'sharedAt',
231
- createdAt: 'createdAt',
232
- updatedAt: 'updatedAt',
233
- summary: 'summary',
234
- messagesSinceLastSummary: 'messagesSinceLastSummary'
235
- };
236
-
237
- exports.Prisma.AnswerScalarFieldEnum = {
238
- id: 'id',
239
- conversationId: 'conversationId',
240
- messageId: 'messageId',
241
- role: 'role',
242
- content: 'content',
243
- question: 'question',
244
- answer: 'answer',
245
- evaluation: 'evaluation',
246
- isWelcome: 'isWelcome',
247
- processingTime: 'processingTime',
248
- model: 'model',
249
- userId: 'userId',
250
- createdAt: 'createdAt',
251
- updatedAt: 'updatedAt',
252
- canvasDocumentId: 'canvasDocumentId'
253
- };
254
-
255
- exports.Prisma.MessageFileScalarFieldEnum = {
256
- id: 'id',
257
- answerId: 'answerId',
258
- fileName: 'fileName',
259
- fileType: 'fileType',
260
- base64Data: 'base64Data',
261
- uploadedAt: 'uploadedAt'
262
- };
263
-
264
- exports.Prisma.AnswerMetricsScalarFieldEnum = {
265
- id: 'id',
266
- answerId: 'answerId',
267
- apiCost: 'apiCost',
268
- aiCost: 'aiCost',
269
- ragCost: 'ragCost',
270
- apiCalls: 'apiCalls',
271
- aiCalls: 'aiCalls',
272
- ragCalls: 'ragCalls',
273
- apiDuration: 'apiDuration',
274
- aiProvider: 'aiProvider',
275
- aiModel: 'aiModel',
276
- aiProvidersUsed: 'aiProvidersUsed',
277
- aiModelsUsed: 'aiModelsUsed',
278
- createdAt: 'createdAt',
279
- updatedAt: 'updatedAt'
280
- };
281
-
282
- exports.Prisma.FeedbackScalarFieldEnum = {
283
- id: 'id',
284
- answerId: 'answerId',
285
- rating: 'rating',
286
- feedbackTypes: 'feedbackTypes',
287
- customFeedback: 'customFeedback',
288
- userId: 'userId',
289
- messageContent: 'messageContent',
290
- createdAt: 'createdAt'
291
- };
292
-
293
- exports.Prisma.ReferenceScalarFieldEnum = {
294
- id: 'id',
295
- answerId: 'answerId',
296
- type: 'type',
297
- title: 'title',
298
- reference: 'reference',
299
- summary: 'summary',
300
- url: 'url',
301
- uuid: 'uuid',
302
- relevance: 'relevance',
303
- citationNumber: 'citationNumber',
304
- metadata: 'metadata',
305
- userId: 'userId',
306
- createdAt: 'createdAt'
307
- };
308
-
309
- exports.Prisma.PageViewScalarFieldEnum = {
310
- id: 'id',
311
- userId: 'userId',
312
- sessionId: 'sessionId',
313
- page: 'page',
314
- path: 'path',
315
- referrer: 'referrer',
316
- userAgent: 'userAgent',
317
- ipAddress: 'ipAddress',
318
- country: 'country',
319
- city: 'city',
320
- deviceType: 'deviceType',
321
- browser: 'browser',
322
- os: 'os',
323
- screenSize: 'screenSize',
324
- language: 'language',
325
- timeOnPage: 'timeOnPage',
326
- isBounce: 'isBounce',
327
- createdAt: 'createdAt'
328
- };
329
-
330
- exports.Prisma.SessionScalarFieldEnum = {
331
- id: 'id',
332
- sessionId: 'sessionId',
333
- userId: 'userId',
334
- startedAt: 'startedAt',
335
- endedAt: 'endedAt',
336
- duration: 'duration'
337
- };
338
-
339
- exports.Prisma.StripeCustomerScalarFieldEnum = {
340
- id: 'id',
341
- userId: 'userId',
342
- organizationId: 'organizationId',
343
- stripeCustomerId: 'stripeCustomerId',
344
- email: 'email',
345
- name: 'name',
346
- billingAddress: 'billingAddress',
347
- taxIds: 'taxIds',
348
- createdAt: 'createdAt',
349
- updatedAt: 'updatedAt'
350
- };
351
-
352
- exports.Prisma.StripeSubscriptionScalarFieldEnum = {
353
- id: 'id',
354
- customerId: 'customerId',
355
- stripeCustomerId: 'stripeCustomerId',
356
- stripeSubscriptionId: 'stripeSubscriptionId',
357
- stripePriceId: 'stripePriceId',
358
- stripeProductId: 'stripeProductId',
359
- status: 'status',
360
- tier: 'tier',
361
- billingInterval: 'billingInterval',
362
- currentPeriodStart: 'currentPeriodStart',
363
- currentPeriodEnd: 'currentPeriodEnd',
364
- cancelAtPeriodEnd: 'cancelAtPeriodEnd',
365
- canceledAt: 'canceledAt',
366
- trialStart: 'trialStart',
367
- trialEnd: 'trialEnd',
368
- quantity: 'quantity',
369
- defaultPaymentMethodId: 'defaultPaymentMethodId',
370
- metadata: 'metadata',
371
- createdAt: 'createdAt',
372
- updatedAt: 'updatedAt'
373
- };
374
-
375
- exports.Prisma.StripeEventScalarFieldEnum = {
376
- id: 'id',
377
- eventId: 'eventId',
378
- type: 'type',
379
- data: 'data',
380
- processed: 'processed',
381
- processedAt: 'processedAt',
382
- error: 'error',
383
- createdAt: 'createdAt'
384
- };
385
-
386
- exports.Prisma.StripePaymentScalarFieldEnum = {
387
- id: 'id',
388
- customerId: 'customerId',
389
- stripePaymentId: 'stripePaymentId',
390
- stripeCustomerId: 'stripeCustomerId',
391
- amount: 'amount',
392
- currency: 'currency',
393
- status: 'status',
394
- paymentMethod: 'paymentMethod',
395
- description: 'description',
396
- invoiceId: 'invoiceId',
397
- invoiceUrl: 'invoiceUrl',
398
- metadata: 'metadata',
399
- createdAt: 'createdAt'
400
- };
401
-
402
- exports.Prisma.AdminActionLogScalarFieldEnum = {
403
- id: 'id',
404
- action: 'action',
405
- targetUserId: 'targetUserId',
406
- adminEmail: 'adminEmail',
407
- details: 'details',
408
- createdAt: 'createdAt'
409
- };
410
-
411
- exports.Prisma.WorkflowLogScalarFieldEnum = {
412
- id: 'id',
413
- conversationId: 'conversationId',
414
- messageId: 'messageId',
415
- userId: 'userId',
416
- sessionId: 'sessionId',
417
- startedAt: 'startedAt',
418
- completedAt: 'completedAt',
419
- status: 'status',
420
- totalDuration: 'totalDuration',
421
- error: 'error',
422
- metadata: 'metadata'
423
- };
424
-
425
- exports.Prisma.WorkflowStepScalarFieldEnum = {
426
- id: 'id',
427
- workflowId: 'workflowId',
428
- stepName: 'stepName',
429
- stepType: 'stepType',
430
- startedAt: 'startedAt',
431
- completedAt: 'completedAt',
432
- duration: 'duration',
433
- status: 'status',
434
- inputData: 'inputData',
435
- outputData: 'outputData',
436
- error: 'error',
437
- metadata: 'metadata'
438
- };
439
-
440
- exports.Prisma.VerificationTokenScalarFieldEnum = {
441
- id: 'id',
442
- userId: 'userId',
443
- token: 'token',
444
- expires: 'expires',
445
- createdAt: 'createdAt'
446
- };
447
-
448
- exports.Prisma.PasswordResetTokenScalarFieldEnum = {
449
- id: 'id',
450
- userId: 'userId',
451
- token: 'token',
452
- expires: 'expires',
453
- createdAt: 'createdAt'
454
- };
455
-
456
- exports.Prisma.CanvasDocumentScalarFieldEnum = {
457
- id: 'id',
458
- userId: 'userId',
459
- title: 'title',
460
- status: 'status',
461
- createdAt: 'createdAt',
462
- updatedAt: 'updatedAt',
463
- originConversationId: 'originConversationId',
464
- originAnswerId: 'originAnswerId',
465
- currentVersionId: 'currentVersionId'
466
- };
467
-
468
- exports.Prisma.CanvasDocumentVersionScalarFieldEnum = {
469
- id: 'id',
470
- documentId: 'documentId',
471
- versionNumber: 'versionNumber',
472
- title: 'title',
473
- markdownContent: 'markdownContent',
474
- createdAt: 'createdAt',
475
- createdBy: 'createdBy',
476
- regenerationPrompt: 'regenerationPrompt',
477
- parentVersionId: 'parentVersionId'
478
- };
479
-
480
- exports.Prisma.FolderScalarFieldEnum = {
481
- id: 'id',
482
- name: 'name',
483
- description: 'description',
484
- color: 'color',
485
- icon: 'icon',
486
- ownerId: 'ownerId',
487
- parentId: 'parentId',
488
- rootFolderId: 'rootFolderId',
489
- path: 'path',
490
- depth: 'depth',
491
- sortOrder: 'sortOrder',
492
- isArchived: 'isArchived',
493
- createdAt: 'createdAt',
494
- updatedAt: 'updatedAt'
495
- };
496
-
497
- exports.Prisma.FolderItemScalarFieldEnum = {
498
- id: 'id',
499
- folderId: 'folderId',
500
- entityType: 'entityType',
501
- entityId: 'entityId',
502
- displayName: 'displayName',
503
- notes: 'notes',
504
- rootFolderId: 'rootFolderId',
505
- addedById: 'addedById',
506
- sortOrder: 'sortOrder',
507
- createdAt: 'createdAt',
508
- updatedAt: 'updatedAt'
509
- };
510
-
511
- exports.Prisma.FolderActivityScalarFieldEnum = {
512
- id: 'id',
513
- folderId: 'folderId',
514
- rootFolderId: 'rootFolderId',
515
- activityType: 'activityType',
516
- userId: 'userId',
517
- content: 'content',
518
- metadata: 'metadata',
519
- relatedItemId: 'relatedItemId',
520
- createdAt: 'createdAt'
521
- };
522
-
523
- exports.Prisma.FolderShareScalarFieldEnum = {
524
- id: 'id',
525
- folderId: 'folderId',
526
- userId: 'userId',
527
- organizationId: 'organizationId',
528
- permission: 'permission',
529
- sharedById: 'sharedById',
530
- sharedAt: 'sharedAt',
531
- expiresAt: 'expiresAt'
532
- };
533
-
534
- exports.Prisma.SortOrder = {
535
- asc: 'asc',
536
- desc: 'desc'
537
- };
538
-
539
- exports.Prisma.NullableJsonNullValueInput = {
540
- DbNull: Prisma.DbNull,
541
- JsonNull: Prisma.JsonNull
542
- };
543
-
544
- exports.Prisma.JsonNullValueInput = {
545
- JsonNull: Prisma.JsonNull
546
- };
547
-
548
- exports.Prisma.QueryMode = {
549
- default: 'default',
550
- insensitive: 'insensitive'
551
- };
552
-
553
- exports.Prisma.NullsOrder = {
554
- first: 'first',
555
- last: 'last'
556
- };
557
-
558
- exports.Prisma.JsonNullValueFilter = {
559
- DbNull: Prisma.DbNull,
560
- JsonNull: Prisma.JsonNull,
561
- AnyNull: Prisma.AnyNull
562
- };
563
- exports.SubscriptionTier = exports.$Enums.SubscriptionTier = {
564
- FREE: 'FREE',
565
- LAWYER: 'LAWYER',
566
- LAWYER_PRO: 'LAWYER_PRO',
567
- LAW_FIRM: 'LAW_FIRM',
568
- ENTERPRISE: 'ENTERPRISE'
569
- };
570
-
571
- exports.ApprovalStatus = exports.$Enums.ApprovalStatus = {
572
- PENDING: 'PENDING',
573
- APPROVED: 'APPROVED',
574
- REJECTED: 'REJECTED'
575
- };
576
-
577
- exports.MemberRole = exports.$Enums.MemberRole = {
578
- OWNER: 'OWNER',
579
- ADMIN: 'ADMIN',
580
- MEMBER: 'MEMBER'
581
- };
582
-
583
- exports.Role = exports.$Enums.Role = {
584
- USER: 'USER',
585
- ASSISTANT: 'ASSISTANT',
586
- SYSTEM: 'SYSTEM'
587
- };
588
-
589
- exports.FeedbackRating = exports.$Enums.FeedbackRating = {
590
- LIKE: 'LIKE',
591
- DISLIKE: 'DISLIKE',
592
- NEUTRAL: 'NEUTRAL'
593
- };
594
-
595
- exports.ReferenceType = exports.$Enums.ReferenceType = {
596
- LAW: 'LAW',
597
- CASE: 'CASE',
598
- REGULATION: 'REGULATION',
599
- DOCUMENT: 'DOCUMENT',
600
- OTHER: 'OTHER'
601
- };
602
-
603
- exports.SubscriptionStatus = exports.$Enums.SubscriptionStatus = {
604
- ACTIVE: 'ACTIVE',
605
- CANCELED: 'CANCELED',
606
- INCOMPLETE: 'INCOMPLETE',
607
- INCOMPLETE_EXPIRED: 'INCOMPLETE_EXPIRED',
608
- PAST_DUE: 'PAST_DUE',
609
- TRIALING: 'TRIALING',
610
- UNPAID: 'UNPAID',
611
- PAUSED: 'PAUSED'
612
- };
613
-
614
- exports.BillingInterval = exports.$Enums.BillingInterval = {
615
- MONTHLY: 'MONTHLY',
616
- YEARLY: 'YEARLY'
617
- };
618
-
619
- exports.WorkflowStatus = exports.$Enums.WorkflowStatus = {
620
- IN_PROGRESS: 'IN_PROGRESS',
621
- COMPLETED: 'COMPLETED',
622
- FAILED: 'FAILED',
623
- CANCELLED: 'CANCELLED'
624
- };
625
-
626
- exports.StepType = exports.$Enums.StepType = {
627
- CLASSIFICATION: 'CLASSIFICATION',
628
- RAG_RETRIEVAL: 'RAG_RETRIEVAL',
629
- AI_PROCESSING: 'AI_PROCESSING',
630
- RESPONSE_GENERATION: 'RESPONSE_GENERATION',
631
- DATA_PERSISTENCE: 'DATA_PERSISTENCE',
632
- ERROR_HANDLING: 'ERROR_HANDLING'
633
- };
634
-
635
- exports.StepStatus = exports.$Enums.StepStatus = {
636
- IN_PROGRESS: 'IN_PROGRESS',
637
- COMPLETED: 'COMPLETED',
638
- FAILED: 'FAILED',
639
- SKIPPED: 'SKIPPED'
640
- };
641
-
642
- exports.DocumentStatus = exports.$Enums.DocumentStatus = {
643
- DRAFT: 'DRAFT',
644
- SAVED: 'SAVED',
645
- ARCHIVED: 'ARCHIVED'
646
- };
647
-
648
- exports.FolderItemType = exports.$Enums.FolderItemType = {
649
- CONVERSATION: 'CONVERSATION',
650
- CANVAS_DOCUMENT: 'CANVAS_DOCUMENT',
651
- REFERENCE: 'REFERENCE',
652
- ATTACHMENT: 'ATTACHMENT'
653
- };
654
-
655
- exports.FolderActivityType = exports.$Enums.FolderActivityType = {
656
- FOLDER_CREATED: 'FOLDER_CREATED',
657
- FOLDER_UPDATED: 'FOLDER_UPDATED',
658
- FOLDER_MOVED: 'FOLDER_MOVED',
659
- FOLDER_ARCHIVED: 'FOLDER_ARCHIVED',
660
- ITEM_ADDED: 'ITEM_ADDED',
661
- ITEM_REMOVED: 'ITEM_REMOVED',
662
- ITEM_UPDATED: 'ITEM_UPDATED',
663
- SHARE_ADDED: 'SHARE_ADDED',
664
- SHARE_REMOVED: 'SHARE_REMOVED',
665
- USER_MESSAGE: 'USER_MESSAGE',
666
- USER_NOTE: 'USER_NOTE'
667
- };
668
-
669
- exports.FolderPermission = exports.$Enums.FolderPermission = {
670
- VIEW: 'VIEW',
671
- EDIT: 'EDIT',
672
- ADMIN: 'ADMIN'
673
- };
674
-
675
- exports.Prisma.ModelName = {
676
- Account: 'Account',
677
- User: 'User',
678
- UserApprovalRequest: 'UserApprovalRequest',
679
- Organization: 'Organization',
680
- OrganizationMember: 'OrganizationMember',
681
- OrganizationInvite: 'OrganizationInvite',
682
- Conversation: 'Conversation',
683
- Answer: 'Answer',
684
- MessageFile: 'MessageFile',
685
- AnswerMetrics: 'AnswerMetrics',
686
- Feedback: 'Feedback',
687
- Reference: 'Reference',
688
- PageView: 'PageView',
689
- Session: 'Session',
690
- StripeCustomer: 'StripeCustomer',
691
- StripeSubscription: 'StripeSubscription',
692
- StripeEvent: 'StripeEvent',
693
- StripePayment: 'StripePayment',
694
- AdminActionLog: 'AdminActionLog',
695
- WorkflowLog: 'WorkflowLog',
696
- WorkflowStep: 'WorkflowStep',
697
- VerificationToken: 'VerificationToken',
698
- PasswordResetToken: 'PasswordResetToken',
699
- CanvasDocument: 'CanvasDocument',
700
- CanvasDocumentVersion: 'CanvasDocumentVersion',
701
- Folder: 'Folder',
702
- FolderItem: 'FolderItem',
703
- FolderActivity: 'FolderActivity',
704
- FolderShare: 'FolderShare'
705
- };
706
-
707
- /**
708
- * This is a stub Prisma Client that will error at runtime if called.
709
- */
710
- class PrismaClient {
711
- constructor() {
712
- return new Proxy(this, {
713
- get(target, prop) {
714
- let message
715
- const runtime = getRuntime()
716
- if (runtime.isEdge) {
717
- message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
718
- - Use Prisma Accelerate: https://pris.ly/d/accelerate
719
- - Use Driver Adapters: https://pris.ly/d/driver-adapters
720
- `;
721
- } else {
722
- message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
723
- }
724
-
725
- message += `
726
- If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
727
-
728
- throw new Error(message)
729
- }
730
- })
731
- }
732
- }
733
-
734
- exports.PrismaClient = PrismaClient
735
-
736
- Object.assign(exports, Prisma)