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