@kosha-ai/server 0.0.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 (162) hide show
  1. package/LICENSE +21 -0
  2. package/dist/auth/api-key.guard.d.ts +18 -0
  3. package/dist/auth/api-key.guard.d.ts.map +1 -0
  4. package/dist/auth/api-key.guard.js +33 -0
  5. package/dist/auth/auth.factory.d.ts +35 -0
  6. package/dist/auth/auth.factory.d.ts.map +1 -0
  7. package/dist/auth/auth.factory.js +29 -0
  8. package/dist/bootstrap.d.ts +13 -0
  9. package/dist/bootstrap.d.ts.map +1 -0
  10. package/dist/bootstrap.js +33 -0
  11. package/dist/common/active-organization.d.ts +3 -0
  12. package/dist/common/active-organization.d.ts.map +1 -0
  13. package/dist/common/active-organization.js +8 -0
  14. package/dist/config/kosha-config.d.ts +80 -0
  15. package/dist/config/kosha-config.d.ts.map +1 -0
  16. package/dist/config/kosha-config.js +69 -0
  17. package/dist/config/tokens.d.ts +4 -0
  18. package/dist/config/tokens.d.ts.map +1 -0
  19. package/dist/config/tokens.js +3 -0
  20. package/dist/configurations/configurations.controller.d.ts +143 -0
  21. package/dist/configurations/configurations.controller.d.ts.map +1 -0
  22. package/dist/configurations/configurations.controller.js +76 -0
  23. package/dist/configurations/configurations.module.d.ts +3 -0
  24. package/dist/configurations/configurations.module.d.ts.map +1 -0
  25. package/dist/configurations/configurations.module.js +14 -0
  26. package/dist/configurations/configurations.service.d.ts +210 -0
  27. package/dist/configurations/configurations.service.d.ts.map +1 -0
  28. package/dist/configurations/configurations.service.js +204 -0
  29. package/dist/connect/connect.controller.d.ts +33 -0
  30. package/dist/connect/connect.controller.d.ts.map +1 -0
  31. package/dist/connect/connect.controller.js +123 -0
  32. package/dist/connect/connect.module.d.ts +3 -0
  33. package/dist/connect/connect.module.d.ts.map +1 -0
  34. package/dist/connect/connect.module.js +16 -0
  35. package/dist/connect/connect.service.d.ts +54 -0
  36. package/dist/connect/connect.service.d.ts.map +1 -0
  37. package/dist/connect/connect.service.js +248 -0
  38. package/dist/connections/connections.controller.d.ts +71 -0
  39. package/dist/connections/connections.controller.d.ts.map +1 -0
  40. package/dist/connections/connections.controller.js +51 -0
  41. package/dist/connections/connections.module.d.ts +3 -0
  42. package/dist/connections/connections.module.d.ts.map +1 -0
  43. package/dist/connections/connections.module.js +14 -0
  44. package/dist/connections/connections.service.d.ts +76 -0
  45. package/dist/connections/connections.service.d.ts.map +1 -0
  46. package/dist/connections/connections.service.js +71 -0
  47. package/dist/crypto/crypto.module.d.ts +3 -0
  48. package/dist/crypto/crypto.module.d.ts.map +1 -0
  49. package/dist/crypto/crypto.module.js +13 -0
  50. package/dist/crypto/crypto.service.d.ts +21 -0
  51. package/dist/crypto/crypto.service.d.ts.map +1 -0
  52. package/dist/crypto/crypto.service.js +77 -0
  53. package/dist/generated/prisma/browser.d.ts +88 -0
  54. package/dist/generated/prisma/browser.d.ts.map +1 -0
  55. package/dist/generated/prisma/browser.js +17 -0
  56. package/dist/generated/prisma/client.d.ts +107 -0
  57. package/dist/generated/prisma/client.d.ts.map +1 -0
  58. package/dist/generated/prisma/client.js +34 -0
  59. package/dist/generated/prisma/commonInputTypes.d.ts +478 -0
  60. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  61. package/dist/generated/prisma/commonInputTypes.js +10 -0
  62. package/dist/generated/prisma/enums.d.ts +22 -0
  63. package/dist/generated/prisma/enums.d.ts.map +1 -0
  64. package/dist/generated/prisma/enums.js +27 -0
  65. package/dist/generated/prisma/internal/class.d.ts +287 -0
  66. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  67. package/dist/generated/prisma/internal/class.js +49 -0
  68. package/dist/generated/prisma/internal/prismaNamespace.d.ts +1905 -0
  69. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  70. package/dist/generated/prisma/internal/prismaNamespace.js +299 -0
  71. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +277 -0
  72. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  73. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +270 -0
  74. package/dist/generated/prisma/models/Account.d.ts +1459 -0
  75. package/dist/generated/prisma/models/Account.d.ts.map +1 -0
  76. package/dist/generated/prisma/models/Account.js +1 -0
  77. package/dist/generated/prisma/models/Apikey.d.ts +1552 -0
  78. package/dist/generated/prisma/models/Apikey.d.ts.map +1 -0
  79. package/dist/generated/prisma/models/Apikey.js +1 -0
  80. package/dist/generated/prisma/models/Configuration.d.ts +1964 -0
  81. package/dist/generated/prisma/models/Configuration.d.ts.map +1 -0
  82. package/dist/generated/prisma/models/Configuration.js +1 -0
  83. package/dist/generated/prisma/models/ConnectSession.d.ts +1606 -0
  84. package/dist/generated/prisma/models/ConnectSession.d.ts.map +1 -0
  85. package/dist/generated/prisma/models/ConnectSession.js +1 -0
  86. package/dist/generated/prisma/models/Connection.d.ts +1949 -0
  87. package/dist/generated/prisma/models/Connection.d.ts.map +1 -0
  88. package/dist/generated/prisma/models/Connection.js +1 -0
  89. package/dist/generated/prisma/models/ConnectionCredential.d.ts +1293 -0
  90. package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +1 -0
  91. package/dist/generated/prisma/models/ConnectionCredential.js +1 -0
  92. package/dist/generated/prisma/models/EndUser.d.ts +1539 -0
  93. package/dist/generated/prisma/models/EndUser.d.ts.map +1 -0
  94. package/dist/generated/prisma/models/EndUser.js +1 -0
  95. package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
  96. package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
  97. package/dist/generated/prisma/models/Invitation.js +1 -0
  98. package/dist/generated/prisma/models/Member.d.ts +1281 -0
  99. package/dist/generated/prisma/models/Member.d.ts.map +1 -0
  100. package/dist/generated/prisma/models/Member.js +1 -0
  101. package/dist/generated/prisma/models/OAuthState.d.ts +1404 -0
  102. package/dist/generated/prisma/models/OAuthState.d.ts.map +1 -0
  103. package/dist/generated/prisma/models/OAuthState.js +1 -0
  104. package/dist/generated/prisma/models/Organization.d.ts +1807 -0
  105. package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
  106. package/dist/generated/prisma/models/Organization.js +1 -0
  107. package/dist/generated/prisma/models/Provider.d.ts +1462 -0
  108. package/dist/generated/prisma/models/Provider.d.ts.map +1 -0
  109. package/dist/generated/prisma/models/Provider.js +1 -0
  110. package/dist/generated/prisma/models/Session.d.ts +1316 -0
  111. package/dist/generated/prisma/models/Session.d.ts.map +1 -0
  112. package/dist/generated/prisma/models/Session.js +1 -0
  113. package/dist/generated/prisma/models/User.d.ts +1593 -0
  114. package/dist/generated/prisma/models/User.d.ts.map +1 -0
  115. package/dist/generated/prisma/models/User.js +1 -0
  116. package/dist/generated/prisma/models/Verification.d.ts +1026 -0
  117. package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
  118. package/dist/generated/prisma/models/Verification.js +1 -0
  119. package/dist/generated/prisma/models.d.ts +17 -0
  120. package/dist/generated/prisma/models.d.ts.map +1 -0
  121. package/dist/generated/prisma/models.js +1 -0
  122. package/dist/health/health.controller.d.ts +12 -0
  123. package/dist/health/health.controller.d.ts.map +1 -0
  124. package/dist/health/health.controller.js +36 -0
  125. package/dist/index.d.ts +26 -0
  126. package/dist/index.d.ts.map +1 -0
  127. package/dist/index.js +25 -0
  128. package/dist/integrations/integration.registry.d.ts +19 -0
  129. package/dist/integrations/integration.registry.d.ts.map +1 -0
  130. package/dist/integrations/integration.registry.js +45 -0
  131. package/dist/integrations/integrations.controller.d.ts +26 -0
  132. package/dist/integrations/integrations.controller.d.ts.map +1 -0
  133. package/dist/integrations/integrations.controller.js +47 -0
  134. package/dist/integrations/integrations.module.d.ts +6 -0
  135. package/dist/integrations/integrations.module.d.ts.map +1 -0
  136. package/dist/integrations/integrations.module.js +26 -0
  137. package/dist/integrations/provider-sync.service.d.ts +24 -0
  138. package/dist/integrations/provider-sync.service.d.ts.map +1 -0
  139. package/dist/integrations/provider-sync.service.js +74 -0
  140. package/dist/kosha.module.d.ts +11 -0
  141. package/dist/kosha.module.d.ts.map +1 -0
  142. package/dist/kosha.module.js +48 -0
  143. package/dist/prisma/prisma.module.d.ts +11 -0
  144. package/dist/prisma/prisma.module.d.ts.map +1 -0
  145. package/dist/prisma/prisma.module.js +24 -0
  146. package/dist/prisma/prisma.service.d.ts +10 -0
  147. package/dist/prisma/prisma.service.d.ts.map +1 -0
  148. package/dist/prisma/prisma.service.js +25 -0
  149. package/dist/proxy/proxy.controller.d.ts +17 -0
  150. package/dist/proxy/proxy.controller.d.ts.map +1 -0
  151. package/dist/proxy/proxy.controller.js +64 -0
  152. package/dist/proxy/proxy.module.d.ts +3 -0
  153. package/dist/proxy/proxy.module.d.ts.map +1 -0
  154. package/dist/proxy/proxy.module.js +16 -0
  155. package/dist/proxy/proxy.service.d.ts +40 -0
  156. package/dist/proxy/proxy.service.d.ts.map +1 -0
  157. package/dist/proxy/proxy.service.js +186 -0
  158. package/package.json +118 -0
  159. package/prisma/migrations/20260908000000_init/migration.sql +209 -0
  160. package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +173 -0
  161. package/prisma/migrations/migration_lock.toml +3 -0
  162. package/prisma/schema.prisma +347 -0
@@ -0,0 +1,1293 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model ConnectionCredential
5
+ * Tokens, split out from Connection so they have their own access path.
6
+ * Every token column is AES-256-GCM ciphertext.
7
+ */
8
+ export type ConnectionCredentialModel = runtime.Types.Result.DefaultSelection<Prisma.$ConnectionCredentialPayload>;
9
+ export type AggregateConnectionCredential = {
10
+ _count: ConnectionCredentialCountAggregateOutputType | null;
11
+ _min: ConnectionCredentialMinAggregateOutputType | null;
12
+ _max: ConnectionCredentialMaxAggregateOutputType | null;
13
+ };
14
+ export type ConnectionCredentialMinAggregateOutputType = {
15
+ id: string | null;
16
+ connectionId: string | null;
17
+ accessToken: string | null;
18
+ refreshToken: string | null;
19
+ idToken: string | null;
20
+ tokenType: string | null;
21
+ expiresAt: Date | null;
22
+ refreshTokenExpiresAt: Date | null;
23
+ createdAt: Date | null;
24
+ updatedAt: Date | null;
25
+ };
26
+ export type ConnectionCredentialMaxAggregateOutputType = {
27
+ id: string | null;
28
+ connectionId: string | null;
29
+ accessToken: string | null;
30
+ refreshToken: string | null;
31
+ idToken: string | null;
32
+ tokenType: string | null;
33
+ expiresAt: Date | null;
34
+ refreshTokenExpiresAt: Date | null;
35
+ createdAt: Date | null;
36
+ updatedAt: Date | null;
37
+ };
38
+ export type ConnectionCredentialCountAggregateOutputType = {
39
+ id: number;
40
+ connectionId: number;
41
+ accessToken: number;
42
+ refreshToken: number;
43
+ idToken: number;
44
+ tokenType: number;
45
+ expiresAt: number;
46
+ refreshTokenExpiresAt: number;
47
+ createdAt: number;
48
+ updatedAt: number;
49
+ _all: number;
50
+ };
51
+ export type ConnectionCredentialMinAggregateInputType = {
52
+ id?: true;
53
+ connectionId?: true;
54
+ accessToken?: true;
55
+ refreshToken?: true;
56
+ idToken?: true;
57
+ tokenType?: true;
58
+ expiresAt?: true;
59
+ refreshTokenExpiresAt?: true;
60
+ createdAt?: true;
61
+ updatedAt?: true;
62
+ };
63
+ export type ConnectionCredentialMaxAggregateInputType = {
64
+ id?: true;
65
+ connectionId?: true;
66
+ accessToken?: true;
67
+ refreshToken?: true;
68
+ idToken?: true;
69
+ tokenType?: true;
70
+ expiresAt?: true;
71
+ refreshTokenExpiresAt?: true;
72
+ createdAt?: true;
73
+ updatedAt?: true;
74
+ };
75
+ export type ConnectionCredentialCountAggregateInputType = {
76
+ id?: true;
77
+ connectionId?: true;
78
+ accessToken?: true;
79
+ refreshToken?: true;
80
+ idToken?: true;
81
+ tokenType?: true;
82
+ expiresAt?: true;
83
+ refreshTokenExpiresAt?: true;
84
+ createdAt?: true;
85
+ updatedAt?: true;
86
+ _all?: true;
87
+ };
88
+ export type ConnectionCredentialAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
89
+ /**
90
+ * Filter which ConnectionCredential to aggregate.
91
+ */
92
+ where?: Prisma.ConnectionCredentialWhereInput;
93
+ /**
94
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
95
+ *
96
+ * Determine the order of ConnectionCredentials to fetch.
97
+ */
98
+ orderBy?: Prisma.ConnectionCredentialOrderByWithRelationInput | Prisma.ConnectionCredentialOrderByWithRelationInput[];
99
+ /**
100
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
101
+ *
102
+ * Sets the start position
103
+ */
104
+ cursor?: Prisma.ConnectionCredentialWhereUniqueInput;
105
+ /**
106
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
107
+ *
108
+ * Take `±n` ConnectionCredentials from the position of the cursor.
109
+ */
110
+ take?: number;
111
+ /**
112
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
113
+ *
114
+ * Skip the first `n` ConnectionCredentials.
115
+ */
116
+ skip?: number;
117
+ /**
118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
119
+ *
120
+ * Count returned ConnectionCredentials
121
+ **/
122
+ _count?: true | ConnectionCredentialCountAggregateInputType;
123
+ /**
124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
125
+ *
126
+ * Select which fields to find the minimum value
127
+ **/
128
+ _min?: ConnectionCredentialMinAggregateInputType;
129
+ /**
130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
131
+ *
132
+ * Select which fields to find the maximum value
133
+ **/
134
+ _max?: ConnectionCredentialMaxAggregateInputType;
135
+ };
136
+ export type GetConnectionCredentialAggregateType<T extends ConnectionCredentialAggregateArgs> = {
137
+ [P in keyof T & keyof AggregateConnectionCredential]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateConnectionCredential[P]> : Prisma.GetScalarType<T[P], AggregateConnectionCredential[P]>;
138
+ };
139
+ export type ConnectionCredentialGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
140
+ where?: Prisma.ConnectionCredentialWhereInput;
141
+ orderBy?: Prisma.ConnectionCredentialOrderByWithAggregationInput | Prisma.ConnectionCredentialOrderByWithAggregationInput[];
142
+ by: Prisma.ConnectionCredentialScalarFieldEnum[] | Prisma.ConnectionCredentialScalarFieldEnum;
143
+ having?: Prisma.ConnectionCredentialScalarWhereWithAggregatesInput;
144
+ take?: number;
145
+ skip?: number;
146
+ _count?: ConnectionCredentialCountAggregateInputType | true;
147
+ _min?: ConnectionCredentialMinAggregateInputType;
148
+ _max?: ConnectionCredentialMaxAggregateInputType;
149
+ };
150
+ export type ConnectionCredentialGroupByOutputType = {
151
+ id: string;
152
+ connectionId: string;
153
+ accessToken: string;
154
+ refreshToken: string | null;
155
+ idToken: string | null;
156
+ tokenType: string | null;
157
+ expiresAt: Date | null;
158
+ refreshTokenExpiresAt: Date | null;
159
+ createdAt: Date;
160
+ updatedAt: Date;
161
+ _count: ConnectionCredentialCountAggregateOutputType | null;
162
+ _min: ConnectionCredentialMinAggregateOutputType | null;
163
+ _max: ConnectionCredentialMaxAggregateOutputType | null;
164
+ };
165
+ export type GetConnectionCredentialGroupByPayload<T extends ConnectionCredentialGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ConnectionCredentialGroupByOutputType, T['by']> & {
166
+ [P in ((keyof T) & (keyof ConnectionCredentialGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ConnectionCredentialGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ConnectionCredentialGroupByOutputType[P]>;
167
+ }>>;
168
+ export type ConnectionCredentialWhereInput = {
169
+ AND?: Prisma.ConnectionCredentialWhereInput | Prisma.ConnectionCredentialWhereInput[];
170
+ OR?: Prisma.ConnectionCredentialWhereInput[];
171
+ NOT?: Prisma.ConnectionCredentialWhereInput | Prisma.ConnectionCredentialWhereInput[];
172
+ id?: Prisma.StringFilter<"ConnectionCredential"> | string;
173
+ connectionId?: Prisma.StringFilter<"ConnectionCredential"> | string;
174
+ accessToken?: Prisma.StringFilter<"ConnectionCredential"> | string;
175
+ refreshToken?: Prisma.StringNullableFilter<"ConnectionCredential"> | string | null;
176
+ idToken?: Prisma.StringNullableFilter<"ConnectionCredential"> | string | null;
177
+ tokenType?: Prisma.StringNullableFilter<"ConnectionCredential"> | string | null;
178
+ expiresAt?: Prisma.DateTimeNullableFilter<"ConnectionCredential"> | Date | string | null;
179
+ refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"ConnectionCredential"> | Date | string | null;
180
+ createdAt?: Prisma.DateTimeFilter<"ConnectionCredential"> | Date | string;
181
+ updatedAt?: Prisma.DateTimeFilter<"ConnectionCredential"> | Date | string;
182
+ connection?: Prisma.XOR<Prisma.ConnectionScalarRelationFilter, Prisma.ConnectionWhereInput>;
183
+ };
184
+ export type ConnectionCredentialOrderByWithRelationInput = {
185
+ id?: Prisma.SortOrder;
186
+ connectionId?: Prisma.SortOrder;
187
+ accessToken?: Prisma.SortOrder;
188
+ refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder;
189
+ idToken?: Prisma.SortOrderInput | Prisma.SortOrder;
190
+ tokenType?: Prisma.SortOrderInput | Prisma.SortOrder;
191
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
192
+ refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
193
+ createdAt?: Prisma.SortOrder;
194
+ updatedAt?: Prisma.SortOrder;
195
+ connection?: Prisma.ConnectionOrderByWithRelationInput;
196
+ };
197
+ export type ConnectionCredentialWhereUniqueInput = Prisma.AtLeast<{
198
+ id?: string;
199
+ connectionId?: string;
200
+ AND?: Prisma.ConnectionCredentialWhereInput | Prisma.ConnectionCredentialWhereInput[];
201
+ OR?: Prisma.ConnectionCredentialWhereInput[];
202
+ NOT?: Prisma.ConnectionCredentialWhereInput | Prisma.ConnectionCredentialWhereInput[];
203
+ accessToken?: Prisma.StringFilter<"ConnectionCredential"> | string;
204
+ refreshToken?: Prisma.StringNullableFilter<"ConnectionCredential"> | string | null;
205
+ idToken?: Prisma.StringNullableFilter<"ConnectionCredential"> | string | null;
206
+ tokenType?: Prisma.StringNullableFilter<"ConnectionCredential"> | string | null;
207
+ expiresAt?: Prisma.DateTimeNullableFilter<"ConnectionCredential"> | Date | string | null;
208
+ refreshTokenExpiresAt?: Prisma.DateTimeNullableFilter<"ConnectionCredential"> | Date | string | null;
209
+ createdAt?: Prisma.DateTimeFilter<"ConnectionCredential"> | Date | string;
210
+ updatedAt?: Prisma.DateTimeFilter<"ConnectionCredential"> | Date | string;
211
+ connection?: Prisma.XOR<Prisma.ConnectionScalarRelationFilter, Prisma.ConnectionWhereInput>;
212
+ }, "id" | "connectionId">;
213
+ export type ConnectionCredentialOrderByWithAggregationInput = {
214
+ id?: Prisma.SortOrder;
215
+ connectionId?: Prisma.SortOrder;
216
+ accessToken?: Prisma.SortOrder;
217
+ refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder;
218
+ idToken?: Prisma.SortOrderInput | Prisma.SortOrder;
219
+ tokenType?: Prisma.SortOrderInput | Prisma.SortOrder;
220
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
221
+ refreshTokenExpiresAt?: Prisma.SortOrderInput | Prisma.SortOrder;
222
+ createdAt?: Prisma.SortOrder;
223
+ updatedAt?: Prisma.SortOrder;
224
+ _count?: Prisma.ConnectionCredentialCountOrderByAggregateInput;
225
+ _max?: Prisma.ConnectionCredentialMaxOrderByAggregateInput;
226
+ _min?: Prisma.ConnectionCredentialMinOrderByAggregateInput;
227
+ };
228
+ export type ConnectionCredentialScalarWhereWithAggregatesInput = {
229
+ AND?: Prisma.ConnectionCredentialScalarWhereWithAggregatesInput | Prisma.ConnectionCredentialScalarWhereWithAggregatesInput[];
230
+ OR?: Prisma.ConnectionCredentialScalarWhereWithAggregatesInput[];
231
+ NOT?: Prisma.ConnectionCredentialScalarWhereWithAggregatesInput | Prisma.ConnectionCredentialScalarWhereWithAggregatesInput[];
232
+ id?: Prisma.StringWithAggregatesFilter<"ConnectionCredential"> | string;
233
+ connectionId?: Prisma.StringWithAggregatesFilter<"ConnectionCredential"> | string;
234
+ accessToken?: Prisma.StringWithAggregatesFilter<"ConnectionCredential"> | string;
235
+ refreshToken?: Prisma.StringNullableWithAggregatesFilter<"ConnectionCredential"> | string | null;
236
+ idToken?: Prisma.StringNullableWithAggregatesFilter<"ConnectionCredential"> | string | null;
237
+ tokenType?: Prisma.StringNullableWithAggregatesFilter<"ConnectionCredential"> | string | null;
238
+ expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ConnectionCredential"> | Date | string | null;
239
+ refreshTokenExpiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ConnectionCredential"> | Date | string | null;
240
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ConnectionCredential"> | Date | string;
241
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ConnectionCredential"> | Date | string;
242
+ };
243
+ export type ConnectionCredentialCreateInput = {
244
+ id?: string;
245
+ accessToken: string;
246
+ refreshToken?: string | null;
247
+ idToken?: string | null;
248
+ tokenType?: string | null;
249
+ expiresAt?: Date | string | null;
250
+ refreshTokenExpiresAt?: Date | string | null;
251
+ createdAt?: Date | string;
252
+ updatedAt?: Date | string;
253
+ connection: Prisma.ConnectionCreateNestedOneWithoutCredentialInput;
254
+ };
255
+ export type ConnectionCredentialUncheckedCreateInput = {
256
+ id?: string;
257
+ connectionId: string;
258
+ accessToken: string;
259
+ refreshToken?: string | null;
260
+ idToken?: string | null;
261
+ tokenType?: string | null;
262
+ expiresAt?: Date | string | null;
263
+ refreshTokenExpiresAt?: Date | string | null;
264
+ createdAt?: Date | string;
265
+ updatedAt?: Date | string;
266
+ };
267
+ export type ConnectionCredentialUpdateInput = {
268
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
269
+ accessToken?: Prisma.StringFieldUpdateOperationsInput | string;
270
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
271
+ idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
272
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
273
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
274
+ refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
275
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
276
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
277
+ connection?: Prisma.ConnectionUpdateOneRequiredWithoutCredentialNestedInput;
278
+ };
279
+ export type ConnectionCredentialUncheckedUpdateInput = {
280
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
281
+ connectionId?: Prisma.StringFieldUpdateOperationsInput | string;
282
+ accessToken?: Prisma.StringFieldUpdateOperationsInput | string;
283
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
284
+ idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
285
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
286
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
287
+ refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
288
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
290
+ };
291
+ export type ConnectionCredentialCreateManyInput = {
292
+ id?: string;
293
+ connectionId: string;
294
+ accessToken: string;
295
+ refreshToken?: string | null;
296
+ idToken?: string | null;
297
+ tokenType?: string | null;
298
+ expiresAt?: Date | string | null;
299
+ refreshTokenExpiresAt?: Date | string | null;
300
+ createdAt?: Date | string;
301
+ updatedAt?: Date | string;
302
+ };
303
+ export type ConnectionCredentialUpdateManyMutationInput = {
304
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
305
+ accessToken?: Prisma.StringFieldUpdateOperationsInput | string;
306
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
307
+ idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
308
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
309
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
310
+ refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
311
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
312
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
313
+ };
314
+ export type ConnectionCredentialUncheckedUpdateManyInput = {
315
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
316
+ connectionId?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ accessToken?: Prisma.StringFieldUpdateOperationsInput | string;
318
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
319
+ idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
320
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
321
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
322
+ refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
323
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
324
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
325
+ };
326
+ export type ConnectionCredentialNullableScalarRelationFilter = {
327
+ is?: Prisma.ConnectionCredentialWhereInput | null;
328
+ isNot?: Prisma.ConnectionCredentialWhereInput | null;
329
+ };
330
+ export type ConnectionCredentialCountOrderByAggregateInput = {
331
+ id?: Prisma.SortOrder;
332
+ connectionId?: Prisma.SortOrder;
333
+ accessToken?: Prisma.SortOrder;
334
+ refreshToken?: Prisma.SortOrder;
335
+ idToken?: Prisma.SortOrder;
336
+ tokenType?: Prisma.SortOrder;
337
+ expiresAt?: Prisma.SortOrder;
338
+ refreshTokenExpiresAt?: Prisma.SortOrder;
339
+ createdAt?: Prisma.SortOrder;
340
+ updatedAt?: Prisma.SortOrder;
341
+ };
342
+ export type ConnectionCredentialMaxOrderByAggregateInput = {
343
+ id?: Prisma.SortOrder;
344
+ connectionId?: Prisma.SortOrder;
345
+ accessToken?: Prisma.SortOrder;
346
+ refreshToken?: Prisma.SortOrder;
347
+ idToken?: Prisma.SortOrder;
348
+ tokenType?: Prisma.SortOrder;
349
+ expiresAt?: Prisma.SortOrder;
350
+ refreshTokenExpiresAt?: Prisma.SortOrder;
351
+ createdAt?: Prisma.SortOrder;
352
+ updatedAt?: Prisma.SortOrder;
353
+ };
354
+ export type ConnectionCredentialMinOrderByAggregateInput = {
355
+ id?: Prisma.SortOrder;
356
+ connectionId?: Prisma.SortOrder;
357
+ accessToken?: Prisma.SortOrder;
358
+ refreshToken?: Prisma.SortOrder;
359
+ idToken?: Prisma.SortOrder;
360
+ tokenType?: Prisma.SortOrder;
361
+ expiresAt?: Prisma.SortOrder;
362
+ refreshTokenExpiresAt?: Prisma.SortOrder;
363
+ createdAt?: Prisma.SortOrder;
364
+ updatedAt?: Prisma.SortOrder;
365
+ };
366
+ export type ConnectionCredentialCreateNestedOneWithoutConnectionInput = {
367
+ create?: Prisma.XOR<Prisma.ConnectionCredentialCreateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedCreateWithoutConnectionInput>;
368
+ connectOrCreate?: Prisma.ConnectionCredentialCreateOrConnectWithoutConnectionInput;
369
+ connect?: Prisma.ConnectionCredentialWhereUniqueInput;
370
+ };
371
+ export type ConnectionCredentialUncheckedCreateNestedOneWithoutConnectionInput = {
372
+ create?: Prisma.XOR<Prisma.ConnectionCredentialCreateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedCreateWithoutConnectionInput>;
373
+ connectOrCreate?: Prisma.ConnectionCredentialCreateOrConnectWithoutConnectionInput;
374
+ connect?: Prisma.ConnectionCredentialWhereUniqueInput;
375
+ };
376
+ export type ConnectionCredentialUpdateOneWithoutConnectionNestedInput = {
377
+ create?: Prisma.XOR<Prisma.ConnectionCredentialCreateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedCreateWithoutConnectionInput>;
378
+ connectOrCreate?: Prisma.ConnectionCredentialCreateOrConnectWithoutConnectionInput;
379
+ upsert?: Prisma.ConnectionCredentialUpsertWithoutConnectionInput;
380
+ disconnect?: Prisma.ConnectionCredentialWhereInput | boolean;
381
+ delete?: Prisma.ConnectionCredentialWhereInput | boolean;
382
+ connect?: Prisma.ConnectionCredentialWhereUniqueInput;
383
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ConnectionCredentialUpdateToOneWithWhereWithoutConnectionInput, Prisma.ConnectionCredentialUpdateWithoutConnectionInput>, Prisma.ConnectionCredentialUncheckedUpdateWithoutConnectionInput>;
384
+ };
385
+ export type ConnectionCredentialUncheckedUpdateOneWithoutConnectionNestedInput = {
386
+ create?: Prisma.XOR<Prisma.ConnectionCredentialCreateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedCreateWithoutConnectionInput>;
387
+ connectOrCreate?: Prisma.ConnectionCredentialCreateOrConnectWithoutConnectionInput;
388
+ upsert?: Prisma.ConnectionCredentialUpsertWithoutConnectionInput;
389
+ disconnect?: Prisma.ConnectionCredentialWhereInput | boolean;
390
+ delete?: Prisma.ConnectionCredentialWhereInput | boolean;
391
+ connect?: Prisma.ConnectionCredentialWhereUniqueInput;
392
+ update?: Prisma.XOR<Prisma.XOR<Prisma.ConnectionCredentialUpdateToOneWithWhereWithoutConnectionInput, Prisma.ConnectionCredentialUpdateWithoutConnectionInput>, Prisma.ConnectionCredentialUncheckedUpdateWithoutConnectionInput>;
393
+ };
394
+ export type ConnectionCredentialCreateWithoutConnectionInput = {
395
+ id?: string;
396
+ accessToken: string;
397
+ refreshToken?: string | null;
398
+ idToken?: string | null;
399
+ tokenType?: string | null;
400
+ expiresAt?: Date | string | null;
401
+ refreshTokenExpiresAt?: Date | string | null;
402
+ createdAt?: Date | string;
403
+ updatedAt?: Date | string;
404
+ };
405
+ export type ConnectionCredentialUncheckedCreateWithoutConnectionInput = {
406
+ id?: string;
407
+ accessToken: string;
408
+ refreshToken?: string | null;
409
+ idToken?: string | null;
410
+ tokenType?: string | null;
411
+ expiresAt?: Date | string | null;
412
+ refreshTokenExpiresAt?: Date | string | null;
413
+ createdAt?: Date | string;
414
+ updatedAt?: Date | string;
415
+ };
416
+ export type ConnectionCredentialCreateOrConnectWithoutConnectionInput = {
417
+ where: Prisma.ConnectionCredentialWhereUniqueInput;
418
+ create: Prisma.XOR<Prisma.ConnectionCredentialCreateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedCreateWithoutConnectionInput>;
419
+ };
420
+ export type ConnectionCredentialUpsertWithoutConnectionInput = {
421
+ update: Prisma.XOR<Prisma.ConnectionCredentialUpdateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedUpdateWithoutConnectionInput>;
422
+ create: Prisma.XOR<Prisma.ConnectionCredentialCreateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedCreateWithoutConnectionInput>;
423
+ where?: Prisma.ConnectionCredentialWhereInput;
424
+ };
425
+ export type ConnectionCredentialUpdateToOneWithWhereWithoutConnectionInput = {
426
+ where?: Prisma.ConnectionCredentialWhereInput;
427
+ data: Prisma.XOR<Prisma.ConnectionCredentialUpdateWithoutConnectionInput, Prisma.ConnectionCredentialUncheckedUpdateWithoutConnectionInput>;
428
+ };
429
+ export type ConnectionCredentialUpdateWithoutConnectionInput = {
430
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
431
+ accessToken?: Prisma.StringFieldUpdateOperationsInput | string;
432
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
433
+ idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
434
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
435
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
436
+ refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
437
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
438
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
439
+ };
440
+ export type ConnectionCredentialUncheckedUpdateWithoutConnectionInput = {
441
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
442
+ accessToken?: Prisma.StringFieldUpdateOperationsInput | string;
443
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
444
+ idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
445
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
446
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
447
+ refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
448
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
449
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
450
+ };
451
+ export type ConnectionCredentialSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
452
+ id?: boolean;
453
+ connectionId?: boolean;
454
+ accessToken?: boolean;
455
+ refreshToken?: boolean;
456
+ idToken?: boolean;
457
+ tokenType?: boolean;
458
+ expiresAt?: boolean;
459
+ refreshTokenExpiresAt?: boolean;
460
+ createdAt?: boolean;
461
+ updatedAt?: boolean;
462
+ connection?: boolean | Prisma.ConnectionDefaultArgs<ExtArgs>;
463
+ }, ExtArgs["result"]["connectionCredential"]>;
464
+ export type ConnectionCredentialSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
465
+ id?: boolean;
466
+ connectionId?: boolean;
467
+ accessToken?: boolean;
468
+ refreshToken?: boolean;
469
+ idToken?: boolean;
470
+ tokenType?: boolean;
471
+ expiresAt?: boolean;
472
+ refreshTokenExpiresAt?: boolean;
473
+ createdAt?: boolean;
474
+ updatedAt?: boolean;
475
+ connection?: boolean | Prisma.ConnectionDefaultArgs<ExtArgs>;
476
+ }, ExtArgs["result"]["connectionCredential"]>;
477
+ export type ConnectionCredentialSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
478
+ id?: boolean;
479
+ connectionId?: boolean;
480
+ accessToken?: boolean;
481
+ refreshToken?: boolean;
482
+ idToken?: boolean;
483
+ tokenType?: boolean;
484
+ expiresAt?: boolean;
485
+ refreshTokenExpiresAt?: boolean;
486
+ createdAt?: boolean;
487
+ updatedAt?: boolean;
488
+ connection?: boolean | Prisma.ConnectionDefaultArgs<ExtArgs>;
489
+ }, ExtArgs["result"]["connectionCredential"]>;
490
+ export type ConnectionCredentialSelectScalar = {
491
+ id?: boolean;
492
+ connectionId?: boolean;
493
+ accessToken?: boolean;
494
+ refreshToken?: boolean;
495
+ idToken?: boolean;
496
+ tokenType?: boolean;
497
+ expiresAt?: boolean;
498
+ refreshTokenExpiresAt?: boolean;
499
+ createdAt?: boolean;
500
+ updatedAt?: boolean;
501
+ };
502
+ export type ConnectionCredentialOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "connectionId" | "accessToken" | "refreshToken" | "idToken" | "tokenType" | "expiresAt" | "refreshTokenExpiresAt" | "createdAt" | "updatedAt", ExtArgs["result"]["connectionCredential"]>;
503
+ export type ConnectionCredentialInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
504
+ connection?: boolean | Prisma.ConnectionDefaultArgs<ExtArgs>;
505
+ };
506
+ export type ConnectionCredentialIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
507
+ connection?: boolean | Prisma.ConnectionDefaultArgs<ExtArgs>;
508
+ };
509
+ export type ConnectionCredentialIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
510
+ connection?: boolean | Prisma.ConnectionDefaultArgs<ExtArgs>;
511
+ };
512
+ export type $ConnectionCredentialPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
513
+ name: "ConnectionCredential";
514
+ objects: {
515
+ connection: Prisma.$ConnectionPayload<ExtArgs>;
516
+ };
517
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
518
+ id: string;
519
+ connectionId: string;
520
+ accessToken: string;
521
+ refreshToken: string | null;
522
+ idToken: string | null;
523
+ tokenType: string | null;
524
+ expiresAt: Date | null;
525
+ refreshTokenExpiresAt: Date | null;
526
+ createdAt: Date;
527
+ updatedAt: Date;
528
+ }, ExtArgs["result"]["connectionCredential"]>;
529
+ composites: {};
530
+ };
531
+ export type ConnectionCredentialGetPayload<S extends boolean | null | undefined | ConnectionCredentialDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload, S>;
532
+ export type ConnectionCredentialCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ConnectionCredentialFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
533
+ select?: ConnectionCredentialCountAggregateInputType | true;
534
+ };
535
+ export interface ConnectionCredentialDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
536
+ [K: symbol]: {
537
+ types: Prisma.TypeMap<ExtArgs>['model']['ConnectionCredential'];
538
+ meta: {
539
+ name: 'ConnectionCredential';
540
+ };
541
+ };
542
+ /**
543
+ * Find zero or one ConnectionCredential that matches the filter.
544
+ * @param {ConnectionCredentialFindUniqueArgs} args - Arguments to find a ConnectionCredential
545
+ * @example
546
+ * // Get one ConnectionCredential
547
+ * const connectionCredential = await prisma.connectionCredential.findUnique({
548
+ * where: {
549
+ * // ... provide filter here
550
+ * }
551
+ * })
552
+ */
553
+ findUnique<T extends ConnectionCredentialFindUniqueArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
554
+ /**
555
+ * Find one ConnectionCredential that matches the filter or throw an error with `error.code='P2025'`
556
+ * if no matches were found.
557
+ * @param {ConnectionCredentialFindUniqueOrThrowArgs} args - Arguments to find a ConnectionCredential
558
+ * @example
559
+ * // Get one ConnectionCredential
560
+ * const connectionCredential = await prisma.connectionCredential.findUniqueOrThrow({
561
+ * where: {
562
+ * // ... provide filter here
563
+ * }
564
+ * })
565
+ */
566
+ findUniqueOrThrow<T extends ConnectionCredentialFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
567
+ /**
568
+ * Find the first ConnectionCredential that matches the filter.
569
+ * Note, that providing `undefined` is treated as the value not being there.
570
+ * Read more here: https://pris.ly/d/null-undefined
571
+ * @param {ConnectionCredentialFindFirstArgs} args - Arguments to find a ConnectionCredential
572
+ * @example
573
+ * // Get one ConnectionCredential
574
+ * const connectionCredential = await prisma.connectionCredential.findFirst({
575
+ * where: {
576
+ * // ... provide filter here
577
+ * }
578
+ * })
579
+ */
580
+ findFirst<T extends ConnectionCredentialFindFirstArgs>(args?: Prisma.SelectSubset<T, ConnectionCredentialFindFirstArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
581
+ /**
582
+ * Find the first ConnectionCredential that matches the filter or
583
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
584
+ * Note, that providing `undefined` is treated as the value not being there.
585
+ * Read more here: https://pris.ly/d/null-undefined
586
+ * @param {ConnectionCredentialFindFirstOrThrowArgs} args - Arguments to find a ConnectionCredential
587
+ * @example
588
+ * // Get one ConnectionCredential
589
+ * const connectionCredential = await prisma.connectionCredential.findFirstOrThrow({
590
+ * where: {
591
+ * // ... provide filter here
592
+ * }
593
+ * })
594
+ */
595
+ findFirstOrThrow<T extends ConnectionCredentialFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ConnectionCredentialFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
596
+ /**
597
+ * Find zero or more ConnectionCredentials that matches the filter.
598
+ * Note, that providing `undefined` is treated as the value not being there.
599
+ * Read more here: https://pris.ly/d/null-undefined
600
+ * @param {ConnectionCredentialFindManyArgs} args - Arguments to filter and select certain fields only.
601
+ * @example
602
+ * // Get all ConnectionCredentials
603
+ * const connectionCredentials = await prisma.connectionCredential.findMany()
604
+ *
605
+ * // Get first 10 ConnectionCredentials
606
+ * const connectionCredentials = await prisma.connectionCredential.findMany({ take: 10 })
607
+ *
608
+ * // Only select the `id`
609
+ * const connectionCredentialWithIdOnly = await prisma.connectionCredential.findMany({ select: { id: true } })
610
+ *
611
+ */
612
+ findMany<T extends ConnectionCredentialFindManyArgs>(args?: Prisma.SelectSubset<T, ConnectionCredentialFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
613
+ /**
614
+ * Create a ConnectionCredential.
615
+ * @param {ConnectionCredentialCreateArgs} args - Arguments to create a ConnectionCredential.
616
+ * @example
617
+ * // Create one ConnectionCredential
618
+ * const ConnectionCredential = await prisma.connectionCredential.create({
619
+ * data: {
620
+ * // ... data to create a ConnectionCredential
621
+ * }
622
+ * })
623
+ *
624
+ */
625
+ create<T extends ConnectionCredentialCreateArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialCreateArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
626
+ /**
627
+ * Create many ConnectionCredentials.
628
+ * @param {ConnectionCredentialCreateManyArgs} args - Arguments to create many ConnectionCredentials.
629
+ * @example
630
+ * // Create many ConnectionCredentials
631
+ * const connectionCredential = await prisma.connectionCredential.createMany({
632
+ * data: [
633
+ * // ... provide data here
634
+ * ]
635
+ * })
636
+ *
637
+ */
638
+ createMany<T extends ConnectionCredentialCreateManyArgs>(args?: Prisma.SelectSubset<T, ConnectionCredentialCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
639
+ /**
640
+ * Create many ConnectionCredentials and returns the data saved in the database.
641
+ * @param {ConnectionCredentialCreateManyAndReturnArgs} args - Arguments to create many ConnectionCredentials.
642
+ * @example
643
+ * // Create many ConnectionCredentials
644
+ * const connectionCredential = await prisma.connectionCredential.createManyAndReturn({
645
+ * data: [
646
+ * // ... provide data here
647
+ * ]
648
+ * })
649
+ *
650
+ * // Create many ConnectionCredentials and only return the `id`
651
+ * const connectionCredentialWithIdOnly = await prisma.connectionCredential.createManyAndReturn({
652
+ * select: { id: true },
653
+ * data: [
654
+ * // ... provide data here
655
+ * ]
656
+ * })
657
+ * Note, that providing `undefined` is treated as the value not being there.
658
+ * Read more here: https://pris.ly/d/null-undefined
659
+ *
660
+ */
661
+ createManyAndReturn<T extends ConnectionCredentialCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ConnectionCredentialCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
662
+ /**
663
+ * Delete a ConnectionCredential.
664
+ * @param {ConnectionCredentialDeleteArgs} args - Arguments to delete one ConnectionCredential.
665
+ * @example
666
+ * // Delete one ConnectionCredential
667
+ * const ConnectionCredential = await prisma.connectionCredential.delete({
668
+ * where: {
669
+ * // ... filter to delete one ConnectionCredential
670
+ * }
671
+ * })
672
+ *
673
+ */
674
+ delete<T extends ConnectionCredentialDeleteArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialDeleteArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
675
+ /**
676
+ * Update one ConnectionCredential.
677
+ * @param {ConnectionCredentialUpdateArgs} args - Arguments to update one ConnectionCredential.
678
+ * @example
679
+ * // Update one ConnectionCredential
680
+ * const connectionCredential = await prisma.connectionCredential.update({
681
+ * where: {
682
+ * // ... provide filter here
683
+ * },
684
+ * data: {
685
+ * // ... provide data here
686
+ * }
687
+ * })
688
+ *
689
+ */
690
+ update<T extends ConnectionCredentialUpdateArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialUpdateArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
691
+ /**
692
+ * Delete zero or more ConnectionCredentials.
693
+ * @param {ConnectionCredentialDeleteManyArgs} args - Arguments to filter ConnectionCredentials to delete.
694
+ * @example
695
+ * // Delete a few ConnectionCredentials
696
+ * const { count } = await prisma.connectionCredential.deleteMany({
697
+ * where: {
698
+ * // ... provide filter here
699
+ * }
700
+ * })
701
+ *
702
+ */
703
+ deleteMany<T extends ConnectionCredentialDeleteManyArgs>(args?: Prisma.SelectSubset<T, ConnectionCredentialDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
704
+ /**
705
+ * Update zero or more ConnectionCredentials.
706
+ * Note, that providing `undefined` is treated as the value not being there.
707
+ * Read more here: https://pris.ly/d/null-undefined
708
+ * @param {ConnectionCredentialUpdateManyArgs} args - Arguments to update one or more rows.
709
+ * @example
710
+ * // Update many ConnectionCredentials
711
+ * const connectionCredential = await prisma.connectionCredential.updateMany({
712
+ * where: {
713
+ * // ... provide filter here
714
+ * },
715
+ * data: {
716
+ * // ... provide data here
717
+ * }
718
+ * })
719
+ *
720
+ */
721
+ updateMany<T extends ConnectionCredentialUpdateManyArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
722
+ /**
723
+ * Update zero or more ConnectionCredentials and returns the data updated in the database.
724
+ * @param {ConnectionCredentialUpdateManyAndReturnArgs} args - Arguments to update many ConnectionCredentials.
725
+ * @example
726
+ * // Update many ConnectionCredentials
727
+ * const connectionCredential = await prisma.connectionCredential.updateManyAndReturn({
728
+ * where: {
729
+ * // ... provide filter here
730
+ * },
731
+ * data: [
732
+ * // ... provide data here
733
+ * ]
734
+ * })
735
+ *
736
+ * // Update zero or more ConnectionCredentials and only return the `id`
737
+ * const connectionCredentialWithIdOnly = await prisma.connectionCredential.updateManyAndReturn({
738
+ * select: { id: true },
739
+ * where: {
740
+ * // ... provide filter here
741
+ * },
742
+ * data: [
743
+ * // ... provide data here
744
+ * ]
745
+ * })
746
+ * Note, that providing `undefined` is treated as the value not being there.
747
+ * Read more here: https://pris.ly/d/null-undefined
748
+ *
749
+ */
750
+ updateManyAndReturn<T extends ConnectionCredentialUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
751
+ /**
752
+ * Create or update one ConnectionCredential.
753
+ * @param {ConnectionCredentialUpsertArgs} args - Arguments to update or create a ConnectionCredential.
754
+ * @example
755
+ * // Update or create a ConnectionCredential
756
+ * const connectionCredential = await prisma.connectionCredential.upsert({
757
+ * create: {
758
+ * // ... data to create a ConnectionCredential
759
+ * },
760
+ * update: {
761
+ * // ... in case it already exists, update
762
+ * },
763
+ * where: {
764
+ * // ... the filter for the ConnectionCredential we want to update
765
+ * }
766
+ * })
767
+ */
768
+ upsert<T extends ConnectionCredentialUpsertArgs>(args: Prisma.SelectSubset<T, ConnectionCredentialUpsertArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
769
+ /**
770
+ * Count the number of ConnectionCredentials.
771
+ * Note, that providing `undefined` is treated as the value not being there.
772
+ * Read more here: https://pris.ly/d/null-undefined
773
+ * @param {ConnectionCredentialCountArgs} args - Arguments to filter ConnectionCredentials to count.
774
+ * @example
775
+ * // Count the number of ConnectionCredentials
776
+ * const count = await prisma.connectionCredential.count({
777
+ * where: {
778
+ * // ... the filter for the ConnectionCredentials we want to count
779
+ * }
780
+ * })
781
+ **/
782
+ count<T extends ConnectionCredentialCountArgs>(args?: Prisma.Subset<T, ConnectionCredentialCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ConnectionCredentialCountAggregateOutputType> : number>;
783
+ /**
784
+ * Allows you to perform aggregations operations on a ConnectionCredential.
785
+ * Note, that providing `undefined` is treated as the value not being there.
786
+ * Read more here: https://pris.ly/d/null-undefined
787
+ * @param {ConnectionCredentialAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
788
+ * @example
789
+ * // Ordered by age ascending
790
+ * // Where email contains prisma.io
791
+ * // Limited to the 10 users
792
+ * const aggregations = await prisma.user.aggregate({
793
+ * _avg: {
794
+ * age: true,
795
+ * },
796
+ * where: {
797
+ * email: {
798
+ * contains: "prisma.io",
799
+ * },
800
+ * },
801
+ * orderBy: {
802
+ * age: "asc",
803
+ * },
804
+ * take: 10,
805
+ * })
806
+ **/
807
+ aggregate<T extends ConnectionCredentialAggregateArgs>(args: Prisma.Subset<T, ConnectionCredentialAggregateArgs>): Prisma.PrismaPromise<GetConnectionCredentialAggregateType<T>>;
808
+ /**
809
+ * Group by ConnectionCredential.
810
+ * Note, that providing `undefined` is treated as the value not being there.
811
+ * Read more here: https://pris.ly/d/null-undefined
812
+ * @param {ConnectionCredentialGroupByArgs} args - Group by arguments.
813
+ * @example
814
+ * // Group by city, order by createdAt, get count
815
+ * const result = await prisma.user.groupBy({
816
+ * by: ['city', 'createdAt'],
817
+ * orderBy: {
818
+ * createdAt: true
819
+ * },
820
+ * _count: {
821
+ * _all: true
822
+ * },
823
+ * })
824
+ *
825
+ **/
826
+ groupBy<T extends ConnectionCredentialGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
827
+ orderBy: ConnectionCredentialGroupByArgs['orderBy'];
828
+ } : {
829
+ orderBy?: ConnectionCredentialGroupByArgs['orderBy'];
830
+ }, 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 ? {
831
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
832
+ Error,
833
+ 'Field ',
834
+ P,
835
+ ` in "having" needs to be provided in "by"`
836
+ ];
837
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
838
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
839
+ }[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 ? {} : {
840
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
841
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
842
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
843
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ConnectionCredentialGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConnectionCredentialGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
844
+ /**
845
+ * Fields of the ConnectionCredential model
846
+ */
847
+ readonly fields: ConnectionCredentialFieldRefs;
848
+ }
849
+ /**
850
+ * The delegate class that acts as a "Promise-like" for ConnectionCredential.
851
+ * Why is this prefixed with `Prisma__`?
852
+ * Because we want to prevent naming conflicts as mentioned in
853
+ * https://github.com/prisma/prisma-client-js/issues/707
854
+ */
855
+ export interface Prisma__ConnectionCredentialClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
856
+ readonly [Symbol.toStringTag]: "PrismaPromise";
857
+ connection<T extends Prisma.ConnectionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConnectionDefaultArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
858
+ /**
859
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
860
+ * @param onfulfilled The callback to execute when the Promise is resolved.
861
+ * @param onrejected The callback to execute when the Promise is rejected.
862
+ * @returns A Promise for the completion of which ever callback is executed.
863
+ */
864
+ 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>;
865
+ /**
866
+ * Attaches a callback for only the rejection of the Promise.
867
+ * @param onrejected The callback to execute when the Promise is rejected.
868
+ * @returns A Promise for the completion of the callback.
869
+ */
870
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
871
+ /**
872
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
873
+ * resolved value cannot be modified from the callback.
874
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
875
+ * @returns A Promise for the completion of the callback.
876
+ */
877
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
878
+ }
879
+ /**
880
+ * Fields of the ConnectionCredential model
881
+ */
882
+ export interface ConnectionCredentialFieldRefs {
883
+ readonly id: Prisma.FieldRef<"ConnectionCredential", 'String'>;
884
+ readonly connectionId: Prisma.FieldRef<"ConnectionCredential", 'String'>;
885
+ readonly accessToken: Prisma.FieldRef<"ConnectionCredential", 'String'>;
886
+ readonly refreshToken: Prisma.FieldRef<"ConnectionCredential", 'String'>;
887
+ readonly idToken: Prisma.FieldRef<"ConnectionCredential", 'String'>;
888
+ readonly tokenType: Prisma.FieldRef<"ConnectionCredential", 'String'>;
889
+ readonly expiresAt: Prisma.FieldRef<"ConnectionCredential", 'DateTime'>;
890
+ readonly refreshTokenExpiresAt: Prisma.FieldRef<"ConnectionCredential", 'DateTime'>;
891
+ readonly createdAt: Prisma.FieldRef<"ConnectionCredential", 'DateTime'>;
892
+ readonly updatedAt: Prisma.FieldRef<"ConnectionCredential", 'DateTime'>;
893
+ }
894
+ /**
895
+ * ConnectionCredential findUnique
896
+ */
897
+ export type ConnectionCredentialFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
898
+ /**
899
+ * Select specific fields to fetch from the ConnectionCredential
900
+ */
901
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
902
+ /**
903
+ * Omit specific fields from the ConnectionCredential
904
+ */
905
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
906
+ /**
907
+ * Choose, which related nodes to fetch as well
908
+ */
909
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
910
+ /**
911
+ * Filter, which ConnectionCredential to fetch.
912
+ */
913
+ where: Prisma.ConnectionCredentialWhereUniqueInput;
914
+ };
915
+ /**
916
+ * ConnectionCredential findUniqueOrThrow
917
+ */
918
+ export type ConnectionCredentialFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
919
+ /**
920
+ * Select specific fields to fetch from the ConnectionCredential
921
+ */
922
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
923
+ /**
924
+ * Omit specific fields from the ConnectionCredential
925
+ */
926
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
927
+ /**
928
+ * Choose, which related nodes to fetch as well
929
+ */
930
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
931
+ /**
932
+ * Filter, which ConnectionCredential to fetch.
933
+ */
934
+ where: Prisma.ConnectionCredentialWhereUniqueInput;
935
+ };
936
+ /**
937
+ * ConnectionCredential findFirst
938
+ */
939
+ export type ConnectionCredentialFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
940
+ /**
941
+ * Select specific fields to fetch from the ConnectionCredential
942
+ */
943
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
944
+ /**
945
+ * Omit specific fields from the ConnectionCredential
946
+ */
947
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
948
+ /**
949
+ * Choose, which related nodes to fetch as well
950
+ */
951
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
952
+ /**
953
+ * Filter, which ConnectionCredential to fetch.
954
+ */
955
+ where?: Prisma.ConnectionCredentialWhereInput;
956
+ /**
957
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
958
+ *
959
+ * Determine the order of ConnectionCredentials to fetch.
960
+ */
961
+ orderBy?: Prisma.ConnectionCredentialOrderByWithRelationInput | Prisma.ConnectionCredentialOrderByWithRelationInput[];
962
+ /**
963
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
964
+ *
965
+ * Sets the position for searching for ConnectionCredentials.
966
+ */
967
+ cursor?: Prisma.ConnectionCredentialWhereUniqueInput;
968
+ /**
969
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
970
+ *
971
+ * Take `±n` ConnectionCredentials from the position of the cursor.
972
+ */
973
+ take?: number;
974
+ /**
975
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
976
+ *
977
+ * Skip the first `n` ConnectionCredentials.
978
+ */
979
+ skip?: number;
980
+ /**
981
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
982
+ *
983
+ * Filter by unique combinations of ConnectionCredentials.
984
+ */
985
+ distinct?: Prisma.ConnectionCredentialScalarFieldEnum | Prisma.ConnectionCredentialScalarFieldEnum[];
986
+ };
987
+ /**
988
+ * ConnectionCredential findFirstOrThrow
989
+ */
990
+ export type ConnectionCredentialFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
991
+ /**
992
+ * Select specific fields to fetch from the ConnectionCredential
993
+ */
994
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
995
+ /**
996
+ * Omit specific fields from the ConnectionCredential
997
+ */
998
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
999
+ /**
1000
+ * Choose, which related nodes to fetch as well
1001
+ */
1002
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1003
+ /**
1004
+ * Filter, which ConnectionCredential to fetch.
1005
+ */
1006
+ where?: Prisma.ConnectionCredentialWhereInput;
1007
+ /**
1008
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1009
+ *
1010
+ * Determine the order of ConnectionCredentials to fetch.
1011
+ */
1012
+ orderBy?: Prisma.ConnectionCredentialOrderByWithRelationInput | Prisma.ConnectionCredentialOrderByWithRelationInput[];
1013
+ /**
1014
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1015
+ *
1016
+ * Sets the position for searching for ConnectionCredentials.
1017
+ */
1018
+ cursor?: Prisma.ConnectionCredentialWhereUniqueInput;
1019
+ /**
1020
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1021
+ *
1022
+ * Take `±n` ConnectionCredentials from the position of the cursor.
1023
+ */
1024
+ take?: number;
1025
+ /**
1026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1027
+ *
1028
+ * Skip the first `n` ConnectionCredentials.
1029
+ */
1030
+ skip?: number;
1031
+ /**
1032
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1033
+ *
1034
+ * Filter by unique combinations of ConnectionCredentials.
1035
+ */
1036
+ distinct?: Prisma.ConnectionCredentialScalarFieldEnum | Prisma.ConnectionCredentialScalarFieldEnum[];
1037
+ };
1038
+ /**
1039
+ * ConnectionCredential findMany
1040
+ */
1041
+ export type ConnectionCredentialFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1042
+ /**
1043
+ * Select specific fields to fetch from the ConnectionCredential
1044
+ */
1045
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1046
+ /**
1047
+ * Omit specific fields from the ConnectionCredential
1048
+ */
1049
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1050
+ /**
1051
+ * Choose, which related nodes to fetch as well
1052
+ */
1053
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1054
+ /**
1055
+ * Filter, which ConnectionCredentials to fetch.
1056
+ */
1057
+ where?: Prisma.ConnectionCredentialWhereInput;
1058
+ /**
1059
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1060
+ *
1061
+ * Determine the order of ConnectionCredentials to fetch.
1062
+ */
1063
+ orderBy?: Prisma.ConnectionCredentialOrderByWithRelationInput | Prisma.ConnectionCredentialOrderByWithRelationInput[];
1064
+ /**
1065
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1066
+ *
1067
+ * Sets the position for listing ConnectionCredentials.
1068
+ */
1069
+ cursor?: Prisma.ConnectionCredentialWhereUniqueInput;
1070
+ /**
1071
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1072
+ *
1073
+ * Take `±n` ConnectionCredentials from the position of the cursor.
1074
+ */
1075
+ take?: number;
1076
+ /**
1077
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1078
+ *
1079
+ * Skip the first `n` ConnectionCredentials.
1080
+ */
1081
+ skip?: number;
1082
+ /**
1083
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1084
+ *
1085
+ * Filter by unique combinations of ConnectionCredentials.
1086
+ */
1087
+ distinct?: Prisma.ConnectionCredentialScalarFieldEnum | Prisma.ConnectionCredentialScalarFieldEnum[];
1088
+ };
1089
+ /**
1090
+ * ConnectionCredential create
1091
+ */
1092
+ export type ConnectionCredentialCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1093
+ /**
1094
+ * Select specific fields to fetch from the ConnectionCredential
1095
+ */
1096
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1097
+ /**
1098
+ * Omit specific fields from the ConnectionCredential
1099
+ */
1100
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1101
+ /**
1102
+ * Choose, which related nodes to fetch as well
1103
+ */
1104
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1105
+ /**
1106
+ * The data needed to create a ConnectionCredential.
1107
+ */
1108
+ data: Prisma.XOR<Prisma.ConnectionCredentialCreateInput, Prisma.ConnectionCredentialUncheckedCreateInput>;
1109
+ };
1110
+ /**
1111
+ * ConnectionCredential createMany
1112
+ */
1113
+ export type ConnectionCredentialCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1114
+ /**
1115
+ * The data used to create many ConnectionCredentials.
1116
+ */
1117
+ data: Prisma.ConnectionCredentialCreateManyInput | Prisma.ConnectionCredentialCreateManyInput[];
1118
+ skipDuplicates?: boolean;
1119
+ };
1120
+ /**
1121
+ * ConnectionCredential createManyAndReturn
1122
+ */
1123
+ export type ConnectionCredentialCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1124
+ /**
1125
+ * Select specific fields to fetch from the ConnectionCredential
1126
+ */
1127
+ select?: Prisma.ConnectionCredentialSelectCreateManyAndReturn<ExtArgs> | null;
1128
+ /**
1129
+ * Omit specific fields from the ConnectionCredential
1130
+ */
1131
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1132
+ /**
1133
+ * The data used to create many ConnectionCredentials.
1134
+ */
1135
+ data: Prisma.ConnectionCredentialCreateManyInput | Prisma.ConnectionCredentialCreateManyInput[];
1136
+ skipDuplicates?: boolean;
1137
+ /**
1138
+ * Choose, which related nodes to fetch as well
1139
+ */
1140
+ include?: Prisma.ConnectionCredentialIncludeCreateManyAndReturn<ExtArgs> | null;
1141
+ };
1142
+ /**
1143
+ * ConnectionCredential update
1144
+ */
1145
+ export type ConnectionCredentialUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1146
+ /**
1147
+ * Select specific fields to fetch from the ConnectionCredential
1148
+ */
1149
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1150
+ /**
1151
+ * Omit specific fields from the ConnectionCredential
1152
+ */
1153
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1154
+ /**
1155
+ * Choose, which related nodes to fetch as well
1156
+ */
1157
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1158
+ /**
1159
+ * The data needed to update a ConnectionCredential.
1160
+ */
1161
+ data: Prisma.XOR<Prisma.ConnectionCredentialUpdateInput, Prisma.ConnectionCredentialUncheckedUpdateInput>;
1162
+ /**
1163
+ * Choose, which ConnectionCredential to update.
1164
+ */
1165
+ where: Prisma.ConnectionCredentialWhereUniqueInput;
1166
+ };
1167
+ /**
1168
+ * ConnectionCredential updateMany
1169
+ */
1170
+ export type ConnectionCredentialUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1171
+ /**
1172
+ * The data used to update ConnectionCredentials.
1173
+ */
1174
+ data: Prisma.XOR<Prisma.ConnectionCredentialUpdateManyMutationInput, Prisma.ConnectionCredentialUncheckedUpdateManyInput>;
1175
+ /**
1176
+ * Filter which ConnectionCredentials to update
1177
+ */
1178
+ where?: Prisma.ConnectionCredentialWhereInput;
1179
+ /**
1180
+ * Limit how many ConnectionCredentials to update.
1181
+ */
1182
+ limit?: number;
1183
+ };
1184
+ /**
1185
+ * ConnectionCredential updateManyAndReturn
1186
+ */
1187
+ export type ConnectionCredentialUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1188
+ /**
1189
+ * Select specific fields to fetch from the ConnectionCredential
1190
+ */
1191
+ select?: Prisma.ConnectionCredentialSelectUpdateManyAndReturn<ExtArgs> | null;
1192
+ /**
1193
+ * Omit specific fields from the ConnectionCredential
1194
+ */
1195
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1196
+ /**
1197
+ * The data used to update ConnectionCredentials.
1198
+ */
1199
+ data: Prisma.XOR<Prisma.ConnectionCredentialUpdateManyMutationInput, Prisma.ConnectionCredentialUncheckedUpdateManyInput>;
1200
+ /**
1201
+ * Filter which ConnectionCredentials to update
1202
+ */
1203
+ where?: Prisma.ConnectionCredentialWhereInput;
1204
+ /**
1205
+ * Limit how many ConnectionCredentials to update.
1206
+ */
1207
+ limit?: number;
1208
+ /**
1209
+ * Choose, which related nodes to fetch as well
1210
+ */
1211
+ include?: Prisma.ConnectionCredentialIncludeUpdateManyAndReturn<ExtArgs> | null;
1212
+ };
1213
+ /**
1214
+ * ConnectionCredential upsert
1215
+ */
1216
+ export type ConnectionCredentialUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1217
+ /**
1218
+ * Select specific fields to fetch from the ConnectionCredential
1219
+ */
1220
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1221
+ /**
1222
+ * Omit specific fields from the ConnectionCredential
1223
+ */
1224
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1225
+ /**
1226
+ * Choose, which related nodes to fetch as well
1227
+ */
1228
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1229
+ /**
1230
+ * The filter to search for the ConnectionCredential to update in case it exists.
1231
+ */
1232
+ where: Prisma.ConnectionCredentialWhereUniqueInput;
1233
+ /**
1234
+ * In case the ConnectionCredential found by the `where` argument doesn't exist, create a new ConnectionCredential with this data.
1235
+ */
1236
+ create: Prisma.XOR<Prisma.ConnectionCredentialCreateInput, Prisma.ConnectionCredentialUncheckedCreateInput>;
1237
+ /**
1238
+ * In case the ConnectionCredential was found with the provided `where` argument, update it with this data.
1239
+ */
1240
+ update: Prisma.XOR<Prisma.ConnectionCredentialUpdateInput, Prisma.ConnectionCredentialUncheckedUpdateInput>;
1241
+ };
1242
+ /**
1243
+ * ConnectionCredential delete
1244
+ */
1245
+ export type ConnectionCredentialDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1246
+ /**
1247
+ * Select specific fields to fetch from the ConnectionCredential
1248
+ */
1249
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1250
+ /**
1251
+ * Omit specific fields from the ConnectionCredential
1252
+ */
1253
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1254
+ /**
1255
+ * Choose, which related nodes to fetch as well
1256
+ */
1257
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1258
+ /**
1259
+ * Filter which ConnectionCredential to delete.
1260
+ */
1261
+ where: Prisma.ConnectionCredentialWhereUniqueInput;
1262
+ };
1263
+ /**
1264
+ * ConnectionCredential deleteMany
1265
+ */
1266
+ export type ConnectionCredentialDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1267
+ /**
1268
+ * Filter which ConnectionCredentials to delete
1269
+ */
1270
+ where?: Prisma.ConnectionCredentialWhereInput;
1271
+ /**
1272
+ * Limit how many ConnectionCredentials to delete.
1273
+ */
1274
+ limit?: number;
1275
+ };
1276
+ /**
1277
+ * ConnectionCredential without action
1278
+ */
1279
+ export type ConnectionCredentialDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1280
+ /**
1281
+ * Select specific fields to fetch from the ConnectionCredential
1282
+ */
1283
+ select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1284
+ /**
1285
+ * Omit specific fields from the ConnectionCredential
1286
+ */
1287
+ omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1288
+ /**
1289
+ * Choose, which related nodes to fetch as well
1290
+ */
1291
+ include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1292
+ };
1293
+ //# sourceMappingURL=ConnectionCredential.d.ts.map