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