@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.
- package/CHANGELOG.md +0 -11
- package/application/commands/integration-commands.js +8 -18
- package/application/index.js +2 -6
- package/credential/repositories/credential-repository-documentdb.js +0 -34
- package/credential/repositories/credential-repository-interface.js +0 -15
- package/credential/repositories/credential-repository-mongo.js +0 -23
- package/credential/repositories/credential-repository-postgres.js +0 -28
- package/database/encryption/README.md +0 -2
- package/database/encryption/encryption-schema-registry.js +12 -41
- package/database/encryption/field-encryption-service.js +5 -69
- package/generated/prisma-mongodb/edge.js +4 -20
- package/generated/prisma-mongodb/index-browser.js +1 -17
- package/generated/prisma-mongodb/index.d.ts +95 -1543
- package/generated/prisma-mongodb/index.js +4 -20
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +0 -27
- package/generated/prisma-mongodb/wasm.js +4 -20
- package/generated/prisma-postgresql/edge.js +4 -20
- package/generated/prisma-postgresql/index-browser.js +1 -17
- package/generated/prisma-postgresql/index.d.ts +84 -1565
- package/generated/prisma-postgresql/index.js +4 -20
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +0 -26
- package/generated/prisma-postgresql/wasm.js +4 -20
- package/handlers/app-definition-loader.js +8 -19
- package/handlers/app-handler-helpers.js +3 -25
- package/handlers/backend-utils.js +25 -31
- package/handlers/middleware/admin-auth.js +1 -14
- package/handlers/routers/auth.js +3 -11
- package/handlers/routers/health.js +4 -11
- package/handlers/workers/integration-defined-workers.js +2 -5
- package/index.js +2 -4
- package/integrations/index.js +4 -0
- package/integrations/integration-router.js +23 -16
- package/integrations/utils/map-integration-dto.js +15 -1
- package/modules/index.js +0 -6
- package/modules/requester/requester.js +2 -27
- package/package.json +5 -5
- package/prisma-mongodb/schema.prisma +0 -27
- package/prisma-postgresql/schema.prisma +0 -26
- package/types/index.d.ts +0 -1
- package/credential/use-cases/credential-operations-for-user.js +0 -117
- package/credential/use-cases/reauthorize-credential-for-user.js +0 -66
- package/database/encryption/test-support/fake-ciphertext.js +0 -15
- package/integrations/use-cases/integration-operations-for-user.js +0 -225
- package/management-api/create-management-api-router.js +0 -49
- package/management-api/error-response.js +0 -116
- package/management-api/management-api-config.js +0 -82
- package/management-api/meta-router.js +0 -57
- package/management-api/openapi/build-openapi.js +0 -144
- package/management-api/openapi/components.js +0 -368
- package/management-api/openapi/v1-operations.js +0 -83
- package/management-api/openapi/v2-operations.js +0 -252
- package/management-api/route-registry.js +0 -294
- package/management-api/test-support/http-client.js +0 -39
- package/management-api/use-cases/get-management-api-meta.js +0 -57
- package/management-api/v1-deprecation.js +0 -120
- package/management-api/v2/create-v2-router.js +0 -85
- package/management-api/v2/dependencies.js +0 -256
- package/management-api/v2/dto.js +0 -123
- package/management-api/v2/handlers/authorization.js +0 -93
- package/management-api/v2/handlers/credentials.js +0 -29
- package/management-api/v2/handlers/entities.js +0 -74
- package/management-api/v2/handlers/integrations.js +0 -125
- package/management-api/v2/handlers/proxy.js +0 -34
- package/management-api/v2/request.js +0 -54
- package/management-api/v2/test-support/fake-dependencies.js +0 -103
- package/modules/domain/authorization-session.js +0 -144
- package/modules/entity-type-registry.js +0 -311
- package/modules/proxy/proxy-errors.js +0 -20
- package/modules/proxy/proxy-path.js +0 -179
- package/modules/proxy/proxy-policy.js +0 -248
- package/modules/repositories/authorization-session-repository-documentdb.js +0 -112
- package/modules/repositories/authorization-session-repository-factory.js +0 -31
- package/modules/repositories/authorization-session-repository-interface.js +0 -47
- package/modules/repositories/authorization-session-repository-prisma.js +0 -87
- package/modules/requester/proxy-request.js +0 -244
- package/modules/tests/doubles/in-memory-authorization-session-repository.js +0 -45
- package/modules/use-cases/entity-operations-for-user.js +0 -125
- package/modules/use-cases/entity-types.js +0 -115
- package/modules/use-cases/execute-entity-proxy-request.js +0 -239
- package/modules/use-cases/get-authorization-requirements.js +0 -100
- package/modules/use-cases/get-entity-module-for-user.js +0 -86
- package/modules/use-cases/multi-step-authorization.js +0 -302
- package/prisma-postgresql/migrations/20261003000000_add_authorization_session/migration.sql +0 -28
- 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 rows are removed
|
|
110
|
-
* opportunistically. stepData is encrypted at rest.
|
|
111
|
-
*/
|
|
112
|
-
export type AuthorizationSession = $Result.DefaultSelection<Prisma.$AuthorizationSessionPayload>
|
|
113
106
|
|
|
114
107
|
/**
|
|
115
108
|
* Enums
|
|
@@ -449,16 +442,6 @@ export class PrismaClient<
|
|
|
449
442
|
* ```
|
|
450
443
|
*/
|
|
451
444
|
get usageCounter(): Prisma.UsageCounterDelegate<ExtArgs, ClientOptions>;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* `prisma.authorizationSession`: Exposes CRUD operations for the **AuthorizationSession** model.
|
|
455
|
-
* Example usage:
|
|
456
|
-
* ```ts
|
|
457
|
-
* // Fetch zero or more AuthorizationSessions
|
|
458
|
-
* const authorizationSessions = await prisma.authorizationSession.findMany()
|
|
459
|
-
* ```
|
|
460
|
-
*/
|
|
461
|
-
get authorizationSession(): Prisma.AuthorizationSessionDelegate<ExtArgs, ClientOptions>;
|
|
462
445
|
}
|
|
463
446
|
|
|
464
447
|
export namespace Prisma {
|
|
@@ -915,8 +898,7 @@ export namespace Prisma {
|
|
|
915
898
|
WebsocketConnection: 'WebsocketConnection',
|
|
916
899
|
AdminScriptExecution: 'AdminScriptExecution',
|
|
917
900
|
ScriptSchedule: 'ScriptSchedule',
|
|
918
|
-
UsageCounter: 'UsageCounter'
|
|
919
|
-
AuthorizationSession: 'AuthorizationSession'
|
|
901
|
+
UsageCounter: 'UsageCounter'
|
|
920
902
|
};
|
|
921
903
|
|
|
922
904
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
@@ -935,7 +917,7 @@ export namespace Prisma {
|
|
|
935
917
|
omit: GlobalOmitOptions
|
|
936
918
|
}
|
|
937
919
|
meta: {
|
|
938
|
-
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter"
|
|
920
|
+
modelProps: "user" | "token" | "credential" | "entity" | "integration" | "integrationMapping" | "sync" | "dataIdentifier" | "association" | "associationObject" | "process" | "state" | "websocketConnection" | "adminScriptExecution" | "scriptSchedule" | "usageCounter"
|
|
939
921
|
txIsolationLevel: Prisma.TransactionIsolationLevel
|
|
940
922
|
}
|
|
941
923
|
model: {
|
|
@@ -2123,80 +2105,6 @@ export namespace Prisma {
|
|
|
2123
2105
|
}
|
|
2124
2106
|
}
|
|
2125
2107
|
}
|
|
2126
|
-
AuthorizationSession: {
|
|
2127
|
-
payload: Prisma.$AuthorizationSessionPayload<ExtArgs>
|
|
2128
|
-
fields: Prisma.AuthorizationSessionFieldRefs
|
|
2129
|
-
operations: {
|
|
2130
|
-
findUnique: {
|
|
2131
|
-
args: Prisma.AuthorizationSessionFindUniqueArgs<ExtArgs>
|
|
2132
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload> | null
|
|
2133
|
-
}
|
|
2134
|
-
findUniqueOrThrow: {
|
|
2135
|
-
args: Prisma.AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs>
|
|
2136
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
|
|
2137
|
-
}
|
|
2138
|
-
findFirst: {
|
|
2139
|
-
args: Prisma.AuthorizationSessionFindFirstArgs<ExtArgs>
|
|
2140
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload> | null
|
|
2141
|
-
}
|
|
2142
|
-
findFirstOrThrow: {
|
|
2143
|
-
args: Prisma.AuthorizationSessionFindFirstOrThrowArgs<ExtArgs>
|
|
2144
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
|
|
2145
|
-
}
|
|
2146
|
-
findMany: {
|
|
2147
|
-
args: Prisma.AuthorizationSessionFindManyArgs<ExtArgs>
|
|
2148
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>[]
|
|
2149
|
-
}
|
|
2150
|
-
create: {
|
|
2151
|
-
args: Prisma.AuthorizationSessionCreateArgs<ExtArgs>
|
|
2152
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
|
|
2153
|
-
}
|
|
2154
|
-
createMany: {
|
|
2155
|
-
args: Prisma.AuthorizationSessionCreateManyArgs<ExtArgs>
|
|
2156
|
-
result: BatchPayload
|
|
2157
|
-
}
|
|
2158
|
-
createManyAndReturn: {
|
|
2159
|
-
args: Prisma.AuthorizationSessionCreateManyAndReturnArgs<ExtArgs>
|
|
2160
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>[]
|
|
2161
|
-
}
|
|
2162
|
-
delete: {
|
|
2163
|
-
args: Prisma.AuthorizationSessionDeleteArgs<ExtArgs>
|
|
2164
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
|
|
2165
|
-
}
|
|
2166
|
-
update: {
|
|
2167
|
-
args: Prisma.AuthorizationSessionUpdateArgs<ExtArgs>
|
|
2168
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
|
|
2169
|
-
}
|
|
2170
|
-
deleteMany: {
|
|
2171
|
-
args: Prisma.AuthorizationSessionDeleteManyArgs<ExtArgs>
|
|
2172
|
-
result: BatchPayload
|
|
2173
|
-
}
|
|
2174
|
-
updateMany: {
|
|
2175
|
-
args: Prisma.AuthorizationSessionUpdateManyArgs<ExtArgs>
|
|
2176
|
-
result: BatchPayload
|
|
2177
|
-
}
|
|
2178
|
-
updateManyAndReturn: {
|
|
2179
|
-
args: Prisma.AuthorizationSessionUpdateManyAndReturnArgs<ExtArgs>
|
|
2180
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>[]
|
|
2181
|
-
}
|
|
2182
|
-
upsert: {
|
|
2183
|
-
args: Prisma.AuthorizationSessionUpsertArgs<ExtArgs>
|
|
2184
|
-
result: $Utils.PayloadToResult<Prisma.$AuthorizationSessionPayload>
|
|
2185
|
-
}
|
|
2186
|
-
aggregate: {
|
|
2187
|
-
args: Prisma.AuthorizationSessionAggregateArgs<ExtArgs>
|
|
2188
|
-
result: $Utils.Optional<AggregateAuthorizationSession>
|
|
2189
|
-
}
|
|
2190
|
-
groupBy: {
|
|
2191
|
-
args: Prisma.AuthorizationSessionGroupByArgs<ExtArgs>
|
|
2192
|
-
result: $Utils.Optional<AuthorizationSessionGroupByOutputType>[]
|
|
2193
|
-
}
|
|
2194
|
-
count: {
|
|
2195
|
-
args: Prisma.AuthorizationSessionCountArgs<ExtArgs>
|
|
2196
|
-
result: $Utils.Optional<AuthorizationSessionCountAggregateOutputType> | number
|
|
2197
|
-
}
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
2108
|
}
|
|
2201
2109
|
} & {
|
|
2202
2110
|
other: {
|
|
@@ -2309,7 +2217,6 @@ export namespace Prisma {
|
|
|
2309
2217
|
adminScriptExecution?: AdminScriptExecutionOmit
|
|
2310
2218
|
scriptSchedule?: ScriptScheduleOmit
|
|
2311
2219
|
usageCounter?: UsageCounterOmit
|
|
2312
|
-
authorizationSession?: AuthorizationSessionOmit
|
|
2313
2220
|
}
|
|
2314
2221
|
|
|
2315
2222
|
/* Types for Logging */
|
|
@@ -21218,1236 +21125,112 @@ export namespace Prisma {
|
|
|
21218
21125
|
|
|
21219
21126
|
|
|
21220
21127
|
/**
|
|
21221
|
-
*
|
|
21128
|
+
* Enums
|
|
21222
21129
|
*/
|
|
21223
21130
|
|
|
21224
|
-
export
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
}
|
|
21131
|
+
export const TransactionIsolationLevel: {
|
|
21132
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
21133
|
+
ReadCommitted: 'ReadCommitted',
|
|
21134
|
+
RepeatableRead: 'RepeatableRead',
|
|
21135
|
+
Serializable: 'Serializable'
|
|
21136
|
+
};
|
|
21231
21137
|
|
|
21232
|
-
export type
|
|
21233
|
-
id: number | null
|
|
21234
|
-
currentStep: number | null
|
|
21235
|
-
maxSteps: number | null
|
|
21236
|
-
}
|
|
21138
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
21237
21139
|
|
|
21238
|
-
export type AuthorizationSessionSumAggregateOutputType = {
|
|
21239
|
-
id: number | null
|
|
21240
|
-
currentStep: number | null
|
|
21241
|
-
maxSteps: number | null
|
|
21242
|
-
}
|
|
21243
21140
|
|
|
21244
|
-
export
|
|
21245
|
-
id:
|
|
21246
|
-
|
|
21247
|
-
|
|
21248
|
-
|
|
21249
|
-
|
|
21250
|
-
|
|
21251
|
-
|
|
21252
|
-
|
|
21253
|
-
|
|
21254
|
-
|
|
21255
|
-
|
|
21256
|
-
}
|
|
21141
|
+
export const UserScalarFieldEnum: {
|
|
21142
|
+
id: 'id',
|
|
21143
|
+
type: 'type',
|
|
21144
|
+
createdAt: 'createdAt',
|
|
21145
|
+
updatedAt: 'updatedAt',
|
|
21146
|
+
email: 'email',
|
|
21147
|
+
username: 'username',
|
|
21148
|
+
hashword: 'hashword',
|
|
21149
|
+
appUserId: 'appUserId',
|
|
21150
|
+
organizationId: 'organizationId',
|
|
21151
|
+
appOrgId: 'appOrgId',
|
|
21152
|
+
name: 'name'
|
|
21153
|
+
};
|
|
21257
21154
|
|
|
21258
|
-
export type
|
|
21259
|
-
id: number | null
|
|
21260
|
-
sessionId: string | null
|
|
21261
|
-
userId: string | null
|
|
21262
|
-
entityType: string | null
|
|
21263
|
-
credentialId: string | null
|
|
21264
|
-
currentStep: number | null
|
|
21265
|
-
maxSteps: number | null
|
|
21266
|
-
expiresAt: Date | null
|
|
21267
|
-
completed: boolean | null
|
|
21268
|
-
createdAt: Date | null
|
|
21269
|
-
updatedAt: Date | null
|
|
21270
|
-
}
|
|
21155
|
+
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
21271
21156
|
|
|
21272
|
-
export type AuthorizationSessionCountAggregateOutputType = {
|
|
21273
|
-
id: number
|
|
21274
|
-
sessionId: number
|
|
21275
|
-
userId: number
|
|
21276
|
-
entityType: number
|
|
21277
|
-
credentialId: number
|
|
21278
|
-
currentStep: number
|
|
21279
|
-
maxSteps: number
|
|
21280
|
-
stepData: number
|
|
21281
|
-
expiresAt: number
|
|
21282
|
-
completed: number
|
|
21283
|
-
createdAt: number
|
|
21284
|
-
updatedAt: number
|
|
21285
|
-
_all: number
|
|
21286
|
-
}
|
|
21287
21157
|
|
|
21158
|
+
export const TokenScalarFieldEnum: {
|
|
21159
|
+
id: 'id',
|
|
21160
|
+
token: 'token',
|
|
21161
|
+
created: 'created',
|
|
21162
|
+
expires: 'expires',
|
|
21163
|
+
userId: 'userId'
|
|
21164
|
+
};
|
|
21288
21165
|
|
|
21289
|
-
export type
|
|
21290
|
-
id?: true
|
|
21291
|
-
currentStep?: true
|
|
21292
|
-
maxSteps?: true
|
|
21293
|
-
}
|
|
21166
|
+
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
21294
21167
|
|
|
21295
|
-
export type AuthorizationSessionSumAggregateInputType = {
|
|
21296
|
-
id?: true
|
|
21297
|
-
currentStep?: true
|
|
21298
|
-
maxSteps?: true
|
|
21299
|
-
}
|
|
21300
21168
|
|
|
21301
|
-
export
|
|
21302
|
-
id
|
|
21303
|
-
|
|
21304
|
-
|
|
21305
|
-
|
|
21306
|
-
|
|
21307
|
-
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
completed?: true
|
|
21311
|
-
createdAt?: true
|
|
21312
|
-
updatedAt?: true
|
|
21313
|
-
}
|
|
21169
|
+
export const CredentialScalarFieldEnum: {
|
|
21170
|
+
id: 'id',
|
|
21171
|
+
userId: 'userId',
|
|
21172
|
+
authIsValid: 'authIsValid',
|
|
21173
|
+
externalId: 'externalId',
|
|
21174
|
+
data: 'data',
|
|
21175
|
+
createdAt: 'createdAt',
|
|
21176
|
+
updatedAt: 'updatedAt'
|
|
21177
|
+
};
|
|
21314
21178
|
|
|
21315
|
-
export type
|
|
21316
|
-
id?: true
|
|
21317
|
-
sessionId?: true
|
|
21318
|
-
userId?: true
|
|
21319
|
-
entityType?: true
|
|
21320
|
-
credentialId?: true
|
|
21321
|
-
currentStep?: true
|
|
21322
|
-
maxSteps?: true
|
|
21323
|
-
expiresAt?: true
|
|
21324
|
-
completed?: true
|
|
21325
|
-
createdAt?: true
|
|
21326
|
-
updatedAt?: true
|
|
21327
|
-
}
|
|
21179
|
+
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
21328
21180
|
|
|
21329
|
-
export type AuthorizationSessionCountAggregateInputType = {
|
|
21330
|
-
id?: true
|
|
21331
|
-
sessionId?: true
|
|
21332
|
-
userId?: true
|
|
21333
|
-
entityType?: true
|
|
21334
|
-
credentialId?: true
|
|
21335
|
-
currentStep?: true
|
|
21336
|
-
maxSteps?: true
|
|
21337
|
-
stepData?: true
|
|
21338
|
-
expiresAt?: true
|
|
21339
|
-
completed?: true
|
|
21340
|
-
createdAt?: true
|
|
21341
|
-
updatedAt?: true
|
|
21342
|
-
_all?: true
|
|
21343
|
-
}
|
|
21344
21181
|
|
|
21345
|
-
export
|
|
21346
|
-
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
|
|
21355
|
-
|
|
21356
|
-
/**
|
|
21357
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
21358
|
-
*
|
|
21359
|
-
* Sets the start position
|
|
21360
|
-
*/
|
|
21361
|
-
cursor?: AuthorizationSessionWhereUniqueInput
|
|
21362
|
-
/**
|
|
21363
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
21364
|
-
*
|
|
21365
|
-
* Take `±n` AuthorizationSessions from the position of the cursor.
|
|
21366
|
-
*/
|
|
21367
|
-
take?: number
|
|
21368
|
-
/**
|
|
21369
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
21370
|
-
*
|
|
21371
|
-
* Skip the first `n` AuthorizationSessions.
|
|
21372
|
-
*/
|
|
21373
|
-
skip?: number
|
|
21374
|
-
/**
|
|
21375
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
21376
|
-
*
|
|
21377
|
-
* Count returned AuthorizationSessions
|
|
21378
|
-
**/
|
|
21379
|
-
_count?: true | AuthorizationSessionCountAggregateInputType
|
|
21380
|
-
/**
|
|
21381
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
21382
|
-
*
|
|
21383
|
-
* Select which fields to average
|
|
21384
|
-
**/
|
|
21385
|
-
_avg?: AuthorizationSessionAvgAggregateInputType
|
|
21386
|
-
/**
|
|
21387
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
21388
|
-
*
|
|
21389
|
-
* Select which fields to sum
|
|
21390
|
-
**/
|
|
21391
|
-
_sum?: AuthorizationSessionSumAggregateInputType
|
|
21392
|
-
/**
|
|
21393
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
21394
|
-
*
|
|
21395
|
-
* Select which fields to find the minimum value
|
|
21396
|
-
**/
|
|
21397
|
-
_min?: AuthorizationSessionMinAggregateInputType
|
|
21398
|
-
/**
|
|
21399
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
21400
|
-
*
|
|
21401
|
-
* Select which fields to find the maximum value
|
|
21402
|
-
**/
|
|
21403
|
-
_max?: AuthorizationSessionMaxAggregateInputType
|
|
21404
|
-
}
|
|
21182
|
+
export const EntityScalarFieldEnum: {
|
|
21183
|
+
id: 'id',
|
|
21184
|
+
credentialId: 'credentialId',
|
|
21185
|
+
userId: 'userId',
|
|
21186
|
+
name: 'name',
|
|
21187
|
+
moduleName: 'moduleName',
|
|
21188
|
+
externalId: 'externalId',
|
|
21189
|
+
data: 'data',
|
|
21190
|
+
createdAt: 'createdAt',
|
|
21191
|
+
updatedAt: 'updatedAt'
|
|
21192
|
+
};
|
|
21405
21193
|
|
|
21406
|
-
export type
|
|
21407
|
-
[P in keyof T & keyof AggregateAuthorizationSession]: P extends '_count' | 'count'
|
|
21408
|
-
? T[P] extends true
|
|
21409
|
-
? number
|
|
21410
|
-
: GetScalarType<T[P], AggregateAuthorizationSession[P]>
|
|
21411
|
-
: GetScalarType<T[P], AggregateAuthorizationSession[P]>
|
|
21412
|
-
}
|
|
21194
|
+
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
21413
21195
|
|
|
21414
21196
|
|
|
21197
|
+
export const IntegrationScalarFieldEnum: {
|
|
21198
|
+
id: 'id',
|
|
21199
|
+
userId: 'userId',
|
|
21200
|
+
status: 'status',
|
|
21201
|
+
config: 'config',
|
|
21202
|
+
version: 'version',
|
|
21203
|
+
errors: 'errors',
|
|
21204
|
+
warnings: 'warnings',
|
|
21205
|
+
info: 'info',
|
|
21206
|
+
logs: 'logs',
|
|
21207
|
+
createdAt: 'createdAt',
|
|
21208
|
+
updatedAt: 'updatedAt'
|
|
21209
|
+
};
|
|
21415
21210
|
|
|
21211
|
+
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
21416
21212
|
|
|
21417
|
-
export type AuthorizationSessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21418
|
-
where?: AuthorizationSessionWhereInput
|
|
21419
|
-
orderBy?: AuthorizationSessionOrderByWithAggregationInput | AuthorizationSessionOrderByWithAggregationInput[]
|
|
21420
|
-
by: AuthorizationSessionScalarFieldEnum[] | AuthorizationSessionScalarFieldEnum
|
|
21421
|
-
having?: AuthorizationSessionScalarWhereWithAggregatesInput
|
|
21422
|
-
take?: number
|
|
21423
|
-
skip?: number
|
|
21424
|
-
_count?: AuthorizationSessionCountAggregateInputType | true
|
|
21425
|
-
_avg?: AuthorizationSessionAvgAggregateInputType
|
|
21426
|
-
_sum?: AuthorizationSessionSumAggregateInputType
|
|
21427
|
-
_min?: AuthorizationSessionMinAggregateInputType
|
|
21428
|
-
_max?: AuthorizationSessionMaxAggregateInputType
|
|
21429
|
-
}
|
|
21430
21213
|
|
|
21431
|
-
export
|
|
21432
|
-
id:
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
stepData: JsonValue
|
|
21440
|
-
expiresAt: Date
|
|
21441
|
-
completed: boolean
|
|
21442
|
-
createdAt: Date
|
|
21443
|
-
updatedAt: Date
|
|
21444
|
-
_count: AuthorizationSessionCountAggregateOutputType | null
|
|
21445
|
-
_avg: AuthorizationSessionAvgAggregateOutputType | null
|
|
21446
|
-
_sum: AuthorizationSessionSumAggregateOutputType | null
|
|
21447
|
-
_min: AuthorizationSessionMinAggregateOutputType | null
|
|
21448
|
-
_max: AuthorizationSessionMaxAggregateOutputType | null
|
|
21449
|
-
}
|
|
21214
|
+
export const IntegrationMappingScalarFieldEnum: {
|
|
21215
|
+
id: 'id',
|
|
21216
|
+
integrationId: 'integrationId',
|
|
21217
|
+
sourceId: 'sourceId',
|
|
21218
|
+
mapping: 'mapping',
|
|
21219
|
+
createdAt: 'createdAt',
|
|
21220
|
+
updatedAt: 'updatedAt'
|
|
21221
|
+
};
|
|
21450
21222
|
|
|
21451
|
-
type
|
|
21452
|
-
Array<
|
|
21453
|
-
PickEnumerable<AuthorizationSessionGroupByOutputType, T['by']> &
|
|
21454
|
-
{
|
|
21455
|
-
[P in ((keyof T) & (keyof AuthorizationSessionGroupByOutputType))]: P extends '_count'
|
|
21456
|
-
? T[P] extends boolean
|
|
21457
|
-
? number
|
|
21458
|
-
: GetScalarType<T[P], AuthorizationSessionGroupByOutputType[P]>
|
|
21459
|
-
: GetScalarType<T[P], AuthorizationSessionGroupByOutputType[P]>
|
|
21460
|
-
}
|
|
21461
|
-
>
|
|
21462
|
-
>
|
|
21223
|
+
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
21463
21224
|
|
|
21464
21225
|
|
|
21465
|
-
export
|
|
21466
|
-
id
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
currentStep?: boolean
|
|
21472
|
-
maxSteps?: boolean
|
|
21473
|
-
stepData?: boolean
|
|
21474
|
-
expiresAt?: boolean
|
|
21475
|
-
completed?: boolean
|
|
21476
|
-
createdAt?: boolean
|
|
21477
|
-
updatedAt?: boolean
|
|
21478
|
-
}, ExtArgs["result"]["authorizationSession"]>
|
|
21226
|
+
export const SyncScalarFieldEnum: {
|
|
21227
|
+
id: 'id',
|
|
21228
|
+
integrationId: 'integrationId',
|
|
21229
|
+
hash: 'hash',
|
|
21230
|
+
name: 'name'
|
|
21231
|
+
};
|
|
21479
21232
|
|
|
21480
|
-
export type
|
|
21481
|
-
id?: boolean
|
|
21482
|
-
sessionId?: boolean
|
|
21483
|
-
userId?: boolean
|
|
21484
|
-
entityType?: boolean
|
|
21485
|
-
credentialId?: boolean
|
|
21486
|
-
currentStep?: boolean
|
|
21487
|
-
maxSteps?: boolean
|
|
21488
|
-
stepData?: boolean
|
|
21489
|
-
expiresAt?: boolean
|
|
21490
|
-
completed?: boolean
|
|
21491
|
-
createdAt?: boolean
|
|
21492
|
-
updatedAt?: boolean
|
|
21493
|
-
}, ExtArgs["result"]["authorizationSession"]>
|
|
21494
|
-
|
|
21495
|
-
export type AuthorizationSessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
|
|
21496
|
-
id?: boolean
|
|
21497
|
-
sessionId?: boolean
|
|
21498
|
-
userId?: boolean
|
|
21499
|
-
entityType?: boolean
|
|
21500
|
-
credentialId?: boolean
|
|
21501
|
-
currentStep?: boolean
|
|
21502
|
-
maxSteps?: boolean
|
|
21503
|
-
stepData?: boolean
|
|
21504
|
-
expiresAt?: boolean
|
|
21505
|
-
completed?: boolean
|
|
21506
|
-
createdAt?: boolean
|
|
21507
|
-
updatedAt?: boolean
|
|
21508
|
-
}, ExtArgs["result"]["authorizationSession"]>
|
|
21509
|
-
|
|
21510
|
-
export type AuthorizationSessionSelectScalar = {
|
|
21511
|
-
id?: boolean
|
|
21512
|
-
sessionId?: boolean
|
|
21513
|
-
userId?: boolean
|
|
21514
|
-
entityType?: boolean
|
|
21515
|
-
credentialId?: boolean
|
|
21516
|
-
currentStep?: boolean
|
|
21517
|
-
maxSteps?: boolean
|
|
21518
|
-
stepData?: boolean
|
|
21519
|
-
expiresAt?: boolean
|
|
21520
|
-
completed?: boolean
|
|
21521
|
-
createdAt?: boolean
|
|
21522
|
-
updatedAt?: boolean
|
|
21523
|
-
}
|
|
21524
|
-
|
|
21525
|
-
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"]>
|
|
21526
|
-
|
|
21527
|
-
export type $AuthorizationSessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21528
|
-
name: "AuthorizationSession"
|
|
21529
|
-
objects: {}
|
|
21530
|
-
scalars: $Extensions.GetPayloadResult<{
|
|
21531
|
-
id: number
|
|
21532
|
-
sessionId: string
|
|
21533
|
-
userId: string
|
|
21534
|
-
entityType: string
|
|
21535
|
-
credentialId: string | null
|
|
21536
|
-
currentStep: number
|
|
21537
|
-
maxSteps: number
|
|
21538
|
-
stepData: Prisma.JsonValue
|
|
21539
|
-
expiresAt: Date
|
|
21540
|
-
completed: boolean
|
|
21541
|
-
createdAt: Date
|
|
21542
|
-
updatedAt: Date
|
|
21543
|
-
}, ExtArgs["result"]["authorizationSession"]>
|
|
21544
|
-
composites: {}
|
|
21545
|
-
}
|
|
21546
|
-
|
|
21547
|
-
type AuthorizationSessionGetPayload<S extends boolean | null | undefined | AuthorizationSessionDefaultArgs> = $Result.GetResult<Prisma.$AuthorizationSessionPayload, S>
|
|
21548
|
-
|
|
21549
|
-
type AuthorizationSessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
|
|
21550
|
-
Omit<AuthorizationSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
21551
|
-
select?: AuthorizationSessionCountAggregateInputType | true
|
|
21552
|
-
}
|
|
21553
|
-
|
|
21554
|
-
export interface AuthorizationSessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
21555
|
-
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuthorizationSession'], meta: { name: 'AuthorizationSession' } }
|
|
21556
|
-
/**
|
|
21557
|
-
* Find zero or one AuthorizationSession that matches the filter.
|
|
21558
|
-
* @param {AuthorizationSessionFindUniqueArgs} args - Arguments to find a AuthorizationSession
|
|
21559
|
-
* @example
|
|
21560
|
-
* // Get one AuthorizationSession
|
|
21561
|
-
* const authorizationSession = await prisma.authorizationSession.findUnique({
|
|
21562
|
-
* where: {
|
|
21563
|
-
* // ... provide filter here
|
|
21564
|
-
* }
|
|
21565
|
-
* })
|
|
21566
|
-
*/
|
|
21567
|
-
findUnique<T extends AuthorizationSessionFindUniqueArgs>(args: SelectSubset<T, AuthorizationSessionFindUniqueArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
21568
|
-
|
|
21569
|
-
/**
|
|
21570
|
-
* Find one AuthorizationSession that matches the filter or throw an error with `error.code='P2025'`
|
|
21571
|
-
* if no matches were found.
|
|
21572
|
-
* @param {AuthorizationSessionFindUniqueOrThrowArgs} args - Arguments to find a AuthorizationSession
|
|
21573
|
-
* @example
|
|
21574
|
-
* // Get one AuthorizationSession
|
|
21575
|
-
* const authorizationSession = await prisma.authorizationSession.findUniqueOrThrow({
|
|
21576
|
-
* where: {
|
|
21577
|
-
* // ... provide filter here
|
|
21578
|
-
* }
|
|
21579
|
-
* })
|
|
21580
|
-
*/
|
|
21581
|
-
findUniqueOrThrow<T extends AuthorizationSessionFindUniqueOrThrowArgs>(args: SelectSubset<T, AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
21582
|
-
|
|
21583
|
-
/**
|
|
21584
|
-
* Find the first AuthorizationSession that matches the filter.
|
|
21585
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21586
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21587
|
-
* @param {AuthorizationSessionFindFirstArgs} args - Arguments to find a AuthorizationSession
|
|
21588
|
-
* @example
|
|
21589
|
-
* // Get one AuthorizationSession
|
|
21590
|
-
* const authorizationSession = await prisma.authorizationSession.findFirst({
|
|
21591
|
-
* where: {
|
|
21592
|
-
* // ... provide filter here
|
|
21593
|
-
* }
|
|
21594
|
-
* })
|
|
21595
|
-
*/
|
|
21596
|
-
findFirst<T extends AuthorizationSessionFindFirstArgs>(args?: SelectSubset<T, AuthorizationSessionFindFirstArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
21597
|
-
|
|
21598
|
-
/**
|
|
21599
|
-
* Find the first AuthorizationSession that matches the filter or
|
|
21600
|
-
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
21601
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21602
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21603
|
-
* @param {AuthorizationSessionFindFirstOrThrowArgs} args - Arguments to find a AuthorizationSession
|
|
21604
|
-
* @example
|
|
21605
|
-
* // Get one AuthorizationSession
|
|
21606
|
-
* const authorizationSession = await prisma.authorizationSession.findFirstOrThrow({
|
|
21607
|
-
* where: {
|
|
21608
|
-
* // ... provide filter here
|
|
21609
|
-
* }
|
|
21610
|
-
* })
|
|
21611
|
-
*/
|
|
21612
|
-
findFirstOrThrow<T extends AuthorizationSessionFindFirstOrThrowArgs>(args?: SelectSubset<T, AuthorizationSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
21613
|
-
|
|
21614
|
-
/**
|
|
21615
|
-
* Find zero or more AuthorizationSessions that matches the filter.
|
|
21616
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21617
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21618
|
-
* @param {AuthorizationSessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
21619
|
-
* @example
|
|
21620
|
-
* // Get all AuthorizationSessions
|
|
21621
|
-
* const authorizationSessions = await prisma.authorizationSession.findMany()
|
|
21622
|
-
*
|
|
21623
|
-
* // Get first 10 AuthorizationSessions
|
|
21624
|
-
* const authorizationSessions = await prisma.authorizationSession.findMany({ take: 10 })
|
|
21625
|
-
*
|
|
21626
|
-
* // Only select the `id`
|
|
21627
|
-
* const authorizationSessionWithIdOnly = await prisma.authorizationSession.findMany({ select: { id: true } })
|
|
21628
|
-
*
|
|
21629
|
-
*/
|
|
21630
|
-
findMany<T extends AuthorizationSessionFindManyArgs>(args?: SelectSubset<T, AuthorizationSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
21631
|
-
|
|
21632
|
-
/**
|
|
21633
|
-
* Create a AuthorizationSession.
|
|
21634
|
-
* @param {AuthorizationSessionCreateArgs} args - Arguments to create a AuthorizationSession.
|
|
21635
|
-
* @example
|
|
21636
|
-
* // Create one AuthorizationSession
|
|
21637
|
-
* const AuthorizationSession = await prisma.authorizationSession.create({
|
|
21638
|
-
* data: {
|
|
21639
|
-
* // ... data to create a AuthorizationSession
|
|
21640
|
-
* }
|
|
21641
|
-
* })
|
|
21642
|
-
*
|
|
21643
|
-
*/
|
|
21644
|
-
create<T extends AuthorizationSessionCreateArgs>(args: SelectSubset<T, AuthorizationSessionCreateArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
21645
|
-
|
|
21646
|
-
/**
|
|
21647
|
-
* Create many AuthorizationSessions.
|
|
21648
|
-
* @param {AuthorizationSessionCreateManyArgs} args - Arguments to create many AuthorizationSessions.
|
|
21649
|
-
* @example
|
|
21650
|
-
* // Create many AuthorizationSessions
|
|
21651
|
-
* const authorizationSession = await prisma.authorizationSession.createMany({
|
|
21652
|
-
* data: [
|
|
21653
|
-
* // ... provide data here
|
|
21654
|
-
* ]
|
|
21655
|
-
* })
|
|
21656
|
-
*
|
|
21657
|
-
*/
|
|
21658
|
-
createMany<T extends AuthorizationSessionCreateManyArgs>(args?: SelectSubset<T, AuthorizationSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
21659
|
-
|
|
21660
|
-
/**
|
|
21661
|
-
* Create many AuthorizationSessions and returns the data saved in the database.
|
|
21662
|
-
* @param {AuthorizationSessionCreateManyAndReturnArgs} args - Arguments to create many AuthorizationSessions.
|
|
21663
|
-
* @example
|
|
21664
|
-
* // Create many AuthorizationSessions
|
|
21665
|
-
* const authorizationSession = await prisma.authorizationSession.createManyAndReturn({
|
|
21666
|
-
* data: [
|
|
21667
|
-
* // ... provide data here
|
|
21668
|
-
* ]
|
|
21669
|
-
* })
|
|
21670
|
-
*
|
|
21671
|
-
* // Create many AuthorizationSessions and only return the `id`
|
|
21672
|
-
* const authorizationSessionWithIdOnly = await prisma.authorizationSession.createManyAndReturn({
|
|
21673
|
-
* select: { id: true },
|
|
21674
|
-
* data: [
|
|
21675
|
-
* // ... provide data here
|
|
21676
|
-
* ]
|
|
21677
|
-
* })
|
|
21678
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21679
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21680
|
-
*
|
|
21681
|
-
*/
|
|
21682
|
-
createManyAndReturn<T extends AuthorizationSessionCreateManyAndReturnArgs>(args?: SelectSubset<T, AuthorizationSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
21683
|
-
|
|
21684
|
-
/**
|
|
21685
|
-
* Delete a AuthorizationSession.
|
|
21686
|
-
* @param {AuthorizationSessionDeleteArgs} args - Arguments to delete one AuthorizationSession.
|
|
21687
|
-
* @example
|
|
21688
|
-
* // Delete one AuthorizationSession
|
|
21689
|
-
* const AuthorizationSession = await prisma.authorizationSession.delete({
|
|
21690
|
-
* where: {
|
|
21691
|
-
* // ... filter to delete one AuthorizationSession
|
|
21692
|
-
* }
|
|
21693
|
-
* })
|
|
21694
|
-
*
|
|
21695
|
-
*/
|
|
21696
|
-
delete<T extends AuthorizationSessionDeleteArgs>(args: SelectSubset<T, AuthorizationSessionDeleteArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
21697
|
-
|
|
21698
|
-
/**
|
|
21699
|
-
* Update one AuthorizationSession.
|
|
21700
|
-
* @param {AuthorizationSessionUpdateArgs} args - Arguments to update one AuthorizationSession.
|
|
21701
|
-
* @example
|
|
21702
|
-
* // Update one AuthorizationSession
|
|
21703
|
-
* const authorizationSession = await prisma.authorizationSession.update({
|
|
21704
|
-
* where: {
|
|
21705
|
-
* // ... provide filter here
|
|
21706
|
-
* },
|
|
21707
|
-
* data: {
|
|
21708
|
-
* // ... provide data here
|
|
21709
|
-
* }
|
|
21710
|
-
* })
|
|
21711
|
-
*
|
|
21712
|
-
*/
|
|
21713
|
-
update<T extends AuthorizationSessionUpdateArgs>(args: SelectSubset<T, AuthorizationSessionUpdateArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
21714
|
-
|
|
21715
|
-
/**
|
|
21716
|
-
* Delete zero or more AuthorizationSessions.
|
|
21717
|
-
* @param {AuthorizationSessionDeleteManyArgs} args - Arguments to filter AuthorizationSessions to delete.
|
|
21718
|
-
* @example
|
|
21719
|
-
* // Delete a few AuthorizationSessions
|
|
21720
|
-
* const { count } = await prisma.authorizationSession.deleteMany({
|
|
21721
|
-
* where: {
|
|
21722
|
-
* // ... provide filter here
|
|
21723
|
-
* }
|
|
21724
|
-
* })
|
|
21725
|
-
*
|
|
21726
|
-
*/
|
|
21727
|
-
deleteMany<T extends AuthorizationSessionDeleteManyArgs>(args?: SelectSubset<T, AuthorizationSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
21728
|
-
|
|
21729
|
-
/**
|
|
21730
|
-
* Update zero or more AuthorizationSessions.
|
|
21731
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21732
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21733
|
-
* @param {AuthorizationSessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
21734
|
-
* @example
|
|
21735
|
-
* // Update many AuthorizationSessions
|
|
21736
|
-
* const authorizationSession = await prisma.authorizationSession.updateMany({
|
|
21737
|
-
* where: {
|
|
21738
|
-
* // ... provide filter here
|
|
21739
|
-
* },
|
|
21740
|
-
* data: {
|
|
21741
|
-
* // ... provide data here
|
|
21742
|
-
* }
|
|
21743
|
-
* })
|
|
21744
|
-
*
|
|
21745
|
-
*/
|
|
21746
|
-
updateMany<T extends AuthorizationSessionUpdateManyArgs>(args: SelectSubset<T, AuthorizationSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
|
|
21747
|
-
|
|
21748
|
-
/**
|
|
21749
|
-
* Update zero or more AuthorizationSessions and returns the data updated in the database.
|
|
21750
|
-
* @param {AuthorizationSessionUpdateManyAndReturnArgs} args - Arguments to update many AuthorizationSessions.
|
|
21751
|
-
* @example
|
|
21752
|
-
* // Update many AuthorizationSessions
|
|
21753
|
-
* const authorizationSession = await prisma.authorizationSession.updateManyAndReturn({
|
|
21754
|
-
* where: {
|
|
21755
|
-
* // ... provide filter here
|
|
21756
|
-
* },
|
|
21757
|
-
* data: [
|
|
21758
|
-
* // ... provide data here
|
|
21759
|
-
* ]
|
|
21760
|
-
* })
|
|
21761
|
-
*
|
|
21762
|
-
* // Update zero or more AuthorizationSessions and only return the `id`
|
|
21763
|
-
* const authorizationSessionWithIdOnly = await prisma.authorizationSession.updateManyAndReturn({
|
|
21764
|
-
* select: { id: true },
|
|
21765
|
-
* where: {
|
|
21766
|
-
* // ... provide filter here
|
|
21767
|
-
* },
|
|
21768
|
-
* data: [
|
|
21769
|
-
* // ... provide data here
|
|
21770
|
-
* ]
|
|
21771
|
-
* })
|
|
21772
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21773
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21774
|
-
*
|
|
21775
|
-
*/
|
|
21776
|
-
updateManyAndReturn<T extends AuthorizationSessionUpdateManyAndReturnArgs>(args: SelectSubset<T, AuthorizationSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
21777
|
-
|
|
21778
|
-
/**
|
|
21779
|
-
* Create or update one AuthorizationSession.
|
|
21780
|
-
* @param {AuthorizationSessionUpsertArgs} args - Arguments to update or create a AuthorizationSession.
|
|
21781
|
-
* @example
|
|
21782
|
-
* // Update or create a AuthorizationSession
|
|
21783
|
-
* const authorizationSession = await prisma.authorizationSession.upsert({
|
|
21784
|
-
* create: {
|
|
21785
|
-
* // ... data to create a AuthorizationSession
|
|
21786
|
-
* },
|
|
21787
|
-
* update: {
|
|
21788
|
-
* // ... in case it already exists, update
|
|
21789
|
-
* },
|
|
21790
|
-
* where: {
|
|
21791
|
-
* // ... the filter for the AuthorizationSession we want to update
|
|
21792
|
-
* }
|
|
21793
|
-
* })
|
|
21794
|
-
*/
|
|
21795
|
-
upsert<T extends AuthorizationSessionUpsertArgs>(args: SelectSubset<T, AuthorizationSessionUpsertArgs<ExtArgs>>): Prisma__AuthorizationSessionClient<$Result.GetResult<Prisma.$AuthorizationSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
21796
|
-
|
|
21797
|
-
|
|
21798
|
-
/**
|
|
21799
|
-
* Count the number of AuthorizationSessions.
|
|
21800
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21801
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21802
|
-
* @param {AuthorizationSessionCountArgs} args - Arguments to filter AuthorizationSessions to count.
|
|
21803
|
-
* @example
|
|
21804
|
-
* // Count the number of AuthorizationSessions
|
|
21805
|
-
* const count = await prisma.authorizationSession.count({
|
|
21806
|
-
* where: {
|
|
21807
|
-
* // ... the filter for the AuthorizationSessions we want to count
|
|
21808
|
-
* }
|
|
21809
|
-
* })
|
|
21810
|
-
**/
|
|
21811
|
-
count<T extends AuthorizationSessionCountArgs>(
|
|
21812
|
-
args?: Subset<T, AuthorizationSessionCountArgs>,
|
|
21813
|
-
): Prisma.PrismaPromise<
|
|
21814
|
-
T extends $Utils.Record<'select', any>
|
|
21815
|
-
? T['select'] extends true
|
|
21816
|
-
? number
|
|
21817
|
-
: GetScalarType<T['select'], AuthorizationSessionCountAggregateOutputType>
|
|
21818
|
-
: number
|
|
21819
|
-
>
|
|
21820
|
-
|
|
21821
|
-
/**
|
|
21822
|
-
* Allows you to perform aggregations operations on a AuthorizationSession.
|
|
21823
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21824
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21825
|
-
* @param {AuthorizationSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
21826
|
-
* @example
|
|
21827
|
-
* // Ordered by age ascending
|
|
21828
|
-
* // Where email contains prisma.io
|
|
21829
|
-
* // Limited to the 10 users
|
|
21830
|
-
* const aggregations = await prisma.user.aggregate({
|
|
21831
|
-
* _avg: {
|
|
21832
|
-
* age: true,
|
|
21833
|
-
* },
|
|
21834
|
-
* where: {
|
|
21835
|
-
* email: {
|
|
21836
|
-
* contains: "prisma.io",
|
|
21837
|
-
* },
|
|
21838
|
-
* },
|
|
21839
|
-
* orderBy: {
|
|
21840
|
-
* age: "asc",
|
|
21841
|
-
* },
|
|
21842
|
-
* take: 10,
|
|
21843
|
-
* })
|
|
21844
|
-
**/
|
|
21845
|
-
aggregate<T extends AuthorizationSessionAggregateArgs>(args: Subset<T, AuthorizationSessionAggregateArgs>): Prisma.PrismaPromise<GetAuthorizationSessionAggregateType<T>>
|
|
21846
|
-
|
|
21847
|
-
/**
|
|
21848
|
-
* Group by AuthorizationSession.
|
|
21849
|
-
* Note, that providing `undefined` is treated as the value not being there.
|
|
21850
|
-
* Read more here: https://pris.ly/d/null-undefined
|
|
21851
|
-
* @param {AuthorizationSessionGroupByArgs} args - Group by arguments.
|
|
21852
|
-
* @example
|
|
21853
|
-
* // Group by city, order by createdAt, get count
|
|
21854
|
-
* const result = await prisma.user.groupBy({
|
|
21855
|
-
* by: ['city', 'createdAt'],
|
|
21856
|
-
* orderBy: {
|
|
21857
|
-
* createdAt: true
|
|
21858
|
-
* },
|
|
21859
|
-
* _count: {
|
|
21860
|
-
* _all: true
|
|
21861
|
-
* },
|
|
21862
|
-
* })
|
|
21863
|
-
*
|
|
21864
|
-
**/
|
|
21865
|
-
groupBy<
|
|
21866
|
-
T extends AuthorizationSessionGroupByArgs,
|
|
21867
|
-
HasSelectOrTake extends Or<
|
|
21868
|
-
Extends<'skip', Keys<T>>,
|
|
21869
|
-
Extends<'take', Keys<T>>
|
|
21870
|
-
>,
|
|
21871
|
-
OrderByArg extends True extends HasSelectOrTake
|
|
21872
|
-
? { orderBy: AuthorizationSessionGroupByArgs['orderBy'] }
|
|
21873
|
-
: { orderBy?: AuthorizationSessionGroupByArgs['orderBy'] },
|
|
21874
|
-
OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
|
|
21875
|
-
ByFields extends MaybeTupleToUnion<T['by']>,
|
|
21876
|
-
ByValid extends Has<ByFields, OrderFields>,
|
|
21877
|
-
HavingFields extends GetHavingFields<T['having']>,
|
|
21878
|
-
HavingValid extends Has<ByFields, HavingFields>,
|
|
21879
|
-
ByEmpty extends T['by'] extends never[] ? True : False,
|
|
21880
|
-
InputErrors extends ByEmpty extends True
|
|
21881
|
-
? `Error: "by" must not be empty.`
|
|
21882
|
-
: HavingValid extends False
|
|
21883
|
-
? {
|
|
21884
|
-
[P in HavingFields]: P extends ByFields
|
|
21885
|
-
? never
|
|
21886
|
-
: P extends string
|
|
21887
|
-
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
21888
|
-
: [
|
|
21889
|
-
Error,
|
|
21890
|
-
'Field ',
|
|
21891
|
-
P,
|
|
21892
|
-
` in "having" needs to be provided in "by"`,
|
|
21893
|
-
]
|
|
21894
|
-
}[HavingFields]
|
|
21895
|
-
: 'take' extends Keys<T>
|
|
21896
|
-
? 'orderBy' extends Keys<T>
|
|
21897
|
-
? ByValid extends True
|
|
21898
|
-
? {}
|
|
21899
|
-
: {
|
|
21900
|
-
[P in OrderFields]: P extends ByFields
|
|
21901
|
-
? never
|
|
21902
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
21903
|
-
}[OrderFields]
|
|
21904
|
-
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
21905
|
-
: 'skip' extends Keys<T>
|
|
21906
|
-
? 'orderBy' extends Keys<T>
|
|
21907
|
-
? ByValid extends True
|
|
21908
|
-
? {}
|
|
21909
|
-
: {
|
|
21910
|
-
[P in OrderFields]: P extends ByFields
|
|
21911
|
-
? never
|
|
21912
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
21913
|
-
}[OrderFields]
|
|
21914
|
-
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
21915
|
-
: ByValid extends True
|
|
21916
|
-
? {}
|
|
21917
|
-
: {
|
|
21918
|
-
[P in OrderFields]: P extends ByFields
|
|
21919
|
-
? never
|
|
21920
|
-
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
21921
|
-
}[OrderFields]
|
|
21922
|
-
>(args: SubsetIntersection<T, AuthorizationSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuthorizationSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
21923
|
-
/**
|
|
21924
|
-
* Fields of the AuthorizationSession model
|
|
21925
|
-
*/
|
|
21926
|
-
readonly fields: AuthorizationSessionFieldRefs;
|
|
21927
|
-
}
|
|
21928
|
-
|
|
21929
|
-
/**
|
|
21930
|
-
* The delegate class that acts as a "Promise-like" for AuthorizationSession.
|
|
21931
|
-
* Why is this prefixed with `Prisma__`?
|
|
21932
|
-
* Because we want to prevent naming conflicts as mentioned in
|
|
21933
|
-
* https://github.com/prisma/prisma-client-js/issues/707
|
|
21934
|
-
*/
|
|
21935
|
-
export interface Prisma__AuthorizationSessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
21936
|
-
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
21937
|
-
/**
|
|
21938
|
-
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
21939
|
-
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
21940
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
21941
|
-
* @returns A Promise for the completion of which ever callback is executed.
|
|
21942
|
-
*/
|
|
21943
|
-
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>
|
|
21944
|
-
/**
|
|
21945
|
-
* Attaches a callback for only the rejection of the Promise.
|
|
21946
|
-
* @param onrejected The callback to execute when the Promise is rejected.
|
|
21947
|
-
* @returns A Promise for the completion of the callback.
|
|
21948
|
-
*/
|
|
21949
|
-
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
|
|
21950
|
-
/**
|
|
21951
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
21952
|
-
* resolved value cannot be modified from the callback.
|
|
21953
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
21954
|
-
* @returns A Promise for the completion of the callback.
|
|
21955
|
-
*/
|
|
21956
|
-
finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
|
|
21957
|
-
}
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
|
|
21962
|
-
/**
|
|
21963
|
-
* Fields of the AuthorizationSession model
|
|
21964
|
-
*/
|
|
21965
|
-
interface AuthorizationSessionFieldRefs {
|
|
21966
|
-
readonly id: FieldRef<"AuthorizationSession", 'Int'>
|
|
21967
|
-
readonly sessionId: FieldRef<"AuthorizationSession", 'String'>
|
|
21968
|
-
readonly userId: FieldRef<"AuthorizationSession", 'String'>
|
|
21969
|
-
readonly entityType: FieldRef<"AuthorizationSession", 'String'>
|
|
21970
|
-
readonly credentialId: FieldRef<"AuthorizationSession", 'String'>
|
|
21971
|
-
readonly currentStep: FieldRef<"AuthorizationSession", 'Int'>
|
|
21972
|
-
readonly maxSteps: FieldRef<"AuthorizationSession", 'Int'>
|
|
21973
|
-
readonly stepData: FieldRef<"AuthorizationSession", 'Json'>
|
|
21974
|
-
readonly expiresAt: FieldRef<"AuthorizationSession", 'DateTime'>
|
|
21975
|
-
readonly completed: FieldRef<"AuthorizationSession", 'Boolean'>
|
|
21976
|
-
readonly createdAt: FieldRef<"AuthorizationSession", 'DateTime'>
|
|
21977
|
-
readonly updatedAt: FieldRef<"AuthorizationSession", 'DateTime'>
|
|
21978
|
-
}
|
|
21979
|
-
|
|
21980
|
-
|
|
21981
|
-
// Custom InputTypes
|
|
21982
|
-
/**
|
|
21983
|
-
* AuthorizationSession findUnique
|
|
21984
|
-
*/
|
|
21985
|
-
export type AuthorizationSessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
21986
|
-
/**
|
|
21987
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
21988
|
-
*/
|
|
21989
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
21990
|
-
/**
|
|
21991
|
-
* Omit specific fields from the AuthorizationSession
|
|
21992
|
-
*/
|
|
21993
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
21994
|
-
/**
|
|
21995
|
-
* Filter, which AuthorizationSession to fetch.
|
|
21996
|
-
*/
|
|
21997
|
-
where: AuthorizationSessionWhereUniqueInput
|
|
21998
|
-
}
|
|
21999
|
-
|
|
22000
|
-
/**
|
|
22001
|
-
* AuthorizationSession findUniqueOrThrow
|
|
22002
|
-
*/
|
|
22003
|
-
export type AuthorizationSessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22004
|
-
/**
|
|
22005
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22006
|
-
*/
|
|
22007
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22008
|
-
/**
|
|
22009
|
-
* Omit specific fields from the AuthorizationSession
|
|
22010
|
-
*/
|
|
22011
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22012
|
-
/**
|
|
22013
|
-
* Filter, which AuthorizationSession to fetch.
|
|
22014
|
-
*/
|
|
22015
|
-
where: AuthorizationSessionWhereUniqueInput
|
|
22016
|
-
}
|
|
22017
|
-
|
|
22018
|
-
/**
|
|
22019
|
-
* AuthorizationSession findFirst
|
|
22020
|
-
*/
|
|
22021
|
-
export type AuthorizationSessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22022
|
-
/**
|
|
22023
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22024
|
-
*/
|
|
22025
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22026
|
-
/**
|
|
22027
|
-
* Omit specific fields from the AuthorizationSession
|
|
22028
|
-
*/
|
|
22029
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22030
|
-
/**
|
|
22031
|
-
* Filter, which AuthorizationSession to fetch.
|
|
22032
|
-
*/
|
|
22033
|
-
where?: AuthorizationSessionWhereInput
|
|
22034
|
-
/**
|
|
22035
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
22036
|
-
*
|
|
22037
|
-
* Determine the order of AuthorizationSessions to fetch.
|
|
22038
|
-
*/
|
|
22039
|
-
orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
|
|
22040
|
-
/**
|
|
22041
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
22042
|
-
*
|
|
22043
|
-
* Sets the position for searching for AuthorizationSessions.
|
|
22044
|
-
*/
|
|
22045
|
-
cursor?: AuthorizationSessionWhereUniqueInput
|
|
22046
|
-
/**
|
|
22047
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22048
|
-
*
|
|
22049
|
-
* Take `±n` AuthorizationSessions from the position of the cursor.
|
|
22050
|
-
*/
|
|
22051
|
-
take?: number
|
|
22052
|
-
/**
|
|
22053
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22054
|
-
*
|
|
22055
|
-
* Skip the first `n` AuthorizationSessions.
|
|
22056
|
-
*/
|
|
22057
|
-
skip?: number
|
|
22058
|
-
/**
|
|
22059
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
22060
|
-
*
|
|
22061
|
-
* Filter by unique combinations of AuthorizationSessions.
|
|
22062
|
-
*/
|
|
22063
|
-
distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
|
|
22064
|
-
}
|
|
22065
|
-
|
|
22066
|
-
/**
|
|
22067
|
-
* AuthorizationSession findFirstOrThrow
|
|
22068
|
-
*/
|
|
22069
|
-
export type AuthorizationSessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22070
|
-
/**
|
|
22071
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22072
|
-
*/
|
|
22073
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22074
|
-
/**
|
|
22075
|
-
* Omit specific fields from the AuthorizationSession
|
|
22076
|
-
*/
|
|
22077
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22078
|
-
/**
|
|
22079
|
-
* Filter, which AuthorizationSession to fetch.
|
|
22080
|
-
*/
|
|
22081
|
-
where?: AuthorizationSessionWhereInput
|
|
22082
|
-
/**
|
|
22083
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
22084
|
-
*
|
|
22085
|
-
* Determine the order of AuthorizationSessions to fetch.
|
|
22086
|
-
*/
|
|
22087
|
-
orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
|
|
22088
|
-
/**
|
|
22089
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
22090
|
-
*
|
|
22091
|
-
* Sets the position for searching for AuthorizationSessions.
|
|
22092
|
-
*/
|
|
22093
|
-
cursor?: AuthorizationSessionWhereUniqueInput
|
|
22094
|
-
/**
|
|
22095
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22096
|
-
*
|
|
22097
|
-
* Take `±n` AuthorizationSessions from the position of the cursor.
|
|
22098
|
-
*/
|
|
22099
|
-
take?: number
|
|
22100
|
-
/**
|
|
22101
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22102
|
-
*
|
|
22103
|
-
* Skip the first `n` AuthorizationSessions.
|
|
22104
|
-
*/
|
|
22105
|
-
skip?: number
|
|
22106
|
-
/**
|
|
22107
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
22108
|
-
*
|
|
22109
|
-
* Filter by unique combinations of AuthorizationSessions.
|
|
22110
|
-
*/
|
|
22111
|
-
distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
|
|
22112
|
-
}
|
|
22113
|
-
|
|
22114
|
-
/**
|
|
22115
|
-
* AuthorizationSession findMany
|
|
22116
|
-
*/
|
|
22117
|
-
export type AuthorizationSessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22118
|
-
/**
|
|
22119
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22120
|
-
*/
|
|
22121
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22122
|
-
/**
|
|
22123
|
-
* Omit specific fields from the AuthorizationSession
|
|
22124
|
-
*/
|
|
22125
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22126
|
-
/**
|
|
22127
|
-
* Filter, which AuthorizationSessions to fetch.
|
|
22128
|
-
*/
|
|
22129
|
-
where?: AuthorizationSessionWhereInput
|
|
22130
|
-
/**
|
|
22131
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
22132
|
-
*
|
|
22133
|
-
* Determine the order of AuthorizationSessions to fetch.
|
|
22134
|
-
*/
|
|
22135
|
-
orderBy?: AuthorizationSessionOrderByWithRelationInput | AuthorizationSessionOrderByWithRelationInput[]
|
|
22136
|
-
/**
|
|
22137
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
22138
|
-
*
|
|
22139
|
-
* Sets the position for listing AuthorizationSessions.
|
|
22140
|
-
*/
|
|
22141
|
-
cursor?: AuthorizationSessionWhereUniqueInput
|
|
22142
|
-
/**
|
|
22143
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22144
|
-
*
|
|
22145
|
-
* Take `±n` AuthorizationSessions from the position of the cursor.
|
|
22146
|
-
*/
|
|
22147
|
-
take?: number
|
|
22148
|
-
/**
|
|
22149
|
-
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
22150
|
-
*
|
|
22151
|
-
* Skip the first `n` AuthorizationSessions.
|
|
22152
|
-
*/
|
|
22153
|
-
skip?: number
|
|
22154
|
-
distinct?: AuthorizationSessionScalarFieldEnum | AuthorizationSessionScalarFieldEnum[]
|
|
22155
|
-
}
|
|
22156
|
-
|
|
22157
|
-
/**
|
|
22158
|
-
* AuthorizationSession create
|
|
22159
|
-
*/
|
|
22160
|
-
export type AuthorizationSessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22161
|
-
/**
|
|
22162
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22163
|
-
*/
|
|
22164
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22165
|
-
/**
|
|
22166
|
-
* Omit specific fields from the AuthorizationSession
|
|
22167
|
-
*/
|
|
22168
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22169
|
-
/**
|
|
22170
|
-
* The data needed to create a AuthorizationSession.
|
|
22171
|
-
*/
|
|
22172
|
-
data: XOR<AuthorizationSessionCreateInput, AuthorizationSessionUncheckedCreateInput>
|
|
22173
|
-
}
|
|
22174
|
-
|
|
22175
|
-
/**
|
|
22176
|
-
* AuthorizationSession createMany
|
|
22177
|
-
*/
|
|
22178
|
-
export type AuthorizationSessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22179
|
-
/**
|
|
22180
|
-
* The data used to create many AuthorizationSessions.
|
|
22181
|
-
*/
|
|
22182
|
-
data: AuthorizationSessionCreateManyInput | AuthorizationSessionCreateManyInput[]
|
|
22183
|
-
skipDuplicates?: boolean
|
|
22184
|
-
}
|
|
22185
|
-
|
|
22186
|
-
/**
|
|
22187
|
-
* AuthorizationSession createManyAndReturn
|
|
22188
|
-
*/
|
|
22189
|
-
export type AuthorizationSessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22190
|
-
/**
|
|
22191
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22192
|
-
*/
|
|
22193
|
-
select?: AuthorizationSessionSelectCreateManyAndReturn<ExtArgs> | null
|
|
22194
|
-
/**
|
|
22195
|
-
* Omit specific fields from the AuthorizationSession
|
|
22196
|
-
*/
|
|
22197
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22198
|
-
/**
|
|
22199
|
-
* The data used to create many AuthorizationSessions.
|
|
22200
|
-
*/
|
|
22201
|
-
data: AuthorizationSessionCreateManyInput | AuthorizationSessionCreateManyInput[]
|
|
22202
|
-
skipDuplicates?: boolean
|
|
22203
|
-
}
|
|
22204
|
-
|
|
22205
|
-
/**
|
|
22206
|
-
* AuthorizationSession update
|
|
22207
|
-
*/
|
|
22208
|
-
export type AuthorizationSessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22209
|
-
/**
|
|
22210
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22211
|
-
*/
|
|
22212
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22213
|
-
/**
|
|
22214
|
-
* Omit specific fields from the AuthorizationSession
|
|
22215
|
-
*/
|
|
22216
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22217
|
-
/**
|
|
22218
|
-
* The data needed to update a AuthorizationSession.
|
|
22219
|
-
*/
|
|
22220
|
-
data: XOR<AuthorizationSessionUpdateInput, AuthorizationSessionUncheckedUpdateInput>
|
|
22221
|
-
/**
|
|
22222
|
-
* Choose, which AuthorizationSession to update.
|
|
22223
|
-
*/
|
|
22224
|
-
where: AuthorizationSessionWhereUniqueInput
|
|
22225
|
-
}
|
|
22226
|
-
|
|
22227
|
-
/**
|
|
22228
|
-
* AuthorizationSession updateMany
|
|
22229
|
-
*/
|
|
22230
|
-
export type AuthorizationSessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22231
|
-
/**
|
|
22232
|
-
* The data used to update AuthorizationSessions.
|
|
22233
|
-
*/
|
|
22234
|
-
data: XOR<AuthorizationSessionUpdateManyMutationInput, AuthorizationSessionUncheckedUpdateManyInput>
|
|
22235
|
-
/**
|
|
22236
|
-
* Filter which AuthorizationSessions to update
|
|
22237
|
-
*/
|
|
22238
|
-
where?: AuthorizationSessionWhereInput
|
|
22239
|
-
/**
|
|
22240
|
-
* Limit how many AuthorizationSessions to update.
|
|
22241
|
-
*/
|
|
22242
|
-
limit?: number
|
|
22243
|
-
}
|
|
22244
|
-
|
|
22245
|
-
/**
|
|
22246
|
-
* AuthorizationSession updateManyAndReturn
|
|
22247
|
-
*/
|
|
22248
|
-
export type AuthorizationSessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22249
|
-
/**
|
|
22250
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22251
|
-
*/
|
|
22252
|
-
select?: AuthorizationSessionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
22253
|
-
/**
|
|
22254
|
-
* Omit specific fields from the AuthorizationSession
|
|
22255
|
-
*/
|
|
22256
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22257
|
-
/**
|
|
22258
|
-
* The data used to update AuthorizationSessions.
|
|
22259
|
-
*/
|
|
22260
|
-
data: XOR<AuthorizationSessionUpdateManyMutationInput, AuthorizationSessionUncheckedUpdateManyInput>
|
|
22261
|
-
/**
|
|
22262
|
-
* Filter which AuthorizationSessions to update
|
|
22263
|
-
*/
|
|
22264
|
-
where?: AuthorizationSessionWhereInput
|
|
22265
|
-
/**
|
|
22266
|
-
* Limit how many AuthorizationSessions to update.
|
|
22267
|
-
*/
|
|
22268
|
-
limit?: number
|
|
22269
|
-
}
|
|
22270
|
-
|
|
22271
|
-
/**
|
|
22272
|
-
* AuthorizationSession upsert
|
|
22273
|
-
*/
|
|
22274
|
-
export type AuthorizationSessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22275
|
-
/**
|
|
22276
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22277
|
-
*/
|
|
22278
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22279
|
-
/**
|
|
22280
|
-
* Omit specific fields from the AuthorizationSession
|
|
22281
|
-
*/
|
|
22282
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22283
|
-
/**
|
|
22284
|
-
* The filter to search for the AuthorizationSession to update in case it exists.
|
|
22285
|
-
*/
|
|
22286
|
-
where: AuthorizationSessionWhereUniqueInput
|
|
22287
|
-
/**
|
|
22288
|
-
* In case the AuthorizationSession found by the `where` argument doesn't exist, create a new AuthorizationSession with this data.
|
|
22289
|
-
*/
|
|
22290
|
-
create: XOR<AuthorizationSessionCreateInput, AuthorizationSessionUncheckedCreateInput>
|
|
22291
|
-
/**
|
|
22292
|
-
* In case the AuthorizationSession was found with the provided `where` argument, update it with this data.
|
|
22293
|
-
*/
|
|
22294
|
-
update: XOR<AuthorizationSessionUpdateInput, AuthorizationSessionUncheckedUpdateInput>
|
|
22295
|
-
}
|
|
22296
|
-
|
|
22297
|
-
/**
|
|
22298
|
-
* AuthorizationSession delete
|
|
22299
|
-
*/
|
|
22300
|
-
export type AuthorizationSessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22301
|
-
/**
|
|
22302
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22303
|
-
*/
|
|
22304
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22305
|
-
/**
|
|
22306
|
-
* Omit specific fields from the AuthorizationSession
|
|
22307
|
-
*/
|
|
22308
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22309
|
-
/**
|
|
22310
|
-
* Filter which AuthorizationSession to delete.
|
|
22311
|
-
*/
|
|
22312
|
-
where: AuthorizationSessionWhereUniqueInput
|
|
22313
|
-
}
|
|
22314
|
-
|
|
22315
|
-
/**
|
|
22316
|
-
* AuthorizationSession deleteMany
|
|
22317
|
-
*/
|
|
22318
|
-
export type AuthorizationSessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22319
|
-
/**
|
|
22320
|
-
* Filter which AuthorizationSessions to delete
|
|
22321
|
-
*/
|
|
22322
|
-
where?: AuthorizationSessionWhereInput
|
|
22323
|
-
/**
|
|
22324
|
-
* Limit how many AuthorizationSessions to delete.
|
|
22325
|
-
*/
|
|
22326
|
-
limit?: number
|
|
22327
|
-
}
|
|
22328
|
-
|
|
22329
|
-
/**
|
|
22330
|
-
* AuthorizationSession without action
|
|
22331
|
-
*/
|
|
22332
|
-
export type AuthorizationSessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
|
|
22333
|
-
/**
|
|
22334
|
-
* Select specific fields to fetch from the AuthorizationSession
|
|
22335
|
-
*/
|
|
22336
|
-
select?: AuthorizationSessionSelect<ExtArgs> | null
|
|
22337
|
-
/**
|
|
22338
|
-
* Omit specific fields from the AuthorizationSession
|
|
22339
|
-
*/
|
|
22340
|
-
omit?: AuthorizationSessionOmit<ExtArgs> | null
|
|
22341
|
-
}
|
|
22342
|
-
|
|
22343
|
-
|
|
22344
|
-
/**
|
|
22345
|
-
* Enums
|
|
22346
|
-
*/
|
|
22347
|
-
|
|
22348
|
-
export const TransactionIsolationLevel: {
|
|
22349
|
-
ReadUncommitted: 'ReadUncommitted',
|
|
22350
|
-
ReadCommitted: 'ReadCommitted',
|
|
22351
|
-
RepeatableRead: 'RepeatableRead',
|
|
22352
|
-
Serializable: 'Serializable'
|
|
22353
|
-
};
|
|
22354
|
-
|
|
22355
|
-
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
export const UserScalarFieldEnum: {
|
|
22359
|
-
id: 'id',
|
|
22360
|
-
type: 'type',
|
|
22361
|
-
createdAt: 'createdAt',
|
|
22362
|
-
updatedAt: 'updatedAt',
|
|
22363
|
-
email: 'email',
|
|
22364
|
-
username: 'username',
|
|
22365
|
-
hashword: 'hashword',
|
|
22366
|
-
appUserId: 'appUserId',
|
|
22367
|
-
organizationId: 'organizationId',
|
|
22368
|
-
appOrgId: 'appOrgId',
|
|
22369
|
-
name: 'name'
|
|
22370
|
-
};
|
|
22371
|
-
|
|
22372
|
-
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
export const TokenScalarFieldEnum: {
|
|
22376
|
-
id: 'id',
|
|
22377
|
-
token: 'token',
|
|
22378
|
-
created: 'created',
|
|
22379
|
-
expires: 'expires',
|
|
22380
|
-
userId: 'userId'
|
|
22381
|
-
};
|
|
22382
|
-
|
|
22383
|
-
export type TokenScalarFieldEnum = (typeof TokenScalarFieldEnum)[keyof typeof TokenScalarFieldEnum]
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
export const CredentialScalarFieldEnum: {
|
|
22387
|
-
id: 'id',
|
|
22388
|
-
userId: 'userId',
|
|
22389
|
-
authIsValid: 'authIsValid',
|
|
22390
|
-
externalId: 'externalId',
|
|
22391
|
-
data: 'data',
|
|
22392
|
-
createdAt: 'createdAt',
|
|
22393
|
-
updatedAt: 'updatedAt'
|
|
22394
|
-
};
|
|
22395
|
-
|
|
22396
|
-
export type CredentialScalarFieldEnum = (typeof CredentialScalarFieldEnum)[keyof typeof CredentialScalarFieldEnum]
|
|
22397
|
-
|
|
22398
|
-
|
|
22399
|
-
export const EntityScalarFieldEnum: {
|
|
22400
|
-
id: 'id',
|
|
22401
|
-
credentialId: 'credentialId',
|
|
22402
|
-
userId: 'userId',
|
|
22403
|
-
name: 'name',
|
|
22404
|
-
moduleName: 'moduleName',
|
|
22405
|
-
externalId: 'externalId',
|
|
22406
|
-
data: 'data',
|
|
22407
|
-
createdAt: 'createdAt',
|
|
22408
|
-
updatedAt: 'updatedAt'
|
|
22409
|
-
};
|
|
22410
|
-
|
|
22411
|
-
export type EntityScalarFieldEnum = (typeof EntityScalarFieldEnum)[keyof typeof EntityScalarFieldEnum]
|
|
22412
|
-
|
|
22413
|
-
|
|
22414
|
-
export const IntegrationScalarFieldEnum: {
|
|
22415
|
-
id: 'id',
|
|
22416
|
-
userId: 'userId',
|
|
22417
|
-
status: 'status',
|
|
22418
|
-
config: 'config',
|
|
22419
|
-
version: 'version',
|
|
22420
|
-
errors: 'errors',
|
|
22421
|
-
warnings: 'warnings',
|
|
22422
|
-
info: 'info',
|
|
22423
|
-
logs: 'logs',
|
|
22424
|
-
createdAt: 'createdAt',
|
|
22425
|
-
updatedAt: 'updatedAt'
|
|
22426
|
-
};
|
|
22427
|
-
|
|
22428
|
-
export type IntegrationScalarFieldEnum = (typeof IntegrationScalarFieldEnum)[keyof typeof IntegrationScalarFieldEnum]
|
|
22429
|
-
|
|
22430
|
-
|
|
22431
|
-
export const IntegrationMappingScalarFieldEnum: {
|
|
22432
|
-
id: 'id',
|
|
22433
|
-
integrationId: 'integrationId',
|
|
22434
|
-
sourceId: 'sourceId',
|
|
22435
|
-
mapping: 'mapping',
|
|
22436
|
-
createdAt: 'createdAt',
|
|
22437
|
-
updatedAt: 'updatedAt'
|
|
22438
|
-
};
|
|
22439
|
-
|
|
22440
|
-
export type IntegrationMappingScalarFieldEnum = (typeof IntegrationMappingScalarFieldEnum)[keyof typeof IntegrationMappingScalarFieldEnum]
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
export const SyncScalarFieldEnum: {
|
|
22444
|
-
id: 'id',
|
|
22445
|
-
integrationId: 'integrationId',
|
|
22446
|
-
hash: 'hash',
|
|
22447
|
-
name: 'name'
|
|
22448
|
-
};
|
|
22449
|
-
|
|
22450
|
-
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
21233
|
+
export type SyncScalarFieldEnum = (typeof SyncScalarFieldEnum)[keyof typeof SyncScalarFieldEnum]
|
|
22451
21234
|
|
|
22452
21235
|
|
|
22453
21236
|
export const DataIdentifierScalarFieldEnum: {
|
|
@@ -22563,24 +21346,6 @@ export namespace Prisma {
|
|
|
22563
21346
|
export type UsageCounterScalarFieldEnum = (typeof UsageCounterScalarFieldEnum)[keyof typeof UsageCounterScalarFieldEnum]
|
|
22564
21347
|
|
|
22565
21348
|
|
|
22566
|
-
export const AuthorizationSessionScalarFieldEnum: {
|
|
22567
|
-
id: 'id',
|
|
22568
|
-
sessionId: 'sessionId',
|
|
22569
|
-
userId: 'userId',
|
|
22570
|
-
entityType: 'entityType',
|
|
22571
|
-
credentialId: 'credentialId',
|
|
22572
|
-
currentStep: 'currentStep',
|
|
22573
|
-
maxSteps: 'maxSteps',
|
|
22574
|
-
stepData: 'stepData',
|
|
22575
|
-
expiresAt: 'expiresAt',
|
|
22576
|
-
completed: 'completed',
|
|
22577
|
-
createdAt: 'createdAt',
|
|
22578
|
-
updatedAt: 'updatedAt'
|
|
22579
|
-
};
|
|
22580
|
-
|
|
22581
|
-
export type AuthorizationSessionScalarFieldEnum = (typeof AuthorizationSessionScalarFieldEnum)[keyof typeof AuthorizationSessionScalarFieldEnum]
|
|
22582
|
-
|
|
22583
|
-
|
|
22584
21349
|
export const SortOrder: {
|
|
22585
21350
|
asc: 'asc',
|
|
22586
21351
|
desc: 'desc'
|
|
@@ -23925,95 +22690,6 @@ export namespace Prisma {
|
|
|
23925
22690
|
updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
23926
22691
|
}
|
|
23927
22692
|
|
|
23928
|
-
export type AuthorizationSessionWhereInput = {
|
|
23929
|
-
AND?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
|
|
23930
|
-
OR?: AuthorizationSessionWhereInput[]
|
|
23931
|
-
NOT?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
|
|
23932
|
-
id?: IntFilter<"AuthorizationSession"> | number
|
|
23933
|
-
sessionId?: StringFilter<"AuthorizationSession"> | string
|
|
23934
|
-
userId?: StringFilter<"AuthorizationSession"> | string
|
|
23935
|
-
entityType?: StringFilter<"AuthorizationSession"> | string
|
|
23936
|
-
credentialId?: StringNullableFilter<"AuthorizationSession"> | string | null
|
|
23937
|
-
currentStep?: IntFilter<"AuthorizationSession"> | number
|
|
23938
|
-
maxSteps?: IntFilter<"AuthorizationSession"> | number
|
|
23939
|
-
stepData?: JsonFilter<"AuthorizationSession">
|
|
23940
|
-
expiresAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
|
|
23941
|
-
completed?: BoolFilter<"AuthorizationSession"> | boolean
|
|
23942
|
-
createdAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
|
|
23943
|
-
updatedAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
|
|
23944
|
-
}
|
|
23945
|
-
|
|
23946
|
-
export type AuthorizationSessionOrderByWithRelationInput = {
|
|
23947
|
-
id?: SortOrder
|
|
23948
|
-
sessionId?: SortOrder
|
|
23949
|
-
userId?: SortOrder
|
|
23950
|
-
entityType?: SortOrder
|
|
23951
|
-
credentialId?: SortOrderInput | SortOrder
|
|
23952
|
-
currentStep?: SortOrder
|
|
23953
|
-
maxSteps?: SortOrder
|
|
23954
|
-
stepData?: SortOrder
|
|
23955
|
-
expiresAt?: SortOrder
|
|
23956
|
-
completed?: SortOrder
|
|
23957
|
-
createdAt?: SortOrder
|
|
23958
|
-
updatedAt?: SortOrder
|
|
23959
|
-
}
|
|
23960
|
-
|
|
23961
|
-
export type AuthorizationSessionWhereUniqueInput = Prisma.AtLeast<{
|
|
23962
|
-
id?: number
|
|
23963
|
-
sessionId?: string
|
|
23964
|
-
AND?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
|
|
23965
|
-
OR?: AuthorizationSessionWhereInput[]
|
|
23966
|
-
NOT?: AuthorizationSessionWhereInput | AuthorizationSessionWhereInput[]
|
|
23967
|
-
userId?: StringFilter<"AuthorizationSession"> | string
|
|
23968
|
-
entityType?: StringFilter<"AuthorizationSession"> | string
|
|
23969
|
-
credentialId?: StringNullableFilter<"AuthorizationSession"> | string | null
|
|
23970
|
-
currentStep?: IntFilter<"AuthorizationSession"> | number
|
|
23971
|
-
maxSteps?: IntFilter<"AuthorizationSession"> | number
|
|
23972
|
-
stepData?: JsonFilter<"AuthorizationSession">
|
|
23973
|
-
expiresAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
|
|
23974
|
-
completed?: BoolFilter<"AuthorizationSession"> | boolean
|
|
23975
|
-
createdAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
|
|
23976
|
-
updatedAt?: DateTimeFilter<"AuthorizationSession"> | Date | string
|
|
23977
|
-
}, "id" | "sessionId">
|
|
23978
|
-
|
|
23979
|
-
export type AuthorizationSessionOrderByWithAggregationInput = {
|
|
23980
|
-
id?: SortOrder
|
|
23981
|
-
sessionId?: SortOrder
|
|
23982
|
-
userId?: SortOrder
|
|
23983
|
-
entityType?: SortOrder
|
|
23984
|
-
credentialId?: SortOrderInput | SortOrder
|
|
23985
|
-
currentStep?: SortOrder
|
|
23986
|
-
maxSteps?: SortOrder
|
|
23987
|
-
stepData?: SortOrder
|
|
23988
|
-
expiresAt?: SortOrder
|
|
23989
|
-
completed?: SortOrder
|
|
23990
|
-
createdAt?: SortOrder
|
|
23991
|
-
updatedAt?: SortOrder
|
|
23992
|
-
_count?: AuthorizationSessionCountOrderByAggregateInput
|
|
23993
|
-
_avg?: AuthorizationSessionAvgOrderByAggregateInput
|
|
23994
|
-
_max?: AuthorizationSessionMaxOrderByAggregateInput
|
|
23995
|
-
_min?: AuthorizationSessionMinOrderByAggregateInput
|
|
23996
|
-
_sum?: AuthorizationSessionSumOrderByAggregateInput
|
|
23997
|
-
}
|
|
23998
|
-
|
|
23999
|
-
export type AuthorizationSessionScalarWhereWithAggregatesInput = {
|
|
24000
|
-
AND?: AuthorizationSessionScalarWhereWithAggregatesInput | AuthorizationSessionScalarWhereWithAggregatesInput[]
|
|
24001
|
-
OR?: AuthorizationSessionScalarWhereWithAggregatesInput[]
|
|
24002
|
-
NOT?: AuthorizationSessionScalarWhereWithAggregatesInput | AuthorizationSessionScalarWhereWithAggregatesInput[]
|
|
24003
|
-
id?: IntWithAggregatesFilter<"AuthorizationSession"> | number
|
|
24004
|
-
sessionId?: StringWithAggregatesFilter<"AuthorizationSession"> | string
|
|
24005
|
-
userId?: StringWithAggregatesFilter<"AuthorizationSession"> | string
|
|
24006
|
-
entityType?: StringWithAggregatesFilter<"AuthorizationSession"> | string
|
|
24007
|
-
credentialId?: StringNullableWithAggregatesFilter<"AuthorizationSession"> | string | null
|
|
24008
|
-
currentStep?: IntWithAggregatesFilter<"AuthorizationSession"> | number
|
|
24009
|
-
maxSteps?: IntWithAggregatesFilter<"AuthorizationSession"> | number
|
|
24010
|
-
stepData?: JsonWithAggregatesFilter<"AuthorizationSession">
|
|
24011
|
-
expiresAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
|
|
24012
|
-
completed?: BoolWithAggregatesFilter<"AuthorizationSession"> | boolean
|
|
24013
|
-
createdAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
|
|
24014
|
-
updatedAt?: DateTimeWithAggregatesFilter<"AuthorizationSession"> | Date | string
|
|
24015
|
-
}
|
|
24016
|
-
|
|
24017
22693
|
export type UserCreateInput = {
|
|
24018
22694
|
type: $Enums.UserType
|
|
24019
22695
|
createdAt?: Date | string
|
|
@@ -25153,108 +23829,6 @@ export namespace Prisma {
|
|
|
25153
23829
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25154
23830
|
}
|
|
25155
23831
|
|
|
25156
|
-
export type AuthorizationSessionCreateInput = {
|
|
25157
|
-
sessionId: string
|
|
25158
|
-
userId: string
|
|
25159
|
-
entityType: string
|
|
25160
|
-
credentialId?: string | null
|
|
25161
|
-
currentStep?: number
|
|
25162
|
-
maxSteps: number
|
|
25163
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25164
|
-
expiresAt: Date | string
|
|
25165
|
-
completed?: boolean
|
|
25166
|
-
createdAt?: Date | string
|
|
25167
|
-
updatedAt?: Date | string
|
|
25168
|
-
}
|
|
25169
|
-
|
|
25170
|
-
export type AuthorizationSessionUncheckedCreateInput = {
|
|
25171
|
-
id?: number
|
|
25172
|
-
sessionId: string
|
|
25173
|
-
userId: string
|
|
25174
|
-
entityType: string
|
|
25175
|
-
credentialId?: string | null
|
|
25176
|
-
currentStep?: number
|
|
25177
|
-
maxSteps: number
|
|
25178
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25179
|
-
expiresAt: Date | string
|
|
25180
|
-
completed?: boolean
|
|
25181
|
-
createdAt?: Date | string
|
|
25182
|
-
updatedAt?: Date | string
|
|
25183
|
-
}
|
|
25184
|
-
|
|
25185
|
-
export type AuthorizationSessionUpdateInput = {
|
|
25186
|
-
sessionId?: StringFieldUpdateOperationsInput | string
|
|
25187
|
-
userId?: StringFieldUpdateOperationsInput | string
|
|
25188
|
-
entityType?: StringFieldUpdateOperationsInput | string
|
|
25189
|
-
credentialId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
25190
|
-
currentStep?: IntFieldUpdateOperationsInput | number
|
|
25191
|
-
maxSteps?: IntFieldUpdateOperationsInput | number
|
|
25192
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25193
|
-
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25194
|
-
completed?: BoolFieldUpdateOperationsInput | boolean
|
|
25195
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25196
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25197
|
-
}
|
|
25198
|
-
|
|
25199
|
-
export type AuthorizationSessionUncheckedUpdateInput = {
|
|
25200
|
-
id?: IntFieldUpdateOperationsInput | number
|
|
25201
|
-
sessionId?: StringFieldUpdateOperationsInput | string
|
|
25202
|
-
userId?: StringFieldUpdateOperationsInput | string
|
|
25203
|
-
entityType?: StringFieldUpdateOperationsInput | string
|
|
25204
|
-
credentialId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
25205
|
-
currentStep?: IntFieldUpdateOperationsInput | number
|
|
25206
|
-
maxSteps?: IntFieldUpdateOperationsInput | number
|
|
25207
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25208
|
-
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25209
|
-
completed?: BoolFieldUpdateOperationsInput | boolean
|
|
25210
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25211
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25212
|
-
}
|
|
25213
|
-
|
|
25214
|
-
export type AuthorizationSessionCreateManyInput = {
|
|
25215
|
-
id?: number
|
|
25216
|
-
sessionId: string
|
|
25217
|
-
userId: string
|
|
25218
|
-
entityType: string
|
|
25219
|
-
credentialId?: string | null
|
|
25220
|
-
currentStep?: number
|
|
25221
|
-
maxSteps: number
|
|
25222
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25223
|
-
expiresAt: Date | string
|
|
25224
|
-
completed?: boolean
|
|
25225
|
-
createdAt?: Date | string
|
|
25226
|
-
updatedAt?: Date | string
|
|
25227
|
-
}
|
|
25228
|
-
|
|
25229
|
-
export type AuthorizationSessionUpdateManyMutationInput = {
|
|
25230
|
-
sessionId?: StringFieldUpdateOperationsInput | string
|
|
25231
|
-
userId?: StringFieldUpdateOperationsInput | string
|
|
25232
|
-
entityType?: StringFieldUpdateOperationsInput | string
|
|
25233
|
-
credentialId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
25234
|
-
currentStep?: IntFieldUpdateOperationsInput | number
|
|
25235
|
-
maxSteps?: IntFieldUpdateOperationsInput | number
|
|
25236
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25237
|
-
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25238
|
-
completed?: BoolFieldUpdateOperationsInput | boolean
|
|
25239
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25240
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25241
|
-
}
|
|
25242
|
-
|
|
25243
|
-
export type AuthorizationSessionUncheckedUpdateManyInput = {
|
|
25244
|
-
id?: IntFieldUpdateOperationsInput | number
|
|
25245
|
-
sessionId?: StringFieldUpdateOperationsInput | string
|
|
25246
|
-
userId?: StringFieldUpdateOperationsInput | string
|
|
25247
|
-
entityType?: StringFieldUpdateOperationsInput | string
|
|
25248
|
-
credentialId?: NullableStringFieldUpdateOperationsInput | string | null
|
|
25249
|
-
currentStep?: IntFieldUpdateOperationsInput | number
|
|
25250
|
-
maxSteps?: IntFieldUpdateOperationsInput | number
|
|
25251
|
-
stepData?: JsonNullValueInput | InputJsonValue
|
|
25252
|
-
expiresAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25253
|
-
completed?: BoolFieldUpdateOperationsInput | boolean
|
|
25254
|
-
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25255
|
-
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
25256
|
-
}
|
|
25257
|
-
|
|
25258
23832
|
export type IntFilter<$PrismaModel = never> = {
|
|
25259
23833
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
25260
23834
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
|
@@ -26450,61 +25024,6 @@ export namespace Prisma {
|
|
|
26450
25024
|
_max?: NestedBigIntFilter<$PrismaModel>
|
|
26451
25025
|
}
|
|
26452
25026
|
|
|
26453
|
-
export type AuthorizationSessionCountOrderByAggregateInput = {
|
|
26454
|
-
id?: SortOrder
|
|
26455
|
-
sessionId?: SortOrder
|
|
26456
|
-
userId?: SortOrder
|
|
26457
|
-
entityType?: SortOrder
|
|
26458
|
-
credentialId?: SortOrder
|
|
26459
|
-
currentStep?: SortOrder
|
|
26460
|
-
maxSteps?: SortOrder
|
|
26461
|
-
stepData?: SortOrder
|
|
26462
|
-
expiresAt?: SortOrder
|
|
26463
|
-
completed?: SortOrder
|
|
26464
|
-
createdAt?: SortOrder
|
|
26465
|
-
updatedAt?: SortOrder
|
|
26466
|
-
}
|
|
26467
|
-
|
|
26468
|
-
export type AuthorizationSessionAvgOrderByAggregateInput = {
|
|
26469
|
-
id?: SortOrder
|
|
26470
|
-
currentStep?: SortOrder
|
|
26471
|
-
maxSteps?: SortOrder
|
|
26472
|
-
}
|
|
26473
|
-
|
|
26474
|
-
export type AuthorizationSessionMaxOrderByAggregateInput = {
|
|
26475
|
-
id?: SortOrder
|
|
26476
|
-
sessionId?: SortOrder
|
|
26477
|
-
userId?: SortOrder
|
|
26478
|
-
entityType?: SortOrder
|
|
26479
|
-
credentialId?: SortOrder
|
|
26480
|
-
currentStep?: SortOrder
|
|
26481
|
-
maxSteps?: SortOrder
|
|
26482
|
-
expiresAt?: SortOrder
|
|
26483
|
-
completed?: SortOrder
|
|
26484
|
-
createdAt?: SortOrder
|
|
26485
|
-
updatedAt?: SortOrder
|
|
26486
|
-
}
|
|
26487
|
-
|
|
26488
|
-
export type AuthorizationSessionMinOrderByAggregateInput = {
|
|
26489
|
-
id?: SortOrder
|
|
26490
|
-
sessionId?: SortOrder
|
|
26491
|
-
userId?: SortOrder
|
|
26492
|
-
entityType?: SortOrder
|
|
26493
|
-
credentialId?: SortOrder
|
|
26494
|
-
currentStep?: SortOrder
|
|
26495
|
-
maxSteps?: SortOrder
|
|
26496
|
-
expiresAt?: SortOrder
|
|
26497
|
-
completed?: SortOrder
|
|
26498
|
-
createdAt?: SortOrder
|
|
26499
|
-
updatedAt?: SortOrder
|
|
26500
|
-
}
|
|
26501
|
-
|
|
26502
|
-
export type AuthorizationSessionSumOrderByAggregateInput = {
|
|
26503
|
-
id?: SortOrder
|
|
26504
|
-
currentStep?: SortOrder
|
|
26505
|
-
maxSteps?: SortOrder
|
|
26506
|
-
}
|
|
26507
|
-
|
|
26508
25027
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
26509
25028
|
create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
26510
25029
|
connectOrCreate?: UserCreateOrConnectWithoutMembersInput
|