@friggframework/core 2.0.0--canary.680.6bacd26.0 → 2.0.0--canary.663.8de669c.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 (86) hide show
  1. package/CHANGELOG.md +0 -11
  2. package/application/commands/integration-commands.js +8 -18
  3. package/application/index.js +2 -6
  4. package/credential/repositories/credential-repository-documentdb.js +0 -34
  5. package/credential/repositories/credential-repository-interface.js +0 -15
  6. package/credential/repositories/credential-repository-mongo.js +0 -23
  7. package/credential/repositories/credential-repository-postgres.js +0 -28
  8. package/database/encryption/README.md +0 -2
  9. package/database/encryption/encryption-schema-registry.js +12 -41
  10. package/database/encryption/field-encryption-service.js +5 -69
  11. package/generated/prisma-mongodb/edge.js +4 -20
  12. package/generated/prisma-mongodb/index-browser.js +1 -17
  13. package/generated/prisma-mongodb/index.d.ts +95 -1543
  14. package/generated/prisma-mongodb/index.js +4 -20
  15. package/generated/prisma-mongodb/package.json +1 -1
  16. package/generated/prisma-mongodb/schema.prisma +0 -27
  17. package/generated/prisma-mongodb/wasm.js +4 -20
  18. package/generated/prisma-postgresql/edge.js +4 -20
  19. package/generated/prisma-postgresql/index-browser.js +1 -17
  20. package/generated/prisma-postgresql/index.d.ts +84 -1565
  21. package/generated/prisma-postgresql/index.js +4 -20
  22. package/generated/prisma-postgresql/package.json +1 -1
  23. package/generated/prisma-postgresql/schema.prisma +0 -26
  24. package/generated/prisma-postgresql/wasm.js +4 -20
  25. package/handlers/app-definition-loader.js +8 -19
  26. package/handlers/app-handler-helpers.js +3 -25
  27. package/handlers/backend-utils.js +25 -31
  28. package/handlers/middleware/admin-auth.js +1 -14
  29. package/handlers/routers/auth.js +3 -11
  30. package/handlers/routers/health.js +4 -11
  31. package/handlers/workers/integration-defined-workers.js +2 -5
  32. package/index.js +2 -4
  33. package/integrations/index.js +4 -0
  34. package/integrations/integration-router.js +23 -16
  35. package/integrations/utils/map-integration-dto.js +15 -1
  36. package/modules/index.js +0 -6
  37. package/modules/requester/requester.js +2 -27
  38. package/package.json +5 -5
  39. package/prisma-mongodb/schema.prisma +0 -27
  40. package/prisma-postgresql/schema.prisma +0 -26
  41. package/types/index.d.ts +0 -1
  42. package/credential/use-cases/credential-operations-for-user.js +0 -117
  43. package/credential/use-cases/reauthorize-credential-for-user.js +0 -66
  44. package/database/encryption/test-support/fake-ciphertext.js +0 -15
  45. package/integrations/use-cases/integration-operations-for-user.js +0 -225
  46. package/management-api/create-management-api-router.js +0 -49
  47. package/management-api/error-response.js +0 -116
  48. package/management-api/management-api-config.js +0 -82
  49. package/management-api/meta-router.js +0 -57
  50. package/management-api/openapi/build-openapi.js +0 -144
  51. package/management-api/openapi/components.js +0 -368
  52. package/management-api/openapi/v1-operations.js +0 -83
  53. package/management-api/openapi/v2-operations.js +0 -252
  54. package/management-api/route-registry.js +0 -294
  55. package/management-api/test-support/http-client.js +0 -39
  56. package/management-api/use-cases/get-management-api-meta.js +0 -57
  57. package/management-api/v1-deprecation.js +0 -120
  58. package/management-api/v2/create-v2-router.js +0 -85
  59. package/management-api/v2/dependencies.js +0 -256
  60. package/management-api/v2/dto.js +0 -123
  61. package/management-api/v2/handlers/authorization.js +0 -93
  62. package/management-api/v2/handlers/credentials.js +0 -29
  63. package/management-api/v2/handlers/entities.js +0 -74
  64. package/management-api/v2/handlers/integrations.js +0 -125
  65. package/management-api/v2/handlers/proxy.js +0 -34
  66. package/management-api/v2/request.js +0 -54
  67. package/management-api/v2/test-support/fake-dependencies.js +0 -103
  68. package/modules/domain/authorization-session.js +0 -144
  69. package/modules/entity-type-registry.js +0 -311
  70. package/modules/proxy/proxy-errors.js +0 -20
  71. package/modules/proxy/proxy-path.js +0 -179
  72. package/modules/proxy/proxy-policy.js +0 -248
  73. package/modules/repositories/authorization-session-repository-documentdb.js +0 -112
  74. package/modules/repositories/authorization-session-repository-factory.js +0 -31
  75. package/modules/repositories/authorization-session-repository-interface.js +0 -47
  76. package/modules/repositories/authorization-session-repository-prisma.js +0 -87
  77. package/modules/requester/proxy-request.js +0 -244
  78. package/modules/tests/doubles/in-memory-authorization-session-repository.js +0 -45
  79. package/modules/use-cases/entity-operations-for-user.js +0 -125
  80. package/modules/use-cases/entity-types.js +0 -115
  81. package/modules/use-cases/execute-entity-proxy-request.js +0 -239
  82. package/modules/use-cases/get-authorization-requirements.js +0 -100
  83. package/modules/use-cases/get-entity-module-for-user.js +0 -86
  84. package/modules/use-cases/multi-step-authorization.js +0 -302
  85. package/prisma-postgresql/migrations/20261003000000_add_authorization_session/migration.sql +0 -28
  86. package/types/modules/index.d.ts +0 -58
@@ -103,13 +103,6 @@ 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
106
 
114
107
  /**
115
108
  * Enums
@@ -416,16 +409,6 @@ export class PrismaClient<
416
409
  * ```
417
410
  */
418
411
  get usageCounter(): Prisma.UsageCounterDelegate<ExtArgs, ClientOptions>;
419
-
420
- /**
421
- * `prisma.authorizationSession`: Exposes CRUD operations for the **AuthorizationSession** model.
422
- * Example usage:
423
- * ```ts
424
- * // Fetch zero or more AuthorizationSessions
425
- * const authorizationSessions = await prisma.authorizationSession.findMany()
426
- * ```
427
- */
428
- get authorizationSession(): Prisma.AuthorizationSessionDelegate<ExtArgs, ClientOptions>;
429
412
  }
430
413
 
431
414
  export namespace Prisma {
@@ -882,8 +865,7 @@ export namespace Prisma {
882
865
  WebsocketConnection: 'WebsocketConnection',
883
866
  AdminScriptExecution: 'AdminScriptExecution',
884
867
  ScriptSchedule: 'ScriptSchedule',
885
- UsageCounter: 'UsageCounter',
886
- AuthorizationSession: 'AuthorizationSession'
868
+ UsageCounter: 'UsageCounter'
887
869
  };
888
870
 
889
871
  export type ModelName = (typeof ModelName)[keyof typeof ModelName]
@@ -902,7 +884,7 @@ export namespace Prisma {
902
884
  omit: GlobalOmitOptions
903
885
  }
904
886
  meta: {
905
- modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter" | "authorizationSession"
887
+ modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "process" | "sync" | "dataIdentifier" | "association" | "associationObject" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter"
906
888
  txIsolationLevel: never
907
889
  }
908
890
  model: {
@@ -2090,80 +2072,6 @@ export namespace Prisma {
2090
2072
  }
2091
2073
  }
2092
2074
  }
2093
- AuthorizationSession: {
2094
- payload: Prisma.$AuthorizationSessionPayload<ExtArgs>
2095
- fields: Prisma.AuthorizationSessionFieldRefs
2096
- operations: {
2097
- findUnique: {
2098
- args: Prisma.AuthorizationSessionFindUniqueArgs<ExtArgs>
2099
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload> | null
2100
- }
2101
- findUniqueOrThrow: {
2102
- args: Prisma.AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs>
2103
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2104
- }
2105
- findFirst: {
2106
- args: Prisma.AuthorizationSessionFindFirstArgs<ExtArgs>
2107
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload> | null
2108
- }
2109
- findFirstOrThrow: {
2110
- args: Prisma.AuthorizationSessionFindFirstOrThrowArgs<ExtArgs>
2111
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2112
- }
2113
- findMany: {
2114
- args: Prisma.AuthorizationSessionFindManyArgs<ExtArgs>
2115
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>[]
2116
- }
2117
- create: {
2118
- args: Prisma.AuthorizationSessionCreateArgs<ExtArgs>
2119
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2120
- }
2121
- createMany: {
2122
- args: Prisma.AuthorizationSessionCreateManyArgs<ExtArgs>
2123
- result: BatchPayload
2124
- }
2125
- delete: {
2126
- args: Prisma.AuthorizationSessionDeleteArgs<ExtArgs>
2127
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2128
- }
2129
- update: {
2130
- args: Prisma.AuthorizationSessionUpdateArgs<ExtArgs>
2131
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2132
- }
2133
- deleteMany: {
2134
- args: Prisma.AuthorizationSessionDeleteManyArgs<ExtArgs>
2135
- result: BatchPayload
2136
- }
2137
- updateMany: {
2138
- args: Prisma.AuthorizationSessionUpdateManyArgs<ExtArgs>
2139
- result: BatchPayload
2140
- }
2141
- upsert: {
2142
- args: Prisma.AuthorizationSessionUpsertArgs<ExtArgs>
2143
- result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
2144
- }
2145
- aggregate: {
2146
- args: Prisma.AuthorizationSessionAggregateArgs<ExtArgs>
2147
- result: $Utils.Optional<AggregateAuthorizationSession>
2148
- }
2149
- groupBy: {
2150
- args: Prisma.AuthorizationSessionGroupByArgs<ExtArgs>
2151
- result: $Utils.Optional<AuthorizationSessionGroupByOutputType>[]
2152
- }
2153
- findRaw: {
2154
- args: Prisma.AuthorizationSessionFindRawArgs<ExtArgs>
2155
- result: JsonObject
2156
- }
2157
- aggregateRaw: {
2158
- args: Prisma.AuthorizationSessionAggregateRawArgs<ExtArgs>
2159
- result: JsonObject
2160
- }
2161
- count: {
2162
- args: Prisma.AuthorizationSessionCountArgs<ExtArgs>
2163
- result: $Utils.Optional<AuthorizationSessionCountAggregateOutputType> | number
2164
- }
2165
- }
2166
- }
2167
2075
  }
2168
2076
  } & {
2169
2077
  other: {
@@ -2259,7 +2167,6 @@ export namespace Prisma {
2259
2167
  adminScriptExecution?: AdminScriptExecutionOmit
2260
2168
  scriptSchedule?: ScriptScheduleOmit
2261
2169
  usageCounter?: UsageCounterOmit
2262
- authorizationSession?: AuthorizationSessionOmit
2263
2170
  }
2264
2171
 
2265
2172
  /* Types for Logging */
@@ -19133,1165 +19040,122 @@ export namespace Prisma {
19133
19040
 
19134
19041
 
19135
19042
  /**
19136
- * Model AuthorizationSession
19043
+ * Enums
19137
19044
  */
19138
19045
 
19139
- export type AggregateAuthorizationSession = {
19140
- _count: AuthorizationSessionCountAggregateOutputType | null
19141
- _avg: AuthorizationSessionAvgAggregateOutputType | null
19142
- _sum: AuthorizationSessionSumAggregateOutputType | null
19143
- _min: AuthorizationSessionMinAggregateOutputType | null
19144
- _max: AuthorizationSessionMaxAggregateOutputType | null
19145
- }
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
+ };
19146
19059
 
19147
- export type AuthorizationSessionAvgAggregateOutputType = {
19148
- currentStep: number | null
19149
- maxSteps: number | null
19150
- }
19060
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
19151
19061
 
19152
- export type AuthorizationSessionSumAggregateOutputType = {
19153
- currentStep: number | null
19154
- maxSteps: number | null
19155
- }
19156
19062
 
19157
- export type AuthorizationSessionMinAggregateOutputType = {
19158
- id: string | null
19159
- sessionId: string | null
19160
- userId: string | null
19161
- entityType: string | null
19162
- credentialId: string | null
19163
- currentStep: number | null
19164
- maxSteps: number | null
19165
- expiresAt: Date | null
19166
- completed: boolean | null
19167
- createdAt: Date | null
19168
- updatedAt: Date | null
19169
- }
19063
+ export const TokenScalarFieldEnum: {
19064
+ id: 'id',
19065
+ token: 'token',
19066
+ created: 'created',
19067
+ expires: 'expires',
19068
+ userId: 'userId'
19069
+ };
19170
19070
 
19171
- export type AuthorizationSessionMaxAggregateOutputType = {
19172
- id: string | null
19173
- sessionId: string | null
19174
- userId: string | null
19175
- entityType: string | null
19176
- credentialId: string | null
19177
- currentStep: number | null
19178
- maxSteps: number | null
19179
- expiresAt: Date | null
19180
- completed: boolean | null
19181
- createdAt: Date | null
19182
- updatedAt: Date | null
19183
- }
19071
+ export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
19184
19072
 
19185
- export type AuthorizationSessionCountAggregateOutputType = {
19186
- id: number
19187
- sessionId: number
19188
- userId: number
19189
- entityType: number
19190
- credentialId: number
19191
- currentStep: number
19192
- maxSteps: number
19193
- stepData: number
19194
- expiresAt: number
19195
- completed: number
19196
- createdAt: number
19197
- updatedAt: number
19198
- _all: number
19199
- }
19200
19073
 
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
+ };
19201
19083
 
19202
- export type AuthorizationSessionAvgAggregateInputType = {
19203
- currentStep?: true
19204
- maxSteps?: true
19205
- }
19084
+ export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
19206
19085
 
19207
- export type AuthorizationSessionSumAggregateInputType = {
19208
- currentStep?: true
19209
- maxSteps?: true
19210
- }
19211
19086
 
19212
- export type AuthorizationSessionMinAggregateInputType = {
19213
- id?: true
19214
- sessionId?: true
19215
- userId?: true
19216
- entityType?: true
19217
- credentialId?: true
19218
- currentStep?: true
19219
- maxSteps?: true
19220
- expiresAt?: true
19221
- completed?: true
19222
- createdAt?: true
19223
- updatedAt?: true
19224
- }
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
+ };
19225
19100
 
19226
- export type AuthorizationSessionMaxAggregateInputType = {
19227
- id?: true
19228
- sessionId?: true
19229
- userId?: true
19230
- entityType?: true
19231
- credentialId?: true
19232
- currentStep?: true
19233
- maxSteps?: true
19234
- expiresAt?: true
19235
- completed?: true
19236
- createdAt?: true
19237
- updatedAt?: true
19238
- }
19101
+ export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
19239
19102
 
19240
- export type AuthorizationSessionCountAggregateInputType = {
19241
- id?: true
19242
- sessionId?: true
19243
- userId?: true
19244
- entityType?: true
19245
- credentialId?: true
19246
- currentStep?: true
19247
- maxSteps?: true
19248
- stepData?: true
19249
- expiresAt?: true
19250
- completed?: true
19251
- createdAt?: true
19252
- updatedAt?: true
19253
- _all?: true
19254
- }
19255
19103
 
19256
- export type AuthorizationSessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19257
- /**
19258
- * Filter which AuthorizationSession to aggregate.
19259
- */
19260
- where?: AuthorizationSessionWhereInput
19261
- /**
19262
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19263
- *
19264
- * Determine the order of AuthorizationSessions to fetch.
19265
- */
19266
- orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
19267
- /**
19268
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19269
- *
19270
- * Sets the start position
19271
- */
19272
- cursor?: AuthorizationSessionWhereUniqueInput
19273
- /**
19274
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19275
- *
19276
- * Take `±n` AuthorizationSessions from the position of the cursor.
19277
- */
19278
- take?: number
19279
- /**
19280
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19281
- *
19282
- * Skip the first `n` AuthorizationSessions.
19283
- */
19284
- skip?: number
19285
- /**
19286
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19287
- *
19288
- * Count returned AuthorizationSessions
19289
- **/
19290
- _count?: true | AuthorizationSessionCountAggregateInputType
19291
- /**
19292
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19293
- *
19294
- * Select which fields to average
19295
- **/
19296
- _avg?: AuthorizationSessionAvgAggregateInputType
19297
- /**
19298
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19299
- *
19300
- * Select which fields to sum
19301
- **/
19302
- _sum?: AuthorizationSessionSumAggregateInputType
19303
- /**
19304
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19305
- *
19306
- * Select which fields to find the minimum value
19307
- **/
19308
- _min?: AuthorizationSessionMinAggregateInputType
19309
- /**
19310
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
19311
- *
19312
- * Select which fields to find the maximum value
19313
- **/
19314
- _max?: AuthorizationSessionMaxAggregateInputType
19315
- }
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',
19114
+ logs: 'logs',
19115
+ createdAt: 'createdAt',
19116
+ updatedAt: 'updatedAt'
19117
+ };
19316
19118
 
19317
- export type GetAuthorizationSessionAggregateType<T extends AuthorizationSessionAggregateArgs> = {
19318
- [P in keyof T & keyof AggregateAuthorizationSession]: P extends '_count' | 'count'
19319
- ? T[P] extends true
19320
- ? number
19321
- : GetScalarType<T[P], AggregateAuthorizationSession[P]>
19322
- : GetScalarType<T[P], AggregateAuthorizationSession[P]>
19323
- }
19119
+ export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
19324
19120
 
19325
19121
 
19122
+ export const IntegrationMappingScalarFieldEnum: {
19123
+ id: 'id',
19124
+ integrationId: 'integrationId',
19125
+ sourceId: 'sourceId',
19126
+ mapping: 'mapping',
19127
+ createdAt: 'createdAt',
19128
+ updatedAt: 'updatedAt'
19129
+ };
19326
19130
 
19131
+ export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
19327
19132
 
19328
- export type AuthorizationSessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19329
- where?: AuthorizationSessionWhereInput
19330
- orderBy?: AuthorizationSessionOrderByWithAggregationInput | AuthorizationSessionOrderByWithAggregationInput[]
19331
- by: AuthorizationSessionScalarFieldEnum[] | AuthorizationSessionScalarFieldEnum
19332
- having?: AuthorizationSessionScalarWhereWithAggregatesInput
19333
- take?: number
19334
- skip?: number
19335
- _count?: AuthorizationSessionCountAggregateInputType | true
19336
- _avg?: AuthorizationSessionAvgAggregateInputType
19337
- _sum?: AuthorizationSessionSumAggregateInputType
19338
- _min?: AuthorizationSessionMinAggregateInputType
19339
- _max?: AuthorizationSessionMaxAggregateInputType
19340
- }
19341
19133
 
19342
- export type AuthorizationSessionGroupByOutputType = {
19343
- id: string
19344
- sessionId: string
19345
- userId: string
19346
- entityType: string
19347
- credentialId: string | null
19348
- currentStep: number
19349
- maxSteps: number
19350
- stepData: JsonValue
19351
- expiresAt: Date
19352
- completed: boolean
19353
- createdAt: Date
19354
- updatedAt: Date
19355
- _count: AuthorizationSessionCountAggregateOutputType | null
19356
- _avg: AuthorizationSessionAvgAggregateOutputType | null
19357
- _sum: AuthorizationSessionSumAggregateOutputType | null
19358
- _min: AuthorizationSessionMinAggregateOutputType | null
19359
- _max: AuthorizationSessionMaxAggregateOutputType | null
19360
- }
19134
+ export const ProcessScalarFieldEnum: {
19135
+ id: 'id',
19136
+ userId: 'userId',
19137
+ integrationId: 'integrationId',
19138
+ name: 'name',
19139
+ type: 'type',
19140
+ state: 'state',
19141
+ context: 'context',
19142
+ results: 'results',
19143
+ childProcesses: 'childProcesses',
19144
+ parentProcessId: 'parentProcessId',
19145
+ createdAt: 'createdAt',
19146
+ updatedAt: 'updatedAt'
19147
+ };
19361
19148
 
19362
- type GetAuthorizationSessionGroupByPayload<T extends AuthorizationSessionGroupByArgs> = Prisma.PrismaPromise<
19363
- Array<
19364
- PickEnumerable<AuthorizationSessionGroupByOutputType, T['by']> &
19365
- {
19366
- [P in ((keyof T) & (keyof AuthorizationSessionGroupByOutputType))]: P extends '_count'
19367
- ? T[P] extends boolean
19368
- ? number
19369
- : GetScalarType<T[P], AuthorizationSessionGroupByOutputType[P]>
19370
- : GetScalarType<T[P], AuthorizationSessionGroupByOutputType[P]>
19371
- }
19372
- >
19373
- >
19149
+ export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
19374
19150
 
19375
19151
 
19376
- export type AuthorizationSessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
19377
- id?: boolean
19378
- sessionId?: boolean
19379
- userId?: boolean
19380
- entityType?: boolean
19381
- credentialId?: boolean
19382
- currentStep?: boolean
19383
- maxSteps?: boolean
19384
- stepData?: boolean
19385
- expiresAt?: boolean
19386
- completed?: boolean
19387
- createdAt?: boolean
19388
- updatedAt?: boolean
19389
- }, ExtArgs["result"]["authorizationSession"]>
19390
-
19391
-
19392
-
19393
- export type AuthorizationSessionSelectScalar = {
19394
- id?: boolean
19395
- sessionId?: boolean
19396
- userId?: boolean
19397
- entityType?: boolean
19398
- credentialId?: boolean
19399
- currentStep?: boolean
19400
- maxSteps?: boolean
19401
- stepData?: boolean
19402
- expiresAt?: boolean
19403
- completed?: boolean
19404
- createdAt?: boolean
19405
- updatedAt?: boolean
19406
- }
19407
-
19408
- 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"]>
19409
-
19410
- export type $AuthorizationSessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19411
- name: "AuthorizationSession"
19412
- objects: {}
19413
- scalars: $Extensions.GetPayloadResult<{
19414
- id: string
19415
- sessionId: string
19416
- userId: string
19417
- entityType: string
19418
- credentialId: string | null
19419
- currentStep: number
19420
- maxSteps: number
19421
- stepData: Prisma.JsonValue
19422
- expiresAt: Date
19423
- completed: boolean
19424
- createdAt: Date
19425
- updatedAt: Date
19426
- }, ExtArgs["result"]["authorizationSession"]>
19427
- composites: {}
19428
- }
19429
-
19430
- type AuthorizationSessionGetPayload<S extends boolean | null | undefined | AuthorizationSessionDefaultArgs> = $Result.GetResult<Prisma.$AuthorizationSessionPayload, S>
19431
-
19432
- type AuthorizationSessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
19433
- Omit<AuthorizationSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
19434
- select?: AuthorizationSessionCountAggregateInputType | true
19435
- }
19436
-
19437
- export interface AuthorizationSessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
19438
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuthorizationSession'], meta: { name: 'AuthorizationSession' } }
19439
- /**
19440
- * Find zero or one AuthorizationSession that matches the filter.
19441
- * @param {AuthorizationSessionFindUniqueArgs} args - Arguments to find a AuthorizationSession
19442
- * @example
19443
- * // Get one AuthorizationSession
19444
- * const authorizationSession = await prisma.authorizationSession.findUnique({
19445
- * where: {
19446
- * // ... provide filter here
19447
- * }
19448
- * })
19449
- */
19450
- findUnique<T extends AuthorizationSessionFindUniqueArgs>(args: SelectSubset<T, AuthorizationSessionFindUniqueArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19451
-
19452
- /**
19453
- * Find one AuthorizationSession that matches the filter or throw an error with `error.code='P2025'`
19454
- * if no matches were found.
19455
- * @param {AuthorizationSessionFindUniqueOrThrowArgs} args - Arguments to find a AuthorizationSession
19456
- * @example
19457
- * // Get one AuthorizationSession
19458
- * const authorizationSession = await prisma.authorizationSession.findUniqueOrThrow({
19459
- * where: {
19460
- * // ... provide filter here
19461
- * }
19462
- * })
19463
- */
19464
- findUniqueOrThrow<T extends AuthorizationSessionFindUniqueOrThrowArgs>(args: SelectSubset<T, AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19465
-
19466
- /**
19467
- * Find the first AuthorizationSession that matches the filter.
19468
- * Note, that providing `undefined` is treated as the value not being there.
19469
- * Read more here: https://pris.ly/d/null-undefined
19470
- * @param {AuthorizationSessionFindFirstArgs} args - Arguments to find a AuthorizationSession
19471
- * @example
19472
- * // Get one AuthorizationSession
19473
- * const authorizationSession = await prisma.authorizationSession.findFirst({
19474
- * where: {
19475
- * // ... provide filter here
19476
- * }
19477
- * })
19478
- */
19479
- findFirst<T extends AuthorizationSessionFindFirstArgs>(args?: SelectSubset<T, AuthorizationSessionFindFirstArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
19480
-
19481
- /**
19482
- * Find the first AuthorizationSession that matches the filter or
19483
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
19484
- * Note, that providing `undefined` is treated as the value not being there.
19485
- * Read more here: https://pris.ly/d/null-undefined
19486
- * @param {AuthorizationSessionFindFirstOrThrowArgs} args - Arguments to find a AuthorizationSession
19487
- * @example
19488
- * // Get one AuthorizationSession
19489
- * const authorizationSession = await prisma.authorizationSession.findFirstOrThrow({
19490
- * where: {
19491
- * // ... provide filter here
19492
- * }
19493
- * })
19494
- */
19495
- findFirstOrThrow<T extends AuthorizationSessionFindFirstOrThrowArgs>(args?: SelectSubset<T, AuthorizationSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19496
-
19497
- /**
19498
- * Find zero or more AuthorizationSessions that matches the filter.
19499
- * Note, that providing `undefined` is treated as the value not being there.
19500
- * Read more here: https://pris.ly/d/null-undefined
19501
- * @param {AuthorizationSessionFindManyArgs} args - Arguments to filter and select certain fields only.
19502
- * @example
19503
- * // Get all AuthorizationSessions
19504
- * const authorizationSessions = await prisma.authorizationSession.findMany()
19505
- *
19506
- * // Get first 10 AuthorizationSessions
19507
- * const authorizationSessions = await prisma.authorizationSession.findMany({ take: 10 })
19508
- *
19509
- * // Only select the `id`
19510
- * const authorizationSessionWithIdOnly = await prisma.authorizationSession.findMany({ select: { id: true } })
19511
- *
19512
- */
19513
- findMany<T extends AuthorizationSessionFindManyArgs>(args?: SelectSubset<T, AuthorizationSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
19514
-
19515
- /**
19516
- * Create a AuthorizationSession.
19517
- * @param {AuthorizationSessionCreateArgs} args - Arguments to create a AuthorizationSession.
19518
- * @example
19519
- * // Create one AuthorizationSession
19520
- * const AuthorizationSession = await prisma.authorizationSession.create({
19521
- * data: {
19522
- * // ... data to create a AuthorizationSession
19523
- * }
19524
- * })
19525
- *
19526
- */
19527
- create<T extends AuthorizationSessionCreateArgs>(args: SelectSubset<T, AuthorizationSessionCreateArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19528
-
19529
- /**
19530
- * Create many AuthorizationSessions.
19531
- * @param {AuthorizationSessionCreateManyArgs} args - Arguments to create many AuthorizationSessions.
19532
- * @example
19533
- * // Create many AuthorizationSessions
19534
- * const authorizationSession = await prisma.authorizationSession.createMany({
19535
- * data: [
19536
- * // ... provide data here
19537
- * ]
19538
- * })
19539
- *
19540
- */
19541
- createMany<T extends AuthorizationSessionCreateManyArgs>(args?: SelectSubset<T, AuthorizationSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19542
-
19543
- /**
19544
- * Delete a AuthorizationSession.
19545
- * @param {AuthorizationSessionDeleteArgs} args - Arguments to delete one AuthorizationSession.
19546
- * @example
19547
- * // Delete one AuthorizationSession
19548
- * const AuthorizationSession = await prisma.authorizationSession.delete({
19549
- * where: {
19550
- * // ... filter to delete one AuthorizationSession
19551
- * }
19552
- * })
19553
- *
19554
- */
19555
- delete<T extends AuthorizationSessionDeleteArgs>(args: SelectSubset<T, AuthorizationSessionDeleteArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19556
-
19557
- /**
19558
- * Update one AuthorizationSession.
19559
- * @param {AuthorizationSessionUpdateArgs} args - Arguments to update one AuthorizationSession.
19560
- * @example
19561
- * // Update one AuthorizationSession
19562
- * const authorizationSession = await prisma.authorizationSession.update({
19563
- * where: {
19564
- * // ... provide filter here
19565
- * },
19566
- * data: {
19567
- * // ... provide data here
19568
- * }
19569
- * })
19570
- *
19571
- */
19572
- update<T extends AuthorizationSessionUpdateArgs>(args: SelectSubset<T, AuthorizationSessionUpdateArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19573
-
19574
- /**
19575
- * Delete zero or more AuthorizationSessions.
19576
- * @param {AuthorizationSessionDeleteManyArgs} args - Arguments to filter AuthorizationSessions to delete.
19577
- * @example
19578
- * // Delete a few AuthorizationSessions
19579
- * const { count } = await prisma.authorizationSession.deleteMany({
19580
- * where: {
19581
- * // ... provide filter here
19582
- * }
19583
- * })
19584
- *
19585
- */
19586
- deleteMany<T extends AuthorizationSessionDeleteManyArgs>(args?: SelectSubset<T, AuthorizationSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19587
-
19588
- /**
19589
- * Update zero or more AuthorizationSessions.
19590
- * Note, that providing `undefined` is treated as the value not being there.
19591
- * Read more here: https://pris.ly/d/null-undefined
19592
- * @param {AuthorizationSessionUpdateManyArgs} args - Arguments to update one or more rows.
19593
- * @example
19594
- * // Update many AuthorizationSessions
19595
- * const authorizationSession = await prisma.authorizationSession.updateMany({
19596
- * where: {
19597
- * // ... provide filter here
19598
- * },
19599
- * data: {
19600
- * // ... provide data here
19601
- * }
19602
- * })
19603
- *
19604
- */
19605
- updateMany<T extends AuthorizationSessionUpdateManyArgs>(args: SelectSubset<T, AuthorizationSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
19606
-
19607
- /**
19608
- * Create or update one AuthorizationSession.
19609
- * @param {AuthorizationSessionUpsertArgs} args - Arguments to update or create a AuthorizationSession.
19610
- * @example
19611
- * // Update or create a AuthorizationSession
19612
- * const authorizationSession = await prisma.authorizationSession.upsert({
19613
- * create: {
19614
- * // ... data to create a AuthorizationSession
19615
- * },
19616
- * update: {
19617
- * // ... in case it already exists, update
19618
- * },
19619
- * where: {
19620
- * // ... the filter for the AuthorizationSession we want to update
19621
- * }
19622
- * })
19623
- */
19624
- upsert<T extends AuthorizationSessionUpsertArgs>(args: SelectSubset<T, AuthorizationSessionUpsertArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
19625
-
19626
- /**
19627
- * Find zero or more AuthorizationSessions that matches the filter.
19628
- * @param {AuthorizationSessionFindRawArgs} args - Select which filters you would like to apply.
19629
- * @example
19630
- * const authorizationSession = await prisma.authorizationSession.findRaw({
19631
- * filter: { age: { $gt: 25 } }
19632
- * })
19633
- */
19634
- findRaw(args?: AuthorizationSessionFindRawArgs): Prisma.PrismaPromise<JsonObject>
19635
-
19636
- /**
19637
- * Perform aggregation operations on a AuthorizationSession.
19638
- * @param {AuthorizationSessionAggregateRawArgs} args - Select which aggregations you would like to apply.
19639
- * @example
19640
- * const authorizationSession = await prisma.authorizationSession.aggregateRaw({
19641
- * pipeline: [
19642
- * { $match: { status: "registered" } },
19643
- * { $group: { _id: "$country", total: { $sum: 1 } } }
19644
- * ]
19645
- * })
19646
- */
19647
- aggregateRaw(args?: AuthorizationSessionAggregateRawArgs): Prisma.PrismaPromise<JsonObject>
19648
-
19649
-
19650
- /**
19651
- * Count the number of AuthorizationSessions.
19652
- * Note, that providing `undefined` is treated as the value not being there.
19653
- * Read more here: https://pris.ly/d/null-undefined
19654
- * @param {AuthorizationSessionCountArgs} args - Arguments to filter AuthorizationSessions to count.
19655
- * @example
19656
- * // Count the number of AuthorizationSessions
19657
- * const count = await prisma.authorizationSession.count({
19658
- * where: {
19659
- * // ... the filter for the AuthorizationSessions we want to count
19660
- * }
19661
- * })
19662
- **/
19663
- count<T extends AuthorizationSessionCountArgs>(
19664
- args?: Subset<T, AuthorizationSessionCountArgs>,
19665
- ): Prisma.PrismaPromise<
19666
- T extends $Utils.Record<'select', any>
19667
- ? T['select'] extends true
19668
- ? number
19669
- : GetScalarType<T['select'], AuthorizationSessionCountAggregateOutputType>
19670
- : number
19671
- >
19672
-
19673
- /**
19674
- * Allows you to perform aggregations operations on a AuthorizationSession.
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 {AuthorizationSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
19678
- * @example
19679
- * // Ordered by age ascending
19680
- * // Where email contains prisma.io
19681
- * // Limited to the 10 users
19682
- * const aggregations = await prisma.user.aggregate({
19683
- * _avg: {
19684
- * age: true,
19685
- * },
19686
- * where: {
19687
- * email: {
19688
- * contains: "prisma.io",
19689
- * },
19690
- * },
19691
- * orderBy: {
19692
- * age: "asc",
19693
- * },
19694
- * take: 10,
19695
- * })
19696
- **/
19697
- aggregate<T extends AuthorizationSessionAggregateArgs>(args: Subset<T, AuthorizationSessionAggregateArgs>): Prisma.PrismaPromise<GetAuthorizationSessionAggregateType<T>>
19698
-
19699
- /**
19700
- * Group by AuthorizationSession.
19701
- * Note, that providing `undefined` is treated as the value not being there.
19702
- * Read more here: https://pris.ly/d/null-undefined
19703
- * @param {AuthorizationSessionGroupByArgs} args - Group by arguments.
19704
- * @example
19705
- * // Group by city, order by createdAt, get count
19706
- * const result = await prisma.user.groupBy({
19707
- * by: ['city', 'createdAt'],
19708
- * orderBy: {
19709
- * createdAt: true
19710
- * },
19711
- * _count: {
19712
- * _all: true
19713
- * },
19714
- * })
19715
- *
19716
- **/
19717
- groupBy<
19718
- T extends AuthorizationSessionGroupByArgs,
19719
- HasSelectOrTake extends Or<
19720
- Extends<'skip', Keys<T>>,
19721
- Extends<'take', Keys<T>>
19722
- >,
19723
- OrderByArg extends True extends HasSelectOrTake
19724
- ? { orderBy: AuthorizationSessionGroupByArgs['orderBy'] }
19725
- : { orderBy?: AuthorizationSessionGroupByArgs['orderBy'] },
19726
- OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
19727
- ByFields extends MaybeTupleToUnion<T['by']>,
19728
- ByValid extends Has<ByFields, OrderFields>,
19729
- HavingFields extends GetHavingFields<T['having']>,
19730
- HavingValid extends Has<ByFields, HavingFields>,
19731
- ByEmpty extends T['by'] extends never[] ? True : False,
19732
- InputErrors extends ByEmpty extends True
19733
- ? `Error: "by" must not be empty.`
19734
- : HavingValid extends False
19735
- ? {
19736
- [P in HavingFields]: P extends ByFields
19737
- ? never
19738
- : P extends string
19739
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
19740
- : [
19741
- Error,
19742
- 'Field ',
19743
- P,
19744
- ` in "having" needs to be provided in "by"`,
19745
- ]
19746
- }[HavingFields]
19747
- : 'take' extends Keys<T>
19748
- ? 'orderBy' extends Keys<T>
19749
- ? ByValid extends True
19750
- ? {}
19751
- : {
19752
- [P in OrderFields]: P extends ByFields
19753
- ? never
19754
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19755
- }[OrderFields]
19756
- : 'Error: If you provide "take", you also need to provide "orderBy"'
19757
- : 'skip' extends Keys<T>
19758
- ? 'orderBy' extends Keys<T>
19759
- ? ByValid extends True
19760
- ? {}
19761
- : {
19762
- [P in OrderFields]: P extends ByFields
19763
- ? never
19764
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19765
- }[OrderFields]
19766
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
19767
- : ByValid extends True
19768
- ? {}
19769
- : {
19770
- [P in OrderFields]: P extends ByFields
19771
- ? never
19772
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
19773
- }[OrderFields]
19774
- >(args: SubsetIntersection<T, AuthorizationSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuthorizationSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
19775
- /**
19776
- * Fields of the AuthorizationSession model
19777
- */
19778
- readonly fields: AuthorizationSessionFieldRefs;
19779
- }
19780
-
19781
- /**
19782
- * The delegate class that acts as a "Promise-like" for AuthorizationSession.
19783
- * Why is this prefixed with `Prisma__`?
19784
- * Because we want to prevent naming conflicts as mentioned in
19785
- * https://github.com/prisma/prisma-client-js/issues/707
19786
- */
19787
- export interface Prisma__AuthorizationSessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
19788
- readonly [Symbol.toStringTag]: "PrismaPromise"
19789
- /**
19790
- * Attaches callbacks for the resolution and/or rejection of the Promise.
19791
- * @param onfulfilled The callback to execute when the Promise is resolved.
19792
- * @param onrejected The callback to execute when the Promise is rejected.
19793
- * @returns A Promise for the completion of which ever callback is executed.
19794
- */
19795
- 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>
19796
- /**
19797
- * Attaches a callback for only the rejection of the Promise.
19798
- * @param onrejected The callback to execute when the Promise is rejected.
19799
- * @returns A Promise for the completion of the callback.
19800
- */
19801
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
19802
- /**
19803
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
19804
- * resolved value cannot be modified from the callback.
19805
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19806
- * @returns A Promise for the completion of the callback.
19807
- */
19808
- finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
19809
- }
19810
-
19811
-
19812
-
19813
-
19814
- /**
19815
- * Fields of the AuthorizationSession model
19816
- */
19817
- interface AuthorizationSessionFieldRefs {
19818
- readonly id: FieldRef<"AuthorizationSession", 'String'>
19819
- readonly sessionId: FieldRef<"AuthorizationSession", 'String'>
19820
- readonly userId: FieldRef<"AuthorizationSession", 'String'>
19821
- readonly entityType: FieldRef<"AuthorizationSession", 'String'>
19822
- readonly credentialId: FieldRef<"AuthorizationSession", 'String'>
19823
- readonly currentStep: FieldRef<"AuthorizationSession", 'Int'>
19824
- readonly maxSteps: FieldRef<"AuthorizationSession", 'Int'>
19825
- readonly stepData: FieldRef<"AuthorizationSession", 'Json'>
19826
- readonly expiresAt: FieldRef<"AuthorizationSession", 'DateTime'>
19827
- readonly completed: FieldRef<"AuthorizationSession", 'Boolean'>
19828
- readonly createdAt: FieldRef<"AuthorizationSession", 'DateTime'>
19829
- readonly updatedAt: FieldRef<"AuthorizationSession", 'DateTime'>
19830
- }
19831
-
19832
-
19833
- // Custom InputTypes
19834
- /**
19835
- * AuthorizationSession findUnique
19836
- */
19837
- export type AuthorizationSessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19838
- /**
19839
- * Select specific fields to fetch from the AuthorizationSession
19840
- */
19841
- select?: AuthorizationSessionSelect<ExtArgs> | null
19842
- /**
19843
- * Omit specific fields from the AuthorizationSession
19844
- */
19845
- omit?: AuthorizationSessionOmit<ExtArgs> | null
19846
- /**
19847
- * Filter, which AuthorizationSession to fetch.
19848
- */
19849
- where: AuthorizationSessionWhereUniqueInput
19850
- }
19851
-
19852
- /**
19853
- * AuthorizationSession findUniqueOrThrow
19854
- */
19855
- export type AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19856
- /**
19857
- * Select specific fields to fetch from the AuthorizationSession
19858
- */
19859
- select?: AuthorizationSessionSelect<ExtArgs> | null
19860
- /**
19861
- * Omit specific fields from the AuthorizationSession
19862
- */
19863
- omit?: AuthorizationSessionOmit<ExtArgs> | null
19864
- /**
19865
- * Filter, which AuthorizationSession to fetch.
19866
- */
19867
- where: AuthorizationSessionWhereUniqueInput
19868
- }
19869
-
19870
- /**
19871
- * AuthorizationSession findFirst
19872
- */
19873
- export type AuthorizationSessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19874
- /**
19875
- * Select specific fields to fetch from the AuthorizationSession
19876
- */
19877
- select?: AuthorizationSessionSelect<ExtArgs> | null
19878
- /**
19879
- * Omit specific fields from the AuthorizationSession
19880
- */
19881
- omit?: AuthorizationSessionOmit<ExtArgs> | null
19882
- /**
19883
- * Filter, which AuthorizationSession to fetch.
19884
- */
19885
- where?: AuthorizationSessionWhereInput
19886
- /**
19887
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19888
- *
19889
- * Determine the order of AuthorizationSessions to fetch.
19890
- */
19891
- orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
19892
- /**
19893
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19894
- *
19895
- * Sets the position for searching for AuthorizationSessions.
19896
- */
19897
- cursor?: AuthorizationSessionWhereUniqueInput
19898
- /**
19899
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19900
- *
19901
- * Take `±n` AuthorizationSessions from the position of the cursor.
19902
- */
19903
- take?: number
19904
- /**
19905
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19906
- *
19907
- * Skip the first `n` AuthorizationSessions.
19908
- */
19909
- skip?: number
19910
- /**
19911
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
19912
- *
19913
- * Filter by unique combinations of AuthorizationSessions.
19914
- */
19915
- distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
19916
- }
19917
-
19918
- /**
19919
- * AuthorizationSession findFirstOrThrow
19920
- */
19921
- export type AuthorizationSessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19922
- /**
19923
- * Select specific fields to fetch from the AuthorizationSession
19924
- */
19925
- select?: AuthorizationSessionSelect<ExtArgs> | null
19926
- /**
19927
- * Omit specific fields from the AuthorizationSession
19928
- */
19929
- omit?: AuthorizationSessionOmit<ExtArgs> | null
19930
- /**
19931
- * Filter, which AuthorizationSession to fetch.
19932
- */
19933
- where?: AuthorizationSessionWhereInput
19934
- /**
19935
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19936
- *
19937
- * Determine the order of AuthorizationSessions to fetch.
19938
- */
19939
- orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
19940
- /**
19941
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19942
- *
19943
- * Sets the position for searching for AuthorizationSessions.
19944
- */
19945
- cursor?: AuthorizationSessionWhereUniqueInput
19946
- /**
19947
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19948
- *
19949
- * Take `±n` AuthorizationSessions from the position of the cursor.
19950
- */
19951
- take?: number
19952
- /**
19953
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19954
- *
19955
- * Skip the first `n` AuthorizationSessions.
19956
- */
19957
- skip?: number
19958
- /**
19959
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
19960
- *
19961
- * Filter by unique combinations of AuthorizationSessions.
19962
- */
19963
- distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
19964
- }
19965
-
19966
- /**
19967
- * AuthorizationSession findMany
19968
- */
19969
- export type AuthorizationSessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
19970
- /**
19971
- * Select specific fields to fetch from the AuthorizationSession
19972
- */
19973
- select?: AuthorizationSessionSelect<ExtArgs> | null
19974
- /**
19975
- * Omit specific fields from the AuthorizationSession
19976
- */
19977
- omit?: AuthorizationSessionOmit<ExtArgs> | null
19978
- /**
19979
- * Filter, which AuthorizationSessions to fetch.
19980
- */
19981
- where?: AuthorizationSessionWhereInput
19982
- /**
19983
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
19984
- *
19985
- * Determine the order of AuthorizationSessions to fetch.
19986
- */
19987
- orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
19988
- /**
19989
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
19990
- *
19991
- * Sets the position for listing AuthorizationSessions.
19992
- */
19993
- cursor?: AuthorizationSessionWhereUniqueInput
19994
- /**
19995
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
19996
- *
19997
- * Take `±n` AuthorizationSessions from the position of the cursor.
19998
- */
19999
- take?: number
20000
- /**
20001
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
20002
- *
20003
- * Skip the first `n` AuthorizationSessions.
20004
- */
20005
- skip?: number
20006
- distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
20007
- }
20008
-
20009
- /**
20010
- * AuthorizationSession create
20011
- */
20012
- export type AuthorizationSessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20013
- /**
20014
- * Select specific fields to fetch from the AuthorizationSession
20015
- */
20016
- select?: AuthorizationSessionSelect<ExtArgs> | null
20017
- /**
20018
- * Omit specific fields from the AuthorizationSession
20019
- */
20020
- omit?: AuthorizationSessionOmit<ExtArgs> | null
20021
- /**
20022
- * The data needed to create a AuthorizationSession.
20023
- */
20024
- data: XOR<AuthorizationSessionCreateInput, AuthorizationSessionUncheckedCreateInput>
20025
- }
20026
-
20027
- /**
20028
- * AuthorizationSession createMany
20029
- */
20030
- export type AuthorizationSessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20031
- /**
20032
- * The data used to create many AuthorizationSessions.
20033
- */
20034
- data: AuthorizationSessionCreateManyInput | AuthorizationSessionCreateManyInput[]
20035
- }
20036
-
20037
- /**
20038
- * AuthorizationSession update
20039
- */
20040
- export type AuthorizationSessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20041
- /**
20042
- * Select specific fields to fetch from the AuthorizationSession
20043
- */
20044
- select?: AuthorizationSessionSelect<ExtArgs> | null
20045
- /**
20046
- * Omit specific fields from the AuthorizationSession
20047
- */
20048
- omit?: AuthorizationSessionOmit<ExtArgs> | null
20049
- /**
20050
- * The data needed to update a AuthorizationSession.
20051
- */
20052
- data: XOR<AuthorizationSessionUpdateInput, AuthorizationSessionUncheckedUpdateInput>
20053
- /**
20054
- * Choose, which AuthorizationSession to update.
20055
- */
20056
- where: AuthorizationSessionWhereUniqueInput
20057
- }
20058
-
20059
- /**
20060
- * AuthorizationSession updateMany
20061
- */
20062
- export type AuthorizationSessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20063
- /**
20064
- * The data used to update AuthorizationSessions.
20065
- */
20066
- data: XOR<AuthorizationSessionUpdateManyMutationInput, AuthorizationSessionUncheckedUpdateManyInput>
20067
- /**
20068
- * Filter which AuthorizationSessions to update
20069
- */
20070
- where?: AuthorizationSessionWhereInput
20071
- /**
20072
- * Limit how many AuthorizationSessions to update.
20073
- */
20074
- limit?: number
20075
- }
20076
-
20077
- /**
20078
- * AuthorizationSession upsert
20079
- */
20080
- export type AuthorizationSessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20081
- /**
20082
- * Select specific fields to fetch from the AuthorizationSession
20083
- */
20084
- select?: AuthorizationSessionSelect<ExtArgs> | null
20085
- /**
20086
- * Omit specific fields from the AuthorizationSession
20087
- */
20088
- omit?: AuthorizationSessionOmit<ExtArgs> | null
20089
- /**
20090
- * The filter to search for the AuthorizationSession to update in case it exists.
20091
- */
20092
- where: AuthorizationSessionWhereUniqueInput
20093
- /**
20094
- * In case the AuthorizationSession found by the `where` argument doesn't exist, create a new AuthorizationSession with this data.
20095
- */
20096
- create: XOR<AuthorizationSessionCreateInput, AuthorizationSessionUncheckedCreateInput>
20097
- /**
20098
- * In case the AuthorizationSession was found with the provided `where` argument, update it with this data.
20099
- */
20100
- update: XOR<AuthorizationSessionUpdateInput, AuthorizationSessionUncheckedUpdateInput>
20101
- }
20102
-
20103
- /**
20104
- * AuthorizationSession delete
20105
- */
20106
- export type AuthorizationSessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20107
- /**
20108
- * Select specific fields to fetch from the AuthorizationSession
20109
- */
20110
- select?: AuthorizationSessionSelect<ExtArgs> | null
20111
- /**
20112
- * Omit specific fields from the AuthorizationSession
20113
- */
20114
- omit?: AuthorizationSessionOmit<ExtArgs> | null
20115
- /**
20116
- * Filter which AuthorizationSession to delete.
20117
- */
20118
- where: AuthorizationSessionWhereUniqueInput
20119
- }
20120
-
20121
- /**
20122
- * AuthorizationSession deleteMany
20123
- */
20124
- export type AuthorizationSessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20125
- /**
20126
- * Filter which AuthorizationSessions to delete
20127
- */
20128
- where?: AuthorizationSessionWhereInput
20129
- /**
20130
- * Limit how many AuthorizationSessions to delete.
20131
- */
20132
- limit?: number
20133
- }
20134
-
20135
- /**
20136
- * AuthorizationSession findRaw
20137
- */
20138
- export type AuthorizationSessionFindRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20139
- /**
20140
- * 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}.
20141
- */
20142
- filter?: InputJsonValue
20143
- /**
20144
- * Additional options to pass to the `find` command ${@link https://docs.mongodb.com/manual/reference/command/find/#command-fields MongoDB Docs}.
20145
- */
20146
- options?: InputJsonValue
20147
- }
20148
-
20149
- /**
20150
- * AuthorizationSession aggregateRaw
20151
- */
20152
- export type AuthorizationSessionAggregateRawArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20153
- /**
20154
- * 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}.
20155
- */
20156
- pipeline?: InputJsonValue[]
20157
- /**
20158
- * Additional options to pass to the `aggregate` command ${@link https://docs.mongodb.com/manual/reference/command/aggregate/#command-fields MongoDB Docs}.
20159
- */
20160
- options?: InputJsonValue
20161
- }
20162
-
20163
- /**
20164
- * AuthorizationSession without action
20165
- */
20166
- export type AuthorizationSessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
20167
- /**
20168
- * Select specific fields to fetch from the AuthorizationSession
20169
- */
20170
- select?: AuthorizationSessionSelect<ExtArgs> | null
20171
- /**
20172
- * Omit specific fields from the AuthorizationSession
20173
- */
20174
- omit?: AuthorizationSessionOmit<ExtArgs> | null
20175
- }
20176
-
20177
-
20178
- /**
20179
- * Enums
20180
- */
20181
-
20182
- export const UserScalarFieldEnum: {
20183
- id: 'id',
20184
- type: 'type',
20185
- createdAt: 'createdAt',
20186
- updatedAt: 'updatedAt',
20187
- email: 'email',
20188
- username: 'username',
20189
- hashword: 'hashword',
20190
- appUserId: 'appUserId',
20191
- organizationId: 'organizationId',
20192
- appOrgId: 'appOrgId',
20193
- name: 'name'
20194
- };
20195
-
20196
- export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
20197
-
20198
-
20199
- export const TokenScalarFieldEnum: {
20200
- id: 'id',
20201
- token: 'token',
20202
- created: 'created',
20203
- expires: 'expires',
20204
- userId: 'userId'
20205
- };
20206
-
20207
- export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
20208
-
20209
-
20210
- export const CredentialScalarFieldEnum: {
20211
- id: 'id',
20212
- userId: 'userId',
20213
- authIsValid: 'authIsValid',
20214
- externalId: 'externalId',
20215
- data: 'data',
20216
- createdAt: 'createdAt',
20217
- updatedAt: 'updatedAt'
20218
- };
20219
-
20220
- export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
20221
-
20222
-
20223
- export const EntityScalarFieldEnum: {
20224
- id: 'id',
20225
- credentialId: 'credentialId',
20226
- userId: 'userId',
20227
- name: 'name',
20228
- moduleName: 'moduleName',
20229
- externalId: 'externalId',
20230
- data: 'data',
20231
- createdAt: 'createdAt',
20232
- updatedAt: 'updatedAt',
20233
- integrationIds: 'integrationIds',
20234
- syncIds: 'syncIds'
20235
- };
20236
-
20237
- export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
20238
-
20239
-
20240
- export const IntegrationScalarFieldEnum: {
20241
- id: 'id',
20242
- userId: 'userId',
20243
- status: 'status',
20244
- config: 'config',
20245
- version: 'version',
20246
- entityIds: 'entityIds',
20247
- errors: 'errors',
20248
- warnings: 'warnings',
20249
- info: 'info',
20250
- logs: 'logs',
20251
- createdAt: 'createdAt',
20252
- updatedAt: 'updatedAt'
20253
- };
20254
-
20255
- export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
20256
-
20257
-
20258
- export const IntegrationMappingScalarFieldEnum: {
20259
- id: 'id',
20260
- integrationId: 'integrationId',
20261
- sourceId: 'sourceId',
20262
- mapping: 'mapping',
20263
- createdAt: 'createdAt',
20264
- updatedAt: 'updatedAt'
20265
- };
20266
-
20267
- export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
20268
-
20269
-
20270
- export const ProcessScalarFieldEnum: {
20271
- id: 'id',
20272
- userId: 'userId',
20273
- integrationId: 'integrationId',
20274
- name: 'name',
20275
- type: 'type',
20276
- state: 'state',
20277
- context: 'context',
20278
- results: 'results',
20279
- childProcesses: 'childProcesses',
20280
- parentProcessId: 'parentProcessId',
20281
- createdAt: 'createdAt',
20282
- updatedAt: 'updatedAt'
20283
- };
20284
-
20285
- export type ProcessScalarFieldEnum = (typeof ProcessScalarFieldEnum)[keyof typeof ProcessScalarFieldEnum]
20286
-
20287
-
20288
- export const SyncScalarFieldEnum: {
20289
- id: 'id',
20290
- integrationId: 'integrationId',
20291
- entityIds: 'entityIds',
20292
- hash: 'hash',
20293
- name: 'name'
20294
- };
19152
+ export const SyncScalarFieldEnum: {
19153
+ id: 'id',
19154
+ integrationId: 'integrationId',
19155
+ entityIds: 'entityIds',
19156
+ hash: 'hash',
19157
+ name: 'name'
19158
+ };
20295
19159
 
20296
19160
  export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
20297
19161
 
@@ -20393,24 +19257,6 @@ export namespace Prisma {
20393
19257
  export type UsageCounterScalarFieldEnum = (typeof UsageCounterScalarFieldEnum)[keyof typeof UsageCounterScalarFieldEnum]
20394
19258
 
20395
19259
 
20396
- export const AuthorizationSessionScalarFieldEnum: {
20397
- id: 'id',
20398
- sessionId: 'sessionId',
20399
- userId: 'userId',
20400
- entityType: 'entityType',
20401
- credentialId: 'credentialId',
20402
- currentStep: 'currentStep',
20403
- maxSteps: 'maxSteps',
20404
- stepData: 'stepData',
20405
- expiresAt: 'expiresAt',
20406
- completed: 'completed',
20407
- createdAt: 'createdAt',
20408
- updatedAt: 'updatedAt'
20409
- };
20410
-
20411
- export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
20412
-
20413
-
20414
19260
  export const SortOrder: {
20415
19261
  asc: 'asc',
20416
19262
  desc: 'desc'
@@ -21704,95 +20550,6 @@ export namespace Prisma {
21704
20550
  updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
21705
20551
  }
21706
20552
 
21707
- export type AuthorizationSessionWhereInput = {
21708
- AND?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
21709
- OR?: AuthorizationSessionWhereInput[]
21710
- NOT?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
21711
- id?: StringFilter<"AuthorizationSession"> | string
21712
- sessionId?: StringFilter<"AuthorizationSession"> | string
21713
- userId?: StringFilter<"AuthorizationSession"> | string
21714
- entityType?: StringFilter<"AuthorizationSession"> | string
21715
- credentialId?: StringNullableFilter<"AuthorizationSession"> | string | null
21716
- currentStep?: IntFilter<"AuthorizationSession"> | number
21717
- maxSteps?: IntFilter<"AuthorizationSession"> | number
21718
- stepData?: JsonFilter<"AuthorizationSession">
21719
- expiresAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
21720
- completed?: BoolFilter<"AuthorizationSession"> | boolean
21721
- createdAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
21722
- updatedAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
21723
- }
21724
-
21725
- export type AuthorizationSessionOrderByWithRelationInput = {
21726
- id?: SortOrder
21727
- sessionId?: SortOrder
21728
- userId?: SortOrder
21729
- entityType?: SortOrder
21730
- credentialId?: SortOrder
21731
- currentStep?: SortOrder
21732
- maxSteps?: SortOrder
21733
- stepData?: SortOrder
21734
- expiresAt?: SortOrder
21735
- completed?: SortOrder
21736
- createdAt?: SortOrder
21737
- updatedAt?: SortOrder
21738
- }
21739
-
21740
- export type AuthorizationSessionWhereUniqueInput = Prisma.AtLeast<{
21741
- id?: string
21742
- sessionId?: string
21743
- AND?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
21744
- OR?: AuthorizationSessionWhereInput[]
21745
- NOT?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
21746
- userId?: StringFilter<"AuthorizationSession"> | string
21747
- entityType?: StringFilter<"AuthorizationSession"> | string
21748
- credentialId?: StringNullableFilter<"AuthorizationSession"> | string | null
21749
- currentStep?: IntFilter<"AuthorizationSession"> | number
21750
- maxSteps?: IntFilter<"AuthorizationSession"> | number
21751
- stepData?: JsonFilter<"AuthorizationSession">
21752
- expiresAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
21753
- completed?: BoolFilter<"AuthorizationSession"> | boolean
21754
- createdAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
21755
- updatedAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
21756
- }, "id" | "sessionId">
21757
-
21758
- export type AuthorizationSessionOrderByWithAggregationInput = {
21759
- id?: SortOrder
21760
- sessionId?: SortOrder
21761
- userId?: SortOrder
21762
- entityType?: SortOrder
21763
- credentialId?: SortOrder
21764
- currentStep?: SortOrder
21765
- maxSteps?: SortOrder
21766
- stepData?: SortOrder
21767
- expiresAt?: SortOrder
21768
- completed?: SortOrder
21769
- createdAt?: SortOrder
21770
- updatedAt?: SortOrder
21771
- _count?: AuthorizationSessionCountOrderByAggregateInput
21772
- _avg?: AuthorizationSessionAvgOrderByAggregateInput
21773
- _max?: AuthorizationSessionMaxOrderByAggregateInput
21774
- _min?: AuthorizationSessionMinOrderByAggregateInput
21775
- _sum?: AuthorizationSessionSumOrderByAggregateInput
21776
- }
21777
-
21778
- export type AuthorizationSessionScalarWhereWithAggregatesInput = {
21779
- AND?: AuthorizationSessionScalarWhereWithAggregatesInput | AuthorizationSessionScalarWhereWithAggregatesInput[]
21780
- OR?: AuthorizationSessionScalarWhereWithAggregatesInput[]
21781
- NOT?: AuthorizationSessionScalarWhereWithAggregatesInput | AuthorizationSessionScalarWhereWithAggregatesInput[]
21782
- id?: StringWithAggregatesFilter<"AuthorizationSession"> | string
21783
- sessionId?: StringWithAggregatesFilter<"AuthorizationSession"> | string
21784
- userId?: StringWithAggregatesFilter<"AuthorizationSession"> | string
21785
- entityType?: StringWithAggregatesFilter<"AuthorizationSession"> | string
21786
- credentialId?: StringNullableWithAggregatesFilter<"AuthorizationSession"> | string | null
21787
- currentStep?: IntWithAggregatesFilter<"AuthorizationSession"> | number
21788
- maxSteps?: IntWithAggregatesFilter<"AuthorizationSession"> | number
21789
- stepData?: JsonWithAggregatesFilter<"AuthorizationSession">
21790
- expiresAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
21791
- completed?: BoolWithAggregatesFilter<"AuthorizationSession"> | boolean
21792
- createdAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
21793
- updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
21794
- }
21795
-
21796
20553
  export type UserCreateInput = {
21797
20554
  id?: string
21798
20555
  type: $Enums.UserType
@@ -22940,107 +21697,6 @@ export namespace Prisma {
22940
21697
  updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22941
21698
  }
22942
21699
 
22943
- export type AuthorizationSessionCreateInput = {
22944
- id?: string
22945
- sessionId: string
22946
- userId: string
22947
- entityType: string
22948
- credentialId?: string | null
22949
- currentStep?: number
22950
- maxSteps: number
22951
- stepData?: InputJsonValue
22952
- expiresAt: Date | string
22953
- completed?: boolean
22954
- createdAt?: Date | string
22955
- updatedAt?: Date | string
22956
- }
22957
-
22958
- export type AuthorizationSessionUncheckedCreateInput = {
22959
- id?: string
22960
- sessionId: string
22961
- userId: string
22962
- entityType: string
22963
- credentialId?: string | null
22964
- currentStep?: number
22965
- maxSteps: number
22966
- stepData?: InputJsonValue
22967
- expiresAt: Date | string
22968
- completed?: boolean
22969
- createdAt?: Date | string
22970
- updatedAt?: Date | string
22971
- }
22972
-
22973
- export type AuthorizationSessionUpdateInput = {
22974
- sessionId?: StringFieldUpdateOperationsInput | string
22975
- userId?: StringFieldUpdateOperationsInput | string
22976
- entityType?: StringFieldUpdateOperationsInput | string
22977
- credentialId?: NullableStringFieldUpdateOperationsInput | string | null
22978
- currentStep?: IntFieldUpdateOperationsInput | number
22979
- maxSteps?: IntFieldUpdateOperationsInput | number
22980
- stepData?: InputJsonValue | InputJsonValue
22981
- expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
22982
- completed?: BoolFieldUpdateOperationsInput | boolean
22983
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22984
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22985
- }
22986
-
22987
- export type AuthorizationSessionUncheckedUpdateInput = {
22988
- sessionId?: StringFieldUpdateOperationsInput | string
22989
- userId?: StringFieldUpdateOperationsInput | string
22990
- entityType?: StringFieldUpdateOperationsInput | string
22991
- credentialId?: NullableStringFieldUpdateOperationsInput | string | null
22992
- currentStep?: IntFieldUpdateOperationsInput | number
22993
- maxSteps?: IntFieldUpdateOperationsInput | number
22994
- stepData?: InputJsonValue | InputJsonValue
22995
- expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
22996
- completed?: BoolFieldUpdateOperationsInput | boolean
22997
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
22998
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
22999
- }
23000
-
23001
- export type AuthorizationSessionCreateManyInput = {
23002
- id?: string
23003
- sessionId: string
23004
- userId: string
23005
- entityType: string
23006
- credentialId?: string | null
23007
- currentStep?: number
23008
- maxSteps: number
23009
- stepData?: InputJsonValue
23010
- expiresAt: Date | string
23011
- completed?: boolean
23012
- createdAt?: Date | string
23013
- updatedAt?: Date | string
23014
- }
23015
-
23016
- export type AuthorizationSessionUpdateManyMutationInput = {
23017
- sessionId?: StringFieldUpdateOperationsInput | string
23018
- userId?: StringFieldUpdateOperationsInput | string
23019
- entityType?: StringFieldUpdateOperationsInput | string
23020
- credentialId?: NullableStringFieldUpdateOperationsInput | string | null
23021
- currentStep?: IntFieldUpdateOperationsInput | number
23022
- maxSteps?: IntFieldUpdateOperationsInput | number
23023
- stepData?: InputJsonValue | InputJsonValue
23024
- expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
23025
- completed?: BoolFieldUpdateOperationsInput | boolean
23026
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23027
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23028
- }
23029
-
23030
- export type AuthorizationSessionUncheckedUpdateManyInput = {
23031
- sessionId?: StringFieldUpdateOperationsInput | string
23032
- userId?: StringFieldUpdateOperationsInput | string
23033
- entityType?: StringFieldUpdateOperationsInput | string
23034
- credentialId?: NullableStringFieldUpdateOperationsInput | string | null
23035
- currentStep?: IntFieldUpdateOperationsInput | number
23036
- maxSteps?: IntFieldUpdateOperationsInput | number
23037
- stepData?: InputJsonValue | InputJsonValue
23038
- expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
23039
- completed?: BoolFieldUpdateOperationsInput | boolean
23040
- createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
23041
- updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
23042
- }
23043
-
23044
21700
  export type StringFilter<$PrismaModel = never> = {
23045
21701
  equals?: string | StringFieldRefInput<$PrismaModel>
23046
21702
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -23975,86 +22631,6 @@ export namespace Prisma {
23975
22631
  _max?: NestedBigIntFilter<$PrismaModel>
23976
22632
  }
23977
22633
 
23978
- export type IntFilter<$PrismaModel = never> = {
23979
- equals?: number | IntFieldRefInput<$PrismaModel>
23980
- in?: number[] | ListIntFieldRefInput<$PrismaModel>
23981
- notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
23982
- lt?: number | IntFieldRefInput<$PrismaModel>
23983
- lte?: number | IntFieldRefInput<$PrismaModel>
23984
- gt?: number | IntFieldRefInput<$PrismaModel>
23985
- gte?: number | IntFieldRefInput<$PrismaModel>
23986
- not?: NestedIntFilter<$PrismaModel> | number
23987
- }
23988
-
23989
- export type AuthorizationSessionCountOrderByAggregateInput = {
23990
- id?: SortOrder
23991
- sessionId?: SortOrder
23992
- userId?: SortOrder
23993
- entityType?: SortOrder
23994
- credentialId?: SortOrder
23995
- currentStep?: SortOrder
23996
- maxSteps?: SortOrder
23997
- stepData?: SortOrder
23998
- expiresAt?: SortOrder
23999
- completed?: SortOrder
24000
- createdAt?: SortOrder
24001
- updatedAt?: SortOrder
24002
- }
24003
-
24004
- export type AuthorizationSessionAvgOrderByAggregateInput = {
24005
- currentStep?: SortOrder
24006
- maxSteps?: SortOrder
24007
- }
24008
-
24009
- export type AuthorizationSessionMaxOrderByAggregateInput = {
24010
- id?: SortOrder
24011
- sessionId?: SortOrder
24012
- userId?: SortOrder
24013
- entityType?: SortOrder
24014
- credentialId?: SortOrder
24015
- currentStep?: SortOrder
24016
- maxSteps?: SortOrder
24017
- expiresAt?: SortOrder
24018
- completed?: SortOrder
24019
- createdAt?: SortOrder
24020
- updatedAt?: SortOrder
24021
- }
24022
-
24023
- export type AuthorizationSessionMinOrderByAggregateInput = {
24024
- id?: SortOrder
24025
- sessionId?: SortOrder
24026
- userId?: SortOrder
24027
- entityType?: SortOrder
24028
- credentialId?: SortOrder
24029
- currentStep?: SortOrder
24030
- maxSteps?: SortOrder
24031
- expiresAt?: SortOrder
24032
- completed?: SortOrder
24033
- createdAt?: SortOrder
24034
- updatedAt?: SortOrder
24035
- }
24036
-
24037
- export type AuthorizationSessionSumOrderByAggregateInput = {
24038
- currentStep?: SortOrder
24039
- maxSteps?: SortOrder
24040
- }
24041
-
24042
- export type IntWithAggregatesFilter<$PrismaModel = never> = {
24043
- equals?: number | IntFieldRefInput<$PrismaModel>
24044
- in?: number[] | ListIntFieldRefInput<$PrismaModel>
24045
- notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
24046
- lt?: number | IntFieldRefInput<$PrismaModel>
24047
- lte?: number | IntFieldRefInput<$PrismaModel>
24048
- gt?: number | IntFieldRefInput<$PrismaModel>
24049
- gte?: number | IntFieldRefInput<$PrismaModel>
24050
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
24051
- _count?: NestedIntFilter<$PrismaModel>
24052
- _avg?: NestedFloatFilter<$PrismaModel>
24053
- _sum?: NestedIntFilter<$PrismaModel>
24054
- _min?: NestedIntFilter<$PrismaModel>
24055
- _max?: NestedIntFilter<$PrismaModel>
24056
- }
24057
-
24058
22634
  export type UserCreateNestedOneWithoutMembersInput = {
24059
22635
  create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
24060
22636
  connectOrCreate?: UserCreateOrConnectWithoutMembersInput
@@ -25166,14 +23742,6 @@ export namespace Prisma {
25166
23742
  divide?: bigint | number
25167
23743
  }
25168
23744
 
25169
- export type IntFieldUpdateOperationsInput = {
25170
- set?: number
25171
- increment?: number
25172
- decrement?: number
25173
- multiply?: number
25174
- divide?: number
25175
- }
25176
-
25177
23745
  export type NestedStringFilter<$PrismaModel = never> = {
25178
23746
  equals?: string | StringFieldRefInput<$PrismaModel>
25179
23747
  in?: string[] | ListStringFieldRefInput<$PrismaModel>
@@ -25470,22 +24038,6 @@ export namespace Prisma {
25470
24038
  not?: NestedFloatFilter<$PrismaModel> | number
25471
24039
  }
25472
24040
 
25473
- export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
25474
- equals?: number | IntFieldRefInput<$PrismaModel>
25475
- in?: number[] | ListIntFieldRefInput<$PrismaModel>
25476
- notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
25477
- lt?: number | IntFieldRefInput<$PrismaModel>
25478
- lte?: number | IntFieldRefInput<$PrismaModel>
25479
- gt?: number | IntFieldRefInput<$PrismaModel>
25480
- gte?: number | IntFieldRefInput<$PrismaModel>
25481
- not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
25482
- _count?: NestedIntFilter<$PrismaModel>
25483
- _avg?: NestedFloatFilter<$PrismaModel>
25484
- _sum?: NestedIntFilter<$PrismaModel>
25485
- _min?: NestedIntFilter<$PrismaModel>
25486
- _max?: NestedIntFilter<$PrismaModel>
25487
- }
25488
-
25489
24041
  export type UserCreateWithoutMembersInput = {
25490
24042
  id?: string
25491
24043
  type: $Enums.UserType