@friggframework/core 2.0.0--canary.685.a13fdab.0 → 2.0.0--canary.679.a2bcc2f.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 (106) hide show
  1. package/CLAUDE.md +0 -25
  2. package/README.md +0 -105
  3. package/application/commands/integration-commands.js +2 -2
  4. package/application/commands/user-commands.js +5 -17
  5. package/credential/use-cases/credential-operations-for-user.js +25 -110
  6. package/credential/use-cases/reauthorize-credential-for-user.js +8 -15
  7. package/database/documentdb-utils.js +1 -6
  8. package/generated/prisma-mongodb/edge.js +4 -15
  9. package/generated/prisma-mongodb/index-browser.js +1 -12
  10. package/generated/prisma-mongodb/index.d.ts +86 -2027
  11. package/generated/prisma-mongodb/index.js +4 -15
  12. package/generated/prisma-mongodb/package.json +1 -1
  13. package/generated/prisma-mongodb/schema.prisma +0 -47
  14. package/generated/prisma-mongodb/wasm.js +4 -15
  15. package/generated/prisma-postgresql/edge.js +4 -15
  16. package/generated/prisma-postgresql/index-browser.js +1 -12
  17. package/generated/prisma-postgresql/index.d.ts +63 -2162
  18. package/generated/prisma-postgresql/index.js +4 -15
  19. package/generated/prisma-postgresql/package.json +1 -1
  20. package/generated/prisma-postgresql/schema.prisma +0 -44
  21. package/generated/prisma-postgresql/wasm.js +4 -15
  22. package/handlers/app-definition-loader.js +1 -24
  23. package/index.js +0 -22
  24. package/integrations/integration-router.js +73 -115
  25. package/integrations/repositories/integration-repository-documentdb.js +3 -35
  26. package/integrations/repositories/integration-repository-interface.js +1 -17
  27. package/integrations/repositories/integration-repository-mongo.js +76 -59
  28. package/integrations/repositories/integration-repository-postgres.js +76 -62
  29. package/integrations/tests/doubles/test-integration-repository.js +1 -12
  30. package/integrations/use-cases/create-integration.js +20 -55
  31. package/integrations/use-cases/get-integrations-for-user.js +40 -80
  32. package/integrations/use-cases/index.js +1 -5
  33. package/integrations/use-cases/integration-operations-for-user.js +24 -55
  34. package/management-api/management-api-config.js +2 -71
  35. package/management-api/openapi/components.js +0 -40
  36. package/management-api/openapi/v2-operations.js +4 -16
  37. package/management-api/v2/dependencies.js +15 -40
  38. package/management-api/v2/dto.js +0 -20
  39. package/management-api/v2/handlers/authorization.js +0 -1
  40. package/management-api/v2/handlers/credentials.js +2 -6
  41. package/management-api/v2/handlers/entities.js +7 -10
  42. package/management-api/v2/handlers/integrations.js +3 -6
  43. package/management-api/v2/request.js +1 -32
  44. package/modules/index.js +0 -8
  45. package/modules/repositories/module-repository-documentdb.js +6 -51
  46. package/modules/repositories/module-repository-interface.js +2 -19
  47. package/modules/repositories/module-repository-mongo.js +74 -67
  48. package/modules/repositories/module-repository-postgres.js +74 -66
  49. package/modules/repositories/module-repository.js +1 -2
  50. package/modules/use-cases/entity-operations-for-user.js +13 -50
  51. package/modules/use-cases/entity-types.js +7 -31
  52. package/modules/use-cases/execute-entity-proxy-request.js +3 -50
  53. package/modules/use-cases/get-entities-for-user.js +5 -16
  54. package/modules/use-cases/get-entity-module-for-user.js +5 -32
  55. package/modules/use-cases/get-entity-options-by-id.js +3 -9
  56. package/modules/use-cases/get-module.js +3 -9
  57. package/modules/use-cases/multi-step-authorization.js +12 -39
  58. package/modules/use-cases/process-authorization-callback.js +18 -52
  59. package/modules/use-cases/refresh-entity-options.js +3 -9
  60. package/modules/use-cases/test-module-auth.js +3 -9
  61. package/package.json +5 -6
  62. package/prisma-mongodb/schema.prisma +0 -47
  63. package/prisma-postgresql/schema.prisma +0 -44
  64. package/types/index.d.ts +0 -1
  65. package/types/modules/index.d.ts +0 -129
  66. package/user/repositories/user-repository-documentdb.js +2 -27
  67. package/user/repositories/user-repository-interface.js +0 -18
  68. package/user/repositories/user-repository-mongo.js +0 -24
  69. package/user/repositories/user-repository-postgres.js +0 -18
  70. package/user/use-cases/authenticate-user.js +1 -7
  71. package/user/use-cases/get-user-from-adopter-jwt.js +124 -95
  72. package/user/use-cases/get-user-from-x-frigg-headers.js +80 -83
  73. package/user/user.js +1 -64
  74. package/database/organization-where.js +0 -18
  75. package/database/unique-violation.js +0 -25
  76. package/integrations/repositories/integration-not-found.js +0 -14
  77. package/integrations/use-cases/resolve-integration-ownership.js +0 -177
  78. package/modules/entity-scope.js +0 -15
  79. package/modules/repositories/entity-not-found.js +0 -18
  80. package/modules/scope-config.js +0 -192
  81. package/modules/scope-policy.js +0 -112
  82. package/modules/scope-resolution.js +0 -288
  83. package/modules/scope-visibility.js +0 -247
  84. package/modules/tests/doubles/ownership-matching.js +0 -18
  85. package/modules/use-cases/authorize-entity-for-user.js +0 -61
  86. package/modules/use-cases/create-entity-from-credential.js +0 -113
  87. package/modules/use-cases/manage-access.js +0 -21
  88. package/prisma-postgresql/migrations/20261015000000_add_organization_membership/migration.sql +0 -26
  89. package/prisma-postgresql/migrations/20261016000000_add_entity_integration_organization/migration.sql +0 -25
  90. package/types/user/index.d.ts +0 -134
  91. package/user/adopter-jwt-config.js +0 -177
  92. package/user/adopter-jwt-errors.js +0 -59
  93. package/user/adopter-token-verifier.js +0 -122
  94. package/user/app-user-helpers.js +0 -97
  95. package/user/create-user-authentication.js +0 -64
  96. package/user/membership.js +0 -51
  97. package/user/repositories/organization-membership-record.js +0 -19
  98. package/user/repositories/organization-membership-repository-documentdb.js +0 -106
  99. package/user/repositories/organization-membership-repository-factory.js +0 -42
  100. package/user/repositories/organization-membership-repository-interface.js +0 -57
  101. package/user/repositories/organization-membership-repository-mongo.js +0 -13
  102. package/user/repositories/organization-membership-repository-postgres.js +0 -29
  103. package/user/repositories/organization-membership-repository-prisma.js +0 -81
  104. package/user/tests/doubles/adopter-jwt-fixtures.js +0 -220
  105. package/user/use-cases/ensure-organization-membership.js +0 -92
  106. package/user/use-cases/find-individual-users-by-organization.js +0 -54
@@ -110,13 +110,6 @@ export type UsageCounter = $Result.DefaultSelection<Prisma.$UsageCounterPayload>
110
110
  * opportunistically. stepData is encrypted at rest.
111
111
  */
112
112
  export type AuthorizationSession = $Result.DefaultSelection<Prisma.$AuthorizationSessionPayload>
113
- /**
114
- * Model OrganizationMembership
115
- * One person's membership of one organization. Unique on the pair, so adding a
116
- * membership is an idempotent upsert. `orgRole` is the organization role the
117
- * adopter token carried when the membership was created (MEMBER when it named none).
118
- */
119
- export type OrganizationMembership = $Result.DefaultSelection<Prisma.$OrganizationMembershipPayload>
120
113
 
121
114
  /**
122
115
  * Enums
@@ -466,16 +459,6 @@ export class PrismaClient<
466
459
  * ```
467
460
  */
468
461
  get authorizationSession(): Prisma.AuthorizationSessionDelegate<ExtArgs, ClientOptions>;
469
-
470
- /**
471
- * `prisma.organizationMembership`: Exposes CRUD operations for the **OrganizationMembership** model.
472
- * Example usage:
473
- * ```ts
474
- * // Fetch zero or more OrganizationMemberships
475
- * const organizationMemberships = await prisma.organizationMembership.findMany()
476
- * ```
477
- */
478
- get organizationMembership(): Prisma.OrganizationMembershipDelegate<ExtArgs, ClientOptions>;
479
462
  }
480
463
 
481
464
  export namespace Prisma {
@@ -933,8 +916,7 @@ export namespace Prisma {
933
916
  AdminScriptExecution: 'AdminScriptExecution',
934
917
  ScriptSchedule: 'ScriptSchedule',
935
918
  UsageCounter: 'UsageCounter',
936
- AuthorizationSession: 'AuthorizationSession',
937
- OrganizationMembership: 'OrganizationMembership'
919
+ AuthorizationSession: 'AuthorizationSession'
938
920
  };
939
921
 
940
922
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -953,7 +935,7 @@ export namespace Prisma {
953
935
  omit: GlobalOmitOptions
954
936
  }
955
937
  meta: {
956
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership"
938
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession"
957
939
  txIsolationLevel: Prisma.TransactionIsolationLevel
958
940
  }
959
941
  model: {
@@ -2215,80 +2197,6 @@ export namespace Prisma {
2215
2197
  }
2216
2198
  }
2217
2199
  }
2218
- OrganizationMembership: {
2219
- payload: Prisma.$OrganizationMembershipPayload<ExtArgs>
2220
- fields: Prisma.OrganizationMembershipFieldRefs
2221
- operations: {
2222
- findUnique: {
2223
- args: Prisma.OrganizationMembershipFindUniqueArgs<ExtArgs>
2224
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
2225
- }
2226
- findUniqueOrThrow: {
2227
- args: Prisma.OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>
2228
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2229
- }
2230
- findFirst: {
2231
- args: Prisma.OrganizationMembershipFindFirstArgs<ExtArgs>
2232
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
2233
- }
2234
- findFirstOrThrow: {
2235
- args: Prisma.OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>
2236
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2237
- }
2238
- findMany: {
2239
- args: Prisma.OrganizationMembershipFindManyArgs<ExtArgs>
2240
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2241
- }
2242
- create: {
2243
- args: Prisma.OrganizationMembershipCreateArgs<ExtArgs>
2244
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2245
- }
2246
- createMany: {
2247
- args: Prisma.OrganizationMembershipCreateManyArgs<ExtArgs>
2248
- result: BatchPayload
2249
- }
2250
- createManyAndReturn: {
2251
- args: Prisma.OrganizationMembershipCreateManyAndReturnArgs<ExtArgs>
2252
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2253
- }
2254
- delete: {
2255
- args: Prisma.OrganizationMembershipDeleteArgs<ExtArgs>
2256
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2257
- }
2258
- update: {
2259
- args: Prisma.OrganizationMembershipUpdateArgs<ExtArgs>
2260
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2261
- }
2262
- deleteMany: {
2263
- args: Prisma.OrganizationMembershipDeleteManyArgs<ExtArgs>
2264
- result: BatchPayload
2265
- }
2266
- updateMany: {
2267
- args: Prisma.OrganizationMembershipUpdateManyArgs<ExtArgs>
2268
- result: BatchPayload
2269
- }
2270
- updateManyAndReturn: {
2271
- args: Prisma.OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs>
2272
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2273
- }
2274
- upsert: {
2275
- args: Prisma.OrganizationMembershipUpsertArgs<ExtArgs>
2276
- result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2277
- }
2278
- aggregate: {
2279
- args: Prisma.OrganizationMembershipAggregateArgs<ExtArgs>
2280
- result: $Utils.Optional<AggregateOrganizationMembership>
2281
- }
2282
- groupBy: {
2283
- args: Prisma.OrganizationMembershipGroupByArgs<ExtArgs>
2284
- result: $Utils.Optional<OrganizationMembershipGroupByOutputType>[]
2285
- }
2286
- count: {
2287
- args: Prisma.OrganizationMembershipCountArgs<ExtArgs>
2288
- result: $Utils.Optional<OrganizationMembershipCountAggregateOutputType> | number
2289
- }
2290
- }
2291
- }
2292
2200
  }
2293
2201
  } & {
2294
2202
  other: {
@@ -2402,7 +2310,6 @@ export namespace Prisma {
2402
2310
  scriptSchedule?: ScriptScheduleOmit
2403
2311
  usageCounter?: UsageCounterOmit
2404
2312
  authorizationSession?: AuthorizationSessionOmit
2405
- organizationMembership?: OrganizationMembershipOmit
2406
2313
  }
2407
2314
 
2408
2315
  /* Types for Logging */
@@ -2489,8 +2396,6 @@ export namespace Prisma {
2489
2396
  entities: number
2490
2397
  integrations: number
2491
2398
  processes: number
2492
- memberships: number
2493
- orgMembers: number
2494
2399
  }
2495
2400
 
2496
2401
  export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -2500,8 +2405,6 @@ export namespace Prisma {
2500
2405
  entities?: boolean | UserCountOutputTypeCountEntitiesArgs
2501
2406
  integrations?: boolean | UserCountOutputTypeCountIntegrationsArgs
2502
2407
  processes?: boolean | UserCountOutputTypeCountProcessesArgs
2503
- memberships?: boolean | UserCountOutputTypeCountMembershipsArgs
2504
- orgMembers?: boolean | UserCountOutputTypeCountOrgMembersArgs
2505
2408
  }
2506
2409
 
2507
2410
  // Custom InputTypes
@@ -2557,20 +2460,6 @@ export namespace Prisma {
2557
2460
  where?: ProcessWhereInput
2558
2461
  }
2559
2462
 
2560
- /**
2561
- * UserCountOutputType without action
2562
- */
2563
- export type UserCountOutputTypeCountMembershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2564
- where?: OrganizationMembershipWhereInput
2565
- }
2566
-
2567
- /**
2568
- * UserCountOutputType without action
2569
- */
2570
- export type UserCountOutputTypeCountOrgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2571
- where?: OrganizationMembershipWhereInput
2572
- }
2573
-
2574
2463
 
2575
2464
  /**
2576
2465
  * Count Type CredentialCountOutputType
@@ -3122,8 +3011,6 @@ export namespace Prisma {
3122
3011
  entities?: boolean | User$entitiesArgs<ExtArgs>
3123
3012
  integrations?: boolean | User$integrationsArgs<ExtArgs>
3124
3013
  processes?: boolean | User$processesArgs<ExtArgs>
3125
- memberships?: boolean | User$membershipsArgs<ExtArgs>
3126
- orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
3127
3014
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
3128
3015
  }, ExtArgs["result"]["user"]>
3129
3016
 
@@ -3180,8 +3067,6 @@ export namespace Prisma {
3180
3067
  entities?: boolean | User$entitiesArgs<ExtArgs>
3181
3068
  integrations?: boolean | User$integrationsArgs<ExtArgs>
3182
3069
  processes?: boolean | User$processesArgs<ExtArgs>
3183
- memberships?: boolean | User$membershipsArgs<ExtArgs>
3184
- orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
3185
3070
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
3186
3071
  }
3187
3072
  export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -3201,8 +3086,6 @@ export namespace Prisma {
3201
3086
  entities: Prisma.$EntityPayload<ExtArgs>[]
3202
3087
  integrations: Prisma.$IntegrationPayload<ExtArgs>[]
3203
3088
  processes: Prisma.$ProcessPayload<ExtArgs>[]
3204
- memberships: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
3205
- orgMembers: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
3206
3089
  }
3207
3090
  scalars: $Extensions.GetPayloadResult<{
3208
3091
  id: number
@@ -3617,8 +3500,6 @@ export namespace Prisma {
3617
3500
  entities<T extends User$entitiesArgs<ExtArgs> = {}>(args?: Subset<T, User$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3618
3501
  integrations<T extends User$integrationsArgs<ExtArgs> = {}>(args?: Subset<T, User$integrationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3619
3502
  processes<T extends User$processesArgs<ExtArgs> = {}>(args?: Subset<T, User$processesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3620
- memberships<T extends User$membershipsArgs<ExtArgs> = {}>(args?: Subset<T, User$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3621
- orgMembers<T extends User$orgMembersArgs<ExtArgs> = {}>(args?: Subset<T, User$orgMembersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3622
3503
  /**
3623
3504
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3624
3505
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -4217,54 +4098,6 @@ export namespace Prisma {
4217
4098
  distinct?: ProcessScalarFieldEnum | ProcessScalarFieldEnum[]
4218
4099
  }
4219
4100
 
4220
- /**
4221
- * User.memberships
4222
- */
4223
- export type User$membershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4224
- /**
4225
- * Select specific fields to fetch from the OrganizationMembership
4226
- */
4227
- select?: OrganizationMembershipSelect<ExtArgs> | null
4228
- /**
4229
- * Omit specific fields from the OrganizationMembership
4230
- */
4231
- omit?: OrganizationMembershipOmit<ExtArgs> | null
4232
- /**
4233
- * Choose, which related nodes to fetch as well
4234
- */
4235
- include?: OrganizationMembershipInclude<ExtArgs> | null
4236
- where?: OrganizationMembershipWhereInput
4237
- orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
4238
- cursor?: OrganizationMembershipWhereUniqueInput
4239
- take?: number
4240
- skip?: number
4241
- distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
4242
- }
4243
-
4244
- /**
4245
- * User.orgMembers
4246
- */
4247
- export type User$orgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4248
- /**
4249
- * Select specific fields to fetch from the OrganizationMembership
4250
- */
4251
- select?: OrganizationMembershipSelect<ExtArgs> | null
4252
- /**
4253
- * Omit specific fields from the OrganizationMembership
4254
- */
4255
- omit?: OrganizationMembershipOmit<ExtArgs> | null
4256
- /**
4257
- * Choose, which related nodes to fetch as well
4258
- */
4259
- include?: OrganizationMembershipInclude<ExtArgs> | null
4260
- where?: OrganizationMembershipWhereInput
4261
- orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
4262
- cursor?: OrganizationMembershipWhereUniqueInput
4263
- take?: number
4264
- skip?: number
4265
- distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
4266
- }
4267
-
4268
4101
  /**
4269
4102
  * User without action
4270
4103
  */
@@ -6563,14 +6396,12 @@ export namespace Prisma {
6563
6396
  id: number | null
6564
6397
  credentialId: number | null
6565
6398
  userId: number | null
6566
- organizationId: number | null
6567
6399
  }
6568
6400
 
6569
6401
  export type EntitySumAggregateOutputType = {
6570
6402
  id: number | null
6571
6403
  credentialId: number | null
6572
6404
  userId: number | null
6573
- organizationId: number | null
6574
6405
  }
6575
6406
 
6576
6407
  export type EntityMinAggregateOutputType = {
@@ -6580,7 +6411,6 @@ export namespace Prisma {
6580
6411
  name: string | null
6581
6412
  moduleName: string | null
6582
6413
  externalId: string | null
6583
- organizationId: number | null
6584
6414
  createdAt: Date | null
6585
6415
  updatedAt: Date | null
6586
6416
  }
@@ -6592,7 +6422,6 @@ export namespace Prisma {
6592
6422
  name: string | null
6593
6423
  moduleName: string | null
6594
6424
  externalId: string | null
6595
- organizationId: number | null
6596
6425
  createdAt: Date | null
6597
6426
  updatedAt: Date | null
6598
6427
  }
@@ -6604,7 +6433,6 @@ export namespace Prisma {
6604
6433
  name: number
6605
6434
  moduleName: number
6606
6435
  externalId: number
6607
- organizationId: number
6608
6436
  data: number
6609
6437
  createdAt: number
6610
6438
  updatedAt: number
@@ -6616,14 +6444,12 @@ export namespace Prisma {
6616
6444
  id?: true
6617
6445
  credentialId?: true
6618
6446
  userId?: true
6619
- organizationId?: true
6620
6447
  }
6621
6448
 
6622
6449
  export type EntitySumAggregateInputType = {
6623
6450
  id?: true
6624
6451
  credentialId?: true
6625
6452
  userId?: true
6626
- organizationId?: true
6627
6453
  }
6628
6454
 
6629
6455
  export type EntityMinAggregateInputType = {
@@ -6633,7 +6459,6 @@ export namespace Prisma {
6633
6459
  name?: true
6634
6460
  moduleName?: true
6635
6461
  externalId?: true
6636
- organizationId?: true
6637
6462
  createdAt?: true
6638
6463
  updatedAt?: true
6639
6464
  }
@@ -6645,7 +6470,6 @@ export namespace Prisma {
6645
6470
  name?: true
6646
6471
  moduleName?: true
6647
6472
  externalId?: true
6648
- organizationId?: true
6649
6473
  createdAt?: true
6650
6474
  updatedAt?: true
6651
6475
  }
@@ -6657,7 +6481,6 @@ export namespace Prisma {
6657
6481
  name?: true
6658
6482
  moduleName?: true
6659
6483
  externalId?: true
6660
- organizationId?: true
6661
6484
  data?: true
6662
6485
  createdAt?: true
6663
6486
  updatedAt?: true
@@ -6757,7 +6580,6 @@ export namespace Prisma {
6757
6580
  name: string | null
6758
6581
  moduleName: string | null
6759
6582
  externalId: string | null
6760
- organizationId: number | null
6761
6583
  data: JsonValue
6762
6584
  createdAt: Date
6763
6585
  updatedAt: Date
@@ -6789,7 +6611,6 @@ export namespace Prisma {
6789
6611
  name?: boolean
6790
6612
  moduleName?: boolean
6791
6613
  externalId?: boolean
6792
- organizationId?: boolean
6793
6614
  data?: boolean
6794
6615
  createdAt?: boolean
6795
6616
  updatedAt?: boolean
@@ -6809,7 +6630,6 @@ export namespace Prisma {
6809
6630
  name?: boolean
6810
6631
  moduleName?: boolean
6811
6632
  externalId?: boolean
6812
- organizationId?: boolean
6813
6633
  data?: boolean
6814
6634
  createdAt?: boolean
6815
6635
  updatedAt?: boolean
@@ -6824,7 +6644,6 @@ export namespace Prisma {
6824
6644
  name?: boolean
6825
6645
  moduleName?: boolean
6826
6646
  externalId?: boolean
6827
- organizationId?: boolean
6828
6647
  data?: boolean
6829
6648
  createdAt?: boolean
6830
6649
  updatedAt?: boolean
@@ -6839,13 +6658,12 @@ export namespace Prisma {
6839
6658
  name?: boolean
6840
6659
  moduleName?: boolean
6841
6660
  externalId?: boolean
6842
- organizationId?: boolean
6843
6661
  data?: boolean
6844
6662
  createdAt?: boolean
6845
6663
  updatedAt?: boolean
6846
6664
  }
6847
6665
 
6848
- export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "organizationId" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]>
6666
+ export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "data" | "createdAt" | "updatedAt", ExtArgs["result"]["entity"]>
6849
6667
  export type EntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6850
6668
  credential?: boolean | Entity$credentialArgs<ExtArgs>
6851
6669
  user?: boolean | Entity$userArgs<ExtArgs>
@@ -6881,7 +6699,6 @@ export namespace Prisma {
6881
6699
  name: string | null
6882
6700
  moduleName: string | null
6883
6701
  externalId: string | null
6884
- organizationId: number | null
6885
6702
  data: Prisma.JsonValue
6886
6703
  createdAt: Date
6887
6704
  updatedAt: Date
@@ -7320,7 +7137,6 @@ export namespace Prisma {
7320
7137
  readonly name: FieldRef<"Entity", 'String'>
7321
7138
  readonly moduleName: FieldRef<"Entity", 'String'>
7322
7139
  readonly externalId: FieldRef<"Entity", 'String'>
7323
- readonly organizationId: FieldRef<"Entity", 'Int'>
7324
7140
  readonly data: FieldRef<"Entity", 'Json'>
7325
7141
  readonly createdAt: FieldRef<"Entity", 'DateTime'>
7326
7142
  readonly updatedAt: FieldRef<"Entity", 'DateTime'>
@@ -7887,20 +7703,17 @@ export namespace Prisma {
7887
7703
  export type IntegrationAvgAggregateOutputType = {
7888
7704
  id: number | null
7889
7705
  userId: number | null
7890
- organizationId: number | null
7891
7706
  }
7892
7707
 
7893
7708
  export type IntegrationSumAggregateOutputType = {
7894
7709
  id: number | null
7895
7710
  userId: number | null
7896
- organizationId: number | null
7897
7711
  }
7898
7712
 
7899
7713
  export type IntegrationMinAggregateOutputType = {
7900
7714
  id: number | null
7901
7715
  userId: number | null
7902
7716
  status: $Enums.IntegrationStatus | null
7903
- organizationId: number | null
7904
7717
  version: string | null
7905
7718
  createdAt: Date | null
7906
7719
  updatedAt: Date | null
@@ -7910,7 +7723,6 @@ export namespace Prisma {
7910
7723
  id: number | null
7911
7724
  userId: number | null
7912
7725
  status: $Enums.IntegrationStatus | null
7913
- organizationId: number | null
7914
7726
  version: string | null
7915
7727
  createdAt: Date | null
7916
7728
  updatedAt: Date | null
@@ -7920,7 +7732,6 @@ export namespace Prisma {
7920
7732
  id: number
7921
7733
  userId: number
7922
7734
  status: number
7923
- organizationId: number
7924
7735
  config: number
7925
7736
  version: number
7926
7737
  errors: number
@@ -7936,20 +7747,17 @@ export namespace Prisma {
7936
7747
  export type IntegrationAvgAggregateInputType = {
7937
7748
  id?: true
7938
7749
  userId?: true
7939
- organizationId?: true
7940
7750
  }
7941
7751
 
7942
7752
  export type IntegrationSumAggregateInputType = {
7943
7753
  id?: true
7944
7754
  userId?: true
7945
- organizationId?: true
7946
7755
  }
7947
7756
 
7948
7757
  export type IntegrationMinAggregateInputType = {
7949
7758
  id?: true
7950
7759
  userId?: true
7951
7760
  status?: true
7952
- organizationId?: true
7953
7761
  version?: true
7954
7762
  createdAt?: true
7955
7763
  updatedAt?: true
@@ -7959,7 +7767,6 @@ export namespace Prisma {
7959
7767
  id?: true
7960
7768
  userId?: true
7961
7769
  status?: true
7962
- organizationId?: true
7963
7770
  version?: true
7964
7771
  createdAt?: true
7965
7772
  updatedAt?: true
@@ -7969,7 +7776,6 @@ export namespace Prisma {
7969
7776
  id?: true
7970
7777
  userId?: true
7971
7778
  status?: true
7972
- organizationId?: true
7973
7779
  config?: true
7974
7780
  version?: true
7975
7781
  errors?: true
@@ -8071,7 +7877,6 @@ export namespace Prisma {
8071
7877
  id: number
8072
7878
  userId: number | null
8073
7879
  status: $Enums.IntegrationStatus
8074
- organizationId: number | null
8075
7880
  config: JsonValue | null
8076
7881
  version: string | null
8077
7882
  errors: JsonValue
@@ -8105,7 +7910,6 @@ export namespace Prisma {
8105
7910
  id?: boolean
8106
7911
  userId?: boolean
8107
7912
  status?: boolean
8108
- organizationId?: boolean
8109
7913
  config?: boolean
8110
7914
  version?: boolean
8111
7915
  errors?: boolean
@@ -8127,7 +7931,6 @@ export namespace Prisma {
8127
7931
  id?: boolean
8128
7932
  userId?: boolean
8129
7933
  status?: boolean
8130
- organizationId?: boolean
8131
7934
  config?: boolean
8132
7935
  version?: boolean
8133
7936
  errors?: boolean
@@ -8143,7 +7946,6 @@ export namespace Prisma {
8143
7946
  id?: boolean
8144
7947
  userId?: boolean
8145
7948
  status?: boolean
8146
- organizationId?: boolean
8147
7949
  config?: boolean
8148
7950
  version?: boolean
8149
7951
  errors?: boolean
@@ -8159,7 +7961,6 @@ export namespace Prisma {
8159
7961
  id?: boolean
8160
7962
  userId?: boolean
8161
7963
  status?: boolean
8162
- organizationId?: boolean
8163
7964
  config?: boolean
8164
7965
  version?: boolean
8165
7966
  errors?: boolean
@@ -8170,7 +7971,7 @@ export namespace Prisma {
8170
7971
  updatedAt?: boolean
8171
7972
  }
8172
7973
 
8173
- export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "organizationId" | "config" | "version" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
7974
+ export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "config" | "version" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
8174
7975
  export type IntegrationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
8175
7976
  user?: boolean | Integration$userArgs<ExtArgs>
8176
7977
  entities?: boolean | Integration$entitiesArgs<ExtArgs>
@@ -8201,7 +8002,6 @@ export namespace Prisma {
8201
8002
  id: number
8202
8003
  userId: number | null
8203
8004
  status: $Enums.IntegrationStatus
8204
- organizationId: number | null
8205
8005
  config: Prisma.JsonValue | null
8206
8006
  version: string | null
8207
8007
  errors: Prisma.JsonValue
@@ -8642,7 +8442,6 @@ export namespace Prisma {
8642
8442
  readonly id: FieldRef<"Integration", 'Int'>
8643
8443
  readonly userId: FieldRef<"Integration", 'Int'>
8644
8444
  readonly status: FieldRef<"Integration", 'IntegrationStatus'>
8645
- readonly organizationId: FieldRef<"Integration", 'Int'>
8646
8445
  readonly config: FieldRef<"Integration", 'Json'>
8647
8446
  readonly version: FieldRef<"Integration", 'String'>
8648
8447
  readonly errors: FieldRef<"Integration", 'Json'>
@@ -22543,1189 +22342,79 @@ export namespace Prisma {
22543
22342
 
22544
22343
 
22545
22344
  /**
22546
- * Model OrganizationMembership
22345
+ * Enums
22547
22346
  */
22548
22347
 
22549
- export type AggregateOrganizationMembership = {
22550
- _count: OrganizationMembershipCountAggregateOutputType | null
22551
- _avg: OrganizationMembershipAvgAggregateOutputType | null
22552
- _sum: OrganizationMembershipSumAggregateOutputType | null
22553
- _min: OrganizationMembershipMinAggregateOutputType | null
22554
- _max: OrganizationMembershipMaxAggregateOutputType | null
22555
- }
22556
-
22557
- export type OrganizationMembershipAvgAggregateOutputType = {
22558
- id: number | null
22559
- individualUserId: number | null
22560
- organizationUserId: number | null
22561
- }
22562
-
22563
- export type OrganizationMembershipSumAggregateOutputType = {
22564
- id: number | null
22565
- individualUserId: number | null
22566
- organizationUserId: number | null
22567
- }
22568
-
22569
- export type OrganizationMembershipMinAggregateOutputType = {
22570
- id: number | null
22571
- individualUserId: number | null
22572
- organizationUserId: number | null
22573
- orgRole: string | null
22574
- createdAt: Date | null
22575
- }
22576
-
22577
- export type OrganizationMembershipMaxAggregateOutputType = {
22578
- id: number | null
22579
- individualUserId: number | null
22580
- organizationUserId: number | null
22581
- orgRole: string | null
22582
- createdAt: Date | null
22583
- }
22348
+ export const TransactionIsolationLevel: {
22349
+ ReadUncommitted: 'ReadUncommitted',
22350
+ ReadCommitted: 'ReadCommitted',
22351
+ RepeatableRead: 'RepeatableRead',
22352
+ Serializable: 'Serializable'
22353
+ };
22584
22354
 
22585
- export type OrganizationMembershipCountAggregateOutputType = {
22586
- id: number
22587
- individualUserId: number
22588
- organizationUserId: number
22589
- orgRole: number
22590
- createdAt: number
22591
- _all: number
22592
- }
22355
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
22593
22356
 
22594
22357
 
22595
- export type OrganizationMembershipAvgAggregateInputType = {
22596
- id?: true
22597
- individualUserId?: true
22598
- organizationUserId?: true
22599
- }
22358
+ export const UserScalarFieldEnum: {
22359
+ id: 'id',
22360
+ type: 'type',
22361
+ createdAt: 'createdAt',
22362
+ updatedAt: 'updatedAt',
22363
+ email: 'email',
22364
+ username: 'username',
22365
+ hashword: 'hashword',
22366
+ appUserId: 'appUserId',
22367
+ organizationId: 'organizationId',
22368
+ appOrgId: 'appOrgId',
22369
+ name: 'name'
22370
+ };
22600
22371
 
22601
- export type OrganizationMembershipSumAggregateInputType = {
22602
- id?: true
22603
- individualUserId?: true
22604
- organizationUserId?: true
22605
- }
22372
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
22606
22373
 
22607
- export type OrganizationMembershipMinAggregateInputType = {
22608
- id?: true
22609
- individualUserId?: true
22610
- organizationUserId?: true
22611
- orgRole?: true
22612
- createdAt?: true
22613
- }
22614
22374
 
22615
- export type OrganizationMembershipMaxAggregateInputType = {
22616
- id?: true
22617
- individualUserId?: true
22618
- organizationUserId?: true
22619
- orgRole?: true
22620
- createdAt?: true
22621
- }
22375
+ export const TokenScalarFieldEnum: {
22376
+ id: 'id',
22377
+ token: 'token',
22378
+ created: 'created',
22379
+ expires: 'expires',
22380
+ userId: 'userId'
22381
+ };
22622
22382
 
22623
- export type OrganizationMembershipCountAggregateInputType = {
22624
- id?: true
22625
- individualUserId?: true
22626
- organizationUserId?: true
22627
- orgRole?: true
22628
- createdAt?: true
22629
- _all?: true
22630
- }
22383
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
22631
22384
 
22632
- export type OrganizationMembershipAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22633
- /**
22634
- * Filter which OrganizationMembership to aggregate.
22635
- */
22636
- where?: OrganizationMembershipWhereInput
22637
- /**
22638
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
22639
- *
22640
- * Determine the order of OrganizationMemberships to fetch.
22641
- */
22642
- orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
22643
- /**
22644
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
22645
- *
22646
- * Sets the start position
22647
- */
22648
- cursor?: OrganizationMembershipWhereUniqueInput
22649
- /**
22650
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22651
- *
22652
- * Take `±n` OrganizationMemberships from the position of the cursor.
22653
- */
22654
- take?: number
22655
- /**
22656
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
22657
- *
22658
- * Skip the first `n` OrganizationMemberships.
22659
- */
22660
- skip?: number
22661
- /**
22662
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22663
- *
22664
- * Count returned OrganizationMemberships
22665
- **/
22666
- _count?: true | OrganizationMembershipCountAggregateInputType
22667
- /**
22668
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22669
- *
22670
- * Select which fields to average
22671
- **/
22672
- _avg?: OrganizationMembershipAvgAggregateInputType
22673
- /**
22674
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22675
- *
22676
- * Select which fields to sum
22677
- **/
22678
- _sum?: OrganizationMembershipSumAggregateInputType
22679
- /**
22680
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22681
- *
22682
- * Select which fields to find the minimum value
22683
- **/
22684
- _min?: OrganizationMembershipMinAggregateInputType
22685
- /**
22686
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
22687
- *
22688
- * Select which fields to find the maximum value
22689
- **/
22690
- _max?: OrganizationMembershipMaxAggregateInputType
22691
- }
22692
22385
 
22693
- export type GetOrganizationMembershipAggregateType<T extends OrganizationMembershipAggregateArgs> = {
22694
- [P in keyof T & keyof AggregateOrganizationMembership]: P extends '_count' | 'count'
22695
- ? T[P] extends true
22696
- ? number
22697
- : GetScalarType<T[P], AggregateOrganizationMembership[P]>
22698
- : GetScalarType<T[P], AggregateOrganizationMembership[P]>
22699
- }
22386
+ export const CredentialScalarFieldEnum: {
22387
+ id: 'id',
22388
+ userId: 'userId',
22389
+ authIsValid: 'authIsValid',
22390
+ externalId: 'externalId',
22391
+ data: 'data',
22392
+ createdAt: 'createdAt',
22393
+ updatedAt: 'updatedAt'
22394
+ };
22700
22395
 
22396
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
22701
22397
 
22702
22398
 
22399
+ export const EntityScalarFieldEnum: {
22400
+ id: 'id',
22401
+ credentialId: 'credentialId',
22402
+ userId: 'userId',
22403
+ name: 'name',
22404
+ moduleName: 'moduleName',
22405
+ externalId: 'externalId',
22406
+ data: 'data',
22407
+ createdAt: 'createdAt',
22408
+ updatedAt: 'updatedAt'
22409
+ };
22703
22410
 
22704
- export type OrganizationMembershipGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22705
- where?: OrganizationMembershipWhereInput
22706
- orderBy?: OrganizationMembershipOrderByWithAggregationInput | OrganizationMembershipOrderByWithAggregationInput[]
22707
- by: OrganizationMembershipScalarFieldEnum[] | OrganizationMembershipScalarFieldEnum
22708
- having?: OrganizationMembershipScalarWhereWithAggregatesInput
22709
- take?: number
22710
- skip?: number
22711
- _count?: OrganizationMembershipCountAggregateInputType | true
22712
- _avg?: OrganizationMembershipAvgAggregateInputType
22713
- _sum?: OrganizationMembershipSumAggregateInputType
22714
- _min?: OrganizationMembershipMinAggregateInputType
22715
- _max?: OrganizationMembershipMaxAggregateInputType
22716
- }
22717
-
22718
- export type OrganizationMembershipGroupByOutputType = {
22719
- id: number
22720
- individualUserId: number
22721
- organizationUserId: number
22722
- orgRole: string
22723
- createdAt: Date
22724
- _count: OrganizationMembershipCountAggregateOutputType | null
22725
- _avg: OrganizationMembershipAvgAggregateOutputType | null
22726
- _sum: OrganizationMembershipSumAggregateOutputType | null
22727
- _min: OrganizationMembershipMinAggregateOutputType | null
22728
- _max: OrganizationMembershipMaxAggregateOutputType | null
22729
- }
22730
-
22731
- type GetOrganizationMembershipGroupByPayload<T extends OrganizationMembershipGroupByArgs> = Prisma.PrismaPromise<
22732
- Array<
22733
- PickEnumerable<OrganizationMembershipGroupByOutputType, T['by']> &
22734
- {
22735
- [P in ((keyof T) & (keyof OrganizationMembershipGroupByOutputType))]: P extends '_count'
22736
- ? T[P] extends boolean
22737
- ? number
22738
- : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
22739
- : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
22740
- }
22741
- >
22742
- >
22743
-
22744
-
22745
- export type OrganizationMembershipSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
22746
- id?: boolean
22747
- individualUserId?: boolean
22748
- organizationUserId?: boolean
22749
- orgRole?: boolean
22750
- createdAt?: boolean
22751
- individualUser?: boolean | UserDefaultArgs<ExtArgs>
22752
- organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22753
- }, ExtArgs["result"]["organizationMembership"]>
22754
-
22755
- export type OrganizationMembershipSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
22756
- id?: boolean
22757
- individualUserId?: boolean
22758
- organizationUserId?: boolean
22759
- orgRole?: boolean
22760
- createdAt?: boolean
22761
- individualUser?: boolean | UserDefaultArgs<ExtArgs>
22762
- organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22763
- }, ExtArgs["result"]["organizationMembership"]>
22764
-
22765
- export type OrganizationMembershipSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
22766
- id?: boolean
22767
- individualUserId?: boolean
22768
- organizationUserId?: boolean
22769
- orgRole?: boolean
22770
- createdAt?: boolean
22771
- individualUser?: boolean | UserDefaultArgs<ExtArgs>
22772
- organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22773
- }, ExtArgs["result"]["organizationMembership"]>
22774
-
22775
- export type OrganizationMembershipSelectScalar = {
22776
- id?: boolean
22777
- individualUserId?: boolean
22778
- organizationUserId?: boolean
22779
- orgRole?: boolean
22780
- createdAt?: boolean
22781
- }
22782
-
22783
- export type OrganizationMembershipOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "individualUserId" | "organizationUserId" | "orgRole" | "createdAt", ExtArgs["result"]["organizationMembership"]>
22784
- export type OrganizationMembershipInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22785
- individualUser?: boolean | UserDefaultArgs<ExtArgs>
22786
- organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22787
- }
22788
- export type OrganizationMembershipIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22789
- individualUser?: boolean | UserDefaultArgs<ExtArgs>
22790
- organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22791
- }
22792
- export type OrganizationMembershipIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22793
- individualUser?: boolean | UserDefaultArgs<ExtArgs>
22794
- organizationUser?: boolean | UserDefaultArgs<ExtArgs>
22795
- }
22796
-
22797
- export type $OrganizationMembershipPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
22798
- name: "OrganizationMembership"
22799
- objects: {
22800
- individualUser: Prisma.$UserPayload<ExtArgs>
22801
- organizationUser: Prisma.$UserPayload<ExtArgs>
22802
- }
22803
- scalars: $Extensions.GetPayloadResult<{
22804
- id: number
22805
- individualUserId: number
22806
- organizationUserId: number
22807
- orgRole: string
22808
- createdAt: Date
22809
- }, ExtArgs["result"]["organizationMembership"]>
22810
- composites: {}
22811
- }
22812
-
22813
- type OrganizationMembershipGetPayload<S extends boolean | null | undefined | OrganizationMembershipDefaultArgs> = $Result.GetResult<Prisma.$OrganizationMembershipPayload, S>
22814
-
22815
- type OrganizationMembershipCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
22816
- Omit<OrganizationMembershipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
22817
- select?: OrganizationMembershipCountAggregateInputType | true
22818
- }
22819
-
22820
- export interface OrganizationMembershipDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
22821
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OrganizationMembership'], meta: { name: 'OrganizationMembership' } }
22822
- /**
22823
- * Find zero or one OrganizationMembership that matches the filter.
22824
- * @param {OrganizationMembershipFindUniqueArgs} args - Arguments to find a OrganizationMembership
22825
- * @example
22826
- * // Get one OrganizationMembership
22827
- * const organizationMembership = await prisma.organizationMembership.findUnique({
22828
- * where: {
22829
- * // ... provide filter here
22830
- * }
22831
- * })
22832
- */
22833
- findUnique<T extends OrganizationMembershipFindUniqueArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
22834
-
22835
- /**
22836
- * Find one OrganizationMembership that matches the filter or throw an error with `error.code='P2025'`
22837
- * if no matches were found.
22838
- * @param {OrganizationMembershipFindUniqueOrThrowArgs} args - Arguments to find a OrganizationMembership
22839
- * @example
22840
- * // Get one OrganizationMembership
22841
- * const organizationMembership = await prisma.organizationMembership.findUniqueOrThrow({
22842
- * where: {
22843
- * // ... provide filter here
22844
- * }
22845
- * })
22846
- */
22847
- findUniqueOrThrow<T extends OrganizationMembershipFindUniqueOrThrowArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22848
-
22849
- /**
22850
- * Find the first OrganizationMembership that matches the filter.
22851
- * Note, that providing `undefined` is treated as the value not being there.
22852
- * Read more here: https://pris.ly/d/null-undefined
22853
- * @param {OrganizationMembershipFindFirstArgs} args - Arguments to find a OrganizationMembership
22854
- * @example
22855
- * // Get one OrganizationMembership
22856
- * const organizationMembership = await prisma.organizationMembership.findFirst({
22857
- * where: {
22858
- * // ... provide filter here
22859
- * }
22860
- * })
22861
- */
22862
- findFirst<T extends OrganizationMembershipFindFirstArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
22863
-
22864
- /**
22865
- * Find the first OrganizationMembership that matches the filter or
22866
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
22867
- * Note, that providing `undefined` is treated as the value not being there.
22868
- * Read more here: https://pris.ly/d/null-undefined
22869
- * @param {OrganizationMembershipFindFirstOrThrowArgs} args - Arguments to find a OrganizationMembership
22870
- * @example
22871
- * // Get one OrganizationMembership
22872
- * const organizationMembership = await prisma.organizationMembership.findFirstOrThrow({
22873
- * where: {
22874
- * // ... provide filter here
22875
- * }
22876
- * })
22877
- */
22878
- findFirstOrThrow<T extends OrganizationMembershipFindFirstOrThrowArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22879
-
22880
- /**
22881
- * Find zero or more OrganizationMemberships that matches the filter.
22882
- * Note, that providing `undefined` is treated as the value not being there.
22883
- * Read more here: https://pris.ly/d/null-undefined
22884
- * @param {OrganizationMembershipFindManyArgs} args - Arguments to filter and select certain fields only.
22885
- * @example
22886
- * // Get all OrganizationMemberships
22887
- * const organizationMemberships = await prisma.organizationMembership.findMany()
22888
- *
22889
- * // Get first 10 OrganizationMemberships
22890
- * const organizationMemberships = await prisma.organizationMembership.findMany({ take: 10 })
22891
- *
22892
- * // Only select the `id`
22893
- * const organizationMembershipWithIdOnly = await prisma.organizationMembership.findMany({ select: { id: true } })
22894
- *
22895
- */
22896
- findMany<T extends OrganizationMembershipFindManyArgs>(args?: SelectSubset<T, OrganizationMembershipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
22897
-
22898
- /**
22899
- * Create a OrganizationMembership.
22900
- * @param {OrganizationMembershipCreateArgs} args - Arguments to create a OrganizationMembership.
22901
- * @example
22902
- * // Create one OrganizationMembership
22903
- * const OrganizationMembership = await prisma.organizationMembership.create({
22904
- * data: {
22905
- * // ... data to create a OrganizationMembership
22906
- * }
22907
- * })
22908
- *
22909
- */
22910
- create<T extends OrganizationMembershipCreateArgs>(args: SelectSubset<T, OrganizationMembershipCreateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22911
-
22912
- /**
22913
- * Create many OrganizationMemberships.
22914
- * @param {OrganizationMembershipCreateManyArgs} args - Arguments to create many OrganizationMemberships.
22915
- * @example
22916
- * // Create many OrganizationMemberships
22917
- * const organizationMembership = await prisma.organizationMembership.createMany({
22918
- * data: [
22919
- * // ... provide data here
22920
- * ]
22921
- * })
22922
- *
22923
- */
22924
- createMany<T extends OrganizationMembershipCreateManyArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
22925
-
22926
- /**
22927
- * Create many OrganizationMemberships and returns the data saved in the database.
22928
- * @param {OrganizationMembershipCreateManyAndReturnArgs} args - Arguments to create many OrganizationMemberships.
22929
- * @example
22930
- * // Create many OrganizationMemberships
22931
- * const organizationMembership = await prisma.organizationMembership.createManyAndReturn({
22932
- * data: [
22933
- * // ... provide data here
22934
- * ]
22935
- * })
22936
- *
22937
- * // Create many OrganizationMemberships and only return the `id`
22938
- * const organizationMembershipWithIdOnly = await prisma.organizationMembership.createManyAndReturn({
22939
- * select: { id: true },
22940
- * data: [
22941
- * // ... provide data here
22942
- * ]
22943
- * })
22944
- * Note, that providing `undefined` is treated as the value not being there.
22945
- * Read more here: https://pris.ly/d/null-undefined
22946
- *
22947
- */
22948
- createManyAndReturn<T extends OrganizationMembershipCreateManyAndReturnArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
22949
-
22950
- /**
22951
- * Delete a OrganizationMembership.
22952
- * @param {OrganizationMembershipDeleteArgs} args - Arguments to delete one OrganizationMembership.
22953
- * @example
22954
- * // Delete one OrganizationMembership
22955
- * const OrganizationMembership = await prisma.organizationMembership.delete({
22956
- * where: {
22957
- * // ... filter to delete one OrganizationMembership
22958
- * }
22959
- * })
22960
- *
22961
- */
22962
- delete<T extends OrganizationMembershipDeleteArgs>(args: SelectSubset<T, OrganizationMembershipDeleteArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22963
-
22964
- /**
22965
- * Update one OrganizationMembership.
22966
- * @param {OrganizationMembershipUpdateArgs} args - Arguments to update one OrganizationMembership.
22967
- * @example
22968
- * // Update one OrganizationMembership
22969
- * const organizationMembership = await prisma.organizationMembership.update({
22970
- * where: {
22971
- * // ... provide filter here
22972
- * },
22973
- * data: {
22974
- * // ... provide data here
22975
- * }
22976
- * })
22977
- *
22978
- */
22979
- update<T extends OrganizationMembershipUpdateArgs>(args: SelectSubset<T, OrganizationMembershipUpdateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
22980
-
22981
- /**
22982
- * Delete zero or more OrganizationMemberships.
22983
- * @param {OrganizationMembershipDeleteManyArgs} args - Arguments to filter OrganizationMemberships to delete.
22984
- * @example
22985
- * // Delete a few OrganizationMemberships
22986
- * const { count } = await prisma.organizationMembership.deleteMany({
22987
- * where: {
22988
- * // ... provide filter here
22989
- * }
22990
- * })
22991
- *
22992
- */
22993
- deleteMany<T extends OrganizationMembershipDeleteManyArgs>(args?: SelectSubset<T, OrganizationMembershipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
22994
-
22995
- /**
22996
- * Update zero or more OrganizationMemberships.
22997
- * Note, that providing `undefined` is treated as the value not being there.
22998
- * Read more here: https://pris.ly/d/null-undefined
22999
- * @param {OrganizationMembershipUpdateManyArgs} args - Arguments to update one or more rows.
23000
- * @example
23001
- * // Update many OrganizationMemberships
23002
- * const organizationMembership = await prisma.organizationMembership.updateMany({
23003
- * where: {
23004
- * // ... provide filter here
23005
- * },
23006
- * data: {
23007
- * // ... provide data here
23008
- * }
23009
- * })
23010
- *
23011
- */
23012
- updateMany<T extends OrganizationMembershipUpdateManyArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
23013
-
23014
- /**
23015
- * Update zero or more OrganizationMemberships and returns the data updated in the database.
23016
- * @param {OrganizationMembershipUpdateManyAndReturnArgs} args - Arguments to update many OrganizationMemberships.
23017
- * @example
23018
- * // Update many OrganizationMemberships
23019
- * const organizationMembership = await prisma.organizationMembership.updateManyAndReturn({
23020
- * where: {
23021
- * // ... provide filter here
23022
- * },
23023
- * data: [
23024
- * // ... provide data here
23025
- * ]
23026
- * })
23027
- *
23028
- * // Update zero or more OrganizationMemberships and only return the `id`
23029
- * const organizationMembershipWithIdOnly = await prisma.organizationMembership.updateManyAndReturn({
23030
- * select: { id: true },
23031
- * where: {
23032
- * // ... provide filter here
23033
- * },
23034
- * data: [
23035
- * // ... provide data here
23036
- * ]
23037
- * })
23038
- * Note, that providing `undefined` is treated as the value not being there.
23039
- * Read more here: https://pris.ly/d/null-undefined
23040
- *
23041
- */
23042
- updateManyAndReturn<T extends OrganizationMembershipUpdateManyAndReturnArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
23043
-
23044
- /**
23045
- * Create or update one OrganizationMembership.
23046
- * @param {OrganizationMembershipUpsertArgs} args - Arguments to update or create a OrganizationMembership.
23047
- * @example
23048
- * // Update or create a OrganizationMembership
23049
- * const organizationMembership = await prisma.organizationMembership.upsert({
23050
- * create: {
23051
- * // ... data to create a OrganizationMembership
23052
- * },
23053
- * update: {
23054
- * // ... in case it already exists, update
23055
- * },
23056
- * where: {
23057
- * // ... the filter for the OrganizationMembership we want to update
23058
- * }
23059
- * })
23060
- */
23061
- upsert<T extends OrganizationMembershipUpsertArgs>(args: SelectSubset<T, OrganizationMembershipUpsertArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
23062
-
23063
-
23064
- /**
23065
- * Count the number of OrganizationMemberships.
23066
- * Note, that providing `undefined` is treated as the value not being there.
23067
- * Read more here: https://pris.ly/d/null-undefined
23068
- * @param {OrganizationMembershipCountArgs} args - Arguments to filter OrganizationMemberships to count.
23069
- * @example
23070
- * // Count the number of OrganizationMemberships
23071
- * const count = await prisma.organizationMembership.count({
23072
- * where: {
23073
- * // ... the filter for the OrganizationMemberships we want to count
23074
- * }
23075
- * })
23076
- **/
23077
- count<T extends OrganizationMembershipCountArgs>(
23078
- args?: Subset<T, OrganizationMembershipCountArgs>,
23079
- ): Prisma.PrismaPromise<
23080
- T extends $Utils.Record<'select', any>
23081
- ? T['select'] extends true
23082
- ? number
23083
- : GetScalarType<T['select'], OrganizationMembershipCountAggregateOutputType>
23084
- : number
23085
- >
23086
-
23087
- /**
23088
- * Allows you to perform aggregations operations on a OrganizationMembership.
23089
- * Note, that providing `undefined` is treated as the value not being there.
23090
- * Read more here: https://pris.ly/d/null-undefined
23091
- * @param {OrganizationMembershipAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
23092
- * @example
23093
- * // Ordered by age ascending
23094
- * // Where email contains prisma.io
23095
- * // Limited to the 10 users
23096
- * const aggregations = await prisma.user.aggregate({
23097
- * _avg: {
23098
- * age: true,
23099
- * },
23100
- * where: {
23101
- * email: {
23102
- * contains: "prisma.io",
23103
- * },
23104
- * },
23105
- * orderBy: {
23106
- * age: "asc",
23107
- * },
23108
- * take: 10,
23109
- * })
23110
- **/
23111
- aggregate<T extends OrganizationMembershipAggregateArgs>(args: Subset<T, OrganizationMembershipAggregateArgs>): Prisma.PrismaPromise<GetOrganizationMembershipAggregateType<T>>
23112
-
23113
- /**
23114
- * Group by OrganizationMembership.
23115
- * Note, that providing `undefined` is treated as the value not being there.
23116
- * Read more here: https://pris.ly/d/null-undefined
23117
- * @param {OrganizationMembershipGroupByArgs} args - Group by arguments.
23118
- * @example
23119
- * // Group by city, order by createdAt, get count
23120
- * const result = await prisma.user.groupBy({
23121
- * by: ['city', 'createdAt'],
23122
- * orderBy: {
23123
- * createdAt: true
23124
- * },
23125
- * _count: {
23126
- * _all: true
23127
- * },
23128
- * })
23129
- *
23130
- **/
23131
- groupBy<
23132
- T extends OrganizationMembershipGroupByArgs,
23133
- HasSelectOrTake extends Or<
23134
- Extends<'skip', Keys<T>>,
23135
- Extends<'take', Keys<T>>
23136
- >,
23137
- OrderByArg extends True extends HasSelectOrTake
23138
- ? { orderBy: OrganizationMembershipGroupByArgs['orderBy'] }
23139
- : { orderBy?: OrganizationMembershipGroupByArgs['orderBy'] },
23140
- OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
23141
- ByFields extends MaybeTupleToUnion<T['by']>,
23142
- ByValid extends Has<ByFields, OrderFields>,
23143
- HavingFields extends GetHavingFields<T['having']>,
23144
- HavingValid extends Has<ByFields, HavingFields>,
23145
- ByEmpty extends T['by'] extends never[] ? True : False,
23146
- InputErrors extends ByEmpty extends True
23147
- ? `Error: "by" must not be empty.`
23148
- : HavingValid extends False
23149
- ? {
23150
- [P in HavingFields]: P extends ByFields
23151
- ? never
23152
- : P extends string
23153
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
23154
- : [
23155
- Error,
23156
- 'Field ',
23157
- P,
23158
- ` in "having" needs to be provided in "by"`,
23159
- ]
23160
- }[HavingFields]
23161
- : 'take' extends Keys<T>
23162
- ? 'orderBy' extends Keys<T>
23163
- ? ByValid extends True
23164
- ? {}
23165
- : {
23166
- [P in OrderFields]: P extends ByFields
23167
- ? never
23168
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
23169
- }[OrderFields]
23170
- : 'Error: If you provide "take", you also need to provide "orderBy"'
23171
- : 'skip' extends Keys<T>
23172
- ? 'orderBy' extends Keys<T>
23173
- ? ByValid extends True
23174
- ? {}
23175
- : {
23176
- [P in OrderFields]: P extends ByFields
23177
- ? never
23178
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
23179
- }[OrderFields]
23180
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
23181
- : ByValid extends True
23182
- ? {}
23183
- : {
23184
- [P in OrderFields]: P extends ByFields
23185
- ? never
23186
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
23187
- }[OrderFields]
23188
- >(args: SubsetIntersection<T, OrganizationMembershipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationMembershipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
23189
- /**
23190
- * Fields of the OrganizationMembership model
23191
- */
23192
- readonly fields: OrganizationMembershipFieldRefs;
23193
- }
23194
-
23195
- /**
23196
- * The delegate class that acts as a "Promise-like" for OrganizationMembership.
23197
- * Why is this prefixed with `Prisma__`?
23198
- * Because we want to prevent naming conflicts as mentioned in
23199
- * https://github.com/prisma/prisma-client-js/issues/707
23200
- */
23201
- export interface Prisma__OrganizationMembershipClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
23202
- readonly [Symbol.toStringTag]: "PrismaPromise"
23203
- individualUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
23204
- organizationUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
23205
- /**
23206
- * Attaches callbacks for the resolution and/or rejection of the Promise.
23207
- * @param onfulfilled The callback to execute when the Promise is resolved.
23208
- * @param onrejected The callback to execute when the Promise is rejected.
23209
- * @returns A Promise for the completion of which ever callback is executed.
23210
- */
23211
- then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
23212
- /**
23213
- * Attaches a callback for only the rejection of the Promise.
23214
- * @param onrejected The callback to execute when the Promise is rejected.
23215
- * @returns A Promise for the completion of the callback.
23216
- */
23217
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
23218
- /**
23219
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
23220
- * resolved value cannot be modified from the callback.
23221
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
23222
- * @returns A Promise for the completion of the callback.
23223
- */
23224
- finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
23225
- }
23226
-
23227
-
23228
-
23229
-
23230
- /**
23231
- * Fields of the OrganizationMembership model
23232
- */
23233
- interface OrganizationMembershipFieldRefs {
23234
- readonly id: FieldRef<"OrganizationMembership", 'Int'>
23235
- readonly individualUserId: FieldRef<"OrganizationMembership", 'Int'>
23236
- readonly organizationUserId: FieldRef<"OrganizationMembership", 'Int'>
23237
- readonly orgRole: FieldRef<"OrganizationMembership", 'String'>
23238
- readonly createdAt: FieldRef<"OrganizationMembership", 'DateTime'>
23239
- }
23240
-
23241
-
23242
- // Custom InputTypes
23243
- /**
23244
- * OrganizationMembership findUnique
23245
- */
23246
- export type OrganizationMembershipFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23247
- /**
23248
- * Select specific fields to fetch from the OrganizationMembership
23249
- */
23250
- select?: OrganizationMembershipSelect<ExtArgs> | null
23251
- /**
23252
- * Omit specific fields from the OrganizationMembership
23253
- */
23254
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23255
- /**
23256
- * Choose, which related nodes to fetch as well
23257
- */
23258
- include?: OrganizationMembershipInclude<ExtArgs> | null
23259
- /**
23260
- * Filter, which OrganizationMembership to fetch.
23261
- */
23262
- where: OrganizationMembershipWhereUniqueInput
23263
- }
23264
-
23265
- /**
23266
- * OrganizationMembership findUniqueOrThrow
23267
- */
23268
- export type OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23269
- /**
23270
- * Select specific fields to fetch from the OrganizationMembership
23271
- */
23272
- select?: OrganizationMembershipSelect<ExtArgs> | null
23273
- /**
23274
- * Omit specific fields from the OrganizationMembership
23275
- */
23276
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23277
- /**
23278
- * Choose, which related nodes to fetch as well
23279
- */
23280
- include?: OrganizationMembershipInclude<ExtArgs> | null
23281
- /**
23282
- * Filter, which OrganizationMembership to fetch.
23283
- */
23284
- where: OrganizationMembershipWhereUniqueInput
23285
- }
23286
-
23287
- /**
23288
- * OrganizationMembership findFirst
23289
- */
23290
- export type OrganizationMembershipFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23291
- /**
23292
- * Select specific fields to fetch from the OrganizationMembership
23293
- */
23294
- select?: OrganizationMembershipSelect<ExtArgs> | null
23295
- /**
23296
- * Omit specific fields from the OrganizationMembership
23297
- */
23298
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23299
- /**
23300
- * Choose, which related nodes to fetch as well
23301
- */
23302
- include?: OrganizationMembershipInclude<ExtArgs> | null
23303
- /**
23304
- * Filter, which OrganizationMembership to fetch.
23305
- */
23306
- where?: OrganizationMembershipWhereInput
23307
- /**
23308
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23309
- *
23310
- * Determine the order of OrganizationMemberships to fetch.
23311
- */
23312
- orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
23313
- /**
23314
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23315
- *
23316
- * Sets the position for searching for OrganizationMemberships.
23317
- */
23318
- cursor?: OrganizationMembershipWhereUniqueInput
23319
- /**
23320
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23321
- *
23322
- * Take `±n` OrganizationMemberships from the position of the cursor.
23323
- */
23324
- take?: number
23325
- /**
23326
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23327
- *
23328
- * Skip the first `n` OrganizationMemberships.
23329
- */
23330
- skip?: number
23331
- /**
23332
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
23333
- *
23334
- * Filter by unique combinations of OrganizationMemberships.
23335
- */
23336
- distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
23337
- }
23338
-
23339
- /**
23340
- * OrganizationMembership findFirstOrThrow
23341
- */
23342
- export type OrganizationMembershipFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23343
- /**
23344
- * Select specific fields to fetch from the OrganizationMembership
23345
- */
23346
- select?: OrganizationMembershipSelect<ExtArgs> | null
23347
- /**
23348
- * Omit specific fields from the OrganizationMembership
23349
- */
23350
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23351
- /**
23352
- * Choose, which related nodes to fetch as well
23353
- */
23354
- include?: OrganizationMembershipInclude<ExtArgs> | null
23355
- /**
23356
- * Filter, which OrganizationMembership to fetch.
23357
- */
23358
- where?: OrganizationMembershipWhereInput
23359
- /**
23360
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23361
- *
23362
- * Determine the order of OrganizationMemberships to fetch.
23363
- */
23364
- orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
23365
- /**
23366
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23367
- *
23368
- * Sets the position for searching for OrganizationMemberships.
23369
- */
23370
- cursor?: OrganizationMembershipWhereUniqueInput
23371
- /**
23372
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23373
- *
23374
- * Take `±n` OrganizationMemberships from the position of the cursor.
23375
- */
23376
- take?: number
23377
- /**
23378
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23379
- *
23380
- * Skip the first `n` OrganizationMemberships.
23381
- */
23382
- skip?: number
23383
- /**
23384
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
23385
- *
23386
- * Filter by unique combinations of OrganizationMemberships.
23387
- */
23388
- distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
23389
- }
23390
-
23391
- /**
23392
- * OrganizationMembership findMany
23393
- */
23394
- export type OrganizationMembershipFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23395
- /**
23396
- * Select specific fields to fetch from the OrganizationMembership
23397
- */
23398
- select?: OrganizationMembershipSelect<ExtArgs> | null
23399
- /**
23400
- * Omit specific fields from the OrganizationMembership
23401
- */
23402
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23403
- /**
23404
- * Choose, which related nodes to fetch as well
23405
- */
23406
- include?: OrganizationMembershipInclude<ExtArgs> | null
23407
- /**
23408
- * Filter, which OrganizationMemberships to fetch.
23409
- */
23410
- where?: OrganizationMembershipWhereInput
23411
- /**
23412
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
23413
- *
23414
- * Determine the order of OrganizationMemberships to fetch.
23415
- */
23416
- orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
23417
- /**
23418
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
23419
- *
23420
- * Sets the position for listing OrganizationMemberships.
23421
- */
23422
- cursor?: OrganizationMembershipWhereUniqueInput
23423
- /**
23424
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23425
- *
23426
- * Take `±n` OrganizationMemberships from the position of the cursor.
23427
- */
23428
- take?: number
23429
- /**
23430
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
23431
- *
23432
- * Skip the first `n` OrganizationMemberships.
23433
- */
23434
- skip?: number
23435
- distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
23436
- }
23437
-
23438
- /**
23439
- * OrganizationMembership create
23440
- */
23441
- export type OrganizationMembershipCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23442
- /**
23443
- * Select specific fields to fetch from the OrganizationMembership
23444
- */
23445
- select?: OrganizationMembershipSelect<ExtArgs> | null
23446
- /**
23447
- * Omit specific fields from the OrganizationMembership
23448
- */
23449
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23450
- /**
23451
- * Choose, which related nodes to fetch as well
23452
- */
23453
- include?: OrganizationMembershipInclude<ExtArgs> | null
23454
- /**
23455
- * The data needed to create a OrganizationMembership.
23456
- */
23457
- data: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
23458
- }
23459
-
23460
- /**
23461
- * OrganizationMembership createMany
23462
- */
23463
- export type OrganizationMembershipCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23464
- /**
23465
- * The data used to create many OrganizationMemberships.
23466
- */
23467
- data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
23468
- skipDuplicates?: boolean
23469
- }
23470
-
23471
- /**
23472
- * OrganizationMembership createManyAndReturn
23473
- */
23474
- export type OrganizationMembershipCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23475
- /**
23476
- * Select specific fields to fetch from the OrganizationMembership
23477
- */
23478
- select?: OrganizationMembershipSelectCreateManyAndReturn<ExtArgs> | null
23479
- /**
23480
- * Omit specific fields from the OrganizationMembership
23481
- */
23482
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23483
- /**
23484
- * The data used to create many OrganizationMemberships.
23485
- */
23486
- data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
23487
- skipDuplicates?: boolean
23488
- /**
23489
- * Choose, which related nodes to fetch as well
23490
- */
23491
- include?: OrganizationMembershipIncludeCreateManyAndReturn<ExtArgs> | null
23492
- }
23493
-
23494
- /**
23495
- * OrganizationMembership update
23496
- */
23497
- export type OrganizationMembershipUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23498
- /**
23499
- * Select specific fields to fetch from the OrganizationMembership
23500
- */
23501
- select?: OrganizationMembershipSelect<ExtArgs> | null
23502
- /**
23503
- * Omit specific fields from the OrganizationMembership
23504
- */
23505
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23506
- /**
23507
- * Choose, which related nodes to fetch as well
23508
- */
23509
- include?: OrganizationMembershipInclude<ExtArgs> | null
23510
- /**
23511
- * The data needed to update a OrganizationMembership.
23512
- */
23513
- data: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
23514
- /**
23515
- * Choose, which OrganizationMembership to update.
23516
- */
23517
- where: OrganizationMembershipWhereUniqueInput
23518
- }
23519
-
23520
- /**
23521
- * OrganizationMembership updateMany
23522
- */
23523
- export type OrganizationMembershipUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23524
- /**
23525
- * The data used to update OrganizationMemberships.
23526
- */
23527
- data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
23528
- /**
23529
- * Filter which OrganizationMemberships to update
23530
- */
23531
- where?: OrganizationMembershipWhereInput
23532
- /**
23533
- * Limit how many OrganizationMemberships to update.
23534
- */
23535
- limit?: number
23536
- }
23537
-
23538
- /**
23539
- * OrganizationMembership updateManyAndReturn
23540
- */
23541
- export type OrganizationMembershipUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23542
- /**
23543
- * Select specific fields to fetch from the OrganizationMembership
23544
- */
23545
- select?: OrganizationMembershipSelectUpdateManyAndReturn<ExtArgs> | null
23546
- /**
23547
- * Omit specific fields from the OrganizationMembership
23548
- */
23549
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23550
- /**
23551
- * The data used to update OrganizationMemberships.
23552
- */
23553
- data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
23554
- /**
23555
- * Filter which OrganizationMemberships to update
23556
- */
23557
- where?: OrganizationMembershipWhereInput
23558
- /**
23559
- * Limit how many OrganizationMemberships to update.
23560
- */
23561
- limit?: number
23562
- /**
23563
- * Choose, which related nodes to fetch as well
23564
- */
23565
- include?: OrganizationMembershipIncludeUpdateManyAndReturn<ExtArgs> | null
23566
- }
23567
-
23568
- /**
23569
- * OrganizationMembership upsert
23570
- */
23571
- export type OrganizationMembershipUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23572
- /**
23573
- * Select specific fields to fetch from the OrganizationMembership
23574
- */
23575
- select?: OrganizationMembershipSelect<ExtArgs> | null
23576
- /**
23577
- * Omit specific fields from the OrganizationMembership
23578
- */
23579
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23580
- /**
23581
- * Choose, which related nodes to fetch as well
23582
- */
23583
- include?: OrganizationMembershipInclude<ExtArgs> | null
23584
- /**
23585
- * The filter to search for the OrganizationMembership to update in case it exists.
23586
- */
23587
- where: OrganizationMembershipWhereUniqueInput
23588
- /**
23589
- * In case the OrganizationMembership found by the `where` argument doesn't exist, create a new OrganizationMembership with this data.
23590
- */
23591
- create: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
23592
- /**
23593
- * In case the OrganizationMembership was found with the provided `where` argument, update it with this data.
23594
- */
23595
- update: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
23596
- }
23597
-
23598
- /**
23599
- * OrganizationMembership delete
23600
- */
23601
- export type OrganizationMembershipDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23602
- /**
23603
- * Select specific fields to fetch from the OrganizationMembership
23604
- */
23605
- select?: OrganizationMembershipSelect<ExtArgs> | null
23606
- /**
23607
- * Omit specific fields from the OrganizationMembership
23608
- */
23609
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23610
- /**
23611
- * Choose, which related nodes to fetch as well
23612
- */
23613
- include?: OrganizationMembershipInclude<ExtArgs> | null
23614
- /**
23615
- * Filter which OrganizationMembership to delete.
23616
- */
23617
- where: OrganizationMembershipWhereUniqueInput
23618
- }
23619
-
23620
- /**
23621
- * OrganizationMembership deleteMany
23622
- */
23623
- export type OrganizationMembershipDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23624
- /**
23625
- * Filter which OrganizationMemberships to delete
23626
- */
23627
- where?: OrganizationMembershipWhereInput
23628
- /**
23629
- * Limit how many OrganizationMemberships to delete.
23630
- */
23631
- limit?: number
23632
- }
23633
-
23634
- /**
23635
- * OrganizationMembership without action
23636
- */
23637
- export type OrganizationMembershipDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
23638
- /**
23639
- * Select specific fields to fetch from the OrganizationMembership
23640
- */
23641
- select?: OrganizationMembershipSelect<ExtArgs> | null
23642
- /**
23643
- * Omit specific fields from the OrganizationMembership
23644
- */
23645
- omit?: OrganizationMembershipOmit<ExtArgs> | null
23646
- /**
23647
- * Choose, which related nodes to fetch as well
23648
- */
23649
- include?: OrganizationMembershipInclude<ExtArgs> | null
23650
- }
23651
-
23652
-
23653
- /**
23654
- * Enums
23655
- */
23656
-
23657
- export const TransactionIsolationLevel: {
23658
- ReadUncommitted: 'ReadUncommitted',
23659
- ReadCommitted: 'ReadCommitted',
23660
- RepeatableRead: 'RepeatableRead',
23661
- Serializable: 'Serializable'
23662
- };
23663
-
23664
- export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
23665
-
23666
-
23667
- export const UserScalarFieldEnum: {
23668
- id: 'id',
23669
- type: 'type',
23670
- createdAt: 'createdAt',
23671
- updatedAt: 'updatedAt',
23672
- email: 'email',
23673
- username: 'username',
23674
- hashword: 'hashword',
23675
- appUserId: 'appUserId',
23676
- organizationId: 'organizationId',
23677
- appOrgId: 'appOrgId',
23678
- name: 'name'
23679
- };
23680
-
23681
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
23682
-
23683
-
23684
- export const TokenScalarFieldEnum: {
23685
- id: 'id',
23686
- token: 'token',
23687
- created: 'created',
23688
- expires: 'expires',
23689
- userId: 'userId'
23690
- };
23691
-
23692
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
23693
-
23694
-
23695
- export const CredentialScalarFieldEnum: {
23696
- id: 'id',
23697
- userId: 'userId',
23698
- authIsValid: 'authIsValid',
23699
- externalId: 'externalId',
23700
- data: 'data',
23701
- createdAt: 'createdAt',
23702
- updatedAt: 'updatedAt'
23703
- };
23704
-
23705
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
23706
-
23707
-
23708
- export const EntityScalarFieldEnum: {
23709
- id: 'id',
23710
- credentialId: 'credentialId',
23711
- userId: 'userId',
23712
- name: 'name',
23713
- moduleName: 'moduleName',
23714
- externalId: 'externalId',
23715
- organizationId: 'organizationId',
23716
- data: 'data',
23717
- createdAt: 'createdAt',
23718
- updatedAt: 'updatedAt'
23719
- };
23720
-
23721
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
22411
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
23722
22412
 
23723
22413
 
23724
22414
  export const IntegrationScalarFieldEnum: {
23725
22415
  id: 'id',
23726
22416
  userId: 'userId',
23727
22417
  status: 'status',
23728
- organizationId: 'organizationId',
23729
22418
  config: 'config',
23730
22419
  version: 'version',
23731
22420
  errors: 'errors',
@@ -23892,17 +22581,6 @@ export namespace Prisma {
23892
22581
  export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
23893
22582
 
23894
22583
 
23895
- export const OrganizationMembershipScalarFieldEnum: {
23896
- id: 'id',
23897
- individualUserId: 'individualUserId',
23898
- organizationUserId: 'organizationUserId',
23899
- orgRole: 'orgRole',
23900
- createdAt: 'createdAt'
23901
- };
23902
-
23903
- export type OrganizationMembershipScalarFieldEnum = (typeof OrganizationMembershipScalarFieldEnum)[keyof typeof OrganizationMembershipScalarFieldEnum]
23904
-
23905
-
23906
22584
  export const SortOrder: {
23907
22585
  asc: 'asc',
23908
22586
  desc: 'desc'
@@ -24128,8 +22806,6 @@ export namespace Prisma {
24128
22806
  entities?: EntityListRelationFilter
24129
22807
  integrations?: IntegrationListRelationFilter
24130
22808
  processes?: ProcessListRelationFilter
24131
- memberships?: OrganizationMembershipListRelationFilter
24132
- orgMembers?: OrganizationMembershipListRelationFilter
24133
22809
  }
24134
22810
 
24135
22811
  export type UserOrderByWithRelationInput = {
@@ -24151,8 +22827,6 @@ export namespace Prisma {
24151
22827
  entities?: EntityOrderByRelationAggregateInput
24152
22828
  integrations?: IntegrationOrderByRelationAggregateInput
24153
22829
  processes?: ProcessOrderByRelationAggregateInput
24154
- memberships?: OrganizationMembershipOrderByRelationAggregateInput
24155
- orgMembers?: OrganizationMembershipOrderByRelationAggregateInput
24156
22830
  }
24157
22831
 
24158
22832
  export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -24178,8 +22852,6 @@ export namespace Prisma {
24178
22852
  entities?: EntityListRelationFilter
24179
22853
  integrations?: IntegrationListRelationFilter
24180
22854
  processes?: ProcessListRelationFilter
24181
- memberships?: OrganizationMembershipListRelationFilter
24182
- orgMembers?: OrganizationMembershipListRelationFilter
24183
22855
  }, "id" | "username_appUserId">
24184
22856
 
24185
22857
  export type UserOrderByWithAggregationInput = {
@@ -24355,7 +23027,6 @@ export namespace Prisma {
24355
23027
  name?: StringNullableFilter<"Entity"> | string | null
24356
23028
  moduleName?: StringNullableFilter<"Entity"> | string | null
24357
23029
  externalId?: StringNullableFilter<"Entity"> | string | null
24358
- organizationId?: IntNullableFilter<"Entity"> | number | null
24359
23030
  data?: JsonFilter<"Entity">
24360
23031
  createdAt?: DateTimeFilter<"Entity"> | Date | string
24361
23032
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -24374,7 +23045,6 @@ export namespace Prisma {
24374
23045
  name?: SortOrderInput | SortOrder
24375
23046
  moduleName?: SortOrderInput | SortOrder
24376
23047
  externalId?: SortOrderInput | SortOrder
24377
- organizationId?: SortOrderInput | SortOrder
24378
23048
  data?: SortOrder
24379
23049
  createdAt?: SortOrder
24380
23050
  updatedAt?: SortOrder
@@ -24396,7 +23066,6 @@ export namespace Prisma {
24396
23066
  name?: StringNullableFilter<"Entity"> | string | null
24397
23067
  moduleName?: StringNullableFilter<"Entity"> | string | null
24398
23068
  externalId?: StringNullableFilter<"Entity"> | string | null
24399
- organizationId?: IntNullableFilter<"Entity"> | number | null
24400
23069
  data?: JsonFilter<"Entity">
24401
23070
  createdAt?: DateTimeFilter<"Entity"> | Date | string
24402
23071
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -24415,7 +23084,6 @@ export namespace Prisma {
24415
23084
  name?: SortOrderInput | SortOrder
24416
23085
  moduleName?: SortOrderInput | SortOrder
24417
23086
  externalId?: SortOrderInput | SortOrder
24418
- organizationId?: SortOrderInput | SortOrder
24419
23087
  data?: SortOrder
24420
23088
  createdAt?: SortOrder
24421
23089
  updatedAt?: SortOrder
@@ -24436,7 +23104,6 @@ export namespace Prisma {
24436
23104
  name?: StringNullableWithAggregatesFilter<"Entity"> | string | null
24437
23105
  moduleName?: StringNullableWithAggregatesFilter<"Entity"> | string | null
24438
23106
  externalId?: StringNullableWithAggregatesFilter<"Entity"> | string | null
24439
- organizationId?: IntNullableWithAggregatesFilter<"Entity"> | number | null
24440
23107
  data?: JsonWithAggregatesFilter<"Entity">
24441
23108
  createdAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
24442
23109
  updatedAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
@@ -24449,7 +23116,6 @@ export namespace Prisma {
24449
23116
  id?: IntFilter<"Integration"> | number
24450
23117
  userId?: IntNullableFilter<"Integration"> | number | null
24451
23118
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
24452
- organizationId?: IntNullableFilter<"Integration"> | number | null
24453
23119
  config?: JsonNullableFilter<"Integration">
24454
23120
  version?: StringNullableFilter<"Integration"> | string | null
24455
23121
  errors?: JsonFilter<"Integration">
@@ -24470,7 +23136,6 @@ export namespace Prisma {
24470
23136
  id?: SortOrder
24471
23137
  userId?: SortOrderInput | SortOrder
24472
23138
  status?: SortOrder
24473
- organizationId?: SortOrderInput | SortOrder
24474
23139
  config?: SortOrderInput | SortOrder
24475
23140
  version?: SortOrderInput | SortOrder
24476
23141
  errors?: SortOrder
@@ -24494,7 +23159,6 @@ export namespace Prisma {
24494
23159
  NOT?: IntegrationWhereInput | IntegrationWhereInput[]
24495
23160
  userId?: IntNullableFilter<"Integration"> | number | null
24496
23161
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
24497
- organizationId?: IntNullableFilter<"Integration"> | number | null
24498
23162
  config?: JsonNullableFilter<"Integration">
24499
23163
  version?: StringNullableFilter<"Integration"> | string | null
24500
23164
  errors?: JsonFilter<"Integration">
@@ -24515,7 +23179,6 @@ export namespace Prisma {
24515
23179
  id?: SortOrder
24516
23180
  userId?: SortOrderInput | SortOrder
24517
23181
  status?: SortOrder
24518
- organizationId?: SortOrderInput | SortOrder
24519
23182
  config?: SortOrderInput | SortOrder
24520
23183
  version?: SortOrderInput | SortOrder
24521
23184
  errors?: SortOrder
@@ -24538,7 +23201,6 @@ export namespace Prisma {
24538
23201
  id?: IntWithAggregatesFilter<"Integration"> | number
24539
23202
  userId?: IntNullableWithAggregatesFilter<"Integration"> | number | null
24540
23203
  status?: EnumIntegrationStatusWithAggregatesFilter<"Integration"> | $Enums.IntegrationStatus
24541
- organizationId?: IntNullableWithAggregatesFilter<"Integration"> | number | null
24542
23204
  config?: JsonNullableWithAggregatesFilter<"Integration">
24543
23205
  version?: StringNullableWithAggregatesFilter<"Integration"> | string | null
24544
23206
  errors?: JsonWithAggregatesFilter<"Integration">
@@ -25352,67 +24014,6 @@ export namespace Prisma {
25352
24014
  updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
25353
24015
  }
25354
24016
 
25355
- export type OrganizationMembershipWhereInput = {
25356
- AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
25357
- OR?: OrganizationMembershipWhereInput[]
25358
- NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
25359
- id?: IntFilter<"OrganizationMembership"> | number
25360
- individualUserId?: IntFilter<"OrganizationMembership"> | number
25361
- organizationUserId?: IntFilter<"OrganizationMembership"> | number
25362
- orgRole?: StringFilter<"OrganizationMembership"> | string
25363
- createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
25364
- individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
25365
- organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
25366
- }
25367
-
25368
- export type OrganizationMembershipOrderByWithRelationInput = {
25369
- id?: SortOrder
25370
- individualUserId?: SortOrder
25371
- organizationUserId?: SortOrder
25372
- orgRole?: SortOrder
25373
- createdAt?: SortOrder
25374
- individualUser?: UserOrderByWithRelationInput
25375
- organizationUser?: UserOrderByWithRelationInput
25376
- }
25377
-
25378
- export type OrganizationMembershipWhereUniqueInput = Prisma.AtLeast<{
25379
- id?: number
25380
- individualUserId_organizationUserId?: OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput
25381
- AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
25382
- OR?: OrganizationMembershipWhereInput[]
25383
- NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
25384
- individualUserId?: IntFilter<"OrganizationMembership"> | number
25385
- organizationUserId?: IntFilter<"OrganizationMembership"> | number
25386
- orgRole?: StringFilter<"OrganizationMembership"> | string
25387
- createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
25388
- individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
25389
- organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
25390
- }, "id" | "individualUserId_organizationUserId">
25391
-
25392
- export type OrganizationMembershipOrderByWithAggregationInput = {
25393
- id?: SortOrder
25394
- individualUserId?: SortOrder
25395
- organizationUserId?: SortOrder
25396
- orgRole?: SortOrder
25397
- createdAt?: SortOrder
25398
- _count?: OrganizationMembershipCountOrderByAggregateInput
25399
- _avg?: OrganizationMembershipAvgOrderByAggregateInput
25400
- _max?: OrganizationMembershipMaxOrderByAggregateInput
25401
- _min?: OrganizationMembershipMinOrderByAggregateInput
25402
- _sum?: OrganizationMembershipSumOrderByAggregateInput
25403
- }
25404
-
25405
- export type OrganizationMembershipScalarWhereWithAggregatesInput = {
25406
- AND?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
25407
- OR?: OrganizationMembershipScalarWhereWithAggregatesInput[]
25408
- NOT?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
25409
- id?: IntWithAggregatesFilter<"OrganizationMembership"> | number
25410
- individualUserId?: IntWithAggregatesFilter<"OrganizationMembership"> | number
25411
- organizationUserId?: IntWithAggregatesFilter<"OrganizationMembership"> | number
25412
- orgRole?: StringWithAggregatesFilter<"OrganizationMembership"> | string
25413
- createdAt?: DateTimeWithAggregatesFilter<"OrganizationMembership"> | Date | string
25414
- }
25415
-
25416
24017
  export type UserCreateInput = {
25417
24018
  type: $Enums.UserType
25418
24019
  createdAt?: Date | string
@@ -25430,8 +24031,6 @@ export namespace Prisma {
25430
24031
  entities?: EntityCreateNestedManyWithoutUserInput
25431
24032
  integrations?: IntegrationCreateNestedManyWithoutUserInput
25432
24033
  processes?: ProcessCreateNestedManyWithoutUserInput
25433
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
25434
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
25435
24034
  }
25436
24035
 
25437
24036
  export type UserUncheckedCreateInput = {
@@ -25452,8 +24051,6 @@ export namespace Prisma {
25452
24051
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
25453
24052
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
25454
24053
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
25455
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
25456
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
25457
24054
  }
25458
24055
 
25459
24056
  export type UserUpdateInput = {
@@ -25473,8 +24070,6 @@ export namespace Prisma {
25473
24070
  entities?: EntityUpdateManyWithoutUserNestedInput
25474
24071
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
25475
24072
  processes?: ProcessUpdateManyWithoutUserNestedInput
25476
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
25477
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
25478
24073
  }
25479
24074
 
25480
24075
  export type UserUncheckedUpdateInput = {
@@ -25495,8 +24090,6 @@ export namespace Prisma {
25495
24090
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
25496
24091
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
25497
24092
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
25498
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
25499
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
25500
24093
  }
25501
24094
 
25502
24095
  export type UserCreateManyInput = {
@@ -25665,7 +24258,6 @@ export namespace Prisma {
25665
24258
  name?: string | null
25666
24259
  moduleName?: string | null
25667
24260
  externalId?: string | null
25668
- organizationId?: number | null
25669
24261
  data?: JsonNullValueInput | InputJsonValue
25670
24262
  createdAt?: Date | string
25671
24263
  updatedAt?: Date | string
@@ -25684,7 +24276,6 @@ export namespace Prisma {
25684
24276
  name?: string | null
25685
24277
  moduleName?: string | null
25686
24278
  externalId?: string | null
25687
- organizationId?: number | null
25688
24279
  data?: JsonNullValueInput | InputJsonValue
25689
24280
  createdAt?: Date | string
25690
24281
  updatedAt?: Date | string
@@ -25698,7 +24289,6 @@ export namespace Prisma {
25698
24289
  name?: NullableStringFieldUpdateOperationsInput | string | null
25699
24290
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25700
24291
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25701
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25702
24292
  data?: JsonNullValueInput | InputJsonValue
25703
24293
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25704
24294
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25717,7 +24307,6 @@ export namespace Prisma {
25717
24307
  name?: NullableStringFieldUpdateOperationsInput | string | null
25718
24308
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25719
24309
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25720
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25721
24310
  data?: JsonNullValueInput | InputJsonValue
25722
24311
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25723
24312
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25734,7 +24323,6 @@ export namespace Prisma {
25734
24323
  name?: string | null
25735
24324
  moduleName?: string | null
25736
24325
  externalId?: string | null
25737
- organizationId?: number | null
25738
24326
  data?: JsonNullValueInput | InputJsonValue
25739
24327
  createdAt?: Date | string
25740
24328
  updatedAt?: Date | string
@@ -25744,7 +24332,6 @@ export namespace Prisma {
25744
24332
  name?: NullableStringFieldUpdateOperationsInput | string | null
25745
24333
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25746
24334
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25747
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25748
24335
  data?: JsonNullValueInput | InputJsonValue
25749
24336
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25750
24337
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25757,7 +24344,6 @@ export namespace Prisma {
25757
24344
  name?: NullableStringFieldUpdateOperationsInput | string | null
25758
24345
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
25759
24346
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
25760
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25761
24347
  data?: JsonNullValueInput | InputJsonValue
25762
24348
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
25763
24349
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -25765,7 +24351,6 @@ export namespace Prisma {
25765
24351
 
25766
24352
  export type IntegrationCreateInput = {
25767
24353
  status?: $Enums.IntegrationStatus
25768
- organizationId?: number | null
25769
24354
  config?: NullableJsonNullValueInput | InputJsonValue
25770
24355
  version?: string | null
25771
24356
  errors?: JsonNullValueInput | InputJsonValue
@@ -25786,7 +24371,6 @@ export namespace Prisma {
25786
24371
  id?: number
25787
24372
  userId?: number | null
25788
24373
  status?: $Enums.IntegrationStatus
25789
- organizationId?: number | null
25790
24374
  config?: NullableJsonNullValueInput | InputJsonValue
25791
24375
  version?: string | null
25792
24376
  errors?: JsonNullValueInput | InputJsonValue
@@ -25804,7 +24388,6 @@ export namespace Prisma {
25804
24388
 
25805
24389
  export type IntegrationUpdateInput = {
25806
24390
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25807
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25808
24391
  config?: NullableJsonNullValueInput | InputJsonValue
25809
24392
  version?: NullableStringFieldUpdateOperationsInput | string | null
25810
24393
  errors?: JsonNullValueInput | InputJsonValue
@@ -25825,7 +24408,6 @@ export namespace Prisma {
25825
24408
  id?: IntFieldUpdateOperationsInput | number
25826
24409
  userId?: NullableIntFieldUpdateOperationsInput | number | null
25827
24410
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25828
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25829
24411
  config?: NullableJsonNullValueInput | InputJsonValue
25830
24412
  version?: NullableStringFieldUpdateOperationsInput | string | null
25831
24413
  errors?: JsonNullValueInput | InputJsonValue
@@ -25845,7 +24427,6 @@ export namespace Prisma {
25845
24427
  id?: number
25846
24428
  userId?: number | null
25847
24429
  status?: $Enums.IntegrationStatus
25848
- organizationId?: number | null
25849
24430
  config?: NullableJsonNullValueInput | InputJsonValue
25850
24431
  version?: string | null
25851
24432
  errors?: JsonNullValueInput | InputJsonValue
@@ -25858,7 +24439,6 @@ export namespace Prisma {
25858
24439
 
25859
24440
  export type IntegrationUpdateManyMutationInput = {
25860
24441
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25861
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25862
24442
  config?: NullableJsonNullValueInput | InputJsonValue
25863
24443
  version?: NullableStringFieldUpdateOperationsInput | string | null
25864
24444
  errors?: JsonNullValueInput | InputJsonValue
@@ -25873,7 +24453,6 @@ export namespace Prisma {
25873
24453
  id?: IntFieldUpdateOperationsInput | number
25874
24454
  userId?: NullableIntFieldUpdateOperationsInput | number | null
25875
24455
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
25876
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
25877
24456
  config?: NullableJsonNullValueInput | InputJsonValue
25878
24457
  version?: NullableStringFieldUpdateOperationsInput | string | null
25879
24458
  errors?: JsonNullValueInput | InputJsonValue
@@ -26676,57 +25255,6 @@ export namespace Prisma {
26676
25255
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26677
25256
  }
26678
25257
 
26679
- export type OrganizationMembershipCreateInput = {
26680
- orgRole?: string
26681
- createdAt?: Date | string
26682
- individualUser: UserCreateNestedOneWithoutMembershipsInput
26683
- organizationUser: UserCreateNestedOneWithoutOrgMembersInput
26684
- }
26685
-
26686
- export type OrganizationMembershipUncheckedCreateInput = {
26687
- id?: number
26688
- individualUserId: number
26689
- organizationUserId: number
26690
- orgRole?: string
26691
- createdAt?: Date | string
26692
- }
26693
-
26694
- export type OrganizationMembershipUpdateInput = {
26695
- orgRole?: StringFieldUpdateOperationsInput | string
26696
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26697
- individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
26698
- organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
26699
- }
26700
-
26701
- export type OrganizationMembershipUncheckedUpdateInput = {
26702
- id?: IntFieldUpdateOperationsInput | number
26703
- individualUserId?: IntFieldUpdateOperationsInput | number
26704
- organizationUserId?: IntFieldUpdateOperationsInput | number
26705
- orgRole?: StringFieldUpdateOperationsInput | string
26706
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26707
- }
26708
-
26709
- export type OrganizationMembershipCreateManyInput = {
26710
- id?: number
26711
- individualUserId: number
26712
- organizationUserId: number
26713
- orgRole?: string
26714
- createdAt?: Date | string
26715
- }
26716
-
26717
- export type OrganizationMembershipUpdateManyMutationInput = {
26718
- orgRole?: StringFieldUpdateOperationsInput | string
26719
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26720
- }
26721
-
26722
- export type OrganizationMembershipUncheckedUpdateManyInput = {
26723
- id?: IntFieldUpdateOperationsInput | number
26724
- individualUserId?: IntFieldUpdateOperationsInput | number
26725
- organizationUserId?: IntFieldUpdateOperationsInput | number
26726
- orgRole?: StringFieldUpdateOperationsInput | string
26727
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26728
- }
26729
-
26730
25258
  export type IntFilter<$PrismaModel = never> = {
26731
25259
  equals?: number | IntFieldRefInput<$PrismaModel>
26732
25260
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -26823,12 +25351,6 @@ export namespace Prisma {
26823
25351
  none?: ProcessWhereInput
26824
25352
  }
26825
25353
 
26826
- export type OrganizationMembershipListRelationFilter = {
26827
- every?: OrganizationMembershipWhereInput
26828
- some?: OrganizationMembershipWhereInput
26829
- none?: OrganizationMembershipWhereInput
26830
- }
26831
-
26832
25354
  export type SortOrderInput = {
26833
25355
  sort: SortOrder
26834
25356
  nulls?: NullsOrder
@@ -26858,10 +25380,6 @@ export namespace Prisma {
26858
25380
  _count?: SortOrder
26859
25381
  }
26860
25382
 
26861
- export type OrganizationMembershipOrderByRelationAggregateInput = {
26862
- _count?: SortOrder
26863
- }
26864
-
26865
25383
  export type UserUsernameAppUserIdCompoundUniqueInput = {
26866
25384
  username: string
26867
25385
  appUserId: string
@@ -27232,7 +25750,6 @@ export namespace Prisma {
27232
25750
  name?: SortOrder
27233
25751
  moduleName?: SortOrder
27234
25752
  externalId?: SortOrder
27235
- organizationId?: SortOrder
27236
25753
  data?: SortOrder
27237
25754
  createdAt?: SortOrder
27238
25755
  updatedAt?: SortOrder
@@ -27242,7 +25759,6 @@ export namespace Prisma {
27242
25759
  id?: SortOrder
27243
25760
  credentialId?: SortOrder
27244
25761
  userId?: SortOrder
27245
- organizationId?: SortOrder
27246
25762
  }
27247
25763
 
27248
25764
  export type EntityMaxOrderByAggregateInput = {
@@ -27252,7 +25768,6 @@ export namespace Prisma {
27252
25768
  name?: SortOrder
27253
25769
  moduleName?: SortOrder
27254
25770
  externalId?: SortOrder
27255
- organizationId?: SortOrder
27256
25771
  createdAt?: SortOrder
27257
25772
  updatedAt?: SortOrder
27258
25773
  }
@@ -27264,7 +25779,6 @@ export namespace Prisma {
27264
25779
  name?: SortOrder
27265
25780
  moduleName?: SortOrder
27266
25781
  externalId?: SortOrder
27267
- organizationId?: SortOrder
27268
25782
  createdAt?: SortOrder
27269
25783
  updatedAt?: SortOrder
27270
25784
  }
@@ -27273,7 +25787,6 @@ export namespace Prisma {
27273
25787
  id?: SortOrder
27274
25788
  credentialId?: SortOrder
27275
25789
  userId?: SortOrder
27276
- organizationId?: SortOrder
27277
25790
  }
27278
25791
 
27279
25792
  export type EnumIntegrationStatusFilter<$PrismaModel = never> = {
@@ -27330,7 +25843,6 @@ export namespace Prisma {
27330
25843
  id?: SortOrder
27331
25844
  userId?: SortOrder
27332
25845
  status?: SortOrder
27333
- organizationId?: SortOrder
27334
25846
  config?: SortOrder
27335
25847
  version?: SortOrder
27336
25848
  errors?: SortOrder
@@ -27344,14 +25856,12 @@ export namespace Prisma {
27344
25856
  export type IntegrationAvgOrderByAggregateInput = {
27345
25857
  id?: SortOrder
27346
25858
  userId?: SortOrder
27347
- organizationId?: SortOrder
27348
25859
  }
27349
25860
 
27350
25861
  export type IntegrationMaxOrderByAggregateInput = {
27351
25862
  id?: SortOrder
27352
25863
  userId?: SortOrder
27353
25864
  status?: SortOrder
27354
- organizationId?: SortOrder
27355
25865
  version?: SortOrder
27356
25866
  createdAt?: SortOrder
27357
25867
  updatedAt?: SortOrder
@@ -27361,7 +25871,6 @@ export namespace Prisma {
27361
25871
  id?: SortOrder
27362
25872
  userId?: SortOrder
27363
25873
  status?: SortOrder
27364
- organizationId?: SortOrder
27365
25874
  version?: SortOrder
27366
25875
  createdAt?: SortOrder
27367
25876
  updatedAt?: SortOrder
@@ -27370,7 +25879,6 @@ export namespace Prisma {
27370
25879
  export type IntegrationSumOrderByAggregateInput = {
27371
25880
  id?: SortOrder
27372
25881
  userId?: SortOrder
27373
- organizationId?: SortOrder
27374
25882
  }
27375
25883
 
27376
25884
  export type EnumIntegrationStatusWithAggregatesFilter<$PrismaModel = never> = {
@@ -27997,47 +26505,6 @@ export namespace Prisma {
27997
26505
  maxSteps?: SortOrder
27998
26506
  }
27999
26507
 
28000
- export type OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput = {
28001
- individualUserId: number
28002
- organizationUserId: number
28003
- }
28004
-
28005
- export type OrganizationMembershipCountOrderByAggregateInput = {
28006
- id?: SortOrder
28007
- individualUserId?: SortOrder
28008
- organizationUserId?: SortOrder
28009
- orgRole?: SortOrder
28010
- createdAt?: SortOrder
28011
- }
28012
-
28013
- export type OrganizationMembershipAvgOrderByAggregateInput = {
28014
- id?: SortOrder
28015
- individualUserId?: SortOrder
28016
- organizationUserId?: SortOrder
28017
- }
28018
-
28019
- export type OrganizationMembershipMaxOrderByAggregateInput = {
28020
- id?: SortOrder
28021
- individualUserId?: SortOrder
28022
- organizationUserId?: SortOrder
28023
- orgRole?: SortOrder
28024
- createdAt?: SortOrder
28025
- }
28026
-
28027
- export type OrganizationMembershipMinOrderByAggregateInput = {
28028
- id?: SortOrder
28029
- individualUserId?: SortOrder
28030
- organizationUserId?: SortOrder
28031
- orgRole?: SortOrder
28032
- createdAt?: SortOrder
28033
- }
28034
-
28035
- export type OrganizationMembershipSumOrderByAggregateInput = {
28036
- id?: SortOrder
28037
- individualUserId?: SortOrder
28038
- organizationUserId?: SortOrder
28039
- }
28040
-
28041
26508
  export type UserCreateNestedOneWithoutMembersInput = {
28042
26509
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
28043
26510
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -28086,20 +26553,6 @@ export namespace Prisma {
28086
26553
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
28087
26554
  }
28088
26555
 
28089
- export type OrganizationMembershipCreateNestedManyWithoutIndividualUserInput = {
28090
- create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
28091
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
28092
- createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
28093
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28094
- }
28095
-
28096
- export type OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput = {
28097
- create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
28098
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
28099
- createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
28100
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28101
- }
28102
-
28103
26556
  export type UserUncheckedCreateNestedManyWithoutOrganizationInput = {
28104
26557
  create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
28105
26558
  connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
@@ -28142,20 +26595,6 @@ export namespace Prisma {
28142
26595
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
28143
26596
  }
28144
26597
 
28145
- export type OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput = {
28146
- create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
28147
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
28148
- createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
28149
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28150
- }
28151
-
28152
- export type OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput = {
28153
- create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
28154
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
28155
- createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
28156
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28157
- }
28158
-
28159
26598
  export type EnumUserTypeFieldUpdateOperationsInput = {
28160
26599
  set?: $Enums.UserType
28161
26600
  }
@@ -28262,34 +26701,6 @@ export namespace Prisma {
28262
26701
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
28263
26702
  }
28264
26703
 
28265
- export type OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput = {
28266
- create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
28267
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
28268
- upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
28269
- createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
28270
- set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28271
- disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28272
- delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28273
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28274
- update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
28275
- updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
28276
- deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
28277
- }
28278
-
28279
- export type OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput = {
28280
- create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
28281
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
28282
- upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
28283
- createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
28284
- set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28285
- disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28286
- delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28287
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28288
- update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
28289
- updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
28290
- deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
28291
- }
28292
-
28293
26704
  export type IntFieldUpdateOperationsInput = {
28294
26705
  set?: number
28295
26706
  increment?: number
@@ -28390,34 +26801,6 @@ export namespace Prisma {
28390
26801
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
28391
26802
  }
28392
26803
 
28393
- export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput = {
28394
- create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
28395
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
28396
- upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
28397
- createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
28398
- set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28399
- disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28400
- delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28401
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28402
- update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
28403
- updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
28404
- deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
28405
- }
28406
-
28407
- export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput = {
28408
- create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
28409
- connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
28410
- upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
28411
- createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
28412
- set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28413
- disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28414
- delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28415
- connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
28416
- update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
28417
- updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
28418
- deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
28419
- }
28420
-
28421
26804
  export type UserCreateNestedOneWithoutTokensInput = {
28422
26805
  create?: XOR<UserCreateWithoutTokensInput, UserUncheckedCreateWithoutTokensInput>
28423
26806
  connectOrCreate?: UserCreateOrConnectWithoutTokensInput
@@ -29308,34 +27691,6 @@ export namespace Prisma {
29308
27691
  divide?: bigint | number
29309
27692
  }
29310
27693
 
29311
- export type UserCreateNestedOneWithoutMembershipsInput = {
29312
- create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
29313
- connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
29314
- connect?: UserWhereUniqueInput
29315
- }
29316
-
29317
- export type UserCreateNestedOneWithoutOrgMembersInput = {
29318
- create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
29319
- connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
29320
- connect?: UserWhereUniqueInput
29321
- }
29322
-
29323
- export type UserUpdateOneRequiredWithoutMembershipsNestedInput = {
29324
- create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
29325
- connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
29326
- upsert?: UserUpsertWithoutMembershipsInput
29327
- connect?: UserWhereUniqueInput
29328
- update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMembershipsInput, UserUpdateWithoutMembershipsInput>, UserUncheckedUpdateWithoutMembershipsInput>
29329
- }
29330
-
29331
- export type UserUpdateOneRequiredWithoutOrgMembersNestedInput = {
29332
- create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
29333
- connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
29334
- upsert?: UserUpsertWithoutOrgMembersInput
29335
- connect?: UserWhereUniqueInput
29336
- update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOrgMembersInput, UserUpdateWithoutOrgMembersInput>, UserUncheckedUpdateWithoutOrgMembersInput>
29337
- }
29338
-
29339
27694
  export type NestedIntFilter<$PrismaModel = never> = {
29340
27695
  equals?: number | IntFieldRefInput<$PrismaModel>
29341
27696
  in?: number[] | ListIntFieldRefInput<$PrismaModel>
@@ -29707,8 +28062,6 @@ export namespace Prisma {
29707
28062
  entities?: EntityCreateNestedManyWithoutUserInput
29708
28063
  integrations?: IntegrationCreateNestedManyWithoutUserInput
29709
28064
  processes?: ProcessCreateNestedManyWithoutUserInput
29710
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
29711
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
29712
28065
  }
29713
28066
 
29714
28067
  export type UserUncheckedCreateWithoutMembersInput = {
@@ -29728,8 +28081,6 @@ export namespace Prisma {
29728
28081
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29729
28082
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
29730
28083
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
29731
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
29732
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
29733
28084
  }
29734
28085
 
29735
28086
  export type UserCreateOrConnectWithoutMembersInput = {
@@ -29753,8 +28104,6 @@ export namespace Prisma {
29753
28104
  entities?: EntityCreateNestedManyWithoutUserInput
29754
28105
  integrations?: IntegrationCreateNestedManyWithoutUserInput
29755
28106
  processes?: ProcessCreateNestedManyWithoutUserInput
29756
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
29757
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
29758
28107
  }
29759
28108
 
29760
28109
  export type UserUncheckedCreateWithoutOrganizationInput = {
@@ -29774,8 +28123,6 @@ export namespace Prisma {
29774
28123
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29775
28124
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
29776
28125
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
29777
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
29778
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
29779
28126
  }
29780
28127
 
29781
28128
  export type UserCreateOrConnectWithoutOrganizationInput = {
@@ -29844,7 +28191,6 @@ export namespace Prisma {
29844
28191
  name?: string | null
29845
28192
  moduleName?: string | null
29846
28193
  externalId?: string | null
29847
- organizationId?: number | null
29848
28194
  data?: JsonNullValueInput | InputJsonValue
29849
28195
  createdAt?: Date | string
29850
28196
  updatedAt?: Date | string
@@ -29861,7 +28207,6 @@ export namespace Prisma {
29861
28207
  name?: string | null
29862
28208
  moduleName?: string | null
29863
28209
  externalId?: string | null
29864
- organizationId?: number | null
29865
28210
  data?: JsonNullValueInput | InputJsonValue
29866
28211
  createdAt?: Date | string
29867
28212
  updatedAt?: Date | string
@@ -29883,7 +28228,6 @@ export namespace Prisma {
29883
28228
 
29884
28229
  export type IntegrationCreateWithoutUserInput = {
29885
28230
  status?: $Enums.IntegrationStatus
29886
- organizationId?: number | null
29887
28231
  config?: NullableJsonNullValueInput | InputJsonValue
29888
28232
  version?: string | null
29889
28233
  errors?: JsonNullValueInput | InputJsonValue
@@ -29902,7 +28246,6 @@ export namespace Prisma {
29902
28246
  export type IntegrationUncheckedCreateWithoutUserInput = {
29903
28247
  id?: number
29904
28248
  status?: $Enums.IntegrationStatus
29905
- organizationId?: number | null
29906
28249
  config?: NullableJsonNullValueInput | InputJsonValue
29907
28250
  version?: string | null
29908
28251
  errors?: JsonNullValueInput | InputJsonValue
@@ -29965,52 +28308,6 @@ export namespace Prisma {
29965
28308
  skipDuplicates?: boolean
29966
28309
  }
29967
28310
 
29968
- export type OrganizationMembershipCreateWithoutIndividualUserInput = {
29969
- orgRole?: string
29970
- createdAt?: Date | string
29971
- organizationUser: UserCreateNestedOneWithoutOrgMembersInput
29972
- }
29973
-
29974
- export type OrganizationMembershipUncheckedCreateWithoutIndividualUserInput = {
29975
- id?: number
29976
- organizationUserId: number
29977
- orgRole?: string
29978
- createdAt?: Date | string
29979
- }
29980
-
29981
- export type OrganizationMembershipCreateOrConnectWithoutIndividualUserInput = {
29982
- where: OrganizationMembershipWhereUniqueInput
29983
- create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
29984
- }
29985
-
29986
- export type OrganizationMembershipCreateManyIndividualUserInputEnvelope = {
29987
- data: OrganizationMembershipCreateManyIndividualUserInput | OrganizationMembershipCreateManyIndividualUserInput[]
29988
- skipDuplicates?: boolean
29989
- }
29990
-
29991
- export type OrganizationMembershipCreateWithoutOrganizationUserInput = {
29992
- orgRole?: string
29993
- createdAt?: Date | string
29994
- individualUser: UserCreateNestedOneWithoutMembershipsInput
29995
- }
29996
-
29997
- export type OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput = {
29998
- id?: number
29999
- individualUserId: number
30000
- orgRole?: string
30001
- createdAt?: Date | string
30002
- }
30003
-
30004
- export type OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput = {
30005
- where: OrganizationMembershipWhereUniqueInput
30006
- create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
30007
- }
30008
-
30009
- export type OrganizationMembershipCreateManyOrganizationUserInputEnvelope = {
30010
- data: OrganizationMembershipCreateManyOrganizationUserInput | OrganizationMembershipCreateManyOrganizationUserInput[]
30011
- skipDuplicates?: boolean
30012
- }
30013
-
30014
28311
  export type UserUpsertWithoutMembersInput = {
30015
28312
  update: XOR<UserUpdateWithoutMembersInput, UserUncheckedUpdateWithoutMembersInput>
30016
28313
  create: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
@@ -30038,8 +28335,6 @@ export namespace Prisma {
30038
28335
  entities?: EntityUpdateManyWithoutUserNestedInput
30039
28336
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
30040
28337
  processes?: ProcessUpdateManyWithoutUserNestedInput
30041
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
30042
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
30043
28338
  }
30044
28339
 
30045
28340
  export type UserUncheckedUpdateWithoutMembersInput = {
@@ -30059,8 +28354,6 @@ export namespace Prisma {
30059
28354
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
30060
28355
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
30061
28356
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
30062
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
30063
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
30064
28357
  }
30065
28358
 
30066
28359
  export type UserUpsertWithWhereUniqueWithoutOrganizationInput = {
@@ -30178,7 +28471,6 @@ export namespace Prisma {
30178
28471
  name?: StringNullableFilter<"Entity"> | string | null
30179
28472
  moduleName?: StringNullableFilter<"Entity"> | string | null
30180
28473
  externalId?: StringNullableFilter<"Entity"> | string | null
30181
- organizationId?: IntNullableFilter<"Entity"> | number | null
30182
28474
  data?: JsonFilter<"Entity">
30183
28475
  createdAt?: DateTimeFilter<"Entity"> | Date | string
30184
28476
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -30207,7 +28499,6 @@ export namespace Prisma {
30207
28499
  id?: IntFilter<"Integration"> | number
30208
28500
  userId?: IntNullableFilter<"Integration"> | number | null
30209
28501
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
30210
- organizationId?: IntNullableFilter<"Integration"> | number | null
30211
28502
  config?: JsonNullableFilter<"Integration">
30212
28503
  version?: StringNullableFilter<"Integration"> | string | null
30213
28504
  errors?: JsonFilter<"Integration">
@@ -30242,56 +28533,13 @@ export namespace Prisma {
30242
28533
  userId?: IntFilter<"Process"> | number
30243
28534
  integrationId?: IntFilter<"Process"> | number
30244
28535
  name?: StringFilter<"Process"> | string
30245
- type?: StringFilter<"Process"> | string
30246
- state?: StringFilter<"Process"> | string
30247
- context?: JsonFilter<"Process">
30248
- results?: JsonFilter<"Process">
30249
- parentProcessId?: IntNullableFilter<"Process"> | number | null
30250
- createdAt?: DateTimeFilter<"Process"> | Date | string
30251
- updatedAt?: DateTimeFilter<"Process"> | Date | string
30252
- }
30253
-
30254
- export type OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput = {
30255
- where: OrganizationMembershipWhereUniqueInput
30256
- update: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
30257
- create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
30258
- }
30259
-
30260
- export type OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput = {
30261
- where: OrganizationMembershipWhereUniqueInput
30262
- data: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
30263
- }
30264
-
30265
- export type OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput = {
30266
- where: OrganizationMembershipScalarWhereInput
30267
- data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput>
30268
- }
30269
-
30270
- export type OrganizationMembershipScalarWhereInput = {
30271
- AND?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
30272
- OR?: OrganizationMembershipScalarWhereInput[]
30273
- NOT?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
30274
- id?: IntFilter<"OrganizationMembership"> | number
30275
- individualUserId?: IntFilter<"OrganizationMembership"> | number
30276
- organizationUserId?: IntFilter<"OrganizationMembership"> | number
30277
- orgRole?: StringFilter<"OrganizationMembership"> | string
30278
- createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
30279
- }
30280
-
30281
- export type OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput = {
30282
- where: OrganizationMembershipWhereUniqueInput
30283
- update: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
30284
- create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
30285
- }
30286
-
30287
- export type OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput = {
30288
- where: OrganizationMembershipWhereUniqueInput
30289
- data: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
30290
- }
30291
-
30292
- export type OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput = {
30293
- where: OrganizationMembershipScalarWhereInput
30294
- data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput>
28536
+ type?: StringFilter<"Process"> | string
28537
+ state?: StringFilter<"Process"> | string
28538
+ context?: JsonFilter<"Process">
28539
+ results?: JsonFilter<"Process">
28540
+ parentProcessId?: IntNullableFilter<"Process"> | number | null
28541
+ createdAt?: DateTimeFilter<"Process"> | Date | string
28542
+ updatedAt?: DateTimeFilter<"Process"> | Date | string
30295
28543
  }
30296
28544
 
30297
28545
  export type UserCreateWithoutTokensInput = {
@@ -30310,8 +28558,6 @@ export namespace Prisma {
30310
28558
  entities?: EntityCreateNestedManyWithoutUserInput
30311
28559
  integrations?: IntegrationCreateNestedManyWithoutUserInput
30312
28560
  processes?: ProcessCreateNestedManyWithoutUserInput
30313
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
30314
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
30315
28561
  }
30316
28562
 
30317
28563
  export type UserUncheckedCreateWithoutTokensInput = {
@@ -30331,8 +28577,6 @@ export namespace Prisma {
30331
28577
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
30332
28578
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
30333
28579
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
30334
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
30335
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
30336
28580
  }
30337
28581
 
30338
28582
  export type UserCreateOrConnectWithoutTokensInput = {
@@ -30367,8 +28611,6 @@ export namespace Prisma {
30367
28611
  entities?: EntityUpdateManyWithoutUserNestedInput
30368
28612
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
30369
28613
  processes?: ProcessUpdateManyWithoutUserNestedInput
30370
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
30371
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
30372
28614
  }
30373
28615
 
30374
28616
  export type UserUncheckedUpdateWithoutTokensInput = {
@@ -30388,8 +28630,6 @@ export namespace Prisma {
30388
28630
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
30389
28631
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
30390
28632
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
30391
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
30392
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
30393
28633
  }
30394
28634
 
30395
28635
  export type UserCreateWithoutCredentialsInput = {
@@ -30408,8 +28648,6 @@ export namespace Prisma {
30408
28648
  entities?: EntityCreateNestedManyWithoutUserInput
30409
28649
  integrations?: IntegrationCreateNestedManyWithoutUserInput
30410
28650
  processes?: ProcessCreateNestedManyWithoutUserInput
30411
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
30412
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
30413
28651
  }
30414
28652
 
30415
28653
  export type UserUncheckedCreateWithoutCredentialsInput = {
@@ -30429,8 +28667,6 @@ export namespace Prisma {
30429
28667
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
30430
28668
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
30431
28669
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
30432
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
30433
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
30434
28670
  }
30435
28671
 
30436
28672
  export type UserCreateOrConnectWithoutCredentialsInput = {
@@ -30442,7 +28678,6 @@ export namespace Prisma {
30442
28678
  name?: string | null
30443
28679
  moduleName?: string | null
30444
28680
  externalId?: string | null
30445
- organizationId?: number | null
30446
28681
  data?: JsonNullValueInput | InputJsonValue
30447
28682
  createdAt?: Date | string
30448
28683
  updatedAt?: Date | string
@@ -30459,7 +28694,6 @@ export namespace Prisma {
30459
28694
  name?: string | null
30460
28695
  moduleName?: string | null
30461
28696
  externalId?: string | null
30462
- organizationId?: number | null
30463
28697
  data?: JsonNullValueInput | InputJsonValue
30464
28698
  createdAt?: Date | string
30465
28699
  updatedAt?: Date | string
@@ -30506,8 +28740,6 @@ export namespace Prisma {
30506
28740
  entities?: EntityUpdateManyWithoutUserNestedInput
30507
28741
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
30508
28742
  processes?: ProcessUpdateManyWithoutUserNestedInput
30509
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
30510
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
30511
28743
  }
30512
28744
 
30513
28745
  export type UserUncheckedUpdateWithoutCredentialsInput = {
@@ -30527,8 +28759,6 @@ export namespace Prisma {
30527
28759
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
30528
28760
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
30529
28761
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
30530
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
30531
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
30532
28762
  }
30533
28763
 
30534
28764
  export type EntityUpsertWithWhereUniqueWithoutCredentialInput = {
@@ -30587,8 +28817,6 @@ export namespace Prisma {
30587
28817
  credentials?: CredentialCreateNestedManyWithoutUserInput
30588
28818
  integrations?: IntegrationCreateNestedManyWithoutUserInput
30589
28819
  processes?: ProcessCreateNestedManyWithoutUserInput
30590
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
30591
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
30592
28820
  }
30593
28821
 
30594
28822
  export type UserUncheckedCreateWithoutEntitiesInput = {
@@ -30608,8 +28836,6 @@ export namespace Prisma {
30608
28836
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
30609
28837
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
30610
28838
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
30611
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
30612
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
30613
28839
  }
30614
28840
 
30615
28841
  export type UserCreateOrConnectWithoutEntitiesInput = {
@@ -30619,7 +28845,6 @@ export namespace Prisma {
30619
28845
 
30620
28846
  export type IntegrationCreateWithoutEntitiesInput = {
30621
28847
  status?: $Enums.IntegrationStatus
30622
- organizationId?: number | null
30623
28848
  config?: NullableJsonNullValueInput | InputJsonValue
30624
28849
  version?: string | null
30625
28850
  errors?: JsonNullValueInput | InputJsonValue
@@ -30639,7 +28864,6 @@ export namespace Prisma {
30639
28864
  id?: number
30640
28865
  userId?: number | null
30641
28866
  status?: $Enums.IntegrationStatus
30642
- organizationId?: number | null
30643
28867
  config?: NullableJsonNullValueInput | InputJsonValue
30644
28868
  version?: string | null
30645
28869
  errors?: JsonNullValueInput | InputJsonValue
@@ -30784,8 +29008,6 @@ export namespace Prisma {
30784
29008
  credentials?: CredentialUpdateManyWithoutUserNestedInput
30785
29009
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
30786
29010
  processes?: ProcessUpdateManyWithoutUserNestedInput
30787
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
30788
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
30789
29011
  }
30790
29012
 
30791
29013
  export type UserUncheckedUpdateWithoutEntitiesInput = {
@@ -30805,8 +29027,6 @@ export namespace Prisma {
30805
29027
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
30806
29028
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
30807
29029
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
30808
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
30809
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
30810
29030
  }
30811
29031
 
30812
29032
  export type IntegrationUpsertWithWhereUniqueWithoutEntitiesInput = {
@@ -30922,8 +29142,6 @@ export namespace Prisma {
30922
29142
  credentials?: CredentialCreateNestedManyWithoutUserInput
30923
29143
  entities?: EntityCreateNestedManyWithoutUserInput
30924
29144
  processes?: ProcessCreateNestedManyWithoutUserInput
30925
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
30926
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
30927
29145
  }
30928
29146
 
30929
29147
  export type UserUncheckedCreateWithoutIntegrationsInput = {
@@ -30943,8 +29161,6 @@ export namespace Prisma {
30943
29161
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
30944
29162
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
30945
29163
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
30946
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
30947
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
30948
29164
  }
30949
29165
 
30950
29166
  export type UserCreateOrConnectWithoutIntegrationsInput = {
@@ -30956,7 +29172,6 @@ export namespace Prisma {
30956
29172
  name?: string | null
30957
29173
  moduleName?: string | null
30958
29174
  externalId?: string | null
30959
- organizationId?: number | null
30960
29175
  data?: JsonNullValueInput | InputJsonValue
30961
29176
  createdAt?: Date | string
30962
29177
  updatedAt?: Date | string
@@ -30974,7 +29189,6 @@ export namespace Prisma {
30974
29189
  name?: string | null
30975
29190
  moduleName?: string | null
30976
29191
  externalId?: string | null
30977
- organizationId?: number | null
30978
29192
  data?: JsonNullValueInput | InputJsonValue
30979
29193
  createdAt?: Date | string
30980
29194
  updatedAt?: Date | string
@@ -31127,8 +29341,6 @@ export namespace Prisma {
31127
29341
  credentials?: CredentialUpdateManyWithoutUserNestedInput
31128
29342
  entities?: EntityUpdateManyWithoutUserNestedInput
31129
29343
  processes?: ProcessUpdateManyWithoutUserNestedInput
31130
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
31131
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
31132
29344
  }
31133
29345
 
31134
29346
  export type UserUncheckedUpdateWithoutIntegrationsInput = {
@@ -31148,8 +29360,6 @@ export namespace Prisma {
31148
29360
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
31149
29361
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
31150
29362
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
31151
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
31152
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
31153
29363
  }
31154
29364
 
31155
29365
  export type EntityUpsertWithWhereUniqueWithoutIntegrationsInput = {
@@ -31257,7 +29467,6 @@ export namespace Prisma {
31257
29467
 
31258
29468
  export type IntegrationCreateWithoutMappingsInput = {
31259
29469
  status?: $Enums.IntegrationStatus
31260
- organizationId?: number | null
31261
29470
  config?: NullableJsonNullValueInput | InputJsonValue
31262
29471
  version?: string | null
31263
29472
  errors?: JsonNullValueInput | InputJsonValue
@@ -31277,7 +29486,6 @@ export namespace Prisma {
31277
29486
  id?: number
31278
29487
  userId?: number | null
31279
29488
  status?: $Enums.IntegrationStatus
31280
- organizationId?: number | null
31281
29489
  config?: NullableJsonNullValueInput | InputJsonValue
31282
29490
  version?: string | null
31283
29491
  errors?: JsonNullValueInput | InputJsonValue
@@ -31310,7 +29518,6 @@ export namespace Prisma {
31310
29518
 
31311
29519
  export type IntegrationUpdateWithoutMappingsInput = {
31312
29520
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31313
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31314
29521
  config?: NullableJsonNullValueInput | InputJsonValue
31315
29522
  version?: NullableStringFieldUpdateOperationsInput | string | null
31316
29523
  errors?: JsonNullValueInput | InputJsonValue
@@ -31330,7 +29537,6 @@ export namespace Prisma {
31330
29537
  id?: IntFieldUpdateOperationsInput | number
31331
29538
  userId?: NullableIntFieldUpdateOperationsInput | number | null
31332
29539
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31333
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31334
29540
  config?: NullableJsonNullValueInput | InputJsonValue
31335
29541
  version?: NullableStringFieldUpdateOperationsInput | string | null
31336
29542
  errors?: JsonNullValueInput | InputJsonValue
@@ -31347,7 +29553,6 @@ export namespace Prisma {
31347
29553
 
31348
29554
  export type IntegrationCreateWithoutSyncsInput = {
31349
29555
  status?: $Enums.IntegrationStatus
31350
- organizationId?: number | null
31351
29556
  config?: NullableJsonNullValueInput | InputJsonValue
31352
29557
  version?: string | null
31353
29558
  errors?: JsonNullValueInput | InputJsonValue
@@ -31367,7 +29572,6 @@ export namespace Prisma {
31367
29572
  id?: number
31368
29573
  userId?: number | null
31369
29574
  status?: $Enums.IntegrationStatus
31370
- organizationId?: number | null
31371
29575
  config?: NullableJsonNullValueInput | InputJsonValue
31372
29576
  version?: string | null
31373
29577
  errors?: JsonNullValueInput | InputJsonValue
@@ -31391,7 +29595,6 @@ export namespace Prisma {
31391
29595
  name?: string | null
31392
29596
  moduleName?: string | null
31393
29597
  externalId?: string | null
31394
- organizationId?: number | null
31395
29598
  data?: JsonNullValueInput | InputJsonValue
31396
29599
  createdAt?: Date | string
31397
29600
  updatedAt?: Date | string
@@ -31409,7 +29612,6 @@ export namespace Prisma {
31409
29612
  name?: string | null
31410
29613
  moduleName?: string | null
31411
29614
  externalId?: string | null
31412
- organizationId?: number | null
31413
29615
  data?: JsonNullValueInput | InputJsonValue
31414
29616
  createdAt?: Date | string
31415
29617
  updatedAt?: Date | string
@@ -31459,7 +29661,6 @@ export namespace Prisma {
31459
29661
 
31460
29662
  export type IntegrationUpdateWithoutSyncsInput = {
31461
29663
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31462
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31463
29664
  config?: NullableJsonNullValueInput | InputJsonValue
31464
29665
  version?: NullableStringFieldUpdateOperationsInput | string | null
31465
29666
  errors?: JsonNullValueInput | InputJsonValue
@@ -31479,7 +29680,6 @@ export namespace Prisma {
31479
29680
  id?: IntFieldUpdateOperationsInput | number
31480
29681
  userId?: NullableIntFieldUpdateOperationsInput | number | null
31481
29682
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31482
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31483
29683
  config?: NullableJsonNullValueInput | InputJsonValue
31484
29684
  version?: NullableStringFieldUpdateOperationsInput | string | null
31485
29685
  errors?: JsonNullValueInput | InputJsonValue
@@ -31550,7 +29750,6 @@ export namespace Prisma {
31550
29750
  name?: string | null
31551
29751
  moduleName?: string | null
31552
29752
  externalId?: string | null
31553
- organizationId?: number | null
31554
29753
  data?: JsonNullValueInput | InputJsonValue
31555
29754
  createdAt?: Date | string
31556
29755
  updatedAt?: Date | string
@@ -31568,7 +29767,6 @@ export namespace Prisma {
31568
29767
  name?: string | null
31569
29768
  moduleName?: string | null
31570
29769
  externalId?: string | null
31571
- organizationId?: number | null
31572
29770
  data?: JsonNullValueInput | InputJsonValue
31573
29771
  createdAt?: Date | string
31574
29772
  updatedAt?: Date | string
@@ -31623,7 +29821,6 @@ export namespace Prisma {
31623
29821
  name?: NullableStringFieldUpdateOperationsInput | string | null
31624
29822
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31625
29823
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31626
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31627
29824
  data?: JsonNullValueInput | InputJsonValue
31628
29825
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31629
29826
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31641,7 +29838,6 @@ export namespace Prisma {
31641
29838
  name?: NullableStringFieldUpdateOperationsInput | string | null
31642
29839
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31643
29840
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31644
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31645
29841
  data?: JsonNullValueInput | InputJsonValue
31646
29842
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31647
29843
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31652,7 +29848,6 @@ export namespace Prisma {
31652
29848
 
31653
29849
  export type IntegrationCreateWithoutAssociationsInput = {
31654
29850
  status?: $Enums.IntegrationStatus
31655
- organizationId?: number | null
31656
29851
  config?: NullableJsonNullValueInput | InputJsonValue
31657
29852
  version?: string | null
31658
29853
  errors?: JsonNullValueInput | InputJsonValue
@@ -31672,7 +29867,6 @@ export namespace Prisma {
31672
29867
  id?: number
31673
29868
  userId?: number | null
31674
29869
  status?: $Enums.IntegrationStatus
31675
- organizationId?: number | null
31676
29870
  config?: NullableJsonNullValueInput | InputJsonValue
31677
29871
  version?: string | null
31678
29872
  errors?: JsonNullValueInput | InputJsonValue
@@ -31730,7 +29924,6 @@ export namespace Prisma {
31730
29924
 
31731
29925
  export type IntegrationUpdateWithoutAssociationsInput = {
31732
29926
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31733
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31734
29927
  config?: NullableJsonNullValueInput | InputJsonValue
31735
29928
  version?: NullableStringFieldUpdateOperationsInput | string | null
31736
29929
  errors?: JsonNullValueInput | InputJsonValue
@@ -31750,7 +29943,6 @@ export namespace Prisma {
31750
29943
  id?: IntFieldUpdateOperationsInput | number
31751
29944
  userId?: NullableIntFieldUpdateOperationsInput | number | null
31752
29945
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
31753
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31754
29946
  config?: NullableJsonNullValueInput | InputJsonValue
31755
29947
  version?: NullableStringFieldUpdateOperationsInput | string | null
31756
29948
  errors?: JsonNullValueInput | InputJsonValue
@@ -31805,7 +29997,6 @@ export namespace Prisma {
31805
29997
  name?: string | null
31806
29998
  moduleName?: string | null
31807
29999
  externalId?: string | null
31808
- organizationId?: number | null
31809
30000
  data?: JsonNullValueInput | InputJsonValue
31810
30001
  createdAt?: Date | string
31811
30002
  updatedAt?: Date | string
@@ -31823,7 +30014,6 @@ export namespace Prisma {
31823
30014
  name?: string | null
31824
30015
  moduleName?: string | null
31825
30016
  externalId?: string | null
31826
- organizationId?: number | null
31827
30017
  data?: JsonNullValueInput | InputJsonValue
31828
30018
  createdAt?: Date | string
31829
30019
  updatedAt?: Date | string
@@ -31878,7 +30068,6 @@ export namespace Prisma {
31878
30068
  name?: NullableStringFieldUpdateOperationsInput | string | null
31879
30069
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31880
30070
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31881
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31882
30071
  data?: JsonNullValueInput | InputJsonValue
31883
30072
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31884
30073
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31896,7 +30085,6 @@ export namespace Prisma {
31896
30085
  name?: NullableStringFieldUpdateOperationsInput | string | null
31897
30086
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
31898
30087
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
31899
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
31900
30088
  data?: JsonNullValueInput | InputJsonValue
31901
30089
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
31902
30090
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -31921,8 +30109,6 @@ export namespace Prisma {
31921
30109
  credentials?: CredentialCreateNestedManyWithoutUserInput
31922
30110
  entities?: EntityCreateNestedManyWithoutUserInput
31923
30111
  integrations?: IntegrationCreateNestedManyWithoutUserInput
31924
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
31925
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
31926
30112
  }
31927
30113
 
31928
30114
  export type UserUncheckedCreateWithoutProcessesInput = {
@@ -31942,8 +30128,6 @@ export namespace Prisma {
31942
30128
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
31943
30129
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
31944
30130
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
31945
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
31946
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
31947
30131
  }
31948
30132
 
31949
30133
  export type UserCreateOrConnectWithoutProcessesInput = {
@@ -31953,7 +30137,6 @@ export namespace Prisma {
31953
30137
 
31954
30138
  export type IntegrationCreateWithoutProcessesInput = {
31955
30139
  status?: $Enums.IntegrationStatus
31956
- organizationId?: number | null
31957
30140
  config?: NullableJsonNullValueInput | InputJsonValue
31958
30141
  version?: string | null
31959
30142
  errors?: JsonNullValueInput | InputJsonValue
@@ -31973,7 +30156,6 @@ export namespace Prisma {
31973
30156
  id?: number
31974
30157
  userId?: number | null
31975
30158
  status?: $Enums.IntegrationStatus
31976
- organizationId?: number | null
31977
30159
  config?: NullableJsonNullValueInput | InputJsonValue
31978
30160
  version?: string | null
31979
30161
  errors?: JsonNullValueInput | InputJsonValue
@@ -32089,8 +30271,6 @@ export namespace Prisma {
32089
30271
  credentials?: CredentialUpdateManyWithoutUserNestedInput
32090
30272
  entities?: EntityUpdateManyWithoutUserNestedInput
32091
30273
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
32092
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
32093
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
32094
30274
  }
32095
30275
 
32096
30276
  export type UserUncheckedUpdateWithoutProcessesInput = {
@@ -32110,8 +30290,6 @@ export namespace Prisma {
32110
30290
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
32111
30291
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
32112
30292
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
32113
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
32114
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
32115
30293
  }
32116
30294
 
32117
30295
  export type IntegrationUpsertWithoutProcessesInput = {
@@ -32127,7 +30305,6 @@ export namespace Prisma {
32127
30305
 
32128
30306
  export type IntegrationUpdateWithoutProcessesInput = {
32129
30307
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32130
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32131
30308
  config?: NullableJsonNullValueInput | InputJsonValue
32132
30309
  version?: NullableStringFieldUpdateOperationsInput | string | null
32133
30310
  errors?: JsonNullValueInput | InputJsonValue
@@ -32147,7 +30324,6 @@ export namespace Prisma {
32147
30324
  id?: IntFieldUpdateOperationsInput | number
32148
30325
  userId?: NullableIntFieldUpdateOperationsInput | number | null
32149
30326
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32150
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32151
30327
  config?: NullableJsonNullValueInput | InputJsonValue
32152
30328
  version?: NullableStringFieldUpdateOperationsInput | string | null
32153
30329
  errors?: JsonNullValueInput | InputJsonValue
@@ -32342,202 +30518,6 @@ export namespace Prisma {
32342
30518
  updatedAt?: DateTimeFilter<"AdminScriptExecution"> | Date | string
32343
30519
  }
32344
30520
 
32345
- export type UserCreateWithoutMembershipsInput = {
32346
- type: $Enums.UserType
32347
- createdAt?: Date | string
32348
- updatedAt?: Date | string
32349
- email?: string | null
32350
- username?: string | null
32351
- hashword?: string | null
32352
- appUserId?: string | null
32353
- appOrgId?: string | null
32354
- name?: string | null
32355
- organization?: UserCreateNestedOneWithoutMembersInput
32356
- members?: UserCreateNestedManyWithoutOrganizationInput
32357
- tokens?: TokenCreateNestedManyWithoutUserInput
32358
- credentials?: CredentialCreateNestedManyWithoutUserInput
32359
- entities?: EntityCreateNestedManyWithoutUserInput
32360
- integrations?: IntegrationCreateNestedManyWithoutUserInput
32361
- processes?: ProcessCreateNestedManyWithoutUserInput
32362
- orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
32363
- }
32364
-
32365
- export type UserUncheckedCreateWithoutMembershipsInput = {
32366
- id?: number
32367
- type: $Enums.UserType
32368
- createdAt?: Date | string
32369
- updatedAt?: Date | string
32370
- email?: string | null
32371
- username?: string | null
32372
- hashword?: string | null
32373
- appUserId?: string | null
32374
- organizationId?: number | null
32375
- appOrgId?: string | null
32376
- name?: string | null
32377
- members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
32378
- tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
32379
- credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
32380
- entities?: EntityUncheckedCreateNestedManyWithoutUserInput
32381
- integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
32382
- processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
32383
- orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
32384
- }
32385
-
32386
- export type UserCreateOrConnectWithoutMembershipsInput = {
32387
- where: UserWhereUniqueInput
32388
- create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
32389
- }
32390
-
32391
- export type UserCreateWithoutOrgMembersInput = {
32392
- type: $Enums.UserType
32393
- createdAt?: Date | string
32394
- updatedAt?: Date | string
32395
- email?: string | null
32396
- username?: string | null
32397
- hashword?: string | null
32398
- appUserId?: string | null
32399
- appOrgId?: string | null
32400
- name?: string | null
32401
- organization?: UserCreateNestedOneWithoutMembersInput
32402
- members?: UserCreateNestedManyWithoutOrganizationInput
32403
- tokens?: TokenCreateNestedManyWithoutUserInput
32404
- credentials?: CredentialCreateNestedManyWithoutUserInput
32405
- entities?: EntityCreateNestedManyWithoutUserInput
32406
- integrations?: IntegrationCreateNestedManyWithoutUserInput
32407
- processes?: ProcessCreateNestedManyWithoutUserInput
32408
- memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
32409
- }
32410
-
32411
- export type UserUncheckedCreateWithoutOrgMembersInput = {
32412
- id?: number
32413
- type: $Enums.UserType
32414
- createdAt?: Date | string
32415
- updatedAt?: Date | string
32416
- email?: string | null
32417
- username?: string | null
32418
- hashword?: string | null
32419
- appUserId?: string | null
32420
- organizationId?: number | null
32421
- appOrgId?: string | null
32422
- name?: string | null
32423
- members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
32424
- tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
32425
- credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
32426
- entities?: EntityUncheckedCreateNestedManyWithoutUserInput
32427
- integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
32428
- processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
32429
- memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
32430
- }
32431
-
32432
- export type UserCreateOrConnectWithoutOrgMembersInput = {
32433
- where: UserWhereUniqueInput
32434
- create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
32435
- }
32436
-
32437
- export type UserUpsertWithoutMembershipsInput = {
32438
- update: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
32439
- create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
32440
- where?: UserWhereInput
32441
- }
32442
-
32443
- export type UserUpdateToOneWithWhereWithoutMembershipsInput = {
32444
- where?: UserWhereInput
32445
- data: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
32446
- }
32447
-
32448
- export type UserUpdateWithoutMembershipsInput = {
32449
- type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
32450
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32451
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32452
- email?: NullableStringFieldUpdateOperationsInput | string | null
32453
- username?: NullableStringFieldUpdateOperationsInput | string | null
32454
- hashword?: NullableStringFieldUpdateOperationsInput | string | null
32455
- appUserId?: NullableStringFieldUpdateOperationsInput | string | null
32456
- appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
32457
- name?: NullableStringFieldUpdateOperationsInput | string | null
32458
- organization?: UserUpdateOneWithoutMembersNestedInput
32459
- members?: UserUpdateManyWithoutOrganizationNestedInput
32460
- tokens?: TokenUpdateManyWithoutUserNestedInput
32461
- credentials?: CredentialUpdateManyWithoutUserNestedInput
32462
- entities?: EntityUpdateManyWithoutUserNestedInput
32463
- integrations?: IntegrationUpdateManyWithoutUserNestedInput
32464
- processes?: ProcessUpdateManyWithoutUserNestedInput
32465
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
32466
- }
32467
-
32468
- export type UserUncheckedUpdateWithoutMembershipsInput = {
32469
- id?: IntFieldUpdateOperationsInput | number
32470
- type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
32471
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32472
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32473
- email?: NullableStringFieldUpdateOperationsInput | string | null
32474
- username?: NullableStringFieldUpdateOperationsInput | string | null
32475
- hashword?: NullableStringFieldUpdateOperationsInput | string | null
32476
- appUserId?: NullableStringFieldUpdateOperationsInput | string | null
32477
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32478
- appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
32479
- name?: NullableStringFieldUpdateOperationsInput | string | null
32480
- members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
32481
- tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
32482
- credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
32483
- entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
32484
- integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
32485
- processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
32486
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
32487
- }
32488
-
32489
- export type UserUpsertWithoutOrgMembersInput = {
32490
- update: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
32491
- create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
32492
- where?: UserWhereInput
32493
- }
32494
-
32495
- export type UserUpdateToOneWithWhereWithoutOrgMembersInput = {
32496
- where?: UserWhereInput
32497
- data: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
32498
- }
32499
-
32500
- export type UserUpdateWithoutOrgMembersInput = {
32501
- type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
32502
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32503
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32504
- email?: NullableStringFieldUpdateOperationsInput | string | null
32505
- username?: NullableStringFieldUpdateOperationsInput | string | null
32506
- hashword?: NullableStringFieldUpdateOperationsInput | string | null
32507
- appUserId?: NullableStringFieldUpdateOperationsInput | string | null
32508
- appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
32509
- name?: NullableStringFieldUpdateOperationsInput | string | null
32510
- organization?: UserUpdateOneWithoutMembersNestedInput
32511
- members?: UserUpdateManyWithoutOrganizationNestedInput
32512
- tokens?: TokenUpdateManyWithoutUserNestedInput
32513
- credentials?: CredentialUpdateManyWithoutUserNestedInput
32514
- entities?: EntityUpdateManyWithoutUserNestedInput
32515
- integrations?: IntegrationUpdateManyWithoutUserNestedInput
32516
- processes?: ProcessUpdateManyWithoutUserNestedInput
32517
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
32518
- }
32519
-
32520
- export type UserUncheckedUpdateWithoutOrgMembersInput = {
32521
- id?: IntFieldUpdateOperationsInput | number
32522
- type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
32523
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32524
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32525
- email?: NullableStringFieldUpdateOperationsInput | string | null
32526
- username?: NullableStringFieldUpdateOperationsInput | string | null
32527
- hashword?: NullableStringFieldUpdateOperationsInput | string | null
32528
- appUserId?: NullableStringFieldUpdateOperationsInput | string | null
32529
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32530
- appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
32531
- name?: NullableStringFieldUpdateOperationsInput | string | null
32532
- members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
32533
- tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
32534
- credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
32535
- entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
32536
- integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
32537
- processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
32538
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
32539
- }
32540
-
32541
30521
  export type UserCreateManyOrganizationInput = {
32542
30522
  id?: number
32543
30523
  type: $Enums.UserType
@@ -32573,7 +30553,6 @@ export namespace Prisma {
32573
30553
  name?: string | null
32574
30554
  moduleName?: string | null
32575
30555
  externalId?: string | null
32576
- organizationId?: number | null
32577
30556
  data?: JsonNullValueInput | InputJsonValue
32578
30557
  createdAt?: Date | string
32579
30558
  updatedAt?: Date | string
@@ -32582,7 +30561,6 @@ export namespace Prisma {
32582
30561
  export type IntegrationCreateManyUserInput = {
32583
30562
  id?: number
32584
30563
  status?: $Enums.IntegrationStatus
32585
- organizationId?: number | null
32586
30564
  config?: NullableJsonNullValueInput | InputJsonValue
32587
30565
  version?: string | null
32588
30566
  errors?: JsonNullValueInput | InputJsonValue
@@ -32606,20 +30584,6 @@ export namespace Prisma {
32606
30584
  updatedAt?: Date | string
32607
30585
  }
32608
30586
 
32609
- export type OrganizationMembershipCreateManyIndividualUserInput = {
32610
- id?: number
32611
- organizationUserId: number
32612
- orgRole?: string
32613
- createdAt?: Date | string
32614
- }
32615
-
32616
- export type OrganizationMembershipCreateManyOrganizationUserInput = {
32617
- id?: number
32618
- individualUserId: number
32619
- orgRole?: string
32620
- createdAt?: Date | string
32621
- }
32622
-
32623
30587
  export type UserUpdateWithoutOrganizationInput = {
32624
30588
  type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
32625
30589
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32636,8 +30600,6 @@ export namespace Prisma {
32636
30600
  entities?: EntityUpdateManyWithoutUserNestedInput
32637
30601
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
32638
30602
  processes?: ProcessUpdateManyWithoutUserNestedInput
32639
- memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
32640
- orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
32641
30603
  }
32642
30604
 
32643
30605
  export type UserUncheckedUpdateWithoutOrganizationInput = {
@@ -32657,8 +30619,6 @@ export namespace Prisma {
32657
30619
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
32658
30620
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
32659
30621
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
32660
- memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
32661
- orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
32662
30622
  }
32663
30623
 
32664
30624
  export type UserUncheckedUpdateManyWithoutOrganizationInput = {
@@ -32726,7 +30686,6 @@ export namespace Prisma {
32726
30686
  name?: NullableStringFieldUpdateOperationsInput | string | null
32727
30687
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32728
30688
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32729
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32730
30689
  data?: JsonNullValueInput | InputJsonValue
32731
30690
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32732
30691
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32743,7 +30702,6 @@ export namespace Prisma {
32743
30702
  name?: NullableStringFieldUpdateOperationsInput | string | null
32744
30703
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32745
30704
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32746
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32747
30705
  data?: JsonNullValueInput | InputJsonValue
32748
30706
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32749
30707
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32759,7 +30717,6 @@ export namespace Prisma {
32759
30717
  name?: NullableStringFieldUpdateOperationsInput | string | null
32760
30718
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32761
30719
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32762
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32763
30720
  data?: JsonNullValueInput | InputJsonValue
32764
30721
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32765
30722
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32767,7 +30724,6 @@ export namespace Prisma {
32767
30724
 
32768
30725
  export type IntegrationUpdateWithoutUserInput = {
32769
30726
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32770
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32771
30727
  config?: NullableJsonNullValueInput | InputJsonValue
32772
30728
  version?: NullableStringFieldUpdateOperationsInput | string | null
32773
30729
  errors?: JsonNullValueInput | InputJsonValue
@@ -32786,7 +30742,6 @@ export namespace Prisma {
32786
30742
  export type IntegrationUncheckedUpdateWithoutUserInput = {
32787
30743
  id?: IntFieldUpdateOperationsInput | number
32788
30744
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32789
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32790
30745
  config?: NullableJsonNullValueInput | InputJsonValue
32791
30746
  version?: NullableStringFieldUpdateOperationsInput | string | null
32792
30747
  errors?: JsonNullValueInput | InputJsonValue
@@ -32805,7 +30760,6 @@ export namespace Prisma {
32805
30760
  export type IntegrationUncheckedUpdateManyWithoutUserInput = {
32806
30761
  id?: IntFieldUpdateOperationsInput | number
32807
30762
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32808
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32809
30763
  config?: NullableJsonNullValueInput | InputJsonValue
32810
30764
  version?: NullableStringFieldUpdateOperationsInput | string | null
32811
30765
  errors?: JsonNullValueInput | InputJsonValue
@@ -32856,53 +30810,12 @@ export namespace Prisma {
32856
30810
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
32857
30811
  }
32858
30812
 
32859
- export type OrganizationMembershipUpdateWithoutIndividualUserInput = {
32860
- orgRole?: StringFieldUpdateOperationsInput | string
32861
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32862
- organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
32863
- }
32864
-
32865
- export type OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput = {
32866
- id?: IntFieldUpdateOperationsInput | number
32867
- organizationUserId?: IntFieldUpdateOperationsInput | number
32868
- orgRole?: StringFieldUpdateOperationsInput | string
32869
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32870
- }
32871
-
32872
- export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput = {
32873
- id?: IntFieldUpdateOperationsInput | number
32874
- organizationUserId?: IntFieldUpdateOperationsInput | number
32875
- orgRole?: StringFieldUpdateOperationsInput | string
32876
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32877
- }
32878
-
32879
- export type OrganizationMembershipUpdateWithoutOrganizationUserInput = {
32880
- orgRole?: StringFieldUpdateOperationsInput | string
32881
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32882
- individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
32883
- }
32884
-
32885
- export type OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput = {
32886
- id?: IntFieldUpdateOperationsInput | number
32887
- individualUserId?: IntFieldUpdateOperationsInput | number
32888
- orgRole?: StringFieldUpdateOperationsInput | string
32889
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32890
- }
32891
-
32892
- export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput = {
32893
- id?: IntFieldUpdateOperationsInput | number
32894
- individualUserId?: IntFieldUpdateOperationsInput | number
32895
- orgRole?: StringFieldUpdateOperationsInput | string
32896
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32897
- }
32898
-
32899
30813
  export type EntityCreateManyCredentialInput = {
32900
30814
  id?: number
32901
30815
  userId?: number | null
32902
30816
  name?: string | null
32903
30817
  moduleName?: string | null
32904
30818
  externalId?: string | null
32905
- organizationId?: number | null
32906
30819
  data?: JsonNullValueInput | InputJsonValue
32907
30820
  createdAt?: Date | string
32908
30821
  updatedAt?: Date | string
@@ -32912,7 +30825,6 @@ export namespace Prisma {
32912
30825
  name?: NullableStringFieldUpdateOperationsInput | string | null
32913
30826
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32914
30827
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32915
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32916
30828
  data?: JsonNullValueInput | InputJsonValue
32917
30829
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32918
30830
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32929,7 +30841,6 @@ export namespace Prisma {
32929
30841
  name?: NullableStringFieldUpdateOperationsInput | string | null
32930
30842
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32931
30843
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32932
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32933
30844
  data?: JsonNullValueInput | InputJsonValue
32934
30845
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32935
30846
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32945,7 +30856,6 @@ export namespace Prisma {
32945
30856
  name?: NullableStringFieldUpdateOperationsInput | string | null
32946
30857
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
32947
30858
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
32948
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32949
30859
  data?: JsonNullValueInput | InputJsonValue
32950
30860
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
32951
30861
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -32968,7 +30878,6 @@ export namespace Prisma {
32968
30878
 
32969
30879
  export type IntegrationUpdateWithoutEntitiesInput = {
32970
30880
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32971
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32972
30881
  config?: NullableJsonNullValueInput | InputJsonValue
32973
30882
  version?: NullableStringFieldUpdateOperationsInput | string | null
32974
30883
  errors?: JsonNullValueInput | InputJsonValue
@@ -32988,7 +30897,6 @@ export namespace Prisma {
32988
30897
  id?: IntFieldUpdateOperationsInput | number
32989
30898
  userId?: NullableIntFieldUpdateOperationsInput | number | null
32990
30899
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
32991
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
32992
30900
  config?: NullableJsonNullValueInput | InputJsonValue
32993
30901
  version?: NullableStringFieldUpdateOperationsInput | string | null
32994
30902
  errors?: JsonNullValueInput | InputJsonValue
@@ -33007,7 +30915,6 @@ export namespace Prisma {
33007
30915
  id?: IntFieldUpdateOperationsInput | number
33008
30916
  userId?: NullableIntFieldUpdateOperationsInput | number | null
33009
30917
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
33010
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33011
30918
  config?: NullableJsonNullValueInput | InputJsonValue
33012
30919
  version?: NullableStringFieldUpdateOperationsInput | string | null
33013
30920
  errors?: JsonNullValueInput | InputJsonValue
@@ -33121,7 +31028,6 @@ export namespace Prisma {
33121
31028
  name?: NullableStringFieldUpdateOperationsInput | string | null
33122
31029
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33123
31030
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33124
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33125
31031
  data?: JsonNullValueInput | InputJsonValue
33126
31032
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33127
31033
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33139,7 +31045,6 @@ export namespace Prisma {
33139
31045
  name?: NullableStringFieldUpdateOperationsInput | string | null
33140
31046
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33141
31047
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33142
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33143
31048
  data?: JsonNullValueInput | InputJsonValue
33144
31049
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33145
31050
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33155,7 +31060,6 @@ export namespace Prisma {
33155
31060
  name?: NullableStringFieldUpdateOperationsInput | string | null
33156
31061
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33157
31062
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33158
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33159
31063
  data?: JsonNullValueInput | InputJsonValue
33160
31064
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33161
31065
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33278,7 +31182,6 @@ export namespace Prisma {
33278
31182
  name?: NullableStringFieldUpdateOperationsInput | string | null
33279
31183
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33280
31184
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33281
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33282
31185
  data?: JsonNullValueInput | InputJsonValue
33283
31186
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33284
31187
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33296,7 +31199,6 @@ export namespace Prisma {
33296
31199
  name?: NullableStringFieldUpdateOperationsInput | string | null
33297
31200
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33298
31201
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33299
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33300
31202
  data?: JsonNullValueInput | InputJsonValue
33301
31203
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33302
31204
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -33312,7 +31214,6 @@ export namespace Prisma {
33312
31214
  name?: NullableStringFieldUpdateOperationsInput | string | null
33313
31215
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
33314
31216
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
33315
- organizationId?: NullableIntFieldUpdateOperationsInput | number | null
33316
31217
  data?: JsonNullValueInput | InputJsonValue
33317
31218
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
33318
31219
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string