document-drive 4.0.1 → 4.1.0-dev.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 (264) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +2 -2
  4. package/dist/index.js.map +1 -1
  5. package/dist/prisma/schema.prisma +1 -2
  6. package/dist/src/drive-document-model/gen/document-model.js +3 -3
  7. package/dist/src/drive-document-model/gen/document-model.js.map +1 -1
  8. package/dist/src/drive-document-model/gen/drive/actions.d.ts +9 -9
  9. package/dist/src/drive-document-model/gen/drive/actions.d.ts.map +1 -1
  10. package/dist/src/drive-document-model/gen/node/actions.d.ts +8 -8
  11. package/dist/src/drive-document-model/gen/node/actions.d.ts.map +1 -1
  12. package/dist/src/drive-document-model/gen/node/creators.d.ts +6 -2
  13. package/dist/src/drive-document-model/gen/node/creators.d.ts.map +1 -1
  14. package/dist/src/drive-document-model/gen/node/creators.js +8 -1
  15. package/dist/src/drive-document-model/gen/node/creators.js.map +1 -1
  16. package/dist/src/drive-document-model/gen/reducer.d.ts.map +1 -1
  17. package/dist/src/drive-document-model/gen/reducer.js.map +1 -1
  18. package/dist/src/drive-document-model/gen/schema/types.d.ts +1 -14
  19. package/dist/src/drive-document-model/gen/schema/types.d.ts.map +1 -1
  20. package/dist/src/drive-document-model/gen/schema/zod.d.ts +1 -5
  21. package/dist/src/drive-document-model/gen/schema/zod.d.ts.map +1 -1
  22. package/dist/src/drive-document-model/gen/schema/zod.js +0 -12
  23. package/dist/src/drive-document-model/gen/schema/zod.js.map +1 -1
  24. package/dist/src/drive-document-model/gen/types.d.ts +13 -4
  25. package/dist/src/drive-document-model/gen/types.d.ts.map +1 -1
  26. package/dist/src/drive-document-model/gen/types.js.map +1 -1
  27. package/dist/src/drive-document-model/module.d.ts +2 -1
  28. package/dist/src/drive-document-model/module.d.ts.map +1 -1
  29. package/dist/src/drive-document-model/src/reducers/node.d.ts.map +1 -1
  30. package/dist/src/drive-document-model/src/reducers/node.js +1 -25
  31. package/dist/src/drive-document-model/src/reducers/node.js.map +1 -1
  32. package/dist/src/drive-document-model/src/tests/actions.test.js +1 -23
  33. package/dist/src/drive-document-model/src/tests/actions.test.js.map +1 -1
  34. package/dist/src/drive-document-model/src/tests/base.test.js +0 -32
  35. package/dist/src/drive-document-model/src/tests/base.test.js.map +1 -1
  36. package/dist/src/drive-document-model/src/tests/utils.test.js +7 -37
  37. package/dist/src/drive-document-model/src/tests/utils.test.js.map +1 -1
  38. package/dist/src/drive-document-model/src/utils.d.ts +2 -8
  39. package/dist/src/drive-document-model/src/utils.d.ts.map +1 -1
  40. package/dist/src/drive-document-model/src/utils.js +6 -55
  41. package/dist/src/drive-document-model/src/utils.js.map +1 -1
  42. package/dist/src/processors/types.d.ts +2 -1
  43. package/dist/src/processors/types.d.ts.map +1 -1
  44. package/dist/src/queue/base.d.ts +6 -27
  45. package/dist/src/queue/base.d.ts.map +1 -1
  46. package/dist/src/queue/base.js +15 -203
  47. package/dist/src/queue/base.js.map +1 -1
  48. package/dist/src/queue/event.d.ts +41 -0
  49. package/dist/src/queue/event.d.ts.map +1 -0
  50. package/dist/src/queue/event.js +222 -0
  51. package/dist/src/queue/event.js.map +1 -0
  52. package/dist/src/queue/redis.d.ts +1 -27
  53. package/dist/src/queue/redis.d.ts.map +1 -1
  54. package/dist/src/queue/redis.js +122 -110
  55. package/dist/src/queue/redis.js.map +1 -1
  56. package/dist/src/queue/types.d.ts +18 -12
  57. package/dist/src/queue/types.d.ts.map +1 -1
  58. package/dist/src/queue/types.js +3 -0
  59. package/dist/src/queue/types.js.map +1 -1
  60. package/dist/src/server/base-server.d.ts +87 -11
  61. package/dist/src/server/base-server.d.ts.map +1 -1
  62. package/dist/src/server/base-server.js +549 -250
  63. package/dist/src/server/base-server.js.map +1 -1
  64. package/dist/src/server/builder.js +2 -2
  65. package/dist/src/server/builder.js.map +1 -1
  66. package/dist/src/server/error.d.ts +3 -3
  67. package/dist/src/server/error.d.ts.map +1 -1
  68. package/dist/src/server/error.js +2 -2
  69. package/dist/src/server/error.js.map +1 -1
  70. package/dist/src/server/listener/listener-manager.d.ts +5 -6
  71. package/dist/src/server/listener/listener-manager.d.ts.map +1 -1
  72. package/dist/src/server/listener/listener-manager.js +62 -79
  73. package/dist/src/server/listener/listener-manager.js.map +1 -1
  74. package/dist/src/server/listener/transmitter/internal.d.ts +3 -3
  75. package/dist/src/server/listener/transmitter/internal.d.ts.map +1 -1
  76. package/dist/src/server/listener/transmitter/internal.js +18 -13
  77. package/dist/src/server/listener/transmitter/internal.js.map +1 -1
  78. package/dist/src/server/listener/transmitter/pull-responder.d.ts.map +1 -1
  79. package/dist/src/server/listener/transmitter/pull-responder.js +14 -8
  80. package/dist/src/server/listener/transmitter/pull-responder.js.map +1 -1
  81. package/dist/src/server/listener/transmitter/switchboard-push.d.ts.map +1 -1
  82. package/dist/src/server/listener/transmitter/switchboard-push.js +13 -8
  83. package/dist/src/server/listener/transmitter/switchboard-push.js.map +1 -1
  84. package/dist/src/server/sync-manager.d.ts +8 -10
  85. package/dist/src/server/sync-manager.d.ts.map +1 -1
  86. package/dist/src/server/sync-manager.js +62 -147
  87. package/dist/src/server/sync-manager.js.map +1 -1
  88. package/dist/src/server/sync-unit-map.d.ts +137 -0
  89. package/dist/src/server/sync-unit-map.d.ts.map +1 -0
  90. package/dist/src/server/sync-unit-map.js +234 -0
  91. package/dist/src/server/sync-unit-map.js.map +1 -0
  92. package/dist/src/server/types.d.ts +116 -33
  93. package/dist/src/server/types.d.ts.map +1 -1
  94. package/dist/src/server/types.js.map +1 -1
  95. package/dist/src/server/utils.d.ts +10 -1
  96. package/dist/src/server/utils.d.ts.map +1 -1
  97. package/dist/src/server/utils.js +44 -1
  98. package/dist/src/server/utils.js.map +1 -1
  99. package/dist/src/storage/browser.d.ts +7 -2
  100. package/dist/src/storage/browser.d.ts.map +1 -1
  101. package/dist/src/storage/browser.js +80 -22
  102. package/dist/src/storage/browser.js.map +1 -1
  103. package/dist/src/storage/filesystem.d.ts +7 -2
  104. package/dist/src/storage/filesystem.d.ts.map +1 -1
  105. package/dist/src/storage/filesystem.js +79 -22
  106. package/dist/src/storage/filesystem.js.map +1 -1
  107. package/dist/src/storage/memory.d.ts +7 -2
  108. package/dist/src/storage/memory.d.ts.map +1 -1
  109. package/dist/src/storage/memory.js +76 -22
  110. package/dist/src/storage/memory.js.map +1 -1
  111. package/dist/src/storage/prisma/client/edge.js +5 -4
  112. package/dist/src/storage/prisma/client/index-browser.js +2 -1
  113. package/dist/src/storage/prisma/client/index.d.ts +58 -249
  114. package/dist/src/storage/prisma/client/index.js +5 -4
  115. package/dist/src/storage/prisma/client/package.json +1 -1
  116. package/dist/src/storage/prisma/client/schema.prisma +2 -3
  117. package/dist/src/storage/prisma/client/wasm.js +2 -1
  118. package/dist/src/storage/prisma/prisma.d.ts +9 -4
  119. package/dist/src/storage/prisma/prisma.d.ts.map +1 -1
  120. package/dist/src/storage/prisma/prisma.js +119 -51
  121. package/dist/src/storage/prisma/prisma.js.map +1 -1
  122. package/dist/src/storage/types.d.ts +43 -4
  123. package/dist/src/storage/types.d.ts.map +1 -1
  124. package/dist/src/storage/utils.d.ts +3 -0
  125. package/dist/src/storage/utils.d.ts.map +1 -1
  126. package/dist/src/storage/utils.js +14 -0
  127. package/dist/src/storage/utils.js.map +1 -1
  128. package/dist/src/utils/gql-transformations.d.ts +14 -5
  129. package/dist/src/utils/gql-transformations.d.ts.map +1 -1
  130. package/dist/src/utils/gql-transformations.js +1 -0
  131. package/dist/src/utils/gql-transformations.js.map +1 -1
  132. package/dist/src/utils/migrations.d.ts.map +1 -1
  133. package/dist/src/utils/migrations.js.map +1 -1
  134. package/dist/src/utils/misc.d.ts +2 -0
  135. package/dist/src/utils/misc.d.ts.map +1 -1
  136. package/dist/src/utils/misc.js +4 -0
  137. package/dist/src/utils/misc.js.map +1 -1
  138. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  139. package/package.json +4 -4
  140. package/dist/test/cache.test.d.ts +0 -2
  141. package/dist/test/cache.test.d.ts.map +0 -1
  142. package/dist/test/cache.test.js +0 -281
  143. package/dist/test/cache.test.js.map +0 -1
  144. package/dist/test/default-remote-drives.test.d.ts +0 -2
  145. package/dist/test/default-remote-drives.test.d.ts.map +0 -1
  146. package/dist/test/default-remote-drives.test.js +0 -446
  147. package/dist/test/default-remote-drives.test.js.map +0 -1
  148. package/dist/test/document-helpers/addUndo.test.d.ts +0 -2
  149. package/dist/test/document-helpers/addUndo.test.d.ts.map +0 -1
  150. package/dist/test/document-helpers/addUndo.test.js +0 -120
  151. package/dist/test/document-helpers/addUndo.test.js.map +0 -1
  152. package/dist/test/document-helpers/attachBranch.test.d.ts +0 -2
  153. package/dist/test/document-helpers/attachBranch.test.d.ts.map +0 -1
  154. package/dist/test/document-helpers/attachBranch.test.js +0 -333
  155. package/dist/test/document-helpers/attachBranch.test.js.map +0 -1
  156. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts +0 -2
  157. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.d.ts.map +0 -1
  158. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js +0 -252
  159. package/dist/test/document-helpers/checkCleanedOperationsIntegrity.test.js.map +0 -1
  160. package/dist/test/document-helpers/garbageCollect.test.d.ts +0 -2
  161. package/dist/test/document-helpers/garbageCollect.test.d.ts.map +0 -1
  162. package/dist/test/document-helpers/garbageCollect.test.js +0 -136
  163. package/dist/test/document-helpers/garbageCollect.test.js.map +0 -1
  164. package/dist/test/document-helpers/groupOperationsByScope.test.d.ts +0 -2
  165. package/dist/test/document-helpers/groupOperationsByScope.test.d.ts.map +0 -1
  166. package/dist/test/document-helpers/groupOperationsByScope.test.js +0 -98
  167. package/dist/test/document-helpers/groupOperationsByScope.test.js.map +0 -1
  168. package/dist/test/document-helpers/merge.test.d.ts +0 -2
  169. package/dist/test/document-helpers/merge.test.d.ts.map +0 -1
  170. package/dist/test/document-helpers/merge.test.js +0 -757
  171. package/dist/test/document-helpers/merge.test.js.map +0 -1
  172. package/dist/test/document-helpers/nextSkipNumber.test.d.ts +0 -2
  173. package/dist/test/document-helpers/nextSkipNumber.test.d.ts.map +0 -1
  174. package/dist/test/document-helpers/nextSkipNumber.test.js +0 -123
  175. package/dist/test/document-helpers/nextSkipNumber.test.js.map +0 -1
  176. package/dist/test/document-helpers/prepareOperations.test.d.ts +0 -2
  177. package/dist/test/document-helpers/prepareOperations.test.d.ts.map +0 -1
  178. package/dist/test/document-helpers/prepareOperations.test.js +0 -304
  179. package/dist/test/document-helpers/prepareOperations.test.js.map +0 -1
  180. package/dist/test/document-helpers/removeExistingOperations.test.d.ts +0 -2
  181. package/dist/test/document-helpers/removeExistingOperations.test.d.ts.map +0 -1
  182. package/dist/test/document-helpers/removeExistingOperations.test.js +0 -150
  183. package/dist/test/document-helpers/removeExistingOperations.test.js.map +0 -1
  184. package/dist/test/document-helpers/reshuffleByTimestamp.test.d.ts +0 -2
  185. package/dist/test/document-helpers/reshuffleByTimestamp.test.d.ts.map +0 -1
  186. package/dist/test/document-helpers/reshuffleByTimestamp.test.js +0 -148
  187. package/dist/test/document-helpers/reshuffleByTimestamp.test.js.map +0 -1
  188. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts +0 -2
  189. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.d.ts.map +0 -1
  190. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js +0 -200
  191. package/dist/test/document-helpers/reshuffleByTimestampAndIndex.test.js.map +0 -1
  192. package/dist/test/document-helpers/sortOperations.test.d.ts +0 -2
  193. package/dist/test/document-helpers/sortOperations.test.d.ts.map +0 -1
  194. package/dist/test/document-helpers/sortOperations.test.js +0 -101
  195. package/dist/test/document-helpers/sortOperations.test.js.map +0 -1
  196. package/dist/test/document-helpers/split.test.d.ts +0 -2
  197. package/dist/test/document-helpers/split.test.d.ts.map +0 -1
  198. package/dist/test/document-helpers/split.test.js +0 -121
  199. package/dist/test/document-helpers/split.test.js.map +0 -1
  200. package/dist/test/document-helpers/utils.d.ts +0 -8
  201. package/dist/test/document-helpers/utils.d.ts.map +0 -1
  202. package/dist/test/document-helpers/utils.js +0 -22
  203. package/dist/test/document-helpers/utils.js.map +0 -1
  204. package/dist/test/drive-operations.test.d.ts +0 -2
  205. package/dist/test/drive-operations.test.d.ts.map +0 -1
  206. package/dist/test/drive-operations.test.js +0 -145
  207. package/dist/test/drive-operations.test.js.map +0 -1
  208. package/dist/test/graphql.test.d.ts +0 -2
  209. package/dist/test/graphql.test.d.ts.map +0 -1
  210. package/dist/test/graphql.test.js +0 -10
  211. package/dist/test/graphql.test.js.map +0 -1
  212. package/dist/test/internal-listener.test.d.ts +0 -2
  213. package/dist/test/internal-listener.test.d.ts.map +0 -1
  214. package/dist/test/internal-listener.test.js +0 -277
  215. package/dist/test/internal-listener.test.js.map +0 -1
  216. package/dist/test/queue.test.d.ts +0 -2
  217. package/dist/test/queue.test.d.ts.map +0 -1
  218. package/dist/test/queue.test.js +0 -338
  219. package/dist/test/queue.test.js.map +0 -1
  220. package/dist/test/read-mode.test.d.ts +0 -2
  221. package/dist/test/read-mode.test.d.ts.map +0 -1
  222. package/dist/test/read-mode.test.js +0 -578
  223. package/dist/test/read-mode.test.js.map +0 -1
  224. package/dist/test/server/driveOperationsConflictResolution.test.d.ts +0 -2
  225. package/dist/test/server/driveOperationsConflictResolution.test.d.ts.map +0 -1
  226. package/dist/test/server/driveOperationsConflictResolution.test.js +0 -460
  227. package/dist/test/server/driveOperationsConflictResolution.test.js.map +0 -1
  228. package/dist/test/server/mergeOperations.test.d.ts +0 -2
  229. package/dist/test/server/mergeOperations.test.d.ts.map +0 -1
  230. package/dist/test/server/mergeOperations.test.js +0 -107
  231. package/dist/test/server/mergeOperations.test.js.map +0 -1
  232. package/dist/test/server/processOperations.test.d.ts +0 -2
  233. package/dist/test/server/processOperations.test.d.ts.map +0 -1
  234. package/dist/test/server/processOperations.test.js +0 -380
  235. package/dist/test/server/processOperations.test.js.map +0 -1
  236. package/dist/test/server.test.d.ts +0 -2
  237. package/dist/test/server.test.d.ts.map +0 -1
  238. package/dist/test/server.test.js +0 -899
  239. package/dist/test/server.test.js.map +0 -1
  240. package/dist/test/signature-migration.test.d.ts +0 -2
  241. package/dist/test/signature-migration.test.d.ts.map +0 -1
  242. package/dist/test/signature-migration.test.js +0 -239
  243. package/dist/test/signature-migration.test.js.map +0 -1
  244. package/dist/test/storage.test.d.ts +0 -2
  245. package/dist/test/storage.test.d.ts.map +0 -1
  246. package/dist/test/storage.test.js +0 -523
  247. package/dist/test/storage.test.js.map +0 -1
  248. package/dist/test/utils.d.ts +0 -48
  249. package/dist/test/utils.d.ts.map +0 -1
  250. package/dist/test/utils.js +0 -133
  251. package/dist/test/utils.js.map +0 -1
  252. package/dist/test/utils.test.d.ts +0 -2
  253. package/dist/test/utils.test.d.ts.map +0 -1
  254. package/dist/test/utils.test.js +0 -89
  255. package/dist/test/utils.test.js.map +0 -1
  256. package/dist/test/vitest-setup.d.ts +0 -2
  257. package/dist/test/vitest-setup.d.ts.map +0 -1
  258. package/dist/test/vitest-setup.js +0 -5
  259. package/dist/test/vitest-setup.js.map +0 -1
  260. package/dist/tsconfig.tsbuildinfo +0 -1
  261. package/dist/vitest.config.d.ts +0 -3
  262. package/dist/vitest.config.d.ts.map +0 -1
  263. package/dist/vitest.config.js +0 -27
  264. package/dist/vitest.config.js.map +0 -1
@@ -1341,13 +1341,11 @@ export namespace Prisma {
1341
1341
  export type DocumentCountOutputType = {
1342
1342
  operations: number
1343
1343
  synchronizationUnits: number
1344
- driveDocuments: number
1345
1344
  }
1346
1345
 
1347
1346
  export type DocumentCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1348
1347
  operations?: boolean | DocumentCountOutputTypeCountOperationsArgs
1349
1348
  synchronizationUnits?: boolean | DocumentCountOutputTypeCountSynchronizationUnitsArgs
1350
- driveDocuments?: boolean | DocumentCountOutputTypeCountDriveDocumentsArgs
1351
1349
  }
1352
1350
 
1353
1351
  // Custom InputTypes
@@ -1375,13 +1373,6 @@ export namespace Prisma {
1375
1373
  where?: SynchronizationUnitWhereInput
1376
1374
  }
1377
1375
 
1378
- /**
1379
- * DocumentCountOutputType without action
1380
- */
1381
- export type DocumentCountOutputTypeCountDriveDocumentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
1382
- where?: DriveDocumentWhereInput
1383
- }
1384
-
1385
1376
 
1386
1377
  /**
1387
1378
  * Count Type OperationCountOutputType
@@ -2406,6 +2397,7 @@ export namespace Prisma {
2406
2397
  initialState: number
2407
2398
  documentType: number
2408
2399
  meta: number
2400
+ scopes: number
2409
2401
  _all: number
2410
2402
  }
2411
2403
 
@@ -2455,6 +2447,7 @@ export namespace Prisma {
2455
2447
  initialState?: true
2456
2448
  documentType?: true
2457
2449
  meta?: true
2450
+ scopes?: true
2458
2451
  _all?: true
2459
2452
  }
2460
2453
 
@@ -2555,6 +2548,7 @@ export namespace Prisma {
2555
2548
  initialState: string
2556
2549
  documentType: string
2557
2550
  meta: string | null
2551
+ scopes: string[]
2558
2552
  _count: DocumentCountAggregateOutputType | null
2559
2553
  _avg: DocumentAvgAggregateOutputType | null
2560
2554
  _sum: DocumentSumAggregateOutputType | null
@@ -2587,9 +2581,9 @@ export namespace Prisma {
2587
2581
  initialState?: boolean
2588
2582
  documentType?: boolean
2589
2583
  meta?: boolean
2584
+ scopes?: boolean
2590
2585
  operations?: boolean | Document$operationsArgs<ExtArgs>
2591
2586
  synchronizationUnits?: boolean | Document$synchronizationUnitsArgs<ExtArgs>
2592
- driveDocuments?: boolean | Document$driveDocumentsArgs<ExtArgs>
2593
2587
  _count?: boolean | DocumentCountOutputTypeDefaultArgs<ExtArgs>
2594
2588
  }, ExtArgs["result"]["document"]>
2595
2589
 
@@ -2604,6 +2598,7 @@ export namespace Prisma {
2604
2598
  initialState?: boolean
2605
2599
  documentType?: boolean
2606
2600
  meta?: boolean
2601
+ scopes?: boolean
2607
2602
  }, ExtArgs["result"]["document"]>
2608
2603
 
2609
2604
  export type DocumentSelectScalar = {
@@ -2617,12 +2612,12 @@ export namespace Prisma {
2617
2612
  initialState?: boolean
2618
2613
  documentType?: boolean
2619
2614
  meta?: boolean
2615
+ scopes?: boolean
2620
2616
  }
2621
2617
 
2622
2618
  export type DocumentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2623
2619
  operations?: boolean | Document$operationsArgs<ExtArgs>
2624
2620
  synchronizationUnits?: boolean | Document$synchronizationUnitsArgs<ExtArgs>
2625
- driveDocuments?: boolean | Document$driveDocumentsArgs<ExtArgs>
2626
2621
  _count?: boolean | DocumentCountOutputTypeDefaultArgs<ExtArgs>
2627
2622
  }
2628
2623
  export type DocumentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
@@ -2632,7 +2627,6 @@ export namespace Prisma {
2632
2627
  objects: {
2633
2628
  operations: Prisma.$OperationPayload<ExtArgs>[]
2634
2629
  synchronizationUnits: Prisma.$SynchronizationUnitPayload<ExtArgs>[]
2635
- driveDocuments: Prisma.$DriveDocumentPayload<ExtArgs>[]
2636
2630
  }
2637
2631
  scalars: $Extensions.GetPayloadResult<{
2638
2632
  id: string
@@ -2645,6 +2639,7 @@ export namespace Prisma {
2645
2639
  initialState: string
2646
2640
  documentType: string
2647
2641
  meta: string | null
2642
+ scopes: string[]
2648
2643
  }, ExtArgs["result"]["document"]>
2649
2644
  composites: {}
2650
2645
  }
@@ -3011,7 +3006,6 @@ export namespace Prisma {
3011
3006
  readonly [Symbol.toStringTag]: "PrismaPromise"
3012
3007
  operations<T extends Document$operationsArgs<ExtArgs> = {}>(args?: Subset<T, Document$operationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findMany"> | Null>
3013
3008
  synchronizationUnits<T extends Document$synchronizationUnitsArgs<ExtArgs> = {}>(args?: Subset<T, Document$synchronizationUnitsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SynchronizationUnitPayload<ExtArgs>, T, "findMany"> | Null>
3014
- driveDocuments<T extends Document$driveDocumentsArgs<ExtArgs> = {}>(args?: Subset<T, Document$driveDocumentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$DriveDocumentPayload<ExtArgs>, T, "findMany"> | Null>
3015
3009
  /**
3016
3010
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3017
3011
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3051,6 +3045,7 @@ export namespace Prisma {
3051
3045
  readonly initialState: FieldRef<"Document", 'String'>
3052
3046
  readonly documentType: FieldRef<"Document", 'String'>
3053
3047
  readonly meta: FieldRef<"Document", 'String'>
3048
+ readonly scopes: FieldRef<"Document", 'String[]'>
3054
3049
  }
3055
3050
 
3056
3051
 
@@ -3404,26 +3399,6 @@ export namespace Prisma {
3404
3399
  distinct?: SynchronizationUnitScalarFieldEnum | SynchronizationUnitScalarFieldEnum[]
3405
3400
  }
3406
3401
 
3407
- /**
3408
- * Document.driveDocuments
3409
- */
3410
- export type Document$driveDocumentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3411
- /**
3412
- * Select specific fields to fetch from the DriveDocument
3413
- */
3414
- select?: DriveDocumentSelect<ExtArgs> | null
3415
- /**
3416
- * Choose, which related nodes to fetch as well
3417
- */
3418
- include?: DriveDocumentInclude<ExtArgs> | null
3419
- where?: DriveDocumentWhereInput
3420
- orderBy?: DriveDocumentOrderByWithRelationInput | DriveDocumentOrderByWithRelationInput[]
3421
- cursor?: DriveDocumentWhereUniqueInput
3422
- take?: number
3423
- skip?: number
3424
- distinct?: DriveDocumentScalarFieldEnum | DriveDocumentScalarFieldEnum[]
3425
- }
3426
-
3427
3402
  /**
3428
3403
  * Document without action
3429
3404
  */
@@ -3580,14 +3555,12 @@ export namespace Prisma {
3580
3555
  driveId?: boolean
3581
3556
  documentId?: boolean
3582
3557
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3583
- document?: boolean | DocumentDefaultArgs<ExtArgs>
3584
3558
  }, ExtArgs["result"]["driveDocument"]>
3585
3559
 
3586
3560
  export type DriveDocumentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
3587
3561
  driveId?: boolean
3588
3562
  documentId?: boolean
3589
3563
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3590
- document?: boolean | DocumentDefaultArgs<ExtArgs>
3591
3564
  }, ExtArgs["result"]["driveDocument"]>
3592
3565
 
3593
3566
  export type DriveDocumentSelectScalar = {
@@ -3597,18 +3570,15 @@ export namespace Prisma {
3597
3570
 
3598
3571
  export type DriveDocumentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3599
3572
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3600
- document?: boolean | DocumentDefaultArgs<ExtArgs>
3601
3573
  }
3602
3574
  export type DriveDocumentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3603
3575
  drive?: boolean | DriveDefaultArgs<ExtArgs>
3604
- document?: boolean | DocumentDefaultArgs<ExtArgs>
3605
3576
  }
3606
3577
 
3607
3578
  export type $DriveDocumentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3608
3579
  name: "DriveDocument"
3609
3580
  objects: {
3610
3581
  drive: Prisma.$DrivePayload<ExtArgs>
3611
- document: Prisma.$DocumentPayload<ExtArgs>
3612
3582
  }
3613
3583
  scalars: $Extensions.GetPayloadResult<{
3614
3584
  driveId: string
@@ -3978,7 +3948,6 @@ export namespace Prisma {
3978
3948
  export interface Prisma__DriveDocumentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> extends Prisma.PrismaPromise<T> {
3979
3949
  readonly [Symbol.toStringTag]: "PrismaPromise"
3980
3950
  drive<T extends DriveDefaultArgs<ExtArgs> = {}>(args?: Subset<T, DriveDefaultArgs<ExtArgs>>): Prisma__DriveClient<$Result.GetResult<Prisma.$DrivePayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
3981
- document<T extends DocumentDefaultArgs<ExtArgs> = {}>(args?: Subset<T, DocumentDefaultArgs<ExtArgs>>): Prisma__DocumentClient<$Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findUniqueOrThrow"> | Null, Null, ExtArgs>
3982
3951
  /**
3983
3952
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3984
3953
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -7426,7 +7395,8 @@ export namespace Prisma {
7426
7395
  name: 'name',
7427
7396
  initialState: 'initialState',
7428
7397
  documentType: 'documentType',
7429
- meta: 'meta'
7398
+ meta: 'meta',
7399
+ scopes: 'scopes'
7430
7400
  };
7431
7401
 
7432
7402
  export type DocumentScalarFieldEnum = (typeof DocumentScalarFieldEnum)[keyof typeof DocumentScalarFieldEnum]
@@ -7666,9 +7636,9 @@ export namespace Prisma {
7666
7636
  initialState?: StringFilter<"Document"> | string
7667
7637
  documentType?: StringFilter<"Document"> | string
7668
7638
  meta?: StringNullableFilter<"Document"> | string | null
7639
+ scopes?: StringNullableListFilter<"Document">
7669
7640
  operations?: OperationListRelationFilter
7670
7641
  synchronizationUnits?: SynchronizationUnitListRelationFilter
7671
- driveDocuments?: DriveDocumentListRelationFilter
7672
7642
  }
7673
7643
 
7674
7644
  export type DocumentOrderByWithRelationInput = {
@@ -7682,9 +7652,9 @@ export namespace Prisma {
7682
7652
  initialState?: SortOrder
7683
7653
  documentType?: SortOrder
7684
7654
  meta?: SortOrderInput | SortOrder
7655
+ scopes?: SortOrder
7685
7656
  operations?: OperationOrderByRelationAggregateInput
7686
7657
  synchronizationUnits?: SynchronizationUnitOrderByRelationAggregateInput
7687
- driveDocuments?: DriveDocumentOrderByRelationAggregateInput
7688
7658
  }
7689
7659
 
7690
7660
  export type DocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -7701,9 +7671,9 @@ export namespace Prisma {
7701
7671
  initialState?: StringFilter<"Document"> | string
7702
7672
  documentType?: StringFilter<"Document"> | string
7703
7673
  meta?: StringNullableFilter<"Document"> | string | null
7674
+ scopes?: StringNullableListFilter<"Document">
7704
7675
  operations?: OperationListRelationFilter
7705
7676
  synchronizationUnits?: SynchronizationUnitListRelationFilter
7706
- driveDocuments?: DriveDocumentListRelationFilter
7707
7677
  }, "id" | "ordinal" | "slug">
7708
7678
 
7709
7679
  export type DocumentOrderByWithAggregationInput = {
@@ -7717,6 +7687,7 @@ export namespace Prisma {
7717
7687
  initialState?: SortOrder
7718
7688
  documentType?: SortOrder
7719
7689
  meta?: SortOrderInput | SortOrder
7690
+ scopes?: SortOrder
7720
7691
  _count?: DocumentCountOrderByAggregateInput
7721
7692
  _avg?: DocumentAvgOrderByAggregateInput
7722
7693
  _max?: DocumentMaxOrderByAggregateInput
@@ -7738,6 +7709,7 @@ export namespace Prisma {
7738
7709
  initialState?: StringWithAggregatesFilter<"Document"> | string
7739
7710
  documentType?: StringWithAggregatesFilter<"Document"> | string
7740
7711
  meta?: StringNullableWithAggregatesFilter<"Document"> | string | null
7712
+ scopes?: StringNullableListFilter<"Document">
7741
7713
  }
7742
7714
 
7743
7715
  export type DriveDocumentWhereInput = {
@@ -7747,14 +7719,12 @@ export namespace Prisma {
7747
7719
  driveId?: StringFilter<"DriveDocument"> | string
7748
7720
  documentId?: StringFilter<"DriveDocument"> | string
7749
7721
  drive?: XOR<DriveRelationFilter, DriveWhereInput>
7750
- document?: XOR<DocumentRelationFilter, DocumentWhereInput>
7751
7722
  }
7752
7723
 
7753
7724
  export type DriveDocumentOrderByWithRelationInput = {
7754
7725
  driveId?: SortOrder
7755
7726
  documentId?: SortOrder
7756
7727
  drive?: DriveOrderByWithRelationInput
7757
- document?: DocumentOrderByWithRelationInput
7758
7728
  }
7759
7729
 
7760
7730
  export type DriveDocumentWhereUniqueInput = Prisma.AtLeast<{
@@ -7765,7 +7735,6 @@ export namespace Prisma {
7765
7735
  driveId?: StringFilter<"DriveDocument"> | string
7766
7736
  documentId?: StringFilter<"DriveDocument"> | string
7767
7737
  drive?: XOR<DriveRelationFilter, DriveWhereInput>
7768
- document?: XOR<DocumentRelationFilter, DocumentWhereInput>
7769
7738
  }, "driveId_documentId">
7770
7739
 
7771
7740
  export type DriveDocumentOrderByWithAggregationInput = {
@@ -8059,9 +8028,9 @@ export namespace Prisma {
8059
8028
  initialState: string
8060
8029
  documentType: string
8061
8030
  meta?: string | null
8031
+ scopes?: DocumentCreatescopesInput | string[]
8062
8032
  operations?: OperationCreateNestedManyWithoutDocumentInput
8063
8033
  synchronizationUnits?: SynchronizationUnitCreateNestedManyWithoutDocumentInput
8064
- driveDocuments?: DriveDocumentCreateNestedManyWithoutDocumentInput
8065
8034
  }
8066
8035
 
8067
8036
  export type DocumentUncheckedCreateInput = {
@@ -8075,9 +8044,9 @@ export namespace Prisma {
8075
8044
  initialState: string
8076
8045
  documentType: string
8077
8046
  meta?: string | null
8047
+ scopes?: DocumentCreatescopesInput | string[]
8078
8048
  operations?: OperationUncheckedCreateNestedManyWithoutDocumentInput
8079
8049
  synchronizationUnits?: SynchronizationUnitUncheckedCreateNestedManyWithoutDocumentInput
8080
- driveDocuments?: DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput
8081
8050
  }
8082
8051
 
8083
8052
  export type DocumentUpdateInput = {
@@ -8090,9 +8059,9 @@ export namespace Prisma {
8090
8059
  initialState?: StringFieldUpdateOperationsInput | string
8091
8060
  documentType?: StringFieldUpdateOperationsInput | string
8092
8061
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8062
+ scopes?: DocumentUpdatescopesInput | string[]
8093
8063
  operations?: OperationUpdateManyWithoutDocumentNestedInput
8094
8064
  synchronizationUnits?: SynchronizationUnitUpdateManyWithoutDocumentNestedInput
8095
- driveDocuments?: DriveDocumentUpdateManyWithoutDocumentNestedInput
8096
8065
  }
8097
8066
 
8098
8067
  export type DocumentUncheckedUpdateInput = {
@@ -8106,9 +8075,9 @@ export namespace Prisma {
8106
8075
  initialState?: StringFieldUpdateOperationsInput | string
8107
8076
  documentType?: StringFieldUpdateOperationsInput | string
8108
8077
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8078
+ scopes?: DocumentUpdatescopesInput | string[]
8109
8079
  operations?: OperationUncheckedUpdateManyWithoutDocumentNestedInput
8110
8080
  synchronizationUnits?: SynchronizationUnitUncheckedUpdateManyWithoutDocumentNestedInput
8111
- driveDocuments?: DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput
8112
8081
  }
8113
8082
 
8114
8083
  export type DocumentCreateManyInput = {
@@ -8122,6 +8091,7 @@ export namespace Prisma {
8122
8091
  initialState: string
8123
8092
  documentType: string
8124
8093
  meta?: string | null
8094
+ scopes?: DocumentCreatescopesInput | string[]
8125
8095
  }
8126
8096
 
8127
8097
  export type DocumentUpdateManyMutationInput = {
@@ -8134,6 +8104,7 @@ export namespace Prisma {
8134
8104
  initialState?: StringFieldUpdateOperationsInput | string
8135
8105
  documentType?: StringFieldUpdateOperationsInput | string
8136
8106
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8107
+ scopes?: DocumentUpdatescopesInput | string[]
8137
8108
  }
8138
8109
 
8139
8110
  export type DocumentUncheckedUpdateManyInput = {
@@ -8147,11 +8118,12 @@ export namespace Prisma {
8147
8118
  initialState?: StringFieldUpdateOperationsInput | string
8148
8119
  documentType?: StringFieldUpdateOperationsInput | string
8149
8120
  meta?: NullableStringFieldUpdateOperationsInput | string | null
8121
+ scopes?: DocumentUpdatescopesInput | string[]
8150
8122
  }
8151
8123
 
8152
8124
  export type DriveDocumentCreateInput = {
8125
+ documentId: string
8153
8126
  drive: DriveCreateNestedOneWithoutDriveDocumentsInput
8154
- document: DocumentCreateNestedOneWithoutDriveDocumentsInput
8155
8127
  }
8156
8128
 
8157
8129
  export type DriveDocumentUncheckedCreateInput = {
@@ -8160,8 +8132,8 @@ export namespace Prisma {
8160
8132
  }
8161
8133
 
8162
8134
  export type DriveDocumentUpdateInput = {
8135
+ documentId?: StringFieldUpdateOperationsInput | string
8163
8136
  drive?: DriveUpdateOneRequiredWithoutDriveDocumentsNestedInput
8164
- document?: DocumentUpdateOneRequiredWithoutDriveDocumentsNestedInput
8165
8137
  }
8166
8138
 
8167
8139
  export type DriveDocumentUncheckedUpdateInput = {
@@ -8175,7 +8147,7 @@ export namespace Prisma {
8175
8147
  }
8176
8148
 
8177
8149
  export type DriveDocumentUpdateManyMutationInput = {
8178
-
8150
+ documentId?: StringFieldUpdateOperationsInput | string
8179
8151
  }
8180
8152
 
8181
8153
  export type DriveDocumentUncheckedUpdateManyInput = {
@@ -8524,6 +8496,14 @@ export namespace Prisma {
8524
8496
  not?: NestedStringNullableFilter<$PrismaModel> | string | null
8525
8497
  }
8526
8498
 
8499
+ export type StringNullableListFilter<$PrismaModel = never> = {
8500
+ equals?: string[] | ListStringFieldRefInput<$PrismaModel> | null
8501
+ has?: string | StringFieldRefInput<$PrismaModel> | null
8502
+ hasEvery?: string[] | ListStringFieldRefInput<$PrismaModel>
8503
+ hasSome?: string[] | ListStringFieldRefInput<$PrismaModel>
8504
+ isEmpty?: boolean
8505
+ }
8506
+
8527
8507
  export type OperationListRelationFilter = {
8528
8508
  every?: OperationWhereInput
8529
8509
  some?: OperationWhereInput
@@ -8560,6 +8540,7 @@ export namespace Prisma {
8560
8540
  initialState?: SortOrder
8561
8541
  documentType?: SortOrder
8562
8542
  meta?: SortOrder
8543
+ scopes?: SortOrder
8563
8544
  }
8564
8545
 
8565
8546
  export type DocumentAvgOrderByAggregateInput = {
@@ -8649,11 +8630,6 @@ export namespace Prisma {
8649
8630
  isNot?: DriveWhereInput
8650
8631
  }
8651
8632
 
8652
- export type DocumentRelationFilter = {
8653
- is?: DocumentWhereInput
8654
- isNot?: DocumentWhereInput
8655
- }
8656
-
8657
8633
  export type DriveDocumentDriveIdDocumentIdCompoundUniqueInput = {
8658
8634
  driveId: string
8659
8635
  documentId: string
@@ -8840,6 +8816,11 @@ export namespace Prisma {
8840
8816
  _max?: NestedBytesNullableFilter<$PrismaModel>
8841
8817
  }
8842
8818
 
8819
+ export type DocumentRelationFilter = {
8820
+ is?: DocumentWhereInput
8821
+ isNot?: DocumentWhereInput
8822
+ }
8823
+
8843
8824
  export type SynchronizationUnitCountOrderByAggregateInput = {
8844
8825
  id?: SortOrder
8845
8826
  documentId?: SortOrder
@@ -8942,6 +8923,10 @@ export namespace Prisma {
8942
8923
  deleteMany?: DriveDocumentScalarWhereInput | DriveDocumentScalarWhereInput[]
8943
8924
  }
8944
8925
 
8926
+ export type DocumentCreatescopesInput = {
8927
+ set: string[]
8928
+ }
8929
+
8945
8930
  export type OperationCreateNestedManyWithoutDocumentInput = {
8946
8931
  create?: XOR<OperationCreateWithoutDocumentInput, OperationUncheckedCreateWithoutDocumentInput> | OperationCreateWithoutDocumentInput[] | OperationUncheckedCreateWithoutDocumentInput[]
8947
8932
  connectOrCreate?: OperationCreateOrConnectWithoutDocumentInput | OperationCreateOrConnectWithoutDocumentInput[]
@@ -8956,13 +8941,6 @@ export namespace Prisma {
8956
8941
  connect?: SynchronizationUnitWhereUniqueInput | SynchronizationUnitWhereUniqueInput[]
8957
8942
  }
8958
8943
 
8959
- export type DriveDocumentCreateNestedManyWithoutDocumentInput = {
8960
- create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
8961
- connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
8962
- createMany?: DriveDocumentCreateManyDocumentInputEnvelope
8963
- connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
8964
- }
8965
-
8966
8944
  export type OperationUncheckedCreateNestedManyWithoutDocumentInput = {
8967
8945
  create?: XOR<OperationCreateWithoutDocumentInput, OperationUncheckedCreateWithoutDocumentInput> | OperationCreateWithoutDocumentInput[] | OperationUncheckedCreateWithoutDocumentInput[]
8968
8946
  connectOrCreate?: OperationCreateOrConnectWithoutDocumentInput | OperationCreateOrConnectWithoutDocumentInput[]
@@ -8977,13 +8955,6 @@ export namespace Prisma {
8977
8955
  connect?: SynchronizationUnitWhereUniqueInput | SynchronizationUnitWhereUniqueInput[]
8978
8956
  }
8979
8957
 
8980
- export type DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput = {
8981
- create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
8982
- connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
8983
- createMany?: DriveDocumentCreateManyDocumentInputEnvelope
8984
- connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
8985
- }
8986
-
8987
8958
  export type DateTimeFieldUpdateOperationsInput = {
8988
8959
  set?: Date | string
8989
8960
  }
@@ -8992,6 +8963,11 @@ export namespace Prisma {
8992
8963
  set?: string | null
8993
8964
  }
8994
8965
 
8966
+ export type DocumentUpdatescopesInput = {
8967
+ set?: string[]
8968
+ push?: string | string[]
8969
+ }
8970
+
8995
8971
  export type OperationUpdateManyWithoutDocumentNestedInput = {
8996
8972
  create?: XOR<OperationCreateWithoutDocumentInput, OperationUncheckedCreateWithoutDocumentInput> | OperationCreateWithoutDocumentInput[] | OperationUncheckedCreateWithoutDocumentInput[]
8997
8973
  connectOrCreate?: OperationCreateOrConnectWithoutDocumentInput | OperationCreateOrConnectWithoutDocumentInput[]
@@ -9020,20 +8996,6 @@ export namespace Prisma {
9020
8996
  deleteMany?: SynchronizationUnitScalarWhereInput | SynchronizationUnitScalarWhereInput[]
9021
8997
  }
9022
8998
 
9023
- export type DriveDocumentUpdateManyWithoutDocumentNestedInput = {
9024
- create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
9025
- connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
9026
- upsert?: DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput | DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput[]
9027
- createMany?: DriveDocumentCreateManyDocumentInputEnvelope
9028
- set?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9029
- disconnect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9030
- delete?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9031
- connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9032
- update?: DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput | DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput[]
9033
- updateMany?: DriveDocumentUpdateManyWithWhereWithoutDocumentInput | DriveDocumentUpdateManyWithWhereWithoutDocumentInput[]
9034
- deleteMany?: DriveDocumentScalarWhereInput | DriveDocumentScalarWhereInput[]
9035
- }
9036
-
9037
8999
  export type IntFieldUpdateOperationsInput = {
9038
9000
  set?: number
9039
9001
  increment?: number
@@ -9070,32 +9032,12 @@ export namespace Prisma {
9070
9032
  deleteMany?: SynchronizationUnitScalarWhereInput | SynchronizationUnitScalarWhereInput[]
9071
9033
  }
9072
9034
 
9073
- export type DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput = {
9074
- create?: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput> | DriveDocumentCreateWithoutDocumentInput[] | DriveDocumentUncheckedCreateWithoutDocumentInput[]
9075
- connectOrCreate?: DriveDocumentCreateOrConnectWithoutDocumentInput | DriveDocumentCreateOrConnectWithoutDocumentInput[]
9076
- upsert?: DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput | DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput[]
9077
- createMany?: DriveDocumentCreateManyDocumentInputEnvelope
9078
- set?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9079
- disconnect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9080
- delete?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9081
- connect?: DriveDocumentWhereUniqueInput | DriveDocumentWhereUniqueInput[]
9082
- update?: DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput | DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput[]
9083
- updateMany?: DriveDocumentUpdateManyWithWhereWithoutDocumentInput | DriveDocumentUpdateManyWithWhereWithoutDocumentInput[]
9084
- deleteMany?: DriveDocumentScalarWhereInput | DriveDocumentScalarWhereInput[]
9085
- }
9086
-
9087
9035
  export type DriveCreateNestedOneWithoutDriveDocumentsInput = {
9088
9036
  create?: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
9089
9037
  connectOrCreate?: DriveCreateOrConnectWithoutDriveDocumentsInput
9090
9038
  connect?: DriveWhereUniqueInput
9091
9039
  }
9092
9040
 
9093
- export type DocumentCreateNestedOneWithoutDriveDocumentsInput = {
9094
- create?: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9095
- connectOrCreate?: DocumentCreateOrConnectWithoutDriveDocumentsInput
9096
- connect?: DocumentWhereUniqueInput
9097
- }
9098
-
9099
9041
  export type DriveUpdateOneRequiredWithoutDriveDocumentsNestedInput = {
9100
9042
  create?: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
9101
9043
  connectOrCreate?: DriveCreateOrConnectWithoutDriveDocumentsInput
@@ -9104,14 +9046,6 @@ export namespace Prisma {
9104
9046
  update?: XOR<XOR<DriveUpdateToOneWithWhereWithoutDriveDocumentsInput, DriveUpdateWithoutDriveDocumentsInput>, DriveUncheckedUpdateWithoutDriveDocumentsInput>
9105
9047
  }
9106
9048
 
9107
- export type DocumentUpdateOneRequiredWithoutDriveDocumentsNestedInput = {
9108
- create?: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9109
- connectOrCreate?: DocumentCreateOrConnectWithoutDriveDocumentsInput
9110
- upsert?: DocumentUpsertWithoutDriveDocumentsInput
9111
- connect?: DocumentWhereUniqueInput
9112
- update?: XOR<XOR<DocumentUpdateToOneWithWhereWithoutDriveDocumentsInput, DocumentUpdateWithoutDriveDocumentsInput>, DocumentUncheckedUpdateWithoutDriveDocumentsInput>
9113
- }
9114
-
9115
9049
  export type DocumentCreateNestedOneWithoutOperationsInput = {
9116
9050
  create?: XOR<DocumentCreateWithoutOperationsInput, DocumentUncheckedCreateWithoutOperationsInput>
9117
9051
  connectOrCreate?: DocumentCreateOrConnectWithoutOperationsInput
@@ -9453,7 +9387,7 @@ export namespace Prisma {
9453
9387
  }
9454
9388
 
9455
9389
  export type DriveDocumentCreateWithoutDriveInput = {
9456
- document: DocumentCreateNestedOneWithoutDriveDocumentsInput
9390
+ documentId: string
9457
9391
  }
9458
9392
 
9459
9393
  export type DriveDocumentUncheckedCreateWithoutDriveInput = {
@@ -9564,24 +9498,6 @@ export namespace Prisma {
9564
9498
  skipDuplicates?: boolean
9565
9499
  }
9566
9500
 
9567
- export type DriveDocumentCreateWithoutDocumentInput = {
9568
- drive: DriveCreateNestedOneWithoutDriveDocumentsInput
9569
- }
9570
-
9571
- export type DriveDocumentUncheckedCreateWithoutDocumentInput = {
9572
- driveId: string
9573
- }
9574
-
9575
- export type DriveDocumentCreateOrConnectWithoutDocumentInput = {
9576
- where: DriveDocumentWhereUniqueInput
9577
- create: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput>
9578
- }
9579
-
9580
- export type DriveDocumentCreateManyDocumentInputEnvelope = {
9581
- data: DriveDocumentCreateManyDocumentInput | DriveDocumentCreateManyDocumentInput[]
9582
- skipDuplicates?: boolean
9583
- }
9584
-
9585
9501
  export type OperationUpsertWithWhereUniqueWithoutDocumentInput = {
9586
9502
  where: OperationWhereUniqueInput
9587
9503
  update: XOR<OperationUpdateWithoutDocumentInput, OperationUncheckedUpdateWithoutDocumentInput>
@@ -9645,22 +9561,6 @@ export namespace Prisma {
9645
9561
  branch?: StringFilter<"SynchronizationUnit"> | string
9646
9562
  }
9647
9563
 
9648
- export type DriveDocumentUpsertWithWhereUniqueWithoutDocumentInput = {
9649
- where: DriveDocumentWhereUniqueInput
9650
- update: XOR<DriveDocumentUpdateWithoutDocumentInput, DriveDocumentUncheckedUpdateWithoutDocumentInput>
9651
- create: XOR<DriveDocumentCreateWithoutDocumentInput, DriveDocumentUncheckedCreateWithoutDocumentInput>
9652
- }
9653
-
9654
- export type DriveDocumentUpdateWithWhereUniqueWithoutDocumentInput = {
9655
- where: DriveDocumentWhereUniqueInput
9656
- data: XOR<DriveDocumentUpdateWithoutDocumentInput, DriveDocumentUncheckedUpdateWithoutDocumentInput>
9657
- }
9658
-
9659
- export type DriveDocumentUpdateManyWithWhereWithoutDocumentInput = {
9660
- where: DriveDocumentScalarWhereInput
9661
- data: XOR<DriveDocumentUpdateManyMutationInput, DriveDocumentUncheckedUpdateManyWithoutDocumentInput>
9662
- }
9663
-
9664
9564
  export type DriveCreateWithoutDriveDocumentsInput = {
9665
9565
  id: string
9666
9566
  }
@@ -9674,41 +9574,6 @@ export namespace Prisma {
9674
9574
  create: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
9675
9575
  }
9676
9576
 
9677
- export type DocumentCreateWithoutDriveDocumentsInput = {
9678
- id: string
9679
- ordinal?: number
9680
- created?: Date | string
9681
- lastModified?: Date | string
9682
- slug?: string | null
9683
- revision: string
9684
- name?: string | null
9685
- initialState: string
9686
- documentType: string
9687
- meta?: string | null
9688
- operations?: OperationCreateNestedManyWithoutDocumentInput
9689
- synchronizationUnits?: SynchronizationUnitCreateNestedManyWithoutDocumentInput
9690
- }
9691
-
9692
- export type DocumentUncheckedCreateWithoutDriveDocumentsInput = {
9693
- id: string
9694
- ordinal?: number
9695
- created?: Date | string
9696
- lastModified?: Date | string
9697
- slug?: string | null
9698
- revision: string
9699
- name?: string | null
9700
- initialState: string
9701
- documentType: string
9702
- meta?: string | null
9703
- operations?: OperationUncheckedCreateNestedManyWithoutDocumentInput
9704
- synchronizationUnits?: SynchronizationUnitUncheckedCreateNestedManyWithoutDocumentInput
9705
- }
9706
-
9707
- export type DocumentCreateOrConnectWithoutDriveDocumentsInput = {
9708
- where: DocumentWhereUniqueInput
9709
- create: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9710
- }
9711
-
9712
9577
  export type DriveUpsertWithoutDriveDocumentsInput = {
9713
9578
  update: XOR<DriveUpdateWithoutDriveDocumentsInput, DriveUncheckedUpdateWithoutDriveDocumentsInput>
9714
9579
  create: XOR<DriveCreateWithoutDriveDocumentsInput, DriveUncheckedCreateWithoutDriveDocumentsInput>
@@ -9728,46 +9593,6 @@ export namespace Prisma {
9728
9593
  id?: StringFieldUpdateOperationsInput | string
9729
9594
  }
9730
9595
 
9731
- export type DocumentUpsertWithoutDriveDocumentsInput = {
9732
- update: XOR<DocumentUpdateWithoutDriveDocumentsInput, DocumentUncheckedUpdateWithoutDriveDocumentsInput>
9733
- create: XOR<DocumentCreateWithoutDriveDocumentsInput, DocumentUncheckedCreateWithoutDriveDocumentsInput>
9734
- where?: DocumentWhereInput
9735
- }
9736
-
9737
- export type DocumentUpdateToOneWithWhereWithoutDriveDocumentsInput = {
9738
- where?: DocumentWhereInput
9739
- data: XOR<DocumentUpdateWithoutDriveDocumentsInput, DocumentUncheckedUpdateWithoutDriveDocumentsInput>
9740
- }
9741
-
9742
- export type DocumentUpdateWithoutDriveDocumentsInput = {
9743
- id?: StringFieldUpdateOperationsInput | string
9744
- created?: DateTimeFieldUpdateOperationsInput | Date | string
9745
- lastModified?: DateTimeFieldUpdateOperationsInput | Date | string
9746
- slug?: NullableStringFieldUpdateOperationsInput | string | null
9747
- revision?: StringFieldUpdateOperationsInput | string
9748
- name?: NullableStringFieldUpdateOperationsInput | string | null
9749
- initialState?: StringFieldUpdateOperationsInput | string
9750
- documentType?: StringFieldUpdateOperationsInput | string
9751
- meta?: NullableStringFieldUpdateOperationsInput | string | null
9752
- operations?: OperationUpdateManyWithoutDocumentNestedInput
9753
- synchronizationUnits?: SynchronizationUnitUpdateManyWithoutDocumentNestedInput
9754
- }
9755
-
9756
- export type DocumentUncheckedUpdateWithoutDriveDocumentsInput = {
9757
- id?: StringFieldUpdateOperationsInput | string
9758
- ordinal?: IntFieldUpdateOperationsInput | number
9759
- created?: DateTimeFieldUpdateOperationsInput | Date | string
9760
- lastModified?: DateTimeFieldUpdateOperationsInput | Date | string
9761
- slug?: NullableStringFieldUpdateOperationsInput | string | null
9762
- revision?: StringFieldUpdateOperationsInput | string
9763
- name?: NullableStringFieldUpdateOperationsInput | string | null
9764
- initialState?: StringFieldUpdateOperationsInput | string
9765
- documentType?: StringFieldUpdateOperationsInput | string
9766
- meta?: NullableStringFieldUpdateOperationsInput | string | null
9767
- operations?: OperationUncheckedUpdateManyWithoutDocumentNestedInput
9768
- synchronizationUnits?: SynchronizationUnitUncheckedUpdateManyWithoutDocumentNestedInput
9769
- }
9770
-
9771
9596
  export type DocumentCreateWithoutOperationsInput = {
9772
9597
  id: string
9773
9598
  ordinal?: number
@@ -9779,8 +9604,8 @@ export namespace Prisma {
9779
9604
  initialState: string
9780
9605
  documentType: string
9781
9606
  meta?: string | null
9607
+ scopes?: DocumentCreatescopesInput | string[]
9782
9608
  synchronizationUnits?: SynchronizationUnitCreateNestedManyWithoutDocumentInput
9783
- driveDocuments?: DriveDocumentCreateNestedManyWithoutDocumentInput
9784
9609
  }
9785
9610
 
9786
9611
  export type DocumentUncheckedCreateWithoutOperationsInput = {
@@ -9794,8 +9619,8 @@ export namespace Prisma {
9794
9619
  initialState: string
9795
9620
  documentType: string
9796
9621
  meta?: string | null
9622
+ scopes?: DocumentCreatescopesInput | string[]
9797
9623
  synchronizationUnits?: SynchronizationUnitUncheckedCreateNestedManyWithoutDocumentInput
9798
- driveDocuments?: DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput
9799
9624
  }
9800
9625
 
9801
9626
  export type DocumentCreateOrConnectWithoutOperationsInput = {
@@ -9871,8 +9696,8 @@ export namespace Prisma {
9871
9696
  initialState?: StringFieldUpdateOperationsInput | string
9872
9697
  documentType?: StringFieldUpdateOperationsInput | string
9873
9698
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9699
+ scopes?: DocumentUpdatescopesInput | string[]
9874
9700
  synchronizationUnits?: SynchronizationUnitUpdateManyWithoutDocumentNestedInput
9875
- driveDocuments?: DriveDocumentUpdateManyWithoutDocumentNestedInput
9876
9701
  }
9877
9702
 
9878
9703
  export type DocumentUncheckedUpdateWithoutOperationsInput = {
@@ -9886,8 +9711,8 @@ export namespace Prisma {
9886
9711
  initialState?: StringFieldUpdateOperationsInput | string
9887
9712
  documentType?: StringFieldUpdateOperationsInput | string
9888
9713
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9714
+ scopes?: DocumentUpdatescopesInput | string[]
9889
9715
  synchronizationUnits?: SynchronizationUnitUncheckedUpdateManyWithoutDocumentNestedInput
9890
- driveDocuments?: DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput
9891
9716
  }
9892
9717
 
9893
9718
  export type AttachmentUpsertWithWhereUniqueWithoutOperationInput = {
@@ -9955,8 +9780,8 @@ export namespace Prisma {
9955
9780
  initialState: string
9956
9781
  documentType: string
9957
9782
  meta?: string | null
9783
+ scopes?: DocumentCreatescopesInput | string[]
9958
9784
  operations?: OperationCreateNestedManyWithoutDocumentInput
9959
- driveDocuments?: DriveDocumentCreateNestedManyWithoutDocumentInput
9960
9785
  }
9961
9786
 
9962
9787
  export type DocumentUncheckedCreateWithoutSynchronizationUnitsInput = {
@@ -9970,8 +9795,8 @@ export namespace Prisma {
9970
9795
  initialState: string
9971
9796
  documentType: string
9972
9797
  meta?: string | null
9798
+ scopes?: DocumentCreatescopesInput | string[]
9973
9799
  operations?: OperationUncheckedCreateNestedManyWithoutDocumentInput
9974
- driveDocuments?: DriveDocumentUncheckedCreateNestedManyWithoutDocumentInput
9975
9800
  }
9976
9801
 
9977
9802
  export type DocumentCreateOrConnectWithoutSynchronizationUnitsInput = {
@@ -10046,8 +9871,8 @@ export namespace Prisma {
10046
9871
  initialState?: StringFieldUpdateOperationsInput | string
10047
9872
  documentType?: StringFieldUpdateOperationsInput | string
10048
9873
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9874
+ scopes?: DocumentUpdatescopesInput | string[]
10049
9875
  operations?: OperationUpdateManyWithoutDocumentNestedInput
10050
- driveDocuments?: DriveDocumentUpdateManyWithoutDocumentNestedInput
10051
9876
  }
10052
9877
 
10053
9878
  export type DocumentUncheckedUpdateWithoutSynchronizationUnitsInput = {
@@ -10061,8 +9886,8 @@ export namespace Prisma {
10061
9886
  initialState?: StringFieldUpdateOperationsInput | string
10062
9887
  documentType?: StringFieldUpdateOperationsInput | string
10063
9888
  meta?: NullableStringFieldUpdateOperationsInput | string | null
9889
+ scopes?: DocumentUpdatescopesInput | string[]
10064
9890
  operations?: OperationUncheckedUpdateManyWithoutDocumentNestedInput
10065
- driveDocuments?: DriveDocumentUncheckedUpdateManyWithoutDocumentNestedInput
10066
9891
  }
10067
9892
 
10068
9893
  export type OperationUpsertWithWhereUniqueWithoutSynchronizationUnitInput = {
@@ -10174,7 +9999,7 @@ export namespace Prisma {
10174
9999
  }
10175
10000
 
10176
10001
  export type DriveDocumentUpdateWithoutDriveInput = {
10177
- document?: DocumentUpdateOneRequiredWithoutDriveDocumentsNestedInput
10002
+ documentId?: StringFieldUpdateOperationsInput | string
10178
10003
  }
10179
10004
 
10180
10005
  export type DriveDocumentUncheckedUpdateWithoutDriveInput = {
@@ -10208,10 +10033,6 @@ export namespace Prisma {
10208
10033
  branch: string
10209
10034
  }
10210
10035
 
10211
- export type DriveDocumentCreateManyDocumentInput = {
10212
- driveId: string
10213
- }
10214
-
10215
10036
  export type OperationUpdateWithoutDocumentInput = {
10216
10037
  id?: StringFieldUpdateOperationsInput | string
10217
10038
  opId?: NullableStringFieldUpdateOperationsInput | string | null
@@ -10285,18 +10106,6 @@ export namespace Prisma {
10285
10106
  branch?: StringFieldUpdateOperationsInput | string
10286
10107
  }
10287
10108
 
10288
- export type DriveDocumentUpdateWithoutDocumentInput = {
10289
- drive?: DriveUpdateOneRequiredWithoutDriveDocumentsNestedInput
10290
- }
10291
-
10292
- export type DriveDocumentUncheckedUpdateWithoutDocumentInput = {
10293
- driveId?: StringFieldUpdateOperationsInput | string
10294
- }
10295
-
10296
- export type DriveDocumentUncheckedUpdateManyWithoutDocumentInput = {
10297
- driveId?: StringFieldUpdateOperationsInput | string
10298
- }
10299
-
10300
10109
  export type AttachmentCreateManyOperationInput = {
10301
10110
  id?: string
10302
10111
  mimeType: string