@friggframework/core 2.0.0--canary.680.b3ca7f1.0 → 2.0.0--canary.681.d970b9e.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/CLAUDE.md +2 -0
  3. package/README.md +69 -0
  4. package/application/commands/integration-commands.js +8 -18
  5. package/application/commands/user-commands.js +17 -5
  6. package/application/index.js +2 -6
  7. package/database/documentdb-utils.js +6 -1
  8. package/database/encryption/README.md +0 -2
  9. package/database/encryption/encryption-schema-registry.js +12 -35
  10. package/database/encryption/field-encryption-service.js +3 -30
  11. package/database/unique-violation.js +25 -0
  12. package/generated/prisma-mongodb/edge.js +13 -4
  13. package/generated/prisma-mongodb/index-browser.js +10 -1
  14. package/generated/prisma-mongodb/index.d.ts +1922 -94
  15. package/generated/prisma-mongodb/index.js +13 -4
  16. package/generated/prisma-mongodb/package.json +1 -1
  17. package/generated/prisma-mongodb/schema.prisma +32 -0
  18. package/generated/prisma-mongodb/wasm.js +13 -4
  19. package/generated/prisma-postgresql/edge.js +13 -4
  20. package/generated/prisma-postgresql/index-browser.js +10 -1
  21. package/generated/prisma-postgresql/index.d.ts +2053 -83
  22. package/generated/prisma-postgresql/index.js +13 -4
  23. package/generated/prisma-postgresql/package.json +1 -1
  24. package/generated/prisma-postgresql/schema.prisma +29 -0
  25. package/generated/prisma-postgresql/wasm.js +13 -4
  26. package/handlers/app-definition-loader.js +13 -16
  27. package/handlers/backend-utils.js +25 -31
  28. package/handlers/routers/health.js +4 -1
  29. package/handlers/workers/integration-defined-workers.js +2 -5
  30. package/index.js +14 -4
  31. package/integrations/index.js +4 -0
  32. package/integrations/integration-router.js +31 -40
  33. package/integrations/utils/map-integration-dto.js +15 -1
  34. package/management-api/openapi/components.js +1 -7
  35. package/management-api/openapi/v2-operations.js +0 -4
  36. package/management-api/v2/dependencies.js +9 -28
  37. package/modules/index.js +0 -6
  38. package/modules/use-cases/entity-types.js +12 -36
  39. package/package.json +6 -5
  40. package/prisma-mongodb/schema.prisma +32 -0
  41. package/prisma-postgresql/migrations/20261015000000_add_organization_membership/migration.sql +26 -0
  42. package/prisma-postgresql/schema.prisma +29 -0
  43. package/types/index.d.ts +1 -1
  44. package/types/user/index.d.ts +117 -0
  45. package/user/adopter-jwt-config.js +177 -0
  46. package/user/adopter-jwt-errors.js +59 -0
  47. package/user/adopter-token-verifier.js +122 -0
  48. package/user/app-user-helpers.js +97 -0
  49. package/user/create-user-authentication.js +64 -0
  50. package/user/membership.js +51 -0
  51. package/user/repositories/organization-membership-record.js +19 -0
  52. package/user/repositories/organization-membership-repository-documentdb.js +104 -0
  53. package/user/repositories/organization-membership-repository-factory.js +42 -0
  54. package/user/repositories/organization-membership-repository-interface.js +57 -0
  55. package/user/repositories/organization-membership-repository-mongo.js +13 -0
  56. package/user/repositories/organization-membership-repository-postgres.js +29 -0
  57. package/user/repositories/organization-membership-repository-prisma.js +81 -0
  58. package/user/repositories/user-repository-documentdb.js +23 -0
  59. package/user/repositories/user-repository-interface.js +18 -0
  60. package/user/repositories/user-repository-mongo.js +24 -0
  61. package/user/repositories/user-repository-postgres.js +18 -0
  62. package/user/tests/doubles/adopter-jwt-fixtures.js +220 -0
  63. package/user/use-cases/ensure-organization-membership.js +92 -0
  64. package/user/use-cases/find-individual-users-by-organization.js +54 -0
  65. package/user/use-cases/get-user-from-adopter-jwt.js +86 -125
  66. package/user/use-cases/get-user-from-x-frigg-headers.js +74 -85
  67. package/user/user.js +27 -0
  68. package/database/encryption/test-support/fake-ciphertext.js +0 -15
  69. package/modules/entity-type-registry.js +0 -311
  70. package/types/modules/index.d.ts +0 -58
@@ -110,6 +110,15 @@ export type UsageCounter = $Result.DefaultSelection<Prisma.$UsageCounterPayload>
110
110
  * removed 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). NoAction on delete
118
+ * because MongoDB gives no referential integrity: delete a user's memberships
119
+ * before the user.
120
+ */
121
+ export type OrganizationMembership = $Result.DefaultSelection<Prisma.$OrganizationMembershipPayload>
113
122
 
114
123
  /**
115
124
  * Enums
@@ -426,6 +435,16 @@ export class PrismaClient<
426
435
  * ```
427
436
  */
428
437
  get authorizationSession(): Prisma.AuthorizationSessionDelegate<ExtArgs, ClientOptions>;
438
+
439
+ /**
440
+ * `prisma.organizationMembership`: Exposes CRUD operations for the **OrganizationMembership** model.
441
+ * Example usage:
442
+ * ```ts
443
+ * // Fetch zero or more OrganizationMemberships
444
+ * const organizationMemberships = await prisma.organizationMembership.findMany()
445
+ * ```
446
+ */
447
+ get organizationMembership(): Prisma.OrganizationMembershipDelegate<ExtArgs, ClientOptions>;
429
448
  }
430
449
 
431
450
  export namespace Prisma {
@@ -883,7 +902,8 @@ export namespace Prisma {
883
902
  AdminScriptExecution: 'AdminScriptExecution',
884
903
  ScriptSchedule: 'ScriptSchedule',
885
904
  UsageCounter: 'UsageCounter',
886
- AuthorizationSession: 'AuthorizationSession'
905
+ AuthorizationSession: 'AuthorizationSession',
906
+ OrganizationMembership: 'OrganizationMembership'
887
907
  };
888
908
 
889
909
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -902,7 +922,7 @@ export namespace Prisma {
902
922
  omit: GlobalOmitOptions
903
923
  }
904
924
  meta: {
905
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession"
925
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership"
906
926
  txIsolationLevel: never
907
927
  }
908
928
  model: {
@@ -2164,6 +2184,80 @@ export namespace Prisma {
2164
2184
  }
2165
2185
  }
2166
2186
  }
2187
+ OrganizationMembership: {
2188
+ payload: Prisma.$OrganizationMembershipPayload<ExtArgs>
2189
+ fields: Prisma.OrganizationMembershipFieldRefs
2190
+ operations: {
2191
+ findUnique: {
2192
+ args: Prisma.OrganizationMembershipFindUniqueArgs<ExtArgs>
2193
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
2194
+ }
2195
+ findUniqueOrThrow: {
2196
+ args: Prisma.OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>
2197
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2198
+ }
2199
+ findFirst: {
2200
+ args: Prisma.OrganizationMembershipFindFirstArgs<ExtArgs>
2201
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload> | null
2202
+ }
2203
+ findFirstOrThrow: {
2204
+ args: Prisma.OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>
2205
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2206
+ }
2207
+ findMany: {
2208
+ args: Prisma.OrganizationMembershipFindManyArgs<ExtArgs>
2209
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>[]
2210
+ }
2211
+ create: {
2212
+ args: Prisma.OrganizationMembershipCreateArgs<ExtArgs>
2213
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2214
+ }
2215
+ createMany: {
2216
+ args: Prisma.OrganizationMembershipCreateManyArgs<ExtArgs>
2217
+ result: BatchPayload
2218
+ }
2219
+ delete: {
2220
+ args: Prisma.OrganizationMembershipDeleteArgs<ExtArgs>
2221
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2222
+ }
2223
+ update: {
2224
+ args: Prisma.OrganizationMembershipUpdateArgs<ExtArgs>
2225
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2226
+ }
2227
+ deleteMany: {
2228
+ args: Prisma.OrganizationMembershipDeleteManyArgs<ExtArgs>
2229
+ result: BatchPayload
2230
+ }
2231
+ updateMany: {
2232
+ args: Prisma.OrganizationMembershipUpdateManyArgs<ExtArgs>
2233
+ result: BatchPayload
2234
+ }
2235
+ upsert: {
2236
+ args: Prisma.OrganizationMembershipUpsertArgs<ExtArgs>
2237
+ result: $Utils.PayloadToResult<Prisma.$OrganizationMembershipPayload>
2238
+ }
2239
+ aggregate: {
2240
+ args: Prisma.OrganizationMembershipAggregateArgs<ExtArgs>
2241
+ result: $Utils.Optional<AggregateOrganizationMembership>
2242
+ }
2243
+ groupBy: {
2244
+ args: Prisma.OrganizationMembershipGroupByArgs<ExtArgs>
2245
+ result: $Utils.Optional<OrganizationMembershipGroupByOutputType>[]
2246
+ }
2247
+ findRaw: {
2248
+ args: Prisma.OrganizationMembershipFindRawArgs<ExtArgs>
2249
+ result: JsonObject
2250
+ }
2251
+ aggregateRaw: {
2252
+ args: Prisma.OrganizationMembershipAggregateRawArgs<ExtArgs>
2253
+ result: JsonObject
2254
+ }
2255
+ count: {
2256
+ args: Prisma.OrganizationMembershipCountArgs<ExtArgs>
2257
+ result: $Utils.Optional<OrganizationMembershipCountAggregateOutputType> | number
2258
+ }
2259
+ }
2260
+ }
2167
2261
  }
2168
2262
  } & {
2169
2263
  other: {
@@ -2260,6 +2354,7 @@ export namespace Prisma {
2260
2354
  scriptSchedule?: ScriptScheduleOmit
2261
2355
  usageCounter?: UsageCounterOmit
2262
2356
  authorizationSession?: AuthorizationSessionOmit
2357
+ organizationMembership?: OrganizationMembershipOmit
2263
2358
  }
2264
2359
 
2265
2360
  /* Types for Logging */
@@ -2346,6 +2441,8 @@ export namespace Prisma {
2346
2441
  entities: number
2347
2442
  integrations: number
2348
2443
  processes: number
2444
+ memberships: number
2445
+ orgMembers: number
2349
2446
  }
2350
2447
 
2351
2448
  export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -2355,6 +2452,8 @@ export namespace Prisma {
2355
2452
  entities?: boolean | UserCountOutputTypeCountEntitiesArgs
2356
2453
  integrations?: boolean | UserCountOutputTypeCountIntegrationsArgs
2357
2454
  processes?: boolean | UserCountOutputTypeCountProcessesArgs
2455
+ memberships?: boolean | UserCountOutputTypeCountMembershipsArgs
2456
+ orgMembers?: boolean | UserCountOutputTypeCountOrgMembersArgs
2358
2457
  }
2359
2458
 
2360
2459
  // Custom InputTypes
@@ -2410,6 +2509,20 @@ export namespace Prisma {
2410
2509
  where?: ProcessWhereInput
2411
2510
  }
2412
2511
 
2512
+ /**
2513
+ * UserCountOutputType without action
2514
+ */
2515
+ export type UserCountOutputTypeCountMembershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2516
+ where?: OrganizationMembershipWhereInput
2517
+ }
2518
+
2519
+ /**
2520
+ * UserCountOutputType without action
2521
+ */
2522
+ export type UserCountOutputTypeCountOrgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
2523
+ where?: OrganizationMembershipWhereInput
2524
+ }
2525
+
2413
2526
 
2414
2527
  /**
2415
2528
  * Count Type CredentialCountOutputType
@@ -2861,6 +2974,8 @@ export namespace Prisma {
2861
2974
  entities?: boolean | User$entitiesArgs<ExtArgs>
2862
2975
  integrations?: boolean | User$integrationsArgs<ExtArgs>
2863
2976
  processes?: boolean | User$processesArgs<ExtArgs>
2977
+ memberships?: boolean | User$membershipsArgs<ExtArgs>
2978
+ orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
2864
2979
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
2865
2980
  }, ExtArgs["result"]["user"]>
2866
2981
 
@@ -2889,6 +3004,8 @@ export namespace Prisma {
2889
3004
  entities?: boolean | User$entitiesArgs<ExtArgs>
2890
3005
  integrations?: boolean | User$integrationsArgs<ExtArgs>
2891
3006
  processes?: boolean | User$processesArgs<ExtArgs>
3007
+ memberships?: boolean | User$membershipsArgs<ExtArgs>
3008
+ orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
2892
3009
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
2893
3010
  }
2894
3011
 
@@ -2902,6 +3019,8 @@ export namespace Prisma {
2902
3019
  entities: Prisma.$EntityPayload<ExtArgs>[]
2903
3020
  integrations: Prisma.$IntegrationPayload<ExtArgs>[]
2904
3021
  processes: Prisma.$ProcessPayload<ExtArgs>[]
3022
+ memberships: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
3023
+ orgMembers: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
2905
3024
  }
2906
3025
  scalars: $Extensions.GetPayloadResult<{
2907
3026
  id: string
@@ -3285,6 +3404,8 @@ export namespace Prisma {
3285
3404
  entities<T extends User$entitiesArgs<ExtArgs> = {}>(args?: Subset<T, User$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3286
3405
  integrations<T extends User$integrationsArgs<ExtArgs> = {}>(args?: Subset<T, User$integrationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3287
3406
  processes<T extends User$processesArgs<ExtArgs> = {}>(args?: Subset<T, User$processesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ProcessPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3407
+ memberships<T extends User$membershipsArgs<ExtArgs> = {}>(args?: Subset<T, User$membershipsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3408
+ orgMembers<T extends User$orgMembersArgs<ExtArgs> = {}>(args?: Subset<T, User$orgMembersArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3288
3409
  /**
3289
3410
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3290
3411
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3857,6 +3978,54 @@ export namespace Prisma {
3857
3978
  distinct?: ProcessScalarFieldEnum | ProcessScalarFieldEnum[]
3858
3979
  }
3859
3980
 
3981
+ /**
3982
+ * User.memberships
3983
+ */
3984
+ export type User$membershipsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
3985
+ /**
3986
+ * Select specific fields to fetch from the OrganizationMembership
3987
+ */
3988
+ select?: OrganizationMembershipSelect<ExtArgs> | null
3989
+ /**
3990
+ * Omit specific fields from the OrganizationMembership
3991
+ */
3992
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
3993
+ /**
3994
+ * Choose, which related nodes to fetch as well
3995
+ */
3996
+ include?: OrganizationMembershipInclude<ExtArgs> | null
3997
+ where?: OrganizationMembershipWhereInput
3998
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
3999
+ cursor?: OrganizationMembershipWhereUniqueInput
4000
+ take?: number
4001
+ skip?: number
4002
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
4003
+ }
4004
+
4005
+ /**
4006
+ * User.orgMembers
4007
+ */
4008
+ export type User$orgMembersArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
4009
+ /**
4010
+ * Select specific fields to fetch from the OrganizationMembership
4011
+ */
4012
+ select?: OrganizationMembershipSelect<ExtArgs> | null
4013
+ /**
4014
+ * Omit specific fields from the OrganizationMembership
4015
+ */
4016
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
4017
+ /**
4018
+ * Choose, which related nodes to fetch as well
4019
+ */
4020
+ include?: OrganizationMembershipInclude<ExtArgs> | null
4021
+ where?: OrganizationMembershipWhereInput
4022
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
4023
+ cursor?: OrganizationMembershipWhereUniqueInput
4024
+ take?: number
4025
+ skip?: number
4026
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
4027
+ }
4028
+
3860
4029
  /**
3861
4030
  * User without action
3862
4031
  */
@@ -20176,121 +20345,1104 @@ export namespace Prisma {
20176
20345
 
20177
20346
 
20178
20347
  /**
20179
- * Enums
20348
+ * Model OrganizationMembership
20180
20349
  */
20181
20350
 
20182
- export const UserScalarFieldEnum: {
20183
- id: 'id',
20184
- type: 'type',
20185
- createdAt: 'createdAt',
20186
- updatedAt: 'updatedAt',
20187
- email: 'email',
20188
- username: 'username',
20189
- hashword: 'hashword',
20190
- appUserId: 'appUserId',
20191
- organizationId: 'organizationId',
20192
- appOrgId: 'appOrgId',
20193
- name: 'name'
20194
- };
20351
+ export type AggregateOrganizationMembership = {
20352
+ _count: OrganizationMembershipCountAggregateOutputType | null
20353
+ _min: OrganizationMembershipMinAggregateOutputType | null
20354
+ _max: OrganizationMembershipMaxAggregateOutputType | null
20355
+ }
20195
20356
 
20196
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
20357
+ export type OrganizationMembershipMinAggregateOutputType = {
20358
+ id: string | null
20359
+ individualUserId: string | null
20360
+ organizationUserId: string | null
20361
+ orgRole: string | null
20362
+ createdAt: Date | null
20363
+ }
20197
20364
 
20365
+ export type OrganizationMembershipMaxAggregateOutputType = {
20366
+ id: string | null
20367
+ individualUserId: string | null
20368
+ organizationUserId: string | null
20369
+ orgRole: string | null
20370
+ createdAt: Date | null
20371
+ }
20198
20372
 
20199
- export const TokenScalarFieldEnum: {
20200
- id: 'id',
20201
- token: 'token',
20202
- created: 'created',
20203
- expires: 'expires',
20204
- userId: 'userId'
20205
- };
20373
+ export type OrganizationMembershipCountAggregateOutputType = {
20374
+ id: number
20375
+ individualUserId: number
20376
+ organizationUserId: number
20377
+ orgRole: number
20378
+ createdAt: number
20379
+ _all: number
20380
+ }
20206
20381
 
20207
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
20208
20382
 
20383
+ export type OrganizationMembershipMinAggregateInputType = {
20384
+ id?: true
20385
+ individualUserId?: true
20386
+ organizationUserId?: true
20387
+ orgRole?: true
20388
+ createdAt?: true
20389
+ }
20209
20390
 
20210
- export const CredentialScalarFieldEnum: {
20211
- id: 'id',
20212
- userId: 'userId',
20213
- authIsValid: 'authIsValid',
20214
- externalId: 'externalId',
20215
- data: 'data',
20216
- createdAt: 'createdAt',
20217
- updatedAt: 'updatedAt'
20218
- };
20391
+ export type OrganizationMembershipMaxAggregateInputType = {
20392
+ id?: true
20393
+ individualUserId?: true
20394
+ organizationUserId?: true
20395
+ orgRole?: true
20396
+ createdAt?: true
20397
+ }
20219
20398
 
20220
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
20399
+ export type OrganizationMembershipCountAggregateInputType = {
20400
+ id?: true
20401
+ individualUserId?: true
20402
+ organizationUserId?: true
20403
+ orgRole?: true
20404
+ createdAt?: true
20405
+ _all?: true
20406
+ }
20221
20407
 
20408
+ export type OrganizationMembershipAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20409
+ /**
20410
+ * Filter which OrganizationMembership to aggregate.
20411
+ */
20412
+ where?: OrganizationMembershipWhereInput
20413
+ /**
20414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20415
+ *
20416
+ * Determine the order of OrganizationMemberships to fetch.
20417
+ */
20418
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
20419
+ /**
20420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20421
+ *
20422
+ * Sets the start position
20423
+ */
20424
+ cursor?: OrganizationMembershipWhereUniqueInput
20425
+ /**
20426
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20427
+ *
20428
+ * Take `±n` OrganizationMemberships from the position of the cursor.
20429
+ */
20430
+ take?: number
20431
+ /**
20432
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20433
+ *
20434
+ * Skip the first `n` OrganizationMemberships.
20435
+ */
20436
+ skip?: number
20437
+ /**
20438
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20439
+ *
20440
+ * Count returned OrganizationMemberships
20441
+ **/
20442
+ _count?: true | OrganizationMembershipCountAggregateInputType
20443
+ /**
20444
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20445
+ *
20446
+ * Select which fields to find the minimum value
20447
+ **/
20448
+ _min?: OrganizationMembershipMinAggregateInputType
20449
+ /**
20450
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20451
+ *
20452
+ * Select which fields to find the maximum value
20453
+ **/
20454
+ _max?: OrganizationMembershipMaxAggregateInputType
20455
+ }
20222
20456
 
20223
- export const EntityScalarFieldEnum: {
20224
- id: 'id',
20225
- credentialId: 'credentialId',
20226
- userId: 'userId',
20227
- name: 'name',
20228
- moduleName: 'moduleName',
20229
- externalId: 'externalId',
20230
- data: 'data',
20231
- createdAt: 'createdAt',
20232
- updatedAt: 'updatedAt',
20233
- integrationIds: 'integrationIds',
20234
- syncIds: 'syncIds'
20235
- };
20457
+ export type GetOrganizationMembershipAggregateType<T extends OrganizationMembershipAggregateArgs> = {
20458
+ [P in keyof T & keyof AggregateOrganizationMembership]: P extends '_count' | 'count'
20459
+ ? T[P] extends true
20460
+ ? number
20461
+ : GetScalarType<T[P], AggregateOrganizationMembership[P]>
20462
+ : GetScalarType<T[P], AggregateOrganizationMembership[P]>
20463
+ }
20236
20464
 
20237
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
20238
20465
 
20239
20466
 
20240
- export const IntegrationScalarFieldEnum: {
20241
- id: 'id',
20242
- userId: 'userId',
20243
- status: 'status',
20244
- config: 'config',
20245
- version: 'version',
20246
- entityIds: 'entityIds',
20247
- errors: 'errors',
20248
- warnings: 'warnings',
20249
- info: 'info',
20250
- logs: 'logs',
20251
- createdAt: 'createdAt',
20252
- updatedAt: 'updatedAt'
20253
- };
20254
20467
 
20255
- export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
20468
+ export type OrganizationMembershipGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20469
+ where?: OrganizationMembershipWhereInput
20470
+ orderBy?: OrganizationMembershipOrderByWithAggregationInput | OrganizationMembershipOrderByWithAggregationInput[]
20471
+ by: OrganizationMembershipScalarFieldEnum[] | OrganizationMembershipScalarFieldEnum
20472
+ having?: OrganizationMembershipScalarWhereWithAggregatesInput
20473
+ take?: number
20474
+ skip?: number
20475
+ _count?: OrganizationMembershipCountAggregateInputType | true
20476
+ _min?: OrganizationMembershipMinAggregateInputType
20477
+ _max?: OrganizationMembershipMaxAggregateInputType
20478
+ }
20256
20479
 
20480
+ export type OrganizationMembershipGroupByOutputType = {
20481
+ id: string
20482
+ individualUserId: string
20483
+ organizationUserId: string
20484
+ orgRole: string
20485
+ createdAt: Date
20486
+ _count: OrganizationMembershipCountAggregateOutputType | null
20487
+ _min: OrganizationMembershipMinAggregateOutputType | null
20488
+ _max: OrganizationMembershipMaxAggregateOutputType | null
20489
+ }
20257
20490
 
20258
- export const IntegrationMappingScalarFieldEnum: {
20259
- id: 'id',
20260
- integrationId: 'integrationId',
20261
- sourceId: 'sourceId',
20262
- mapping: 'mapping',
20263
- createdAt: 'createdAt',
20264
- updatedAt: 'updatedAt'
20265
- };
20491
+ type GetOrganizationMembershipGroupByPayload<T extends OrganizationMembershipGroupByArgs> = Prisma.PrismaPromise<
20492
+ Array<
20493
+ PickEnumerable<OrganizationMembershipGroupByOutputType, T['by']> &
20494
+ {
20495
+ [P in ((keyof T) & (keyof OrganizationMembershipGroupByOutputType))]: P extends '_count'
20496
+ ? T[P] extends boolean
20497
+ ? number
20498
+ : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
20499
+ : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
20500
+ }
20501
+ >
20502
+ >
20266
20503
 
20267
- export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
20268
20504
 
20505
+ export type OrganizationMembershipSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20506
+ id?: boolean
20507
+ individualUserId?: boolean
20508
+ organizationUserId?: boolean
20509
+ orgRole?: boolean
20510
+ createdAt?: boolean
20511
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
20512
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
20513
+ }, ExtArgs["result"]["organizationMembership"]>
20269
20514
 
20270
- export const ProcessScalarFieldEnum: {
20271
- id: 'id',
20272
- userId: 'userId',
20273
- integrationId: 'integrationId',
20274
- name: 'name',
20275
- type: 'type',
20276
- state: 'state',
20277
- context: 'context',
20278
- results: 'results',
20279
- childProcesses: 'childProcesses',
20280
- parentProcessId: 'parentProcessId',
20281
- createdAt: 'createdAt',
20282
- updatedAt: 'updatedAt'
20283
- };
20284
20515
 
20285
- export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
20286
20516
 
20517
+ export type OrganizationMembershipSelectScalar = {
20518
+ id?: boolean
20519
+ individualUserId?: boolean
20520
+ organizationUserId?: boolean
20521
+ orgRole?: boolean
20522
+ createdAt?: boolean
20523
+ }
20287
20524
 
20288
- export const SyncScalarFieldEnum: {
20289
- id: 'id',
20290
- integrationId: 'integrationId',
20291
- entityIds: 'entityIds',
20292
- hash: 'hash',
20293
- name: 'name'
20525
+ export type OrganizationMembershipOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "individualUserId" | "organizationUserId" | "orgRole" | "createdAt", ExtArgs["result"]["organizationMembership"]>
20526
+ export type OrganizationMembershipInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20527
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
20528
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
20529
+ }
20530
+
20531
+ export type $OrganizationMembershipPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20532
+ name: "OrganizationMembership"
20533
+ objects: {
20534
+ individualUser: Prisma.$UserPayload<ExtArgs>
20535
+ organizationUser: Prisma.$UserPayload<ExtArgs>
20536
+ }
20537
+ scalars: $Extensions.GetPayloadResult<{
20538
+ id: string
20539
+ individualUserId: string
20540
+ organizationUserId: string
20541
+ orgRole: string
20542
+ createdAt: Date
20543
+ }, ExtArgs["result"]["organizationMembership"]>
20544
+ composites: {}
20545
+ }
20546
+
20547
+ type OrganizationMembershipGetPayload<S extends boolean | null | undefined | OrganizationMembershipDefaultArgs> = $Result.GetResult<Prisma.$OrganizationMembershipPayload, S>
20548
+
20549
+ type OrganizationMembershipCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
20550
+ Omit<OrganizationMembershipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
20551
+ select?: OrganizationMembershipCountAggregateInputType | true
20552
+ }
20553
+
20554
+ export interface OrganizationMembershipDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
20555
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OrganizationMembership'], meta: { name: 'OrganizationMembership' } }
20556
+ /**
20557
+ * Find zero or one OrganizationMembership that matches the filter.
20558
+ * @param {OrganizationMembershipFindUniqueArgs} args - Arguments to find a OrganizationMembership
20559
+ * @example
20560
+ * // Get one OrganizationMembership
20561
+ * const organizationMembership = await prisma.organizationMembership.findUnique({
20562
+ * where: {
20563
+ * // ... provide filter here
20564
+ * }
20565
+ * })
20566
+ */
20567
+ findUnique<T extends OrganizationMembershipFindUniqueArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20568
+
20569
+ /**
20570
+ * Find one OrganizationMembership that matches the filter or throw an error with `error.code='P2025'`
20571
+ * if no matches were found.
20572
+ * @param {OrganizationMembershipFindUniqueOrThrowArgs} args - Arguments to find a OrganizationMembership
20573
+ * @example
20574
+ * // Get one OrganizationMembership
20575
+ * const organizationMembership = await prisma.organizationMembership.findUniqueOrThrow({
20576
+ * where: {
20577
+ * // ... provide filter here
20578
+ * }
20579
+ * })
20580
+ */
20581
+ findUniqueOrThrow<T extends OrganizationMembershipFindUniqueOrThrowArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20582
+
20583
+ /**
20584
+ * Find the first OrganizationMembership that matches the filter.
20585
+ * Note, that providing `undefined` is treated as the value not being there.
20586
+ * Read more here: https://pris.ly/d/null-undefined
20587
+ * @param {OrganizationMembershipFindFirstArgs} args - Arguments to find a OrganizationMembership
20588
+ * @example
20589
+ * // Get one OrganizationMembership
20590
+ * const organizationMembership = await prisma.organizationMembership.findFirst({
20591
+ * where: {
20592
+ * // ... provide filter here
20593
+ * }
20594
+ * })
20595
+ */
20596
+ findFirst<T extends OrganizationMembershipFindFirstArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20597
+
20598
+ /**
20599
+ * Find the first OrganizationMembership that matches the filter or
20600
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
20601
+ * Note, that providing `undefined` is treated as the value not being there.
20602
+ * Read more here: https://pris.ly/d/null-undefined
20603
+ * @param {OrganizationMembershipFindFirstOrThrowArgs} args - Arguments to find a OrganizationMembership
20604
+ * @example
20605
+ * // Get one OrganizationMembership
20606
+ * const organizationMembership = await prisma.organizationMembership.findFirstOrThrow({
20607
+ * where: {
20608
+ * // ... provide filter here
20609
+ * }
20610
+ * })
20611
+ */
20612
+ findFirstOrThrow<T extends OrganizationMembershipFindFirstOrThrowArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20613
+
20614
+ /**
20615
+ * Find zero or more OrganizationMemberships that matches the filter.
20616
+ * Note, that providing `undefined` is treated as the value not being there.
20617
+ * Read more here: https://pris.ly/d/null-undefined
20618
+ * @param {OrganizationMembershipFindManyArgs} args - Arguments to filter and select certain fields only.
20619
+ * @example
20620
+ * // Get all OrganizationMemberships
20621
+ * const organizationMemberships = await prisma.organizationMembership.findMany()
20622
+ *
20623
+ * // Get first 10 OrganizationMemberships
20624
+ * const organizationMemberships = await prisma.organizationMembership.findMany({ take: 10 })
20625
+ *
20626
+ * // Only select the `id`
20627
+ * const organizationMembershipWithIdOnly = await prisma.organizationMembership.findMany({ select: { id: true } })
20628
+ *
20629
+ */
20630
+ findMany<T extends OrganizationMembershipFindManyArgs>(args?: SelectSubset<T, OrganizationMembershipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
20631
+
20632
+ /**
20633
+ * Create a OrganizationMembership.
20634
+ * @param {OrganizationMembershipCreateArgs} args - Arguments to create a OrganizationMembership.
20635
+ * @example
20636
+ * // Create one OrganizationMembership
20637
+ * const OrganizationMembership = await prisma.organizationMembership.create({
20638
+ * data: {
20639
+ * // ... data to create a OrganizationMembership
20640
+ * }
20641
+ * })
20642
+ *
20643
+ */
20644
+ create<T extends OrganizationMembershipCreateArgs>(args: SelectSubset<T, OrganizationMembershipCreateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20645
+
20646
+ /**
20647
+ * Create many OrganizationMemberships.
20648
+ * @param {OrganizationMembershipCreateManyArgs} args - Arguments to create many OrganizationMemberships.
20649
+ * @example
20650
+ * // Create many OrganizationMemberships
20651
+ * const organizationMembership = await prisma.organizationMembership.createMany({
20652
+ * data: [
20653
+ * // ... provide data here
20654
+ * ]
20655
+ * })
20656
+ *
20657
+ */
20658
+ createMany<T extends OrganizationMembershipCreateManyArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20659
+
20660
+ /**
20661
+ * Delete a OrganizationMembership.
20662
+ * @param {OrganizationMembershipDeleteArgs} args - Arguments to delete one OrganizationMembership.
20663
+ * @example
20664
+ * // Delete one OrganizationMembership
20665
+ * const OrganizationMembership = await prisma.organizationMembership.delete({
20666
+ * where: {
20667
+ * // ... filter to delete one OrganizationMembership
20668
+ * }
20669
+ * })
20670
+ *
20671
+ */
20672
+ delete<T extends OrganizationMembershipDeleteArgs>(args: SelectSubset<T, OrganizationMembershipDeleteArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20673
+
20674
+ /**
20675
+ * Update one OrganizationMembership.
20676
+ * @param {OrganizationMembershipUpdateArgs} args - Arguments to update one OrganizationMembership.
20677
+ * @example
20678
+ * // Update one OrganizationMembership
20679
+ * const organizationMembership = await prisma.organizationMembership.update({
20680
+ * where: {
20681
+ * // ... provide filter here
20682
+ * },
20683
+ * data: {
20684
+ * // ... provide data here
20685
+ * }
20686
+ * })
20687
+ *
20688
+ */
20689
+ update<T extends OrganizationMembershipUpdateArgs>(args: SelectSubset<T, OrganizationMembershipUpdateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20690
+
20691
+ /**
20692
+ * Delete zero or more OrganizationMemberships.
20693
+ * @param {OrganizationMembershipDeleteManyArgs} args - Arguments to filter OrganizationMemberships to delete.
20694
+ * @example
20695
+ * // Delete a few OrganizationMemberships
20696
+ * const { count } = await prisma.organizationMembership.deleteMany({
20697
+ * where: {
20698
+ * // ... provide filter here
20699
+ * }
20700
+ * })
20701
+ *
20702
+ */
20703
+ deleteMany<T extends OrganizationMembershipDeleteManyArgs>(args?: SelectSubset<T, OrganizationMembershipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20704
+
20705
+ /**
20706
+ * Update zero or more OrganizationMemberships.
20707
+ * Note, that providing `undefined` is treated as the value not being there.
20708
+ * Read more here: https://pris.ly/d/null-undefined
20709
+ * @param {OrganizationMembershipUpdateManyArgs} args - Arguments to update one or more rows.
20710
+ * @example
20711
+ * // Update many OrganizationMemberships
20712
+ * const organizationMembership = await prisma.organizationMembership.updateMany({
20713
+ * where: {
20714
+ * // ... provide filter here
20715
+ * },
20716
+ * data: {
20717
+ * // ... provide data here
20718
+ * }
20719
+ * })
20720
+ *
20721
+ */
20722
+ updateMany<T extends OrganizationMembershipUpdateManyArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20723
+
20724
+ /**
20725
+ * Create or update one OrganizationMembership.
20726
+ * @param {OrganizationMembershipUpsertArgs} args - Arguments to update or create a OrganizationMembership.
20727
+ * @example
20728
+ * // Update or create a OrganizationMembership
20729
+ * const organizationMembership = await prisma.organizationMembership.upsert({
20730
+ * create: {
20731
+ * // ... data to create a OrganizationMembership
20732
+ * },
20733
+ * update: {
20734
+ * // ... in case it already exists, update
20735
+ * },
20736
+ * where: {
20737
+ * // ... the filter for the OrganizationMembership we want to update
20738
+ * }
20739
+ * })
20740
+ */
20741
+ upsert<T extends OrganizationMembershipUpsertArgs>(args: SelectSubset<T, OrganizationMembershipUpsertArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20742
+
20743
+ /**
20744
+ * Find zero or more OrganizationMemberships that matches the filter.
20745
+ * @param {OrganizationMembershipFindRawArgs} args - Select which filters you would like to apply.
20746
+ * @example
20747
+ * const organizationMembership = await prisma.organizationMembership.findRaw({
20748
+ * filter: { age: { $gt: 25 } }
20749
+ * })
20750
+ */
20751
+ findRaw(args?: OrganizationMembershipFindRawArgs): Prisma.PrismaPromise<JsonObject>
20752
+
20753
+ /**
20754
+ * Perform aggregation operations on a OrganizationMembership.
20755
+ * @param {OrganizationMembershipAggregateRawArgs} args - Select which aggregations you would like to apply.
20756
+ * @example
20757
+ * const organizationMembership = await prisma.organizationMembership.aggregateRaw({
20758
+ * pipeline: [
20759
+ * { $match: { status: "registered" } },
20760
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
20761
+ * ]
20762
+ * })
20763
+ */
20764
+ aggregateRaw(args?: OrganizationMembershipAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
20765
+
20766
+
20767
+ /**
20768
+ * Count the number of OrganizationMemberships.
20769
+ * Note, that providing `undefined` is treated as the value not being there.
20770
+ * Read more here: https://pris.ly/d/null-undefined
20771
+ * @param {OrganizationMembershipCountArgs} args - Arguments to filter OrganizationMemberships to count.
20772
+ * @example
20773
+ * // Count the number of OrganizationMemberships
20774
+ * const count = await prisma.organizationMembership.count({
20775
+ * where: {
20776
+ * // ... the filter for the OrganizationMemberships we want to count
20777
+ * }
20778
+ * })
20779
+ **/
20780
+ count<T extends OrganizationMembershipCountArgs>(
20781
+ args?: Subset<T, OrganizationMembershipCountArgs>,
20782
+ ): Prisma.PrismaPromise<
20783
+ T extends $Utils.Record<'select', any>
20784
+ ? T['select'] extends true
20785
+ ? number
20786
+ : GetScalarType<T['select'], OrganizationMembershipCountAggregateOutputType>
20787
+ : number
20788
+ >
20789
+
20790
+ /**
20791
+ * Allows you to perform aggregations operations on a OrganizationMembership.
20792
+ * Note, that providing `undefined` is treated as the value not being there.
20793
+ * Read more here: https://pris.ly/d/null-undefined
20794
+ * @param {OrganizationMembershipAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
20795
+ * @example
20796
+ * // Ordered by age ascending
20797
+ * // Where email contains prisma.io
20798
+ * // Limited to the 10 users
20799
+ * const aggregations = await prisma.user.aggregate({
20800
+ * _avg: {
20801
+ * age: true,
20802
+ * },
20803
+ * where: {
20804
+ * email: {
20805
+ * contains: "prisma.io",
20806
+ * },
20807
+ * },
20808
+ * orderBy: {
20809
+ * age: "asc",
20810
+ * },
20811
+ * take: 10,
20812
+ * })
20813
+ **/
20814
+ aggregate<T extends OrganizationMembershipAggregateArgs>(args: Subset<T, OrganizationMembershipAggregateArgs>): Prisma.PrismaPromise<GetOrganizationMembershipAggregateType<T>>
20815
+
20816
+ /**
20817
+ * Group by OrganizationMembership.
20818
+ * Note, that providing `undefined` is treated as the value not being there.
20819
+ * Read more here: https://pris.ly/d/null-undefined
20820
+ * @param {OrganizationMembershipGroupByArgs} args - Group by arguments.
20821
+ * @example
20822
+ * // Group by city, order by createdAt, get count
20823
+ * const result = await prisma.user.groupBy({
20824
+ * by: ['city', 'createdAt'],
20825
+ * orderBy: {
20826
+ * createdAt: true
20827
+ * },
20828
+ * _count: {
20829
+ * _all: true
20830
+ * },
20831
+ * })
20832
+ *
20833
+ **/
20834
+ groupBy<
20835
+ T extends OrganizationMembershipGroupByArgs,
20836
+ HasSelectOrTake extends Or<
20837
+ Extends<'skip', Keys<T>>,
20838
+ Extends<'take', Keys<T>>
20839
+ >,
20840
+ OrderByArg extends True extends HasSelectOrTake
20841
+ ? { orderBy: OrganizationMembershipGroupByArgs['orderBy'] }
20842
+ : { orderBy?: OrganizationMembershipGroupByArgs['orderBy'] },
20843
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
20844
+ ByFields extends MaybeTupleToUnion<T['by']>,
20845
+ ByValid extends Has<ByFields, OrderFields>,
20846
+ HavingFields extends GetHavingFields<T['having']>,
20847
+ HavingValid extends Has<ByFields, HavingFields>,
20848
+ ByEmpty extends T['by'] extends never[] ? True : False,
20849
+ InputErrors extends ByEmpty extends True
20850
+ ? `Error: "by" must not be empty.`
20851
+ : HavingValid extends False
20852
+ ? {
20853
+ [P in HavingFields]: P extends ByFields
20854
+ ? never
20855
+ : P extends string
20856
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
20857
+ : [
20858
+ Error,
20859
+ 'Field ',
20860
+ P,
20861
+ ` in "having" needs to be provided in "by"`,
20862
+ ]
20863
+ }[HavingFields]
20864
+ : 'take' extends Keys<T>
20865
+ ? 'orderBy' extends Keys<T>
20866
+ ? ByValid extends True
20867
+ ? {}
20868
+ : {
20869
+ [P in OrderFields]: P extends ByFields
20870
+ ? never
20871
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20872
+ }[OrderFields]
20873
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
20874
+ : 'skip' extends Keys<T>
20875
+ ? 'orderBy' extends Keys<T>
20876
+ ? ByValid extends True
20877
+ ? {}
20878
+ : {
20879
+ [P in OrderFields]: P extends ByFields
20880
+ ? never
20881
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20882
+ }[OrderFields]
20883
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
20884
+ : ByValid extends True
20885
+ ? {}
20886
+ : {
20887
+ [P in OrderFields]: P extends ByFields
20888
+ ? never
20889
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20890
+ }[OrderFields]
20891
+ >(args: SubsetIntersection<T, OrganizationMembershipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationMembershipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
20892
+ /**
20893
+ * Fields of the OrganizationMembership model
20894
+ */
20895
+ readonly fields: OrganizationMembershipFieldRefs;
20896
+ }
20897
+
20898
+ /**
20899
+ * The delegate class that acts as a "Promise-like" for OrganizationMembership.
20900
+ * Why is this prefixed with `Prisma__`?
20901
+ * Because we want to prevent naming conflicts as mentioned in
20902
+ * https://github.com/prisma/prisma-client-js/issues/707
20903
+ */
20904
+ export interface Prisma__OrganizationMembershipClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
20905
+ readonly [Symbol.toStringTag]: "PrismaPromise"
20906
+ individualUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
20907
+ organizationUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
20908
+ /**
20909
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
20910
+ * @param onfulfilled The callback to execute when the Promise is resolved.
20911
+ * @param onrejected The callback to execute when the Promise is rejected.
20912
+ * @returns A Promise for the completion of which ever callback is executed.
20913
+ */
20914
+ 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>
20915
+ /**
20916
+ * Attaches a callback for only the rejection of the Promise.
20917
+ * @param onrejected The callback to execute when the Promise is rejected.
20918
+ * @returns A Promise for the completion of the callback.
20919
+ */
20920
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
20921
+ /**
20922
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
20923
+ * resolved value cannot be modified from the callback.
20924
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
20925
+ * @returns A Promise for the completion of the callback.
20926
+ */
20927
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
20928
+ }
20929
+
20930
+
20931
+
20932
+
20933
+ /**
20934
+ * Fields of the OrganizationMembership model
20935
+ */
20936
+ interface OrganizationMembershipFieldRefs {
20937
+ readonly id: FieldRef<"OrganizationMembership", 'String'>
20938
+ readonly individualUserId: FieldRef<"OrganizationMembership", 'String'>
20939
+ readonly organizationUserId: FieldRef<"OrganizationMembership", 'String'>
20940
+ readonly orgRole: FieldRef<"OrganizationMembership", 'String'>
20941
+ readonly createdAt: FieldRef<"OrganizationMembership", 'DateTime'>
20942
+ }
20943
+
20944
+
20945
+ // Custom InputTypes
20946
+ /**
20947
+ * OrganizationMembership findUnique
20948
+ */
20949
+ export type OrganizationMembershipFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20950
+ /**
20951
+ * Select specific fields to fetch from the OrganizationMembership
20952
+ */
20953
+ select?: OrganizationMembershipSelect<ExtArgs> | null
20954
+ /**
20955
+ * Omit specific fields from the OrganizationMembership
20956
+ */
20957
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
20958
+ /**
20959
+ * Choose, which related nodes to fetch as well
20960
+ */
20961
+ include?: OrganizationMembershipInclude<ExtArgs> | null
20962
+ /**
20963
+ * Filter, which OrganizationMembership to fetch.
20964
+ */
20965
+ where: OrganizationMembershipWhereUniqueInput
20966
+ }
20967
+
20968
+ /**
20969
+ * OrganizationMembership findUniqueOrThrow
20970
+ */
20971
+ export type OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20972
+ /**
20973
+ * Select specific fields to fetch from the OrganizationMembership
20974
+ */
20975
+ select?: OrganizationMembershipSelect<ExtArgs> | null
20976
+ /**
20977
+ * Omit specific fields from the OrganizationMembership
20978
+ */
20979
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
20980
+ /**
20981
+ * Choose, which related nodes to fetch as well
20982
+ */
20983
+ include?: OrganizationMembershipInclude<ExtArgs> | null
20984
+ /**
20985
+ * Filter, which OrganizationMembership to fetch.
20986
+ */
20987
+ where: OrganizationMembershipWhereUniqueInput
20988
+ }
20989
+
20990
+ /**
20991
+ * OrganizationMembership findFirst
20992
+ */
20993
+ export type OrganizationMembershipFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20994
+ /**
20995
+ * Select specific fields to fetch from the OrganizationMembership
20996
+ */
20997
+ select?: OrganizationMembershipSelect<ExtArgs> | null
20998
+ /**
20999
+ * Omit specific fields from the OrganizationMembership
21000
+ */
21001
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21002
+ /**
21003
+ * Choose, which related nodes to fetch as well
21004
+ */
21005
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21006
+ /**
21007
+ * Filter, which OrganizationMembership to fetch.
21008
+ */
21009
+ where?: OrganizationMembershipWhereInput
21010
+ /**
21011
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21012
+ *
21013
+ * Determine the order of OrganizationMemberships to fetch.
21014
+ */
21015
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
21016
+ /**
21017
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21018
+ *
21019
+ * Sets the position for searching for OrganizationMemberships.
21020
+ */
21021
+ cursor?: OrganizationMembershipWhereUniqueInput
21022
+ /**
21023
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21024
+ *
21025
+ * Take `±n` OrganizationMemberships from the position of the cursor.
21026
+ */
21027
+ take?: number
21028
+ /**
21029
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21030
+ *
21031
+ * Skip the first `n` OrganizationMemberships.
21032
+ */
21033
+ skip?: number
21034
+ /**
21035
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
21036
+ *
21037
+ * Filter by unique combinations of OrganizationMemberships.
21038
+ */
21039
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
21040
+ }
21041
+
21042
+ /**
21043
+ * OrganizationMembership findFirstOrThrow
21044
+ */
21045
+ export type OrganizationMembershipFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21046
+ /**
21047
+ * Select specific fields to fetch from the OrganizationMembership
21048
+ */
21049
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21050
+ /**
21051
+ * Omit specific fields from the OrganizationMembership
21052
+ */
21053
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21054
+ /**
21055
+ * Choose, which related nodes to fetch as well
21056
+ */
21057
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21058
+ /**
21059
+ * Filter, which OrganizationMembership to fetch.
21060
+ */
21061
+ where?: OrganizationMembershipWhereInput
21062
+ /**
21063
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21064
+ *
21065
+ * Determine the order of OrganizationMemberships to fetch.
21066
+ */
21067
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
21068
+ /**
21069
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21070
+ *
21071
+ * Sets the position for searching for OrganizationMemberships.
21072
+ */
21073
+ cursor?: OrganizationMembershipWhereUniqueInput
21074
+ /**
21075
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21076
+ *
21077
+ * Take `±n` OrganizationMemberships from the position of the cursor.
21078
+ */
21079
+ take?: number
21080
+ /**
21081
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21082
+ *
21083
+ * Skip the first `n` OrganizationMemberships.
21084
+ */
21085
+ skip?: number
21086
+ /**
21087
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
21088
+ *
21089
+ * Filter by unique combinations of OrganizationMemberships.
21090
+ */
21091
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
21092
+ }
21093
+
21094
+ /**
21095
+ * OrganizationMembership findMany
21096
+ */
21097
+ export type OrganizationMembershipFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21098
+ /**
21099
+ * Select specific fields to fetch from the OrganizationMembership
21100
+ */
21101
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21102
+ /**
21103
+ * Omit specific fields from the OrganizationMembership
21104
+ */
21105
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21106
+ /**
21107
+ * Choose, which related nodes to fetch as well
21108
+ */
21109
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21110
+ /**
21111
+ * Filter, which OrganizationMemberships to fetch.
21112
+ */
21113
+ where?: OrganizationMembershipWhereInput
21114
+ /**
21115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21116
+ *
21117
+ * Determine the order of OrganizationMemberships to fetch.
21118
+ */
21119
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
21120
+ /**
21121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21122
+ *
21123
+ * Sets the position for listing OrganizationMemberships.
21124
+ */
21125
+ cursor?: OrganizationMembershipWhereUniqueInput
21126
+ /**
21127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21128
+ *
21129
+ * Take `±n` OrganizationMemberships from the position of the cursor.
21130
+ */
21131
+ take?: number
21132
+ /**
21133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21134
+ *
21135
+ * Skip the first `n` OrganizationMemberships.
21136
+ */
21137
+ skip?: number
21138
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
21139
+ }
21140
+
21141
+ /**
21142
+ * OrganizationMembership create
21143
+ */
21144
+ export type OrganizationMembershipCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21145
+ /**
21146
+ * Select specific fields to fetch from the OrganizationMembership
21147
+ */
21148
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21149
+ /**
21150
+ * Omit specific fields from the OrganizationMembership
21151
+ */
21152
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21153
+ /**
21154
+ * Choose, which related nodes to fetch as well
21155
+ */
21156
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21157
+ /**
21158
+ * The data needed to create a OrganizationMembership.
21159
+ */
21160
+ data: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
21161
+ }
21162
+
21163
+ /**
21164
+ * OrganizationMembership createMany
21165
+ */
21166
+ export type OrganizationMembershipCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21167
+ /**
21168
+ * The data used to create many OrganizationMemberships.
21169
+ */
21170
+ data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
21171
+ }
21172
+
21173
+ /**
21174
+ * OrganizationMembership update
21175
+ */
21176
+ export type OrganizationMembershipUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21177
+ /**
21178
+ * Select specific fields to fetch from the OrganizationMembership
21179
+ */
21180
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21181
+ /**
21182
+ * Omit specific fields from the OrganizationMembership
21183
+ */
21184
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21185
+ /**
21186
+ * Choose, which related nodes to fetch as well
21187
+ */
21188
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21189
+ /**
21190
+ * The data needed to update a OrganizationMembership.
21191
+ */
21192
+ data: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
21193
+ /**
21194
+ * Choose, which OrganizationMembership to update.
21195
+ */
21196
+ where: OrganizationMembershipWhereUniqueInput
21197
+ }
21198
+
21199
+ /**
21200
+ * OrganizationMembership updateMany
21201
+ */
21202
+ export type OrganizationMembershipUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21203
+ /**
21204
+ * The data used to update OrganizationMemberships.
21205
+ */
21206
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
21207
+ /**
21208
+ * Filter which OrganizationMemberships to update
21209
+ */
21210
+ where?: OrganizationMembershipWhereInput
21211
+ /**
21212
+ * Limit how many OrganizationMemberships to update.
21213
+ */
21214
+ limit?: number
21215
+ }
21216
+
21217
+ /**
21218
+ * OrganizationMembership upsert
21219
+ */
21220
+ export type OrganizationMembershipUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21221
+ /**
21222
+ * Select specific fields to fetch from the OrganizationMembership
21223
+ */
21224
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21225
+ /**
21226
+ * Omit specific fields from the OrganizationMembership
21227
+ */
21228
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21229
+ /**
21230
+ * Choose, which related nodes to fetch as well
21231
+ */
21232
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21233
+ /**
21234
+ * The filter to search for the OrganizationMembership to update in case it exists.
21235
+ */
21236
+ where: OrganizationMembershipWhereUniqueInput
21237
+ /**
21238
+ * In case the OrganizationMembership found by the `where` argument doesn't exist, create a new OrganizationMembership with this data.
21239
+ */
21240
+ create: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
21241
+ /**
21242
+ * In case the OrganizationMembership was found with the provided `where` argument, update it with this data.
21243
+ */
21244
+ update: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
21245
+ }
21246
+
21247
+ /**
21248
+ * OrganizationMembership delete
21249
+ */
21250
+ export type OrganizationMembershipDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21251
+ /**
21252
+ * Select specific fields to fetch from the OrganizationMembership
21253
+ */
21254
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21255
+ /**
21256
+ * Omit specific fields from the OrganizationMembership
21257
+ */
21258
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21259
+ /**
21260
+ * Choose, which related nodes to fetch as well
21261
+ */
21262
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21263
+ /**
21264
+ * Filter which OrganizationMembership to delete.
21265
+ */
21266
+ where: OrganizationMembershipWhereUniqueInput
21267
+ }
21268
+
21269
+ /**
21270
+ * OrganizationMembership deleteMany
21271
+ */
21272
+ export type OrganizationMembershipDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21273
+ /**
21274
+ * Filter which OrganizationMemberships to delete
21275
+ */
21276
+ where?: OrganizationMembershipWhereInput
21277
+ /**
21278
+ * Limit how many OrganizationMemberships to delete.
21279
+ */
21280
+ limit?: number
21281
+ }
21282
+
21283
+ /**
21284
+ * OrganizationMembership findRaw
21285
+ */
21286
+ export type OrganizationMembershipFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21287
+ /**
21288
+ * The query predicate filter. If unspecified, then all documents in the collection will match the predicate. ${@link https://docs.mongodb.com/manual/reference/operator/query MongoDB Docs}.
21289
+ */
21290
+ filter?: InputJsonValue
21291
+ /**
21292
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
21293
+ */
21294
+ options?: InputJsonValue
21295
+ }
21296
+
21297
+ /**
21298
+ * OrganizationMembership aggregateRaw
21299
+ */
21300
+ export type OrganizationMembershipAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21301
+ /**
21302
+ * An array of aggregation stages to process and transform the document stream via the aggregation pipeline. ${@link https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline MongoDB Docs}.
21303
+ */
21304
+ pipeline?: InputJsonValue[]
21305
+ /**
21306
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
21307
+ */
21308
+ options?: InputJsonValue
21309
+ }
21310
+
21311
+ /**
21312
+ * OrganizationMembership without action
21313
+ */
21314
+ export type OrganizationMembershipDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21315
+ /**
21316
+ * Select specific fields to fetch from the OrganizationMembership
21317
+ */
21318
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21319
+ /**
21320
+ * Omit specific fields from the OrganizationMembership
21321
+ */
21322
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21323
+ /**
21324
+ * Choose, which related nodes to fetch as well
21325
+ */
21326
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21327
+ }
21328
+
21329
+
21330
+ /**
21331
+ * Enums
21332
+ */
21333
+
21334
+ export const UserScalarFieldEnum: {
21335
+ id: 'id',
21336
+ type: 'type',
21337
+ createdAt: 'createdAt',
21338
+ updatedAt: 'updatedAt',
21339
+ email: 'email',
21340
+ username: 'username',
21341
+ hashword: 'hashword',
21342
+ appUserId: 'appUserId',
21343
+ organizationId: 'organizationId',
21344
+ appOrgId: 'appOrgId',
21345
+ name: 'name'
21346
+ };
21347
+
21348
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
21349
+
21350
+
21351
+ export const TokenScalarFieldEnum: {
21352
+ id: 'id',
21353
+ token: 'token',
21354
+ created: 'created',
21355
+ expires: 'expires',
21356
+ userId: 'userId'
21357
+ };
21358
+
21359
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
21360
+
21361
+
21362
+ export const CredentialScalarFieldEnum: {
21363
+ id: 'id',
21364
+ userId: 'userId',
21365
+ authIsValid: 'authIsValid',
21366
+ externalId: 'externalId',
21367
+ data: 'data',
21368
+ createdAt: 'createdAt',
21369
+ updatedAt: 'updatedAt'
21370
+ };
21371
+
21372
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
21373
+
21374
+
21375
+ export const EntityScalarFieldEnum: {
21376
+ id: 'id',
21377
+ credentialId: 'credentialId',
21378
+ userId: 'userId',
21379
+ name: 'name',
21380
+ moduleName: 'moduleName',
21381
+ externalId: 'externalId',
21382
+ data: 'data',
21383
+ createdAt: 'createdAt',
21384
+ updatedAt: 'updatedAt',
21385
+ integrationIds: 'integrationIds',
21386
+ syncIds: 'syncIds'
21387
+ };
21388
+
21389
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
21390
+
21391
+
21392
+ export const IntegrationScalarFieldEnum: {
21393
+ id: 'id',
21394
+ userId: 'userId',
21395
+ status: 'status',
21396
+ config: 'config',
21397
+ version: 'version',
21398
+ entityIds: 'entityIds',
21399
+ errors: 'errors',
21400
+ warnings: 'warnings',
21401
+ info: 'info',
21402
+ logs: 'logs',
21403
+ createdAt: 'createdAt',
21404
+ updatedAt: 'updatedAt'
21405
+ };
21406
+
21407
+ export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
21408
+
21409
+
21410
+ export const IntegrationMappingScalarFieldEnum: {
21411
+ id: 'id',
21412
+ integrationId: 'integrationId',
21413
+ sourceId: 'sourceId',
21414
+ mapping: 'mapping',
21415
+ createdAt: 'createdAt',
21416
+ updatedAt: 'updatedAt'
21417
+ };
21418
+
21419
+ export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
21420
+
21421
+
21422
+ export const ProcessScalarFieldEnum: {
21423
+ id: 'id',
21424
+ userId: 'userId',
21425
+ integrationId: 'integrationId',
21426
+ name: 'name',
21427
+ type: 'type',
21428
+ state: 'state',
21429
+ context: 'context',
21430
+ results: 'results',
21431
+ childProcesses: 'childProcesses',
21432
+ parentProcessId: 'parentProcessId',
21433
+ createdAt: 'createdAt',
21434
+ updatedAt: 'updatedAt'
21435
+ };
21436
+
21437
+ export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
21438
+
21439
+
21440
+ export const SyncScalarFieldEnum: {
21441
+ id: 'id',
21442
+ integrationId: 'integrationId',
21443
+ entityIds: 'entityIds',
21444
+ hash: 'hash',
21445
+ name: 'name'
20294
21446
  };
20295
21447
 
20296
21448
  export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
@@ -20411,6 +21563,17 @@ export namespace Prisma {
20411
21563
  export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
20412
21564
 
20413
21565
 
21566
+ export const OrganizationMembershipScalarFieldEnum: {
21567
+ id: 'id',
21568
+ individualUserId: 'individualUserId',
21569
+ organizationUserId: 'organizationUserId',
21570
+ orgRole: 'orgRole',
21571
+ createdAt: 'createdAt'
21572
+ };
21573
+
21574
+ export type OrganizationMembershipScalarFieldEnum = (typeof OrganizationMembershipScalarFieldEnum)[keyof typeof OrganizationMembershipScalarFieldEnum]
21575
+
21576
+
20414
21577
  export const SortOrder: {
20415
21578
  asc: 'asc',
20416
21579
  desc: 'desc'
@@ -20597,6 +21760,8 @@ export namespace Prisma {
20597
21760
  entities?: EntityListRelationFilter
20598
21761
  integrations?: IntegrationListRelationFilter
20599
21762
  processes?: ProcessListRelationFilter
21763
+ memberships?: OrganizationMembershipListRelationFilter
21764
+ orgMembers?: OrganizationMembershipListRelationFilter
20600
21765
  }
20601
21766
 
20602
21767
  export type UserOrderByWithRelationInput = {
@@ -20618,6 +21783,8 @@ export namespace Prisma {
20618
21783
  entities?: EntityOrderByRelationAggregateInput
20619
21784
  integrations?: IntegrationOrderByRelationAggregateInput
20620
21785
  processes?: ProcessOrderByRelationAggregateInput
21786
+ memberships?: OrganizationMembershipOrderByRelationAggregateInput
21787
+ orgMembers?: OrganizationMembershipOrderByRelationAggregateInput
20621
21788
  }
20622
21789
 
20623
21790
  export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -20643,6 +21810,8 @@ export namespace Prisma {
20643
21810
  entities?: EntityListRelationFilter
20644
21811
  integrations?: IntegrationListRelationFilter
20645
21812
  processes?: ProcessListRelationFilter
21813
+ memberships?: OrganizationMembershipListRelationFilter
21814
+ orgMembers?: OrganizationMembershipListRelationFilter
20646
21815
  }, "id" | "username_appUserId">
20647
21816
 
20648
21817
  export type UserOrderByWithAggregationInput = {
@@ -21793,6 +22962,65 @@ export namespace Prisma {
21793
22962
  updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
21794
22963
  }
21795
22964
 
22965
+ export type OrganizationMembershipWhereInput = {
22966
+ AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
22967
+ OR?: OrganizationMembershipWhereInput[]
22968
+ NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
22969
+ id?: StringFilter<"OrganizationMembership"> | string
22970
+ individualUserId?: StringFilter<"OrganizationMembership"> | string
22971
+ organizationUserId?: StringFilter<"OrganizationMembership"> | string
22972
+ orgRole?: StringFilter<"OrganizationMembership"> | string
22973
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
22974
+ individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
22975
+ organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
22976
+ }
22977
+
22978
+ export type OrganizationMembershipOrderByWithRelationInput = {
22979
+ id?: SortOrder
22980
+ individualUserId?: SortOrder
22981
+ organizationUserId?: SortOrder
22982
+ orgRole?: SortOrder
22983
+ createdAt?: SortOrder
22984
+ individualUser?: UserOrderByWithRelationInput
22985
+ organizationUser?: UserOrderByWithRelationInput
22986
+ }
22987
+
22988
+ export type OrganizationMembershipWhereUniqueInput = Prisma.AtLeast<{
22989
+ id?: string
22990
+ individualUserId_organizationUserId?: OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput
22991
+ AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
22992
+ OR?: OrganizationMembershipWhereInput[]
22993
+ NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
22994
+ individualUserId?: StringFilter<"OrganizationMembership"> | string
22995
+ organizationUserId?: StringFilter<"OrganizationMembership"> | string
22996
+ orgRole?: StringFilter<"OrganizationMembership"> | string
22997
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
22998
+ individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
22999
+ organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
23000
+ }, "id" | "individualUserId_organizationUserId">
23001
+
23002
+ export type OrganizationMembershipOrderByWithAggregationInput = {
23003
+ id?: SortOrder
23004
+ individualUserId?: SortOrder
23005
+ organizationUserId?: SortOrder
23006
+ orgRole?: SortOrder
23007
+ createdAt?: SortOrder
23008
+ _count?: OrganizationMembershipCountOrderByAggregateInput
23009
+ _max?: OrganizationMembershipMaxOrderByAggregateInput
23010
+ _min?: OrganizationMembershipMinOrderByAggregateInput
23011
+ }
23012
+
23013
+ export type OrganizationMembershipScalarWhereWithAggregatesInput = {
23014
+ AND?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
23015
+ OR?: OrganizationMembershipScalarWhereWithAggregatesInput[]
23016
+ NOT?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
23017
+ id?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23018
+ individualUserId?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23019
+ organizationUserId?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23020
+ orgRole?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23021
+ createdAt?: DateTimeWithAggregatesFilter<"OrganizationMembership"> | Date | string
23022
+ }
23023
+
21796
23024
  export type UserCreateInput = {
21797
23025
  id?: string
21798
23026
  type: $Enums.UserType
@@ -21811,6 +23039,8 @@ export namespace Prisma {
21811
23039
  entities?: EntityCreateNestedManyWithoutUserInput
21812
23040
  integrations?: IntegrationCreateNestedManyWithoutUserInput
21813
23041
  processes?: ProcessCreateNestedManyWithoutUserInput
23042
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
23043
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
21814
23044
  }
21815
23045
 
21816
23046
  export type UserUncheckedCreateInput = {
@@ -21831,6 +23061,8 @@ export namespace Prisma {
21831
23061
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
21832
23062
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
21833
23063
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
23064
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
23065
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
21834
23066
  }
21835
23067
 
21836
23068
  export type UserUpdateInput = {
@@ -21850,6 +23082,8 @@ export namespace Prisma {
21850
23082
  entities?: EntityUpdateManyWithoutUserNestedInput
21851
23083
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
21852
23084
  processes?: ProcessUpdateManyWithoutUserNestedInput
23085
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
23086
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
21853
23087
  }
21854
23088
 
21855
23089
  export type UserUncheckedUpdateInput = {
@@ -21869,6 +23103,8 @@ export namespace Prisma {
21869
23103
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
21870
23104
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
21871
23105
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
23106
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
23107
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
21872
23108
  }
21873
23109
 
21874
23110
  export type UserCreateManyInput = {
@@ -23041,6 +24277,56 @@ export namespace Prisma {
23041
24277
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23042
24278
  }
23043
24279
 
24280
+ export type OrganizationMembershipCreateInput = {
24281
+ id?: string
24282
+ orgRole?: string
24283
+ createdAt?: Date | string
24284
+ individualUser: UserCreateNestedOneWithoutMembershipsInput
24285
+ organizationUser: UserCreateNestedOneWithoutOrgMembersInput
24286
+ }
24287
+
24288
+ export type OrganizationMembershipUncheckedCreateInput = {
24289
+ id?: string
24290
+ individualUserId: string
24291
+ organizationUserId: string
24292
+ orgRole?: string
24293
+ createdAt?: Date | string
24294
+ }
24295
+
24296
+ export type OrganizationMembershipUpdateInput = {
24297
+ orgRole?: StringFieldUpdateOperationsInput | string
24298
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24299
+ individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
24300
+ organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
24301
+ }
24302
+
24303
+ export type OrganizationMembershipUncheckedUpdateInput = {
24304
+ individualUserId?: StringFieldUpdateOperationsInput | string
24305
+ organizationUserId?: StringFieldUpdateOperationsInput | string
24306
+ orgRole?: StringFieldUpdateOperationsInput | string
24307
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24308
+ }
24309
+
24310
+ export type OrganizationMembershipCreateManyInput = {
24311
+ id?: string
24312
+ individualUserId: string
24313
+ organizationUserId: string
24314
+ orgRole?: string
24315
+ createdAt?: Date | string
24316
+ }
24317
+
24318
+ export type OrganizationMembershipUpdateManyMutationInput = {
24319
+ orgRole?: StringFieldUpdateOperationsInput | string
24320
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24321
+ }
24322
+
24323
+ export type OrganizationMembershipUncheckedUpdateManyInput = {
24324
+ individualUserId?: StringFieldUpdateOperationsInput | string
24325
+ organizationUserId?: StringFieldUpdateOperationsInput | string
24326
+ orgRole?: StringFieldUpdateOperationsInput | string
24327
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24328
+ }
24329
+
23044
24330
  export type StringFilter<$PrismaModel = never> = {
23045
24331
  equals?: string | StringFieldRefInput<$PrismaModel>
23046
24332
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -23131,6 +24417,12 @@ export namespace Prisma {
23131
24417
  none?: ProcessWhereInput
23132
24418
  }
23133
24419
 
24420
+ export type OrganizationMembershipListRelationFilter = {
24421
+ every?: OrganizationMembershipWhereInput
24422
+ some?: OrganizationMembershipWhereInput
24423
+ none?: OrganizationMembershipWhereInput
24424
+ }
24425
+
23134
24426
  export type UserOrderByRelationAggregateInput = {
23135
24427
  _count?: SortOrder
23136
24428
  }
@@ -23155,6 +24447,10 @@ export namespace Prisma {
23155
24447
  _count?: SortOrder
23156
24448
  }
23157
24449
 
24450
+ export type OrganizationMembershipOrderByRelationAggregateInput = {
24451
+ _count?: SortOrder
24452
+ }
24453
+
23158
24454
  export type UserUsernameAppUserIdCompoundUniqueInput = {
23159
24455
  username: string
23160
24456
  appUserId: string
@@ -24055,6 +25351,35 @@ export namespace Prisma {
24055
25351
  _max?: NestedIntFilter<$PrismaModel>
24056
25352
  }
24057
25353
 
25354
+ export type OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput = {
25355
+ individualUserId: string
25356
+ organizationUserId: string
25357
+ }
25358
+
25359
+ export type OrganizationMembershipCountOrderByAggregateInput = {
25360
+ id?: SortOrder
25361
+ individualUserId?: SortOrder
25362
+ organizationUserId?: SortOrder
25363
+ orgRole?: SortOrder
25364
+ createdAt?: SortOrder
25365
+ }
25366
+
25367
+ export type OrganizationMembershipMaxOrderByAggregateInput = {
25368
+ id?: SortOrder
25369
+ individualUserId?: SortOrder
25370
+ organizationUserId?: SortOrder
25371
+ orgRole?: SortOrder
25372
+ createdAt?: SortOrder
25373
+ }
25374
+
25375
+ export type OrganizationMembershipMinOrderByAggregateInput = {
25376
+ id?: SortOrder
25377
+ individualUserId?: SortOrder
25378
+ organizationUserId?: SortOrder
25379
+ orgRole?: SortOrder
25380
+ createdAt?: SortOrder
25381
+ }
25382
+
24058
25383
  export type UserCreateNestedOneWithoutMembersInput = {
24059
25384
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
24060
25385
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -24103,6 +25428,20 @@ export namespace Prisma {
24103
25428
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
24104
25429
  }
24105
25430
 
25431
+ export type OrganizationMembershipCreateNestedManyWithoutIndividualUserInput = {
25432
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25433
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25434
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25435
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25436
+ }
25437
+
25438
+ export type OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput = {
25439
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25440
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25441
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25442
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25443
+ }
25444
+
24106
25445
  export type UserUncheckedCreateNestedManyWithoutOrganizationInput = {
24107
25446
  create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
24108
25447
  connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
@@ -24145,6 +25484,20 @@ export namespace Prisma {
24145
25484
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
24146
25485
  }
24147
25486
 
25487
+ export type OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput = {
25488
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25489
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25490
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25491
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25492
+ }
25493
+
25494
+ export type OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput = {
25495
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25496
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25497
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25498
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25499
+ }
25500
+
24148
25501
  export type EnumUserTypeFieldUpdateOperationsInput = {
24149
25502
  set?: $Enums.UserType
24150
25503
  }
@@ -24252,6 +25605,34 @@ export namespace Prisma {
24252
25605
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
24253
25606
  }
24254
25607
 
25608
+ export type OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput = {
25609
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25610
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25611
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
25612
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25613
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25614
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25615
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25616
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25617
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
25618
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
25619
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25620
+ }
25621
+
25622
+ export type OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput = {
25623
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25624
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25625
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
25626
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25627
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25628
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25629
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25630
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25631
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
25632
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
25633
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25634
+ }
25635
+
24255
25636
  export type UserUncheckedUpdateManyWithoutOrganizationNestedInput = {
24256
25637
  create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
24257
25638
  connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
@@ -24336,6 +25717,34 @@ export namespace Prisma {
24336
25717
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
24337
25718
  }
24338
25719
 
25720
+ export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput = {
25721
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25722
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25723
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
25724
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25725
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25726
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25727
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25728
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25729
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
25730
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
25731
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25732
+ }
25733
+
25734
+ export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput = {
25735
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25736
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25737
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
25738
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25739
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25740
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25741
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25742
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25743
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
25744
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
25745
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25746
+ }
25747
+
24339
25748
  export type UserCreateNestedOneWithoutTokensInput = {
24340
25749
  create?: XOR<UserCreateWithoutTokensInput, UserUncheckedCreateWithoutTokensInput>
24341
25750
  connectOrCreate?: UserCreateOrConnectWithoutTokensInput
@@ -25174,6 +26583,34 @@ export namespace Prisma {
25174
26583
  divide?: number
25175
26584
  }
25176
26585
 
26586
+ export type UserCreateNestedOneWithoutMembershipsInput = {
26587
+ create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
26588
+ connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
26589
+ connect?: UserWhereUniqueInput
26590
+ }
26591
+
26592
+ export type UserCreateNestedOneWithoutOrgMembersInput = {
26593
+ create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
26594
+ connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
26595
+ connect?: UserWhereUniqueInput
26596
+ }
26597
+
26598
+ export type UserUpdateOneRequiredWithoutMembershipsNestedInput = {
26599
+ create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
26600
+ connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
26601
+ upsert?: UserUpsertWithoutMembershipsInput
26602
+ connect?: UserWhereUniqueInput
26603
+ update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMembershipsInput, UserUpdateWithoutMembershipsInput>, UserUncheckedUpdateWithoutMembershipsInput>
26604
+ }
26605
+
26606
+ export type UserUpdateOneRequiredWithoutOrgMembersNestedInput = {
26607
+ create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
26608
+ connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
26609
+ upsert?: UserUpsertWithoutOrgMembersInput
26610
+ connect?: UserWhereUniqueInput
26611
+ update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOrgMembersInput, UserUpdateWithoutOrgMembersInput>, UserUncheckedUpdateWithoutOrgMembersInput>
26612
+ }
26613
+
25177
26614
  export type NestedStringFilter<$PrismaModel = never> = {
25178
26615
  equals?: string | StringFieldRefInput<$PrismaModel>
25179
26616
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -25503,6 +26940,8 @@ export namespace Prisma {
25503
26940
  entities?: EntityCreateNestedManyWithoutUserInput
25504
26941
  integrations?: IntegrationCreateNestedManyWithoutUserInput
25505
26942
  processes?: ProcessCreateNestedManyWithoutUserInput
26943
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
26944
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
25506
26945
  }
25507
26946
 
25508
26947
  export type UserUncheckedCreateWithoutMembersInput = {
@@ -25522,6 +26961,8 @@ export namespace Prisma {
25522
26961
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
25523
26962
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
25524
26963
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
26964
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
26965
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
25525
26966
  }
25526
26967
 
25527
26968
  export type UserCreateOrConnectWithoutMembersInput = {
@@ -25546,6 +26987,8 @@ export namespace Prisma {
25546
26987
  entities?: EntityCreateNestedManyWithoutUserInput
25547
26988
  integrations?: IntegrationCreateNestedManyWithoutUserInput
25548
26989
  processes?: ProcessCreateNestedManyWithoutUserInput
26990
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
26991
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
25549
26992
  }
25550
26993
 
25551
26994
  export type UserUncheckedCreateWithoutOrganizationInput = {
@@ -25565,6 +27008,8 @@ export namespace Prisma {
25565
27008
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
25566
27009
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
25567
27010
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27011
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27012
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
25568
27013
  }
25569
27014
 
25570
27015
  export type UserCreateOrConnectWithoutOrganizationInput = {
@@ -25752,6 +27197,52 @@ export namespace Prisma {
25752
27197
  data: ProcessCreateManyUserInput | ProcessCreateManyUserInput[]
25753
27198
  }
25754
27199
 
27200
+ export type OrganizationMembershipCreateWithoutIndividualUserInput = {
27201
+ id?: string
27202
+ orgRole?: string
27203
+ createdAt?: Date | string
27204
+ organizationUser: UserCreateNestedOneWithoutOrgMembersInput
27205
+ }
27206
+
27207
+ export type OrganizationMembershipUncheckedCreateWithoutIndividualUserInput = {
27208
+ id?: string
27209
+ organizationUserId: string
27210
+ orgRole?: string
27211
+ createdAt?: Date | string
27212
+ }
27213
+
27214
+ export type OrganizationMembershipCreateOrConnectWithoutIndividualUserInput = {
27215
+ where: OrganizationMembershipWhereUniqueInput
27216
+ create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
27217
+ }
27218
+
27219
+ export type OrganizationMembershipCreateManyIndividualUserInputEnvelope = {
27220
+ data: OrganizationMembershipCreateManyIndividualUserInput | OrganizationMembershipCreateManyIndividualUserInput[]
27221
+ }
27222
+
27223
+ export type OrganizationMembershipCreateWithoutOrganizationUserInput = {
27224
+ id?: string
27225
+ orgRole?: string
27226
+ createdAt?: Date | string
27227
+ individualUser: UserCreateNestedOneWithoutMembershipsInput
27228
+ }
27229
+
27230
+ export type OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput = {
27231
+ id?: string
27232
+ individualUserId: string
27233
+ orgRole?: string
27234
+ createdAt?: Date | string
27235
+ }
27236
+
27237
+ export type OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput = {
27238
+ where: OrganizationMembershipWhereUniqueInput
27239
+ create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
27240
+ }
27241
+
27242
+ export type OrganizationMembershipCreateManyOrganizationUserInputEnvelope = {
27243
+ data: OrganizationMembershipCreateManyOrganizationUserInput | OrganizationMembershipCreateManyOrganizationUserInput[]
27244
+ }
27245
+
25755
27246
  export type UserUpsertWithoutMembersInput = {
25756
27247
  update: XOR<UserUpdateWithoutMembersInput, UserUncheckedUpdateWithoutMembersInput>
25757
27248
  create: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
@@ -25779,6 +27270,8 @@ export namespace Prisma {
25779
27270
  entities?: EntityUpdateManyWithoutUserNestedInput
25780
27271
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
25781
27272
  processes?: ProcessUpdateManyWithoutUserNestedInput
27273
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
27274
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
25782
27275
  }
25783
27276
 
25784
27277
  export type UserUncheckedUpdateWithoutMembersInput = {
@@ -25797,6 +27290,8 @@ export namespace Prisma {
25797
27290
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
25798
27291
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
25799
27292
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
27293
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
27294
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
25800
27295
  }
25801
27296
 
25802
27297
  export type UserUpsertWithWhereUniqueWithoutOrganizationInput = {
@@ -25989,6 +27484,49 @@ export namespace Prisma {
25989
27484
  updatedAt?: DateTimeFilter<"Process"> | Date | string
25990
27485
  }
25991
27486
 
27487
+ export type OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput = {
27488
+ where: OrganizationMembershipWhereUniqueInput
27489
+ update: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
27490
+ create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
27491
+ }
27492
+
27493
+ export type OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput = {
27494
+ where: OrganizationMembershipWhereUniqueInput
27495
+ data: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
27496
+ }
27497
+
27498
+ export type OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput = {
27499
+ where: OrganizationMembershipScalarWhereInput
27500
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput>
27501
+ }
27502
+
27503
+ export type OrganizationMembershipScalarWhereInput = {
27504
+ AND?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
27505
+ OR?: OrganizationMembershipScalarWhereInput[]
27506
+ NOT?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
27507
+ id?: StringFilter<"OrganizationMembership"> | string
27508
+ individualUserId?: StringFilter<"OrganizationMembership"> | string
27509
+ organizationUserId?: StringFilter<"OrganizationMembership"> | string
27510
+ orgRole?: StringFilter<"OrganizationMembership"> | string
27511
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
27512
+ }
27513
+
27514
+ export type OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput = {
27515
+ where: OrganizationMembershipWhereUniqueInput
27516
+ update: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
27517
+ create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
27518
+ }
27519
+
27520
+ export type OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput = {
27521
+ where: OrganizationMembershipWhereUniqueInput
27522
+ data: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
27523
+ }
27524
+
27525
+ export type OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput = {
27526
+ where: OrganizationMembershipScalarWhereInput
27527
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput>
27528
+ }
27529
+
25992
27530
  export type UserCreateWithoutTokensInput = {
25993
27531
  id?: string
25994
27532
  type: $Enums.UserType
@@ -26006,6 +27544,8 @@ export namespace Prisma {
26006
27544
  entities?: EntityCreateNestedManyWithoutUserInput
26007
27545
  integrations?: IntegrationCreateNestedManyWithoutUserInput
26008
27546
  processes?: ProcessCreateNestedManyWithoutUserInput
27547
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27548
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
26009
27549
  }
26010
27550
 
26011
27551
  export type UserUncheckedCreateWithoutTokensInput = {
@@ -26025,6 +27565,8 @@ export namespace Prisma {
26025
27565
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
26026
27566
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
26027
27567
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27568
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27569
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
26028
27570
  }
26029
27571
 
26030
27572
  export type UserCreateOrConnectWithoutTokensInput = {
@@ -26059,6 +27601,8 @@ export namespace Prisma {
26059
27601
  entities?: EntityUpdateManyWithoutUserNestedInput
26060
27602
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
26061
27603
  processes?: ProcessUpdateManyWithoutUserNestedInput
27604
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
27605
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
26062
27606
  }
26063
27607
 
26064
27608
  export type UserUncheckedUpdateWithoutTokensInput = {
@@ -26077,6 +27621,8 @@ export namespace Prisma {
26077
27621
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
26078
27622
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
26079
27623
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
27624
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
27625
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
26080
27626
  }
26081
27627
 
26082
27628
  export type UserCreateWithoutCredentialsInput = {
@@ -26096,6 +27642,8 @@ export namespace Prisma {
26096
27642
  entities?: EntityCreateNestedManyWithoutUserInput
26097
27643
  integrations?: IntegrationCreateNestedManyWithoutUserInput
26098
27644
  processes?: ProcessCreateNestedManyWithoutUserInput
27645
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27646
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
26099
27647
  }
26100
27648
 
26101
27649
  export type UserUncheckedCreateWithoutCredentialsInput = {
@@ -26115,6 +27663,8 @@ export namespace Prisma {
26115
27663
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
26116
27664
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
26117
27665
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27666
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27667
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
26118
27668
  }
26119
27669
 
26120
27670
  export type UserCreateOrConnectWithoutCredentialsInput = {
@@ -26190,6 +27740,8 @@ export namespace Prisma {
26190
27740
  entities?: EntityUpdateManyWithoutUserNestedInput
26191
27741
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
26192
27742
  processes?: ProcessUpdateManyWithoutUserNestedInput
27743
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
27744
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
26193
27745
  }
26194
27746
 
26195
27747
  export type UserUncheckedUpdateWithoutCredentialsInput = {
@@ -26208,6 +27760,8 @@ export namespace Prisma {
26208
27760
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
26209
27761
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
26210
27762
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
27763
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
27764
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
26211
27765
  }
26212
27766
 
26213
27767
  export type EntityUpsertWithWhereUniqueWithoutCredentialInput = {
@@ -26268,6 +27822,8 @@ export namespace Prisma {
26268
27822
  credentials?: CredentialCreateNestedManyWithoutUserInput
26269
27823
  integrations?: IntegrationCreateNestedManyWithoutUserInput
26270
27824
  processes?: ProcessCreateNestedManyWithoutUserInput
27825
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27826
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
26271
27827
  }
26272
27828
 
26273
27829
  export type UserUncheckedCreateWithoutEntitiesInput = {
@@ -26287,6 +27843,8 @@ export namespace Prisma {
26287
27843
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
26288
27844
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
26289
27845
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27846
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27847
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
26290
27848
  }
26291
27849
 
26292
27850
  export type UserCreateOrConnectWithoutEntitiesInput = {
@@ -26462,6 +28020,8 @@ export namespace Prisma {
26462
28020
  credentials?: CredentialUpdateManyWithoutUserNestedInput
26463
28021
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
26464
28022
  processes?: ProcessUpdateManyWithoutUserNestedInput
28023
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
28024
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
26465
28025
  }
26466
28026
 
26467
28027
  export type UserUncheckedUpdateWithoutEntitiesInput = {
@@ -26480,6 +28040,8 @@ export namespace Prisma {
26480
28040
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
26481
28041
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
26482
28042
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
28043
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
28044
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
26483
28045
  }
26484
28046
 
26485
28047
  export type IntegrationUpsertWithWhereUniqueWithoutEntitiesInput = {
@@ -26597,6 +28159,8 @@ export namespace Prisma {
26597
28159
  credentials?: CredentialCreateNestedManyWithoutUserInput
26598
28160
  entities?: EntityCreateNestedManyWithoutUserInput
26599
28161
  processes?: ProcessCreateNestedManyWithoutUserInput
28162
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
28163
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
26600
28164
  }
26601
28165
 
26602
28166
  export type UserUncheckedCreateWithoutIntegrationsInput = {
@@ -26616,6 +28180,8 @@ export namespace Prisma {
26616
28180
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
26617
28181
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
26618
28182
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
28183
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
28184
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
26619
28185
  }
26620
28186
 
26621
28187
  export type UserCreateOrConnectWithoutIntegrationsInput = {
@@ -26800,6 +28366,8 @@ export namespace Prisma {
26800
28366
  credentials?: CredentialUpdateManyWithoutUserNestedInput
26801
28367
  entities?: EntityUpdateManyWithoutUserNestedInput
26802
28368
  processes?: ProcessUpdateManyWithoutUserNestedInput
28369
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
28370
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
26803
28371
  }
26804
28372
 
26805
28373
  export type UserUncheckedUpdateWithoutIntegrationsInput = {
@@ -26818,6 +28386,8 @@ export namespace Prisma {
26818
28386
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
26819
28387
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
26820
28388
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
28389
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
28390
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
26821
28391
  }
26822
28392
 
26823
28393
  export type EntityUpsertWithWhereUniqueWithoutIntegrationsInput = {
@@ -27028,6 +28598,8 @@ export namespace Prisma {
27028
28598
  credentials?: CredentialCreateNestedManyWithoutUserInput
27029
28599
  entities?: EntityCreateNestedManyWithoutUserInput
27030
28600
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28601
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
28602
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
27031
28603
  }
27032
28604
 
27033
28605
  export type UserUncheckedCreateWithoutProcessesInput = {
@@ -27047,6 +28619,8 @@ export namespace Prisma {
27047
28619
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
27048
28620
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
27049
28621
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28622
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
28623
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
27050
28624
  }
27051
28625
 
27052
28626
  export type UserCreateOrConnectWithoutProcessesInput = {
@@ -27123,6 +28697,8 @@ export namespace Prisma {
27123
28697
  credentials?: CredentialUpdateManyWithoutUserNestedInput
27124
28698
  entities?: EntityUpdateManyWithoutUserNestedInput
27125
28699
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
28700
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
28701
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
27126
28702
  }
27127
28703
 
27128
28704
  export type UserUncheckedUpdateWithoutProcessesInput = {
@@ -27141,6 +28717,8 @@ export namespace Prisma {
27141
28717
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
27142
28718
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
27143
28719
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
28720
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
28721
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
27144
28722
  }
27145
28723
 
27146
28724
  export type IntegrationUpsertWithoutProcessesInput = {
@@ -27748,6 +29326,202 @@ export namespace Prisma {
27748
29326
  dataIdentifiers?: DataIdentifierUncheckedUpdateManyWithoutEntityNestedInput
27749
29327
  }
27750
29328
 
29329
+ export type UserCreateWithoutMembershipsInput = {
29330
+ id?: string
29331
+ type: $Enums.UserType
29332
+ createdAt?: Date | string
29333
+ updatedAt?: Date | string
29334
+ email?: string | null
29335
+ username?: string | null
29336
+ hashword?: string | null
29337
+ appUserId?: string | null
29338
+ appOrgId?: string | null
29339
+ name?: string | null
29340
+ organization?: UserCreateNestedOneWithoutMembersInput
29341
+ members?: UserCreateNestedManyWithoutOrganizationInput
29342
+ tokens?: TokenCreateNestedManyWithoutUserInput
29343
+ credentials?: CredentialCreateNestedManyWithoutUserInput
29344
+ entities?: EntityCreateNestedManyWithoutUserInput
29345
+ integrations?: IntegrationCreateNestedManyWithoutUserInput
29346
+ processes?: ProcessCreateNestedManyWithoutUserInput
29347
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
29348
+ }
29349
+
29350
+ export type UserUncheckedCreateWithoutMembershipsInput = {
29351
+ id?: string
29352
+ type: $Enums.UserType
29353
+ createdAt?: Date | string
29354
+ updatedAt?: Date | string
29355
+ email?: string | null
29356
+ username?: string | null
29357
+ hashword?: string | null
29358
+ appUserId?: string | null
29359
+ organizationId?: string | null
29360
+ appOrgId?: string | null
29361
+ name?: string | null
29362
+ members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
29363
+ tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
29364
+ credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
29365
+ entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29366
+ integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
29367
+ processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
29368
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
29369
+ }
29370
+
29371
+ export type UserCreateOrConnectWithoutMembershipsInput = {
29372
+ where: UserWhereUniqueInput
29373
+ create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
29374
+ }
29375
+
29376
+ export type UserCreateWithoutOrgMembersInput = {
29377
+ id?: string
29378
+ type: $Enums.UserType
29379
+ createdAt?: Date | string
29380
+ updatedAt?: Date | string
29381
+ email?: string | null
29382
+ username?: string | null
29383
+ hashword?: string | null
29384
+ appUserId?: string | null
29385
+ appOrgId?: string | null
29386
+ name?: string | null
29387
+ organization?: UserCreateNestedOneWithoutMembersInput
29388
+ members?: UserCreateNestedManyWithoutOrganizationInput
29389
+ tokens?: TokenCreateNestedManyWithoutUserInput
29390
+ credentials?: CredentialCreateNestedManyWithoutUserInput
29391
+ entities?: EntityCreateNestedManyWithoutUserInput
29392
+ integrations?: IntegrationCreateNestedManyWithoutUserInput
29393
+ processes?: ProcessCreateNestedManyWithoutUserInput
29394
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
29395
+ }
29396
+
29397
+ export type UserUncheckedCreateWithoutOrgMembersInput = {
29398
+ id?: string
29399
+ type: $Enums.UserType
29400
+ createdAt?: Date | string
29401
+ updatedAt?: Date | string
29402
+ email?: string | null
29403
+ username?: string | null
29404
+ hashword?: string | null
29405
+ appUserId?: string | null
29406
+ organizationId?: string | null
29407
+ appOrgId?: string | null
29408
+ name?: string | null
29409
+ members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
29410
+ tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
29411
+ credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
29412
+ entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29413
+ integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
29414
+ processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
29415
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
29416
+ }
29417
+
29418
+ export type UserCreateOrConnectWithoutOrgMembersInput = {
29419
+ where: UserWhereUniqueInput
29420
+ create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
29421
+ }
29422
+
29423
+ export type UserUpsertWithoutMembershipsInput = {
29424
+ update: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
29425
+ create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
29426
+ where?: UserWhereInput
29427
+ }
29428
+
29429
+ export type UserUpdateToOneWithWhereWithoutMembershipsInput = {
29430
+ where?: UserWhereInput
29431
+ data: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
29432
+ }
29433
+
29434
+ export type UserUpdateWithoutMembershipsInput = {
29435
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29436
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29437
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29438
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29439
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29440
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29441
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29442
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29443
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29444
+ organization?: UserUpdateOneWithoutMembersNestedInput
29445
+ members?: UserUpdateManyWithoutOrganizationNestedInput
29446
+ tokens?: TokenUpdateManyWithoutUserNestedInput
29447
+ credentials?: CredentialUpdateManyWithoutUserNestedInput
29448
+ entities?: EntityUpdateManyWithoutUserNestedInput
29449
+ integrations?: IntegrationUpdateManyWithoutUserNestedInput
29450
+ processes?: ProcessUpdateManyWithoutUserNestedInput
29451
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
29452
+ }
29453
+
29454
+ export type UserUncheckedUpdateWithoutMembershipsInput = {
29455
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29456
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29457
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29458
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29459
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29460
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29461
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29462
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
29463
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29464
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29465
+ members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
29466
+ tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
29467
+ credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
29468
+ entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
29469
+ integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
29470
+ processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
29471
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
29472
+ }
29473
+
29474
+ export type UserUpsertWithoutOrgMembersInput = {
29475
+ update: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
29476
+ create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
29477
+ where?: UserWhereInput
29478
+ }
29479
+
29480
+ export type UserUpdateToOneWithWhereWithoutOrgMembersInput = {
29481
+ where?: UserWhereInput
29482
+ data: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
29483
+ }
29484
+
29485
+ export type UserUpdateWithoutOrgMembersInput = {
29486
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29487
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29488
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29489
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29490
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29491
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29492
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29493
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29494
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29495
+ organization?: UserUpdateOneWithoutMembersNestedInput
29496
+ members?: UserUpdateManyWithoutOrganizationNestedInput
29497
+ tokens?: TokenUpdateManyWithoutUserNestedInput
29498
+ credentials?: CredentialUpdateManyWithoutUserNestedInput
29499
+ entities?: EntityUpdateManyWithoutUserNestedInput
29500
+ integrations?: IntegrationUpdateManyWithoutUserNestedInput
29501
+ processes?: ProcessUpdateManyWithoutUserNestedInput
29502
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
29503
+ }
29504
+
29505
+ export type UserUncheckedUpdateWithoutOrgMembersInput = {
29506
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29507
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29508
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29509
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29510
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29511
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29512
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29513
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
29514
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29515
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29516
+ members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
29517
+ tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
29518
+ credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
29519
+ entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
29520
+ integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
29521
+ processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
29522
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
29523
+ }
29524
+
27751
29525
  export type UserCreateManyOrganizationInput = {
27752
29526
  id?: string
27753
29527
  type: $Enums.UserType
@@ -27818,6 +29592,20 @@ export namespace Prisma {
27818
29592
  updatedAt?: Date | string
27819
29593
  }
27820
29594
 
29595
+ export type OrganizationMembershipCreateManyIndividualUserInput = {
29596
+ id?: string
29597
+ organizationUserId: string
29598
+ orgRole?: string
29599
+ createdAt?: Date | string
29600
+ }
29601
+
29602
+ export type OrganizationMembershipCreateManyOrganizationUserInput = {
29603
+ id?: string
29604
+ individualUserId: string
29605
+ orgRole?: string
29606
+ createdAt?: Date | string
29607
+ }
29608
+
27821
29609
  export type UserUpdateWithoutOrganizationInput = {
27822
29610
  type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
27823
29611
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -27834,6 +29622,8 @@ export namespace Prisma {
27834
29622
  entities?: EntityUpdateManyWithoutUserNestedInput
27835
29623
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
27836
29624
  processes?: ProcessUpdateManyWithoutUserNestedInput
29625
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
29626
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
27837
29627
  }
27838
29628
 
27839
29629
  export type UserUncheckedUpdateWithoutOrganizationInput = {
@@ -27852,6 +29642,8 @@ export namespace Prisma {
27852
29642
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
27853
29643
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
27854
29644
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
29645
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
29646
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
27855
29647
  }
27856
29648
 
27857
29649
  export type UserUncheckedUpdateManyWithoutOrganizationInput = {
@@ -28039,6 +29831,42 @@ export namespace Prisma {
28039
29831
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
28040
29832
  }
28041
29833
 
29834
+ export type OrganizationMembershipUpdateWithoutIndividualUserInput = {
29835
+ orgRole?: StringFieldUpdateOperationsInput | string
29836
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29837
+ organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
29838
+ }
29839
+
29840
+ export type OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput = {
29841
+ organizationUserId?: StringFieldUpdateOperationsInput | string
29842
+ orgRole?: StringFieldUpdateOperationsInput | string
29843
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29844
+ }
29845
+
29846
+ export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput = {
29847
+ organizationUserId?: StringFieldUpdateOperationsInput | string
29848
+ orgRole?: StringFieldUpdateOperationsInput | string
29849
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29850
+ }
29851
+
29852
+ export type OrganizationMembershipUpdateWithoutOrganizationUserInput = {
29853
+ orgRole?: StringFieldUpdateOperationsInput | string
29854
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29855
+ individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
29856
+ }
29857
+
29858
+ export type OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput = {
29859
+ individualUserId?: StringFieldUpdateOperationsInput | string
29860
+ orgRole?: StringFieldUpdateOperationsInput | string
29861
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29862
+ }
29863
+
29864
+ export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput = {
29865
+ individualUserId?: StringFieldUpdateOperationsInput | string
29866
+ orgRole?: StringFieldUpdateOperationsInput | string
29867
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29868
+ }
29869
+
28042
29870
  export type EntityCreateManyCredentialInput = {
28043
29871
  id?: string
28044
29872
  userId?: string | null