@wardby/cli 0.1.0 → 0.2.1
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/README.md +183 -96
- package/deploy/local/docker-compose.yml +5 -5
- package/dist/claude-coding-worker/driver.d.ts +1 -0
- package/dist/claude-coding-worker/driver.js +4 -1
- package/dist/claude-coding-worker/main.js +3 -2
- package/dist/cli-help.d.ts +1 -1
- package/dist/cli-help.js +5 -0
- package/dist/cli.js +0 -0
- package/dist/coding/protocol.d.ts +28 -3
- package/dist/coding/protocol.js +53 -2
- package/dist/coding-worker/artifact.d.ts +12 -0
- package/dist/coding-worker/artifact.js +48 -6
- package/dist/coding-worker/driver.d.ts +1 -0
- package/dist/coding-worker/driver.js +4 -1
- package/dist/coding-worker/errors.d.ts +7 -0
- package/dist/coding-worker/errors.js +18 -0
- package/dist/coding-worker/main.js +3 -2
- package/dist/core/budget-groups.d.ts +1 -1
- package/dist/core/coding-queue.d.ts +1 -1
- package/dist/core/datastores.d.ts +1 -1
- package/dist/core/db.d.ts +36 -2
- package/dist/core/db.js +69 -2
- package/dist/core/dispatch.d.ts +16 -1
- package/dist/core/dispatch.js +33 -5
- package/dist/core/http-runtime.js +3 -4
- package/dist/core/lease.d.ts +1 -1
- package/dist/core/private-directory.d.ts +20 -0
- package/dist/core/private-directory.js +36 -0
- package/dist/core/reconciler.d.ts +1 -1
- package/dist/core/runner.d.ts +1 -1
- package/dist/core/scheduler.d.ts +1 -1
- package/dist/core/secrets.d.ts +1 -1
- package/dist/core/subagent-memory-tools.d.ts +1 -1
- package/dist/core/webhooks.d.ts +1 -1
- package/dist/env.js +8 -1
- package/dist/generated/prisma/browser.d.ts +228 -0
- package/dist/generated/prisma/browser.js +17 -0
- package/dist/generated/prisma/client.d.ts +247 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +809 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +53 -0
- package/dist/generated/prisma/enums.js +54 -0
- package/dist/generated/prisma/internal/class.d.ts +462 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +3325 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +455 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +449 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +426 -0
- package/dist/generated/prisma/models/Agent.d.ts +3267 -0
- package/dist/generated/prisma/models/Agent.js +1 -0
- package/dist/generated/prisma/models/AgentDatastore.d.ts +1210 -0
- package/dist/generated/prisma/models/AgentDatastore.js +1 -0
- package/dist/generated/prisma/models/AgentMemory.d.ts +986 -0
- package/dist/generated/prisma/models/AgentMemory.js +1 -0
- package/dist/generated/prisma/models/AgentSecret.d.ts +1212 -0
- package/dist/generated/prisma/models/AgentSecret.js +1 -0
- package/dist/generated/prisma/models/AgentSubAgent.d.ts +1217 -0
- package/dist/generated/prisma/models/AgentSubAgent.js +1 -0
- package/dist/generated/prisma/models/AgentTool.d.ts +1309 -0
- package/dist/generated/prisma/models/AgentTool.js +1 -0
- package/dist/generated/prisma/models/AuthFormChallenge.d.ts +1298 -0
- package/dist/generated/prisma/models/AuthFormChallenge.js +1 -0
- package/dist/generated/prisma/models/AuthLoginKey.d.ts +1245 -0
- package/dist/generated/prisma/models/AuthLoginKey.js +1 -0
- package/dist/generated/prisma/models/AuthRateLimit.d.ts +979 -0
- package/dist/generated/prisma/models/AuthRateLimit.js +1 -0
- package/dist/generated/prisma/models/AuthSession.d.ts +1376 -0
- package/dist/generated/prisma/models/AuthSession.js +1 -0
- package/dist/generated/prisma/models/AuthUser.d.ts +1645 -0
- package/dist/generated/prisma/models/AuthUser.js +1 -0
- package/dist/generated/prisma/models/BudgetGroup.d.ts +1548 -0
- package/dist/generated/prisma/models/BudgetGroup.js +1 -0
- package/dist/generated/prisma/models/CodingAgentProfile.d.ts +1430 -0
- package/dist/generated/prisma/models/CodingAgentProfile.js +1 -0
- package/dist/generated/prisma/models/CodingProxyRequest.d.ts +1749 -0
- package/dist/generated/prisma/models/CodingProxyRequest.js +1 -0
- package/dist/generated/prisma/models/CodingProxySession.d.ts +1505 -0
- package/dist/generated/prisma/models/CodingProxySession.js +1 -0
- package/dist/generated/prisma/models/CodingRun.d.ts +2402 -0
- package/dist/generated/prisma/models/CodingRun.js +1 -0
- package/dist/generated/prisma/models/Datastore.d.ts +1434 -0
- package/dist/generated/prisma/models/Datastore.js +1 -0
- package/dist/generated/prisma/models/DatastoreEntry.d.ts +1314 -0
- package/dist/generated/prisma/models/DatastoreEntry.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.d.ts +1526 -0
- package/dist/generated/prisma/models/OAuthAuthorizationCode.js +1 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.d.ts +1350 -0
- package/dist/generated/prisma/models/OAuthAuthorizationRequest.js +1 -0
- package/dist/generated/prisma/models/OAuthClient.d.ts +1289 -0
- package/dist/generated/prisma/models/OAuthClient.js +1 -0
- package/dist/generated/prisma/models/OAuthFamily.d.ts +1540 -0
- package/dist/generated/prisma/models/OAuthFamily.js +1 -0
- package/dist/generated/prisma/models/OAuthGrant.d.ts +1280 -0
- package/dist/generated/prisma/models/OAuthGrant.js +1 -0
- package/dist/generated/prisma/models/Principal.d.ts +1790 -0
- package/dist/generated/prisma/models/Principal.js +1 -0
- package/dist/generated/prisma/models/Run.d.ts +2281 -0
- package/dist/generated/prisma/models/Run.js +1 -0
- package/dist/generated/prisma/models/SchedulerLease.d.ts +970 -0
- package/dist/generated/prisma/models/SchedulerLease.js +1 -0
- package/dist/generated/prisma/models/Secret.d.ts +1399 -0
- package/dist/generated/prisma/models/Secret.js +1 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.d.ts +973 -0
- package/dist/generated/prisma/models/SecretElicitationOutcome.js +1 -0
- package/dist/generated/prisma/models/Task.d.ts +1176 -0
- package/dist/generated/prisma/models/Task.js +1 -0
- package/dist/generated/prisma/models/Tool.d.ts +1478 -0
- package/dist/generated/prisma/models/Tool.js +1 -0
- package/dist/generated/prisma/models/Webhook.d.ts +1386 -0
- package/dist/generated/prisma/models/Webhook.js +1 -0
- package/dist/generated/prisma/models.d.ts +32 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/import/create.d.ts +1 -1
- package/dist/import/create.js +1 -1
- package/dist/import/index.d.ts +1 -1
- package/dist/mcp/auth/ownership.d.ts +19 -19
- package/dist/mcp/auth/principal.d.ts +1 -1
- package/dist/mcp/auth/resource-server.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/browser.js +20 -6
- package/dist/mcp/auth/self-hosted/cli.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/credentials.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/rate-limit.d.ts +1 -1
- package/dist/mcp/auth/self-hosted/session.d.ts +1 -1
- package/dist/mcp/context.d.ts +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/shared/page-style.d.ts +16 -0
- package/dist/mcp/shared/page-style.js +129 -0
- package/dist/mcp/tasks/manager.d.ts +1 -1
- package/dist/mcp/tools/agents.js +1 -1
- package/dist/mcp/tools/datastore.js +1 -1
- package/dist/mcp/tools/scheduling.js +1 -1
- package/dist/mcp/tools/secret-elicitation-form.d.ts +1 -1
- package/dist/mcp/tools/secret-elicitation-form.js +10 -28
- package/dist/mcp/tools/secret-elicitation.d.ts +1 -1
- package/dist/mcp/tools/subagents.js +1 -1
- package/dist/mcp/tools/tools.js +1 -1
- package/dist/mcp/transport/streamable-http.d.ts +1 -1
- package/dist/mcp/unattended-schedules.d.ts +1 -1
- package/dist/mcp/webhooks/ingress.d.ts +1 -1
- package/dist/providers/auth/index.d.ts +1 -1
- package/dist/providers/auth/self-hosted.d.ts +2 -2
- package/dist/providers/coding-proxy/prisma-ledger.d.ts +1 -1
- package/dist/providers/coding-proxy/runtime.d.ts +1 -1
- package/dist/providers/datastore/postgres.d.ts +1 -1
- package/dist/providers/executor/build.d.ts +1 -1
- package/dist/providers/executor/composition.d.ts +1 -1
- package/dist/providers/executor/container.d.ts +1 -1
- package/dist/providers/executor/container.js +10 -3
- package/dist/providers/executor/dbos.d.ts +1 -1
- package/dist/providers/jobs/docker.d.ts +11 -0
- package/dist/providers/jobs/docker.js +34 -18
- package/dist/providers/jobs/kubernetes.js +5 -10
- package/dist/providers/jobs/types.d.ts +2 -0
- package/dist/providers/memory/postgres.d.ts +1 -1
- package/dist/providers/vcs/git.js +2 -1
- package/dist/quickstart/config.d.ts +30 -0
- package/dist/quickstart/config.js +106 -0
- package/dist/quickstart/index.d.ts +5 -0
- package/dist/quickstart/index.js +527 -0
- package/dist/quickstart/migrate.d.ts +23 -0
- package/dist/quickstart/migrate.js +125 -0
- package/dist/wardby-bin.js +35 -9
- package/package.json +22 -9
- package/prisma/migrate.config.mjs +20 -0
- package/prisma/schema.prisma +10 -2
- package/dist/providers/auth/release-gate.d.ts +0 -1
- package/dist/providers/auth/release-gate.js +0 -4
|
@@ -0,0 +1,1376 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace.js";
|
|
3
|
+
/**
|
|
4
|
+
* Model AuthSession
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type AuthSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$AuthSessionPayload>;
|
|
8
|
+
export type AggregateAuthSession = {
|
|
9
|
+
_count: AuthSessionCountAggregateOutputType | null;
|
|
10
|
+
_min: AuthSessionMinAggregateOutputType | null;
|
|
11
|
+
_max: AuthSessionMaxAggregateOutputType | null;
|
|
12
|
+
};
|
|
13
|
+
export type AuthSessionMinAggregateOutputType = {
|
|
14
|
+
sessionId: string | null;
|
|
15
|
+
userId: string | null;
|
|
16
|
+
secretHash: string | null;
|
|
17
|
+
createdAt: Date | null;
|
|
18
|
+
lastSeenAt: Date | null;
|
|
19
|
+
expiresAt: Date | null;
|
|
20
|
+
revokedAt: Date | null;
|
|
21
|
+
};
|
|
22
|
+
export type AuthSessionMaxAggregateOutputType = {
|
|
23
|
+
sessionId: string | null;
|
|
24
|
+
userId: string | null;
|
|
25
|
+
secretHash: string | null;
|
|
26
|
+
createdAt: Date | null;
|
|
27
|
+
lastSeenAt: Date | null;
|
|
28
|
+
expiresAt: Date | null;
|
|
29
|
+
revokedAt: Date | null;
|
|
30
|
+
};
|
|
31
|
+
export type AuthSessionCountAggregateOutputType = {
|
|
32
|
+
sessionId: number;
|
|
33
|
+
userId: number;
|
|
34
|
+
secretHash: number;
|
|
35
|
+
createdAt: number;
|
|
36
|
+
lastSeenAt: number;
|
|
37
|
+
expiresAt: number;
|
|
38
|
+
revokedAt: number;
|
|
39
|
+
_all: number;
|
|
40
|
+
};
|
|
41
|
+
export type AuthSessionMinAggregateInputType = {
|
|
42
|
+
sessionId?: true;
|
|
43
|
+
userId?: true;
|
|
44
|
+
secretHash?: true;
|
|
45
|
+
createdAt?: true;
|
|
46
|
+
lastSeenAt?: true;
|
|
47
|
+
expiresAt?: true;
|
|
48
|
+
revokedAt?: true;
|
|
49
|
+
};
|
|
50
|
+
export type AuthSessionMaxAggregateInputType = {
|
|
51
|
+
sessionId?: true;
|
|
52
|
+
userId?: true;
|
|
53
|
+
secretHash?: true;
|
|
54
|
+
createdAt?: true;
|
|
55
|
+
lastSeenAt?: true;
|
|
56
|
+
expiresAt?: true;
|
|
57
|
+
revokedAt?: true;
|
|
58
|
+
};
|
|
59
|
+
export type AuthSessionCountAggregateInputType = {
|
|
60
|
+
sessionId?: true;
|
|
61
|
+
userId?: true;
|
|
62
|
+
secretHash?: true;
|
|
63
|
+
createdAt?: true;
|
|
64
|
+
lastSeenAt?: true;
|
|
65
|
+
expiresAt?: true;
|
|
66
|
+
revokedAt?: true;
|
|
67
|
+
_all?: true;
|
|
68
|
+
};
|
|
69
|
+
export type AuthSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
70
|
+
/**
|
|
71
|
+
* Filter which AuthSession to aggregate.
|
|
72
|
+
*/
|
|
73
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
74
|
+
/**
|
|
75
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
76
|
+
*
|
|
77
|
+
* Determine the order of AuthSessions to fetch.
|
|
78
|
+
*/
|
|
79
|
+
orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
|
|
80
|
+
/**
|
|
81
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
82
|
+
*
|
|
83
|
+
* Sets the start position
|
|
84
|
+
*/
|
|
85
|
+
cursor?: Prisma.AuthSessionWhereUniqueInput;
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
88
|
+
*
|
|
89
|
+
* Take `±n` AuthSessions from the position of the cursor.
|
|
90
|
+
*/
|
|
91
|
+
take?: number;
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
94
|
+
*
|
|
95
|
+
* Skip the first `n` AuthSessions.
|
|
96
|
+
*/
|
|
97
|
+
skip?: number;
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
100
|
+
*
|
|
101
|
+
* Count returned AuthSessions
|
|
102
|
+
**/
|
|
103
|
+
_count?: true | AuthSessionCountAggregateInputType;
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
106
|
+
*
|
|
107
|
+
* Select which fields to find the minimum value
|
|
108
|
+
**/
|
|
109
|
+
_min?: AuthSessionMinAggregateInputType;
|
|
110
|
+
/**
|
|
111
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
112
|
+
*
|
|
113
|
+
* Select which fields to find the maximum value
|
|
114
|
+
**/
|
|
115
|
+
_max?: AuthSessionMaxAggregateInputType;
|
|
116
|
+
};
|
|
117
|
+
export type GetAuthSessionAggregateType<T extends AuthSessionAggregateArgs> = {
|
|
118
|
+
[P in keyof T & keyof AggregateAuthSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAuthSession[P]> : Prisma.GetScalarType<T[P], AggregateAuthSession[P]>;
|
|
119
|
+
};
|
|
120
|
+
export type AuthSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
121
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
122
|
+
orderBy?: Prisma.AuthSessionOrderByWithAggregationInput | Prisma.AuthSessionOrderByWithAggregationInput[];
|
|
123
|
+
by: Prisma.AuthSessionScalarFieldEnum[] | Prisma.AuthSessionScalarFieldEnum;
|
|
124
|
+
having?: Prisma.AuthSessionScalarWhereWithAggregatesInput;
|
|
125
|
+
take?: number;
|
|
126
|
+
skip?: number;
|
|
127
|
+
_count?: AuthSessionCountAggregateInputType | true;
|
|
128
|
+
_min?: AuthSessionMinAggregateInputType;
|
|
129
|
+
_max?: AuthSessionMaxAggregateInputType;
|
|
130
|
+
};
|
|
131
|
+
export type AuthSessionGroupByOutputType = {
|
|
132
|
+
sessionId: string;
|
|
133
|
+
userId: string;
|
|
134
|
+
secretHash: string;
|
|
135
|
+
createdAt: Date;
|
|
136
|
+
lastSeenAt: Date;
|
|
137
|
+
expiresAt: Date;
|
|
138
|
+
revokedAt: Date | null;
|
|
139
|
+
_count: AuthSessionCountAggregateOutputType | null;
|
|
140
|
+
_min: AuthSessionMinAggregateOutputType | null;
|
|
141
|
+
_max: AuthSessionMaxAggregateOutputType | null;
|
|
142
|
+
};
|
|
143
|
+
export type GetAuthSessionGroupByPayload<T extends AuthSessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AuthSessionGroupByOutputType, T['by']> & {
|
|
144
|
+
[P in ((keyof T) & (keyof AuthSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AuthSessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AuthSessionGroupByOutputType[P]>;
|
|
145
|
+
}>>;
|
|
146
|
+
export type AuthSessionWhereInput = {
|
|
147
|
+
AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
|
|
148
|
+
OR?: Prisma.AuthSessionWhereInput[];
|
|
149
|
+
NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
|
|
150
|
+
sessionId?: Prisma.StringFilter<"AuthSession"> | string;
|
|
151
|
+
userId?: Prisma.StringFilter<"AuthSession"> | string;
|
|
152
|
+
secretHash?: Prisma.StringFilter<"AuthSession"> | string;
|
|
153
|
+
createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
154
|
+
lastSeenAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
155
|
+
expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
156
|
+
revokedAt?: Prisma.DateTimeNullableFilter<"AuthSession"> | Date | string | null;
|
|
157
|
+
user?: Prisma.XOR<Prisma.AuthUserScalarRelationFilter, Prisma.AuthUserWhereInput>;
|
|
158
|
+
challenges?: Prisma.AuthFormChallengeListRelationFilter;
|
|
159
|
+
};
|
|
160
|
+
export type AuthSessionOrderByWithRelationInput = {
|
|
161
|
+
sessionId?: Prisma.SortOrder;
|
|
162
|
+
userId?: Prisma.SortOrder;
|
|
163
|
+
secretHash?: Prisma.SortOrder;
|
|
164
|
+
createdAt?: Prisma.SortOrder;
|
|
165
|
+
lastSeenAt?: Prisma.SortOrder;
|
|
166
|
+
expiresAt?: Prisma.SortOrder;
|
|
167
|
+
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
168
|
+
user?: Prisma.AuthUserOrderByWithRelationInput;
|
|
169
|
+
challenges?: Prisma.AuthFormChallengeOrderByRelationAggregateInput;
|
|
170
|
+
};
|
|
171
|
+
export type AuthSessionWhereUniqueInput = Prisma.AtLeast<{
|
|
172
|
+
sessionId?: string;
|
|
173
|
+
AND?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
|
|
174
|
+
OR?: Prisma.AuthSessionWhereInput[];
|
|
175
|
+
NOT?: Prisma.AuthSessionWhereInput | Prisma.AuthSessionWhereInput[];
|
|
176
|
+
userId?: Prisma.StringFilter<"AuthSession"> | string;
|
|
177
|
+
secretHash?: Prisma.StringFilter<"AuthSession"> | string;
|
|
178
|
+
createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
179
|
+
lastSeenAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
180
|
+
expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
181
|
+
revokedAt?: Prisma.DateTimeNullableFilter<"AuthSession"> | Date | string | null;
|
|
182
|
+
user?: Prisma.XOR<Prisma.AuthUserScalarRelationFilter, Prisma.AuthUserWhereInput>;
|
|
183
|
+
challenges?: Prisma.AuthFormChallengeListRelationFilter;
|
|
184
|
+
}, "sessionId">;
|
|
185
|
+
export type AuthSessionOrderByWithAggregationInput = {
|
|
186
|
+
sessionId?: Prisma.SortOrder;
|
|
187
|
+
userId?: Prisma.SortOrder;
|
|
188
|
+
secretHash?: Prisma.SortOrder;
|
|
189
|
+
createdAt?: Prisma.SortOrder;
|
|
190
|
+
lastSeenAt?: Prisma.SortOrder;
|
|
191
|
+
expiresAt?: Prisma.SortOrder;
|
|
192
|
+
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
193
|
+
_count?: Prisma.AuthSessionCountOrderByAggregateInput;
|
|
194
|
+
_max?: Prisma.AuthSessionMaxOrderByAggregateInput;
|
|
195
|
+
_min?: Prisma.AuthSessionMinOrderByAggregateInput;
|
|
196
|
+
};
|
|
197
|
+
export type AuthSessionScalarWhereWithAggregatesInput = {
|
|
198
|
+
AND?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[];
|
|
199
|
+
OR?: Prisma.AuthSessionScalarWhereWithAggregatesInput[];
|
|
200
|
+
NOT?: Prisma.AuthSessionScalarWhereWithAggregatesInput | Prisma.AuthSessionScalarWhereWithAggregatesInput[];
|
|
201
|
+
sessionId?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string;
|
|
202
|
+
userId?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string;
|
|
203
|
+
secretHash?: Prisma.StringWithAggregatesFilter<"AuthSession"> | string;
|
|
204
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string;
|
|
205
|
+
lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string;
|
|
206
|
+
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"AuthSession"> | Date | string;
|
|
207
|
+
revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AuthSession"> | Date | string | null;
|
|
208
|
+
};
|
|
209
|
+
export type AuthSessionCreateInput = {
|
|
210
|
+
sessionId: string;
|
|
211
|
+
secretHash: string;
|
|
212
|
+
createdAt?: Date | string;
|
|
213
|
+
lastSeenAt?: Date | string;
|
|
214
|
+
expiresAt: Date | string;
|
|
215
|
+
revokedAt?: Date | string | null;
|
|
216
|
+
user: Prisma.AuthUserCreateNestedOneWithoutSessionsInput;
|
|
217
|
+
challenges?: Prisma.AuthFormChallengeCreateNestedManyWithoutSessionInput;
|
|
218
|
+
};
|
|
219
|
+
export type AuthSessionUncheckedCreateInput = {
|
|
220
|
+
sessionId: string;
|
|
221
|
+
userId: string;
|
|
222
|
+
secretHash: string;
|
|
223
|
+
createdAt?: Date | string;
|
|
224
|
+
lastSeenAt?: Date | string;
|
|
225
|
+
expiresAt: Date | string;
|
|
226
|
+
revokedAt?: Date | string | null;
|
|
227
|
+
challenges?: Prisma.AuthFormChallengeUncheckedCreateNestedManyWithoutSessionInput;
|
|
228
|
+
};
|
|
229
|
+
export type AuthSessionUpdateInput = {
|
|
230
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
231
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
232
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
233
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
234
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
235
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
236
|
+
user?: Prisma.AuthUserUpdateOneRequiredWithoutSessionsNestedInput;
|
|
237
|
+
challenges?: Prisma.AuthFormChallengeUpdateManyWithoutSessionNestedInput;
|
|
238
|
+
};
|
|
239
|
+
export type AuthSessionUncheckedUpdateInput = {
|
|
240
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
241
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
242
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
243
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
244
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
245
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
246
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
247
|
+
challenges?: Prisma.AuthFormChallengeUncheckedUpdateManyWithoutSessionNestedInput;
|
|
248
|
+
};
|
|
249
|
+
export type AuthSessionCreateManyInput = {
|
|
250
|
+
sessionId: string;
|
|
251
|
+
userId: string;
|
|
252
|
+
secretHash: string;
|
|
253
|
+
createdAt?: Date | string;
|
|
254
|
+
lastSeenAt?: Date | string;
|
|
255
|
+
expiresAt: Date | string;
|
|
256
|
+
revokedAt?: Date | string | null;
|
|
257
|
+
};
|
|
258
|
+
export type AuthSessionUpdateManyMutationInput = {
|
|
259
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
260
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
261
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
262
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
263
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
264
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
265
|
+
};
|
|
266
|
+
export type AuthSessionUncheckedUpdateManyInput = {
|
|
267
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
268
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
269
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
270
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
271
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
272
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
273
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
274
|
+
};
|
|
275
|
+
export type AuthSessionListRelationFilter = {
|
|
276
|
+
every?: Prisma.AuthSessionWhereInput;
|
|
277
|
+
some?: Prisma.AuthSessionWhereInput;
|
|
278
|
+
none?: Prisma.AuthSessionWhereInput;
|
|
279
|
+
};
|
|
280
|
+
export type AuthSessionOrderByRelationAggregateInput = {
|
|
281
|
+
_count?: Prisma.SortOrder;
|
|
282
|
+
};
|
|
283
|
+
export type AuthSessionCountOrderByAggregateInput = {
|
|
284
|
+
sessionId?: Prisma.SortOrder;
|
|
285
|
+
userId?: Prisma.SortOrder;
|
|
286
|
+
secretHash?: Prisma.SortOrder;
|
|
287
|
+
createdAt?: Prisma.SortOrder;
|
|
288
|
+
lastSeenAt?: Prisma.SortOrder;
|
|
289
|
+
expiresAt?: Prisma.SortOrder;
|
|
290
|
+
revokedAt?: Prisma.SortOrder;
|
|
291
|
+
};
|
|
292
|
+
export type AuthSessionMaxOrderByAggregateInput = {
|
|
293
|
+
sessionId?: Prisma.SortOrder;
|
|
294
|
+
userId?: Prisma.SortOrder;
|
|
295
|
+
secretHash?: Prisma.SortOrder;
|
|
296
|
+
createdAt?: Prisma.SortOrder;
|
|
297
|
+
lastSeenAt?: Prisma.SortOrder;
|
|
298
|
+
expiresAt?: Prisma.SortOrder;
|
|
299
|
+
revokedAt?: Prisma.SortOrder;
|
|
300
|
+
};
|
|
301
|
+
export type AuthSessionMinOrderByAggregateInput = {
|
|
302
|
+
sessionId?: Prisma.SortOrder;
|
|
303
|
+
userId?: Prisma.SortOrder;
|
|
304
|
+
secretHash?: Prisma.SortOrder;
|
|
305
|
+
createdAt?: Prisma.SortOrder;
|
|
306
|
+
lastSeenAt?: Prisma.SortOrder;
|
|
307
|
+
expiresAt?: Prisma.SortOrder;
|
|
308
|
+
revokedAt?: Prisma.SortOrder;
|
|
309
|
+
};
|
|
310
|
+
export type AuthSessionNullableScalarRelationFilter = {
|
|
311
|
+
is?: Prisma.AuthSessionWhereInput | null;
|
|
312
|
+
isNot?: Prisma.AuthSessionWhereInput | null;
|
|
313
|
+
};
|
|
314
|
+
export type AuthSessionCreateNestedManyWithoutUserInput = {
|
|
315
|
+
create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
|
|
316
|
+
connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
|
|
317
|
+
createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
|
|
318
|
+
connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
319
|
+
};
|
|
320
|
+
export type AuthSessionUncheckedCreateNestedManyWithoutUserInput = {
|
|
321
|
+
create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
|
|
322
|
+
connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
|
|
323
|
+
createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
|
|
324
|
+
connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
325
|
+
};
|
|
326
|
+
export type AuthSessionUpdateManyWithoutUserNestedInput = {
|
|
327
|
+
create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
|
|
328
|
+
connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
|
|
329
|
+
upsert?: Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput[];
|
|
330
|
+
createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
|
|
331
|
+
set?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
332
|
+
disconnect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
333
|
+
delete?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
334
|
+
connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
335
|
+
update?: Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput[];
|
|
336
|
+
updateMany?: Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput | Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput[];
|
|
337
|
+
deleteMany?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
|
|
338
|
+
};
|
|
339
|
+
export type AuthSessionUncheckedUpdateManyWithoutUserNestedInput = {
|
|
340
|
+
create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput> | Prisma.AuthSessionCreateWithoutUserInput[] | Prisma.AuthSessionUncheckedCreateWithoutUserInput[];
|
|
341
|
+
connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutUserInput | Prisma.AuthSessionCreateOrConnectWithoutUserInput[];
|
|
342
|
+
upsert?: Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpsertWithWhereUniqueWithoutUserInput[];
|
|
343
|
+
createMany?: Prisma.AuthSessionCreateManyUserInputEnvelope;
|
|
344
|
+
set?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
345
|
+
disconnect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
346
|
+
delete?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
347
|
+
connect?: Prisma.AuthSessionWhereUniqueInput | Prisma.AuthSessionWhereUniqueInput[];
|
|
348
|
+
update?: Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput | Prisma.AuthSessionUpdateWithWhereUniqueWithoutUserInput[];
|
|
349
|
+
updateMany?: Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput | Prisma.AuthSessionUpdateManyWithWhereWithoutUserInput[];
|
|
350
|
+
deleteMany?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
|
|
351
|
+
};
|
|
352
|
+
export type AuthSessionCreateNestedOneWithoutChallengesInput = {
|
|
353
|
+
create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
|
|
354
|
+
connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutChallengesInput;
|
|
355
|
+
connect?: Prisma.AuthSessionWhereUniqueInput;
|
|
356
|
+
};
|
|
357
|
+
export type AuthSessionUpdateOneWithoutChallengesNestedInput = {
|
|
358
|
+
create?: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
|
|
359
|
+
connectOrCreate?: Prisma.AuthSessionCreateOrConnectWithoutChallengesInput;
|
|
360
|
+
upsert?: Prisma.AuthSessionUpsertWithoutChallengesInput;
|
|
361
|
+
disconnect?: Prisma.AuthSessionWhereInput | boolean;
|
|
362
|
+
delete?: Prisma.AuthSessionWhereInput | boolean;
|
|
363
|
+
connect?: Prisma.AuthSessionWhereUniqueInput;
|
|
364
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.AuthSessionUpdateToOneWithWhereWithoutChallengesInput, Prisma.AuthSessionUpdateWithoutChallengesInput>, Prisma.AuthSessionUncheckedUpdateWithoutChallengesInput>;
|
|
365
|
+
};
|
|
366
|
+
export type AuthSessionCreateWithoutUserInput = {
|
|
367
|
+
sessionId: string;
|
|
368
|
+
secretHash: string;
|
|
369
|
+
createdAt?: Date | string;
|
|
370
|
+
lastSeenAt?: Date | string;
|
|
371
|
+
expiresAt: Date | string;
|
|
372
|
+
revokedAt?: Date | string | null;
|
|
373
|
+
challenges?: Prisma.AuthFormChallengeCreateNestedManyWithoutSessionInput;
|
|
374
|
+
};
|
|
375
|
+
export type AuthSessionUncheckedCreateWithoutUserInput = {
|
|
376
|
+
sessionId: string;
|
|
377
|
+
secretHash: string;
|
|
378
|
+
createdAt?: Date | string;
|
|
379
|
+
lastSeenAt?: Date | string;
|
|
380
|
+
expiresAt: Date | string;
|
|
381
|
+
revokedAt?: Date | string | null;
|
|
382
|
+
challenges?: Prisma.AuthFormChallengeUncheckedCreateNestedManyWithoutSessionInput;
|
|
383
|
+
};
|
|
384
|
+
export type AuthSessionCreateOrConnectWithoutUserInput = {
|
|
385
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
386
|
+
create: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput>;
|
|
387
|
+
};
|
|
388
|
+
export type AuthSessionCreateManyUserInputEnvelope = {
|
|
389
|
+
data: Prisma.AuthSessionCreateManyUserInput | Prisma.AuthSessionCreateManyUserInput[];
|
|
390
|
+
skipDuplicates?: boolean;
|
|
391
|
+
};
|
|
392
|
+
export type AuthSessionUpsertWithWhereUniqueWithoutUserInput = {
|
|
393
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
394
|
+
update: Prisma.XOR<Prisma.AuthSessionUpdateWithoutUserInput, Prisma.AuthSessionUncheckedUpdateWithoutUserInput>;
|
|
395
|
+
create: Prisma.XOR<Prisma.AuthSessionCreateWithoutUserInput, Prisma.AuthSessionUncheckedCreateWithoutUserInput>;
|
|
396
|
+
};
|
|
397
|
+
export type AuthSessionUpdateWithWhereUniqueWithoutUserInput = {
|
|
398
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
399
|
+
data: Prisma.XOR<Prisma.AuthSessionUpdateWithoutUserInput, Prisma.AuthSessionUncheckedUpdateWithoutUserInput>;
|
|
400
|
+
};
|
|
401
|
+
export type AuthSessionUpdateManyWithWhereWithoutUserInput = {
|
|
402
|
+
where: Prisma.AuthSessionScalarWhereInput;
|
|
403
|
+
data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyWithoutUserInput>;
|
|
404
|
+
};
|
|
405
|
+
export type AuthSessionScalarWhereInput = {
|
|
406
|
+
AND?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
|
|
407
|
+
OR?: Prisma.AuthSessionScalarWhereInput[];
|
|
408
|
+
NOT?: Prisma.AuthSessionScalarWhereInput | Prisma.AuthSessionScalarWhereInput[];
|
|
409
|
+
sessionId?: Prisma.StringFilter<"AuthSession"> | string;
|
|
410
|
+
userId?: Prisma.StringFilter<"AuthSession"> | string;
|
|
411
|
+
secretHash?: Prisma.StringFilter<"AuthSession"> | string;
|
|
412
|
+
createdAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
413
|
+
lastSeenAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
414
|
+
expiresAt?: Prisma.DateTimeFilter<"AuthSession"> | Date | string;
|
|
415
|
+
revokedAt?: Prisma.DateTimeNullableFilter<"AuthSession"> | Date | string | null;
|
|
416
|
+
};
|
|
417
|
+
export type AuthSessionCreateWithoutChallengesInput = {
|
|
418
|
+
sessionId: string;
|
|
419
|
+
secretHash: string;
|
|
420
|
+
createdAt?: Date | string;
|
|
421
|
+
lastSeenAt?: Date | string;
|
|
422
|
+
expiresAt: Date | string;
|
|
423
|
+
revokedAt?: Date | string | null;
|
|
424
|
+
user: Prisma.AuthUserCreateNestedOneWithoutSessionsInput;
|
|
425
|
+
};
|
|
426
|
+
export type AuthSessionUncheckedCreateWithoutChallengesInput = {
|
|
427
|
+
sessionId: string;
|
|
428
|
+
userId: string;
|
|
429
|
+
secretHash: string;
|
|
430
|
+
createdAt?: Date | string;
|
|
431
|
+
lastSeenAt?: Date | string;
|
|
432
|
+
expiresAt: Date | string;
|
|
433
|
+
revokedAt?: Date | string | null;
|
|
434
|
+
};
|
|
435
|
+
export type AuthSessionCreateOrConnectWithoutChallengesInput = {
|
|
436
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
437
|
+
create: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
|
|
438
|
+
};
|
|
439
|
+
export type AuthSessionUpsertWithoutChallengesInput = {
|
|
440
|
+
update: Prisma.XOR<Prisma.AuthSessionUpdateWithoutChallengesInput, Prisma.AuthSessionUncheckedUpdateWithoutChallengesInput>;
|
|
441
|
+
create: Prisma.XOR<Prisma.AuthSessionCreateWithoutChallengesInput, Prisma.AuthSessionUncheckedCreateWithoutChallengesInput>;
|
|
442
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
443
|
+
};
|
|
444
|
+
export type AuthSessionUpdateToOneWithWhereWithoutChallengesInput = {
|
|
445
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
446
|
+
data: Prisma.XOR<Prisma.AuthSessionUpdateWithoutChallengesInput, Prisma.AuthSessionUncheckedUpdateWithoutChallengesInput>;
|
|
447
|
+
};
|
|
448
|
+
export type AuthSessionUpdateWithoutChallengesInput = {
|
|
449
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
450
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
451
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
452
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
453
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
454
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
455
|
+
user?: Prisma.AuthUserUpdateOneRequiredWithoutSessionsNestedInput;
|
|
456
|
+
};
|
|
457
|
+
export type AuthSessionUncheckedUpdateWithoutChallengesInput = {
|
|
458
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
459
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
460
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
461
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
462
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
463
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
464
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
465
|
+
};
|
|
466
|
+
export type AuthSessionCreateManyUserInput = {
|
|
467
|
+
sessionId: string;
|
|
468
|
+
secretHash: string;
|
|
469
|
+
createdAt?: Date | string;
|
|
470
|
+
lastSeenAt?: Date | string;
|
|
471
|
+
expiresAt: Date | string;
|
|
472
|
+
revokedAt?: Date | string | null;
|
|
473
|
+
};
|
|
474
|
+
export type AuthSessionUpdateWithoutUserInput = {
|
|
475
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
476
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
477
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
478
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
479
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
480
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
481
|
+
challenges?: Prisma.AuthFormChallengeUpdateManyWithoutSessionNestedInput;
|
|
482
|
+
};
|
|
483
|
+
export type AuthSessionUncheckedUpdateWithoutUserInput = {
|
|
484
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
485
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
486
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
487
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
488
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
489
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
490
|
+
challenges?: Prisma.AuthFormChallengeUncheckedUpdateManyWithoutSessionNestedInput;
|
|
491
|
+
};
|
|
492
|
+
export type AuthSessionUncheckedUpdateManyWithoutUserInput = {
|
|
493
|
+
sessionId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
494
|
+
secretHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
495
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
496
|
+
lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
497
|
+
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
498
|
+
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
499
|
+
};
|
|
500
|
+
/**
|
|
501
|
+
* Count Type AuthSessionCountOutputType
|
|
502
|
+
*/
|
|
503
|
+
export type AuthSessionCountOutputType = {
|
|
504
|
+
challenges: number;
|
|
505
|
+
};
|
|
506
|
+
export type AuthSessionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
507
|
+
challenges?: boolean | AuthSessionCountOutputTypeCountChallengesArgs;
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* AuthSessionCountOutputType without action
|
|
511
|
+
*/
|
|
512
|
+
export type AuthSessionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
513
|
+
/**
|
|
514
|
+
* Select specific fields to fetch from the AuthSessionCountOutputType
|
|
515
|
+
*/
|
|
516
|
+
select?: Prisma.AuthSessionCountOutputTypeSelect<ExtArgs> | null;
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* AuthSessionCountOutputType without action
|
|
520
|
+
*/
|
|
521
|
+
export type AuthSessionCountOutputTypeCountChallengesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
522
|
+
where?: Prisma.AuthFormChallengeWhereInput;
|
|
523
|
+
};
|
|
524
|
+
export type AuthSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
525
|
+
sessionId?: boolean;
|
|
526
|
+
userId?: boolean;
|
|
527
|
+
secretHash?: boolean;
|
|
528
|
+
createdAt?: boolean;
|
|
529
|
+
lastSeenAt?: boolean;
|
|
530
|
+
expiresAt?: boolean;
|
|
531
|
+
revokedAt?: boolean;
|
|
532
|
+
user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
|
|
533
|
+
challenges?: boolean | Prisma.AuthSession$challengesArgs<ExtArgs>;
|
|
534
|
+
_count?: boolean | Prisma.AuthSessionCountOutputTypeDefaultArgs<ExtArgs>;
|
|
535
|
+
}, ExtArgs["result"]["authSession"]>;
|
|
536
|
+
export type AuthSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
537
|
+
sessionId?: boolean;
|
|
538
|
+
userId?: boolean;
|
|
539
|
+
secretHash?: boolean;
|
|
540
|
+
createdAt?: boolean;
|
|
541
|
+
lastSeenAt?: boolean;
|
|
542
|
+
expiresAt?: boolean;
|
|
543
|
+
revokedAt?: boolean;
|
|
544
|
+
user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
|
|
545
|
+
}, ExtArgs["result"]["authSession"]>;
|
|
546
|
+
export type AuthSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
547
|
+
sessionId?: boolean;
|
|
548
|
+
userId?: boolean;
|
|
549
|
+
secretHash?: boolean;
|
|
550
|
+
createdAt?: boolean;
|
|
551
|
+
lastSeenAt?: boolean;
|
|
552
|
+
expiresAt?: boolean;
|
|
553
|
+
revokedAt?: boolean;
|
|
554
|
+
user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
|
|
555
|
+
}, ExtArgs["result"]["authSession"]>;
|
|
556
|
+
export type AuthSessionSelectScalar = {
|
|
557
|
+
sessionId?: boolean;
|
|
558
|
+
userId?: boolean;
|
|
559
|
+
secretHash?: boolean;
|
|
560
|
+
createdAt?: boolean;
|
|
561
|
+
lastSeenAt?: boolean;
|
|
562
|
+
expiresAt?: boolean;
|
|
563
|
+
revokedAt?: boolean;
|
|
564
|
+
};
|
|
565
|
+
export type AuthSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"sessionId" | "userId" | "secretHash" | "createdAt" | "lastSeenAt" | "expiresAt" | "revokedAt", ExtArgs["result"]["authSession"]>;
|
|
566
|
+
export type AuthSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
567
|
+
user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
|
|
568
|
+
challenges?: boolean | Prisma.AuthSession$challengesArgs<ExtArgs>;
|
|
569
|
+
_count?: boolean | Prisma.AuthSessionCountOutputTypeDefaultArgs<ExtArgs>;
|
|
570
|
+
};
|
|
571
|
+
export type AuthSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
572
|
+
user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
|
|
573
|
+
};
|
|
574
|
+
export type AuthSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
575
|
+
user?: boolean | Prisma.AuthUserDefaultArgs<ExtArgs>;
|
|
576
|
+
};
|
|
577
|
+
export type $AuthSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
578
|
+
name: "AuthSession";
|
|
579
|
+
objects: {
|
|
580
|
+
user: Prisma.$AuthUserPayload<ExtArgs>;
|
|
581
|
+
challenges: Prisma.$AuthFormChallengePayload<ExtArgs>[];
|
|
582
|
+
};
|
|
583
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
584
|
+
sessionId: string;
|
|
585
|
+
userId: string;
|
|
586
|
+
secretHash: string;
|
|
587
|
+
createdAt: Date;
|
|
588
|
+
lastSeenAt: Date;
|
|
589
|
+
expiresAt: Date;
|
|
590
|
+
revokedAt: Date | null;
|
|
591
|
+
}, ExtArgs["result"]["authSession"]>;
|
|
592
|
+
composites: {};
|
|
593
|
+
};
|
|
594
|
+
export type AuthSessionGetPayload<S extends boolean | null | undefined | AuthSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload, S>;
|
|
595
|
+
export type AuthSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AuthSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
596
|
+
select?: AuthSessionCountAggregateInputType | true;
|
|
597
|
+
};
|
|
598
|
+
export interface AuthSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
599
|
+
[K: symbol]: {
|
|
600
|
+
types: Prisma.TypeMap<ExtArgs>['model']['AuthSession'];
|
|
601
|
+
meta: {
|
|
602
|
+
name: 'AuthSession';
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
/**
|
|
606
|
+
* Find zero or one AuthSession that matches the filter.
|
|
607
|
+
* @param {AuthSessionFindUniqueArgs} args - Arguments to find a AuthSession
|
|
608
|
+
* @example
|
|
609
|
+
* // Get one AuthSession
|
|
610
|
+
* const authSession = await prisma.authSession.findUnique({
|
|
611
|
+
* where: {
|
|
612
|
+
* // ... provide filter here
|
|
613
|
+
* }
|
|
614
|
+
* })
|
|
615
|
+
*/
|
|
616
|
+
findUnique<T extends AuthSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, AuthSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
617
|
+
/**
|
|
618
|
+
* Find one AuthSession that matches the filter or throw an error with `error.code='P2025'`
|
|
619
|
+
* if no matches were found.
|
|
620
|
+
* @param {AuthSessionFindUniqueOrThrowArgs} args - Arguments to find a AuthSession
|
|
621
|
+
* @example
|
|
622
|
+
* // Get one AuthSession
|
|
623
|
+
* const authSession = await prisma.authSession.findUniqueOrThrow({
|
|
624
|
+
* where: {
|
|
625
|
+
* // ... provide filter here
|
|
626
|
+
* }
|
|
627
|
+
* })
|
|
628
|
+
*/
|
|
629
|
+
findUniqueOrThrow<T extends AuthSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuthSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
630
|
+
/**
|
|
631
|
+
* Find the first AuthSession that matches the filter.
|
|
632
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
633
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
634
|
+
* @param {AuthSessionFindFirstArgs} args - Arguments to find a AuthSession
|
|
635
|
+
* @example
|
|
636
|
+
* // Get one AuthSession
|
|
637
|
+
* const authSession = await prisma.authSession.findFirst({
|
|
638
|
+
* where: {
|
|
639
|
+
* // ... provide filter here
|
|
640
|
+
* }
|
|
641
|
+
* })
|
|
642
|
+
*/
|
|
643
|
+
findFirst<T extends AuthSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, AuthSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
644
|
+
/**
|
|
645
|
+
* Find the first AuthSession that matches the filter or
|
|
646
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
647
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
648
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
649
|
+
* @param {AuthSessionFindFirstOrThrowArgs} args - Arguments to find a AuthSession
|
|
650
|
+
* @example
|
|
651
|
+
* // Get one AuthSession
|
|
652
|
+
* const authSession = await prisma.authSession.findFirstOrThrow({
|
|
653
|
+
* where: {
|
|
654
|
+
* // ... provide filter here
|
|
655
|
+
* }
|
|
656
|
+
* })
|
|
657
|
+
*/
|
|
658
|
+
findFirstOrThrow<T extends AuthSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuthSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
659
|
+
/**
|
|
660
|
+
* Find zero or more AuthSessions that matches the filter.
|
|
661
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
662
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
663
|
+
* @param {AuthSessionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
664
|
+
* @example
|
|
665
|
+
* // Get all AuthSessions
|
|
666
|
+
* const authSessions = await prisma.authSession.findMany()
|
|
667
|
+
*
|
|
668
|
+
* // Get first 10 AuthSessions
|
|
669
|
+
* const authSessions = await prisma.authSession.findMany({ take: 10 })
|
|
670
|
+
*
|
|
671
|
+
* // Only select the `sessionId`
|
|
672
|
+
* const authSessionWithSessionIdOnly = await prisma.authSession.findMany({ select: { sessionId: true } })
|
|
673
|
+
*
|
|
674
|
+
*/
|
|
675
|
+
findMany<T extends AuthSessionFindManyArgs>(args?: Prisma.SelectSubset<T, AuthSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
676
|
+
/**
|
|
677
|
+
* Create a AuthSession.
|
|
678
|
+
* @param {AuthSessionCreateArgs} args - Arguments to create a AuthSession.
|
|
679
|
+
* @example
|
|
680
|
+
* // Create one AuthSession
|
|
681
|
+
* const AuthSession = await prisma.authSession.create({
|
|
682
|
+
* data: {
|
|
683
|
+
* // ... data to create a AuthSession
|
|
684
|
+
* }
|
|
685
|
+
* })
|
|
686
|
+
*
|
|
687
|
+
*/
|
|
688
|
+
create<T extends AuthSessionCreateArgs>(args: Prisma.SelectSubset<T, AuthSessionCreateArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
689
|
+
/**
|
|
690
|
+
* Create many AuthSessions.
|
|
691
|
+
* @param {AuthSessionCreateManyArgs} args - Arguments to create many AuthSessions.
|
|
692
|
+
* @example
|
|
693
|
+
* // Create many AuthSessions
|
|
694
|
+
* const authSession = await prisma.authSession.createMany({
|
|
695
|
+
* data: [
|
|
696
|
+
* // ... provide data here
|
|
697
|
+
* ]
|
|
698
|
+
* })
|
|
699
|
+
*
|
|
700
|
+
*/
|
|
701
|
+
createMany<T extends AuthSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, AuthSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
702
|
+
/**
|
|
703
|
+
* Create many AuthSessions and returns the data saved in the database.
|
|
704
|
+
* @param {AuthSessionCreateManyAndReturnArgs} args - Arguments to create many AuthSessions.
|
|
705
|
+
* @example
|
|
706
|
+
* // Create many AuthSessions
|
|
707
|
+
* const authSession = await prisma.authSession.createManyAndReturn({
|
|
708
|
+
* data: [
|
|
709
|
+
* // ... provide data here
|
|
710
|
+
* ]
|
|
711
|
+
* })
|
|
712
|
+
*
|
|
713
|
+
* // Create many AuthSessions and only return the `sessionId`
|
|
714
|
+
* const authSessionWithSessionIdOnly = await prisma.authSession.createManyAndReturn({
|
|
715
|
+
* select: { sessionId: true },
|
|
716
|
+
* data: [
|
|
717
|
+
* // ... provide data here
|
|
718
|
+
* ]
|
|
719
|
+
* })
|
|
720
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
721
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
722
|
+
*
|
|
723
|
+
*/
|
|
724
|
+
createManyAndReturn<T extends AuthSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuthSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
725
|
+
/**
|
|
726
|
+
* Delete a AuthSession.
|
|
727
|
+
* @param {AuthSessionDeleteArgs} args - Arguments to delete one AuthSession.
|
|
728
|
+
* @example
|
|
729
|
+
* // Delete one AuthSession
|
|
730
|
+
* const AuthSession = await prisma.authSession.delete({
|
|
731
|
+
* where: {
|
|
732
|
+
* // ... filter to delete one AuthSession
|
|
733
|
+
* }
|
|
734
|
+
* })
|
|
735
|
+
*
|
|
736
|
+
*/
|
|
737
|
+
delete<T extends AuthSessionDeleteArgs>(args: Prisma.SelectSubset<T, AuthSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
738
|
+
/**
|
|
739
|
+
* Update one AuthSession.
|
|
740
|
+
* @param {AuthSessionUpdateArgs} args - Arguments to update one AuthSession.
|
|
741
|
+
* @example
|
|
742
|
+
* // Update one AuthSession
|
|
743
|
+
* const authSession = await prisma.authSession.update({
|
|
744
|
+
* where: {
|
|
745
|
+
* // ... provide filter here
|
|
746
|
+
* },
|
|
747
|
+
* data: {
|
|
748
|
+
* // ... provide data here
|
|
749
|
+
* }
|
|
750
|
+
* })
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
update<T extends AuthSessionUpdateArgs>(args: Prisma.SelectSubset<T, AuthSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
754
|
+
/**
|
|
755
|
+
* Delete zero or more AuthSessions.
|
|
756
|
+
* @param {AuthSessionDeleteManyArgs} args - Arguments to filter AuthSessions to delete.
|
|
757
|
+
* @example
|
|
758
|
+
* // Delete a few AuthSessions
|
|
759
|
+
* const { count } = await prisma.authSession.deleteMany({
|
|
760
|
+
* where: {
|
|
761
|
+
* // ... provide filter here
|
|
762
|
+
* }
|
|
763
|
+
* })
|
|
764
|
+
*
|
|
765
|
+
*/
|
|
766
|
+
deleteMany<T extends AuthSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuthSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
767
|
+
/**
|
|
768
|
+
* Update zero or more AuthSessions.
|
|
769
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
770
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
771
|
+
* @param {AuthSessionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
772
|
+
* @example
|
|
773
|
+
* // Update many AuthSessions
|
|
774
|
+
* const authSession = await prisma.authSession.updateMany({
|
|
775
|
+
* where: {
|
|
776
|
+
* // ... provide filter here
|
|
777
|
+
* },
|
|
778
|
+
* data: {
|
|
779
|
+
* // ... provide data here
|
|
780
|
+
* }
|
|
781
|
+
* })
|
|
782
|
+
*
|
|
783
|
+
*/
|
|
784
|
+
updateMany<T extends AuthSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, AuthSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
785
|
+
/**
|
|
786
|
+
* Update zero or more AuthSessions and returns the data updated in the database.
|
|
787
|
+
* @param {AuthSessionUpdateManyAndReturnArgs} args - Arguments to update many AuthSessions.
|
|
788
|
+
* @example
|
|
789
|
+
* // Update many AuthSessions
|
|
790
|
+
* const authSession = await prisma.authSession.updateManyAndReturn({
|
|
791
|
+
* where: {
|
|
792
|
+
* // ... provide filter here
|
|
793
|
+
* },
|
|
794
|
+
* data: [
|
|
795
|
+
* // ... provide data here
|
|
796
|
+
* ]
|
|
797
|
+
* })
|
|
798
|
+
*
|
|
799
|
+
* // Update zero or more AuthSessions and only return the `sessionId`
|
|
800
|
+
* const authSessionWithSessionIdOnly = await prisma.authSession.updateManyAndReturn({
|
|
801
|
+
* select: { sessionId: true },
|
|
802
|
+
* where: {
|
|
803
|
+
* // ... provide filter here
|
|
804
|
+
* },
|
|
805
|
+
* data: [
|
|
806
|
+
* // ... provide data here
|
|
807
|
+
* ]
|
|
808
|
+
* })
|
|
809
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
810
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
811
|
+
*
|
|
812
|
+
*/
|
|
813
|
+
updateManyAndReturn<T extends AuthSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuthSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
814
|
+
/**
|
|
815
|
+
* Create or update one AuthSession.
|
|
816
|
+
* @param {AuthSessionUpsertArgs} args - Arguments to update or create a AuthSession.
|
|
817
|
+
* @example
|
|
818
|
+
* // Update or create a AuthSession
|
|
819
|
+
* const authSession = await prisma.authSession.upsert({
|
|
820
|
+
* create: {
|
|
821
|
+
* // ... data to create a AuthSession
|
|
822
|
+
* },
|
|
823
|
+
* update: {
|
|
824
|
+
* // ... in case it already exists, update
|
|
825
|
+
* },
|
|
826
|
+
* where: {
|
|
827
|
+
* // ... the filter for the AuthSession we want to update
|
|
828
|
+
* }
|
|
829
|
+
* })
|
|
830
|
+
*/
|
|
831
|
+
upsert<T extends AuthSessionUpsertArgs>(args: Prisma.SelectSubset<T, AuthSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__AuthSessionClient<runtime.Types.Result.GetResult<Prisma.$AuthSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
832
|
+
/**
|
|
833
|
+
* Count the number of AuthSessions.
|
|
834
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
835
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
836
|
+
* @param {AuthSessionCountArgs} args - Arguments to filter AuthSessions to count.
|
|
837
|
+
* @example
|
|
838
|
+
* // Count the number of AuthSessions
|
|
839
|
+
* const count = await prisma.authSession.count({
|
|
840
|
+
* where: {
|
|
841
|
+
* // ... the filter for the AuthSessions we want to count
|
|
842
|
+
* }
|
|
843
|
+
* })
|
|
844
|
+
**/
|
|
845
|
+
count<T extends AuthSessionCountArgs>(args?: Prisma.Subset<T, AuthSessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AuthSessionCountAggregateOutputType> : number>;
|
|
846
|
+
/**
|
|
847
|
+
* Allows you to perform aggregations operations on a AuthSession.
|
|
848
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
849
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
850
|
+
* @param {AuthSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
851
|
+
* @example
|
|
852
|
+
* // Ordered by age ascending
|
|
853
|
+
* // Where email contains prisma.io
|
|
854
|
+
* // Limited to the 10 users
|
|
855
|
+
* const aggregations = await prisma.user.aggregate({
|
|
856
|
+
* _avg: {
|
|
857
|
+
* age: true,
|
|
858
|
+
* },
|
|
859
|
+
* where: {
|
|
860
|
+
* email: {
|
|
861
|
+
* contains: "prisma.io",
|
|
862
|
+
* },
|
|
863
|
+
* },
|
|
864
|
+
* orderBy: {
|
|
865
|
+
* age: "asc",
|
|
866
|
+
* },
|
|
867
|
+
* take: 10,
|
|
868
|
+
* })
|
|
869
|
+
**/
|
|
870
|
+
aggregate<T extends AuthSessionAggregateArgs>(args: Prisma.Subset<T, AuthSessionAggregateArgs>): Prisma.PrismaPromise<GetAuthSessionAggregateType<T>>;
|
|
871
|
+
/**
|
|
872
|
+
* Group by AuthSession.
|
|
873
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
874
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
875
|
+
* @param {AuthSessionGroupByArgs} args - Group by arguments.
|
|
876
|
+
* @example
|
|
877
|
+
* // Group by city, order by createdAt, get count
|
|
878
|
+
* const result = await prisma.user.groupBy({
|
|
879
|
+
* by: ['city', 'createdAt'],
|
|
880
|
+
* orderBy: {
|
|
881
|
+
* createdAt: true
|
|
882
|
+
* },
|
|
883
|
+
* _count: {
|
|
884
|
+
* _all: true
|
|
885
|
+
* },
|
|
886
|
+
* })
|
|
887
|
+
*
|
|
888
|
+
**/
|
|
889
|
+
groupBy<T extends AuthSessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
890
|
+
orderBy: AuthSessionGroupByArgs['orderBy'];
|
|
891
|
+
} : {
|
|
892
|
+
orderBy?: AuthSessionGroupByArgs['orderBy'];
|
|
893
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
894
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
895
|
+
Error,
|
|
896
|
+
'Field ',
|
|
897
|
+
P,
|
|
898
|
+
` in "having" needs to be provided in "by"`
|
|
899
|
+
];
|
|
900
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
901
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
902
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
903
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
904
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
905
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
906
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, AuthSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuthSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
907
|
+
/**
|
|
908
|
+
* Fields of the AuthSession model
|
|
909
|
+
*/
|
|
910
|
+
readonly fields: AuthSessionFieldRefs;
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* The delegate class that acts as a "Promise-like" for AuthSession.
|
|
914
|
+
* Why is this prefixed with `Prisma__`?
|
|
915
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
916
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
917
|
+
*/
|
|
918
|
+
export interface Prisma__AuthSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
919
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
920
|
+
user<T extends Prisma.AuthUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuthUserDefaultArgs<ExtArgs>>): Prisma.Prisma__AuthUserClient<runtime.Types.Result.GetResult<Prisma.$AuthUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
921
|
+
challenges<T extends Prisma.AuthSession$challengesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuthSession$challengesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuthFormChallengePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
|
|
922
|
+
/**
|
|
923
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
924
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
925
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
926
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
927
|
+
*/
|
|
928
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
|
|
929
|
+
/**
|
|
930
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
931
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
932
|
+
* @returns A Promise for the completion of the callback.
|
|
933
|
+
*/
|
|
934
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
935
|
+
/**
|
|
936
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
937
|
+
* resolved value cannot be modified from the callback.
|
|
938
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
939
|
+
* @returns A Promise for the completion of the callback.
|
|
940
|
+
*/
|
|
941
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Fields of the AuthSession model
|
|
945
|
+
*/
|
|
946
|
+
export interface AuthSessionFieldRefs {
|
|
947
|
+
readonly sessionId: Prisma.FieldRef<"AuthSession", 'String'>;
|
|
948
|
+
readonly userId: Prisma.FieldRef<"AuthSession", 'String'>;
|
|
949
|
+
readonly secretHash: Prisma.FieldRef<"AuthSession", 'String'>;
|
|
950
|
+
readonly createdAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
|
|
951
|
+
readonly lastSeenAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
|
|
952
|
+
readonly expiresAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
|
|
953
|
+
readonly revokedAt: Prisma.FieldRef<"AuthSession", 'DateTime'>;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* AuthSession findUnique
|
|
957
|
+
*/
|
|
958
|
+
export type AuthSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
959
|
+
/**
|
|
960
|
+
* Select specific fields to fetch from the AuthSession
|
|
961
|
+
*/
|
|
962
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
963
|
+
/**
|
|
964
|
+
* Omit specific fields from the AuthSession
|
|
965
|
+
*/
|
|
966
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
967
|
+
/**
|
|
968
|
+
* Choose, which related nodes to fetch as well
|
|
969
|
+
*/
|
|
970
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
971
|
+
/**
|
|
972
|
+
* Filter, which AuthSession to fetch.
|
|
973
|
+
*/
|
|
974
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* AuthSession findUniqueOrThrow
|
|
978
|
+
*/
|
|
979
|
+
export type AuthSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
980
|
+
/**
|
|
981
|
+
* Select specific fields to fetch from the AuthSession
|
|
982
|
+
*/
|
|
983
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
984
|
+
/**
|
|
985
|
+
* Omit specific fields from the AuthSession
|
|
986
|
+
*/
|
|
987
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
988
|
+
/**
|
|
989
|
+
* Choose, which related nodes to fetch as well
|
|
990
|
+
*/
|
|
991
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
992
|
+
/**
|
|
993
|
+
* Filter, which AuthSession to fetch.
|
|
994
|
+
*/
|
|
995
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* AuthSession findFirst
|
|
999
|
+
*/
|
|
1000
|
+
export type AuthSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1001
|
+
/**
|
|
1002
|
+
* Select specific fields to fetch from the AuthSession
|
|
1003
|
+
*/
|
|
1004
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1005
|
+
/**
|
|
1006
|
+
* Omit specific fields from the AuthSession
|
|
1007
|
+
*/
|
|
1008
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1009
|
+
/**
|
|
1010
|
+
* Choose, which related nodes to fetch as well
|
|
1011
|
+
*/
|
|
1012
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1013
|
+
/**
|
|
1014
|
+
* Filter, which AuthSession to fetch.
|
|
1015
|
+
*/
|
|
1016
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
1017
|
+
/**
|
|
1018
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1019
|
+
*
|
|
1020
|
+
* Determine the order of AuthSessions to fetch.
|
|
1021
|
+
*/
|
|
1022
|
+
orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
|
|
1023
|
+
/**
|
|
1024
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1025
|
+
*
|
|
1026
|
+
* Sets the position for searching for AuthSessions.
|
|
1027
|
+
*/
|
|
1028
|
+
cursor?: Prisma.AuthSessionWhereUniqueInput;
|
|
1029
|
+
/**
|
|
1030
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1031
|
+
*
|
|
1032
|
+
* Take `±n` AuthSessions from the position of the cursor.
|
|
1033
|
+
*/
|
|
1034
|
+
take?: number;
|
|
1035
|
+
/**
|
|
1036
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1037
|
+
*
|
|
1038
|
+
* Skip the first `n` AuthSessions.
|
|
1039
|
+
*/
|
|
1040
|
+
skip?: number;
|
|
1041
|
+
/**
|
|
1042
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1043
|
+
*
|
|
1044
|
+
* Filter by unique combinations of AuthSessions.
|
|
1045
|
+
*/
|
|
1046
|
+
distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[];
|
|
1047
|
+
};
|
|
1048
|
+
/**
|
|
1049
|
+
* AuthSession findFirstOrThrow
|
|
1050
|
+
*/
|
|
1051
|
+
export type AuthSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1052
|
+
/**
|
|
1053
|
+
* Select specific fields to fetch from the AuthSession
|
|
1054
|
+
*/
|
|
1055
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1056
|
+
/**
|
|
1057
|
+
* Omit specific fields from the AuthSession
|
|
1058
|
+
*/
|
|
1059
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1060
|
+
/**
|
|
1061
|
+
* Choose, which related nodes to fetch as well
|
|
1062
|
+
*/
|
|
1063
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1064
|
+
/**
|
|
1065
|
+
* Filter, which AuthSession to fetch.
|
|
1066
|
+
*/
|
|
1067
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
1068
|
+
/**
|
|
1069
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1070
|
+
*
|
|
1071
|
+
* Determine the order of AuthSessions to fetch.
|
|
1072
|
+
*/
|
|
1073
|
+
orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
|
|
1074
|
+
/**
|
|
1075
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1076
|
+
*
|
|
1077
|
+
* Sets the position for searching for AuthSessions.
|
|
1078
|
+
*/
|
|
1079
|
+
cursor?: Prisma.AuthSessionWhereUniqueInput;
|
|
1080
|
+
/**
|
|
1081
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1082
|
+
*
|
|
1083
|
+
* Take `±n` AuthSessions from the position of the cursor.
|
|
1084
|
+
*/
|
|
1085
|
+
take?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1088
|
+
*
|
|
1089
|
+
* Skip the first `n` AuthSessions.
|
|
1090
|
+
*/
|
|
1091
|
+
skip?: number;
|
|
1092
|
+
/**
|
|
1093
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1094
|
+
*
|
|
1095
|
+
* Filter by unique combinations of AuthSessions.
|
|
1096
|
+
*/
|
|
1097
|
+
distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[];
|
|
1098
|
+
};
|
|
1099
|
+
/**
|
|
1100
|
+
* AuthSession findMany
|
|
1101
|
+
*/
|
|
1102
|
+
export type AuthSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1103
|
+
/**
|
|
1104
|
+
* Select specific fields to fetch from the AuthSession
|
|
1105
|
+
*/
|
|
1106
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Omit specific fields from the AuthSession
|
|
1109
|
+
*/
|
|
1110
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1111
|
+
/**
|
|
1112
|
+
* Choose, which related nodes to fetch as well
|
|
1113
|
+
*/
|
|
1114
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* Filter, which AuthSessions to fetch.
|
|
1117
|
+
*/
|
|
1118
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
1119
|
+
/**
|
|
1120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1121
|
+
*
|
|
1122
|
+
* Determine the order of AuthSessions to fetch.
|
|
1123
|
+
*/
|
|
1124
|
+
orderBy?: Prisma.AuthSessionOrderByWithRelationInput | Prisma.AuthSessionOrderByWithRelationInput[];
|
|
1125
|
+
/**
|
|
1126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1127
|
+
*
|
|
1128
|
+
* Sets the position for listing AuthSessions.
|
|
1129
|
+
*/
|
|
1130
|
+
cursor?: Prisma.AuthSessionWhereUniqueInput;
|
|
1131
|
+
/**
|
|
1132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1133
|
+
*
|
|
1134
|
+
* Take `±n` AuthSessions from the position of the cursor.
|
|
1135
|
+
*/
|
|
1136
|
+
take?: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1139
|
+
*
|
|
1140
|
+
* Skip the first `n` AuthSessions.
|
|
1141
|
+
*/
|
|
1142
|
+
skip?: number;
|
|
1143
|
+
/**
|
|
1144
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1145
|
+
*
|
|
1146
|
+
* Filter by unique combinations of AuthSessions.
|
|
1147
|
+
*/
|
|
1148
|
+
distinct?: Prisma.AuthSessionScalarFieldEnum | Prisma.AuthSessionScalarFieldEnum[];
|
|
1149
|
+
};
|
|
1150
|
+
/**
|
|
1151
|
+
* AuthSession create
|
|
1152
|
+
*/
|
|
1153
|
+
export type AuthSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1154
|
+
/**
|
|
1155
|
+
* Select specific fields to fetch from the AuthSession
|
|
1156
|
+
*/
|
|
1157
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1158
|
+
/**
|
|
1159
|
+
* Omit specific fields from the AuthSession
|
|
1160
|
+
*/
|
|
1161
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1162
|
+
/**
|
|
1163
|
+
* Choose, which related nodes to fetch as well
|
|
1164
|
+
*/
|
|
1165
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1166
|
+
/**
|
|
1167
|
+
* The data needed to create a AuthSession.
|
|
1168
|
+
*/
|
|
1169
|
+
data: Prisma.XOR<Prisma.AuthSessionCreateInput, Prisma.AuthSessionUncheckedCreateInput>;
|
|
1170
|
+
};
|
|
1171
|
+
/**
|
|
1172
|
+
* AuthSession createMany
|
|
1173
|
+
*/
|
|
1174
|
+
export type AuthSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1175
|
+
/**
|
|
1176
|
+
* The data used to create many AuthSessions.
|
|
1177
|
+
*/
|
|
1178
|
+
data: Prisma.AuthSessionCreateManyInput | Prisma.AuthSessionCreateManyInput[];
|
|
1179
|
+
skipDuplicates?: boolean;
|
|
1180
|
+
};
|
|
1181
|
+
/**
|
|
1182
|
+
* AuthSession createManyAndReturn
|
|
1183
|
+
*/
|
|
1184
|
+
export type AuthSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1185
|
+
/**
|
|
1186
|
+
* Select specific fields to fetch from the AuthSession
|
|
1187
|
+
*/
|
|
1188
|
+
select?: Prisma.AuthSessionSelectCreateManyAndReturn<ExtArgs> | null;
|
|
1189
|
+
/**
|
|
1190
|
+
* Omit specific fields from the AuthSession
|
|
1191
|
+
*/
|
|
1192
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1193
|
+
/**
|
|
1194
|
+
* The data used to create many AuthSessions.
|
|
1195
|
+
*/
|
|
1196
|
+
data: Prisma.AuthSessionCreateManyInput | Prisma.AuthSessionCreateManyInput[];
|
|
1197
|
+
skipDuplicates?: boolean;
|
|
1198
|
+
/**
|
|
1199
|
+
* Choose, which related nodes to fetch as well
|
|
1200
|
+
*/
|
|
1201
|
+
include?: Prisma.AuthSessionIncludeCreateManyAndReturn<ExtArgs> | null;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* AuthSession update
|
|
1205
|
+
*/
|
|
1206
|
+
export type AuthSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1207
|
+
/**
|
|
1208
|
+
* Select specific fields to fetch from the AuthSession
|
|
1209
|
+
*/
|
|
1210
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1211
|
+
/**
|
|
1212
|
+
* Omit specific fields from the AuthSession
|
|
1213
|
+
*/
|
|
1214
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1215
|
+
/**
|
|
1216
|
+
* Choose, which related nodes to fetch as well
|
|
1217
|
+
*/
|
|
1218
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* The data needed to update a AuthSession.
|
|
1221
|
+
*/
|
|
1222
|
+
data: Prisma.XOR<Prisma.AuthSessionUpdateInput, Prisma.AuthSessionUncheckedUpdateInput>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Choose, which AuthSession to update.
|
|
1225
|
+
*/
|
|
1226
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
1227
|
+
};
|
|
1228
|
+
/**
|
|
1229
|
+
* AuthSession updateMany
|
|
1230
|
+
*/
|
|
1231
|
+
export type AuthSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1232
|
+
/**
|
|
1233
|
+
* The data used to update AuthSessions.
|
|
1234
|
+
*/
|
|
1235
|
+
data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyInput>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Filter which AuthSessions to update
|
|
1238
|
+
*/
|
|
1239
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
1240
|
+
/**
|
|
1241
|
+
* Limit how many AuthSessions to update.
|
|
1242
|
+
*/
|
|
1243
|
+
limit?: number;
|
|
1244
|
+
};
|
|
1245
|
+
/**
|
|
1246
|
+
* AuthSession updateManyAndReturn
|
|
1247
|
+
*/
|
|
1248
|
+
export type AuthSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1249
|
+
/**
|
|
1250
|
+
* Select specific fields to fetch from the AuthSession
|
|
1251
|
+
*/
|
|
1252
|
+
select?: Prisma.AuthSessionSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
1253
|
+
/**
|
|
1254
|
+
* Omit specific fields from the AuthSession
|
|
1255
|
+
*/
|
|
1256
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1257
|
+
/**
|
|
1258
|
+
* The data used to update AuthSessions.
|
|
1259
|
+
*/
|
|
1260
|
+
data: Prisma.XOR<Prisma.AuthSessionUpdateManyMutationInput, Prisma.AuthSessionUncheckedUpdateManyInput>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Filter which AuthSessions to update
|
|
1263
|
+
*/
|
|
1264
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
1265
|
+
/**
|
|
1266
|
+
* Limit how many AuthSessions to update.
|
|
1267
|
+
*/
|
|
1268
|
+
limit?: number;
|
|
1269
|
+
/**
|
|
1270
|
+
* Choose, which related nodes to fetch as well
|
|
1271
|
+
*/
|
|
1272
|
+
include?: Prisma.AuthSessionIncludeUpdateManyAndReturn<ExtArgs> | null;
|
|
1273
|
+
};
|
|
1274
|
+
/**
|
|
1275
|
+
* AuthSession upsert
|
|
1276
|
+
*/
|
|
1277
|
+
export type AuthSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1278
|
+
/**
|
|
1279
|
+
* Select specific fields to fetch from the AuthSession
|
|
1280
|
+
*/
|
|
1281
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1282
|
+
/**
|
|
1283
|
+
* Omit specific fields from the AuthSession
|
|
1284
|
+
*/
|
|
1285
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* Choose, which related nodes to fetch as well
|
|
1288
|
+
*/
|
|
1289
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1290
|
+
/**
|
|
1291
|
+
* The filter to search for the AuthSession to update in case it exists.
|
|
1292
|
+
*/
|
|
1293
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
1294
|
+
/**
|
|
1295
|
+
* In case the AuthSession found by the `where` argument doesn't exist, create a new AuthSession with this data.
|
|
1296
|
+
*/
|
|
1297
|
+
create: Prisma.XOR<Prisma.AuthSessionCreateInput, Prisma.AuthSessionUncheckedCreateInput>;
|
|
1298
|
+
/**
|
|
1299
|
+
* In case the AuthSession was found with the provided `where` argument, update it with this data.
|
|
1300
|
+
*/
|
|
1301
|
+
update: Prisma.XOR<Prisma.AuthSessionUpdateInput, Prisma.AuthSessionUncheckedUpdateInput>;
|
|
1302
|
+
};
|
|
1303
|
+
/**
|
|
1304
|
+
* AuthSession delete
|
|
1305
|
+
*/
|
|
1306
|
+
export type AuthSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1307
|
+
/**
|
|
1308
|
+
* Select specific fields to fetch from the AuthSession
|
|
1309
|
+
*/
|
|
1310
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1311
|
+
/**
|
|
1312
|
+
* Omit specific fields from the AuthSession
|
|
1313
|
+
*/
|
|
1314
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* Choose, which related nodes to fetch as well
|
|
1317
|
+
*/
|
|
1318
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* Filter which AuthSession to delete.
|
|
1321
|
+
*/
|
|
1322
|
+
where: Prisma.AuthSessionWhereUniqueInput;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* AuthSession deleteMany
|
|
1326
|
+
*/
|
|
1327
|
+
export type AuthSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1328
|
+
/**
|
|
1329
|
+
* Filter which AuthSessions to delete
|
|
1330
|
+
*/
|
|
1331
|
+
where?: Prisma.AuthSessionWhereInput;
|
|
1332
|
+
/**
|
|
1333
|
+
* Limit how many AuthSessions to delete.
|
|
1334
|
+
*/
|
|
1335
|
+
limit?: number;
|
|
1336
|
+
};
|
|
1337
|
+
/**
|
|
1338
|
+
* AuthSession.challenges
|
|
1339
|
+
*/
|
|
1340
|
+
export type AuthSession$challengesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1341
|
+
/**
|
|
1342
|
+
* Select specific fields to fetch from the AuthFormChallenge
|
|
1343
|
+
*/
|
|
1344
|
+
select?: Prisma.AuthFormChallengeSelect<ExtArgs> | null;
|
|
1345
|
+
/**
|
|
1346
|
+
* Omit specific fields from the AuthFormChallenge
|
|
1347
|
+
*/
|
|
1348
|
+
omit?: Prisma.AuthFormChallengeOmit<ExtArgs> | null;
|
|
1349
|
+
/**
|
|
1350
|
+
* Choose, which related nodes to fetch as well
|
|
1351
|
+
*/
|
|
1352
|
+
include?: Prisma.AuthFormChallengeInclude<ExtArgs> | null;
|
|
1353
|
+
where?: Prisma.AuthFormChallengeWhereInput;
|
|
1354
|
+
orderBy?: Prisma.AuthFormChallengeOrderByWithRelationInput | Prisma.AuthFormChallengeOrderByWithRelationInput[];
|
|
1355
|
+
cursor?: Prisma.AuthFormChallengeWhereUniqueInput;
|
|
1356
|
+
take?: number;
|
|
1357
|
+
skip?: number;
|
|
1358
|
+
distinct?: Prisma.AuthFormChallengeScalarFieldEnum | Prisma.AuthFormChallengeScalarFieldEnum[];
|
|
1359
|
+
};
|
|
1360
|
+
/**
|
|
1361
|
+
* AuthSession without action
|
|
1362
|
+
*/
|
|
1363
|
+
export type AuthSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1364
|
+
/**
|
|
1365
|
+
* Select specific fields to fetch from the AuthSession
|
|
1366
|
+
*/
|
|
1367
|
+
select?: Prisma.AuthSessionSelect<ExtArgs> | null;
|
|
1368
|
+
/**
|
|
1369
|
+
* Omit specific fields from the AuthSession
|
|
1370
|
+
*/
|
|
1371
|
+
omit?: Prisma.AuthSessionOmit<ExtArgs> | null;
|
|
1372
|
+
/**
|
|
1373
|
+
* Choose, which related nodes to fetch as well
|
|
1374
|
+
*/
|
|
1375
|
+
include?: Prisma.AuthSessionInclude<ExtArgs> | null;
|
|
1376
|
+
};
|