@friggframework/core 2.0.0--canary.710.7cfcf12.0 → 2.0.0--canary.682.451c957.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 (174) hide show
  1. package/CLAUDE.md +3 -41
  2. package/README.md +105 -0
  3. package/application/commands/README.md +11 -17
  4. package/application/commands/entity-commands.js +60 -18
  5. package/application/commands/integration-commands.js +20 -73
  6. package/application/commands/user-commands.js +17 -5
  7. package/application/index.js +6 -2
  8. package/credential/repositories/credential-repository-documentdb.js +34 -0
  9. package/credential/repositories/credential-repository-interface.js +15 -0
  10. package/credential/repositories/credential-repository-mongo.js +23 -0
  11. package/credential/repositories/credential-repository-postgres.js +28 -0
  12. package/credential/use-cases/credential-operations-for-user.js +117 -0
  13. package/credential/use-cases/reauthorize-credential-for-user.js +66 -0
  14. package/database/documentdb-encryption-service.js +33 -2
  15. package/database/documentdb-utils.js +2 -0
  16. package/database/encryption/README.md +3 -3
  17. package/database/encryption/encryption-schema-registry.js +42 -109
  18. package/database/encryption/field-encryption-service.js +16 -13
  19. package/database/organization-where.js +18 -0
  20. package/database/prisma.js +1 -10
  21. package/database/unique-violation.js +25 -0
  22. package/errors/index.js +0 -4
  23. package/generated/prisma-mongodb/edge.js +31 -4
  24. package/generated/prisma-mongodb/index-browser.js +28 -1
  25. package/generated/prisma-mongodb/index.d.ts +3451 -62
  26. package/generated/prisma-mongodb/index.js +31 -4
  27. package/generated/prisma-mongodb/package.json +1 -1
  28. package/generated/prisma-mongodb/schema.prisma +74 -0
  29. package/generated/prisma-mongodb/wasm.js +31 -4
  30. package/generated/prisma-postgresql/edge.js +31 -4
  31. package/generated/prisma-postgresql/index-browser.js +28 -1
  32. package/generated/prisma-postgresql/index.d.ts +3633 -53
  33. package/generated/prisma-postgresql/index.js +31 -4
  34. package/generated/prisma-postgresql/package.json +1 -1
  35. package/generated/prisma-postgresql/schema.prisma +70 -0
  36. package/generated/prisma-postgresql/wasm.js +31 -4
  37. package/handlers/WEBHOOKS.md +0 -29
  38. package/handlers/app-definition-loader.js +33 -8
  39. package/handlers/app-handler-helpers.js +25 -3
  40. package/handlers/backend-utils.js +31 -25
  41. package/handlers/middleware/admin-auth.js +14 -1
  42. package/handlers/routers/auth.js +11 -3
  43. package/handlers/routers/health.js +11 -4
  44. package/handlers/workers/integration-defined-workers.js +5 -2
  45. package/index.js +23 -2
  46. package/infrastructure/scheduler/eventbridge-scheduler-adapter.js +13 -67
  47. package/integrations/index.js +1 -0
  48. package/integrations/integration-base.js +0 -29
  49. package/integrations/integration-router.js +136 -98
  50. package/integrations/repositories/integration-mapping-repository-documentdb.js +0 -50
  51. package/integrations/repositories/integration-mapping-repository-interface.js +0 -15
  52. package/integrations/repositories/integration-mapping-repository-mongo.js +0 -29
  53. package/integrations/repositories/integration-mapping-repository-postgres.js +0 -30
  54. package/integrations/repositories/integration-mapping-repository.js +0 -29
  55. package/integrations/repositories/integration-not-found.js +14 -0
  56. package/integrations/repositories/integration-repository-documentdb.js +35 -35
  57. package/integrations/repositories/integration-repository-interface.js +17 -31
  58. package/integrations/repositories/integration-repository-mongo.js +60 -129
  59. package/integrations/repositories/integration-repository-postgres.js +62 -134
  60. package/integrations/repositories/process-repository-mongo.js +1 -1
  61. package/integrations/tests/doubles/test-integration-repository.js +12 -1
  62. package/integrations/use-cases/create-integration.js +72 -75
  63. package/integrations/use-cases/get-integrations-for-user.js +80 -40
  64. package/integrations/use-cases/index.js +5 -1
  65. package/integrations/use-cases/integration-operations-for-user.js +246 -0
  66. package/integrations/use-cases/resolve-integration-ownership.js +177 -0
  67. package/integrations/utils/map-integration-dto.js +47 -15
  68. package/jest-setup.js +2 -13
  69. package/jest-teardown.js +2 -5
  70. package/jest.config.js +0 -4
  71. package/management-api/create-management-api-router.js +49 -0
  72. package/management-api/error-response.js +116 -0
  73. package/management-api/management-api-config.js +85 -0
  74. package/management-api/meta-router.js +57 -0
  75. package/management-api/openapi/build-openapi.js +144 -0
  76. package/management-api/openapi/components.js +407 -0
  77. package/management-api/openapi/v1-operations.js +83 -0
  78. package/management-api/openapi/v2-operations.js +261 -0
  79. package/management-api/route-registry.js +294 -0
  80. package/management-api/test-support/http-client.js +39 -0
  81. package/management-api/use-cases/get-management-api-meta.js +57 -0
  82. package/management-api/v1-deprecation.js +120 -0
  83. package/management-api/v2/create-v2-router.js +85 -0
  84. package/management-api/v2/dependencies.js +279 -0
  85. package/management-api/v2/dto.js +143 -0
  86. package/management-api/v2/handlers/authorization.js +94 -0
  87. package/management-api/v2/handlers/credentials.js +29 -0
  88. package/management-api/v2/handlers/entities.js +77 -0
  89. package/management-api/v2/handlers/integrations.js +128 -0
  90. package/management-api/v2/handlers/proxy.js +34 -0
  91. package/management-api/v2/request.js +85 -0
  92. package/management-api/v2/test-support/fake-dependencies.js +103 -0
  93. package/modules/domain/authorization-session.js +144 -0
  94. package/modules/entity-scope.js +15 -0
  95. package/modules/entity-type-registry.js +311 -0
  96. package/modules/index.js +14 -0
  97. package/modules/proxy/proxy-errors.js +20 -0
  98. package/modules/proxy/proxy-path.js +179 -0
  99. package/modules/proxy/proxy-policy.js +248 -0
  100. package/modules/repositories/authorization-session-repository-documentdb.js +112 -0
  101. package/modules/repositories/authorization-session-repository-factory.js +31 -0
  102. package/modules/repositories/authorization-session-repository-interface.js +47 -0
  103. package/modules/repositories/authorization-session-repository-prisma.js +87 -0
  104. package/modules/repositories/module-repository-documentdb.js +48 -4
  105. package/modules/repositories/module-repository-interface.js +19 -2
  106. package/modules/repositories/module-repository-mongo.js +65 -73
  107. package/modules/repositories/module-repository-postgres.js +64 -73
  108. package/modules/requester/proxy-request.js +244 -0
  109. package/modules/requester/requester.js +27 -2
  110. package/modules/scope-config.js +155 -0
  111. package/modules/scope-policy.js +80 -0
  112. package/modules/scope-resolution.js +277 -0
  113. package/modules/scope-visibility.js +165 -0
  114. package/modules/tests/doubles/in-memory-authorization-session-repository.js +45 -0
  115. package/modules/tests/doubles/ownership-matching.js +18 -0
  116. package/modules/use-cases/authorize-entity-for-user.js +59 -0
  117. package/modules/use-cases/create-entity-from-credential.js +113 -0
  118. package/modules/use-cases/entity-operations-for-user.js +157 -0
  119. package/modules/use-cases/entity-types.js +139 -0
  120. package/modules/use-cases/execute-entity-proxy-request.js +254 -0
  121. package/modules/use-cases/get-authorization-requirements.js +100 -0
  122. package/modules/use-cases/get-entities-for-user.js +16 -5
  123. package/modules/use-cases/get-entity-module-for-user.js +106 -0
  124. package/modules/use-cases/get-entity-options-by-id.js +16 -8
  125. package/modules/use-cases/get-module.js +27 -11
  126. package/modules/use-cases/multi-step-authorization.js +326 -0
  127. package/modules/use-cases/process-authorization-callback.js +52 -18
  128. package/modules/use-cases/refresh-entity-options.js +16 -8
  129. package/modules/use-cases/test-module-auth.js +16 -8
  130. package/modules/utils/find-module-definition.js +23 -0
  131. package/modules/utils/map-module-dto.js +10 -6
  132. package/modules/utils/public-entity.js +59 -0
  133. package/package.json +6 -7
  134. package/prisma-mongodb/schema.prisma +74 -0
  135. package/prisma-postgresql/migrations/20261003000000_add_authorization_session/migration.sql +28 -0
  136. package/prisma-postgresql/migrations/20261015000000_add_organization_membership/migration.sql +26 -0
  137. package/prisma-postgresql/migrations/20261016000000_add_entity_integration_organization/migration.sql +25 -0
  138. package/prisma-postgresql/schema.prisma +70 -0
  139. package/queues/queuer-util.js +5 -6
  140. package/types/index.d.ts +2 -0
  141. package/types/modules/index.d.ts +155 -0
  142. package/types/user/index.d.ts +117 -0
  143. package/user/adopter-jwt-config.js +177 -0
  144. package/user/adopter-jwt-errors.js +59 -0
  145. package/user/adopter-token-verifier.js +122 -0
  146. package/user/app-user-helpers.js +97 -0
  147. package/user/create-user-authentication.js +64 -0
  148. package/user/membership.js +51 -0
  149. package/user/repositories/organization-membership-record.js +19 -0
  150. package/user/repositories/organization-membership-repository-documentdb.js +106 -0
  151. package/user/repositories/organization-membership-repository-factory.js +42 -0
  152. package/user/repositories/organization-membership-repository-interface.js +57 -0
  153. package/user/repositories/organization-membership-repository-mongo.js +13 -0
  154. package/user/repositories/organization-membership-repository-postgres.js +29 -0
  155. package/user/repositories/organization-membership-repository-prisma.js +81 -0
  156. package/user/repositories/user-repository-documentdb.js +27 -2
  157. package/user/repositories/user-repository-interface.js +18 -0
  158. package/user/repositories/user-repository-mongo.js +24 -0
  159. package/user/repositories/user-repository-postgres.js +18 -0
  160. package/user/tests/doubles/adopter-jwt-fixtures.js +220 -0
  161. package/user/tests/doubles/test-user-repository.js +1 -1
  162. package/user/use-cases/ensure-organization-membership.js +92 -0
  163. package/user/use-cases/find-individual-users-by-organization.js +54 -0
  164. package/user/use-cases/get-user-from-adopter-jwt.js +86 -125
  165. package/user/use-cases/get-user-from-bearer-token.js +2 -7
  166. package/user/use-cases/get-user-from-x-frigg-headers.js +83 -80
  167. package/user/user.js +27 -0
  168. package/database/encryption/ciphertext-format.js +0 -24
  169. package/errors/mapping-already-exists-error.js +0 -14
  170. package/integrations/use-cases/add-entities-to-integration.js +0 -92
  171. package/integrations/use-cases/remove-entities-from-integration.js +0 -70
  172. package/integrations/utils/assert-entity-ids-input.js +0 -42
  173. package/jest.db.config.js +0 -23
  174. package/modules/utils/to-credential-id.js +0 -14
@@ -103,6 +103,22 @@ export type ScriptSchedule = $Result.DefaultSelection<Prisma.$ScriptSchedulePayl
103
103
  * history survives integration deletion.
104
104
  */
105
105
  export type UsageCounter = $Result.DefaultSelection<Prisma.$UsageCounterPayload>
106
+ /**
107
+ * Model AuthorizationSession
108
+ * Multi-step authorization state for Management API v2 (/api/v2/authorize,
109
+ * /api/v2/credentials/:id/reauthorize). Short-lived: expired documents are
110
+ * removed opportunistically. stepData is encrypted at rest.
111
+ */
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>
106
122
 
107
123
  /**
108
124
  * Enums
@@ -409,6 +425,26 @@ export class PrismaClient<
409
425
  * ```
410
426
  */
411
427
  get usageCounter(): Prisma.UsageCounterDelegate<ExtArgs, ClientOptions>;
428
+
429
+ /**
430
+ * `prisma.authorizationSession`: Exposes CRUD operations for the **AuthorizationSession** model.
431
+ * Example usage:
432
+ * ```ts
433
+ * // Fetch zero or more AuthorizationSessions
434
+ * const authorizationSessions = await prisma.authorizationSession.findMany()
435
+ * ```
436
+ */
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>;
412
448
  }
413
449
 
414
450
  export namespace Prisma {
@@ -865,7 +901,9 @@ export namespace Prisma {
865
901
  WebsocketConnection: 'WebsocketConnection',
866
902
  AdminScriptExecution: 'AdminScriptExecution',
867
903
  ScriptSchedule: 'ScriptSchedule',
868
- UsageCounter: 'UsageCounter'
904
+ UsageCounter: 'UsageCounter',
905
+ AuthorizationSession: 'AuthorizationSession',
906
+ OrganizationMembership: 'OrganizationMembership'
869
907
  };
870
908
 
871
909
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -884,7 +922,7 @@ export namespace Prisma {
884
922
  omit: GlobalOmitOptions
885
923
  }
886
924
  meta: {
887
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter"
925
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession" | "organizationMembership"
888
926
  txIsolationLevel: never
889
927
  }
890
928
  model: {
@@ -2072,6 +2110,154 @@ export namespace Prisma {
2072
2110
  }
2073
2111
  }
2074
2112
  }
2113
+ AuthorizationSession: {
2114
+ payload: Prisma.$AuthorizationSessionPayload<ExtArgs>
2115
+ fields: Prisma.AuthorizationSessionFieldRefs
2116
+ operations: {
2117
+ findUnique: {
2118
+ args: Prisma.AuthorizationSessionFindUniqueArgs<ExtArgs>
2119
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload> | null
2120
+ }
2121
+ findUniqueOrThrow: {
2122
+ args: Prisma.AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs>
2123
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2124
+ }
2125
+ findFirst: {
2126
+ args: Prisma.AuthorizationSessionFindFirstArgs<ExtArgs>
2127
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload> | null
2128
+ }
2129
+ findFirstOrThrow: {
2130
+ args: Prisma.AuthorizationSessionFindFirstOrThrowArgs<ExtArgs>
2131
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2132
+ }
2133
+ findMany: {
2134
+ args: Prisma.AuthorizationSessionFindManyArgs<ExtArgs>
2135
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>[]
2136
+ }
2137
+ create: {
2138
+ args: Prisma.AuthorizationSessionCreateArgs<ExtArgs>
2139
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2140
+ }
2141
+ createMany: {
2142
+ args: Prisma.AuthorizationSessionCreateManyArgs<ExtArgs>
2143
+ result: BatchPayload
2144
+ }
2145
+ delete: {
2146
+ args: Prisma.AuthorizationSessionDeleteArgs<ExtArgs>
2147
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2148
+ }
2149
+ update: {
2150
+ args: Prisma.AuthorizationSessionUpdateArgs<ExtArgs>
2151
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2152
+ }
2153
+ deleteMany: {
2154
+ args: Prisma.AuthorizationSessionDeleteManyArgs<ExtArgs>
2155
+ result: BatchPayload
2156
+ }
2157
+ updateMany: {
2158
+ args: Prisma.AuthorizationSessionUpdateManyArgs<ExtArgs>
2159
+ result: BatchPayload
2160
+ }
2161
+ upsert: {
2162
+ args: Prisma.AuthorizationSessionUpsertArgs<ExtArgs>
2163
+ result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2164
+ }
2165
+ aggregate: {
2166
+ args: Prisma.AuthorizationSessionAggregateArgs<ExtArgs>
2167
+ result: $Utils.Optional<AggregateAuthorizationSession>
2168
+ }
2169
+ groupBy: {
2170
+ args: Prisma.AuthorizationSessionGroupByArgs<ExtArgs>
2171
+ result: $Utils.Optional<AuthorizationSessionGroupByOutputType>[]
2172
+ }
2173
+ findRaw: {
2174
+ args: Prisma.AuthorizationSessionFindRawArgs<ExtArgs>
2175
+ result: JsonObject
2176
+ }
2177
+ aggregateRaw: {
2178
+ args: Prisma.AuthorizationSessionAggregateRawArgs<ExtArgs>
2179
+ result: JsonObject
2180
+ }
2181
+ count: {
2182
+ args: Prisma.AuthorizationSessionCountArgs<ExtArgs>
2183
+ result: $Utils.Optional<AuthorizationSessionCountAggregateOutputType> | number
2184
+ }
2185
+ }
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
+ }
2075
2261
  }
2076
2262
  } & {
2077
2263
  other: {
@@ -2167,6 +2353,8 @@ export namespace Prisma {
2167
2353
  adminScriptExecution?: AdminScriptExecutionOmit
2168
2354
  scriptSchedule?: ScriptScheduleOmit
2169
2355
  usageCounter?: UsageCounterOmit
2356
+ authorizationSession?: AuthorizationSessionOmit
2357
+ organizationMembership?: OrganizationMembershipOmit
2170
2358
  }
2171
2359
 
2172
2360
  /* Types for Logging */
@@ -2253,6 +2441,8 @@ export namespace Prisma {
2253
2441
  entities: number
2254
2442
  integrations: number
2255
2443
  processes: number
2444
+ memberships: number
2445
+ orgMembers: number
2256
2446
  }
2257
2447
 
2258
2448
  export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
@@ -2262,6 +2452,8 @@ export namespace Prisma {
2262
2452
  entities?: boolean | UserCountOutputTypeCountEntitiesArgs
2263
2453
  integrations?: boolean | UserCountOutputTypeCountIntegrationsArgs
2264
2454
  processes?: boolean | UserCountOutputTypeCountProcessesArgs
2455
+ memberships?: boolean | UserCountOutputTypeCountMembershipsArgs
2456
+ orgMembers?: boolean | UserCountOutputTypeCountOrgMembersArgs
2265
2457
  }
2266
2458
 
2267
2459
  // Custom InputTypes
@@ -2317,6 +2509,20 @@ export namespace Prisma {
2317
2509
  where?: ProcessWhereInput
2318
2510
  }
2319
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
+
2320
2526
 
2321
2527
  /**
2322
2528
  * Count Type CredentialCountOutputType
@@ -2768,6 +2974,8 @@ export namespace Prisma {
2768
2974
  entities?: boolean | User$entitiesArgs<ExtArgs>
2769
2975
  integrations?: boolean | User$integrationsArgs<ExtArgs>
2770
2976
  processes?: boolean | User$processesArgs<ExtArgs>
2977
+ memberships?: boolean | User$membershipsArgs<ExtArgs>
2978
+ orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
2771
2979
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
2772
2980
  }, ExtArgs["result"]["user"]>
2773
2981
 
@@ -2796,6 +3004,8 @@ export namespace Prisma {
2796
3004
  entities?: boolean | User$entitiesArgs<ExtArgs>
2797
3005
  integrations?: boolean | User$integrationsArgs<ExtArgs>
2798
3006
  processes?: boolean | User$processesArgs<ExtArgs>
3007
+ memberships?: boolean | User$membershipsArgs<ExtArgs>
3008
+ orgMembers?: boolean | User$orgMembersArgs<ExtArgs>
2799
3009
  _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
2800
3010
  }
2801
3011
 
@@ -2809,6 +3019,8 @@ export namespace Prisma {
2809
3019
  entities: Prisma.$EntityPayload<ExtArgs>[]
2810
3020
  integrations: Prisma.$IntegrationPayload<ExtArgs>[]
2811
3021
  processes: Prisma.$ProcessPayload<ExtArgs>[]
3022
+ memberships: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
3023
+ orgMembers: Prisma.$OrganizationMembershipPayload<ExtArgs>[]
2812
3024
  }
2813
3025
  scalars: $Extensions.GetPayloadResult<{
2814
3026
  id: string
@@ -3192,6 +3404,8 @@ export namespace Prisma {
3192
3404
  entities<T extends User$entitiesArgs<ExtArgs> = {}>(args?: Subset<T, User$entitiesArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$EntityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3193
3405
  integrations<T extends User$integrationsArgs<ExtArgs> = {}>(args?: Subset<T, User$integrationsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IntegrationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
3194
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>
3195
3409
  /**
3196
3410
  * Attaches callbacks for the resolution and/or rejection of the Promise.
3197
3411
  * @param onfulfilled The callback to execute when the Promise is resolved.
@@ -3764,6 +3978,54 @@ export namespace Prisma {
3764
3978
  distinct?: ProcessScalarFieldEnum | ProcessScalarFieldEnum[]
3765
3979
  }
3766
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
+
3767
4029
  /**
3768
4030
  * User without action
3769
4031
  */
@@ -5825,6 +6087,7 @@ export namespace Prisma {
5825
6087
  name: string | null
5826
6088
  moduleName: string | null
5827
6089
  externalId: string | null
6090
+ organizationId: string | null
5828
6091
  createdAt: Date | null
5829
6092
  updatedAt: Date | null
5830
6093
  }
@@ -5836,6 +6099,7 @@ export namespace Prisma {
5836
6099
  name: string | null
5837
6100
  moduleName: string | null
5838
6101
  externalId: string | null
6102
+ organizationId: string | null
5839
6103
  createdAt: Date | null
5840
6104
  updatedAt: Date | null
5841
6105
  }
@@ -5847,6 +6111,7 @@ export namespace Prisma {
5847
6111
  name: number
5848
6112
  moduleName: number
5849
6113
  externalId: number
6114
+ organizationId: number
5850
6115
  data: number
5851
6116
  createdAt: number
5852
6117
  updatedAt: number
@@ -5863,6 +6128,7 @@ export namespace Prisma {
5863
6128
  name?: true
5864
6129
  moduleName?: true
5865
6130
  externalId?: true
6131
+ organizationId?: true
5866
6132
  createdAt?: true
5867
6133
  updatedAt?: true
5868
6134
  }
@@ -5874,6 +6140,7 @@ export namespace Prisma {
5874
6140
  name?: true
5875
6141
  moduleName?: true
5876
6142
  externalId?: true
6143
+ organizationId?: true
5877
6144
  createdAt?: true
5878
6145
  updatedAt?: true
5879
6146
  }
@@ -5885,6 +6152,7 @@ export namespace Prisma {
5885
6152
  name?: true
5886
6153
  moduleName?: true
5887
6154
  externalId?: true
6155
+ organizationId?: true
5888
6156
  data?: true
5889
6157
  createdAt?: true
5890
6158
  updatedAt?: true
@@ -5972,6 +6240,7 @@ export namespace Prisma {
5972
6240
  name: string | null
5973
6241
  moduleName: string | null
5974
6242
  externalId: string | null
6243
+ organizationId: string | null
5975
6244
  data: JsonValue
5976
6245
  createdAt: Date
5977
6246
  updatedAt: Date
@@ -6003,6 +6272,7 @@ export namespace Prisma {
6003
6272
  name?: boolean
6004
6273
  moduleName?: boolean
6005
6274
  externalId?: boolean
6275
+ organizationId?: boolean
6006
6276
  data?: boolean
6007
6277
  createdAt?: boolean
6008
6278
  updatedAt?: boolean
@@ -6026,6 +6296,7 @@ export namespace Prisma {
6026
6296
  name?: boolean
6027
6297
  moduleName?: boolean
6028
6298
  externalId?: boolean
6299
+ organizationId?: boolean
6029
6300
  data?: boolean
6030
6301
  createdAt?: boolean
6031
6302
  updatedAt?: boolean
@@ -6033,7 +6304,7 @@ export namespace Prisma {
6033
6304
  syncIds?: boolean
6034
6305
  }
6035
6306
 
6036
- export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "data" | "createdAt" | "updatedAt" | "integrationIds" | "syncIds", ExtArgs["result"]["entity"]>
6307
+ export type EntityOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "credentialId" | "userId" | "name" | "moduleName" | "externalId" | "organizationId" | "data" | "createdAt" | "updatedAt" | "integrationIds" | "syncIds", ExtArgs["result"]["entity"]>
6037
6308
  export type EntityInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
6038
6309
  credential?: boolean | Entity$credentialArgs<ExtArgs>
6039
6310
  user?: boolean | Entity$userArgs<ExtArgs>
@@ -6061,6 +6332,7 @@ export namespace Prisma {
6061
6332
  name: string | null
6062
6333
  moduleName: string | null
6063
6334
  externalId: string | null
6335
+ organizationId: string | null
6064
6336
  data: Prisma.JsonValue
6065
6337
  createdAt: Date
6066
6338
  updatedAt: Date
@@ -6470,6 +6742,7 @@ export namespace Prisma {
6470
6742
  readonly name: FieldRef<"Entity", 'String'>
6471
6743
  readonly moduleName: FieldRef<"Entity", 'String'>
6472
6744
  readonly externalId: FieldRef<"Entity", 'String'>
6745
+ readonly organizationId: FieldRef<"Entity", 'String'>
6473
6746
  readonly data: FieldRef<"Entity", 'Json'>
6474
6747
  readonly createdAt: FieldRef<"Entity", 'DateTime'>
6475
6748
  readonly updatedAt: FieldRef<"Entity", 'DateTime'>
@@ -7011,6 +7284,7 @@ export namespace Prisma {
7011
7284
  id: string | null
7012
7285
  userId: string | null
7013
7286
  status: $Enums.IntegrationStatus | null
7287
+ organizationId: string | null
7014
7288
  version: string | null
7015
7289
  createdAt: Date | null
7016
7290
  updatedAt: Date | null
@@ -7020,6 +7294,7 @@ export namespace Prisma {
7020
7294
  id: string | null
7021
7295
  userId: string | null
7022
7296
  status: $Enums.IntegrationStatus | null
7297
+ organizationId: string | null
7023
7298
  version: string | null
7024
7299
  createdAt: Date | null
7025
7300
  updatedAt: Date | null
@@ -7029,6 +7304,7 @@ export namespace Prisma {
7029
7304
  id: number
7030
7305
  userId: number
7031
7306
  status: number
7307
+ organizationId: number
7032
7308
  config: number
7033
7309
  version: number
7034
7310
  entityIds: number
@@ -7046,6 +7322,7 @@ export namespace Prisma {
7046
7322
  id?: true
7047
7323
  userId?: true
7048
7324
  status?: true
7325
+ organizationId?: true
7049
7326
  version?: true
7050
7327
  createdAt?: true
7051
7328
  updatedAt?: true
@@ -7055,6 +7332,7 @@ export namespace Prisma {
7055
7332
  id?: true
7056
7333
  userId?: true
7057
7334
  status?: true
7335
+ organizationId?: true
7058
7336
  version?: true
7059
7337
  createdAt?: true
7060
7338
  updatedAt?: true
@@ -7064,6 +7342,7 @@ export namespace Prisma {
7064
7342
  id?: true
7065
7343
  userId?: true
7066
7344
  status?: true
7345
+ organizationId?: true
7067
7346
  config?: true
7068
7347
  version?: true
7069
7348
  entityIds?: true
@@ -7152,6 +7431,7 @@ export namespace Prisma {
7152
7431
  id: string
7153
7432
  userId: string | null
7154
7433
  status: $Enums.IntegrationStatus
7434
+ organizationId: string | null
7155
7435
  config: JsonValue | null
7156
7436
  version: string | null
7157
7437
  entityIds: string[]
@@ -7184,6 +7464,7 @@ export namespace Prisma {
7184
7464
  id?: boolean
7185
7465
  userId?: boolean
7186
7466
  status?: boolean
7467
+ organizationId?: boolean
7187
7468
  config?: boolean
7188
7469
  version?: boolean
7189
7470
  entityIds?: boolean
@@ -7208,6 +7489,7 @@ export namespace Prisma {
7208
7489
  id?: boolean
7209
7490
  userId?: boolean
7210
7491
  status?: boolean
7492
+ organizationId?: boolean
7211
7493
  config?: boolean
7212
7494
  version?: boolean
7213
7495
  entityIds?: boolean
@@ -7219,7 +7501,7 @@ export namespace Prisma {
7219
7501
  updatedAt?: boolean
7220
7502
  }
7221
7503
 
7222
- export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "config" | "version" | "entityIds" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
7504
+ export type IntegrationOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "status" | "organizationId" | "config" | "version" | "entityIds" | "errors" | "warnings" | "info" | "logs" | "createdAt" | "updatedAt", ExtArgs["result"]["integration"]>
7223
7505
  export type IntegrationInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
7224
7506
  user?: boolean | Integration$userArgs<ExtArgs>
7225
7507
  entities?: boolean | Integration$entitiesArgs<ExtArgs>
@@ -7244,6 +7526,7 @@ export namespace Prisma {
7244
7526
  id: string
7245
7527
  userId: string | null
7246
7528
  status: $Enums.IntegrationStatus
7529
+ organizationId: string | null
7247
7530
  config: Prisma.JsonValue | null
7248
7531
  version: string | null
7249
7532
  entityIds: string[]
@@ -7654,6 +7937,7 @@ export namespace Prisma {
7654
7937
  readonly id: FieldRef<"Integration", 'String'>
7655
7938
  readonly userId: FieldRef<"Integration", 'String'>
7656
7939
  readonly status: FieldRef<"Integration", 'IntegrationStatus'>
7940
+ readonly organizationId: FieldRef<"Integration", 'String'>
7657
7941
  readonly config: FieldRef<"Integration", 'Json'>
7658
7942
  readonly version: FieldRef<"Integration", 'String'>
7659
7943
  readonly entityIds: FieldRef<"Integration", 'String[]'>
@@ -19040,77 +19324,2105 @@ export namespace Prisma {
19040
19324
 
19041
19325
 
19042
19326
  /**
19043
- * Enums
19327
+ * Model AuthorizationSession
19044
19328
  */
19045
19329
 
19046
- export const UserScalarFieldEnum: {
19047
- id: 'id',
19048
- type: 'type',
19049
- createdAt: 'createdAt',
19050
- updatedAt: 'updatedAt',
19051
- email: 'email',
19052
- username: 'username',
19053
- hashword: 'hashword',
19054
- appUserId: 'appUserId',
19055
- organizationId: 'organizationId',
19056
- appOrgId: 'appOrgId',
19057
- name: 'name'
19058
- };
19330
+ export type AggregateAuthorizationSession = {
19331
+ _count: AuthorizationSessionCountAggregateOutputType | null
19332
+ _avg: AuthorizationSessionAvgAggregateOutputType | null
19333
+ _sum: AuthorizationSessionSumAggregateOutputType | null
19334
+ _min: AuthorizationSessionMinAggregateOutputType | null
19335
+ _max: AuthorizationSessionMaxAggregateOutputType | null
19336
+ }
19059
19337
 
19060
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
19338
+ export type AuthorizationSessionAvgAggregateOutputType = {
19339
+ currentStep: number | null
19340
+ maxSteps: number | null
19341
+ }
19061
19342
 
19343
+ export type AuthorizationSessionSumAggregateOutputType = {
19344
+ currentStep: number | null
19345
+ maxSteps: number | null
19346
+ }
19062
19347
 
19063
- export const TokenScalarFieldEnum: {
19064
- id: 'id',
19065
- token: 'token',
19066
- created: 'created',
19067
- expires: 'expires',
19068
- userId: 'userId'
19069
- };
19348
+ export type AuthorizationSessionMinAggregateOutputType = {
19349
+ id: string | null
19350
+ sessionId: string | null
19351
+ userId: string | null
19352
+ entityType: string | null
19353
+ credentialId: string | null
19354
+ currentStep: number | null
19355
+ maxSteps: number | null
19356
+ expiresAt: Date | null
19357
+ completed: boolean | null
19358
+ createdAt: Date | null
19359
+ updatedAt: Date | null
19360
+ }
19070
19361
 
19071
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
19362
+ export type AuthorizationSessionMaxAggregateOutputType = {
19363
+ id: string | null
19364
+ sessionId: string | null
19365
+ userId: string | null
19366
+ entityType: string | null
19367
+ credentialId: string | null
19368
+ currentStep: number | null
19369
+ maxSteps: number | null
19370
+ expiresAt: Date | null
19371
+ completed: boolean | null
19372
+ createdAt: Date | null
19373
+ updatedAt: Date | null
19374
+ }
19072
19375
 
19376
+ export type AuthorizationSessionCountAggregateOutputType = {
19377
+ id: number
19378
+ sessionId: number
19379
+ userId: number
19380
+ entityType: number
19381
+ credentialId: number
19382
+ currentStep: number
19383
+ maxSteps: number
19384
+ stepData: number
19385
+ expiresAt: number
19386
+ completed: number
19387
+ createdAt: number
19388
+ updatedAt: number
19389
+ _all: number
19390
+ }
19073
19391
 
19074
- export const CredentialScalarFieldEnum: {
19075
- id: 'id',
19076
- userId: 'userId',
19077
- authIsValid: 'authIsValid',
19078
- externalId: 'externalId',
19079
- data: 'data',
19080
- createdAt: 'createdAt',
19081
- updatedAt: 'updatedAt'
19082
- };
19083
19392
 
19084
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
19393
+ export type AuthorizationSessionAvgAggregateInputType = {
19394
+ currentStep?: true
19395
+ maxSteps?: true
19396
+ }
19085
19397
 
19398
+ export type AuthorizationSessionSumAggregateInputType = {
19399
+ currentStep?: true
19400
+ maxSteps?: true
19401
+ }
19086
19402
 
19087
- export const EntityScalarFieldEnum: {
19088
- id: 'id',
19089
- credentialId: 'credentialId',
19090
- userId: 'userId',
19091
- name: 'name',
19092
- moduleName: 'moduleName',
19093
- externalId: 'externalId',
19094
- data: 'data',
19095
- createdAt: 'createdAt',
19096
- updatedAt: 'updatedAt',
19097
- integrationIds: 'integrationIds',
19098
- syncIds: 'syncIds'
19099
- };
19403
+ export type AuthorizationSessionMinAggregateInputType = {
19404
+ id?: true
19405
+ sessionId?: true
19406
+ userId?: true
19407
+ entityType?: true
19408
+ credentialId?: true
19409
+ currentStep?: true
19410
+ maxSteps?: true
19411
+ expiresAt?: true
19412
+ completed?: true
19413
+ createdAt?: true
19414
+ updatedAt?: true
19415
+ }
19100
19416
 
19101
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
19417
+ export type AuthorizationSessionMaxAggregateInputType = {
19418
+ id?: true
19419
+ sessionId?: true
19420
+ userId?: true
19421
+ entityType?: true
19422
+ credentialId?: true
19423
+ currentStep?: true
19424
+ maxSteps?: true
19425
+ expiresAt?: true
19426
+ completed?: true
19427
+ createdAt?: true
19428
+ updatedAt?: true
19429
+ }
19102
19430
 
19431
+ export type AuthorizationSessionCountAggregateInputType = {
19432
+ id?: true
19433
+ sessionId?: true
19434
+ userId?: true
19435
+ entityType?: true
19436
+ credentialId?: true
19437
+ currentStep?: true
19438
+ maxSteps?: true
19439
+ stepData?: true
19440
+ expiresAt?: true
19441
+ completed?: true
19442
+ createdAt?: true
19443
+ updatedAt?: true
19444
+ _all?: true
19445
+ }
19103
19446
 
19104
- export const IntegrationScalarFieldEnum: {
19105
- id: 'id',
19106
- userId: 'userId',
19107
- status: 'status',
19108
- config: 'config',
19109
- version: 'version',
19110
- entityIds: 'entityIds',
19111
- errors: 'errors',
19112
- warnings: 'warnings',
19113
- info: 'info',
19447
+ export type AuthorizationSessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19448
+ /**
19449
+ * Filter which AuthorizationSession to aggregate.
19450
+ */
19451
+ where?: AuthorizationSessionWhereInput
19452
+ /**
19453
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19454
+ *
19455
+ * Determine the order of AuthorizationSessions to fetch.
19456
+ */
19457
+ orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
19458
+ /**
19459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19460
+ *
19461
+ * Sets the start position
19462
+ */
19463
+ cursor?: AuthorizationSessionWhereUniqueInput
19464
+ /**
19465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19466
+ *
19467
+ * Take `±n` AuthorizationSessions from the position of the cursor.
19468
+ */
19469
+ take?: number
19470
+ /**
19471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19472
+ *
19473
+ * Skip the first `n` AuthorizationSessions.
19474
+ */
19475
+ skip?: number
19476
+ /**
19477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19478
+ *
19479
+ * Count returned AuthorizationSessions
19480
+ **/
19481
+ _count?: true | AuthorizationSessionCountAggregateInputType
19482
+ /**
19483
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19484
+ *
19485
+ * Select which fields to average
19486
+ **/
19487
+ _avg?: AuthorizationSessionAvgAggregateInputType
19488
+ /**
19489
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19490
+ *
19491
+ * Select which fields to sum
19492
+ **/
19493
+ _sum?: AuthorizationSessionSumAggregateInputType
19494
+ /**
19495
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19496
+ *
19497
+ * Select which fields to find the minimum value
19498
+ **/
19499
+ _min?: AuthorizationSessionMinAggregateInputType
19500
+ /**
19501
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19502
+ *
19503
+ * Select which fields to find the maximum value
19504
+ **/
19505
+ _max?: AuthorizationSessionMaxAggregateInputType
19506
+ }
19507
+
19508
+ export type GetAuthorizationSessionAggregateType<T extends AuthorizationSessionAggregateArgs> = {
19509
+ [P in keyof T & keyof AggregateAuthorizationSession]: P extends '_count' | 'count'
19510
+ ? T[P] extends true
19511
+ ? number
19512
+ : GetScalarType<T[P], AggregateAuthorizationSession[P]>
19513
+ : GetScalarType<T[P], AggregateAuthorizationSession[P]>
19514
+ }
19515
+
19516
+
19517
+
19518
+
19519
+ export type AuthorizationSessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19520
+ where?: AuthorizationSessionWhereInput
19521
+ orderBy?: AuthorizationSessionOrderByWithAggregationInput | AuthorizationSessionOrderByWithAggregationInput[]
19522
+ by: AuthorizationSessionScalarFieldEnum[] | AuthorizationSessionScalarFieldEnum
19523
+ having?: AuthorizationSessionScalarWhereWithAggregatesInput
19524
+ take?: number
19525
+ skip?: number
19526
+ _count?: AuthorizationSessionCountAggregateInputType | true
19527
+ _avg?: AuthorizationSessionAvgAggregateInputType
19528
+ _sum?: AuthorizationSessionSumAggregateInputType
19529
+ _min?: AuthorizationSessionMinAggregateInputType
19530
+ _max?: AuthorizationSessionMaxAggregateInputType
19531
+ }
19532
+
19533
+ export type AuthorizationSessionGroupByOutputType = {
19534
+ id: string
19535
+ sessionId: string
19536
+ userId: string
19537
+ entityType: string
19538
+ credentialId: string | null
19539
+ currentStep: number
19540
+ maxSteps: number
19541
+ stepData: JsonValue
19542
+ expiresAt: Date
19543
+ completed: boolean
19544
+ createdAt: Date
19545
+ updatedAt: Date
19546
+ _count: AuthorizationSessionCountAggregateOutputType | null
19547
+ _avg: AuthorizationSessionAvgAggregateOutputType | null
19548
+ _sum: AuthorizationSessionSumAggregateOutputType | null
19549
+ _min: AuthorizationSessionMinAggregateOutputType | null
19550
+ _max: AuthorizationSessionMaxAggregateOutputType | null
19551
+ }
19552
+
19553
+ type GetAuthorizationSessionGroupByPayload<T extends AuthorizationSessionGroupByArgs> = Prisma.PrismaPromise<
19554
+ Array<
19555
+ PickEnumerable<AuthorizationSessionGroupByOutputType, T['by']> &
19556
+ {
19557
+ [P in ((keyof T) & (keyof AuthorizationSessionGroupByOutputType))]: P extends '_count'
19558
+ ? T[P] extends boolean
19559
+ ? number
19560
+ : GetScalarType<T[P], AuthorizationSessionGroupByOutputType[P]>
19561
+ : GetScalarType<T[P], AuthorizationSessionGroupByOutputType[P]>
19562
+ }
19563
+ >
19564
+ >
19565
+
19566
+
19567
+ export type AuthorizationSessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19568
+ id?: boolean
19569
+ sessionId?: boolean
19570
+ userId?: boolean
19571
+ entityType?: boolean
19572
+ credentialId?: boolean
19573
+ currentStep?: boolean
19574
+ maxSteps?: boolean
19575
+ stepData?: boolean
19576
+ expiresAt?: boolean
19577
+ completed?: boolean
19578
+ createdAt?: boolean
19579
+ updatedAt?: boolean
19580
+ }, ExtArgs["result"]["authorizationSession"]>
19581
+
19582
+
19583
+
19584
+ export type AuthorizationSessionSelectScalar = {
19585
+ id?: boolean
19586
+ sessionId?: boolean
19587
+ userId?: boolean
19588
+ entityType?: boolean
19589
+ credentialId?: boolean
19590
+ currentStep?: boolean
19591
+ maxSteps?: boolean
19592
+ stepData?: boolean
19593
+ expiresAt?: boolean
19594
+ completed?: boolean
19595
+ createdAt?: boolean
19596
+ updatedAt?: boolean
19597
+ }
19598
+
19599
+ export type AuthorizationSessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sessionId" | "userId" | "entityType" | "credentialId" | "currentStep" | "maxSteps" | "stepData" | "expiresAt" | "completed" | "createdAt" | "updatedAt", ExtArgs["result"]["authorizationSession"]>
19600
+
19601
+ export type $AuthorizationSessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19602
+ name: "AuthorizationSession"
19603
+ objects: {}
19604
+ scalars: $Extensions.GetPayloadResult<{
19605
+ id: string
19606
+ sessionId: string
19607
+ userId: string
19608
+ entityType: string
19609
+ credentialId: string | null
19610
+ currentStep: number
19611
+ maxSteps: number
19612
+ stepData: Prisma.JsonValue
19613
+ expiresAt: Date
19614
+ completed: boolean
19615
+ createdAt: Date
19616
+ updatedAt: Date
19617
+ }, ExtArgs["result"]["authorizationSession"]>
19618
+ composites: {}
19619
+ }
19620
+
19621
+ type AuthorizationSessionGetPayload<S extends boolean | null | undefined | AuthorizationSessionDefaultArgs> = $Result.GetResult<Prisma.$AuthorizationSessionPayload, S>
19622
+
19623
+ type AuthorizationSessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
19624
+ Omit<AuthorizationSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
19625
+ select?: AuthorizationSessionCountAggregateInputType | true
19626
+ }
19627
+
19628
+ export interface AuthorizationSessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
19629
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuthorizationSession'], meta: { name: 'AuthorizationSession' } }
19630
+ /**
19631
+ * Find zero or one AuthorizationSession that matches the filter.
19632
+ * @param {AuthorizationSessionFindUniqueArgs} args - Arguments to find a AuthorizationSession
19633
+ * @example
19634
+ * // Get one AuthorizationSession
19635
+ * const authorizationSession = await prisma.authorizationSession.findUnique({
19636
+ * where: {
19637
+ * // ... provide filter here
19638
+ * }
19639
+ * })
19640
+ */
19641
+ findUnique<T extends AuthorizationSessionFindUniqueArgs>(args: SelectSubset<T, AuthorizationSessionFindUniqueArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19642
+
19643
+ /**
19644
+ * Find one AuthorizationSession that matches the filter or throw an error with `error.code='P2025'`
19645
+ * if no matches were found.
19646
+ * @param {AuthorizationSessionFindUniqueOrThrowArgs} args - Arguments to find a AuthorizationSession
19647
+ * @example
19648
+ * // Get one AuthorizationSession
19649
+ * const authorizationSession = await prisma.authorizationSession.findUniqueOrThrow({
19650
+ * where: {
19651
+ * // ... provide filter here
19652
+ * }
19653
+ * })
19654
+ */
19655
+ findUniqueOrThrow<T extends AuthorizationSessionFindUniqueOrThrowArgs>(args: SelectSubset<T, AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19656
+
19657
+ /**
19658
+ * Find the first AuthorizationSession that matches the filter.
19659
+ * Note, that providing `undefined` is treated as the value not being there.
19660
+ * Read more here: https://pris.ly/d/null-undefined
19661
+ * @param {AuthorizationSessionFindFirstArgs} args - Arguments to find a AuthorizationSession
19662
+ * @example
19663
+ * // Get one AuthorizationSession
19664
+ * const authorizationSession = await prisma.authorizationSession.findFirst({
19665
+ * where: {
19666
+ * // ... provide filter here
19667
+ * }
19668
+ * })
19669
+ */
19670
+ findFirst<T extends AuthorizationSessionFindFirstArgs>(args?: SelectSubset<T, AuthorizationSessionFindFirstArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19671
+
19672
+ /**
19673
+ * Find the first AuthorizationSession that matches the filter or
19674
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
19675
+ * Note, that providing `undefined` is treated as the value not being there.
19676
+ * Read more here: https://pris.ly/d/null-undefined
19677
+ * @param {AuthorizationSessionFindFirstOrThrowArgs} args - Arguments to find a AuthorizationSession
19678
+ * @example
19679
+ * // Get one AuthorizationSession
19680
+ * const authorizationSession = await prisma.authorizationSession.findFirstOrThrow({
19681
+ * where: {
19682
+ * // ... provide filter here
19683
+ * }
19684
+ * })
19685
+ */
19686
+ findFirstOrThrow<T extends AuthorizationSessionFindFirstOrThrowArgs>(args?: SelectSubset<T, AuthorizationSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19687
+
19688
+ /**
19689
+ * Find zero or more AuthorizationSessions that matches the filter.
19690
+ * Note, that providing `undefined` is treated as the value not being there.
19691
+ * Read more here: https://pris.ly/d/null-undefined
19692
+ * @param {AuthorizationSessionFindManyArgs} args - Arguments to filter and select certain fields only.
19693
+ * @example
19694
+ * // Get all AuthorizationSessions
19695
+ * const authorizationSessions = await prisma.authorizationSession.findMany()
19696
+ *
19697
+ * // Get first 10 AuthorizationSessions
19698
+ * const authorizationSessions = await prisma.authorizationSession.findMany({ take: 10 })
19699
+ *
19700
+ * // Only select the `id`
19701
+ * const authorizationSessionWithIdOnly = await prisma.authorizationSession.findMany({ select: { id: true } })
19702
+ *
19703
+ */
19704
+ findMany<T extends AuthorizationSessionFindManyArgs>(args?: SelectSubset<T, AuthorizationSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
19705
+
19706
+ /**
19707
+ * Create a AuthorizationSession.
19708
+ * @param {AuthorizationSessionCreateArgs} args - Arguments to create a AuthorizationSession.
19709
+ * @example
19710
+ * // Create one AuthorizationSession
19711
+ * const AuthorizationSession = await prisma.authorizationSession.create({
19712
+ * data: {
19713
+ * // ... data to create a AuthorizationSession
19714
+ * }
19715
+ * })
19716
+ *
19717
+ */
19718
+ create<T extends AuthorizationSessionCreateArgs>(args: SelectSubset<T, AuthorizationSessionCreateArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19719
+
19720
+ /**
19721
+ * Create many AuthorizationSessions.
19722
+ * @param {AuthorizationSessionCreateManyArgs} args - Arguments to create many AuthorizationSessions.
19723
+ * @example
19724
+ * // Create many AuthorizationSessions
19725
+ * const authorizationSession = await prisma.authorizationSession.createMany({
19726
+ * data: [
19727
+ * // ... provide data here
19728
+ * ]
19729
+ * })
19730
+ *
19731
+ */
19732
+ createMany<T extends AuthorizationSessionCreateManyArgs>(args?: SelectSubset<T, AuthorizationSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19733
+
19734
+ /**
19735
+ * Delete a AuthorizationSession.
19736
+ * @param {AuthorizationSessionDeleteArgs} args - Arguments to delete one AuthorizationSession.
19737
+ * @example
19738
+ * // Delete one AuthorizationSession
19739
+ * const AuthorizationSession = await prisma.authorizationSession.delete({
19740
+ * where: {
19741
+ * // ... filter to delete one AuthorizationSession
19742
+ * }
19743
+ * })
19744
+ *
19745
+ */
19746
+ delete<T extends AuthorizationSessionDeleteArgs>(args: SelectSubset<T, AuthorizationSessionDeleteArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19747
+
19748
+ /**
19749
+ * Update one AuthorizationSession.
19750
+ * @param {AuthorizationSessionUpdateArgs} args - Arguments to update one AuthorizationSession.
19751
+ * @example
19752
+ * // Update one AuthorizationSession
19753
+ * const authorizationSession = await prisma.authorizationSession.update({
19754
+ * where: {
19755
+ * // ... provide filter here
19756
+ * },
19757
+ * data: {
19758
+ * // ... provide data here
19759
+ * }
19760
+ * })
19761
+ *
19762
+ */
19763
+ update<T extends AuthorizationSessionUpdateArgs>(args: SelectSubset<T, AuthorizationSessionUpdateArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19764
+
19765
+ /**
19766
+ * Delete zero or more AuthorizationSessions.
19767
+ * @param {AuthorizationSessionDeleteManyArgs} args - Arguments to filter AuthorizationSessions to delete.
19768
+ * @example
19769
+ * // Delete a few AuthorizationSessions
19770
+ * const { count } = await prisma.authorizationSession.deleteMany({
19771
+ * where: {
19772
+ * // ... provide filter here
19773
+ * }
19774
+ * })
19775
+ *
19776
+ */
19777
+ deleteMany<T extends AuthorizationSessionDeleteManyArgs>(args?: SelectSubset<T, AuthorizationSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19778
+
19779
+ /**
19780
+ * Update zero or more AuthorizationSessions.
19781
+ * Note, that providing `undefined` is treated as the value not being there.
19782
+ * Read more here: https://pris.ly/d/null-undefined
19783
+ * @param {AuthorizationSessionUpdateManyArgs} args - Arguments to update one or more rows.
19784
+ * @example
19785
+ * // Update many AuthorizationSessions
19786
+ * const authorizationSession = await prisma.authorizationSession.updateMany({
19787
+ * where: {
19788
+ * // ... provide filter here
19789
+ * },
19790
+ * data: {
19791
+ * // ... provide data here
19792
+ * }
19793
+ * })
19794
+ *
19795
+ */
19796
+ updateMany<T extends AuthorizationSessionUpdateManyArgs>(args: SelectSubset<T, AuthorizationSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19797
+
19798
+ /**
19799
+ * Create or update one AuthorizationSession.
19800
+ * @param {AuthorizationSessionUpsertArgs} args - Arguments to update or create a AuthorizationSession.
19801
+ * @example
19802
+ * // Update or create a AuthorizationSession
19803
+ * const authorizationSession = await prisma.authorizationSession.upsert({
19804
+ * create: {
19805
+ * // ... data to create a AuthorizationSession
19806
+ * },
19807
+ * update: {
19808
+ * // ... in case it already exists, update
19809
+ * },
19810
+ * where: {
19811
+ * // ... the filter for the AuthorizationSession we want to update
19812
+ * }
19813
+ * })
19814
+ */
19815
+ upsert<T extends AuthorizationSessionUpsertArgs>(args: SelectSubset<T, AuthorizationSessionUpsertArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19816
+
19817
+ /**
19818
+ * Find zero or more AuthorizationSessions that matches the filter.
19819
+ * @param {AuthorizationSessionFindRawArgs} args - Select which filters you would like to apply.
19820
+ * @example
19821
+ * const authorizationSession = await prisma.authorizationSession.findRaw({
19822
+ * filter: { age: { $gt: 25 } }
19823
+ * })
19824
+ */
19825
+ findRaw(args?: AuthorizationSessionFindRawArgs): Prisma.PrismaPromise<JsonObject>
19826
+
19827
+ /**
19828
+ * Perform aggregation operations on a AuthorizationSession.
19829
+ * @param {AuthorizationSessionAggregateRawArgs} args - Select which aggregations you would like to apply.
19830
+ * @example
19831
+ * const authorizationSession = await prisma.authorizationSession.aggregateRaw({
19832
+ * pipeline: [
19833
+ * { $match: { status: "registered" } },
19834
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
19835
+ * ]
19836
+ * })
19837
+ */
19838
+ aggregateRaw(args?: AuthorizationSessionAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
19839
+
19840
+
19841
+ /**
19842
+ * Count the number of AuthorizationSessions.
19843
+ * Note, that providing `undefined` is treated as the value not being there.
19844
+ * Read more here: https://pris.ly/d/null-undefined
19845
+ * @param {AuthorizationSessionCountArgs} args - Arguments to filter AuthorizationSessions to count.
19846
+ * @example
19847
+ * // Count the number of AuthorizationSessions
19848
+ * const count = await prisma.authorizationSession.count({
19849
+ * where: {
19850
+ * // ... the filter for the AuthorizationSessions we want to count
19851
+ * }
19852
+ * })
19853
+ **/
19854
+ count<T extends AuthorizationSessionCountArgs>(
19855
+ args?: Subset<T, AuthorizationSessionCountArgs>,
19856
+ ): Prisma.PrismaPromise<
19857
+ T extends $Utils.Record<'select', any>
19858
+ ? T['select'] extends true
19859
+ ? number
19860
+ : GetScalarType<T['select'], AuthorizationSessionCountAggregateOutputType>
19861
+ : number
19862
+ >
19863
+
19864
+ /**
19865
+ * Allows you to perform aggregations operations on a AuthorizationSession.
19866
+ * Note, that providing `undefined` is treated as the value not being there.
19867
+ * Read more here: https://pris.ly/d/null-undefined
19868
+ * @param {AuthorizationSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
19869
+ * @example
19870
+ * // Ordered by age ascending
19871
+ * // Where email contains prisma.io
19872
+ * // Limited to the 10 users
19873
+ * const aggregations = await prisma.user.aggregate({
19874
+ * _avg: {
19875
+ * age: true,
19876
+ * },
19877
+ * where: {
19878
+ * email: {
19879
+ * contains: "prisma.io",
19880
+ * },
19881
+ * },
19882
+ * orderBy: {
19883
+ * age: "asc",
19884
+ * },
19885
+ * take: 10,
19886
+ * })
19887
+ **/
19888
+ aggregate<T extends AuthorizationSessionAggregateArgs>(args: Subset<T, AuthorizationSessionAggregateArgs>): Prisma.PrismaPromise<GetAuthorizationSessionAggregateType<T>>
19889
+
19890
+ /**
19891
+ * Group by AuthorizationSession.
19892
+ * Note, that providing `undefined` is treated as the value not being there.
19893
+ * Read more here: https://pris.ly/d/null-undefined
19894
+ * @param {AuthorizationSessionGroupByArgs} args - Group by arguments.
19895
+ * @example
19896
+ * // Group by city, order by createdAt, get count
19897
+ * const result = await prisma.user.groupBy({
19898
+ * by: ['city', 'createdAt'],
19899
+ * orderBy: {
19900
+ * createdAt: true
19901
+ * },
19902
+ * _count: {
19903
+ * _all: true
19904
+ * },
19905
+ * })
19906
+ *
19907
+ **/
19908
+ groupBy<
19909
+ T extends AuthorizationSessionGroupByArgs,
19910
+ HasSelectOrTake extends Or<
19911
+ Extends<'skip', Keys<T>>,
19912
+ Extends<'take', Keys<T>>
19913
+ >,
19914
+ OrderByArg extends True extends HasSelectOrTake
19915
+ ? { orderBy: AuthorizationSessionGroupByArgs['orderBy'] }
19916
+ : { orderBy?: AuthorizationSessionGroupByArgs['orderBy'] },
19917
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
19918
+ ByFields extends MaybeTupleToUnion<T['by']>,
19919
+ ByValid extends Has<ByFields, OrderFields>,
19920
+ HavingFields extends GetHavingFields<T['having']>,
19921
+ HavingValid extends Has<ByFields, HavingFields>,
19922
+ ByEmpty extends T['by'] extends never[] ? True : False,
19923
+ InputErrors extends ByEmpty extends True
19924
+ ? `Error: "by" must not be empty.`
19925
+ : HavingValid extends False
19926
+ ? {
19927
+ [P in HavingFields]: P extends ByFields
19928
+ ? never
19929
+ : P extends string
19930
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
19931
+ : [
19932
+ Error,
19933
+ 'Field ',
19934
+ P,
19935
+ ` in "having" needs to be provided in "by"`,
19936
+ ]
19937
+ }[HavingFields]
19938
+ : 'take' extends Keys<T>
19939
+ ? 'orderBy' extends Keys<T>
19940
+ ? ByValid extends True
19941
+ ? {}
19942
+ : {
19943
+ [P in OrderFields]: P extends ByFields
19944
+ ? never
19945
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19946
+ }[OrderFields]
19947
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
19948
+ : 'skip' extends Keys<T>
19949
+ ? 'orderBy' extends Keys<T>
19950
+ ? ByValid extends True
19951
+ ? {}
19952
+ : {
19953
+ [P in OrderFields]: P extends ByFields
19954
+ ? never
19955
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19956
+ }[OrderFields]
19957
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
19958
+ : ByValid extends True
19959
+ ? {}
19960
+ : {
19961
+ [P in OrderFields]: P extends ByFields
19962
+ ? never
19963
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19964
+ }[OrderFields]
19965
+ >(args: SubsetIntersection<T, AuthorizationSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuthorizationSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
19966
+ /**
19967
+ * Fields of the AuthorizationSession model
19968
+ */
19969
+ readonly fields: AuthorizationSessionFieldRefs;
19970
+ }
19971
+
19972
+ /**
19973
+ * The delegate class that acts as a "Promise-like" for AuthorizationSession.
19974
+ * Why is this prefixed with `Prisma__`?
19975
+ * Because we want to prevent naming conflicts as mentioned in
19976
+ * https://github.com/prisma/prisma-client-js/issues/707
19977
+ */
19978
+ export interface Prisma__AuthorizationSessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
19979
+ readonly [Symbol.toStringTag]: "PrismaPromise"
19980
+ /**
19981
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
19982
+ * @param onfulfilled The callback to execute when the Promise is resolved.
19983
+ * @param onrejected The callback to execute when the Promise is rejected.
19984
+ * @returns A Promise for the completion of which ever callback is executed.
19985
+ */
19986
+ 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>
19987
+ /**
19988
+ * Attaches a callback for only the rejection of the Promise.
19989
+ * @param onrejected The callback to execute when the Promise is rejected.
19990
+ * @returns A Promise for the completion of the callback.
19991
+ */
19992
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
19993
+ /**
19994
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
19995
+ * resolved value cannot be modified from the callback.
19996
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19997
+ * @returns A Promise for the completion of the callback.
19998
+ */
19999
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
20000
+ }
20001
+
20002
+
20003
+
20004
+
20005
+ /**
20006
+ * Fields of the AuthorizationSession model
20007
+ */
20008
+ interface AuthorizationSessionFieldRefs {
20009
+ readonly id: FieldRef<"AuthorizationSession", 'String'>
20010
+ readonly sessionId: FieldRef<"AuthorizationSession", 'String'>
20011
+ readonly userId: FieldRef<"AuthorizationSession", 'String'>
20012
+ readonly entityType: FieldRef<"AuthorizationSession", 'String'>
20013
+ readonly credentialId: FieldRef<"AuthorizationSession", 'String'>
20014
+ readonly currentStep: FieldRef<"AuthorizationSession", 'Int'>
20015
+ readonly maxSteps: FieldRef<"AuthorizationSession", 'Int'>
20016
+ readonly stepData: FieldRef<"AuthorizationSession", 'Json'>
20017
+ readonly expiresAt: FieldRef<"AuthorizationSession", 'DateTime'>
20018
+ readonly completed: FieldRef<"AuthorizationSession", 'Boolean'>
20019
+ readonly createdAt: FieldRef<"AuthorizationSession", 'DateTime'>
20020
+ readonly updatedAt: FieldRef<"AuthorizationSession", 'DateTime'>
20021
+ }
20022
+
20023
+
20024
+ // Custom InputTypes
20025
+ /**
20026
+ * AuthorizationSession findUnique
20027
+ */
20028
+ export type AuthorizationSessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20029
+ /**
20030
+ * Select specific fields to fetch from the AuthorizationSession
20031
+ */
20032
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20033
+ /**
20034
+ * Omit specific fields from the AuthorizationSession
20035
+ */
20036
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20037
+ /**
20038
+ * Filter, which AuthorizationSession to fetch.
20039
+ */
20040
+ where: AuthorizationSessionWhereUniqueInput
20041
+ }
20042
+
20043
+ /**
20044
+ * AuthorizationSession findUniqueOrThrow
20045
+ */
20046
+ export type AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20047
+ /**
20048
+ * Select specific fields to fetch from the AuthorizationSession
20049
+ */
20050
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20051
+ /**
20052
+ * Omit specific fields from the AuthorizationSession
20053
+ */
20054
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20055
+ /**
20056
+ * Filter, which AuthorizationSession to fetch.
20057
+ */
20058
+ where: AuthorizationSessionWhereUniqueInput
20059
+ }
20060
+
20061
+ /**
20062
+ * AuthorizationSession findFirst
20063
+ */
20064
+ export type AuthorizationSessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20065
+ /**
20066
+ * Select specific fields to fetch from the AuthorizationSession
20067
+ */
20068
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20069
+ /**
20070
+ * Omit specific fields from the AuthorizationSession
20071
+ */
20072
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20073
+ /**
20074
+ * Filter, which AuthorizationSession to fetch.
20075
+ */
20076
+ where?: AuthorizationSessionWhereInput
20077
+ /**
20078
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20079
+ *
20080
+ * Determine the order of AuthorizationSessions to fetch.
20081
+ */
20082
+ orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
20083
+ /**
20084
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20085
+ *
20086
+ * Sets the position for searching for AuthorizationSessions.
20087
+ */
20088
+ cursor?: AuthorizationSessionWhereUniqueInput
20089
+ /**
20090
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20091
+ *
20092
+ * Take `±n` AuthorizationSessions from the position of the cursor.
20093
+ */
20094
+ take?: number
20095
+ /**
20096
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20097
+ *
20098
+ * Skip the first `n` AuthorizationSessions.
20099
+ */
20100
+ skip?: number
20101
+ /**
20102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20103
+ *
20104
+ * Filter by unique combinations of AuthorizationSessions.
20105
+ */
20106
+ distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
20107
+ }
20108
+
20109
+ /**
20110
+ * AuthorizationSession findFirstOrThrow
20111
+ */
20112
+ export type AuthorizationSessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20113
+ /**
20114
+ * Select specific fields to fetch from the AuthorizationSession
20115
+ */
20116
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20117
+ /**
20118
+ * Omit specific fields from the AuthorizationSession
20119
+ */
20120
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20121
+ /**
20122
+ * Filter, which AuthorizationSession to fetch.
20123
+ */
20124
+ where?: AuthorizationSessionWhereInput
20125
+ /**
20126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20127
+ *
20128
+ * Determine the order of AuthorizationSessions to fetch.
20129
+ */
20130
+ orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
20131
+ /**
20132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20133
+ *
20134
+ * Sets the position for searching for AuthorizationSessions.
20135
+ */
20136
+ cursor?: AuthorizationSessionWhereUniqueInput
20137
+ /**
20138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20139
+ *
20140
+ * Take `±n` AuthorizationSessions from the position of the cursor.
20141
+ */
20142
+ take?: number
20143
+ /**
20144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20145
+ *
20146
+ * Skip the first `n` AuthorizationSessions.
20147
+ */
20148
+ skip?: number
20149
+ /**
20150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
20151
+ *
20152
+ * Filter by unique combinations of AuthorizationSessions.
20153
+ */
20154
+ distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
20155
+ }
20156
+
20157
+ /**
20158
+ * AuthorizationSession findMany
20159
+ */
20160
+ export type AuthorizationSessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20161
+ /**
20162
+ * Select specific fields to fetch from the AuthorizationSession
20163
+ */
20164
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20165
+ /**
20166
+ * Omit specific fields from the AuthorizationSession
20167
+ */
20168
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20169
+ /**
20170
+ * Filter, which AuthorizationSessions to fetch.
20171
+ */
20172
+ where?: AuthorizationSessionWhereInput
20173
+ /**
20174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20175
+ *
20176
+ * Determine the order of AuthorizationSessions to fetch.
20177
+ */
20178
+ orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
20179
+ /**
20180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20181
+ *
20182
+ * Sets the position for listing AuthorizationSessions.
20183
+ */
20184
+ cursor?: AuthorizationSessionWhereUniqueInput
20185
+ /**
20186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20187
+ *
20188
+ * Take `±n` AuthorizationSessions from the position of the cursor.
20189
+ */
20190
+ take?: number
20191
+ /**
20192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20193
+ *
20194
+ * Skip the first `n` AuthorizationSessions.
20195
+ */
20196
+ skip?: number
20197
+ distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
20198
+ }
20199
+
20200
+ /**
20201
+ * AuthorizationSession create
20202
+ */
20203
+ export type AuthorizationSessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20204
+ /**
20205
+ * Select specific fields to fetch from the AuthorizationSession
20206
+ */
20207
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20208
+ /**
20209
+ * Omit specific fields from the AuthorizationSession
20210
+ */
20211
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20212
+ /**
20213
+ * The data needed to create a AuthorizationSession.
20214
+ */
20215
+ data: XOR<AuthorizationSessionCreateInput, AuthorizationSessionUncheckedCreateInput>
20216
+ }
20217
+
20218
+ /**
20219
+ * AuthorizationSession createMany
20220
+ */
20221
+ export type AuthorizationSessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20222
+ /**
20223
+ * The data used to create many AuthorizationSessions.
20224
+ */
20225
+ data: AuthorizationSessionCreateManyInput | AuthorizationSessionCreateManyInput[]
20226
+ }
20227
+
20228
+ /**
20229
+ * AuthorizationSession update
20230
+ */
20231
+ export type AuthorizationSessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20232
+ /**
20233
+ * Select specific fields to fetch from the AuthorizationSession
20234
+ */
20235
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20236
+ /**
20237
+ * Omit specific fields from the AuthorizationSession
20238
+ */
20239
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20240
+ /**
20241
+ * The data needed to update a AuthorizationSession.
20242
+ */
20243
+ data: XOR<AuthorizationSessionUpdateInput, AuthorizationSessionUncheckedUpdateInput>
20244
+ /**
20245
+ * Choose, which AuthorizationSession to update.
20246
+ */
20247
+ where: AuthorizationSessionWhereUniqueInput
20248
+ }
20249
+
20250
+ /**
20251
+ * AuthorizationSession updateMany
20252
+ */
20253
+ export type AuthorizationSessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20254
+ /**
20255
+ * The data used to update AuthorizationSessions.
20256
+ */
20257
+ data: XOR<AuthorizationSessionUpdateManyMutationInput, AuthorizationSessionUncheckedUpdateManyInput>
20258
+ /**
20259
+ * Filter which AuthorizationSessions to update
20260
+ */
20261
+ where?: AuthorizationSessionWhereInput
20262
+ /**
20263
+ * Limit how many AuthorizationSessions to update.
20264
+ */
20265
+ limit?: number
20266
+ }
20267
+
20268
+ /**
20269
+ * AuthorizationSession upsert
20270
+ */
20271
+ export type AuthorizationSessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20272
+ /**
20273
+ * Select specific fields to fetch from the AuthorizationSession
20274
+ */
20275
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20276
+ /**
20277
+ * Omit specific fields from the AuthorizationSession
20278
+ */
20279
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20280
+ /**
20281
+ * The filter to search for the AuthorizationSession to update in case it exists.
20282
+ */
20283
+ where: AuthorizationSessionWhereUniqueInput
20284
+ /**
20285
+ * In case the AuthorizationSession found by the `where` argument doesn't exist, create a new AuthorizationSession with this data.
20286
+ */
20287
+ create: XOR<AuthorizationSessionCreateInput, AuthorizationSessionUncheckedCreateInput>
20288
+ /**
20289
+ * In case the AuthorizationSession was found with the provided `where` argument, update it with this data.
20290
+ */
20291
+ update: XOR<AuthorizationSessionUpdateInput, AuthorizationSessionUncheckedUpdateInput>
20292
+ }
20293
+
20294
+ /**
20295
+ * AuthorizationSession delete
20296
+ */
20297
+ export type AuthorizationSessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20298
+ /**
20299
+ * Select specific fields to fetch from the AuthorizationSession
20300
+ */
20301
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20302
+ /**
20303
+ * Omit specific fields from the AuthorizationSession
20304
+ */
20305
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20306
+ /**
20307
+ * Filter which AuthorizationSession to delete.
20308
+ */
20309
+ where: AuthorizationSessionWhereUniqueInput
20310
+ }
20311
+
20312
+ /**
20313
+ * AuthorizationSession deleteMany
20314
+ */
20315
+ export type AuthorizationSessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20316
+ /**
20317
+ * Filter which AuthorizationSessions to delete
20318
+ */
20319
+ where?: AuthorizationSessionWhereInput
20320
+ /**
20321
+ * Limit how many AuthorizationSessions to delete.
20322
+ */
20323
+ limit?: number
20324
+ }
20325
+
20326
+ /**
20327
+ * AuthorizationSession findRaw
20328
+ */
20329
+ export type AuthorizationSessionFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20330
+ /**
20331
+ * 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}.
20332
+ */
20333
+ filter?: InputJsonValue
20334
+ /**
20335
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
20336
+ */
20337
+ options?: InputJsonValue
20338
+ }
20339
+
20340
+ /**
20341
+ * AuthorizationSession aggregateRaw
20342
+ */
20343
+ export type AuthorizationSessionAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20344
+ /**
20345
+ * 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}.
20346
+ */
20347
+ pipeline?: InputJsonValue[]
20348
+ /**
20349
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
20350
+ */
20351
+ options?: InputJsonValue
20352
+ }
20353
+
20354
+ /**
20355
+ * AuthorizationSession without action
20356
+ */
20357
+ export type AuthorizationSessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20358
+ /**
20359
+ * Select specific fields to fetch from the AuthorizationSession
20360
+ */
20361
+ select?: AuthorizationSessionSelect<ExtArgs> | null
20362
+ /**
20363
+ * Omit specific fields from the AuthorizationSession
20364
+ */
20365
+ omit?: AuthorizationSessionOmit<ExtArgs> | null
20366
+ }
20367
+
20368
+
20369
+ /**
20370
+ * Model OrganizationMembership
20371
+ */
20372
+
20373
+ export type AggregateOrganizationMembership = {
20374
+ _count: OrganizationMembershipCountAggregateOutputType | null
20375
+ _min: OrganizationMembershipMinAggregateOutputType | null
20376
+ _max: OrganizationMembershipMaxAggregateOutputType | null
20377
+ }
20378
+
20379
+ export type OrganizationMembershipMinAggregateOutputType = {
20380
+ id: string | null
20381
+ individualUserId: string | null
20382
+ organizationUserId: string | null
20383
+ orgRole: string | null
20384
+ createdAt: Date | null
20385
+ }
20386
+
20387
+ export type OrganizationMembershipMaxAggregateOutputType = {
20388
+ id: string | null
20389
+ individualUserId: string | null
20390
+ organizationUserId: string | null
20391
+ orgRole: string | null
20392
+ createdAt: Date | null
20393
+ }
20394
+
20395
+ export type OrganizationMembershipCountAggregateOutputType = {
20396
+ id: number
20397
+ individualUserId: number
20398
+ organizationUserId: number
20399
+ orgRole: number
20400
+ createdAt: number
20401
+ _all: number
20402
+ }
20403
+
20404
+
20405
+ export type OrganizationMembershipMinAggregateInputType = {
20406
+ id?: true
20407
+ individualUserId?: true
20408
+ organizationUserId?: true
20409
+ orgRole?: true
20410
+ createdAt?: true
20411
+ }
20412
+
20413
+ export type OrganizationMembershipMaxAggregateInputType = {
20414
+ id?: true
20415
+ individualUserId?: true
20416
+ organizationUserId?: true
20417
+ orgRole?: true
20418
+ createdAt?: true
20419
+ }
20420
+
20421
+ export type OrganizationMembershipCountAggregateInputType = {
20422
+ id?: true
20423
+ individualUserId?: true
20424
+ organizationUserId?: true
20425
+ orgRole?: true
20426
+ createdAt?: true
20427
+ _all?: true
20428
+ }
20429
+
20430
+ export type OrganizationMembershipAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20431
+ /**
20432
+ * Filter which OrganizationMembership to aggregate.
20433
+ */
20434
+ where?: OrganizationMembershipWhereInput
20435
+ /**
20436
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
20437
+ *
20438
+ * Determine the order of OrganizationMemberships to fetch.
20439
+ */
20440
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
20441
+ /**
20442
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
20443
+ *
20444
+ * Sets the start position
20445
+ */
20446
+ cursor?: OrganizationMembershipWhereUniqueInput
20447
+ /**
20448
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20449
+ *
20450
+ * Take `±n` OrganizationMemberships from the position of the cursor.
20451
+ */
20452
+ take?: number
20453
+ /**
20454
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20455
+ *
20456
+ * Skip the first `n` OrganizationMemberships.
20457
+ */
20458
+ skip?: number
20459
+ /**
20460
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20461
+ *
20462
+ * Count returned OrganizationMemberships
20463
+ **/
20464
+ _count?: true | OrganizationMembershipCountAggregateInputType
20465
+ /**
20466
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20467
+ *
20468
+ * Select which fields to find the minimum value
20469
+ **/
20470
+ _min?: OrganizationMembershipMinAggregateInputType
20471
+ /**
20472
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
20473
+ *
20474
+ * Select which fields to find the maximum value
20475
+ **/
20476
+ _max?: OrganizationMembershipMaxAggregateInputType
20477
+ }
20478
+
20479
+ export type GetOrganizationMembershipAggregateType<T extends OrganizationMembershipAggregateArgs> = {
20480
+ [P in keyof T & keyof AggregateOrganizationMembership]: P extends '_count' | 'count'
20481
+ ? T[P] extends true
20482
+ ? number
20483
+ : GetScalarType<T[P], AggregateOrganizationMembership[P]>
20484
+ : GetScalarType<T[P], AggregateOrganizationMembership[P]>
20485
+ }
20486
+
20487
+
20488
+
20489
+
20490
+ export type OrganizationMembershipGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20491
+ where?: OrganizationMembershipWhereInput
20492
+ orderBy?: OrganizationMembershipOrderByWithAggregationInput | OrganizationMembershipOrderByWithAggregationInput[]
20493
+ by: OrganizationMembershipScalarFieldEnum[] | OrganizationMembershipScalarFieldEnum
20494
+ having?: OrganizationMembershipScalarWhereWithAggregatesInput
20495
+ take?: number
20496
+ skip?: number
20497
+ _count?: OrganizationMembershipCountAggregateInputType | true
20498
+ _min?: OrganizationMembershipMinAggregateInputType
20499
+ _max?: OrganizationMembershipMaxAggregateInputType
20500
+ }
20501
+
20502
+ export type OrganizationMembershipGroupByOutputType = {
20503
+ id: string
20504
+ individualUserId: string
20505
+ organizationUserId: string
20506
+ orgRole: string
20507
+ createdAt: Date
20508
+ _count: OrganizationMembershipCountAggregateOutputType | null
20509
+ _min: OrganizationMembershipMinAggregateOutputType | null
20510
+ _max: OrganizationMembershipMaxAggregateOutputType | null
20511
+ }
20512
+
20513
+ type GetOrganizationMembershipGroupByPayload<T extends OrganizationMembershipGroupByArgs> = Prisma.PrismaPromise<
20514
+ Array<
20515
+ PickEnumerable<OrganizationMembershipGroupByOutputType, T['by']> &
20516
+ {
20517
+ [P in ((keyof T) & (keyof OrganizationMembershipGroupByOutputType))]: P extends '_count'
20518
+ ? T[P] extends boolean
20519
+ ? number
20520
+ : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
20521
+ : GetScalarType<T[P], OrganizationMembershipGroupByOutputType[P]>
20522
+ }
20523
+ >
20524
+ >
20525
+
20526
+
20527
+ export type OrganizationMembershipSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
20528
+ id?: boolean
20529
+ individualUserId?: boolean
20530
+ organizationUserId?: boolean
20531
+ orgRole?: boolean
20532
+ createdAt?: boolean
20533
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
20534
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
20535
+ }, ExtArgs["result"]["organizationMembership"]>
20536
+
20537
+
20538
+
20539
+ export type OrganizationMembershipSelectScalar = {
20540
+ id?: boolean
20541
+ individualUserId?: boolean
20542
+ organizationUserId?: boolean
20543
+ orgRole?: boolean
20544
+ createdAt?: boolean
20545
+ }
20546
+
20547
+ export type OrganizationMembershipOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "individualUserId" | "organizationUserId" | "orgRole" | "createdAt", ExtArgs["result"]["organizationMembership"]>
20548
+ export type OrganizationMembershipInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20549
+ individualUser?: boolean | UserDefaultArgs<ExtArgs>
20550
+ organizationUser?: boolean | UserDefaultArgs<ExtArgs>
20551
+ }
20552
+
20553
+ export type $OrganizationMembershipPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20554
+ name: "OrganizationMembership"
20555
+ objects: {
20556
+ individualUser: Prisma.$UserPayload<ExtArgs>
20557
+ organizationUser: Prisma.$UserPayload<ExtArgs>
20558
+ }
20559
+ scalars: $Extensions.GetPayloadResult<{
20560
+ id: string
20561
+ individualUserId: string
20562
+ organizationUserId: string
20563
+ orgRole: string
20564
+ createdAt: Date
20565
+ }, ExtArgs["result"]["organizationMembership"]>
20566
+ composites: {}
20567
+ }
20568
+
20569
+ type OrganizationMembershipGetPayload<S extends boolean | null | undefined | OrganizationMembershipDefaultArgs> = $Result.GetResult<Prisma.$OrganizationMembershipPayload, S>
20570
+
20571
+ type OrganizationMembershipCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
20572
+ Omit<OrganizationMembershipFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
20573
+ select?: OrganizationMembershipCountAggregateInputType | true
20574
+ }
20575
+
20576
+ export interface OrganizationMembershipDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
20577
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['OrganizationMembership'], meta: { name: 'OrganizationMembership' } }
20578
+ /**
20579
+ * Find zero or one OrganizationMembership that matches the filter.
20580
+ * @param {OrganizationMembershipFindUniqueArgs} args - Arguments to find a OrganizationMembership
20581
+ * @example
20582
+ * // Get one OrganizationMembership
20583
+ * const organizationMembership = await prisma.organizationMembership.findUnique({
20584
+ * where: {
20585
+ * // ... provide filter here
20586
+ * }
20587
+ * })
20588
+ */
20589
+ findUnique<T extends OrganizationMembershipFindUniqueArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20590
+
20591
+ /**
20592
+ * Find one OrganizationMembership that matches the filter or throw an error with `error.code='P2025'`
20593
+ * if no matches were found.
20594
+ * @param {OrganizationMembershipFindUniqueOrThrowArgs} args - Arguments to find a OrganizationMembership
20595
+ * @example
20596
+ * // Get one OrganizationMembership
20597
+ * const organizationMembership = await prisma.organizationMembership.findUniqueOrThrow({
20598
+ * where: {
20599
+ * // ... provide filter here
20600
+ * }
20601
+ * })
20602
+ */
20603
+ findUniqueOrThrow<T extends OrganizationMembershipFindUniqueOrThrowArgs>(args: SelectSubset<T, OrganizationMembershipFindUniqueOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20604
+
20605
+ /**
20606
+ * Find the first OrganizationMembership that matches the filter.
20607
+ * Note, that providing `undefined` is treated as the value not being there.
20608
+ * Read more here: https://pris.ly/d/null-undefined
20609
+ * @param {OrganizationMembershipFindFirstArgs} args - Arguments to find a OrganizationMembership
20610
+ * @example
20611
+ * // Get one OrganizationMembership
20612
+ * const organizationMembership = await prisma.organizationMembership.findFirst({
20613
+ * where: {
20614
+ * // ... provide filter here
20615
+ * }
20616
+ * })
20617
+ */
20618
+ findFirst<T extends OrganizationMembershipFindFirstArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
20619
+
20620
+ /**
20621
+ * Find the first OrganizationMembership that matches the filter or
20622
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
20623
+ * Note, that providing `undefined` is treated as the value not being there.
20624
+ * Read more here: https://pris.ly/d/null-undefined
20625
+ * @param {OrganizationMembershipFindFirstOrThrowArgs} args - Arguments to find a OrganizationMembership
20626
+ * @example
20627
+ * // Get one OrganizationMembership
20628
+ * const organizationMembership = await prisma.organizationMembership.findFirstOrThrow({
20629
+ * where: {
20630
+ * // ... provide filter here
20631
+ * }
20632
+ * })
20633
+ */
20634
+ findFirstOrThrow<T extends OrganizationMembershipFindFirstOrThrowArgs>(args?: SelectSubset<T, OrganizationMembershipFindFirstOrThrowArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20635
+
20636
+ /**
20637
+ * Find zero or more OrganizationMemberships that matches the filter.
20638
+ * Note, that providing `undefined` is treated as the value not being there.
20639
+ * Read more here: https://pris.ly/d/null-undefined
20640
+ * @param {OrganizationMembershipFindManyArgs} args - Arguments to filter and select certain fields only.
20641
+ * @example
20642
+ * // Get all OrganizationMemberships
20643
+ * const organizationMemberships = await prisma.organizationMembership.findMany()
20644
+ *
20645
+ * // Get first 10 OrganizationMemberships
20646
+ * const organizationMemberships = await prisma.organizationMembership.findMany({ take: 10 })
20647
+ *
20648
+ * // Only select the `id`
20649
+ * const organizationMembershipWithIdOnly = await prisma.organizationMembership.findMany({ select: { id: true } })
20650
+ *
20651
+ */
20652
+ findMany<T extends OrganizationMembershipFindManyArgs>(args?: SelectSubset<T, OrganizationMembershipFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
20653
+
20654
+ /**
20655
+ * Create a OrganizationMembership.
20656
+ * @param {OrganizationMembershipCreateArgs} args - Arguments to create a OrganizationMembership.
20657
+ * @example
20658
+ * // Create one OrganizationMembership
20659
+ * const OrganizationMembership = await prisma.organizationMembership.create({
20660
+ * data: {
20661
+ * // ... data to create a OrganizationMembership
20662
+ * }
20663
+ * })
20664
+ *
20665
+ */
20666
+ create<T extends OrganizationMembershipCreateArgs>(args: SelectSubset<T, OrganizationMembershipCreateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20667
+
20668
+ /**
20669
+ * Create many OrganizationMemberships.
20670
+ * @param {OrganizationMembershipCreateManyArgs} args - Arguments to create many OrganizationMemberships.
20671
+ * @example
20672
+ * // Create many OrganizationMemberships
20673
+ * const organizationMembership = await prisma.organizationMembership.createMany({
20674
+ * data: [
20675
+ * // ... provide data here
20676
+ * ]
20677
+ * })
20678
+ *
20679
+ */
20680
+ createMany<T extends OrganizationMembershipCreateManyArgs>(args?: SelectSubset<T, OrganizationMembershipCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20681
+
20682
+ /**
20683
+ * Delete a OrganizationMembership.
20684
+ * @param {OrganizationMembershipDeleteArgs} args - Arguments to delete one OrganizationMembership.
20685
+ * @example
20686
+ * // Delete one OrganizationMembership
20687
+ * const OrganizationMembership = await prisma.organizationMembership.delete({
20688
+ * where: {
20689
+ * // ... filter to delete one OrganizationMembership
20690
+ * }
20691
+ * })
20692
+ *
20693
+ */
20694
+ delete<T extends OrganizationMembershipDeleteArgs>(args: SelectSubset<T, OrganizationMembershipDeleteArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20695
+
20696
+ /**
20697
+ * Update one OrganizationMembership.
20698
+ * @param {OrganizationMembershipUpdateArgs} args - Arguments to update one OrganizationMembership.
20699
+ * @example
20700
+ * // Update one OrganizationMembership
20701
+ * const organizationMembership = await prisma.organizationMembership.update({
20702
+ * where: {
20703
+ * // ... provide filter here
20704
+ * },
20705
+ * data: {
20706
+ * // ... provide data here
20707
+ * }
20708
+ * })
20709
+ *
20710
+ */
20711
+ update<T extends OrganizationMembershipUpdateArgs>(args: SelectSubset<T, OrganizationMembershipUpdateArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20712
+
20713
+ /**
20714
+ * Delete zero or more OrganizationMemberships.
20715
+ * @param {OrganizationMembershipDeleteManyArgs} args - Arguments to filter OrganizationMemberships to delete.
20716
+ * @example
20717
+ * // Delete a few OrganizationMemberships
20718
+ * const { count } = await prisma.organizationMembership.deleteMany({
20719
+ * where: {
20720
+ * // ... provide filter here
20721
+ * }
20722
+ * })
20723
+ *
20724
+ */
20725
+ deleteMany<T extends OrganizationMembershipDeleteManyArgs>(args?: SelectSubset<T, OrganizationMembershipDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20726
+
20727
+ /**
20728
+ * Update zero or more OrganizationMemberships.
20729
+ * Note, that providing `undefined` is treated as the value not being there.
20730
+ * Read more here: https://pris.ly/d/null-undefined
20731
+ * @param {OrganizationMembershipUpdateManyArgs} args - Arguments to update one or more rows.
20732
+ * @example
20733
+ * // Update many OrganizationMemberships
20734
+ * const organizationMembership = await prisma.organizationMembership.updateMany({
20735
+ * where: {
20736
+ * // ... provide filter here
20737
+ * },
20738
+ * data: {
20739
+ * // ... provide data here
20740
+ * }
20741
+ * })
20742
+ *
20743
+ */
20744
+ updateMany<T extends OrganizationMembershipUpdateManyArgs>(args: SelectSubset<T, OrganizationMembershipUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
20745
+
20746
+ /**
20747
+ * Create or update one OrganizationMembership.
20748
+ * @param {OrganizationMembershipUpsertArgs} args - Arguments to update or create a OrganizationMembership.
20749
+ * @example
20750
+ * // Update or create a OrganizationMembership
20751
+ * const organizationMembership = await prisma.organizationMembership.upsert({
20752
+ * create: {
20753
+ * // ... data to create a OrganizationMembership
20754
+ * },
20755
+ * update: {
20756
+ * // ... in case it already exists, update
20757
+ * },
20758
+ * where: {
20759
+ * // ... the filter for the OrganizationMembership we want to update
20760
+ * }
20761
+ * })
20762
+ */
20763
+ upsert<T extends OrganizationMembershipUpsertArgs>(args: SelectSubset<T, OrganizationMembershipUpsertArgs<ExtArgs>>): Prisma__OrganizationMembershipClient<$Result.GetResult<Prisma.$OrganizationMembershipPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
20764
+
20765
+ /**
20766
+ * Find zero or more OrganizationMemberships that matches the filter.
20767
+ * @param {OrganizationMembershipFindRawArgs} args - Select which filters you would like to apply.
20768
+ * @example
20769
+ * const organizationMembership = await prisma.organizationMembership.findRaw({
20770
+ * filter: { age: { $gt: 25 } }
20771
+ * })
20772
+ */
20773
+ findRaw(args?: OrganizationMembershipFindRawArgs): Prisma.PrismaPromise<JsonObject>
20774
+
20775
+ /**
20776
+ * Perform aggregation operations on a OrganizationMembership.
20777
+ * @param {OrganizationMembershipAggregateRawArgs} args - Select which aggregations you would like to apply.
20778
+ * @example
20779
+ * const organizationMembership = await prisma.organizationMembership.aggregateRaw({
20780
+ * pipeline: [
20781
+ * { $match: { status: "registered" } },
20782
+ * { $group: { _id: "$country", total: { $sum: 1 } } }
20783
+ * ]
20784
+ * })
20785
+ */
20786
+ aggregateRaw(args?: OrganizationMembershipAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
20787
+
20788
+
20789
+ /**
20790
+ * Count the number of OrganizationMemberships.
20791
+ * Note, that providing `undefined` is treated as the value not being there.
20792
+ * Read more here: https://pris.ly/d/null-undefined
20793
+ * @param {OrganizationMembershipCountArgs} args - Arguments to filter OrganizationMemberships to count.
20794
+ * @example
20795
+ * // Count the number of OrganizationMemberships
20796
+ * const count = await prisma.organizationMembership.count({
20797
+ * where: {
20798
+ * // ... the filter for the OrganizationMemberships we want to count
20799
+ * }
20800
+ * })
20801
+ **/
20802
+ count<T extends OrganizationMembershipCountArgs>(
20803
+ args?: Subset<T, OrganizationMembershipCountArgs>,
20804
+ ): Prisma.PrismaPromise<
20805
+ T extends $Utils.Record<'select', any>
20806
+ ? T['select'] extends true
20807
+ ? number
20808
+ : GetScalarType<T['select'], OrganizationMembershipCountAggregateOutputType>
20809
+ : number
20810
+ >
20811
+
20812
+ /**
20813
+ * Allows you to perform aggregations operations on a OrganizationMembership.
20814
+ * Note, that providing `undefined` is treated as the value not being there.
20815
+ * Read more here: https://pris.ly/d/null-undefined
20816
+ * @param {OrganizationMembershipAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
20817
+ * @example
20818
+ * // Ordered by age ascending
20819
+ * // Where email contains prisma.io
20820
+ * // Limited to the 10 users
20821
+ * const aggregations = await prisma.user.aggregate({
20822
+ * _avg: {
20823
+ * age: true,
20824
+ * },
20825
+ * where: {
20826
+ * email: {
20827
+ * contains: "prisma.io",
20828
+ * },
20829
+ * },
20830
+ * orderBy: {
20831
+ * age: "asc",
20832
+ * },
20833
+ * take: 10,
20834
+ * })
20835
+ **/
20836
+ aggregate<T extends OrganizationMembershipAggregateArgs>(args: Subset<T, OrganizationMembershipAggregateArgs>): Prisma.PrismaPromise<GetOrganizationMembershipAggregateType<T>>
20837
+
20838
+ /**
20839
+ * Group by OrganizationMembership.
20840
+ * Note, that providing `undefined` is treated as the value not being there.
20841
+ * Read more here: https://pris.ly/d/null-undefined
20842
+ * @param {OrganizationMembershipGroupByArgs} args - Group by arguments.
20843
+ * @example
20844
+ * // Group by city, order by createdAt, get count
20845
+ * const result = await prisma.user.groupBy({
20846
+ * by: ['city', 'createdAt'],
20847
+ * orderBy: {
20848
+ * createdAt: true
20849
+ * },
20850
+ * _count: {
20851
+ * _all: true
20852
+ * },
20853
+ * })
20854
+ *
20855
+ **/
20856
+ groupBy<
20857
+ T extends OrganizationMembershipGroupByArgs,
20858
+ HasSelectOrTake extends Or<
20859
+ Extends<'skip', Keys<T>>,
20860
+ Extends<'take', Keys<T>>
20861
+ >,
20862
+ OrderByArg extends True extends HasSelectOrTake
20863
+ ? { orderBy: OrganizationMembershipGroupByArgs['orderBy'] }
20864
+ : { orderBy?: OrganizationMembershipGroupByArgs['orderBy'] },
20865
+ OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
20866
+ ByFields extends MaybeTupleToUnion<T['by']>,
20867
+ ByValid extends Has<ByFields, OrderFields>,
20868
+ HavingFields extends GetHavingFields<T['having']>,
20869
+ HavingValid extends Has<ByFields, HavingFields>,
20870
+ ByEmpty extends T['by'] extends never[] ? True : False,
20871
+ InputErrors extends ByEmpty extends True
20872
+ ? `Error: "by" must not be empty.`
20873
+ : HavingValid extends False
20874
+ ? {
20875
+ [P in HavingFields]: P extends ByFields
20876
+ ? never
20877
+ : P extends string
20878
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
20879
+ : [
20880
+ Error,
20881
+ 'Field ',
20882
+ P,
20883
+ ` in "having" needs to be provided in "by"`,
20884
+ ]
20885
+ }[HavingFields]
20886
+ : 'take' extends Keys<T>
20887
+ ? 'orderBy' extends Keys<T>
20888
+ ? ByValid extends True
20889
+ ? {}
20890
+ : {
20891
+ [P in OrderFields]: P extends ByFields
20892
+ ? never
20893
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20894
+ }[OrderFields]
20895
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
20896
+ : 'skip' extends Keys<T>
20897
+ ? 'orderBy' extends Keys<T>
20898
+ ? ByValid extends True
20899
+ ? {}
20900
+ : {
20901
+ [P in OrderFields]: P extends ByFields
20902
+ ? never
20903
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20904
+ }[OrderFields]
20905
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
20906
+ : ByValid extends True
20907
+ ? {}
20908
+ : {
20909
+ [P in OrderFields]: P extends ByFields
20910
+ ? never
20911
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
20912
+ }[OrderFields]
20913
+ >(args: SubsetIntersection<T, OrganizationMembershipGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOrganizationMembershipGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
20914
+ /**
20915
+ * Fields of the OrganizationMembership model
20916
+ */
20917
+ readonly fields: OrganizationMembershipFieldRefs;
20918
+ }
20919
+
20920
+ /**
20921
+ * The delegate class that acts as a "Promise-like" for OrganizationMembership.
20922
+ * Why is this prefixed with `Prisma__`?
20923
+ * Because we want to prevent naming conflicts as mentioned in
20924
+ * https://github.com/prisma/prisma-client-js/issues/707
20925
+ */
20926
+ export interface Prisma__OrganizationMembershipClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
20927
+ readonly [Symbol.toStringTag]: "PrismaPromise"
20928
+ individualUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
20929
+ organizationUser<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
20930
+ /**
20931
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
20932
+ * @param onfulfilled The callback to execute when the Promise is resolved.
20933
+ * @param onrejected The callback to execute when the Promise is rejected.
20934
+ * @returns A Promise for the completion of which ever callback is executed.
20935
+ */
20936
+ 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>
20937
+ /**
20938
+ * Attaches a callback for only the rejection of the Promise.
20939
+ * @param onrejected The callback to execute when the Promise is rejected.
20940
+ * @returns A Promise for the completion of the callback.
20941
+ */
20942
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
20943
+ /**
20944
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
20945
+ * resolved value cannot be modified from the callback.
20946
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
20947
+ * @returns A Promise for the completion of the callback.
20948
+ */
20949
+ finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
20950
+ }
20951
+
20952
+
20953
+
20954
+
20955
+ /**
20956
+ * Fields of the OrganizationMembership model
20957
+ */
20958
+ interface OrganizationMembershipFieldRefs {
20959
+ readonly id: FieldRef<"OrganizationMembership", 'String'>
20960
+ readonly individualUserId: FieldRef<"OrganizationMembership", 'String'>
20961
+ readonly organizationUserId: FieldRef<"OrganizationMembership", 'String'>
20962
+ readonly orgRole: FieldRef<"OrganizationMembership", 'String'>
20963
+ readonly createdAt: FieldRef<"OrganizationMembership", 'DateTime'>
20964
+ }
20965
+
20966
+
20967
+ // Custom InputTypes
20968
+ /**
20969
+ * OrganizationMembership findUnique
20970
+ */
20971
+ export type OrganizationMembershipFindUniqueArgs<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 findUniqueOrThrow
20992
+ */
20993
+ export type OrganizationMembershipFindUniqueOrThrowArgs<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: OrganizationMembershipWhereUniqueInput
21010
+ }
21011
+
21012
+ /**
21013
+ * OrganizationMembership findFirst
21014
+ */
21015
+ export type OrganizationMembershipFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21016
+ /**
21017
+ * Select specific fields to fetch from the OrganizationMembership
21018
+ */
21019
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21020
+ /**
21021
+ * Omit specific fields from the OrganizationMembership
21022
+ */
21023
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21024
+ /**
21025
+ * Choose, which related nodes to fetch as well
21026
+ */
21027
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21028
+ /**
21029
+ * Filter, which OrganizationMembership to fetch.
21030
+ */
21031
+ where?: OrganizationMembershipWhereInput
21032
+ /**
21033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21034
+ *
21035
+ * Determine the order of OrganizationMemberships to fetch.
21036
+ */
21037
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
21038
+ /**
21039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21040
+ *
21041
+ * Sets the position for searching for OrganizationMemberships.
21042
+ */
21043
+ cursor?: OrganizationMembershipWhereUniqueInput
21044
+ /**
21045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21046
+ *
21047
+ * Take `±n` OrganizationMemberships from the position of the cursor.
21048
+ */
21049
+ take?: number
21050
+ /**
21051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21052
+ *
21053
+ * Skip the first `n` OrganizationMemberships.
21054
+ */
21055
+ skip?: number
21056
+ /**
21057
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
21058
+ *
21059
+ * Filter by unique combinations of OrganizationMemberships.
21060
+ */
21061
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
21062
+ }
21063
+
21064
+ /**
21065
+ * OrganizationMembership findFirstOrThrow
21066
+ */
21067
+ export type OrganizationMembershipFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21068
+ /**
21069
+ * Select specific fields to fetch from the OrganizationMembership
21070
+ */
21071
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21072
+ /**
21073
+ * Omit specific fields from the OrganizationMembership
21074
+ */
21075
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21076
+ /**
21077
+ * Choose, which related nodes to fetch as well
21078
+ */
21079
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21080
+ /**
21081
+ * Filter, which OrganizationMembership to fetch.
21082
+ */
21083
+ where?: OrganizationMembershipWhereInput
21084
+ /**
21085
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21086
+ *
21087
+ * Determine the order of OrganizationMemberships to fetch.
21088
+ */
21089
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
21090
+ /**
21091
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21092
+ *
21093
+ * Sets the position for searching for OrganizationMemberships.
21094
+ */
21095
+ cursor?: OrganizationMembershipWhereUniqueInput
21096
+ /**
21097
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21098
+ *
21099
+ * Take `±n` OrganizationMemberships from the position of the cursor.
21100
+ */
21101
+ take?: number
21102
+ /**
21103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21104
+ *
21105
+ * Skip the first `n` OrganizationMemberships.
21106
+ */
21107
+ skip?: number
21108
+ /**
21109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
21110
+ *
21111
+ * Filter by unique combinations of OrganizationMemberships.
21112
+ */
21113
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
21114
+ }
21115
+
21116
+ /**
21117
+ * OrganizationMembership findMany
21118
+ */
21119
+ export type OrganizationMembershipFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21120
+ /**
21121
+ * Select specific fields to fetch from the OrganizationMembership
21122
+ */
21123
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21124
+ /**
21125
+ * Omit specific fields from the OrganizationMembership
21126
+ */
21127
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21128
+ /**
21129
+ * Choose, which related nodes to fetch as well
21130
+ */
21131
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21132
+ /**
21133
+ * Filter, which OrganizationMemberships to fetch.
21134
+ */
21135
+ where?: OrganizationMembershipWhereInput
21136
+ /**
21137
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
21138
+ *
21139
+ * Determine the order of OrganizationMemberships to fetch.
21140
+ */
21141
+ orderBy?: OrganizationMembershipOrderByWithRelationInput | OrganizationMembershipOrderByWithRelationInput[]
21142
+ /**
21143
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
21144
+ *
21145
+ * Sets the position for listing OrganizationMemberships.
21146
+ */
21147
+ cursor?: OrganizationMembershipWhereUniqueInput
21148
+ /**
21149
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21150
+ *
21151
+ * Take `±n` OrganizationMemberships from the position of the cursor.
21152
+ */
21153
+ take?: number
21154
+ /**
21155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
21156
+ *
21157
+ * Skip the first `n` OrganizationMemberships.
21158
+ */
21159
+ skip?: number
21160
+ distinct?: OrganizationMembershipScalarFieldEnum | OrganizationMembershipScalarFieldEnum[]
21161
+ }
21162
+
21163
+ /**
21164
+ * OrganizationMembership create
21165
+ */
21166
+ export type OrganizationMembershipCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21167
+ /**
21168
+ * Select specific fields to fetch from the OrganizationMembership
21169
+ */
21170
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21171
+ /**
21172
+ * Omit specific fields from the OrganizationMembership
21173
+ */
21174
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21175
+ /**
21176
+ * Choose, which related nodes to fetch as well
21177
+ */
21178
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21179
+ /**
21180
+ * The data needed to create a OrganizationMembership.
21181
+ */
21182
+ data: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
21183
+ }
21184
+
21185
+ /**
21186
+ * OrganizationMembership createMany
21187
+ */
21188
+ export type OrganizationMembershipCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21189
+ /**
21190
+ * The data used to create many OrganizationMemberships.
21191
+ */
21192
+ data: OrganizationMembershipCreateManyInput | OrganizationMembershipCreateManyInput[]
21193
+ }
21194
+
21195
+ /**
21196
+ * OrganizationMembership update
21197
+ */
21198
+ export type OrganizationMembershipUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21199
+ /**
21200
+ * Select specific fields to fetch from the OrganizationMembership
21201
+ */
21202
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21203
+ /**
21204
+ * Omit specific fields from the OrganizationMembership
21205
+ */
21206
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21207
+ /**
21208
+ * Choose, which related nodes to fetch as well
21209
+ */
21210
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21211
+ /**
21212
+ * The data needed to update a OrganizationMembership.
21213
+ */
21214
+ data: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
21215
+ /**
21216
+ * Choose, which OrganizationMembership to update.
21217
+ */
21218
+ where: OrganizationMembershipWhereUniqueInput
21219
+ }
21220
+
21221
+ /**
21222
+ * OrganizationMembership updateMany
21223
+ */
21224
+ export type OrganizationMembershipUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21225
+ /**
21226
+ * The data used to update OrganizationMemberships.
21227
+ */
21228
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyInput>
21229
+ /**
21230
+ * Filter which OrganizationMemberships to update
21231
+ */
21232
+ where?: OrganizationMembershipWhereInput
21233
+ /**
21234
+ * Limit how many OrganizationMemberships to update.
21235
+ */
21236
+ limit?: number
21237
+ }
21238
+
21239
+ /**
21240
+ * OrganizationMembership upsert
21241
+ */
21242
+ export type OrganizationMembershipUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21243
+ /**
21244
+ * Select specific fields to fetch from the OrganizationMembership
21245
+ */
21246
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21247
+ /**
21248
+ * Omit specific fields from the OrganizationMembership
21249
+ */
21250
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21251
+ /**
21252
+ * Choose, which related nodes to fetch as well
21253
+ */
21254
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21255
+ /**
21256
+ * The filter to search for the OrganizationMembership to update in case it exists.
21257
+ */
21258
+ where: OrganizationMembershipWhereUniqueInput
21259
+ /**
21260
+ * In case the OrganizationMembership found by the `where` argument doesn't exist, create a new OrganizationMembership with this data.
21261
+ */
21262
+ create: XOR<OrganizationMembershipCreateInput, OrganizationMembershipUncheckedCreateInput>
21263
+ /**
21264
+ * In case the OrganizationMembership was found with the provided `where` argument, update it with this data.
21265
+ */
21266
+ update: XOR<OrganizationMembershipUpdateInput, OrganizationMembershipUncheckedUpdateInput>
21267
+ }
21268
+
21269
+ /**
21270
+ * OrganizationMembership delete
21271
+ */
21272
+ export type OrganizationMembershipDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21273
+ /**
21274
+ * Select specific fields to fetch from the OrganizationMembership
21275
+ */
21276
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21277
+ /**
21278
+ * Omit specific fields from the OrganizationMembership
21279
+ */
21280
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21281
+ /**
21282
+ * Choose, which related nodes to fetch as well
21283
+ */
21284
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21285
+ /**
21286
+ * Filter which OrganizationMembership to delete.
21287
+ */
21288
+ where: OrganizationMembershipWhereUniqueInput
21289
+ }
21290
+
21291
+ /**
21292
+ * OrganizationMembership deleteMany
21293
+ */
21294
+ export type OrganizationMembershipDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21295
+ /**
21296
+ * Filter which OrganizationMemberships to delete
21297
+ */
21298
+ where?: OrganizationMembershipWhereInput
21299
+ /**
21300
+ * Limit how many OrganizationMemberships to delete.
21301
+ */
21302
+ limit?: number
21303
+ }
21304
+
21305
+ /**
21306
+ * OrganizationMembership findRaw
21307
+ */
21308
+ export type OrganizationMembershipFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21309
+ /**
21310
+ * 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}.
21311
+ */
21312
+ filter?: InputJsonValue
21313
+ /**
21314
+ * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
21315
+ */
21316
+ options?: InputJsonValue
21317
+ }
21318
+
21319
+ /**
21320
+ * OrganizationMembership aggregateRaw
21321
+ */
21322
+ export type OrganizationMembershipAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21323
+ /**
21324
+ * 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}.
21325
+ */
21326
+ pipeline?: InputJsonValue[]
21327
+ /**
21328
+ * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
21329
+ */
21330
+ options?: InputJsonValue
21331
+ }
21332
+
21333
+ /**
21334
+ * OrganizationMembership without action
21335
+ */
21336
+ export type OrganizationMembershipDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
21337
+ /**
21338
+ * Select specific fields to fetch from the OrganizationMembership
21339
+ */
21340
+ select?: OrganizationMembershipSelect<ExtArgs> | null
21341
+ /**
21342
+ * Omit specific fields from the OrganizationMembership
21343
+ */
21344
+ omit?: OrganizationMembershipOmit<ExtArgs> | null
21345
+ /**
21346
+ * Choose, which related nodes to fetch as well
21347
+ */
21348
+ include?: OrganizationMembershipInclude<ExtArgs> | null
21349
+ }
21350
+
21351
+
21352
+ /**
21353
+ * Enums
21354
+ */
21355
+
21356
+ export const UserScalarFieldEnum: {
21357
+ id: 'id',
21358
+ type: 'type',
21359
+ createdAt: 'createdAt',
21360
+ updatedAt: 'updatedAt',
21361
+ email: 'email',
21362
+ username: 'username',
21363
+ hashword: 'hashword',
21364
+ appUserId: 'appUserId',
21365
+ organizationId: 'organizationId',
21366
+ appOrgId: 'appOrgId',
21367
+ name: 'name'
21368
+ };
21369
+
21370
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
21371
+
21372
+
21373
+ export const TokenScalarFieldEnum: {
21374
+ id: 'id',
21375
+ token: 'token',
21376
+ created: 'created',
21377
+ expires: 'expires',
21378
+ userId: 'userId'
21379
+ };
21380
+
21381
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
21382
+
21383
+
21384
+ export const CredentialScalarFieldEnum: {
21385
+ id: 'id',
21386
+ userId: 'userId',
21387
+ authIsValid: 'authIsValid',
21388
+ externalId: 'externalId',
21389
+ data: 'data',
21390
+ createdAt: 'createdAt',
21391
+ updatedAt: 'updatedAt'
21392
+ };
21393
+
21394
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
21395
+
21396
+
21397
+ export const EntityScalarFieldEnum: {
21398
+ id: 'id',
21399
+ credentialId: 'credentialId',
21400
+ userId: 'userId',
21401
+ name: 'name',
21402
+ moduleName: 'moduleName',
21403
+ externalId: 'externalId',
21404
+ organizationId: 'organizationId',
21405
+ data: 'data',
21406
+ createdAt: 'createdAt',
21407
+ updatedAt: 'updatedAt',
21408
+ integrationIds: 'integrationIds',
21409
+ syncIds: 'syncIds'
21410
+ };
21411
+
21412
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
21413
+
21414
+
21415
+ export const IntegrationScalarFieldEnum: {
21416
+ id: 'id',
21417
+ userId: 'userId',
21418
+ status: 'status',
21419
+ organizationId: 'organizationId',
21420
+ config: 'config',
21421
+ version: 'version',
21422
+ entityIds: 'entityIds',
21423
+ errors: 'errors',
21424
+ warnings: 'warnings',
21425
+ info: 'info',
19114
21426
  logs: 'logs',
19115
21427
  createdAt: 'createdAt',
19116
21428
  updatedAt: 'updatedAt'
@@ -19254,7 +21566,36 @@ export namespace Prisma {
19254
21566
  updatedAt: 'updatedAt'
19255
21567
  };
19256
21568
 
19257
- export type UsageCounterScalarFieldEnum = (typeof UsageCounterScalarFieldEnum)[keyof typeof UsageCounterScalarFieldEnum]
21569
+ export type UsageCounterScalarFieldEnum = (typeof UsageCounterScalarFieldEnum)[keyof typeof UsageCounterScalarFieldEnum]
21570
+
21571
+
21572
+ export const AuthorizationSessionScalarFieldEnum: {
21573
+ id: 'id',
21574
+ sessionId: 'sessionId',
21575
+ userId: 'userId',
21576
+ entityType: 'entityType',
21577
+ credentialId: 'credentialId',
21578
+ currentStep: 'currentStep',
21579
+ maxSteps: 'maxSteps',
21580
+ stepData: 'stepData',
21581
+ expiresAt: 'expiresAt',
21582
+ completed: 'completed',
21583
+ createdAt: 'createdAt',
21584
+ updatedAt: 'updatedAt'
21585
+ };
21586
+
21587
+ export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
21588
+
21589
+
21590
+ export const OrganizationMembershipScalarFieldEnum: {
21591
+ id: 'id',
21592
+ individualUserId: 'individualUserId',
21593
+ organizationUserId: 'organizationUserId',
21594
+ orgRole: 'orgRole',
21595
+ createdAt: 'createdAt'
21596
+ };
21597
+
21598
+ export type OrganizationMembershipScalarFieldEnum = (typeof OrganizationMembershipScalarFieldEnum)[keyof typeof OrganizationMembershipScalarFieldEnum]
19258
21599
 
19259
21600
 
19260
21601
  export const SortOrder: {
@@ -19443,6 +21784,8 @@ export namespace Prisma {
19443
21784
  entities?: EntityListRelationFilter
19444
21785
  integrations?: IntegrationListRelationFilter
19445
21786
  processes?: ProcessListRelationFilter
21787
+ memberships?: OrganizationMembershipListRelationFilter
21788
+ orgMembers?: OrganizationMembershipListRelationFilter
19446
21789
  }
19447
21790
 
19448
21791
  export type UserOrderByWithRelationInput = {
@@ -19464,6 +21807,8 @@ export namespace Prisma {
19464
21807
  entities?: EntityOrderByRelationAggregateInput
19465
21808
  integrations?: IntegrationOrderByRelationAggregateInput
19466
21809
  processes?: ProcessOrderByRelationAggregateInput
21810
+ memberships?: OrganizationMembershipOrderByRelationAggregateInput
21811
+ orgMembers?: OrganizationMembershipOrderByRelationAggregateInput
19467
21812
  }
19468
21813
 
19469
21814
  export type UserWhereUniqueInput = Prisma.AtLeast<{
@@ -19489,6 +21834,8 @@ export namespace Prisma {
19489
21834
  entities?: EntityListRelationFilter
19490
21835
  integrations?: IntegrationListRelationFilter
19491
21836
  processes?: ProcessListRelationFilter
21837
+ memberships?: OrganizationMembershipListRelationFilter
21838
+ orgMembers?: OrganizationMembershipListRelationFilter
19492
21839
  }, "id" | "username_appUserId">
19493
21840
 
19494
21841
  export type UserOrderByWithAggregationInput = {
@@ -19658,6 +22005,7 @@ export namespace Prisma {
19658
22005
  name?: StringNullableFilter<"Entity"> | string | null
19659
22006
  moduleName?: StringNullableFilter<"Entity"> | string | null
19660
22007
  externalId?: StringNullableFilter<"Entity"> | string | null
22008
+ organizationId?: StringNullableFilter<"Entity"> | string | null
19661
22009
  data?: JsonFilter<"Entity">
19662
22010
  createdAt?: DateTimeFilter<"Entity"> | Date | string
19663
22011
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -19678,6 +22026,7 @@ export namespace Prisma {
19678
22026
  name?: SortOrder
19679
22027
  moduleName?: SortOrder
19680
22028
  externalId?: SortOrder
22029
+ organizationId?: SortOrder
19681
22030
  data?: SortOrder
19682
22031
  createdAt?: SortOrder
19683
22032
  updatedAt?: SortOrder
@@ -19701,6 +22050,7 @@ export namespace Prisma {
19701
22050
  name?: StringNullableFilter<"Entity"> | string | null
19702
22051
  moduleName?: StringNullableFilter<"Entity"> | string | null
19703
22052
  externalId?: StringNullableFilter<"Entity"> | string | null
22053
+ organizationId?: StringNullableFilter<"Entity"> | string | null
19704
22054
  data?: JsonFilter<"Entity">
19705
22055
  createdAt?: DateTimeFilter<"Entity"> | Date | string
19706
22056
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -19721,6 +22071,7 @@ export namespace Prisma {
19721
22071
  name?: SortOrder
19722
22072
  moduleName?: SortOrder
19723
22073
  externalId?: SortOrder
22074
+ organizationId?: SortOrder
19724
22075
  data?: SortOrder
19725
22076
  createdAt?: SortOrder
19726
22077
  updatedAt?: SortOrder
@@ -19741,6 +22092,7 @@ export namespace Prisma {
19741
22092
  name?: StringNullableWithAggregatesFilter<"Entity"> | string | null
19742
22093
  moduleName?: StringNullableWithAggregatesFilter<"Entity"> | string | null
19743
22094
  externalId?: StringNullableWithAggregatesFilter<"Entity"> | string | null
22095
+ organizationId?: StringNullableWithAggregatesFilter<"Entity"> | string | null
19744
22096
  data?: JsonWithAggregatesFilter<"Entity">
19745
22097
  createdAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
19746
22098
  updatedAt?: DateTimeWithAggregatesFilter<"Entity"> | Date | string
@@ -19755,6 +22107,7 @@ export namespace Prisma {
19755
22107
  id?: StringFilter<"Integration"> | string
19756
22108
  userId?: StringNullableFilter<"Integration"> | string | null
19757
22109
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
22110
+ organizationId?: StringNullableFilter<"Integration"> | string | null
19758
22111
  config?: JsonNullableFilter<"Integration">
19759
22112
  version?: StringNullableFilter<"Integration"> | string | null
19760
22113
  entityIds?: StringNullableListFilter<"Integration">
@@ -19776,6 +22129,7 @@ export namespace Prisma {
19776
22129
  id?: SortOrder
19777
22130
  userId?: SortOrder
19778
22131
  status?: SortOrder
22132
+ organizationId?: SortOrder
19779
22133
  config?: SortOrder
19780
22134
  version?: SortOrder
19781
22135
  entityIds?: SortOrder
@@ -19800,6 +22154,7 @@ export namespace Prisma {
19800
22154
  NOT?: IntegrationWhereInput | IntegrationWhereInput[]
19801
22155
  userId?: StringNullableFilter<"Integration"> | string | null
19802
22156
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
22157
+ organizationId?: StringNullableFilter<"Integration"> | string | null
19803
22158
  config?: JsonNullableFilter<"Integration">
19804
22159
  version?: StringNullableFilter<"Integration"> | string | null
19805
22160
  entityIds?: StringNullableListFilter<"Integration">
@@ -19821,6 +22176,7 @@ export namespace Prisma {
19821
22176
  id?: SortOrder
19822
22177
  userId?: SortOrder
19823
22178
  status?: SortOrder
22179
+ organizationId?: SortOrder
19824
22180
  config?: SortOrder
19825
22181
  version?: SortOrder
19826
22182
  entityIds?: SortOrder
@@ -19842,6 +22198,7 @@ export namespace Prisma {
19842
22198
  id?: StringWithAggregatesFilter<"Integration"> | string
19843
22199
  userId?: StringNullableWithAggregatesFilter<"Integration"> | string | null
19844
22200
  status?: EnumIntegrationStatusWithAggregatesFilter<"Integration"> | $Enums.IntegrationStatus
22201
+ organizationId?: StringNullableWithAggregatesFilter<"Integration"> | string | null
19845
22202
  config?: JsonNullableWithAggregatesFilter<"Integration">
19846
22203
  version?: StringNullableWithAggregatesFilter<"Integration"> | string | null
19847
22204
  entityIds?: StringNullableListFilter<"Integration">
@@ -20550,6 +22907,154 @@ export namespace Prisma {
20550
22907
  updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
20551
22908
  }
20552
22909
 
22910
+ export type AuthorizationSessionWhereInput = {
22911
+ AND?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
22912
+ OR?: AuthorizationSessionWhereInput[]
22913
+ NOT?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
22914
+ id?: StringFilter<"AuthorizationSession"> | string
22915
+ sessionId?: StringFilter<"AuthorizationSession"> | string
22916
+ userId?: StringFilter<"AuthorizationSession"> | string
22917
+ entityType?: StringFilter<"AuthorizationSession"> | string
22918
+ credentialId?: StringNullableFilter<"AuthorizationSession"> | string | null
22919
+ currentStep?: IntFilter<"AuthorizationSession"> | number
22920
+ maxSteps?: IntFilter<"AuthorizationSession"> | number
22921
+ stepData?: JsonFilter<"AuthorizationSession">
22922
+ expiresAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
22923
+ completed?: BoolFilter<"AuthorizationSession"> | boolean
22924
+ createdAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
22925
+ updatedAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
22926
+ }
22927
+
22928
+ export type AuthorizationSessionOrderByWithRelationInput = {
22929
+ id?: SortOrder
22930
+ sessionId?: SortOrder
22931
+ userId?: SortOrder
22932
+ entityType?: SortOrder
22933
+ credentialId?: SortOrder
22934
+ currentStep?: SortOrder
22935
+ maxSteps?: SortOrder
22936
+ stepData?: SortOrder
22937
+ expiresAt?: SortOrder
22938
+ completed?: SortOrder
22939
+ createdAt?: SortOrder
22940
+ updatedAt?: SortOrder
22941
+ }
22942
+
22943
+ export type AuthorizationSessionWhereUniqueInput = Prisma.AtLeast<{
22944
+ id?: string
22945
+ sessionId?: string
22946
+ AND?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
22947
+ OR?: AuthorizationSessionWhereInput[]
22948
+ NOT?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
22949
+ userId?: StringFilter<"AuthorizationSession"> | string
22950
+ entityType?: StringFilter<"AuthorizationSession"> | string
22951
+ credentialId?: StringNullableFilter<"AuthorizationSession"> | string | null
22952
+ currentStep?: IntFilter<"AuthorizationSession"> | number
22953
+ maxSteps?: IntFilter<"AuthorizationSession"> | number
22954
+ stepData?: JsonFilter<"AuthorizationSession">
22955
+ expiresAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
22956
+ completed?: BoolFilter<"AuthorizationSession"> | boolean
22957
+ createdAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
22958
+ updatedAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
22959
+ }, "id" | "sessionId">
22960
+
22961
+ export type AuthorizationSessionOrderByWithAggregationInput = {
22962
+ id?: SortOrder
22963
+ sessionId?: SortOrder
22964
+ userId?: SortOrder
22965
+ entityType?: SortOrder
22966
+ credentialId?: SortOrder
22967
+ currentStep?: SortOrder
22968
+ maxSteps?: SortOrder
22969
+ stepData?: SortOrder
22970
+ expiresAt?: SortOrder
22971
+ completed?: SortOrder
22972
+ createdAt?: SortOrder
22973
+ updatedAt?: SortOrder
22974
+ _count?: AuthorizationSessionCountOrderByAggregateInput
22975
+ _avg?: AuthorizationSessionAvgOrderByAggregateInput
22976
+ _max?: AuthorizationSessionMaxOrderByAggregateInput
22977
+ _min?: AuthorizationSessionMinOrderByAggregateInput
22978
+ _sum?: AuthorizationSessionSumOrderByAggregateInput
22979
+ }
22980
+
22981
+ export type AuthorizationSessionScalarWhereWithAggregatesInput = {
22982
+ AND?: AuthorizationSessionScalarWhereWithAggregatesInput | AuthorizationSessionScalarWhereWithAggregatesInput[]
22983
+ OR?: AuthorizationSessionScalarWhereWithAggregatesInput[]
22984
+ NOT?: AuthorizationSessionScalarWhereWithAggregatesInput | AuthorizationSessionScalarWhereWithAggregatesInput[]
22985
+ id?: StringWithAggregatesFilter<"AuthorizationSession"> | string
22986
+ sessionId?: StringWithAggregatesFilter<"AuthorizationSession"> | string
22987
+ userId?: StringWithAggregatesFilter<"AuthorizationSession"> | string
22988
+ entityType?: StringWithAggregatesFilter<"AuthorizationSession"> | string
22989
+ credentialId?: StringNullableWithAggregatesFilter<"AuthorizationSession"> | string | null
22990
+ currentStep?: IntWithAggregatesFilter<"AuthorizationSession"> | number
22991
+ maxSteps?: IntWithAggregatesFilter<"AuthorizationSession"> | number
22992
+ stepData?: JsonWithAggregatesFilter<"AuthorizationSession">
22993
+ expiresAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
22994
+ completed?: BoolWithAggregatesFilter<"AuthorizationSession"> | boolean
22995
+ createdAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
22996
+ updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
22997
+ }
22998
+
22999
+ export type OrganizationMembershipWhereInput = {
23000
+ AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
23001
+ OR?: OrganizationMembershipWhereInput[]
23002
+ NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
23003
+ id?: StringFilter<"OrganizationMembership"> | string
23004
+ individualUserId?: StringFilter<"OrganizationMembership"> | string
23005
+ organizationUserId?: StringFilter<"OrganizationMembership"> | string
23006
+ orgRole?: StringFilter<"OrganizationMembership"> | string
23007
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
23008
+ individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
23009
+ organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
23010
+ }
23011
+
23012
+ export type OrganizationMembershipOrderByWithRelationInput = {
23013
+ id?: SortOrder
23014
+ individualUserId?: SortOrder
23015
+ organizationUserId?: SortOrder
23016
+ orgRole?: SortOrder
23017
+ createdAt?: SortOrder
23018
+ individualUser?: UserOrderByWithRelationInput
23019
+ organizationUser?: UserOrderByWithRelationInput
23020
+ }
23021
+
23022
+ export type OrganizationMembershipWhereUniqueInput = Prisma.AtLeast<{
23023
+ id?: string
23024
+ individualUserId_organizationUserId?: OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput
23025
+ AND?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
23026
+ OR?: OrganizationMembershipWhereInput[]
23027
+ NOT?: OrganizationMembershipWhereInput | OrganizationMembershipWhereInput[]
23028
+ individualUserId?: StringFilter<"OrganizationMembership"> | string
23029
+ organizationUserId?: StringFilter<"OrganizationMembership"> | string
23030
+ orgRole?: StringFilter<"OrganizationMembership"> | string
23031
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
23032
+ individualUser?: XOR<UserScalarRelationFilter, UserWhereInput>
23033
+ organizationUser?: XOR<UserScalarRelationFilter, UserWhereInput>
23034
+ }, "id" | "individualUserId_organizationUserId">
23035
+
23036
+ export type OrganizationMembershipOrderByWithAggregationInput = {
23037
+ id?: SortOrder
23038
+ individualUserId?: SortOrder
23039
+ organizationUserId?: SortOrder
23040
+ orgRole?: SortOrder
23041
+ createdAt?: SortOrder
23042
+ _count?: OrganizationMembershipCountOrderByAggregateInput
23043
+ _max?: OrganizationMembershipMaxOrderByAggregateInput
23044
+ _min?: OrganizationMembershipMinOrderByAggregateInput
23045
+ }
23046
+
23047
+ export type OrganizationMembershipScalarWhereWithAggregatesInput = {
23048
+ AND?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
23049
+ OR?: OrganizationMembershipScalarWhereWithAggregatesInput[]
23050
+ NOT?: OrganizationMembershipScalarWhereWithAggregatesInput | OrganizationMembershipScalarWhereWithAggregatesInput[]
23051
+ id?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23052
+ individualUserId?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23053
+ organizationUserId?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23054
+ orgRole?: StringWithAggregatesFilter<"OrganizationMembership"> | string
23055
+ createdAt?: DateTimeWithAggregatesFilter<"OrganizationMembership"> | Date | string
23056
+ }
23057
+
20553
23058
  export type UserCreateInput = {
20554
23059
  id?: string
20555
23060
  type: $Enums.UserType
@@ -20568,6 +23073,8 @@ export namespace Prisma {
20568
23073
  entities?: EntityCreateNestedManyWithoutUserInput
20569
23074
  integrations?: IntegrationCreateNestedManyWithoutUserInput
20570
23075
  processes?: ProcessCreateNestedManyWithoutUserInput
23076
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
23077
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
20571
23078
  }
20572
23079
 
20573
23080
  export type UserUncheckedCreateInput = {
@@ -20588,6 +23095,8 @@ export namespace Prisma {
20588
23095
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
20589
23096
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
20590
23097
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
23098
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
23099
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
20591
23100
  }
20592
23101
 
20593
23102
  export type UserUpdateInput = {
@@ -20607,6 +23116,8 @@ export namespace Prisma {
20607
23116
  entities?: EntityUpdateManyWithoutUserNestedInput
20608
23117
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
20609
23118
  processes?: ProcessUpdateManyWithoutUserNestedInput
23119
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
23120
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
20610
23121
  }
20611
23122
 
20612
23123
  export type UserUncheckedUpdateInput = {
@@ -20626,6 +23137,8 @@ export namespace Prisma {
20626
23137
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
20627
23138
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
20628
23139
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
23140
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
23141
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
20629
23142
  }
20630
23143
 
20631
23144
  export type UserCreateManyInput = {
@@ -20792,6 +23305,7 @@ export namespace Prisma {
20792
23305
  name?: string | null
20793
23306
  moduleName?: string | null
20794
23307
  externalId?: string | null
23308
+ organizationId?: string | null
20795
23309
  data?: InputJsonValue
20796
23310
  createdAt?: Date | string
20797
23311
  updatedAt?: Date | string
@@ -20810,6 +23324,7 @@ export namespace Prisma {
20810
23324
  name?: string | null
20811
23325
  moduleName?: string | null
20812
23326
  externalId?: string | null
23327
+ organizationId?: string | null
20813
23328
  data?: InputJsonValue
20814
23329
  createdAt?: Date | string
20815
23330
  updatedAt?: Date | string
@@ -20825,6 +23340,7 @@ export namespace Prisma {
20825
23340
  name?: NullableStringFieldUpdateOperationsInput | string | null
20826
23341
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
20827
23342
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
23343
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20828
23344
  data?: InputJsonValue | InputJsonValue
20829
23345
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20830
23346
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -20842,6 +23358,7 @@ export namespace Prisma {
20842
23358
  name?: NullableStringFieldUpdateOperationsInput | string | null
20843
23359
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
20844
23360
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
23361
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20845
23362
  data?: InputJsonValue | InputJsonValue
20846
23363
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20847
23364
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -20860,6 +23377,7 @@ export namespace Prisma {
20860
23377
  name?: string | null
20861
23378
  moduleName?: string | null
20862
23379
  externalId?: string | null
23380
+ organizationId?: string | null
20863
23381
  data?: InputJsonValue
20864
23382
  createdAt?: Date | string
20865
23383
  updatedAt?: Date | string
@@ -20871,6 +23389,7 @@ export namespace Prisma {
20871
23389
  name?: NullableStringFieldUpdateOperationsInput | string | null
20872
23390
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
20873
23391
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
23392
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20874
23393
  data?: InputJsonValue | InputJsonValue
20875
23394
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20876
23395
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -20882,6 +23401,7 @@ export namespace Prisma {
20882
23401
  name?: NullableStringFieldUpdateOperationsInput | string | null
20883
23402
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
20884
23403
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
23404
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20885
23405
  data?: InputJsonValue | InputJsonValue
20886
23406
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
20887
23407
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -20892,6 +23412,7 @@ export namespace Prisma {
20892
23412
  export type IntegrationCreateInput = {
20893
23413
  id?: string
20894
23414
  status?: $Enums.IntegrationStatus
23415
+ organizationId?: string | null
20895
23416
  config?: InputJsonValue | null
20896
23417
  version?: string | null
20897
23418
  errors?: InputJsonValue
@@ -20912,6 +23433,7 @@ export namespace Prisma {
20912
23433
  id?: string
20913
23434
  userId?: string | null
20914
23435
  status?: $Enums.IntegrationStatus
23436
+ organizationId?: string | null
20915
23437
  config?: InputJsonValue | null
20916
23438
  version?: string | null
20917
23439
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -20930,6 +23452,7 @@ export namespace Prisma {
20930
23452
 
20931
23453
  export type IntegrationUpdateInput = {
20932
23454
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
23455
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20933
23456
  config?: InputJsonValue | InputJsonValue | null
20934
23457
  version?: NullableStringFieldUpdateOperationsInput | string | null
20935
23458
  errors?: InputJsonValue | InputJsonValue
@@ -20949,6 +23472,7 @@ export namespace Prisma {
20949
23472
  export type IntegrationUncheckedUpdateInput = {
20950
23473
  userId?: NullableStringFieldUpdateOperationsInput | string | null
20951
23474
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
23475
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20952
23476
  config?: InputJsonValue | InputJsonValue | null
20953
23477
  version?: NullableStringFieldUpdateOperationsInput | string | null
20954
23478
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -20969,6 +23493,7 @@ export namespace Prisma {
20969
23493
  id?: string
20970
23494
  userId?: string | null
20971
23495
  status?: $Enums.IntegrationStatus
23496
+ organizationId?: string | null
20972
23497
  config?: InputJsonValue | null
20973
23498
  version?: string | null
20974
23499
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -20982,6 +23507,7 @@ export namespace Prisma {
20982
23507
 
20983
23508
  export type IntegrationUpdateManyMutationInput = {
20984
23509
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
23510
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20985
23511
  config?: InputJsonValue | InputJsonValue | null
20986
23512
  version?: NullableStringFieldUpdateOperationsInput | string | null
20987
23513
  errors?: InputJsonValue | InputJsonValue
@@ -20995,6 +23521,7 @@ export namespace Prisma {
20995
23521
  export type IntegrationUncheckedUpdateManyInput = {
20996
23522
  userId?: NullableStringFieldUpdateOperationsInput | string | null
20997
23523
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
23524
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
20998
23525
  config?: InputJsonValue | InputJsonValue | null
20999
23526
  version?: NullableStringFieldUpdateOperationsInput | string | null
21000
23527
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -21697,6 +24224,157 @@ export namespace Prisma {
21697
24224
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
21698
24225
  }
21699
24226
 
24227
+ export type AuthorizationSessionCreateInput = {
24228
+ id?: string
24229
+ sessionId: string
24230
+ userId: string
24231
+ entityType: string
24232
+ credentialId?: string | null
24233
+ currentStep?: number
24234
+ maxSteps: number
24235
+ stepData?: InputJsonValue
24236
+ expiresAt: Date | string
24237
+ completed?: boolean
24238
+ createdAt?: Date | string
24239
+ updatedAt?: Date | string
24240
+ }
24241
+
24242
+ export type AuthorizationSessionUncheckedCreateInput = {
24243
+ id?: string
24244
+ sessionId: string
24245
+ userId: string
24246
+ entityType: string
24247
+ credentialId?: string | null
24248
+ currentStep?: number
24249
+ maxSteps: number
24250
+ stepData?: InputJsonValue
24251
+ expiresAt: Date | string
24252
+ completed?: boolean
24253
+ createdAt?: Date | string
24254
+ updatedAt?: Date | string
24255
+ }
24256
+
24257
+ export type AuthorizationSessionUpdateInput = {
24258
+ sessionId?: StringFieldUpdateOperationsInput | string
24259
+ userId?: StringFieldUpdateOperationsInput | string
24260
+ entityType?: StringFieldUpdateOperationsInput | string
24261
+ credentialId?: NullableStringFieldUpdateOperationsInput | string | null
24262
+ currentStep?: IntFieldUpdateOperationsInput | number
24263
+ maxSteps?: IntFieldUpdateOperationsInput | number
24264
+ stepData?: InputJsonValue | InputJsonValue
24265
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
24266
+ completed?: BoolFieldUpdateOperationsInput | boolean
24267
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24268
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24269
+ }
24270
+
24271
+ export type AuthorizationSessionUncheckedUpdateInput = {
24272
+ sessionId?: StringFieldUpdateOperationsInput | string
24273
+ userId?: StringFieldUpdateOperationsInput | string
24274
+ entityType?: StringFieldUpdateOperationsInput | string
24275
+ credentialId?: NullableStringFieldUpdateOperationsInput | string | null
24276
+ currentStep?: IntFieldUpdateOperationsInput | number
24277
+ maxSteps?: IntFieldUpdateOperationsInput | number
24278
+ stepData?: InputJsonValue | InputJsonValue
24279
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
24280
+ completed?: BoolFieldUpdateOperationsInput | boolean
24281
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24282
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24283
+ }
24284
+
24285
+ export type AuthorizationSessionCreateManyInput = {
24286
+ id?: string
24287
+ sessionId: string
24288
+ userId: string
24289
+ entityType: string
24290
+ credentialId?: string | null
24291
+ currentStep?: number
24292
+ maxSteps: number
24293
+ stepData?: InputJsonValue
24294
+ expiresAt: Date | string
24295
+ completed?: boolean
24296
+ createdAt?: Date | string
24297
+ updatedAt?: Date | string
24298
+ }
24299
+
24300
+ export type AuthorizationSessionUpdateManyMutationInput = {
24301
+ sessionId?: StringFieldUpdateOperationsInput | string
24302
+ userId?: StringFieldUpdateOperationsInput | string
24303
+ entityType?: StringFieldUpdateOperationsInput | string
24304
+ credentialId?: NullableStringFieldUpdateOperationsInput | string | null
24305
+ currentStep?: IntFieldUpdateOperationsInput | number
24306
+ maxSteps?: IntFieldUpdateOperationsInput | number
24307
+ stepData?: InputJsonValue | InputJsonValue
24308
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
24309
+ completed?: BoolFieldUpdateOperationsInput | boolean
24310
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24311
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24312
+ }
24313
+
24314
+ export type AuthorizationSessionUncheckedUpdateManyInput = {
24315
+ sessionId?: StringFieldUpdateOperationsInput | string
24316
+ userId?: StringFieldUpdateOperationsInput | string
24317
+ entityType?: StringFieldUpdateOperationsInput | string
24318
+ credentialId?: NullableStringFieldUpdateOperationsInput | string | null
24319
+ currentStep?: IntFieldUpdateOperationsInput | number
24320
+ maxSteps?: IntFieldUpdateOperationsInput | number
24321
+ stepData?: InputJsonValue | InputJsonValue
24322
+ expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
24323
+ completed?: BoolFieldUpdateOperationsInput | boolean
24324
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24325
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
24326
+ }
24327
+
24328
+ export type OrganizationMembershipCreateInput = {
24329
+ id?: string
24330
+ orgRole?: string
24331
+ createdAt?: Date | string
24332
+ individualUser: UserCreateNestedOneWithoutMembershipsInput
24333
+ organizationUser: UserCreateNestedOneWithoutOrgMembersInput
24334
+ }
24335
+
24336
+ export type OrganizationMembershipUncheckedCreateInput = {
24337
+ id?: string
24338
+ individualUserId: string
24339
+ organizationUserId: string
24340
+ orgRole?: string
24341
+ createdAt?: Date | string
24342
+ }
24343
+
24344
+ export type OrganizationMembershipUpdateInput = {
24345
+ orgRole?: StringFieldUpdateOperationsInput | string
24346
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24347
+ individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
24348
+ organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
24349
+ }
24350
+
24351
+ export type OrganizationMembershipUncheckedUpdateInput = {
24352
+ individualUserId?: StringFieldUpdateOperationsInput | string
24353
+ organizationUserId?: StringFieldUpdateOperationsInput | string
24354
+ orgRole?: StringFieldUpdateOperationsInput | string
24355
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24356
+ }
24357
+
24358
+ export type OrganizationMembershipCreateManyInput = {
24359
+ id?: string
24360
+ individualUserId: string
24361
+ organizationUserId: string
24362
+ orgRole?: string
24363
+ createdAt?: Date | string
24364
+ }
24365
+
24366
+ export type OrganizationMembershipUpdateManyMutationInput = {
24367
+ orgRole?: StringFieldUpdateOperationsInput | string
24368
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24369
+ }
24370
+
24371
+ export type OrganizationMembershipUncheckedUpdateManyInput = {
24372
+ individualUserId?: StringFieldUpdateOperationsInput | string
24373
+ organizationUserId?: StringFieldUpdateOperationsInput | string
24374
+ orgRole?: StringFieldUpdateOperationsInput | string
24375
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
24376
+ }
24377
+
21700
24378
  export type StringFilter<$PrismaModel = never> = {
21701
24379
  equals?: string | StringFieldRefInput<$PrismaModel>
21702
24380
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -21787,6 +24465,12 @@ export namespace Prisma {
21787
24465
  none?: ProcessWhereInput
21788
24466
  }
21789
24467
 
24468
+ export type OrganizationMembershipListRelationFilter = {
24469
+ every?: OrganizationMembershipWhereInput
24470
+ some?: OrganizationMembershipWhereInput
24471
+ none?: OrganizationMembershipWhereInput
24472
+ }
24473
+
21790
24474
  export type UserOrderByRelationAggregateInput = {
21791
24475
  _count?: SortOrder
21792
24476
  }
@@ -21811,6 +24495,10 @@ export namespace Prisma {
21811
24495
  _count?: SortOrder
21812
24496
  }
21813
24497
 
24498
+ export type OrganizationMembershipOrderByRelationAggregateInput = {
24499
+ _count?: SortOrder
24500
+ }
24501
+
21814
24502
  export type UserUsernameAppUserIdCompoundUniqueInput = {
21815
24503
  username: string
21816
24504
  appUserId: string
@@ -22093,6 +24781,7 @@ export namespace Prisma {
22093
24781
  name?: SortOrder
22094
24782
  moduleName?: SortOrder
22095
24783
  externalId?: SortOrder
24784
+ organizationId?: SortOrder
22096
24785
  data?: SortOrder
22097
24786
  createdAt?: SortOrder
22098
24787
  updatedAt?: SortOrder
@@ -22107,6 +24796,7 @@ export namespace Prisma {
22107
24796
  name?: SortOrder
22108
24797
  moduleName?: SortOrder
22109
24798
  externalId?: SortOrder
24799
+ organizationId?: SortOrder
22110
24800
  createdAt?: SortOrder
22111
24801
  updatedAt?: SortOrder
22112
24802
  }
@@ -22118,6 +24808,7 @@ export namespace Prisma {
22118
24808
  name?: SortOrder
22119
24809
  moduleName?: SortOrder
22120
24810
  externalId?: SortOrder
24811
+ organizationId?: SortOrder
22121
24812
  createdAt?: SortOrder
22122
24813
  updatedAt?: SortOrder
22123
24814
  }
@@ -22165,6 +24856,7 @@ export namespace Prisma {
22165
24856
  id?: SortOrder
22166
24857
  userId?: SortOrder
22167
24858
  status?: SortOrder
24859
+ organizationId?: SortOrder
22168
24860
  config?: SortOrder
22169
24861
  version?: SortOrder
22170
24862
  entityIds?: SortOrder
@@ -22180,6 +24872,7 @@ export namespace Prisma {
22180
24872
  id?: SortOrder
22181
24873
  userId?: SortOrder
22182
24874
  status?: SortOrder
24875
+ organizationId?: SortOrder
22183
24876
  version?: SortOrder
22184
24877
  createdAt?: SortOrder
22185
24878
  updatedAt?: SortOrder
@@ -22189,6 +24882,7 @@ export namespace Prisma {
22189
24882
  id?: SortOrder
22190
24883
  userId?: SortOrder
22191
24884
  status?: SortOrder
24885
+ organizationId?: SortOrder
22192
24886
  version?: SortOrder
22193
24887
  createdAt?: SortOrder
22194
24888
  updatedAt?: SortOrder
@@ -22631,6 +25325,115 @@ export namespace Prisma {
22631
25325
  _max?: NestedBigIntFilter<$PrismaModel>
22632
25326
  }
22633
25327
 
25328
+ export type IntFilter<$PrismaModel = never> = {
25329
+ equals?: number | IntFieldRefInput<$PrismaModel>
25330
+ in?: number[] | ListIntFieldRefInput<$PrismaModel>
25331
+ notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
25332
+ lt?: number | IntFieldRefInput<$PrismaModel>
25333
+ lte?: number | IntFieldRefInput<$PrismaModel>
25334
+ gt?: number | IntFieldRefInput<$PrismaModel>
25335
+ gte?: number | IntFieldRefInput<$PrismaModel>
25336
+ not?: NestedIntFilter<$PrismaModel> | number
25337
+ }
25338
+
25339
+ export type AuthorizationSessionCountOrderByAggregateInput = {
25340
+ id?: SortOrder
25341
+ sessionId?: SortOrder
25342
+ userId?: SortOrder
25343
+ entityType?: SortOrder
25344
+ credentialId?: SortOrder
25345
+ currentStep?: SortOrder
25346
+ maxSteps?: SortOrder
25347
+ stepData?: SortOrder
25348
+ expiresAt?: SortOrder
25349
+ completed?: SortOrder
25350
+ createdAt?: SortOrder
25351
+ updatedAt?: SortOrder
25352
+ }
25353
+
25354
+ export type AuthorizationSessionAvgOrderByAggregateInput = {
25355
+ currentStep?: SortOrder
25356
+ maxSteps?: SortOrder
25357
+ }
25358
+
25359
+ export type AuthorizationSessionMaxOrderByAggregateInput = {
25360
+ id?: SortOrder
25361
+ sessionId?: SortOrder
25362
+ userId?: SortOrder
25363
+ entityType?: SortOrder
25364
+ credentialId?: SortOrder
25365
+ currentStep?: SortOrder
25366
+ maxSteps?: SortOrder
25367
+ expiresAt?: SortOrder
25368
+ completed?: SortOrder
25369
+ createdAt?: SortOrder
25370
+ updatedAt?: SortOrder
25371
+ }
25372
+
25373
+ export type AuthorizationSessionMinOrderByAggregateInput = {
25374
+ id?: SortOrder
25375
+ sessionId?: SortOrder
25376
+ userId?: SortOrder
25377
+ entityType?: SortOrder
25378
+ credentialId?: SortOrder
25379
+ currentStep?: SortOrder
25380
+ maxSteps?: SortOrder
25381
+ expiresAt?: SortOrder
25382
+ completed?: SortOrder
25383
+ createdAt?: SortOrder
25384
+ updatedAt?: SortOrder
25385
+ }
25386
+
25387
+ export type AuthorizationSessionSumOrderByAggregateInput = {
25388
+ currentStep?: SortOrder
25389
+ maxSteps?: SortOrder
25390
+ }
25391
+
25392
+ export type IntWithAggregatesFilter<$PrismaModel = never> = {
25393
+ equals?: number | IntFieldRefInput<$PrismaModel>
25394
+ in?: number[] | ListIntFieldRefInput<$PrismaModel>
25395
+ notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
25396
+ lt?: number | IntFieldRefInput<$PrismaModel>
25397
+ lte?: number | IntFieldRefInput<$PrismaModel>
25398
+ gt?: number | IntFieldRefInput<$PrismaModel>
25399
+ gte?: number | IntFieldRefInput<$PrismaModel>
25400
+ not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
25401
+ _count?: NestedIntFilter<$PrismaModel>
25402
+ _avg?: NestedFloatFilter<$PrismaModel>
25403
+ _sum?: NestedIntFilter<$PrismaModel>
25404
+ _min?: NestedIntFilter<$PrismaModel>
25405
+ _max?: NestedIntFilter<$PrismaModel>
25406
+ }
25407
+
25408
+ export type OrganizationMembershipIndividualUserIdOrganizationUserIdCompoundUniqueInput = {
25409
+ individualUserId: string
25410
+ organizationUserId: string
25411
+ }
25412
+
25413
+ export type OrganizationMembershipCountOrderByAggregateInput = {
25414
+ id?: SortOrder
25415
+ individualUserId?: SortOrder
25416
+ organizationUserId?: SortOrder
25417
+ orgRole?: SortOrder
25418
+ createdAt?: SortOrder
25419
+ }
25420
+
25421
+ export type OrganizationMembershipMaxOrderByAggregateInput = {
25422
+ id?: SortOrder
25423
+ individualUserId?: SortOrder
25424
+ organizationUserId?: SortOrder
25425
+ orgRole?: SortOrder
25426
+ createdAt?: SortOrder
25427
+ }
25428
+
25429
+ export type OrganizationMembershipMinOrderByAggregateInput = {
25430
+ id?: SortOrder
25431
+ individualUserId?: SortOrder
25432
+ organizationUserId?: SortOrder
25433
+ orgRole?: SortOrder
25434
+ createdAt?: SortOrder
25435
+ }
25436
+
22634
25437
  export type UserCreateNestedOneWithoutMembersInput = {
22635
25438
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
22636
25439
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -22679,6 +25482,20 @@ export namespace Prisma {
22679
25482
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
22680
25483
  }
22681
25484
 
25485
+ export type OrganizationMembershipCreateNestedManyWithoutIndividualUserInput = {
25486
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25487
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25488
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25489
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25490
+ }
25491
+
25492
+ export type OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput = {
25493
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25494
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25495
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25496
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25497
+ }
25498
+
22682
25499
  export type UserUncheckedCreateNestedManyWithoutOrganizationInput = {
22683
25500
  create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
22684
25501
  connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
@@ -22721,6 +25538,20 @@ export namespace Prisma {
22721
25538
  connect?: ProcessWhereUniqueInput | ProcessWhereUniqueInput[]
22722
25539
  }
22723
25540
 
25541
+ export type OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput = {
25542
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25543
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25544
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25545
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25546
+ }
25547
+
25548
+ export type OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput = {
25549
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25550
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25551
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25552
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25553
+ }
25554
+
22724
25555
  export type EnumUserTypeFieldUpdateOperationsInput = {
22725
25556
  set?: $Enums.UserType
22726
25557
  }
@@ -22828,6 +25659,34 @@ export namespace Prisma {
22828
25659
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
22829
25660
  }
22830
25661
 
25662
+ export type OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput = {
25663
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25664
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25665
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
25666
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25667
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25668
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25669
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25670
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25671
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
25672
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
25673
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25674
+ }
25675
+
25676
+ export type OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput = {
25677
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25678
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25679
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
25680
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25681
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25682
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25683
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25684
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25685
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
25686
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
25687
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25688
+ }
25689
+
22831
25690
  export type UserUncheckedUpdateManyWithoutOrganizationNestedInput = {
22832
25691
  create?: XOR<UserCreateWithoutOrganizationInput, UserUncheckedCreateWithoutOrganizationInput> | UserCreateWithoutOrganizationInput[] | UserUncheckedCreateWithoutOrganizationInput[]
22833
25692
  connectOrCreate?: UserCreateOrConnectWithoutOrganizationInput | UserCreateOrConnectWithoutOrganizationInput[]
@@ -22912,6 +25771,34 @@ export namespace Prisma {
22912
25771
  deleteMany?: ProcessScalarWhereInput | ProcessScalarWhereInput[]
22913
25772
  }
22914
25773
 
25774
+ export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput = {
25775
+ create?: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput> | OrganizationMembershipCreateWithoutIndividualUserInput[] | OrganizationMembershipUncheckedCreateWithoutIndividualUserInput[]
25776
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutIndividualUserInput | OrganizationMembershipCreateOrConnectWithoutIndividualUserInput[]
25777
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput[]
25778
+ createMany?: OrganizationMembershipCreateManyIndividualUserInputEnvelope
25779
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25780
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25781
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25782
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25783
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput[]
25784
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput | OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput[]
25785
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25786
+ }
25787
+
25788
+ export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput = {
25789
+ create?: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput> | OrganizationMembershipCreateWithoutOrganizationUserInput[] | OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput[]
25790
+ connectOrCreate?: OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput | OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput[]
25791
+ upsert?: OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput[]
25792
+ createMany?: OrganizationMembershipCreateManyOrganizationUserInputEnvelope
25793
+ set?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25794
+ disconnect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25795
+ delete?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25796
+ connect?: OrganizationMembershipWhereUniqueInput | OrganizationMembershipWhereUniqueInput[]
25797
+ update?: OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput | OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput[]
25798
+ updateMany?: OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput | OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput[]
25799
+ deleteMany?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
25800
+ }
25801
+
22915
25802
  export type UserCreateNestedOneWithoutTokensInput = {
22916
25803
  create?: XOR<UserCreateWithoutTokensInput, UserUncheckedCreateWithoutTokensInput>
22917
25804
  connectOrCreate?: UserCreateOrConnectWithoutTokensInput
@@ -23742,6 +26629,42 @@ export namespace Prisma {
23742
26629
  divide?: bigint | number
23743
26630
  }
23744
26631
 
26632
+ export type IntFieldUpdateOperationsInput = {
26633
+ set?: number
26634
+ increment?: number
26635
+ decrement?: number
26636
+ multiply?: number
26637
+ divide?: number
26638
+ }
26639
+
26640
+ export type UserCreateNestedOneWithoutMembershipsInput = {
26641
+ create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
26642
+ connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
26643
+ connect?: UserWhereUniqueInput
26644
+ }
26645
+
26646
+ export type UserCreateNestedOneWithoutOrgMembersInput = {
26647
+ create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
26648
+ connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
26649
+ connect?: UserWhereUniqueInput
26650
+ }
26651
+
26652
+ export type UserUpdateOneRequiredWithoutMembershipsNestedInput = {
26653
+ create?: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
26654
+ connectOrCreate?: UserCreateOrConnectWithoutMembershipsInput
26655
+ upsert?: UserUpsertWithoutMembershipsInput
26656
+ connect?: UserWhereUniqueInput
26657
+ update?: XOR<XOR<UserUpdateToOneWithWhereWithoutMembershipsInput, UserUpdateWithoutMembershipsInput>, UserUncheckedUpdateWithoutMembershipsInput>
26658
+ }
26659
+
26660
+ export type UserUpdateOneRequiredWithoutOrgMembersNestedInput = {
26661
+ create?: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
26662
+ connectOrCreate?: UserCreateOrConnectWithoutOrgMembersInput
26663
+ upsert?: UserUpsertWithoutOrgMembersInput
26664
+ connect?: UserWhereUniqueInput
26665
+ update?: XOR<XOR<UserUpdateToOneWithWhereWithoutOrgMembersInput, UserUpdateWithoutOrgMembersInput>, UserUncheckedUpdateWithoutOrgMembersInput>
26666
+ }
26667
+
23745
26668
  export type NestedStringFilter<$PrismaModel = never> = {
23746
26669
  equals?: string | StringFieldRefInput<$PrismaModel>
23747
26670
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -24038,6 +26961,22 @@ export namespace Prisma {
24038
26961
  not?: NestedFloatFilter<$PrismaModel> | number
24039
26962
  }
24040
26963
 
26964
+ export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
26965
+ equals?: number | IntFieldRefInput<$PrismaModel>
26966
+ in?: number[] | ListIntFieldRefInput<$PrismaModel>
26967
+ notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
26968
+ lt?: number | IntFieldRefInput<$PrismaModel>
26969
+ lte?: number | IntFieldRefInput<$PrismaModel>
26970
+ gt?: number | IntFieldRefInput<$PrismaModel>
26971
+ gte?: number | IntFieldRefInput<$PrismaModel>
26972
+ not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
26973
+ _count?: NestedIntFilter<$PrismaModel>
26974
+ _avg?: NestedFloatFilter<$PrismaModel>
26975
+ _sum?: NestedIntFilter<$PrismaModel>
26976
+ _min?: NestedIntFilter<$PrismaModel>
26977
+ _max?: NestedIntFilter<$PrismaModel>
26978
+ }
26979
+
24041
26980
  export type UserCreateWithoutMembersInput = {
24042
26981
  id?: string
24043
26982
  type: $Enums.UserType
@@ -24055,6 +26994,8 @@ export namespace Prisma {
24055
26994
  entities?: EntityCreateNestedManyWithoutUserInput
24056
26995
  integrations?: IntegrationCreateNestedManyWithoutUserInput
24057
26996
  processes?: ProcessCreateNestedManyWithoutUserInput
26997
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
26998
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
24058
26999
  }
24059
27000
 
24060
27001
  export type UserUncheckedCreateWithoutMembersInput = {
@@ -24074,6 +27015,8 @@ export namespace Prisma {
24074
27015
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
24075
27016
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
24076
27017
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27018
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27019
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
24077
27020
  }
24078
27021
 
24079
27022
  export type UserCreateOrConnectWithoutMembersInput = {
@@ -24098,6 +27041,8 @@ export namespace Prisma {
24098
27041
  entities?: EntityCreateNestedManyWithoutUserInput
24099
27042
  integrations?: IntegrationCreateNestedManyWithoutUserInput
24100
27043
  processes?: ProcessCreateNestedManyWithoutUserInput
27044
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27045
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
24101
27046
  }
24102
27047
 
24103
27048
  export type UserUncheckedCreateWithoutOrganizationInput = {
@@ -24117,6 +27062,8 @@ export namespace Prisma {
24117
27062
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
24118
27063
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
24119
27064
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27065
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27066
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
24120
27067
  }
24121
27068
 
24122
27069
  export type UserCreateOrConnectWithoutOrganizationInput = {
@@ -24185,6 +27132,7 @@ export namespace Prisma {
24185
27132
  name?: string | null
24186
27133
  moduleName?: string | null
24187
27134
  externalId?: string | null
27135
+ organizationId?: string | null
24188
27136
  data?: InputJsonValue
24189
27137
  createdAt?: Date | string
24190
27138
  updatedAt?: Date | string
@@ -24201,6 +27149,7 @@ export namespace Prisma {
24201
27149
  name?: string | null
24202
27150
  moduleName?: string | null
24203
27151
  externalId?: string | null
27152
+ organizationId?: string | null
24204
27153
  data?: InputJsonValue
24205
27154
  createdAt?: Date | string
24206
27155
  updatedAt?: Date | string
@@ -24224,6 +27173,7 @@ export namespace Prisma {
24224
27173
  export type IntegrationCreateWithoutUserInput = {
24225
27174
  id?: string
24226
27175
  status?: $Enums.IntegrationStatus
27176
+ organizationId?: string | null
24227
27177
  config?: InputJsonValue | null
24228
27178
  version?: string | null
24229
27179
  errors?: InputJsonValue
@@ -24242,6 +27192,7 @@ export namespace Prisma {
24242
27192
  export type IntegrationUncheckedCreateWithoutUserInput = {
24243
27193
  id?: string
24244
27194
  status?: $Enums.IntegrationStatus
27195
+ organizationId?: string | null
24245
27196
  config?: InputJsonValue | null
24246
27197
  version?: string | null
24247
27198
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -24304,6 +27255,52 @@ export namespace Prisma {
24304
27255
  data: ProcessCreateManyUserInput | ProcessCreateManyUserInput[]
24305
27256
  }
24306
27257
 
27258
+ export type OrganizationMembershipCreateWithoutIndividualUserInput = {
27259
+ id?: string
27260
+ orgRole?: string
27261
+ createdAt?: Date | string
27262
+ organizationUser: UserCreateNestedOneWithoutOrgMembersInput
27263
+ }
27264
+
27265
+ export type OrganizationMembershipUncheckedCreateWithoutIndividualUserInput = {
27266
+ id?: string
27267
+ organizationUserId: string
27268
+ orgRole?: string
27269
+ createdAt?: Date | string
27270
+ }
27271
+
27272
+ export type OrganizationMembershipCreateOrConnectWithoutIndividualUserInput = {
27273
+ where: OrganizationMembershipWhereUniqueInput
27274
+ create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
27275
+ }
27276
+
27277
+ export type OrganizationMembershipCreateManyIndividualUserInputEnvelope = {
27278
+ data: OrganizationMembershipCreateManyIndividualUserInput | OrganizationMembershipCreateManyIndividualUserInput[]
27279
+ }
27280
+
27281
+ export type OrganizationMembershipCreateWithoutOrganizationUserInput = {
27282
+ id?: string
27283
+ orgRole?: string
27284
+ createdAt?: Date | string
27285
+ individualUser: UserCreateNestedOneWithoutMembershipsInput
27286
+ }
27287
+
27288
+ export type OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput = {
27289
+ id?: string
27290
+ individualUserId: string
27291
+ orgRole?: string
27292
+ createdAt?: Date | string
27293
+ }
27294
+
27295
+ export type OrganizationMembershipCreateOrConnectWithoutOrganizationUserInput = {
27296
+ where: OrganizationMembershipWhereUniqueInput
27297
+ create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
27298
+ }
27299
+
27300
+ export type OrganizationMembershipCreateManyOrganizationUserInputEnvelope = {
27301
+ data: OrganizationMembershipCreateManyOrganizationUserInput | OrganizationMembershipCreateManyOrganizationUserInput[]
27302
+ }
27303
+
24307
27304
  export type UserUpsertWithoutMembersInput = {
24308
27305
  update: XOR<UserUpdateWithoutMembersInput, UserUncheckedUpdateWithoutMembersInput>
24309
27306
  create: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
@@ -24331,6 +27328,8 @@ export namespace Prisma {
24331
27328
  entities?: EntityUpdateManyWithoutUserNestedInput
24332
27329
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
24333
27330
  processes?: ProcessUpdateManyWithoutUserNestedInput
27331
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
27332
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
24334
27333
  }
24335
27334
 
24336
27335
  export type UserUncheckedUpdateWithoutMembersInput = {
@@ -24349,6 +27348,8 @@ export namespace Prisma {
24349
27348
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
24350
27349
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
24351
27350
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
27351
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
27352
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
24352
27353
  }
24353
27354
 
24354
27355
  export type UserUpsertWithWhereUniqueWithoutOrganizationInput = {
@@ -24466,6 +27467,7 @@ export namespace Prisma {
24466
27467
  name?: StringNullableFilter<"Entity"> | string | null
24467
27468
  moduleName?: StringNullableFilter<"Entity"> | string | null
24468
27469
  externalId?: StringNullableFilter<"Entity"> | string | null
27470
+ organizationId?: StringNullableFilter<"Entity"> | string | null
24469
27471
  data?: JsonFilter<"Entity">
24470
27472
  createdAt?: DateTimeFilter<"Entity"> | Date | string
24471
27473
  updatedAt?: DateTimeFilter<"Entity"> | Date | string
@@ -24496,6 +27498,7 @@ export namespace Prisma {
24496
27498
  id?: StringFilter<"Integration"> | string
24497
27499
  userId?: StringNullableFilter<"Integration"> | string | null
24498
27500
  status?: EnumIntegrationStatusFilter<"Integration"> | $Enums.IntegrationStatus
27501
+ organizationId?: StringNullableFilter<"Integration"> | string | null
24499
27502
  config?: JsonNullableFilter<"Integration">
24500
27503
  version?: StringNullableFilter<"Integration"> | string | null
24501
27504
  entityIds?: StringNullableListFilter<"Integration">
@@ -24541,6 +27544,49 @@ export namespace Prisma {
24541
27544
  updatedAt?: DateTimeFilter<"Process"> | Date | string
24542
27545
  }
24543
27546
 
27547
+ export type OrganizationMembershipUpsertWithWhereUniqueWithoutIndividualUserInput = {
27548
+ where: OrganizationMembershipWhereUniqueInput
27549
+ update: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
27550
+ create: XOR<OrganizationMembershipCreateWithoutIndividualUserInput, OrganizationMembershipUncheckedCreateWithoutIndividualUserInput>
27551
+ }
27552
+
27553
+ export type OrganizationMembershipUpdateWithWhereUniqueWithoutIndividualUserInput = {
27554
+ where: OrganizationMembershipWhereUniqueInput
27555
+ data: XOR<OrganizationMembershipUpdateWithoutIndividualUserInput, OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput>
27556
+ }
27557
+
27558
+ export type OrganizationMembershipUpdateManyWithWhereWithoutIndividualUserInput = {
27559
+ where: OrganizationMembershipScalarWhereInput
27560
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput>
27561
+ }
27562
+
27563
+ export type OrganizationMembershipScalarWhereInput = {
27564
+ AND?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
27565
+ OR?: OrganizationMembershipScalarWhereInput[]
27566
+ NOT?: OrganizationMembershipScalarWhereInput | OrganizationMembershipScalarWhereInput[]
27567
+ id?: StringFilter<"OrganizationMembership"> | string
27568
+ individualUserId?: StringFilter<"OrganizationMembership"> | string
27569
+ organizationUserId?: StringFilter<"OrganizationMembership"> | string
27570
+ orgRole?: StringFilter<"OrganizationMembership"> | string
27571
+ createdAt?: DateTimeFilter<"OrganizationMembership"> | Date | string
27572
+ }
27573
+
27574
+ export type OrganizationMembershipUpsertWithWhereUniqueWithoutOrganizationUserInput = {
27575
+ where: OrganizationMembershipWhereUniqueInput
27576
+ update: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
27577
+ create: XOR<OrganizationMembershipCreateWithoutOrganizationUserInput, OrganizationMembershipUncheckedCreateWithoutOrganizationUserInput>
27578
+ }
27579
+
27580
+ export type OrganizationMembershipUpdateWithWhereUniqueWithoutOrganizationUserInput = {
27581
+ where: OrganizationMembershipWhereUniqueInput
27582
+ data: XOR<OrganizationMembershipUpdateWithoutOrganizationUserInput, OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput>
27583
+ }
27584
+
27585
+ export type OrganizationMembershipUpdateManyWithWhereWithoutOrganizationUserInput = {
27586
+ where: OrganizationMembershipScalarWhereInput
27587
+ data: XOR<OrganizationMembershipUpdateManyMutationInput, OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput>
27588
+ }
27589
+
24544
27590
  export type UserCreateWithoutTokensInput = {
24545
27591
  id?: string
24546
27592
  type: $Enums.UserType
@@ -24558,6 +27604,8 @@ export namespace Prisma {
24558
27604
  entities?: EntityCreateNestedManyWithoutUserInput
24559
27605
  integrations?: IntegrationCreateNestedManyWithoutUserInput
24560
27606
  processes?: ProcessCreateNestedManyWithoutUserInput
27607
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27608
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
24561
27609
  }
24562
27610
 
24563
27611
  export type UserUncheckedCreateWithoutTokensInput = {
@@ -24577,6 +27625,8 @@ export namespace Prisma {
24577
27625
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
24578
27626
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
24579
27627
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27628
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27629
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
24580
27630
  }
24581
27631
 
24582
27632
  export type UserCreateOrConnectWithoutTokensInput = {
@@ -24611,6 +27661,8 @@ export namespace Prisma {
24611
27661
  entities?: EntityUpdateManyWithoutUserNestedInput
24612
27662
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
24613
27663
  processes?: ProcessUpdateManyWithoutUserNestedInput
27664
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
27665
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
24614
27666
  }
24615
27667
 
24616
27668
  export type UserUncheckedUpdateWithoutTokensInput = {
@@ -24629,6 +27681,8 @@ export namespace Prisma {
24629
27681
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
24630
27682
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
24631
27683
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
27684
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
27685
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
24632
27686
  }
24633
27687
 
24634
27688
  export type UserCreateWithoutCredentialsInput = {
@@ -24648,6 +27702,8 @@ export namespace Prisma {
24648
27702
  entities?: EntityCreateNestedManyWithoutUserInput
24649
27703
  integrations?: IntegrationCreateNestedManyWithoutUserInput
24650
27704
  processes?: ProcessCreateNestedManyWithoutUserInput
27705
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27706
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
24651
27707
  }
24652
27708
 
24653
27709
  export type UserUncheckedCreateWithoutCredentialsInput = {
@@ -24667,6 +27723,8 @@ export namespace Prisma {
24667
27723
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
24668
27724
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
24669
27725
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27726
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27727
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
24670
27728
  }
24671
27729
 
24672
27730
  export type UserCreateOrConnectWithoutCredentialsInput = {
@@ -24679,6 +27737,7 @@ export namespace Prisma {
24679
27737
  name?: string | null
24680
27738
  moduleName?: string | null
24681
27739
  externalId?: string | null
27740
+ organizationId?: string | null
24682
27741
  data?: InputJsonValue
24683
27742
  createdAt?: Date | string
24684
27743
  updatedAt?: Date | string
@@ -24695,6 +27754,7 @@ export namespace Prisma {
24695
27754
  name?: string | null
24696
27755
  moduleName?: string | null
24697
27756
  externalId?: string | null
27757
+ organizationId?: string | null
24698
27758
  data?: InputJsonValue
24699
27759
  createdAt?: Date | string
24700
27760
  updatedAt?: Date | string
@@ -24742,6 +27802,8 @@ export namespace Prisma {
24742
27802
  entities?: EntityUpdateManyWithoutUserNestedInput
24743
27803
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
24744
27804
  processes?: ProcessUpdateManyWithoutUserNestedInput
27805
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
27806
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
24745
27807
  }
24746
27808
 
24747
27809
  export type UserUncheckedUpdateWithoutCredentialsInput = {
@@ -24760,6 +27822,8 @@ export namespace Prisma {
24760
27822
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
24761
27823
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
24762
27824
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
27825
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
27826
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
24763
27827
  }
24764
27828
 
24765
27829
  export type EntityUpsertWithWhereUniqueWithoutCredentialInput = {
@@ -24820,6 +27884,8 @@ export namespace Prisma {
24820
27884
  credentials?: CredentialCreateNestedManyWithoutUserInput
24821
27885
  integrations?: IntegrationCreateNestedManyWithoutUserInput
24822
27886
  processes?: ProcessCreateNestedManyWithoutUserInput
27887
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
27888
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
24823
27889
  }
24824
27890
 
24825
27891
  export type UserUncheckedCreateWithoutEntitiesInput = {
@@ -24839,6 +27905,8 @@ export namespace Prisma {
24839
27905
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
24840
27906
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
24841
27907
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
27908
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
27909
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
24842
27910
  }
24843
27911
 
24844
27912
  export type UserCreateOrConnectWithoutEntitiesInput = {
@@ -24849,6 +27917,7 @@ export namespace Prisma {
24849
27917
  export type IntegrationCreateWithoutEntitiesInput = {
24850
27918
  id?: string
24851
27919
  status?: $Enums.IntegrationStatus
27920
+ organizationId?: string | null
24852
27921
  config?: InputJsonValue | null
24853
27922
  version?: string | null
24854
27923
  errors?: InputJsonValue
@@ -24868,6 +27937,7 @@ export namespace Prisma {
24868
27937
  id?: string
24869
27938
  userId?: string | null
24870
27939
  status?: $Enums.IntegrationStatus
27940
+ organizationId?: string | null
24871
27941
  config?: InputJsonValue | null
24872
27942
  version?: string | null
24873
27943
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -25014,6 +28084,8 @@ export namespace Prisma {
25014
28084
  credentials?: CredentialUpdateManyWithoutUserNestedInput
25015
28085
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
25016
28086
  processes?: ProcessUpdateManyWithoutUserNestedInput
28087
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
28088
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
25017
28089
  }
25018
28090
 
25019
28091
  export type UserUncheckedUpdateWithoutEntitiesInput = {
@@ -25032,6 +28104,8 @@ export namespace Prisma {
25032
28104
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
25033
28105
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
25034
28106
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
28107
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
28108
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
25035
28109
  }
25036
28110
 
25037
28111
  export type IntegrationUpsertWithWhereUniqueWithoutEntitiesInput = {
@@ -25149,6 +28223,8 @@ export namespace Prisma {
25149
28223
  credentials?: CredentialCreateNestedManyWithoutUserInput
25150
28224
  entities?: EntityCreateNestedManyWithoutUserInput
25151
28225
  processes?: ProcessCreateNestedManyWithoutUserInput
28226
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
28227
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
25152
28228
  }
25153
28229
 
25154
28230
  export type UserUncheckedCreateWithoutIntegrationsInput = {
@@ -25168,6 +28244,8 @@ export namespace Prisma {
25168
28244
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
25169
28245
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
25170
28246
  processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
28247
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
28248
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
25171
28249
  }
25172
28250
 
25173
28251
  export type UserCreateOrConnectWithoutIntegrationsInput = {
@@ -25180,6 +28258,7 @@ export namespace Prisma {
25180
28258
  name?: string | null
25181
28259
  moduleName?: string | null
25182
28260
  externalId?: string | null
28261
+ organizationId?: string | null
25183
28262
  data?: InputJsonValue
25184
28263
  createdAt?: Date | string
25185
28264
  updatedAt?: Date | string
@@ -25197,6 +28276,7 @@ export namespace Prisma {
25197
28276
  name?: string | null
25198
28277
  moduleName?: string | null
25199
28278
  externalId?: string | null
28279
+ organizationId?: string | null
25200
28280
  data?: InputJsonValue
25201
28281
  createdAt?: Date | string
25202
28282
  updatedAt?: Date | string
@@ -25352,6 +28432,8 @@ export namespace Prisma {
25352
28432
  credentials?: CredentialUpdateManyWithoutUserNestedInput
25353
28433
  entities?: EntityUpdateManyWithoutUserNestedInput
25354
28434
  processes?: ProcessUpdateManyWithoutUserNestedInput
28435
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
28436
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
25355
28437
  }
25356
28438
 
25357
28439
  export type UserUncheckedUpdateWithoutIntegrationsInput = {
@@ -25370,6 +28452,8 @@ export namespace Prisma {
25370
28452
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
25371
28453
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
25372
28454
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
28455
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
28456
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
25373
28457
  }
25374
28458
 
25375
28459
  export type EntityUpsertWithWhereUniqueWithoutIntegrationsInput = {
@@ -25478,6 +28562,7 @@ export namespace Prisma {
25478
28562
  export type IntegrationCreateWithoutMappingsInput = {
25479
28563
  id?: string
25480
28564
  status?: $Enums.IntegrationStatus
28565
+ organizationId?: string | null
25481
28566
  config?: InputJsonValue | null
25482
28567
  version?: string | null
25483
28568
  errors?: InputJsonValue
@@ -25497,6 +28582,7 @@ export namespace Prisma {
25497
28582
  id?: string
25498
28583
  userId?: string | null
25499
28584
  status?: $Enums.IntegrationStatus
28585
+ organizationId?: string | null
25500
28586
  config?: InputJsonValue | null
25501
28587
  version?: string | null
25502
28588
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -25530,6 +28616,7 @@ export namespace Prisma {
25530
28616
 
25531
28617
  export type IntegrationUpdateWithoutMappingsInput = {
25532
28618
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
28619
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
25533
28620
  config?: InputJsonValue | InputJsonValue | null
25534
28621
  version?: NullableStringFieldUpdateOperationsInput | string | null
25535
28622
  errors?: InputJsonValue | InputJsonValue
@@ -25548,6 +28635,7 @@ export namespace Prisma {
25548
28635
  export type IntegrationUncheckedUpdateWithoutMappingsInput = {
25549
28636
  userId?: NullableStringFieldUpdateOperationsInput | string | null
25550
28637
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
28638
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
25551
28639
  config?: InputJsonValue | InputJsonValue | null
25552
28640
  version?: NullableStringFieldUpdateOperationsInput | string | null
25553
28641
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -25580,6 +28668,8 @@ export namespace Prisma {
25580
28668
  credentials?: CredentialCreateNestedManyWithoutUserInput
25581
28669
  entities?: EntityCreateNestedManyWithoutUserInput
25582
28670
  integrations?: IntegrationCreateNestedManyWithoutUserInput
28671
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
28672
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
25583
28673
  }
25584
28674
 
25585
28675
  export type UserUncheckedCreateWithoutProcessesInput = {
@@ -25599,6 +28689,8 @@ export namespace Prisma {
25599
28689
  credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
25600
28690
  entities?: EntityUncheckedCreateNestedManyWithoutUserInput
25601
28691
  integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
28692
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
28693
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
25602
28694
  }
25603
28695
 
25604
28696
  export type UserCreateOrConnectWithoutProcessesInput = {
@@ -25609,6 +28701,7 @@ export namespace Prisma {
25609
28701
  export type IntegrationCreateWithoutProcessesInput = {
25610
28702
  id?: string
25611
28703
  status?: $Enums.IntegrationStatus
28704
+ organizationId?: string | null
25612
28705
  config?: InputJsonValue | null
25613
28706
  version?: string | null
25614
28707
  errors?: InputJsonValue
@@ -25628,6 +28721,7 @@ export namespace Prisma {
25628
28721
  id?: string
25629
28722
  userId?: string | null
25630
28723
  status?: $Enums.IntegrationStatus
28724
+ organizationId?: string | null
25631
28725
  config?: InputJsonValue | null
25632
28726
  version?: string | null
25633
28727
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -25675,6 +28769,8 @@ export namespace Prisma {
25675
28769
  credentials?: CredentialUpdateManyWithoutUserNestedInput
25676
28770
  entities?: EntityUpdateManyWithoutUserNestedInput
25677
28771
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
28772
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
28773
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
25678
28774
  }
25679
28775
 
25680
28776
  export type UserUncheckedUpdateWithoutProcessesInput = {
@@ -25693,6 +28789,8 @@ export namespace Prisma {
25693
28789
  credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
25694
28790
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
25695
28791
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
28792
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
28793
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
25696
28794
  }
25697
28795
 
25698
28796
  export type IntegrationUpsertWithoutProcessesInput = {
@@ -25708,6 +28806,7 @@ export namespace Prisma {
25708
28806
 
25709
28807
  export type IntegrationUpdateWithoutProcessesInput = {
25710
28808
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
28809
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
25711
28810
  config?: InputJsonValue | InputJsonValue | null
25712
28811
  version?: NullableStringFieldUpdateOperationsInput | string | null
25713
28812
  errors?: InputJsonValue | InputJsonValue
@@ -25726,6 +28825,7 @@ export namespace Prisma {
25726
28825
  export type IntegrationUncheckedUpdateWithoutProcessesInput = {
25727
28826
  userId?: NullableStringFieldUpdateOperationsInput | string | null
25728
28827
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
28828
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
25729
28829
  config?: InputJsonValue | InputJsonValue | null
25730
28830
  version?: NullableStringFieldUpdateOperationsInput | string | null
25731
28831
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -25744,6 +28844,7 @@ export namespace Prisma {
25744
28844
  export type IntegrationCreateWithoutSyncsInput = {
25745
28845
  id?: string
25746
28846
  status?: $Enums.IntegrationStatus
28847
+ organizationId?: string | null
25747
28848
  config?: InputJsonValue | null
25748
28849
  version?: string | null
25749
28850
  errors?: InputJsonValue
@@ -25763,6 +28864,7 @@ export namespace Prisma {
25763
28864
  id?: string
25764
28865
  userId?: string | null
25765
28866
  status?: $Enums.IntegrationStatus
28867
+ organizationId?: string | null
25766
28868
  config?: InputJsonValue | null
25767
28869
  version?: string | null
25768
28870
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -25788,6 +28890,7 @@ export namespace Prisma {
25788
28890
  name?: string | null
25789
28891
  moduleName?: string | null
25790
28892
  externalId?: string | null
28893
+ organizationId?: string | null
25791
28894
  data?: InputJsonValue
25792
28895
  createdAt?: Date | string
25793
28896
  updatedAt?: Date | string
@@ -25805,6 +28908,7 @@ export namespace Prisma {
25805
28908
  name?: string | null
25806
28909
  moduleName?: string | null
25807
28910
  externalId?: string | null
28911
+ organizationId?: string | null
25808
28912
  data?: InputJsonValue
25809
28913
  createdAt?: Date | string
25810
28914
  updatedAt?: Date | string
@@ -25856,6 +28960,7 @@ export namespace Prisma {
25856
28960
 
25857
28961
  export type IntegrationUpdateWithoutSyncsInput = {
25858
28962
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
28963
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
25859
28964
  config?: InputJsonValue | InputJsonValue | null
25860
28965
  version?: NullableStringFieldUpdateOperationsInput | string | null
25861
28966
  errors?: InputJsonValue | InputJsonValue
@@ -25874,6 +28979,7 @@ export namespace Prisma {
25874
28979
  export type IntegrationUncheckedUpdateWithoutSyncsInput = {
25875
28980
  userId?: NullableStringFieldUpdateOperationsInput | string | null
25876
28981
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
28982
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
25877
28983
  config?: InputJsonValue | InputJsonValue | null
25878
28984
  version?: NullableStringFieldUpdateOperationsInput | string | null
25879
28985
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -25948,6 +29054,7 @@ export namespace Prisma {
25948
29054
  name?: string | null
25949
29055
  moduleName?: string | null
25950
29056
  externalId?: string | null
29057
+ organizationId?: string | null
25951
29058
  data?: InputJsonValue
25952
29059
  createdAt?: Date | string
25953
29060
  updatedAt?: Date | string
@@ -25965,6 +29072,7 @@ export namespace Prisma {
25965
29072
  name?: string | null
25966
29073
  moduleName?: string | null
25967
29074
  externalId?: string | null
29075
+ organizationId?: string | null
25968
29076
  data?: InputJsonValue
25969
29077
  createdAt?: Date | string
25970
29078
  updatedAt?: Date | string
@@ -26021,6 +29129,7 @@ export namespace Prisma {
26021
29129
  name?: NullableStringFieldUpdateOperationsInput | string | null
26022
29130
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26023
29131
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29132
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26024
29133
  data?: InputJsonValue | InputJsonValue
26025
29134
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26026
29135
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26037,6 +29146,7 @@ export namespace Prisma {
26037
29146
  name?: NullableStringFieldUpdateOperationsInput | string | null
26038
29147
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26039
29148
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29149
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26040
29150
  data?: InputJsonValue | InputJsonValue
26041
29151
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26042
29152
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26050,6 +29160,7 @@ export namespace Prisma {
26050
29160
  export type IntegrationCreateWithoutAssociationsInput = {
26051
29161
  id?: string
26052
29162
  status?: $Enums.IntegrationStatus
29163
+ organizationId?: string | null
26053
29164
  config?: InputJsonValue | null
26054
29165
  version?: string | null
26055
29166
  errors?: InputJsonValue
@@ -26069,6 +29180,7 @@ export namespace Prisma {
26069
29180
  id?: string
26070
29181
  userId?: string | null
26071
29182
  status?: $Enums.IntegrationStatus
29183
+ organizationId?: string | null
26072
29184
  config?: InputJsonValue | null
26073
29185
  version?: string | null
26074
29186
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -26127,6 +29239,7 @@ export namespace Prisma {
26127
29239
 
26128
29240
  export type IntegrationUpdateWithoutAssociationsInput = {
26129
29241
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
29242
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26130
29243
  config?: InputJsonValue | InputJsonValue | null
26131
29244
  version?: NullableStringFieldUpdateOperationsInput | string | null
26132
29245
  errors?: InputJsonValue | InputJsonValue
@@ -26145,6 +29258,7 @@ export namespace Prisma {
26145
29258
  export type IntegrationUncheckedUpdateWithoutAssociationsInput = {
26146
29259
  userId?: NullableStringFieldUpdateOperationsInput | string | null
26147
29260
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
29261
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26148
29262
  config?: InputJsonValue | InputJsonValue | null
26149
29263
  version?: NullableStringFieldUpdateOperationsInput | string | null
26150
29264
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -26202,6 +29316,7 @@ export namespace Prisma {
26202
29316
  name?: string | null
26203
29317
  moduleName?: string | null
26204
29318
  externalId?: string | null
29319
+ organizationId?: string | null
26205
29320
  data?: InputJsonValue
26206
29321
  createdAt?: Date | string
26207
29322
  updatedAt?: Date | string
@@ -26219,6 +29334,7 @@ export namespace Prisma {
26219
29334
  name?: string | null
26220
29335
  moduleName?: string | null
26221
29336
  externalId?: string | null
29337
+ organizationId?: string | null
26222
29338
  data?: InputJsonValue
26223
29339
  createdAt?: Date | string
26224
29340
  updatedAt?: Date | string
@@ -26274,6 +29390,7 @@ export namespace Prisma {
26274
29390
  name?: NullableStringFieldUpdateOperationsInput | string | null
26275
29391
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26276
29392
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29393
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26277
29394
  data?: InputJsonValue | InputJsonValue
26278
29395
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26279
29396
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26290,6 +29407,7 @@ export namespace Prisma {
26290
29407
  name?: NullableStringFieldUpdateOperationsInput | string | null
26291
29408
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26292
29409
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29410
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26293
29411
  data?: InputJsonValue | InputJsonValue
26294
29412
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26295
29413
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26300,6 +29418,202 @@ export namespace Prisma {
26300
29418
  dataIdentifiers?: DataIdentifierUncheckedUpdateManyWithoutEntityNestedInput
26301
29419
  }
26302
29420
 
29421
+ export type UserCreateWithoutMembershipsInput = {
29422
+ id?: string
29423
+ type: $Enums.UserType
29424
+ createdAt?: Date | string
29425
+ updatedAt?: Date | string
29426
+ email?: string | null
29427
+ username?: string | null
29428
+ hashword?: string | null
29429
+ appUserId?: string | null
29430
+ appOrgId?: string | null
29431
+ name?: string | null
29432
+ organization?: UserCreateNestedOneWithoutMembersInput
29433
+ members?: UserCreateNestedManyWithoutOrganizationInput
29434
+ tokens?: TokenCreateNestedManyWithoutUserInput
29435
+ credentials?: CredentialCreateNestedManyWithoutUserInput
29436
+ entities?: EntityCreateNestedManyWithoutUserInput
29437
+ integrations?: IntegrationCreateNestedManyWithoutUserInput
29438
+ processes?: ProcessCreateNestedManyWithoutUserInput
29439
+ orgMembers?: OrganizationMembershipCreateNestedManyWithoutOrganizationUserInput
29440
+ }
29441
+
29442
+ export type UserUncheckedCreateWithoutMembershipsInput = {
29443
+ id?: string
29444
+ type: $Enums.UserType
29445
+ createdAt?: Date | string
29446
+ updatedAt?: Date | string
29447
+ email?: string | null
29448
+ username?: string | null
29449
+ hashword?: string | null
29450
+ appUserId?: string | null
29451
+ organizationId?: string | null
29452
+ appOrgId?: string | null
29453
+ name?: string | null
29454
+ members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
29455
+ tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
29456
+ credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
29457
+ entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29458
+ integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
29459
+ processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
29460
+ orgMembers?: OrganizationMembershipUncheckedCreateNestedManyWithoutOrganizationUserInput
29461
+ }
29462
+
29463
+ export type UserCreateOrConnectWithoutMembershipsInput = {
29464
+ where: UserWhereUniqueInput
29465
+ create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
29466
+ }
29467
+
29468
+ export type UserCreateWithoutOrgMembersInput = {
29469
+ id?: string
29470
+ type: $Enums.UserType
29471
+ createdAt?: Date | string
29472
+ updatedAt?: Date | string
29473
+ email?: string | null
29474
+ username?: string | null
29475
+ hashword?: string | null
29476
+ appUserId?: string | null
29477
+ appOrgId?: string | null
29478
+ name?: string | null
29479
+ organization?: UserCreateNestedOneWithoutMembersInput
29480
+ members?: UserCreateNestedManyWithoutOrganizationInput
29481
+ tokens?: TokenCreateNestedManyWithoutUserInput
29482
+ credentials?: CredentialCreateNestedManyWithoutUserInput
29483
+ entities?: EntityCreateNestedManyWithoutUserInput
29484
+ integrations?: IntegrationCreateNestedManyWithoutUserInput
29485
+ processes?: ProcessCreateNestedManyWithoutUserInput
29486
+ memberships?: OrganizationMembershipCreateNestedManyWithoutIndividualUserInput
29487
+ }
29488
+
29489
+ export type UserUncheckedCreateWithoutOrgMembersInput = {
29490
+ id?: string
29491
+ type: $Enums.UserType
29492
+ createdAt?: Date | string
29493
+ updatedAt?: Date | string
29494
+ email?: string | null
29495
+ username?: string | null
29496
+ hashword?: string | null
29497
+ appUserId?: string | null
29498
+ organizationId?: string | null
29499
+ appOrgId?: string | null
29500
+ name?: string | null
29501
+ members?: UserUncheckedCreateNestedManyWithoutOrganizationInput
29502
+ tokens?: TokenUncheckedCreateNestedManyWithoutUserInput
29503
+ credentials?: CredentialUncheckedCreateNestedManyWithoutUserInput
29504
+ entities?: EntityUncheckedCreateNestedManyWithoutUserInput
29505
+ integrations?: IntegrationUncheckedCreateNestedManyWithoutUserInput
29506
+ processes?: ProcessUncheckedCreateNestedManyWithoutUserInput
29507
+ memberships?: OrganizationMembershipUncheckedCreateNestedManyWithoutIndividualUserInput
29508
+ }
29509
+
29510
+ export type UserCreateOrConnectWithoutOrgMembersInput = {
29511
+ where: UserWhereUniqueInput
29512
+ create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
29513
+ }
29514
+
29515
+ export type UserUpsertWithoutMembershipsInput = {
29516
+ update: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
29517
+ create: XOR<UserCreateWithoutMembershipsInput, UserUncheckedCreateWithoutMembershipsInput>
29518
+ where?: UserWhereInput
29519
+ }
29520
+
29521
+ export type UserUpdateToOneWithWhereWithoutMembershipsInput = {
29522
+ where?: UserWhereInput
29523
+ data: XOR<UserUpdateWithoutMembershipsInput, UserUncheckedUpdateWithoutMembershipsInput>
29524
+ }
29525
+
29526
+ export type UserUpdateWithoutMembershipsInput = {
29527
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29528
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29529
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29530
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29531
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29532
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29533
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29534
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29535
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29536
+ organization?: UserUpdateOneWithoutMembersNestedInput
29537
+ members?: UserUpdateManyWithoutOrganizationNestedInput
29538
+ tokens?: TokenUpdateManyWithoutUserNestedInput
29539
+ credentials?: CredentialUpdateManyWithoutUserNestedInput
29540
+ entities?: EntityUpdateManyWithoutUserNestedInput
29541
+ integrations?: IntegrationUpdateManyWithoutUserNestedInput
29542
+ processes?: ProcessUpdateManyWithoutUserNestedInput
29543
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
29544
+ }
29545
+
29546
+ export type UserUncheckedUpdateWithoutMembershipsInput = {
29547
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29548
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29549
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29550
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29551
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29552
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29553
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29554
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
29555
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29556
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29557
+ members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
29558
+ tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
29559
+ credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
29560
+ entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
29561
+ integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
29562
+ processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
29563
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
29564
+ }
29565
+
29566
+ export type UserUpsertWithoutOrgMembersInput = {
29567
+ update: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
29568
+ create: XOR<UserCreateWithoutOrgMembersInput, UserUncheckedCreateWithoutOrgMembersInput>
29569
+ where?: UserWhereInput
29570
+ }
29571
+
29572
+ export type UserUpdateToOneWithWhereWithoutOrgMembersInput = {
29573
+ where?: UserWhereInput
29574
+ data: XOR<UserUpdateWithoutOrgMembersInput, UserUncheckedUpdateWithoutOrgMembersInput>
29575
+ }
29576
+
29577
+ export type UserUpdateWithoutOrgMembersInput = {
29578
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29579
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29580
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29581
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29582
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29583
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29584
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29585
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29586
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29587
+ organization?: UserUpdateOneWithoutMembersNestedInput
29588
+ members?: UserUpdateManyWithoutOrganizationNestedInput
29589
+ tokens?: TokenUpdateManyWithoutUserNestedInput
29590
+ credentials?: CredentialUpdateManyWithoutUserNestedInput
29591
+ entities?: EntityUpdateManyWithoutUserNestedInput
29592
+ integrations?: IntegrationUpdateManyWithoutUserNestedInput
29593
+ processes?: ProcessUpdateManyWithoutUserNestedInput
29594
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
29595
+ }
29596
+
29597
+ export type UserUncheckedUpdateWithoutOrgMembersInput = {
29598
+ type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
29599
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29600
+ updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
29601
+ email?: NullableStringFieldUpdateOperationsInput | string | null
29602
+ username?: NullableStringFieldUpdateOperationsInput | string | null
29603
+ hashword?: NullableStringFieldUpdateOperationsInput | string | null
29604
+ appUserId?: NullableStringFieldUpdateOperationsInput | string | null
29605
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
29606
+ appOrgId?: NullableStringFieldUpdateOperationsInput | string | null
29607
+ name?: NullableStringFieldUpdateOperationsInput | string | null
29608
+ members?: UserUncheckedUpdateManyWithoutOrganizationNestedInput
29609
+ tokens?: TokenUncheckedUpdateManyWithoutUserNestedInput
29610
+ credentials?: CredentialUncheckedUpdateManyWithoutUserNestedInput
29611
+ entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
29612
+ integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
29613
+ processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
29614
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
29615
+ }
29616
+
26303
29617
  export type UserCreateManyOrganizationInput = {
26304
29618
  id?: string
26305
29619
  type: $Enums.UserType
@@ -26335,6 +29649,7 @@ export namespace Prisma {
26335
29649
  name?: string | null
26336
29650
  moduleName?: string | null
26337
29651
  externalId?: string | null
29652
+ organizationId?: string | null
26338
29653
  data?: InputJsonValue
26339
29654
  createdAt?: Date | string
26340
29655
  updatedAt?: Date | string
@@ -26345,6 +29660,7 @@ export namespace Prisma {
26345
29660
  export type IntegrationCreateManyUserInput = {
26346
29661
  id?: string
26347
29662
  status?: $Enums.IntegrationStatus
29663
+ organizationId?: string | null
26348
29664
  config?: InputJsonValue | null
26349
29665
  version?: string | null
26350
29666
  entityIds?: IntegrationCreateentityIdsInput | string[]
@@ -26370,6 +29686,20 @@ export namespace Prisma {
26370
29686
  updatedAt?: Date | string
26371
29687
  }
26372
29688
 
29689
+ export type OrganizationMembershipCreateManyIndividualUserInput = {
29690
+ id?: string
29691
+ organizationUserId: string
29692
+ orgRole?: string
29693
+ createdAt?: Date | string
29694
+ }
29695
+
29696
+ export type OrganizationMembershipCreateManyOrganizationUserInput = {
29697
+ id?: string
29698
+ individualUserId: string
29699
+ orgRole?: string
29700
+ createdAt?: Date | string
29701
+ }
29702
+
26373
29703
  export type UserUpdateWithoutOrganizationInput = {
26374
29704
  type?: EnumUserTypeFieldUpdateOperationsInput | $Enums.UserType
26375
29705
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26386,6 +29716,8 @@ export namespace Prisma {
26386
29716
  entities?: EntityUpdateManyWithoutUserNestedInput
26387
29717
  integrations?: IntegrationUpdateManyWithoutUserNestedInput
26388
29718
  processes?: ProcessUpdateManyWithoutUserNestedInput
29719
+ memberships?: OrganizationMembershipUpdateManyWithoutIndividualUserNestedInput
29720
+ orgMembers?: OrganizationMembershipUpdateManyWithoutOrganizationUserNestedInput
26389
29721
  }
26390
29722
 
26391
29723
  export type UserUncheckedUpdateWithoutOrganizationInput = {
@@ -26404,6 +29736,8 @@ export namespace Prisma {
26404
29736
  entities?: EntityUncheckedUpdateManyWithoutUserNestedInput
26405
29737
  integrations?: IntegrationUncheckedUpdateManyWithoutUserNestedInput
26406
29738
  processes?: ProcessUncheckedUpdateManyWithoutUserNestedInput
29739
+ memberships?: OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserNestedInput
29740
+ orgMembers?: OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserNestedInput
26407
29741
  }
26408
29742
 
26409
29743
  export type UserUncheckedUpdateManyWithoutOrganizationInput = {
@@ -26466,6 +29800,7 @@ export namespace Prisma {
26466
29800
  name?: NullableStringFieldUpdateOperationsInput | string | null
26467
29801
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26468
29802
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29803
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26469
29804
  data?: InputJsonValue | InputJsonValue
26470
29805
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26471
29806
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26481,6 +29816,7 @@ export namespace Prisma {
26481
29816
  name?: NullableStringFieldUpdateOperationsInput | string | null
26482
29817
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26483
29818
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29819
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26484
29820
  data?: InputJsonValue | InputJsonValue
26485
29821
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26486
29822
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26497,6 +29833,7 @@ export namespace Prisma {
26497
29833
  name?: NullableStringFieldUpdateOperationsInput | string | null
26498
29834
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26499
29835
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29836
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26500
29837
  data?: InputJsonValue | InputJsonValue
26501
29838
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26502
29839
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26506,6 +29843,7 @@ export namespace Prisma {
26506
29843
 
26507
29844
  export type IntegrationUpdateWithoutUserInput = {
26508
29845
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
29846
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26509
29847
  config?: InputJsonValue | InputJsonValue | null
26510
29848
  version?: NullableStringFieldUpdateOperationsInput | string | null
26511
29849
  errors?: InputJsonValue | InputJsonValue
@@ -26523,6 +29861,7 @@ export namespace Prisma {
26523
29861
 
26524
29862
  export type IntegrationUncheckedUpdateWithoutUserInput = {
26525
29863
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
29864
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26526
29865
  config?: InputJsonValue | InputJsonValue | null
26527
29866
  version?: NullableStringFieldUpdateOperationsInput | string | null
26528
29867
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -26541,6 +29880,7 @@ export namespace Prisma {
26541
29880
 
26542
29881
  export type IntegrationUncheckedUpdateManyWithoutUserInput = {
26543
29882
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
29883
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26544
29884
  config?: InputJsonValue | InputJsonValue | null
26545
29885
  version?: NullableStringFieldUpdateOperationsInput | string | null
26546
29886
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -26591,12 +29931,49 @@ export namespace Prisma {
26591
29931
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
26592
29932
  }
26593
29933
 
29934
+ export type OrganizationMembershipUpdateWithoutIndividualUserInput = {
29935
+ orgRole?: StringFieldUpdateOperationsInput | string
29936
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29937
+ organizationUser?: UserUpdateOneRequiredWithoutOrgMembersNestedInput
29938
+ }
29939
+
29940
+ export type OrganizationMembershipUncheckedUpdateWithoutIndividualUserInput = {
29941
+ organizationUserId?: StringFieldUpdateOperationsInput | string
29942
+ orgRole?: StringFieldUpdateOperationsInput | string
29943
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29944
+ }
29945
+
29946
+ export type OrganizationMembershipUncheckedUpdateManyWithoutIndividualUserInput = {
29947
+ organizationUserId?: StringFieldUpdateOperationsInput | string
29948
+ orgRole?: StringFieldUpdateOperationsInput | string
29949
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29950
+ }
29951
+
29952
+ export type OrganizationMembershipUpdateWithoutOrganizationUserInput = {
29953
+ orgRole?: StringFieldUpdateOperationsInput | string
29954
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29955
+ individualUser?: UserUpdateOneRequiredWithoutMembershipsNestedInput
29956
+ }
29957
+
29958
+ export type OrganizationMembershipUncheckedUpdateWithoutOrganizationUserInput = {
29959
+ individualUserId?: StringFieldUpdateOperationsInput | string
29960
+ orgRole?: StringFieldUpdateOperationsInput | string
29961
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29962
+ }
29963
+
29964
+ export type OrganizationMembershipUncheckedUpdateManyWithoutOrganizationUserInput = {
29965
+ individualUserId?: StringFieldUpdateOperationsInput | string
29966
+ orgRole?: StringFieldUpdateOperationsInput | string
29967
+ createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
29968
+ }
29969
+
26594
29970
  export type EntityCreateManyCredentialInput = {
26595
29971
  id?: string
26596
29972
  userId?: string | null
26597
29973
  name?: string | null
26598
29974
  moduleName?: string | null
26599
29975
  externalId?: string | null
29976
+ organizationId?: string | null
26600
29977
  data?: InputJsonValue
26601
29978
  createdAt?: Date | string
26602
29979
  updatedAt?: Date | string
@@ -26608,6 +29985,7 @@ export namespace Prisma {
26608
29985
  name?: NullableStringFieldUpdateOperationsInput | string | null
26609
29986
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26610
29987
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
29988
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26611
29989
  data?: InputJsonValue | InputJsonValue
26612
29990
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26613
29991
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26623,6 +30001,7 @@ export namespace Prisma {
26623
30001
  name?: NullableStringFieldUpdateOperationsInput | string | null
26624
30002
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26625
30003
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30004
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26626
30005
  data?: InputJsonValue | InputJsonValue
26627
30006
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26628
30007
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26639,6 +30018,7 @@ export namespace Prisma {
26639
30018
  name?: NullableStringFieldUpdateOperationsInput | string | null
26640
30019
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26641
30020
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30021
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26642
30022
  data?: InputJsonValue | InputJsonValue
26643
30023
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26644
30024
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26663,6 +30043,7 @@ export namespace Prisma {
26663
30043
 
26664
30044
  export type IntegrationUpdateWithoutEntitiesInput = {
26665
30045
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
30046
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26666
30047
  config?: InputJsonValue | InputJsonValue | null
26667
30048
  version?: NullableStringFieldUpdateOperationsInput | string | null
26668
30049
  errors?: InputJsonValue | InputJsonValue
@@ -26681,6 +30062,7 @@ export namespace Prisma {
26681
30062
  export type IntegrationUncheckedUpdateWithoutEntitiesInput = {
26682
30063
  userId?: NullableStringFieldUpdateOperationsInput | string | null
26683
30064
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
30065
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26684
30066
  config?: InputJsonValue | InputJsonValue | null
26685
30067
  version?: NullableStringFieldUpdateOperationsInput | string | null
26686
30068
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -26699,6 +30081,7 @@ export namespace Prisma {
26699
30081
  export type IntegrationUncheckedUpdateManyWithoutEntitiesInput = {
26700
30082
  userId?: NullableStringFieldUpdateOperationsInput | string | null
26701
30083
  status?: EnumIntegrationStatusFieldUpdateOperationsInput | $Enums.IntegrationStatus
30084
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26702
30085
  config?: InputJsonValue | InputJsonValue | null
26703
30086
  version?: NullableStringFieldUpdateOperationsInput | string | null
26704
30087
  entityIds?: IntegrationUpdateentityIdsInput | string[]
@@ -26811,6 +30194,7 @@ export namespace Prisma {
26811
30194
  name?: NullableStringFieldUpdateOperationsInput | string | null
26812
30195
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26813
30196
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30197
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26814
30198
  data?: InputJsonValue | InputJsonValue
26815
30199
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26816
30200
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26827,6 +30211,7 @@ export namespace Prisma {
26827
30211
  name?: NullableStringFieldUpdateOperationsInput | string | null
26828
30212
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26829
30213
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30214
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26830
30215
  data?: InputJsonValue | InputJsonValue
26831
30216
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26832
30217
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26843,6 +30228,7 @@ export namespace Prisma {
26843
30228
  name?: NullableStringFieldUpdateOperationsInput | string | null
26844
30229
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26845
30230
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30231
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26846
30232
  data?: InputJsonValue | InputJsonValue
26847
30233
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26848
30234
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26962,6 +30348,7 @@ export namespace Prisma {
26962
30348
  name?: NullableStringFieldUpdateOperationsInput | string | null
26963
30349
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26964
30350
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30351
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26965
30352
  data?: InputJsonValue | InputJsonValue
26966
30353
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26967
30354
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26978,6 +30365,7 @@ export namespace Prisma {
26978
30365
  name?: NullableStringFieldUpdateOperationsInput | string | null
26979
30366
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26980
30367
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30368
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26981
30369
  data?: InputJsonValue | InputJsonValue
26982
30370
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26983
30371
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
@@ -26994,6 +30382,7 @@ export namespace Prisma {
26994
30382
  name?: NullableStringFieldUpdateOperationsInput | string | null
26995
30383
  moduleName?: NullableStringFieldUpdateOperationsInput | string | null
26996
30384
  externalId?: NullableStringFieldUpdateOperationsInput | string | null
30385
+ organizationId?: NullableStringFieldUpdateOperationsInput | string | null
26997
30386
  data?: InputJsonValue | InputJsonValue
26998
30387
  createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
26999
30388
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string