@kosha-ai/server 0.0.6 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/dist/auth/api-key.guard.d.ts +7 -2
  2. package/dist/auth/api-key.guard.d.ts.map +1 -1
  3. package/dist/auth/api-key.guard.js +28 -8
  4. package/dist/auth/auth.factory.d.ts +15 -1
  5. package/dist/auth/auth.factory.d.ts.map +1 -1
  6. package/dist/auth/auth.factory.js +48 -2
  7. package/dist/bootstrap.d.ts.map +1 -1
  8. package/dist/bootstrap.js +24 -6
  9. package/dist/config/kosha-config.d.ts +21 -0
  10. package/dist/config/kosha-config.d.ts.map +1 -1
  11. package/dist/config/kosha-config.js +31 -2
  12. package/dist/configurations/configurations.controller.d.ts +11 -136
  13. package/dist/configurations/configurations.controller.d.ts.map +1 -1
  14. package/dist/configurations/configurations.controller.js +58 -25
  15. package/dist/configurations/configurations.module.d.ts.map +1 -1
  16. package/dist/configurations/configurations.module.js +4 -1
  17. package/dist/configurations/configurations.repository.d.ts +43 -0
  18. package/dist/configurations/configurations.repository.d.ts.map +1 -0
  19. package/dist/configurations/configurations.repository.js +76 -0
  20. package/dist/configurations/configurations.service.d.ts +38 -194
  21. package/dist/configurations/configurations.service.d.ts.map +1 -1
  22. package/dist/configurations/configurations.service.js +118 -110
  23. package/dist/configurations/dto/create-configuration.dto.d.ts +8 -0
  24. package/dist/configurations/dto/create-configuration.dto.d.ts.map +1 -0
  25. package/dist/configurations/dto/create-configuration.dto.js +54 -0
  26. package/dist/configurations/dto/update-configuration.dto.d.ts +7 -0
  27. package/dist/configurations/dto/update-configuration.dto.d.ts.map +1 -0
  28. package/dist/configurations/dto/update-configuration.dto.js +39 -0
  29. package/dist/connect/connect.controller.d.ts +6 -8
  30. package/dist/connect/connect.controller.d.ts.map +1 -1
  31. package/dist/connect/connect.controller.js +45 -15
  32. package/dist/connect/connect.module.d.ts.map +1 -1
  33. package/dist/connect/connect.module.js +4 -2
  34. package/dist/connect/connect.repository.d.ts +78 -0
  35. package/dist/connect/connect.repository.d.ts.map +1 -0
  36. package/dist/connect/connect.repository.js +146 -0
  37. package/dist/connect/connect.service.d.ts +28 -19
  38. package/dist/connect/connect.service.d.ts.map +1 -1
  39. package/dist/connect/connect.service.js +149 -163
  40. package/dist/connect/dto/create-connect-session.dto.d.ts +8 -0
  41. package/dist/connect/dto/create-connect-session.dto.d.ts.map +1 -0
  42. package/dist/connect/dto/create-connect-session.dto.js +55 -0
  43. package/dist/connect/dto/create-test-session.dto.d.ts +10 -0
  44. package/dist/connect/dto/create-test-session.dto.d.ts.map +1 -0
  45. package/dist/connect/dto/create-test-session.dto.js +34 -0
  46. package/dist/connections/connections.controller.d.ts +8 -61
  47. package/dist/connections/connections.controller.d.ts.map +1 -1
  48. package/dist/connections/connections.controller.js +31 -9
  49. package/dist/connections/connections.module.d.ts.map +1 -1
  50. package/dist/connections/connections.module.js +4 -1
  51. package/dist/connections/connections.repository.d.ts +24 -0
  52. package/dist/connections/connections.repository.d.ts.map +1 -0
  53. package/dist/connections/connections.repository.js +66 -0
  54. package/dist/connections/connections.service.d.ts +24 -69
  55. package/dist/connections/connections.service.d.ts.map +1 -1
  56. package/dist/connections/connections.service.js +59 -56
  57. package/dist/connections/dto/list-connections.dto.d.ts +5 -0
  58. package/dist/connections/dto/list-connections.dto.d.ts.map +1 -0
  59. package/dist/connections/dto/list-connections.dto.js +25 -0
  60. package/dist/connections/environment-connections.controller.d.ts +26 -0
  61. package/dist/connections/environment-connections.controller.d.ts.map +1 -0
  62. package/dist/connections/environment-connections.controller.js +81 -0
  63. package/dist/connections/environment-connections.module.d.ts +11 -0
  64. package/dist/connections/environment-connections.module.d.ts.map +1 -0
  65. package/dist/connections/environment-connections.module.js +21 -0
  66. package/dist/credentials/credentials.module.d.ts +3 -0
  67. package/dist/credentials/credentials.module.d.ts.map +1 -0
  68. package/dist/credentials/credentials.module.js +15 -0
  69. package/dist/credentials/credentials.repository.d.ts +8 -0
  70. package/dist/credentials/credentials.repository.d.ts.map +1 -0
  71. package/dist/credentials/credentials.repository.js +21 -0
  72. package/dist/credentials/credentials.service.d.ts +45 -0
  73. package/dist/credentials/credentials.service.d.ts.map +1 -0
  74. package/dist/credentials/credentials.service.js +135 -0
  75. package/dist/crypto/credential-envelope.d.ts +56 -0
  76. package/dist/crypto/credential-envelope.d.ts.map +1 -0
  77. package/dist/crypto/credential-envelope.js +70 -0
  78. package/dist/crypto/crypto.service.d.ts +8 -0
  79. package/dist/crypto/crypto.service.d.ts.map +1 -1
  80. package/dist/crypto/crypto.service.js +12 -0
  81. package/dist/egress/ca.service.d.ts +36 -0
  82. package/dist/egress/ca.service.d.ts.map +1 -0
  83. package/dist/egress/ca.service.js +117 -0
  84. package/dist/egress/dto/mint-grant.dto.d.ts +7 -0
  85. package/dist/egress/dto/mint-grant.dto.d.ts.map +1 -0
  86. package/dist/egress/dto/mint-grant.dto.js +44 -0
  87. package/dist/egress/egress.controller.d.ts +18 -0
  88. package/dist/egress/egress.controller.d.ts.map +1 -0
  89. package/dist/egress/egress.controller.js +80 -0
  90. package/dist/egress/egress.listener.d.ts +39 -0
  91. package/dist/egress/egress.listener.d.ts.map +1 -0
  92. package/dist/egress/egress.listener.js +328 -0
  93. package/dist/egress/egress.module.d.ts +7 -0
  94. package/dist/egress/egress.module.d.ts.map +1 -0
  95. package/dist/egress/egress.module.js +31 -0
  96. package/dist/egress/egress.repository.d.ts +58 -0
  97. package/dist/egress/egress.repository.d.ts.map +1 -0
  98. package/dist/egress/egress.repository.js +116 -0
  99. package/dist/egress/grants.service.d.ts +77 -0
  100. package/dist/egress/grants.service.d.ts.map +1 -0
  101. package/dist/egress/grants.service.js +159 -0
  102. package/dist/egress/host-rules.service.d.ts +35 -0
  103. package/dist/egress/host-rules.service.d.ts.map +1 -0
  104. package/dist/egress/host-rules.service.js +48 -0
  105. package/dist/environments/dto/create-environment.dto.d.ts +6 -0
  106. package/dist/environments/dto/create-environment.dto.d.ts.map +1 -0
  107. package/dist/environments/dto/create-environment.dto.js +34 -0
  108. package/dist/environments/dto/update-environment.dto.d.ts +5 -0
  109. package/dist/environments/dto/update-environment.dto.d.ts.map +1 -0
  110. package/dist/environments/dto/update-environment.dto.js +24 -0
  111. package/dist/environments/environments.controller.d.ts +53 -0
  112. package/dist/environments/environments.controller.d.ts.map +1 -0
  113. package/dist/environments/environments.controller.js +101 -0
  114. package/dist/environments/environments.module.d.ts +3 -0
  115. package/dist/environments/environments.module.d.ts.map +1 -0
  116. package/dist/environments/environments.module.js +15 -0
  117. package/dist/environments/environments.repository.d.ts +37 -0
  118. package/dist/environments/environments.repository.d.ts.map +1 -0
  119. package/dist/environments/environments.repository.js +82 -0
  120. package/dist/environments/environments.service.d.ts +43 -0
  121. package/dist/environments/environments.service.d.ts.map +1 -0
  122. package/dist/environments/environments.service.js +124 -0
  123. package/dist/generated/prisma/browser.d.ts +17 -35
  124. package/dist/generated/prisma/browser.d.ts.map +1 -1
  125. package/dist/generated/prisma/client.d.ts +17 -35
  126. package/dist/generated/prisma/client.d.ts.map +1 -1
  127. package/dist/generated/prisma/commonInputTypes.d.ts +104 -145
  128. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -1
  129. package/dist/generated/prisma/enums.d.ts +1 -21
  130. package/dist/generated/prisma/enums.d.ts.map +1 -1
  131. package/dist/generated/prisma/enums.js +1 -18
  132. package/dist/generated/prisma/internal/class.d.ts +24 -46
  133. package/dist/generated/prisma/internal/class.d.ts.map +1 -1
  134. package/dist/generated/prisma/internal/class.js +4 -4
  135. package/dist/generated/prisma/internal/prismaNamespace.d.ts +258 -472
  136. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
  137. package/dist/generated/prisma/internal/prismaNamespace.js +45 -83
  138. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +45 -85
  139. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
  140. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +45 -83
  141. package/dist/generated/prisma/models/Account.d.ts +344 -26
  142. package/dist/generated/prisma/models/Account.d.ts.map +1 -1
  143. package/dist/generated/prisma/models/Configuration.d.ts +218 -851
  144. package/dist/generated/prisma/models/Configuration.d.ts.map +1 -1
  145. package/dist/generated/prisma/models/EgressGrant.d.ts +1535 -0
  146. package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -0
  147. package/dist/generated/prisma/models/Environment.d.ts +1644 -0
  148. package/dist/generated/prisma/models/Environment.d.ts.map +1 -0
  149. package/dist/generated/prisma/models/Invitation.d.ts +42 -1
  150. package/dist/generated/prisma/models/Invitation.d.ts.map +1 -1
  151. package/dist/generated/prisma/models/Organization.d.ts +183 -322
  152. package/dist/generated/prisma/models/Organization.d.ts.map +1 -1
  153. package/dist/generated/prisma/models/Session.d.ts +36 -1
  154. package/dist/generated/prisma/models/Session.d.ts.map +1 -1
  155. package/dist/generated/prisma/models/Team.d.ts +1498 -0
  156. package/dist/generated/prisma/models/Team.d.ts.map +1 -0
  157. package/dist/generated/prisma/models/TeamMember.d.ts +1281 -0
  158. package/dist/generated/prisma/models/TeamMember.d.ts.map +1 -0
  159. package/dist/generated/prisma/models/User.d.ts +338 -2
  160. package/dist/generated/prisma/models/User.d.ts.map +1 -1
  161. package/dist/generated/prisma/models.d.ts +4 -6
  162. package/dist/generated/prisma/models.d.ts.map +1 -1
  163. package/dist/index.d.ts +20 -5
  164. package/dist/index.d.ts.map +1 -1
  165. package/dist/index.js +17 -3
  166. package/dist/integrations/integrations.controller.d.ts +2 -1
  167. package/dist/integrations/integrations.controller.d.ts.map +1 -1
  168. package/dist/integrations/integrations.module.d.ts.map +1 -1
  169. package/dist/integrations/integrations.module.js +0 -2
  170. package/dist/kosha.module.d.ts.map +1 -1
  171. package/dist/kosha.module.js +13 -3
  172. package/dist/proxy/proxy.controller.d.ts +8 -3
  173. package/dist/proxy/proxy.controller.d.ts.map +1 -1
  174. package/dist/proxy/proxy.controller.js +26 -10
  175. package/dist/proxy/proxy.module.d.ts.map +1 -1
  176. package/dist/proxy/proxy.module.js +5 -3
  177. package/dist/proxy/proxy.repository.d.ts +24 -0
  178. package/dist/proxy/proxy.repository.d.ts.map +1 -0
  179. package/dist/proxy/proxy.repository.js +47 -0
  180. package/dist/proxy/proxy.service.d.ts +17 -21
  181. package/dist/proxy/proxy.service.d.ts.map +1 -1
  182. package/dist/proxy/proxy.service.js +61 -110
  183. package/package.json +9 -4
  184. package/prisma/migrations/20260929101936_init/migration.sql +345 -0
  185. package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
  186. package/prisma/schema.prisma +103 -178
  187. package/dist/generated/prisma/models/ConnectSession.d.ts +0 -1606
  188. package/dist/generated/prisma/models/ConnectSession.d.ts.map +0 -1
  189. package/dist/generated/prisma/models/Connection.d.ts +0 -1949
  190. package/dist/generated/prisma/models/Connection.d.ts.map +0 -1
  191. package/dist/generated/prisma/models/ConnectionCredential.d.ts +0 -1293
  192. package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +0 -1
  193. package/dist/generated/prisma/models/EndUser.d.ts +0 -1539
  194. package/dist/generated/prisma/models/EndUser.d.ts.map +0 -1
  195. package/dist/generated/prisma/models/OAuthState.d.ts +0 -1404
  196. package/dist/generated/prisma/models/OAuthState.d.ts.map +0 -1
  197. package/dist/generated/prisma/models/OAuthState.js +0 -1
  198. package/dist/generated/prisma/models/Provider.d.ts +0 -1462
  199. package/dist/generated/prisma/models/Provider.d.ts.map +0 -1
  200. package/dist/generated/prisma/models/Provider.js +0 -1
  201. package/dist/integrations/provider-sync.service.d.ts +0 -24
  202. package/dist/integrations/provider-sync.service.d.ts.map +0 -1
  203. package/dist/integrations/provider-sync.service.js +0 -74
  204. package/prisma/migrations/20260908000000_init/migration.sql +0 -209
  205. package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +0 -173
  206. package/prisma/migrations/20260916000000_add_configuration_slug/migration.sql +0 -15
  207. /package/dist/generated/prisma/models/{ConnectSession.js → EgressGrant.js} +0 -0
  208. /package/dist/generated/prisma/models/{Connection.js → Environment.js} +0 -0
  209. /package/dist/generated/prisma/models/{ConnectionCredential.js → Team.js} +0 -0
  210. /package/dist/generated/prisma/models/{EndUser.js → TeamMember.js} +0 -0
@@ -1,1949 +0,0 @@
1
- import type * as runtime from "@prisma/client/runtime/client";
2
- import type * as $Enums from "../enums.js";
3
- import type * as Prisma from "../internal/prismaNamespace.js";
4
- /**
5
- * Model Connection
6
- * The authorized link between an EndUser and a Configuration. An end user may
7
- * hold several connections against the same configuration (two GitHub
8
- * accounts), so uniqueness is per provider account, not per end user.
9
- */
10
- export type ConnectionModel = runtime.Types.Result.DefaultSelection<Prisma.$ConnectionPayload>;
11
- export type AggregateConnection = {
12
- _count: ConnectionCountAggregateOutputType | null;
13
- _min: ConnectionMinAggregateOutputType | null;
14
- _max: ConnectionMaxAggregateOutputType | null;
15
- };
16
- export type ConnectionMinAggregateOutputType = {
17
- id: string | null;
18
- organizationId: string | null;
19
- endUserId: string | null;
20
- configurationId: string | null;
21
- label: string | null;
22
- externalAccountId: string | null;
23
- status: $Enums.ConnectionStatus | null;
24
- lastSyncedAt: Date | null;
25
- lastUsedAt: Date | null;
26
- errorMessage: string | null;
27
- createdAt: Date | null;
28
- updatedAt: Date | null;
29
- };
30
- export type ConnectionMaxAggregateOutputType = {
31
- id: string | null;
32
- organizationId: string | null;
33
- endUserId: string | null;
34
- configurationId: string | null;
35
- label: string | null;
36
- externalAccountId: string | null;
37
- status: $Enums.ConnectionStatus | null;
38
- lastSyncedAt: Date | null;
39
- lastUsedAt: Date | null;
40
- errorMessage: string | null;
41
- createdAt: Date | null;
42
- updatedAt: Date | null;
43
- };
44
- export type ConnectionCountAggregateOutputType = {
45
- id: number;
46
- organizationId: number;
47
- endUserId: number;
48
- configurationId: number;
49
- label: number;
50
- externalAccountId: number;
51
- status: number;
52
- scopes: number;
53
- lastSyncedAt: number;
54
- lastUsedAt: number;
55
- errorMessage: number;
56
- metadata: number;
57
- createdAt: number;
58
- updatedAt: number;
59
- _all: number;
60
- };
61
- export type ConnectionMinAggregateInputType = {
62
- id?: true;
63
- organizationId?: true;
64
- endUserId?: true;
65
- configurationId?: true;
66
- label?: true;
67
- externalAccountId?: true;
68
- status?: true;
69
- lastSyncedAt?: true;
70
- lastUsedAt?: true;
71
- errorMessage?: true;
72
- createdAt?: true;
73
- updatedAt?: true;
74
- };
75
- export type ConnectionMaxAggregateInputType = {
76
- id?: true;
77
- organizationId?: true;
78
- endUserId?: true;
79
- configurationId?: true;
80
- label?: true;
81
- externalAccountId?: true;
82
- status?: true;
83
- lastSyncedAt?: true;
84
- lastUsedAt?: true;
85
- errorMessage?: true;
86
- createdAt?: true;
87
- updatedAt?: true;
88
- };
89
- export type ConnectionCountAggregateInputType = {
90
- id?: true;
91
- organizationId?: true;
92
- endUserId?: true;
93
- configurationId?: true;
94
- label?: true;
95
- externalAccountId?: true;
96
- status?: true;
97
- scopes?: true;
98
- lastSyncedAt?: true;
99
- lastUsedAt?: true;
100
- errorMessage?: true;
101
- metadata?: true;
102
- createdAt?: true;
103
- updatedAt?: true;
104
- _all?: true;
105
- };
106
- export type ConnectionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
107
- /**
108
- * Filter which Connection to aggregate.
109
- */
110
- where?: Prisma.ConnectionWhereInput;
111
- /**
112
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
113
- *
114
- * Determine the order of Connections to fetch.
115
- */
116
- orderBy?: Prisma.ConnectionOrderByWithRelationInput | Prisma.ConnectionOrderByWithRelationInput[];
117
- /**
118
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
119
- *
120
- * Sets the start position
121
- */
122
- cursor?: Prisma.ConnectionWhereUniqueInput;
123
- /**
124
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
125
- *
126
- * Take `±n` Connections from the position of the cursor.
127
- */
128
- take?: number;
129
- /**
130
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
131
- *
132
- * Skip the first `n` Connections.
133
- */
134
- skip?: number;
135
- /**
136
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
137
- *
138
- * Count returned Connections
139
- **/
140
- _count?: true | ConnectionCountAggregateInputType;
141
- /**
142
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
143
- *
144
- * Select which fields to find the minimum value
145
- **/
146
- _min?: ConnectionMinAggregateInputType;
147
- /**
148
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
149
- *
150
- * Select which fields to find the maximum value
151
- **/
152
- _max?: ConnectionMaxAggregateInputType;
153
- };
154
- export type GetConnectionAggregateType<T extends ConnectionAggregateArgs> = {
155
- [P in keyof T & keyof AggregateConnection]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateConnection[P]> : Prisma.GetScalarType<T[P], AggregateConnection[P]>;
156
- };
157
- export type ConnectionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
158
- where?: Prisma.ConnectionWhereInput;
159
- orderBy?: Prisma.ConnectionOrderByWithAggregationInput | Prisma.ConnectionOrderByWithAggregationInput[];
160
- by: Prisma.ConnectionScalarFieldEnum[] | Prisma.ConnectionScalarFieldEnum;
161
- having?: Prisma.ConnectionScalarWhereWithAggregatesInput;
162
- take?: number;
163
- skip?: number;
164
- _count?: ConnectionCountAggregateInputType | true;
165
- _min?: ConnectionMinAggregateInputType;
166
- _max?: ConnectionMaxAggregateInputType;
167
- };
168
- export type ConnectionGroupByOutputType = {
169
- id: string;
170
- organizationId: string;
171
- endUserId: string;
172
- configurationId: string;
173
- label: string | null;
174
- externalAccountId: string | null;
175
- status: $Enums.ConnectionStatus;
176
- scopes: string[];
177
- lastSyncedAt: Date | null;
178
- lastUsedAt: Date | null;
179
- errorMessage: string | null;
180
- metadata: runtime.JsonValue | null;
181
- createdAt: Date;
182
- updatedAt: Date;
183
- _count: ConnectionCountAggregateOutputType | null;
184
- _min: ConnectionMinAggregateOutputType | null;
185
- _max: ConnectionMaxAggregateOutputType | null;
186
- };
187
- export type GetConnectionGroupByPayload<T extends ConnectionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ConnectionGroupByOutputType, T['by']> & {
188
- [P in ((keyof T) & (keyof ConnectionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ConnectionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ConnectionGroupByOutputType[P]>;
189
- }>>;
190
- export type ConnectionWhereInput = {
191
- AND?: Prisma.ConnectionWhereInput | Prisma.ConnectionWhereInput[];
192
- OR?: Prisma.ConnectionWhereInput[];
193
- NOT?: Prisma.ConnectionWhereInput | Prisma.ConnectionWhereInput[];
194
- id?: Prisma.StringFilter<"Connection"> | string;
195
- organizationId?: Prisma.StringFilter<"Connection"> | string;
196
- endUserId?: Prisma.StringFilter<"Connection"> | string;
197
- configurationId?: Prisma.StringFilter<"Connection"> | string;
198
- label?: Prisma.StringNullableFilter<"Connection"> | string | null;
199
- externalAccountId?: Prisma.StringNullableFilter<"Connection"> | string | null;
200
- status?: Prisma.EnumConnectionStatusFilter<"Connection"> | $Enums.ConnectionStatus;
201
- scopes?: Prisma.StringNullableListFilter<"Connection">;
202
- lastSyncedAt?: Prisma.DateTimeNullableFilter<"Connection"> | Date | string | null;
203
- lastUsedAt?: Prisma.DateTimeNullableFilter<"Connection"> | Date | string | null;
204
- errorMessage?: Prisma.StringNullableFilter<"Connection"> | string | null;
205
- metadata?: Prisma.JsonNullableFilter<"Connection">;
206
- createdAt?: Prisma.DateTimeFilter<"Connection"> | Date | string;
207
- updatedAt?: Prisma.DateTimeFilter<"Connection"> | Date | string;
208
- organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
209
- endUser?: Prisma.XOR<Prisma.EndUserScalarRelationFilter, Prisma.EndUserWhereInput>;
210
- configuration?: Prisma.XOR<Prisma.ConfigurationScalarRelationFilter, Prisma.ConfigurationWhereInput>;
211
- credential?: Prisma.XOR<Prisma.ConnectionCredentialNullableScalarRelationFilter, Prisma.ConnectionCredentialWhereInput> | null;
212
- };
213
- export type ConnectionOrderByWithRelationInput = {
214
- id?: Prisma.SortOrder;
215
- organizationId?: Prisma.SortOrder;
216
- endUserId?: Prisma.SortOrder;
217
- configurationId?: Prisma.SortOrder;
218
- label?: Prisma.SortOrderInput | Prisma.SortOrder;
219
- externalAccountId?: Prisma.SortOrderInput | Prisma.SortOrder;
220
- status?: Prisma.SortOrder;
221
- scopes?: Prisma.SortOrder;
222
- lastSyncedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
223
- lastUsedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
224
- errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
225
- metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
226
- createdAt?: Prisma.SortOrder;
227
- updatedAt?: Prisma.SortOrder;
228
- organization?: Prisma.OrganizationOrderByWithRelationInput;
229
- endUser?: Prisma.EndUserOrderByWithRelationInput;
230
- configuration?: Prisma.ConfigurationOrderByWithRelationInput;
231
- credential?: Prisma.ConnectionCredentialOrderByWithRelationInput;
232
- };
233
- export type ConnectionWhereUniqueInput = Prisma.AtLeast<{
234
- id?: string;
235
- configurationId_externalAccountId?: Prisma.ConnectionConfigurationIdExternalAccountIdCompoundUniqueInput;
236
- AND?: Prisma.ConnectionWhereInput | Prisma.ConnectionWhereInput[];
237
- OR?: Prisma.ConnectionWhereInput[];
238
- NOT?: Prisma.ConnectionWhereInput | Prisma.ConnectionWhereInput[];
239
- organizationId?: Prisma.StringFilter<"Connection"> | string;
240
- endUserId?: Prisma.StringFilter<"Connection"> | string;
241
- configurationId?: Prisma.StringFilter<"Connection"> | string;
242
- label?: Prisma.StringNullableFilter<"Connection"> | string | null;
243
- externalAccountId?: Prisma.StringNullableFilter<"Connection"> | string | null;
244
- status?: Prisma.EnumConnectionStatusFilter<"Connection"> | $Enums.ConnectionStatus;
245
- scopes?: Prisma.StringNullableListFilter<"Connection">;
246
- lastSyncedAt?: Prisma.DateTimeNullableFilter<"Connection"> | Date | string | null;
247
- lastUsedAt?: Prisma.DateTimeNullableFilter<"Connection"> | Date | string | null;
248
- errorMessage?: Prisma.StringNullableFilter<"Connection"> | string | null;
249
- metadata?: Prisma.JsonNullableFilter<"Connection">;
250
- createdAt?: Prisma.DateTimeFilter<"Connection"> | Date | string;
251
- updatedAt?: Prisma.DateTimeFilter<"Connection"> | Date | string;
252
- organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
253
- endUser?: Prisma.XOR<Prisma.EndUserScalarRelationFilter, Prisma.EndUserWhereInput>;
254
- configuration?: Prisma.XOR<Prisma.ConfigurationScalarRelationFilter, Prisma.ConfigurationWhereInput>;
255
- credential?: Prisma.XOR<Prisma.ConnectionCredentialNullableScalarRelationFilter, Prisma.ConnectionCredentialWhereInput> | null;
256
- }, "id" | "configurationId_externalAccountId">;
257
- export type ConnectionOrderByWithAggregationInput = {
258
- id?: Prisma.SortOrder;
259
- organizationId?: Prisma.SortOrder;
260
- endUserId?: Prisma.SortOrder;
261
- configurationId?: Prisma.SortOrder;
262
- label?: Prisma.SortOrderInput | Prisma.SortOrder;
263
- externalAccountId?: Prisma.SortOrderInput | Prisma.SortOrder;
264
- status?: Prisma.SortOrder;
265
- scopes?: Prisma.SortOrder;
266
- lastSyncedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
267
- lastUsedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
268
- errorMessage?: Prisma.SortOrderInput | Prisma.SortOrder;
269
- metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
270
- createdAt?: Prisma.SortOrder;
271
- updatedAt?: Prisma.SortOrder;
272
- _count?: Prisma.ConnectionCountOrderByAggregateInput;
273
- _max?: Prisma.ConnectionMaxOrderByAggregateInput;
274
- _min?: Prisma.ConnectionMinOrderByAggregateInput;
275
- };
276
- export type ConnectionScalarWhereWithAggregatesInput = {
277
- AND?: Prisma.ConnectionScalarWhereWithAggregatesInput | Prisma.ConnectionScalarWhereWithAggregatesInput[];
278
- OR?: Prisma.ConnectionScalarWhereWithAggregatesInput[];
279
- NOT?: Prisma.ConnectionScalarWhereWithAggregatesInput | Prisma.ConnectionScalarWhereWithAggregatesInput[];
280
- id?: Prisma.StringWithAggregatesFilter<"Connection"> | string;
281
- organizationId?: Prisma.StringWithAggregatesFilter<"Connection"> | string;
282
- endUserId?: Prisma.StringWithAggregatesFilter<"Connection"> | string;
283
- configurationId?: Prisma.StringWithAggregatesFilter<"Connection"> | string;
284
- label?: Prisma.StringNullableWithAggregatesFilter<"Connection"> | string | null;
285
- externalAccountId?: Prisma.StringNullableWithAggregatesFilter<"Connection"> | string | null;
286
- status?: Prisma.EnumConnectionStatusWithAggregatesFilter<"Connection"> | $Enums.ConnectionStatus;
287
- scopes?: Prisma.StringNullableListFilter<"Connection">;
288
- lastSyncedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Connection"> | Date | string | null;
289
- lastUsedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Connection"> | Date | string | null;
290
- errorMessage?: Prisma.StringNullableWithAggregatesFilter<"Connection"> | string | null;
291
- metadata?: Prisma.JsonNullableWithAggregatesFilter<"Connection">;
292
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Connection"> | Date | string;
293
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Connection"> | Date | string;
294
- };
295
- export type ConnectionCreateInput = {
296
- id?: string;
297
- label?: string | null;
298
- externalAccountId?: string | null;
299
- status?: $Enums.ConnectionStatus;
300
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
301
- lastSyncedAt?: Date | string | null;
302
- lastUsedAt?: Date | string | null;
303
- errorMessage?: string | null;
304
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
305
- createdAt?: Date | string;
306
- updatedAt?: Date | string;
307
- organization: Prisma.OrganizationCreateNestedOneWithoutConnectionsInput;
308
- endUser: Prisma.EndUserCreateNestedOneWithoutConnectionsInput;
309
- configuration: Prisma.ConfigurationCreateNestedOneWithoutConnectionsInput;
310
- credential?: Prisma.ConnectionCredentialCreateNestedOneWithoutConnectionInput;
311
- };
312
- export type ConnectionUncheckedCreateInput = {
313
- id?: string;
314
- organizationId: string;
315
- endUserId: string;
316
- configurationId: string;
317
- label?: string | null;
318
- externalAccountId?: string | null;
319
- status?: $Enums.ConnectionStatus;
320
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
321
- lastSyncedAt?: Date | string | null;
322
- lastUsedAt?: Date | string | null;
323
- errorMessage?: string | null;
324
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
325
- createdAt?: Date | string;
326
- updatedAt?: Date | string;
327
- credential?: Prisma.ConnectionCredentialUncheckedCreateNestedOneWithoutConnectionInput;
328
- };
329
- export type ConnectionUpdateInput = {
330
- id?: Prisma.StringFieldUpdateOperationsInput | string;
331
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
332
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
333
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
334
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
335
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
336
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
337
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
338
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
339
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
340
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
341
- organization?: Prisma.OrganizationUpdateOneRequiredWithoutConnectionsNestedInput;
342
- endUser?: Prisma.EndUserUpdateOneRequiredWithoutConnectionsNestedInput;
343
- configuration?: Prisma.ConfigurationUpdateOneRequiredWithoutConnectionsNestedInput;
344
- credential?: Prisma.ConnectionCredentialUpdateOneWithoutConnectionNestedInput;
345
- };
346
- export type ConnectionUncheckedUpdateInput = {
347
- id?: Prisma.StringFieldUpdateOperationsInput | string;
348
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
349
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
350
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
351
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
352
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
353
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
354
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
355
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
356
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
357
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
358
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
359
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
360
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
361
- credential?: Prisma.ConnectionCredentialUncheckedUpdateOneWithoutConnectionNestedInput;
362
- };
363
- export type ConnectionCreateManyInput = {
364
- id?: string;
365
- organizationId: string;
366
- endUserId: string;
367
- configurationId: string;
368
- label?: string | null;
369
- externalAccountId?: string | null;
370
- status?: $Enums.ConnectionStatus;
371
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
372
- lastSyncedAt?: Date | string | null;
373
- lastUsedAt?: Date | string | null;
374
- errorMessage?: string | null;
375
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
376
- createdAt?: Date | string;
377
- updatedAt?: Date | string;
378
- };
379
- export type ConnectionUpdateManyMutationInput = {
380
- id?: Prisma.StringFieldUpdateOperationsInput | string;
381
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
382
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
383
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
384
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
385
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
386
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
387
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
388
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
389
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
390
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
391
- };
392
- export type ConnectionUncheckedUpdateManyInput = {
393
- id?: Prisma.StringFieldUpdateOperationsInput | string;
394
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
395
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
396
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
397
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
398
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
399
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
400
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
401
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
402
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
403
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
404
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
405
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
406
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
407
- };
408
- export type ConnectionListRelationFilter = {
409
- every?: Prisma.ConnectionWhereInput;
410
- some?: Prisma.ConnectionWhereInput;
411
- none?: Prisma.ConnectionWhereInput;
412
- };
413
- export type ConnectionOrderByRelationAggregateInput = {
414
- _count?: Prisma.SortOrder;
415
- };
416
- export type ConnectionConfigurationIdExternalAccountIdCompoundUniqueInput = {
417
- configurationId: string;
418
- externalAccountId: string;
419
- };
420
- export type ConnectionCountOrderByAggregateInput = {
421
- id?: Prisma.SortOrder;
422
- organizationId?: Prisma.SortOrder;
423
- endUserId?: Prisma.SortOrder;
424
- configurationId?: Prisma.SortOrder;
425
- label?: Prisma.SortOrder;
426
- externalAccountId?: Prisma.SortOrder;
427
- status?: Prisma.SortOrder;
428
- scopes?: Prisma.SortOrder;
429
- lastSyncedAt?: Prisma.SortOrder;
430
- lastUsedAt?: Prisma.SortOrder;
431
- errorMessage?: Prisma.SortOrder;
432
- metadata?: Prisma.SortOrder;
433
- createdAt?: Prisma.SortOrder;
434
- updatedAt?: Prisma.SortOrder;
435
- };
436
- export type ConnectionMaxOrderByAggregateInput = {
437
- id?: Prisma.SortOrder;
438
- organizationId?: Prisma.SortOrder;
439
- endUserId?: Prisma.SortOrder;
440
- configurationId?: Prisma.SortOrder;
441
- label?: Prisma.SortOrder;
442
- externalAccountId?: Prisma.SortOrder;
443
- status?: Prisma.SortOrder;
444
- lastSyncedAt?: Prisma.SortOrder;
445
- lastUsedAt?: Prisma.SortOrder;
446
- errorMessage?: Prisma.SortOrder;
447
- createdAt?: Prisma.SortOrder;
448
- updatedAt?: Prisma.SortOrder;
449
- };
450
- export type ConnectionMinOrderByAggregateInput = {
451
- id?: Prisma.SortOrder;
452
- organizationId?: Prisma.SortOrder;
453
- endUserId?: Prisma.SortOrder;
454
- configurationId?: Prisma.SortOrder;
455
- label?: Prisma.SortOrder;
456
- externalAccountId?: Prisma.SortOrder;
457
- status?: Prisma.SortOrder;
458
- lastSyncedAt?: Prisma.SortOrder;
459
- lastUsedAt?: Prisma.SortOrder;
460
- errorMessage?: Prisma.SortOrder;
461
- createdAt?: Prisma.SortOrder;
462
- updatedAt?: Prisma.SortOrder;
463
- };
464
- export type ConnectionScalarRelationFilter = {
465
- is?: Prisma.ConnectionWhereInput;
466
- isNot?: Prisma.ConnectionWhereInput;
467
- };
468
- export type ConnectionCreateNestedManyWithoutOrganizationInput = {
469
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutOrganizationInput, Prisma.ConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.ConnectionCreateWithoutOrganizationInput[] | Prisma.ConnectionUncheckedCreateWithoutOrganizationInput[];
470
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutOrganizationInput | Prisma.ConnectionCreateOrConnectWithoutOrganizationInput[];
471
- createMany?: Prisma.ConnectionCreateManyOrganizationInputEnvelope;
472
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
473
- };
474
- export type ConnectionUncheckedCreateNestedManyWithoutOrganizationInput = {
475
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutOrganizationInput, Prisma.ConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.ConnectionCreateWithoutOrganizationInput[] | Prisma.ConnectionUncheckedCreateWithoutOrganizationInput[];
476
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutOrganizationInput | Prisma.ConnectionCreateOrConnectWithoutOrganizationInput[];
477
- createMany?: Prisma.ConnectionCreateManyOrganizationInputEnvelope;
478
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
479
- };
480
- export type ConnectionUpdateManyWithoutOrganizationNestedInput = {
481
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutOrganizationInput, Prisma.ConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.ConnectionCreateWithoutOrganizationInput[] | Prisma.ConnectionUncheckedCreateWithoutOrganizationInput[];
482
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutOrganizationInput | Prisma.ConnectionCreateOrConnectWithoutOrganizationInput[];
483
- upsert?: Prisma.ConnectionUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ConnectionUpsertWithWhereUniqueWithoutOrganizationInput[];
484
- createMany?: Prisma.ConnectionCreateManyOrganizationInputEnvelope;
485
- set?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
486
- disconnect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
487
- delete?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
488
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
489
- update?: Prisma.ConnectionUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ConnectionUpdateWithWhereUniqueWithoutOrganizationInput[];
490
- updateMany?: Prisma.ConnectionUpdateManyWithWhereWithoutOrganizationInput | Prisma.ConnectionUpdateManyWithWhereWithoutOrganizationInput[];
491
- deleteMany?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
492
- };
493
- export type ConnectionUncheckedUpdateManyWithoutOrganizationNestedInput = {
494
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutOrganizationInput, Prisma.ConnectionUncheckedCreateWithoutOrganizationInput> | Prisma.ConnectionCreateWithoutOrganizationInput[] | Prisma.ConnectionUncheckedCreateWithoutOrganizationInput[];
495
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutOrganizationInput | Prisma.ConnectionCreateOrConnectWithoutOrganizationInput[];
496
- upsert?: Prisma.ConnectionUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.ConnectionUpsertWithWhereUniqueWithoutOrganizationInput[];
497
- createMany?: Prisma.ConnectionCreateManyOrganizationInputEnvelope;
498
- set?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
499
- disconnect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
500
- delete?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
501
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
502
- update?: Prisma.ConnectionUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.ConnectionUpdateWithWhereUniqueWithoutOrganizationInput[];
503
- updateMany?: Prisma.ConnectionUpdateManyWithWhereWithoutOrganizationInput | Prisma.ConnectionUpdateManyWithWhereWithoutOrganizationInput[];
504
- deleteMany?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
505
- };
506
- export type ConnectionCreateNestedManyWithoutConfigurationInput = {
507
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutConfigurationInput, Prisma.ConnectionUncheckedCreateWithoutConfigurationInput> | Prisma.ConnectionCreateWithoutConfigurationInput[] | Prisma.ConnectionUncheckedCreateWithoutConfigurationInput[];
508
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutConfigurationInput | Prisma.ConnectionCreateOrConnectWithoutConfigurationInput[];
509
- createMany?: Prisma.ConnectionCreateManyConfigurationInputEnvelope;
510
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
511
- };
512
- export type ConnectionUncheckedCreateNestedManyWithoutConfigurationInput = {
513
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutConfigurationInput, Prisma.ConnectionUncheckedCreateWithoutConfigurationInput> | Prisma.ConnectionCreateWithoutConfigurationInput[] | Prisma.ConnectionUncheckedCreateWithoutConfigurationInput[];
514
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutConfigurationInput | Prisma.ConnectionCreateOrConnectWithoutConfigurationInput[];
515
- createMany?: Prisma.ConnectionCreateManyConfigurationInputEnvelope;
516
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
517
- };
518
- export type ConnectionUpdateManyWithoutConfigurationNestedInput = {
519
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutConfigurationInput, Prisma.ConnectionUncheckedCreateWithoutConfigurationInput> | Prisma.ConnectionCreateWithoutConfigurationInput[] | Prisma.ConnectionUncheckedCreateWithoutConfigurationInput[];
520
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutConfigurationInput | Prisma.ConnectionCreateOrConnectWithoutConfigurationInput[];
521
- upsert?: Prisma.ConnectionUpsertWithWhereUniqueWithoutConfigurationInput | Prisma.ConnectionUpsertWithWhereUniqueWithoutConfigurationInput[];
522
- createMany?: Prisma.ConnectionCreateManyConfigurationInputEnvelope;
523
- set?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
524
- disconnect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
525
- delete?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
526
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
527
- update?: Prisma.ConnectionUpdateWithWhereUniqueWithoutConfigurationInput | Prisma.ConnectionUpdateWithWhereUniqueWithoutConfigurationInput[];
528
- updateMany?: Prisma.ConnectionUpdateManyWithWhereWithoutConfigurationInput | Prisma.ConnectionUpdateManyWithWhereWithoutConfigurationInput[];
529
- deleteMany?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
530
- };
531
- export type ConnectionUncheckedUpdateManyWithoutConfigurationNestedInput = {
532
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutConfigurationInput, Prisma.ConnectionUncheckedCreateWithoutConfigurationInput> | Prisma.ConnectionCreateWithoutConfigurationInput[] | Prisma.ConnectionUncheckedCreateWithoutConfigurationInput[];
533
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutConfigurationInput | Prisma.ConnectionCreateOrConnectWithoutConfigurationInput[];
534
- upsert?: Prisma.ConnectionUpsertWithWhereUniqueWithoutConfigurationInput | Prisma.ConnectionUpsertWithWhereUniqueWithoutConfigurationInput[];
535
- createMany?: Prisma.ConnectionCreateManyConfigurationInputEnvelope;
536
- set?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
537
- disconnect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
538
- delete?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
539
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
540
- update?: Prisma.ConnectionUpdateWithWhereUniqueWithoutConfigurationInput | Prisma.ConnectionUpdateWithWhereUniqueWithoutConfigurationInput[];
541
- updateMany?: Prisma.ConnectionUpdateManyWithWhereWithoutConfigurationInput | Prisma.ConnectionUpdateManyWithWhereWithoutConfigurationInput[];
542
- deleteMany?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
543
- };
544
- export type ConnectionCreateNestedManyWithoutEndUserInput = {
545
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutEndUserInput, Prisma.ConnectionUncheckedCreateWithoutEndUserInput> | Prisma.ConnectionCreateWithoutEndUserInput[] | Prisma.ConnectionUncheckedCreateWithoutEndUserInput[];
546
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutEndUserInput | Prisma.ConnectionCreateOrConnectWithoutEndUserInput[];
547
- createMany?: Prisma.ConnectionCreateManyEndUserInputEnvelope;
548
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
549
- };
550
- export type ConnectionUncheckedCreateNestedManyWithoutEndUserInput = {
551
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutEndUserInput, Prisma.ConnectionUncheckedCreateWithoutEndUserInput> | Prisma.ConnectionCreateWithoutEndUserInput[] | Prisma.ConnectionUncheckedCreateWithoutEndUserInput[];
552
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutEndUserInput | Prisma.ConnectionCreateOrConnectWithoutEndUserInput[];
553
- createMany?: Prisma.ConnectionCreateManyEndUserInputEnvelope;
554
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
555
- };
556
- export type ConnectionUpdateManyWithoutEndUserNestedInput = {
557
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutEndUserInput, Prisma.ConnectionUncheckedCreateWithoutEndUserInput> | Prisma.ConnectionCreateWithoutEndUserInput[] | Prisma.ConnectionUncheckedCreateWithoutEndUserInput[];
558
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutEndUserInput | Prisma.ConnectionCreateOrConnectWithoutEndUserInput[];
559
- upsert?: Prisma.ConnectionUpsertWithWhereUniqueWithoutEndUserInput | Prisma.ConnectionUpsertWithWhereUniqueWithoutEndUserInput[];
560
- createMany?: Prisma.ConnectionCreateManyEndUserInputEnvelope;
561
- set?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
562
- disconnect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
563
- delete?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
564
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
565
- update?: Prisma.ConnectionUpdateWithWhereUniqueWithoutEndUserInput | Prisma.ConnectionUpdateWithWhereUniqueWithoutEndUserInput[];
566
- updateMany?: Prisma.ConnectionUpdateManyWithWhereWithoutEndUserInput | Prisma.ConnectionUpdateManyWithWhereWithoutEndUserInput[];
567
- deleteMany?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
568
- };
569
- export type ConnectionUncheckedUpdateManyWithoutEndUserNestedInput = {
570
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutEndUserInput, Prisma.ConnectionUncheckedCreateWithoutEndUserInput> | Prisma.ConnectionCreateWithoutEndUserInput[] | Prisma.ConnectionUncheckedCreateWithoutEndUserInput[];
571
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutEndUserInput | Prisma.ConnectionCreateOrConnectWithoutEndUserInput[];
572
- upsert?: Prisma.ConnectionUpsertWithWhereUniqueWithoutEndUserInput | Prisma.ConnectionUpsertWithWhereUniqueWithoutEndUserInput[];
573
- createMany?: Prisma.ConnectionCreateManyEndUserInputEnvelope;
574
- set?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
575
- disconnect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
576
- delete?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
577
- connect?: Prisma.ConnectionWhereUniqueInput | Prisma.ConnectionWhereUniqueInput[];
578
- update?: Prisma.ConnectionUpdateWithWhereUniqueWithoutEndUserInput | Prisma.ConnectionUpdateWithWhereUniqueWithoutEndUserInput[];
579
- updateMany?: Prisma.ConnectionUpdateManyWithWhereWithoutEndUserInput | Prisma.ConnectionUpdateManyWithWhereWithoutEndUserInput[];
580
- deleteMany?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
581
- };
582
- export type ConnectionCreatescopesInput = {
583
- set: string[];
584
- };
585
- export type EnumConnectionStatusFieldUpdateOperationsInput = {
586
- set?: $Enums.ConnectionStatus;
587
- };
588
- export type ConnectionUpdatescopesInput = {
589
- set?: string[];
590
- push?: string | string[];
591
- };
592
- export type ConnectionCreateNestedOneWithoutCredentialInput = {
593
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutCredentialInput, Prisma.ConnectionUncheckedCreateWithoutCredentialInput>;
594
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutCredentialInput;
595
- connect?: Prisma.ConnectionWhereUniqueInput;
596
- };
597
- export type ConnectionUpdateOneRequiredWithoutCredentialNestedInput = {
598
- create?: Prisma.XOR<Prisma.ConnectionCreateWithoutCredentialInput, Prisma.ConnectionUncheckedCreateWithoutCredentialInput>;
599
- connectOrCreate?: Prisma.ConnectionCreateOrConnectWithoutCredentialInput;
600
- upsert?: Prisma.ConnectionUpsertWithoutCredentialInput;
601
- connect?: Prisma.ConnectionWhereUniqueInput;
602
- update?: Prisma.XOR<Prisma.XOR<Prisma.ConnectionUpdateToOneWithWhereWithoutCredentialInput, Prisma.ConnectionUpdateWithoutCredentialInput>, Prisma.ConnectionUncheckedUpdateWithoutCredentialInput>;
603
- };
604
- export type ConnectionCreateWithoutOrganizationInput = {
605
- id?: string;
606
- label?: string | null;
607
- externalAccountId?: string | null;
608
- status?: $Enums.ConnectionStatus;
609
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
610
- lastSyncedAt?: Date | string | null;
611
- lastUsedAt?: Date | string | null;
612
- errorMessage?: string | null;
613
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
614
- createdAt?: Date | string;
615
- updatedAt?: Date | string;
616
- endUser: Prisma.EndUserCreateNestedOneWithoutConnectionsInput;
617
- configuration: Prisma.ConfigurationCreateNestedOneWithoutConnectionsInput;
618
- credential?: Prisma.ConnectionCredentialCreateNestedOneWithoutConnectionInput;
619
- };
620
- export type ConnectionUncheckedCreateWithoutOrganizationInput = {
621
- id?: string;
622
- endUserId: string;
623
- configurationId: string;
624
- label?: string | null;
625
- externalAccountId?: string | null;
626
- status?: $Enums.ConnectionStatus;
627
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
628
- lastSyncedAt?: Date | string | null;
629
- lastUsedAt?: Date | string | null;
630
- errorMessage?: string | null;
631
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
632
- createdAt?: Date | string;
633
- updatedAt?: Date | string;
634
- credential?: Prisma.ConnectionCredentialUncheckedCreateNestedOneWithoutConnectionInput;
635
- };
636
- export type ConnectionCreateOrConnectWithoutOrganizationInput = {
637
- where: Prisma.ConnectionWhereUniqueInput;
638
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutOrganizationInput, Prisma.ConnectionUncheckedCreateWithoutOrganizationInput>;
639
- };
640
- export type ConnectionCreateManyOrganizationInputEnvelope = {
641
- data: Prisma.ConnectionCreateManyOrganizationInput | Prisma.ConnectionCreateManyOrganizationInput[];
642
- skipDuplicates?: boolean;
643
- };
644
- export type ConnectionUpsertWithWhereUniqueWithoutOrganizationInput = {
645
- where: Prisma.ConnectionWhereUniqueInput;
646
- update: Prisma.XOR<Prisma.ConnectionUpdateWithoutOrganizationInput, Prisma.ConnectionUncheckedUpdateWithoutOrganizationInput>;
647
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutOrganizationInput, Prisma.ConnectionUncheckedCreateWithoutOrganizationInput>;
648
- };
649
- export type ConnectionUpdateWithWhereUniqueWithoutOrganizationInput = {
650
- where: Prisma.ConnectionWhereUniqueInput;
651
- data: Prisma.XOR<Prisma.ConnectionUpdateWithoutOrganizationInput, Prisma.ConnectionUncheckedUpdateWithoutOrganizationInput>;
652
- };
653
- export type ConnectionUpdateManyWithWhereWithoutOrganizationInput = {
654
- where: Prisma.ConnectionScalarWhereInput;
655
- data: Prisma.XOR<Prisma.ConnectionUpdateManyMutationInput, Prisma.ConnectionUncheckedUpdateManyWithoutOrganizationInput>;
656
- };
657
- export type ConnectionScalarWhereInput = {
658
- AND?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
659
- OR?: Prisma.ConnectionScalarWhereInput[];
660
- NOT?: Prisma.ConnectionScalarWhereInput | Prisma.ConnectionScalarWhereInput[];
661
- id?: Prisma.StringFilter<"Connection"> | string;
662
- organizationId?: Prisma.StringFilter<"Connection"> | string;
663
- endUserId?: Prisma.StringFilter<"Connection"> | string;
664
- configurationId?: Prisma.StringFilter<"Connection"> | string;
665
- label?: Prisma.StringNullableFilter<"Connection"> | string | null;
666
- externalAccountId?: Prisma.StringNullableFilter<"Connection"> | string | null;
667
- status?: Prisma.EnumConnectionStatusFilter<"Connection"> | $Enums.ConnectionStatus;
668
- scopes?: Prisma.StringNullableListFilter<"Connection">;
669
- lastSyncedAt?: Prisma.DateTimeNullableFilter<"Connection"> | Date | string | null;
670
- lastUsedAt?: Prisma.DateTimeNullableFilter<"Connection"> | Date | string | null;
671
- errorMessage?: Prisma.StringNullableFilter<"Connection"> | string | null;
672
- metadata?: Prisma.JsonNullableFilter<"Connection">;
673
- createdAt?: Prisma.DateTimeFilter<"Connection"> | Date | string;
674
- updatedAt?: Prisma.DateTimeFilter<"Connection"> | Date | string;
675
- };
676
- export type ConnectionCreateWithoutConfigurationInput = {
677
- id?: string;
678
- label?: string | null;
679
- externalAccountId?: string | null;
680
- status?: $Enums.ConnectionStatus;
681
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
682
- lastSyncedAt?: Date | string | null;
683
- lastUsedAt?: Date | string | null;
684
- errorMessage?: string | null;
685
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
686
- createdAt?: Date | string;
687
- updatedAt?: Date | string;
688
- organization: Prisma.OrganizationCreateNestedOneWithoutConnectionsInput;
689
- endUser: Prisma.EndUserCreateNestedOneWithoutConnectionsInput;
690
- credential?: Prisma.ConnectionCredentialCreateNestedOneWithoutConnectionInput;
691
- };
692
- export type ConnectionUncheckedCreateWithoutConfigurationInput = {
693
- id?: string;
694
- organizationId: string;
695
- endUserId: string;
696
- label?: string | null;
697
- externalAccountId?: string | null;
698
- status?: $Enums.ConnectionStatus;
699
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
700
- lastSyncedAt?: Date | string | null;
701
- lastUsedAt?: Date | string | null;
702
- errorMessage?: string | null;
703
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
704
- createdAt?: Date | string;
705
- updatedAt?: Date | string;
706
- credential?: Prisma.ConnectionCredentialUncheckedCreateNestedOneWithoutConnectionInput;
707
- };
708
- export type ConnectionCreateOrConnectWithoutConfigurationInput = {
709
- where: Prisma.ConnectionWhereUniqueInput;
710
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutConfigurationInput, Prisma.ConnectionUncheckedCreateWithoutConfigurationInput>;
711
- };
712
- export type ConnectionCreateManyConfigurationInputEnvelope = {
713
- data: Prisma.ConnectionCreateManyConfigurationInput | Prisma.ConnectionCreateManyConfigurationInput[];
714
- skipDuplicates?: boolean;
715
- };
716
- export type ConnectionUpsertWithWhereUniqueWithoutConfigurationInput = {
717
- where: Prisma.ConnectionWhereUniqueInput;
718
- update: Prisma.XOR<Prisma.ConnectionUpdateWithoutConfigurationInput, Prisma.ConnectionUncheckedUpdateWithoutConfigurationInput>;
719
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutConfigurationInput, Prisma.ConnectionUncheckedCreateWithoutConfigurationInput>;
720
- };
721
- export type ConnectionUpdateWithWhereUniqueWithoutConfigurationInput = {
722
- where: Prisma.ConnectionWhereUniqueInput;
723
- data: Prisma.XOR<Prisma.ConnectionUpdateWithoutConfigurationInput, Prisma.ConnectionUncheckedUpdateWithoutConfigurationInput>;
724
- };
725
- export type ConnectionUpdateManyWithWhereWithoutConfigurationInput = {
726
- where: Prisma.ConnectionScalarWhereInput;
727
- data: Prisma.XOR<Prisma.ConnectionUpdateManyMutationInput, Prisma.ConnectionUncheckedUpdateManyWithoutConfigurationInput>;
728
- };
729
- export type ConnectionCreateWithoutEndUserInput = {
730
- id?: string;
731
- label?: string | null;
732
- externalAccountId?: string | null;
733
- status?: $Enums.ConnectionStatus;
734
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
735
- lastSyncedAt?: Date | string | null;
736
- lastUsedAt?: Date | string | null;
737
- errorMessage?: string | null;
738
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
739
- createdAt?: Date | string;
740
- updatedAt?: Date | string;
741
- organization: Prisma.OrganizationCreateNestedOneWithoutConnectionsInput;
742
- configuration: Prisma.ConfigurationCreateNestedOneWithoutConnectionsInput;
743
- credential?: Prisma.ConnectionCredentialCreateNestedOneWithoutConnectionInput;
744
- };
745
- export type ConnectionUncheckedCreateWithoutEndUserInput = {
746
- id?: string;
747
- organizationId: string;
748
- configurationId: string;
749
- label?: string | null;
750
- externalAccountId?: string | null;
751
- status?: $Enums.ConnectionStatus;
752
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
753
- lastSyncedAt?: Date | string | null;
754
- lastUsedAt?: Date | string | null;
755
- errorMessage?: string | null;
756
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
757
- createdAt?: Date | string;
758
- updatedAt?: Date | string;
759
- credential?: Prisma.ConnectionCredentialUncheckedCreateNestedOneWithoutConnectionInput;
760
- };
761
- export type ConnectionCreateOrConnectWithoutEndUserInput = {
762
- where: Prisma.ConnectionWhereUniqueInput;
763
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutEndUserInput, Prisma.ConnectionUncheckedCreateWithoutEndUserInput>;
764
- };
765
- export type ConnectionCreateManyEndUserInputEnvelope = {
766
- data: Prisma.ConnectionCreateManyEndUserInput | Prisma.ConnectionCreateManyEndUserInput[];
767
- skipDuplicates?: boolean;
768
- };
769
- export type ConnectionUpsertWithWhereUniqueWithoutEndUserInput = {
770
- where: Prisma.ConnectionWhereUniqueInput;
771
- update: Prisma.XOR<Prisma.ConnectionUpdateWithoutEndUserInput, Prisma.ConnectionUncheckedUpdateWithoutEndUserInput>;
772
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutEndUserInput, Prisma.ConnectionUncheckedCreateWithoutEndUserInput>;
773
- };
774
- export type ConnectionUpdateWithWhereUniqueWithoutEndUserInput = {
775
- where: Prisma.ConnectionWhereUniqueInput;
776
- data: Prisma.XOR<Prisma.ConnectionUpdateWithoutEndUserInput, Prisma.ConnectionUncheckedUpdateWithoutEndUserInput>;
777
- };
778
- export type ConnectionUpdateManyWithWhereWithoutEndUserInput = {
779
- where: Prisma.ConnectionScalarWhereInput;
780
- data: Prisma.XOR<Prisma.ConnectionUpdateManyMutationInput, Prisma.ConnectionUncheckedUpdateManyWithoutEndUserInput>;
781
- };
782
- export type ConnectionCreateWithoutCredentialInput = {
783
- id?: string;
784
- label?: string | null;
785
- externalAccountId?: string | null;
786
- status?: $Enums.ConnectionStatus;
787
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
788
- lastSyncedAt?: Date | string | null;
789
- lastUsedAt?: Date | string | null;
790
- errorMessage?: string | null;
791
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
792
- createdAt?: Date | string;
793
- updatedAt?: Date | string;
794
- organization: Prisma.OrganizationCreateNestedOneWithoutConnectionsInput;
795
- endUser: Prisma.EndUserCreateNestedOneWithoutConnectionsInput;
796
- configuration: Prisma.ConfigurationCreateNestedOneWithoutConnectionsInput;
797
- };
798
- export type ConnectionUncheckedCreateWithoutCredentialInput = {
799
- id?: string;
800
- organizationId: string;
801
- endUserId: string;
802
- configurationId: string;
803
- label?: string | null;
804
- externalAccountId?: string | null;
805
- status?: $Enums.ConnectionStatus;
806
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
807
- lastSyncedAt?: Date | string | null;
808
- lastUsedAt?: Date | string | null;
809
- errorMessage?: string | null;
810
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
811
- createdAt?: Date | string;
812
- updatedAt?: Date | string;
813
- };
814
- export type ConnectionCreateOrConnectWithoutCredentialInput = {
815
- where: Prisma.ConnectionWhereUniqueInput;
816
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutCredentialInput, Prisma.ConnectionUncheckedCreateWithoutCredentialInput>;
817
- };
818
- export type ConnectionUpsertWithoutCredentialInput = {
819
- update: Prisma.XOR<Prisma.ConnectionUpdateWithoutCredentialInput, Prisma.ConnectionUncheckedUpdateWithoutCredentialInput>;
820
- create: Prisma.XOR<Prisma.ConnectionCreateWithoutCredentialInput, Prisma.ConnectionUncheckedCreateWithoutCredentialInput>;
821
- where?: Prisma.ConnectionWhereInput;
822
- };
823
- export type ConnectionUpdateToOneWithWhereWithoutCredentialInput = {
824
- where?: Prisma.ConnectionWhereInput;
825
- data: Prisma.XOR<Prisma.ConnectionUpdateWithoutCredentialInput, Prisma.ConnectionUncheckedUpdateWithoutCredentialInput>;
826
- };
827
- export type ConnectionUpdateWithoutCredentialInput = {
828
- id?: Prisma.StringFieldUpdateOperationsInput | string;
829
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
830
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
831
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
832
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
833
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
834
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
835
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
836
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
837
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
838
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
839
- organization?: Prisma.OrganizationUpdateOneRequiredWithoutConnectionsNestedInput;
840
- endUser?: Prisma.EndUserUpdateOneRequiredWithoutConnectionsNestedInput;
841
- configuration?: Prisma.ConfigurationUpdateOneRequiredWithoutConnectionsNestedInput;
842
- };
843
- export type ConnectionUncheckedUpdateWithoutCredentialInput = {
844
- id?: Prisma.StringFieldUpdateOperationsInput | string;
845
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
846
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
847
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
848
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
849
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
850
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
851
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
852
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
853
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
854
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
855
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
856
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
857
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
858
- };
859
- export type ConnectionCreateManyOrganizationInput = {
860
- id?: string;
861
- endUserId: string;
862
- configurationId: string;
863
- label?: string | null;
864
- externalAccountId?: string | null;
865
- status?: $Enums.ConnectionStatus;
866
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
867
- lastSyncedAt?: Date | string | null;
868
- lastUsedAt?: Date | string | null;
869
- errorMessage?: string | null;
870
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
871
- createdAt?: Date | string;
872
- updatedAt?: Date | string;
873
- };
874
- export type ConnectionUpdateWithoutOrganizationInput = {
875
- id?: Prisma.StringFieldUpdateOperationsInput | string;
876
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
877
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
878
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
879
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
880
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
881
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
882
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
883
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
884
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
885
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
886
- endUser?: Prisma.EndUserUpdateOneRequiredWithoutConnectionsNestedInput;
887
- configuration?: Prisma.ConfigurationUpdateOneRequiredWithoutConnectionsNestedInput;
888
- credential?: Prisma.ConnectionCredentialUpdateOneWithoutConnectionNestedInput;
889
- };
890
- export type ConnectionUncheckedUpdateWithoutOrganizationInput = {
891
- id?: Prisma.StringFieldUpdateOperationsInput | string;
892
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
893
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
894
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
895
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
896
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
897
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
898
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
899
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
900
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
901
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
902
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
903
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
904
- credential?: Prisma.ConnectionCredentialUncheckedUpdateOneWithoutConnectionNestedInput;
905
- };
906
- export type ConnectionUncheckedUpdateManyWithoutOrganizationInput = {
907
- id?: Prisma.StringFieldUpdateOperationsInput | string;
908
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
909
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
910
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
911
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
912
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
913
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
914
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
915
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
916
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
917
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
918
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
919
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
920
- };
921
- export type ConnectionCreateManyConfigurationInput = {
922
- id?: string;
923
- organizationId: string;
924
- endUserId: string;
925
- label?: string | null;
926
- externalAccountId?: string | null;
927
- status?: $Enums.ConnectionStatus;
928
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
929
- lastSyncedAt?: Date | string | null;
930
- lastUsedAt?: Date | string | null;
931
- errorMessage?: string | null;
932
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
933
- createdAt?: Date | string;
934
- updatedAt?: Date | string;
935
- };
936
- export type ConnectionUpdateWithoutConfigurationInput = {
937
- id?: Prisma.StringFieldUpdateOperationsInput | string;
938
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
939
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
940
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
941
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
942
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
943
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
944
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
945
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
946
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
947
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
948
- organization?: Prisma.OrganizationUpdateOneRequiredWithoutConnectionsNestedInput;
949
- endUser?: Prisma.EndUserUpdateOneRequiredWithoutConnectionsNestedInput;
950
- credential?: Prisma.ConnectionCredentialUpdateOneWithoutConnectionNestedInput;
951
- };
952
- export type ConnectionUncheckedUpdateWithoutConfigurationInput = {
953
- id?: Prisma.StringFieldUpdateOperationsInput | string;
954
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
955
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
956
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
957
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
958
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
959
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
960
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
961
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
962
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
963
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
964
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
965
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
966
- credential?: Prisma.ConnectionCredentialUncheckedUpdateOneWithoutConnectionNestedInput;
967
- };
968
- export type ConnectionUncheckedUpdateManyWithoutConfigurationInput = {
969
- id?: Prisma.StringFieldUpdateOperationsInput | string;
970
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
971
- endUserId?: Prisma.StringFieldUpdateOperationsInput | string;
972
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
973
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
974
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
975
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
976
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
977
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
978
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
979
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
980
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
981
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
982
- };
983
- export type ConnectionCreateManyEndUserInput = {
984
- id?: string;
985
- organizationId: string;
986
- configurationId: string;
987
- label?: string | null;
988
- externalAccountId?: string | null;
989
- status?: $Enums.ConnectionStatus;
990
- scopes?: Prisma.ConnectionCreatescopesInput | string[];
991
- lastSyncedAt?: Date | string | null;
992
- lastUsedAt?: Date | string | null;
993
- errorMessage?: string | null;
994
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
995
- createdAt?: Date | string;
996
- updatedAt?: Date | string;
997
- };
998
- export type ConnectionUpdateWithoutEndUserInput = {
999
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1000
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1001
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1002
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
1003
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
1004
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1005
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1006
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1007
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1008
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1009
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1010
- organization?: Prisma.OrganizationUpdateOneRequiredWithoutConnectionsNestedInput;
1011
- configuration?: Prisma.ConfigurationUpdateOneRequiredWithoutConnectionsNestedInput;
1012
- credential?: Prisma.ConnectionCredentialUpdateOneWithoutConnectionNestedInput;
1013
- };
1014
- export type ConnectionUncheckedUpdateWithoutEndUserInput = {
1015
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1016
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1017
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
1018
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1019
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1020
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
1021
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
1022
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1023
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1024
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1025
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1026
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1027
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1028
- credential?: Prisma.ConnectionCredentialUncheckedUpdateOneWithoutConnectionNestedInput;
1029
- };
1030
- export type ConnectionUncheckedUpdateManyWithoutEndUserInput = {
1031
- id?: Prisma.StringFieldUpdateOperationsInput | string;
1032
- organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
1033
- configurationId?: Prisma.StringFieldUpdateOperationsInput | string;
1034
- label?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1035
- externalAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1036
- status?: Prisma.EnumConnectionStatusFieldUpdateOperationsInput | $Enums.ConnectionStatus;
1037
- scopes?: Prisma.ConnectionUpdatescopesInput | string[];
1038
- lastSyncedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1039
- lastUsedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1040
- errorMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1041
- metadata?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
1042
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1043
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1044
- };
1045
- export type ConnectionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1046
- id?: boolean;
1047
- organizationId?: boolean;
1048
- endUserId?: boolean;
1049
- configurationId?: boolean;
1050
- label?: boolean;
1051
- externalAccountId?: boolean;
1052
- status?: boolean;
1053
- scopes?: boolean;
1054
- lastSyncedAt?: boolean;
1055
- lastUsedAt?: boolean;
1056
- errorMessage?: boolean;
1057
- metadata?: boolean;
1058
- createdAt?: boolean;
1059
- updatedAt?: boolean;
1060
- organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1061
- endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
1062
- configuration?: boolean | Prisma.ConfigurationDefaultArgs<ExtArgs>;
1063
- credential?: boolean | Prisma.Connection$credentialArgs<ExtArgs>;
1064
- }, ExtArgs["result"]["connection"]>;
1065
- export type ConnectionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1066
- id?: boolean;
1067
- organizationId?: boolean;
1068
- endUserId?: boolean;
1069
- configurationId?: boolean;
1070
- label?: boolean;
1071
- externalAccountId?: boolean;
1072
- status?: boolean;
1073
- scopes?: boolean;
1074
- lastSyncedAt?: boolean;
1075
- lastUsedAt?: boolean;
1076
- errorMessage?: boolean;
1077
- metadata?: boolean;
1078
- createdAt?: boolean;
1079
- updatedAt?: boolean;
1080
- organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1081
- endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
1082
- configuration?: boolean | Prisma.ConfigurationDefaultArgs<ExtArgs>;
1083
- }, ExtArgs["result"]["connection"]>;
1084
- export type ConnectionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1085
- id?: boolean;
1086
- organizationId?: boolean;
1087
- endUserId?: boolean;
1088
- configurationId?: boolean;
1089
- label?: boolean;
1090
- externalAccountId?: boolean;
1091
- status?: boolean;
1092
- scopes?: boolean;
1093
- lastSyncedAt?: boolean;
1094
- lastUsedAt?: boolean;
1095
- errorMessage?: boolean;
1096
- metadata?: boolean;
1097
- createdAt?: boolean;
1098
- updatedAt?: boolean;
1099
- organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1100
- endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
1101
- configuration?: boolean | Prisma.ConfigurationDefaultArgs<ExtArgs>;
1102
- }, ExtArgs["result"]["connection"]>;
1103
- export type ConnectionSelectScalar = {
1104
- id?: boolean;
1105
- organizationId?: boolean;
1106
- endUserId?: boolean;
1107
- configurationId?: boolean;
1108
- label?: boolean;
1109
- externalAccountId?: boolean;
1110
- status?: boolean;
1111
- scopes?: boolean;
1112
- lastSyncedAt?: boolean;
1113
- lastUsedAt?: boolean;
1114
- errorMessage?: boolean;
1115
- metadata?: boolean;
1116
- createdAt?: boolean;
1117
- updatedAt?: boolean;
1118
- };
1119
- export type ConnectionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "endUserId" | "configurationId" | "label" | "externalAccountId" | "status" | "scopes" | "lastSyncedAt" | "lastUsedAt" | "errorMessage" | "metadata" | "createdAt" | "updatedAt", ExtArgs["result"]["connection"]>;
1120
- export type ConnectionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1121
- organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1122
- endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
1123
- configuration?: boolean | Prisma.ConfigurationDefaultArgs<ExtArgs>;
1124
- credential?: boolean | Prisma.Connection$credentialArgs<ExtArgs>;
1125
- };
1126
- export type ConnectionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1127
- organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1128
- endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
1129
- configuration?: boolean | Prisma.ConfigurationDefaultArgs<ExtArgs>;
1130
- };
1131
- export type ConnectionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1132
- organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
1133
- endUser?: boolean | Prisma.EndUserDefaultArgs<ExtArgs>;
1134
- configuration?: boolean | Prisma.ConfigurationDefaultArgs<ExtArgs>;
1135
- };
1136
- export type $ConnectionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
- name: "Connection";
1138
- objects: {
1139
- organization: Prisma.$OrganizationPayload<ExtArgs>;
1140
- endUser: Prisma.$EndUserPayload<ExtArgs>;
1141
- configuration: Prisma.$ConfigurationPayload<ExtArgs>;
1142
- credential: Prisma.$ConnectionCredentialPayload<ExtArgs> | null;
1143
- };
1144
- scalars: runtime.Types.Extensions.GetPayloadResult<{
1145
- id: string;
1146
- organizationId: string;
1147
- endUserId: string;
1148
- configurationId: string;
1149
- label: string | null;
1150
- externalAccountId: string | null;
1151
- status: $Enums.ConnectionStatus;
1152
- scopes: string[];
1153
- lastSyncedAt: Date | null;
1154
- lastUsedAt: Date | null;
1155
- errorMessage: string | null;
1156
- metadata: runtime.JsonValue | null;
1157
- createdAt: Date;
1158
- updatedAt: Date;
1159
- }, ExtArgs["result"]["connection"]>;
1160
- composites: {};
1161
- };
1162
- export type ConnectionGetPayload<S extends boolean | null | undefined | ConnectionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ConnectionPayload, S>;
1163
- export type ConnectionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ConnectionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1164
- select?: ConnectionCountAggregateInputType | true;
1165
- };
1166
- export interface ConnectionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1167
- [K: symbol]: {
1168
- types: Prisma.TypeMap<ExtArgs>['model']['Connection'];
1169
- meta: {
1170
- name: 'Connection';
1171
- };
1172
- };
1173
- /**
1174
- * Find zero or one Connection that matches the filter.
1175
- * @param {ConnectionFindUniqueArgs} args - Arguments to find a Connection
1176
- * @example
1177
- * // Get one Connection
1178
- * const connection = await prisma.connection.findUnique({
1179
- * where: {
1180
- * // ... provide filter here
1181
- * }
1182
- * })
1183
- */
1184
- findUnique<T extends ConnectionFindUniqueArgs>(args: Prisma.SelectSubset<T, ConnectionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1185
- /**
1186
- * Find one Connection that matches the filter or throw an error with `error.code='P2025'`
1187
- * if no matches were found.
1188
- * @param {ConnectionFindUniqueOrThrowArgs} args - Arguments to find a Connection
1189
- * @example
1190
- * // Get one Connection
1191
- * const connection = await prisma.connection.findUniqueOrThrow({
1192
- * where: {
1193
- * // ... provide filter here
1194
- * }
1195
- * })
1196
- */
1197
- findUniqueOrThrow<T extends ConnectionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ConnectionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1198
- /**
1199
- * Find the first Connection that matches the filter.
1200
- * Note, that providing `undefined` is treated as the value not being there.
1201
- * Read more here: https://pris.ly/d/null-undefined
1202
- * @param {ConnectionFindFirstArgs} args - Arguments to find a Connection
1203
- * @example
1204
- * // Get one Connection
1205
- * const connection = await prisma.connection.findFirst({
1206
- * where: {
1207
- * // ... provide filter here
1208
- * }
1209
- * })
1210
- */
1211
- findFirst<T extends ConnectionFindFirstArgs>(args?: Prisma.SelectSubset<T, ConnectionFindFirstArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1212
- /**
1213
- * Find the first Connection that matches the filter or
1214
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1215
- * Note, that providing `undefined` is treated as the value not being there.
1216
- * Read more here: https://pris.ly/d/null-undefined
1217
- * @param {ConnectionFindFirstOrThrowArgs} args - Arguments to find a Connection
1218
- * @example
1219
- * // Get one Connection
1220
- * const connection = await prisma.connection.findFirstOrThrow({
1221
- * where: {
1222
- * // ... provide filter here
1223
- * }
1224
- * })
1225
- */
1226
- findFirstOrThrow<T extends ConnectionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ConnectionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1227
- /**
1228
- * Find zero or more Connections that matches the filter.
1229
- * Note, that providing `undefined` is treated as the value not being there.
1230
- * Read more here: https://pris.ly/d/null-undefined
1231
- * @param {ConnectionFindManyArgs} args - Arguments to filter and select certain fields only.
1232
- * @example
1233
- * // Get all Connections
1234
- * const connections = await prisma.connection.findMany()
1235
- *
1236
- * // Get first 10 Connections
1237
- * const connections = await prisma.connection.findMany({ take: 10 })
1238
- *
1239
- * // Only select the `id`
1240
- * const connectionWithIdOnly = await prisma.connection.findMany({ select: { id: true } })
1241
- *
1242
- */
1243
- findMany<T extends ConnectionFindManyArgs>(args?: Prisma.SelectSubset<T, ConnectionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1244
- /**
1245
- * Create a Connection.
1246
- * @param {ConnectionCreateArgs} args - Arguments to create a Connection.
1247
- * @example
1248
- * // Create one Connection
1249
- * const Connection = await prisma.connection.create({
1250
- * data: {
1251
- * // ... data to create a Connection
1252
- * }
1253
- * })
1254
- *
1255
- */
1256
- create<T extends ConnectionCreateArgs>(args: Prisma.SelectSubset<T, ConnectionCreateArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1257
- /**
1258
- * Create many Connections.
1259
- * @param {ConnectionCreateManyArgs} args - Arguments to create many Connections.
1260
- * @example
1261
- * // Create many Connections
1262
- * const connection = await prisma.connection.createMany({
1263
- * data: [
1264
- * // ... provide data here
1265
- * ]
1266
- * })
1267
- *
1268
- */
1269
- createMany<T extends ConnectionCreateManyArgs>(args?: Prisma.SelectSubset<T, ConnectionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1270
- /**
1271
- * Create many Connections and returns the data saved in the database.
1272
- * @param {ConnectionCreateManyAndReturnArgs} args - Arguments to create many Connections.
1273
- * @example
1274
- * // Create many Connections
1275
- * const connection = await prisma.connection.createManyAndReturn({
1276
- * data: [
1277
- * // ... provide data here
1278
- * ]
1279
- * })
1280
- *
1281
- * // Create many Connections and only return the `id`
1282
- * const connectionWithIdOnly = await prisma.connection.createManyAndReturn({
1283
- * select: { id: true },
1284
- * data: [
1285
- * // ... provide data here
1286
- * ]
1287
- * })
1288
- * Note, that providing `undefined` is treated as the value not being there.
1289
- * Read more here: https://pris.ly/d/null-undefined
1290
- *
1291
- */
1292
- createManyAndReturn<T extends ConnectionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ConnectionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1293
- /**
1294
- * Delete a Connection.
1295
- * @param {ConnectionDeleteArgs} args - Arguments to delete one Connection.
1296
- * @example
1297
- * // Delete one Connection
1298
- * const Connection = await prisma.connection.delete({
1299
- * where: {
1300
- * // ... filter to delete one Connection
1301
- * }
1302
- * })
1303
- *
1304
- */
1305
- delete<T extends ConnectionDeleteArgs>(args: Prisma.SelectSubset<T, ConnectionDeleteArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1306
- /**
1307
- * Update one Connection.
1308
- * @param {ConnectionUpdateArgs} args - Arguments to update one Connection.
1309
- * @example
1310
- * // Update one Connection
1311
- * const connection = await prisma.connection.update({
1312
- * where: {
1313
- * // ... provide filter here
1314
- * },
1315
- * data: {
1316
- * // ... provide data here
1317
- * }
1318
- * })
1319
- *
1320
- */
1321
- update<T extends ConnectionUpdateArgs>(args: Prisma.SelectSubset<T, ConnectionUpdateArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1322
- /**
1323
- * Delete zero or more Connections.
1324
- * @param {ConnectionDeleteManyArgs} args - Arguments to filter Connections to delete.
1325
- * @example
1326
- * // Delete a few Connections
1327
- * const { count } = await prisma.connection.deleteMany({
1328
- * where: {
1329
- * // ... provide filter here
1330
- * }
1331
- * })
1332
- *
1333
- */
1334
- deleteMany<T extends ConnectionDeleteManyArgs>(args?: Prisma.SelectSubset<T, ConnectionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1335
- /**
1336
- * Update zero or more Connections.
1337
- * Note, that providing `undefined` is treated as the value not being there.
1338
- * Read more here: https://pris.ly/d/null-undefined
1339
- * @param {ConnectionUpdateManyArgs} args - Arguments to update one or more rows.
1340
- * @example
1341
- * // Update many Connections
1342
- * const connection = await prisma.connection.updateMany({
1343
- * where: {
1344
- * // ... provide filter here
1345
- * },
1346
- * data: {
1347
- * // ... provide data here
1348
- * }
1349
- * })
1350
- *
1351
- */
1352
- updateMany<T extends ConnectionUpdateManyArgs>(args: Prisma.SelectSubset<T, ConnectionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1353
- /**
1354
- * Update zero or more Connections and returns the data updated in the database.
1355
- * @param {ConnectionUpdateManyAndReturnArgs} args - Arguments to update many Connections.
1356
- * @example
1357
- * // Update many Connections
1358
- * const connection = await prisma.connection.updateManyAndReturn({
1359
- * where: {
1360
- * // ... provide filter here
1361
- * },
1362
- * data: [
1363
- * // ... provide data here
1364
- * ]
1365
- * })
1366
- *
1367
- * // Update zero or more Connections and only return the `id`
1368
- * const connectionWithIdOnly = await prisma.connection.updateManyAndReturn({
1369
- * select: { id: true },
1370
- * where: {
1371
- * // ... provide filter here
1372
- * },
1373
- * data: [
1374
- * // ... provide data here
1375
- * ]
1376
- * })
1377
- * Note, that providing `undefined` is treated as the value not being there.
1378
- * Read more here: https://pris.ly/d/null-undefined
1379
- *
1380
- */
1381
- updateManyAndReturn<T extends ConnectionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ConnectionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1382
- /**
1383
- * Create or update one Connection.
1384
- * @param {ConnectionUpsertArgs} args - Arguments to update or create a Connection.
1385
- * @example
1386
- * // Update or create a Connection
1387
- * const connection = await prisma.connection.upsert({
1388
- * create: {
1389
- * // ... data to create a Connection
1390
- * },
1391
- * update: {
1392
- * // ... in case it already exists, update
1393
- * },
1394
- * where: {
1395
- * // ... the filter for the Connection we want to update
1396
- * }
1397
- * })
1398
- */
1399
- upsert<T extends ConnectionUpsertArgs>(args: Prisma.SelectSubset<T, ConnectionUpsertArgs<ExtArgs>>): Prisma.Prisma__ConnectionClient<runtime.Types.Result.GetResult<Prisma.$ConnectionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1400
- /**
1401
- * Count the number of Connections.
1402
- * Note, that providing `undefined` is treated as the value not being there.
1403
- * Read more here: https://pris.ly/d/null-undefined
1404
- * @param {ConnectionCountArgs} args - Arguments to filter Connections to count.
1405
- * @example
1406
- * // Count the number of Connections
1407
- * const count = await prisma.connection.count({
1408
- * where: {
1409
- * // ... the filter for the Connections we want to count
1410
- * }
1411
- * })
1412
- **/
1413
- count<T extends ConnectionCountArgs>(args?: Prisma.Subset<T, ConnectionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ConnectionCountAggregateOutputType> : number>;
1414
- /**
1415
- * Allows you to perform aggregations operations on a Connection.
1416
- * Note, that providing `undefined` is treated as the value not being there.
1417
- * Read more here: https://pris.ly/d/null-undefined
1418
- * @param {ConnectionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1419
- * @example
1420
- * // Ordered by age ascending
1421
- * // Where email contains prisma.io
1422
- * // Limited to the 10 users
1423
- * const aggregations = await prisma.user.aggregate({
1424
- * _avg: {
1425
- * age: true,
1426
- * },
1427
- * where: {
1428
- * email: {
1429
- * contains: "prisma.io",
1430
- * },
1431
- * },
1432
- * orderBy: {
1433
- * age: "asc",
1434
- * },
1435
- * take: 10,
1436
- * })
1437
- **/
1438
- aggregate<T extends ConnectionAggregateArgs>(args: Prisma.Subset<T, ConnectionAggregateArgs>): Prisma.PrismaPromise<GetConnectionAggregateType<T>>;
1439
- /**
1440
- * Group by Connection.
1441
- * Note, that providing `undefined` is treated as the value not being there.
1442
- * Read more here: https://pris.ly/d/null-undefined
1443
- * @param {ConnectionGroupByArgs} args - Group by arguments.
1444
- * @example
1445
- * // Group by city, order by createdAt, get count
1446
- * const result = await prisma.user.groupBy({
1447
- * by: ['city', 'createdAt'],
1448
- * orderBy: {
1449
- * createdAt: true
1450
- * },
1451
- * _count: {
1452
- * _all: true
1453
- * },
1454
- * })
1455
- *
1456
- **/
1457
- groupBy<T extends ConnectionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1458
- orderBy: ConnectionGroupByArgs['orderBy'];
1459
- } : {
1460
- orderBy?: ConnectionGroupByArgs['orderBy'];
1461
- }, 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 ? {
1462
- [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1463
- Error,
1464
- 'Field ',
1465
- P,
1466
- ` in "having" needs to be provided in "by"`
1467
- ];
1468
- }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1469
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1470
- }[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 ? {} : {
1471
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1472
- }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1473
- [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1474
- }[OrderFields]>(args: Prisma.SubsetIntersection<T, ConnectionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConnectionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1475
- /**
1476
- * Fields of the Connection model
1477
- */
1478
- readonly fields: ConnectionFieldRefs;
1479
- }
1480
- /**
1481
- * The delegate class that acts as a "Promise-like" for Connection.
1482
- * Why is this prefixed with `Prisma__`?
1483
- * Because we want to prevent naming conflicts as mentioned in
1484
- * https://github.com/prisma/prisma-client-js/issues/707
1485
- */
1486
- export interface Prisma__ConnectionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1487
- readonly [Symbol.toStringTag]: "PrismaPromise";
1488
- organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1489
- endUser<T extends Prisma.EndUserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EndUserDefaultArgs<ExtArgs>>): Prisma.Prisma__EndUserClient<runtime.Types.Result.GetResult<Prisma.$EndUserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1490
- configuration<T extends Prisma.ConfigurationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConfigurationDefaultArgs<ExtArgs>>): Prisma.Prisma__ConfigurationClient<runtime.Types.Result.GetResult<Prisma.$ConfigurationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1491
- credential<T extends Prisma.Connection$credentialArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Connection$credentialArgs<ExtArgs>>): Prisma.Prisma__ConnectionCredentialClient<runtime.Types.Result.GetResult<Prisma.$ConnectionCredentialPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1492
- /**
1493
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1494
- * @param onfulfilled The callback to execute when the Promise is resolved.
1495
- * @param onrejected The callback to execute when the Promise is rejected.
1496
- * @returns A Promise for the completion of which ever callback is executed.
1497
- */
1498
- 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>;
1499
- /**
1500
- * Attaches a callback for only the rejection of the Promise.
1501
- * @param onrejected The callback to execute when the Promise is rejected.
1502
- * @returns A Promise for the completion of the callback.
1503
- */
1504
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1505
- /**
1506
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1507
- * resolved value cannot be modified from the callback.
1508
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1509
- * @returns A Promise for the completion of the callback.
1510
- */
1511
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1512
- }
1513
- /**
1514
- * Fields of the Connection model
1515
- */
1516
- export interface ConnectionFieldRefs {
1517
- readonly id: Prisma.FieldRef<"Connection", 'String'>;
1518
- readonly organizationId: Prisma.FieldRef<"Connection", 'String'>;
1519
- readonly endUserId: Prisma.FieldRef<"Connection", 'String'>;
1520
- readonly configurationId: Prisma.FieldRef<"Connection", 'String'>;
1521
- readonly label: Prisma.FieldRef<"Connection", 'String'>;
1522
- readonly externalAccountId: Prisma.FieldRef<"Connection", 'String'>;
1523
- readonly status: Prisma.FieldRef<"Connection", 'ConnectionStatus'>;
1524
- readonly scopes: Prisma.FieldRef<"Connection", 'String[]'>;
1525
- readonly lastSyncedAt: Prisma.FieldRef<"Connection", 'DateTime'>;
1526
- readonly lastUsedAt: Prisma.FieldRef<"Connection", 'DateTime'>;
1527
- readonly errorMessage: Prisma.FieldRef<"Connection", 'String'>;
1528
- readonly metadata: Prisma.FieldRef<"Connection", 'Json'>;
1529
- readonly createdAt: Prisma.FieldRef<"Connection", 'DateTime'>;
1530
- readonly updatedAt: Prisma.FieldRef<"Connection", 'DateTime'>;
1531
- }
1532
- /**
1533
- * Connection findUnique
1534
- */
1535
- export type ConnectionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1536
- /**
1537
- * Select specific fields to fetch from the Connection
1538
- */
1539
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1540
- /**
1541
- * Omit specific fields from the Connection
1542
- */
1543
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1544
- /**
1545
- * Choose, which related nodes to fetch as well
1546
- */
1547
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1548
- /**
1549
- * Filter, which Connection to fetch.
1550
- */
1551
- where: Prisma.ConnectionWhereUniqueInput;
1552
- };
1553
- /**
1554
- * Connection findUniqueOrThrow
1555
- */
1556
- export type ConnectionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1557
- /**
1558
- * Select specific fields to fetch from the Connection
1559
- */
1560
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1561
- /**
1562
- * Omit specific fields from the Connection
1563
- */
1564
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1565
- /**
1566
- * Choose, which related nodes to fetch as well
1567
- */
1568
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1569
- /**
1570
- * Filter, which Connection to fetch.
1571
- */
1572
- where: Prisma.ConnectionWhereUniqueInput;
1573
- };
1574
- /**
1575
- * Connection findFirst
1576
- */
1577
- export type ConnectionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1578
- /**
1579
- * Select specific fields to fetch from the Connection
1580
- */
1581
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1582
- /**
1583
- * Omit specific fields from the Connection
1584
- */
1585
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1586
- /**
1587
- * Choose, which related nodes to fetch as well
1588
- */
1589
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1590
- /**
1591
- * Filter, which Connection to fetch.
1592
- */
1593
- where?: Prisma.ConnectionWhereInput;
1594
- /**
1595
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1596
- *
1597
- * Determine the order of Connections to fetch.
1598
- */
1599
- orderBy?: Prisma.ConnectionOrderByWithRelationInput | Prisma.ConnectionOrderByWithRelationInput[];
1600
- /**
1601
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1602
- *
1603
- * Sets the position for searching for Connections.
1604
- */
1605
- cursor?: Prisma.ConnectionWhereUniqueInput;
1606
- /**
1607
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1608
- *
1609
- * Take `±n` Connections from the position of the cursor.
1610
- */
1611
- take?: number;
1612
- /**
1613
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1614
- *
1615
- * Skip the first `n` Connections.
1616
- */
1617
- skip?: number;
1618
- /**
1619
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1620
- *
1621
- * Filter by unique combinations of Connections.
1622
- */
1623
- distinct?: Prisma.ConnectionScalarFieldEnum | Prisma.ConnectionScalarFieldEnum[];
1624
- };
1625
- /**
1626
- * Connection findFirstOrThrow
1627
- */
1628
- export type ConnectionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1629
- /**
1630
- * Select specific fields to fetch from the Connection
1631
- */
1632
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1633
- /**
1634
- * Omit specific fields from the Connection
1635
- */
1636
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1637
- /**
1638
- * Choose, which related nodes to fetch as well
1639
- */
1640
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1641
- /**
1642
- * Filter, which Connection to fetch.
1643
- */
1644
- where?: Prisma.ConnectionWhereInput;
1645
- /**
1646
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1647
- *
1648
- * Determine the order of Connections to fetch.
1649
- */
1650
- orderBy?: Prisma.ConnectionOrderByWithRelationInput | Prisma.ConnectionOrderByWithRelationInput[];
1651
- /**
1652
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1653
- *
1654
- * Sets the position for searching for Connections.
1655
- */
1656
- cursor?: Prisma.ConnectionWhereUniqueInput;
1657
- /**
1658
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1659
- *
1660
- * Take `±n` Connections from the position of the cursor.
1661
- */
1662
- take?: number;
1663
- /**
1664
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1665
- *
1666
- * Skip the first `n` Connections.
1667
- */
1668
- skip?: number;
1669
- /**
1670
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1671
- *
1672
- * Filter by unique combinations of Connections.
1673
- */
1674
- distinct?: Prisma.ConnectionScalarFieldEnum | Prisma.ConnectionScalarFieldEnum[];
1675
- };
1676
- /**
1677
- * Connection findMany
1678
- */
1679
- export type ConnectionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1680
- /**
1681
- * Select specific fields to fetch from the Connection
1682
- */
1683
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1684
- /**
1685
- * Omit specific fields from the Connection
1686
- */
1687
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1688
- /**
1689
- * Choose, which related nodes to fetch as well
1690
- */
1691
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1692
- /**
1693
- * Filter, which Connections to fetch.
1694
- */
1695
- where?: Prisma.ConnectionWhereInput;
1696
- /**
1697
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1698
- *
1699
- * Determine the order of Connections to fetch.
1700
- */
1701
- orderBy?: Prisma.ConnectionOrderByWithRelationInput | Prisma.ConnectionOrderByWithRelationInput[];
1702
- /**
1703
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1704
- *
1705
- * Sets the position for listing Connections.
1706
- */
1707
- cursor?: Prisma.ConnectionWhereUniqueInput;
1708
- /**
1709
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1710
- *
1711
- * Take `±n` Connections from the position of the cursor.
1712
- */
1713
- take?: number;
1714
- /**
1715
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1716
- *
1717
- * Skip the first `n` Connections.
1718
- */
1719
- skip?: number;
1720
- /**
1721
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1722
- *
1723
- * Filter by unique combinations of Connections.
1724
- */
1725
- distinct?: Prisma.ConnectionScalarFieldEnum | Prisma.ConnectionScalarFieldEnum[];
1726
- };
1727
- /**
1728
- * Connection create
1729
- */
1730
- export type ConnectionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1731
- /**
1732
- * Select specific fields to fetch from the Connection
1733
- */
1734
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1735
- /**
1736
- * Omit specific fields from the Connection
1737
- */
1738
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1739
- /**
1740
- * Choose, which related nodes to fetch as well
1741
- */
1742
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1743
- /**
1744
- * The data needed to create a Connection.
1745
- */
1746
- data: Prisma.XOR<Prisma.ConnectionCreateInput, Prisma.ConnectionUncheckedCreateInput>;
1747
- };
1748
- /**
1749
- * Connection createMany
1750
- */
1751
- export type ConnectionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1752
- /**
1753
- * The data used to create many Connections.
1754
- */
1755
- data: Prisma.ConnectionCreateManyInput | Prisma.ConnectionCreateManyInput[];
1756
- skipDuplicates?: boolean;
1757
- };
1758
- /**
1759
- * Connection createManyAndReturn
1760
- */
1761
- export type ConnectionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1762
- /**
1763
- * Select specific fields to fetch from the Connection
1764
- */
1765
- select?: Prisma.ConnectionSelectCreateManyAndReturn<ExtArgs> | null;
1766
- /**
1767
- * Omit specific fields from the Connection
1768
- */
1769
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1770
- /**
1771
- * The data used to create many Connections.
1772
- */
1773
- data: Prisma.ConnectionCreateManyInput | Prisma.ConnectionCreateManyInput[];
1774
- skipDuplicates?: boolean;
1775
- /**
1776
- * Choose, which related nodes to fetch as well
1777
- */
1778
- include?: Prisma.ConnectionIncludeCreateManyAndReturn<ExtArgs> | null;
1779
- };
1780
- /**
1781
- * Connection update
1782
- */
1783
- export type ConnectionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1784
- /**
1785
- * Select specific fields to fetch from the Connection
1786
- */
1787
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1788
- /**
1789
- * Omit specific fields from the Connection
1790
- */
1791
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1792
- /**
1793
- * Choose, which related nodes to fetch as well
1794
- */
1795
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1796
- /**
1797
- * The data needed to update a Connection.
1798
- */
1799
- data: Prisma.XOR<Prisma.ConnectionUpdateInput, Prisma.ConnectionUncheckedUpdateInput>;
1800
- /**
1801
- * Choose, which Connection to update.
1802
- */
1803
- where: Prisma.ConnectionWhereUniqueInput;
1804
- };
1805
- /**
1806
- * Connection updateMany
1807
- */
1808
- export type ConnectionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1809
- /**
1810
- * The data used to update Connections.
1811
- */
1812
- data: Prisma.XOR<Prisma.ConnectionUpdateManyMutationInput, Prisma.ConnectionUncheckedUpdateManyInput>;
1813
- /**
1814
- * Filter which Connections to update
1815
- */
1816
- where?: Prisma.ConnectionWhereInput;
1817
- /**
1818
- * Limit how many Connections to update.
1819
- */
1820
- limit?: number;
1821
- };
1822
- /**
1823
- * Connection updateManyAndReturn
1824
- */
1825
- export type ConnectionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1826
- /**
1827
- * Select specific fields to fetch from the Connection
1828
- */
1829
- select?: Prisma.ConnectionSelectUpdateManyAndReturn<ExtArgs> | null;
1830
- /**
1831
- * Omit specific fields from the Connection
1832
- */
1833
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1834
- /**
1835
- * The data used to update Connections.
1836
- */
1837
- data: Prisma.XOR<Prisma.ConnectionUpdateManyMutationInput, Prisma.ConnectionUncheckedUpdateManyInput>;
1838
- /**
1839
- * Filter which Connections to update
1840
- */
1841
- where?: Prisma.ConnectionWhereInput;
1842
- /**
1843
- * Limit how many Connections to update.
1844
- */
1845
- limit?: number;
1846
- /**
1847
- * Choose, which related nodes to fetch as well
1848
- */
1849
- include?: Prisma.ConnectionIncludeUpdateManyAndReturn<ExtArgs> | null;
1850
- };
1851
- /**
1852
- * Connection upsert
1853
- */
1854
- export type ConnectionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1855
- /**
1856
- * Select specific fields to fetch from the Connection
1857
- */
1858
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1859
- /**
1860
- * Omit specific fields from the Connection
1861
- */
1862
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1863
- /**
1864
- * Choose, which related nodes to fetch as well
1865
- */
1866
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1867
- /**
1868
- * The filter to search for the Connection to update in case it exists.
1869
- */
1870
- where: Prisma.ConnectionWhereUniqueInput;
1871
- /**
1872
- * In case the Connection found by the `where` argument doesn't exist, create a new Connection with this data.
1873
- */
1874
- create: Prisma.XOR<Prisma.ConnectionCreateInput, Prisma.ConnectionUncheckedCreateInput>;
1875
- /**
1876
- * In case the Connection was found with the provided `where` argument, update it with this data.
1877
- */
1878
- update: Prisma.XOR<Prisma.ConnectionUpdateInput, Prisma.ConnectionUncheckedUpdateInput>;
1879
- };
1880
- /**
1881
- * Connection delete
1882
- */
1883
- export type ConnectionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1884
- /**
1885
- * Select specific fields to fetch from the Connection
1886
- */
1887
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1888
- /**
1889
- * Omit specific fields from the Connection
1890
- */
1891
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1892
- /**
1893
- * Choose, which related nodes to fetch as well
1894
- */
1895
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1896
- /**
1897
- * Filter which Connection to delete.
1898
- */
1899
- where: Prisma.ConnectionWhereUniqueInput;
1900
- };
1901
- /**
1902
- * Connection deleteMany
1903
- */
1904
- export type ConnectionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1905
- /**
1906
- * Filter which Connections to delete
1907
- */
1908
- where?: Prisma.ConnectionWhereInput;
1909
- /**
1910
- * Limit how many Connections to delete.
1911
- */
1912
- limit?: number;
1913
- };
1914
- /**
1915
- * Connection.credential
1916
- */
1917
- export type Connection$credentialArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1918
- /**
1919
- * Select specific fields to fetch from the ConnectionCredential
1920
- */
1921
- select?: Prisma.ConnectionCredentialSelect<ExtArgs> | null;
1922
- /**
1923
- * Omit specific fields from the ConnectionCredential
1924
- */
1925
- omit?: Prisma.ConnectionCredentialOmit<ExtArgs> | null;
1926
- /**
1927
- * Choose, which related nodes to fetch as well
1928
- */
1929
- include?: Prisma.ConnectionCredentialInclude<ExtArgs> | null;
1930
- where?: Prisma.ConnectionCredentialWhereInput;
1931
- };
1932
- /**
1933
- * Connection without action
1934
- */
1935
- export type ConnectionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1936
- /**
1937
- * Select specific fields to fetch from the Connection
1938
- */
1939
- select?: Prisma.ConnectionSelect<ExtArgs> | null;
1940
- /**
1941
- * Omit specific fields from the Connection
1942
- */
1943
- omit?: Prisma.ConnectionOmit<ExtArgs> | null;
1944
- /**
1945
- * Choose, which related nodes to fetch as well
1946
- */
1947
- include?: Prisma.ConnectionInclude<ExtArgs> | null;
1948
- };
1949
- //# sourceMappingURL=Connection.d.ts.map