@kosha-ai/server 0.1.0 → 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 (199) 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/configurations/configurations.controller.d.ts +11 -136
  10. package/dist/configurations/configurations.controller.d.ts.map +1 -1
  11. package/dist/configurations/configurations.controller.js +58 -25
  12. package/dist/configurations/configurations.module.d.ts.map +1 -1
  13. package/dist/configurations/configurations.module.js +4 -1
  14. package/dist/configurations/configurations.repository.d.ts +43 -0
  15. package/dist/configurations/configurations.repository.d.ts.map +1 -0
  16. package/dist/configurations/configurations.repository.js +76 -0
  17. package/dist/configurations/configurations.service.d.ts +38 -194
  18. package/dist/configurations/configurations.service.d.ts.map +1 -1
  19. package/dist/configurations/configurations.service.js +118 -110
  20. package/dist/configurations/dto/create-configuration.dto.d.ts +8 -0
  21. package/dist/configurations/dto/create-configuration.dto.d.ts.map +1 -0
  22. package/dist/configurations/dto/create-configuration.dto.js +54 -0
  23. package/dist/configurations/dto/update-configuration.dto.d.ts +7 -0
  24. package/dist/configurations/dto/update-configuration.dto.d.ts.map +1 -0
  25. package/dist/configurations/dto/update-configuration.dto.js +39 -0
  26. package/dist/connect/connect.controller.d.ts +6 -8
  27. package/dist/connect/connect.controller.d.ts.map +1 -1
  28. package/dist/connect/connect.controller.js +45 -15
  29. package/dist/connect/connect.module.d.ts.map +1 -1
  30. package/dist/connect/connect.module.js +4 -2
  31. package/dist/connect/connect.repository.d.ts +78 -0
  32. package/dist/connect/connect.repository.d.ts.map +1 -0
  33. package/dist/connect/connect.repository.js +146 -0
  34. package/dist/connect/connect.service.d.ts +28 -19
  35. package/dist/connect/connect.service.d.ts.map +1 -1
  36. package/dist/connect/connect.service.js +149 -163
  37. package/dist/connect/dto/create-connect-session.dto.d.ts +8 -0
  38. package/dist/connect/dto/create-connect-session.dto.d.ts.map +1 -0
  39. package/dist/connect/dto/create-connect-session.dto.js +55 -0
  40. package/dist/connect/dto/create-test-session.dto.d.ts +10 -0
  41. package/dist/connect/dto/create-test-session.dto.d.ts.map +1 -0
  42. package/dist/connect/dto/create-test-session.dto.js +34 -0
  43. package/dist/connections/connections.controller.d.ts +8 -61
  44. package/dist/connections/connections.controller.d.ts.map +1 -1
  45. package/dist/connections/connections.controller.js +31 -9
  46. package/dist/connections/connections.module.d.ts.map +1 -1
  47. package/dist/connections/connections.module.js +4 -1
  48. package/dist/connections/connections.repository.d.ts +24 -0
  49. package/dist/connections/connections.repository.d.ts.map +1 -0
  50. package/dist/connections/connections.repository.js +66 -0
  51. package/dist/connections/connections.service.d.ts +24 -69
  52. package/dist/connections/connections.service.d.ts.map +1 -1
  53. package/dist/connections/connections.service.js +59 -56
  54. package/dist/connections/dto/list-connections.dto.d.ts +5 -0
  55. package/dist/connections/dto/list-connections.dto.d.ts.map +1 -0
  56. package/dist/connections/dto/list-connections.dto.js +25 -0
  57. package/dist/connections/environment-connections.controller.d.ts +26 -0
  58. package/dist/connections/environment-connections.controller.d.ts.map +1 -0
  59. package/dist/connections/environment-connections.controller.js +81 -0
  60. package/dist/connections/environment-connections.module.d.ts +11 -0
  61. package/dist/connections/environment-connections.module.d.ts.map +1 -0
  62. package/dist/connections/environment-connections.module.js +21 -0
  63. package/dist/credentials/credentials.module.js +3 -3
  64. package/dist/credentials/credentials.repository.d.ts +8 -0
  65. package/dist/credentials/credentials.repository.d.ts.map +1 -0
  66. package/dist/credentials/credentials.repository.js +21 -0
  67. package/dist/credentials/credentials.service.d.ts +19 -29
  68. package/dist/credentials/credentials.service.d.ts.map +1 -1
  69. package/dist/credentials/credentials.service.js +84 -57
  70. package/dist/crypto/credential-envelope.d.ts +56 -0
  71. package/dist/crypto/credential-envelope.d.ts.map +1 -0
  72. package/dist/crypto/credential-envelope.js +70 -0
  73. package/dist/crypto/crypto.service.d.ts +8 -0
  74. package/dist/crypto/crypto.service.d.ts.map +1 -1
  75. package/dist/crypto/crypto.service.js +12 -0
  76. package/dist/egress/dto/mint-grant.dto.d.ts +7 -0
  77. package/dist/egress/dto/mint-grant.dto.d.ts.map +1 -0
  78. package/dist/egress/dto/mint-grant.dto.js +44 -0
  79. package/dist/egress/egress.controller.d.ts +2 -8
  80. package/dist/egress/egress.controller.d.ts.map +1 -1
  81. package/dist/egress/egress.controller.js +27 -6
  82. package/dist/egress/egress.listener.d.ts +3 -1
  83. package/dist/egress/egress.listener.d.ts.map +1 -1
  84. package/dist/egress/egress.listener.js +12 -8
  85. package/dist/egress/egress.module.d.ts.map +1 -1
  86. package/dist/egress/egress.module.js +10 -2
  87. package/dist/egress/egress.repository.d.ts +58 -0
  88. package/dist/egress/egress.repository.d.ts.map +1 -0
  89. package/dist/egress/egress.repository.js +116 -0
  90. package/dist/egress/grants.service.d.ts +23 -78
  91. package/dist/egress/grants.service.d.ts.map +1 -1
  92. package/dist/egress/grants.service.js +44 -104
  93. package/dist/environments/dto/create-environment.dto.d.ts +6 -0
  94. package/dist/environments/dto/create-environment.dto.d.ts.map +1 -0
  95. package/dist/environments/dto/create-environment.dto.js +34 -0
  96. package/dist/environments/dto/update-environment.dto.d.ts +5 -0
  97. package/dist/environments/dto/update-environment.dto.d.ts.map +1 -0
  98. package/dist/environments/dto/update-environment.dto.js +24 -0
  99. package/dist/environments/environments.controller.d.ts +53 -0
  100. package/dist/environments/environments.controller.d.ts.map +1 -0
  101. package/dist/environments/environments.controller.js +101 -0
  102. package/dist/environments/environments.module.d.ts +3 -0
  103. package/dist/environments/environments.module.d.ts.map +1 -0
  104. package/dist/environments/environments.module.js +15 -0
  105. package/dist/environments/environments.repository.d.ts +37 -0
  106. package/dist/environments/environments.repository.d.ts.map +1 -0
  107. package/dist/environments/environments.repository.js +82 -0
  108. package/dist/environments/environments.service.d.ts +43 -0
  109. package/dist/environments/environments.service.d.ts.map +1 -0
  110. package/dist/environments/environments.service.js +124 -0
  111. package/dist/generated/prisma/browser.d.ts +14 -37
  112. package/dist/generated/prisma/browser.d.ts.map +1 -1
  113. package/dist/generated/prisma/client.d.ts +14 -37
  114. package/dist/generated/prisma/client.d.ts.map +1 -1
  115. package/dist/generated/prisma/commonInputTypes.d.ts +104 -145
  116. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -1
  117. package/dist/generated/prisma/enums.d.ts +1 -21
  118. package/dist/generated/prisma/enums.d.ts.map +1 -1
  119. package/dist/generated/prisma/enums.js +1 -18
  120. package/dist/generated/prisma/internal/class.d.ts +20 -53
  121. package/dist/generated/prisma/internal/class.d.ts.map +1 -1
  122. package/dist/generated/prisma/internal/class.js +4 -4
  123. package/dist/generated/prisma/internal/prismaNamespace.d.ts +215 -519
  124. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
  125. package/dist/generated/prisma/internal/prismaNamespace.js +38 -90
  126. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +37 -92
  127. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
  128. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +38 -90
  129. package/dist/generated/prisma/models/Account.d.ts +344 -26
  130. package/dist/generated/prisma/models/Account.d.ts.map +1 -1
  131. package/dist/generated/prisma/models/Configuration.d.ts +218 -851
  132. package/dist/generated/prisma/models/Configuration.d.ts.map +1 -1
  133. package/dist/generated/prisma/models/EgressGrant.d.ts +131 -134
  134. package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -1
  135. package/dist/generated/prisma/models/Environment.d.ts +1644 -0
  136. package/dist/generated/prisma/models/Environment.d.ts.map +1 -0
  137. package/dist/generated/prisma/models/Invitation.d.ts +42 -1
  138. package/dist/generated/prisma/models/Invitation.d.ts.map +1 -1
  139. package/dist/generated/prisma/models/Organization.d.ts +122 -408
  140. package/dist/generated/prisma/models/Organization.d.ts.map +1 -1
  141. package/dist/generated/prisma/models/Session.d.ts +36 -1
  142. package/dist/generated/prisma/models/Session.d.ts.map +1 -1
  143. package/dist/generated/prisma/models/Team.d.ts +1498 -0
  144. package/dist/generated/prisma/models/Team.d.ts.map +1 -0
  145. package/dist/generated/prisma/models/TeamMember.d.ts +1281 -0
  146. package/dist/generated/prisma/models/TeamMember.d.ts.map +1 -0
  147. package/dist/generated/prisma/models/User.d.ts +338 -2
  148. package/dist/generated/prisma/models/User.d.ts.map +1 -1
  149. package/dist/generated/prisma/models.d.ts +3 -6
  150. package/dist/generated/prisma/models.d.ts.map +1 -1
  151. package/dist/index.d.ts +15 -5
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +11 -2
  154. package/dist/integrations/integrations.controller.d.ts +2 -1
  155. package/dist/integrations/integrations.controller.d.ts.map +1 -1
  156. package/dist/integrations/integrations.module.d.ts.map +1 -1
  157. package/dist/integrations/integrations.module.js +0 -2
  158. package/dist/kosha.module.d.ts.map +1 -1
  159. package/dist/kosha.module.js +9 -3
  160. package/dist/proxy/proxy.controller.d.ts +8 -3
  161. package/dist/proxy/proxy.controller.d.ts.map +1 -1
  162. package/dist/proxy/proxy.controller.js +26 -10
  163. package/dist/proxy/proxy.module.d.ts.map +1 -1
  164. package/dist/proxy/proxy.module.js +5 -2
  165. package/dist/proxy/proxy.repository.d.ts +24 -0
  166. package/dist/proxy/proxy.repository.d.ts.map +1 -0
  167. package/dist/proxy/proxy.repository.js +47 -0
  168. package/dist/proxy/proxy.service.d.ts +17 -5
  169. package/dist/proxy/proxy.service.d.ts.map +1 -1
  170. package/dist/proxy/proxy.service.js +58 -27
  171. package/package.json +7 -4
  172. package/prisma/migrations/20260929101936_init/migration.sql +345 -0
  173. package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
  174. package/prisma/schema.prisma +93 -198
  175. package/dist/generated/prisma/models/ConnectSession.d.ts +0 -1606
  176. package/dist/generated/prisma/models/ConnectSession.d.ts.map +0 -1
  177. package/dist/generated/prisma/models/Connection.d.ts +0 -1949
  178. package/dist/generated/prisma/models/Connection.d.ts.map +0 -1
  179. package/dist/generated/prisma/models/ConnectionCredential.d.ts +0 -1293
  180. package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +0 -1
  181. package/dist/generated/prisma/models/EndUser.d.ts +0 -1666
  182. package/dist/generated/prisma/models/EndUser.d.ts.map +0 -1
  183. package/dist/generated/prisma/models/EndUser.js +0 -1
  184. package/dist/generated/prisma/models/OAuthState.d.ts +0 -1404
  185. package/dist/generated/prisma/models/OAuthState.d.ts.map +0 -1
  186. package/dist/generated/prisma/models/OAuthState.js +0 -1
  187. package/dist/generated/prisma/models/Provider.d.ts +0 -1462
  188. package/dist/generated/prisma/models/Provider.d.ts.map +0 -1
  189. package/dist/generated/prisma/models/Provider.js +0 -1
  190. package/dist/integrations/provider-sync.service.d.ts +0 -24
  191. package/dist/integrations/provider-sync.service.d.ts.map +0 -1
  192. package/dist/integrations/provider-sync.service.js +0 -74
  193. package/prisma/migrations/20260908000000_init/migration.sql +0 -209
  194. package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +0 -173
  195. package/prisma/migrations/20260916000000_add_configuration_slug/migration.sql +0 -15
  196. package/prisma/migrations/20260921000000_add_egress_grant/migration.sql +0 -31
  197. /package/dist/generated/prisma/models/{ConnectSession.js → Environment.js} +0 -0
  198. /package/dist/generated/prisma/models/{Connection.js → Team.js} +0 -0
  199. /package/dist/generated/prisma/models/{ConnectionCredential.js → TeamMember.js} +0 -0
@@ -0,0 +1,1644 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Environment
5
+ *
6
+ */
7
+ export type EnvironmentModel = runtime.Types.Result.DefaultSelection<Prisma.$EnvironmentPayload>;
8
+ export type AggregateEnvironment = {
9
+ _count: EnvironmentCountAggregateOutputType | null;
10
+ _min: EnvironmentMinAggregateOutputType | null;
11
+ _max: EnvironmentMaxAggregateOutputType | null;
12
+ };
13
+ export type EnvironmentMinAggregateOutputType = {
14
+ id: string | null;
15
+ organizationId: string | null;
16
+ name: string | null;
17
+ slug: string | null;
18
+ teamId: string | null;
19
+ createdAt: Date | null;
20
+ updatedAt: Date | null;
21
+ };
22
+ export type EnvironmentMaxAggregateOutputType = {
23
+ id: string | null;
24
+ organizationId: string | null;
25
+ name: string | null;
26
+ slug: string | null;
27
+ teamId: string | null;
28
+ createdAt: Date | null;
29
+ updatedAt: Date | null;
30
+ };
31
+ export type EnvironmentCountAggregateOutputType = {
32
+ id: number;
33
+ organizationId: number;
34
+ name: number;
35
+ slug: number;
36
+ teamId: number;
37
+ createdAt: number;
38
+ updatedAt: number;
39
+ _all: number;
40
+ };
41
+ export type EnvironmentMinAggregateInputType = {
42
+ id?: true;
43
+ organizationId?: true;
44
+ name?: true;
45
+ slug?: true;
46
+ teamId?: true;
47
+ createdAt?: true;
48
+ updatedAt?: true;
49
+ };
50
+ export type EnvironmentMaxAggregateInputType = {
51
+ id?: true;
52
+ organizationId?: true;
53
+ name?: true;
54
+ slug?: true;
55
+ teamId?: true;
56
+ createdAt?: true;
57
+ updatedAt?: true;
58
+ };
59
+ export type EnvironmentCountAggregateInputType = {
60
+ id?: true;
61
+ organizationId?: true;
62
+ name?: true;
63
+ slug?: true;
64
+ teamId?: true;
65
+ createdAt?: true;
66
+ updatedAt?: true;
67
+ _all?: true;
68
+ };
69
+ export type EnvironmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
70
+ /**
71
+ * Filter which Environment to aggregate.
72
+ */
73
+ where?: Prisma.EnvironmentWhereInput;
74
+ /**
75
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
76
+ *
77
+ * Determine the order of Environments to fetch.
78
+ */
79
+ orderBy?: Prisma.EnvironmentOrderByWithRelationInput | Prisma.EnvironmentOrderByWithRelationInput[];
80
+ /**
81
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
82
+ *
83
+ * Sets the start position
84
+ */
85
+ cursor?: Prisma.EnvironmentWhereUniqueInput;
86
+ /**
87
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
88
+ *
89
+ * Take `±n` Environments from the position of the cursor.
90
+ */
91
+ take?: number;
92
+ /**
93
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
94
+ *
95
+ * Skip the first `n` Environments.
96
+ */
97
+ skip?: number;
98
+ /**
99
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
100
+ *
101
+ * Count returned Environments
102
+ **/
103
+ _count?: true | EnvironmentCountAggregateInputType;
104
+ /**
105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
106
+ *
107
+ * Select which fields to find the minimum value
108
+ **/
109
+ _min?: EnvironmentMinAggregateInputType;
110
+ /**
111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
112
+ *
113
+ * Select which fields to find the maximum value
114
+ **/
115
+ _max?: EnvironmentMaxAggregateInputType;
116
+ };
117
+ export type GetEnvironmentAggregateType<T extends EnvironmentAggregateArgs> = {
118
+ [P in keyof T & keyof AggregateEnvironment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateEnvironment[P]> : Prisma.GetScalarType<T[P], AggregateEnvironment[P]>;
119
+ };
120
+ export type EnvironmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.EnvironmentWhereInput;
122
+ orderBy?: Prisma.EnvironmentOrderByWithAggregationInput | Prisma.EnvironmentOrderByWithAggregationInput[];
123
+ by: Prisma.EnvironmentScalarFieldEnum[] | Prisma.EnvironmentScalarFieldEnum;
124
+ having?: Prisma.EnvironmentScalarWhereWithAggregatesInput;
125
+ take?: number;
126
+ skip?: number;
127
+ _count?: EnvironmentCountAggregateInputType | true;
128
+ _min?: EnvironmentMinAggregateInputType;
129
+ _max?: EnvironmentMaxAggregateInputType;
130
+ };
131
+ export type EnvironmentGroupByOutputType = {
132
+ id: string;
133
+ organizationId: string;
134
+ name: string;
135
+ slug: string;
136
+ teamId: string | null;
137
+ createdAt: Date;
138
+ updatedAt: Date;
139
+ _count: EnvironmentCountAggregateOutputType | null;
140
+ _min: EnvironmentMinAggregateOutputType | null;
141
+ _max: EnvironmentMaxAggregateOutputType | null;
142
+ };
143
+ export type GetEnvironmentGroupByPayload<T extends EnvironmentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<EnvironmentGroupByOutputType, T['by']> & {
144
+ [P in ((keyof T) & (keyof EnvironmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], EnvironmentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], EnvironmentGroupByOutputType[P]>;
145
+ }>>;
146
+ export type EnvironmentWhereInput = {
147
+ AND?: Prisma.EnvironmentWhereInput | Prisma.EnvironmentWhereInput[];
148
+ OR?: Prisma.EnvironmentWhereInput[];
149
+ NOT?: Prisma.EnvironmentWhereInput | Prisma.EnvironmentWhereInput[];
150
+ id?: Prisma.StringFilter<"Environment"> | string;
151
+ organizationId?: Prisma.StringFilter<"Environment"> | string;
152
+ name?: Prisma.StringFilter<"Environment"> | string;
153
+ slug?: Prisma.StringFilter<"Environment"> | string;
154
+ teamId?: Prisma.StringNullableFilter<"Environment"> | string | null;
155
+ createdAt?: Prisma.DateTimeFilter<"Environment"> | Date | string;
156
+ updatedAt?: Prisma.DateTimeFilter<"Environment"> | Date | string;
157
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
158
+ team?: Prisma.XOR<Prisma.TeamNullableScalarRelationFilter, Prisma.TeamWhereInput> | null;
159
+ configurations?: Prisma.ConfigurationListRelationFilter;
160
+ accounts?: Prisma.AccountListRelationFilter;
161
+ };
162
+ export type EnvironmentOrderByWithRelationInput = {
163
+ id?: Prisma.SortOrder;
164
+ organizationId?: Prisma.SortOrder;
165
+ name?: Prisma.SortOrder;
166
+ slug?: Prisma.SortOrder;
167
+ teamId?: Prisma.SortOrderInput | Prisma.SortOrder;
168
+ createdAt?: Prisma.SortOrder;
169
+ updatedAt?: Prisma.SortOrder;
170
+ organization?: Prisma.OrganizationOrderByWithRelationInput;
171
+ team?: Prisma.TeamOrderByWithRelationInput;
172
+ configurations?: Prisma.ConfigurationOrderByRelationAggregateInput;
173
+ accounts?: Prisma.AccountOrderByRelationAggregateInput;
174
+ };
175
+ export type EnvironmentWhereUniqueInput = Prisma.AtLeast<{
176
+ id?: string;
177
+ organizationId_slug?: Prisma.EnvironmentOrganizationIdSlugCompoundUniqueInput;
178
+ AND?: Prisma.EnvironmentWhereInput | Prisma.EnvironmentWhereInput[];
179
+ OR?: Prisma.EnvironmentWhereInput[];
180
+ NOT?: Prisma.EnvironmentWhereInput | Prisma.EnvironmentWhereInput[];
181
+ organizationId?: Prisma.StringFilter<"Environment"> | string;
182
+ name?: Prisma.StringFilter<"Environment"> | string;
183
+ slug?: Prisma.StringFilter<"Environment"> | string;
184
+ teamId?: Prisma.StringNullableFilter<"Environment"> | string | null;
185
+ createdAt?: Prisma.DateTimeFilter<"Environment"> | Date | string;
186
+ updatedAt?: Prisma.DateTimeFilter<"Environment"> | Date | string;
187
+ organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
188
+ team?: Prisma.XOR<Prisma.TeamNullableScalarRelationFilter, Prisma.TeamWhereInput> | null;
189
+ configurations?: Prisma.ConfigurationListRelationFilter;
190
+ accounts?: Prisma.AccountListRelationFilter;
191
+ }, "id" | "organizationId_slug">;
192
+ export type EnvironmentOrderByWithAggregationInput = {
193
+ id?: Prisma.SortOrder;
194
+ organizationId?: Prisma.SortOrder;
195
+ name?: Prisma.SortOrder;
196
+ slug?: Prisma.SortOrder;
197
+ teamId?: Prisma.SortOrderInput | Prisma.SortOrder;
198
+ createdAt?: Prisma.SortOrder;
199
+ updatedAt?: Prisma.SortOrder;
200
+ _count?: Prisma.EnvironmentCountOrderByAggregateInput;
201
+ _max?: Prisma.EnvironmentMaxOrderByAggregateInput;
202
+ _min?: Prisma.EnvironmentMinOrderByAggregateInput;
203
+ };
204
+ export type EnvironmentScalarWhereWithAggregatesInput = {
205
+ AND?: Prisma.EnvironmentScalarWhereWithAggregatesInput | Prisma.EnvironmentScalarWhereWithAggregatesInput[];
206
+ OR?: Prisma.EnvironmentScalarWhereWithAggregatesInput[];
207
+ NOT?: Prisma.EnvironmentScalarWhereWithAggregatesInput | Prisma.EnvironmentScalarWhereWithAggregatesInput[];
208
+ id?: Prisma.StringWithAggregatesFilter<"Environment"> | string;
209
+ organizationId?: Prisma.StringWithAggregatesFilter<"Environment"> | string;
210
+ name?: Prisma.StringWithAggregatesFilter<"Environment"> | string;
211
+ slug?: Prisma.StringWithAggregatesFilter<"Environment"> | string;
212
+ teamId?: Prisma.StringNullableWithAggregatesFilter<"Environment"> | string | null;
213
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Environment"> | Date | string;
214
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Environment"> | Date | string;
215
+ };
216
+ export type EnvironmentCreateInput = {
217
+ id?: string;
218
+ name: string;
219
+ slug: string;
220
+ createdAt?: Date | string;
221
+ updatedAt?: Date | string;
222
+ organization: Prisma.OrganizationCreateNestedOneWithoutEnvironmentsInput;
223
+ team?: Prisma.TeamCreateNestedOneWithoutEnvironmentsInput;
224
+ configurations?: Prisma.ConfigurationCreateNestedManyWithoutEnvironmentInput;
225
+ accounts?: Prisma.AccountCreateNestedManyWithoutEnvironmentInput;
226
+ };
227
+ export type EnvironmentUncheckedCreateInput = {
228
+ id?: string;
229
+ organizationId: string;
230
+ name: string;
231
+ slug: string;
232
+ teamId?: string | null;
233
+ createdAt?: Date | string;
234
+ updatedAt?: Date | string;
235
+ configurations?: Prisma.ConfigurationUncheckedCreateNestedManyWithoutEnvironmentInput;
236
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutEnvironmentInput;
237
+ };
238
+ export type EnvironmentUpdateInput = {
239
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
240
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
241
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
242
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
243
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
244
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutEnvironmentsNestedInput;
245
+ team?: Prisma.TeamUpdateOneWithoutEnvironmentsNestedInput;
246
+ configurations?: Prisma.ConfigurationUpdateManyWithoutEnvironmentNestedInput;
247
+ accounts?: Prisma.AccountUpdateManyWithoutEnvironmentNestedInput;
248
+ };
249
+ export type EnvironmentUncheckedUpdateInput = {
250
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
251
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
252
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
253
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
254
+ teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
255
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
256
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
257
+ configurations?: Prisma.ConfigurationUncheckedUpdateManyWithoutEnvironmentNestedInput;
258
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutEnvironmentNestedInput;
259
+ };
260
+ export type EnvironmentCreateManyInput = {
261
+ id?: string;
262
+ organizationId: string;
263
+ name: string;
264
+ slug: string;
265
+ teamId?: string | null;
266
+ createdAt?: Date | string;
267
+ updatedAt?: Date | string;
268
+ };
269
+ export type EnvironmentUpdateManyMutationInput = {
270
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
271
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
272
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
273
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
274
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
275
+ };
276
+ export type EnvironmentUncheckedUpdateManyInput = {
277
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
278
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
279
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
280
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
281
+ teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
282
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
283
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
284
+ };
285
+ export type EnvironmentNullableScalarRelationFilter = {
286
+ is?: Prisma.EnvironmentWhereInput | null;
287
+ isNot?: Prisma.EnvironmentWhereInput | null;
288
+ };
289
+ export type EnvironmentListRelationFilter = {
290
+ every?: Prisma.EnvironmentWhereInput;
291
+ some?: Prisma.EnvironmentWhereInput;
292
+ none?: Prisma.EnvironmentWhereInput;
293
+ };
294
+ export type EnvironmentOrderByRelationAggregateInput = {
295
+ _count?: Prisma.SortOrder;
296
+ };
297
+ export type EnvironmentOrganizationIdSlugCompoundUniqueInput = {
298
+ organizationId: string;
299
+ slug: string;
300
+ };
301
+ export type EnvironmentCountOrderByAggregateInput = {
302
+ id?: Prisma.SortOrder;
303
+ organizationId?: Prisma.SortOrder;
304
+ name?: Prisma.SortOrder;
305
+ slug?: Prisma.SortOrder;
306
+ teamId?: Prisma.SortOrder;
307
+ createdAt?: Prisma.SortOrder;
308
+ updatedAt?: Prisma.SortOrder;
309
+ };
310
+ export type EnvironmentMaxOrderByAggregateInput = {
311
+ id?: Prisma.SortOrder;
312
+ organizationId?: Prisma.SortOrder;
313
+ name?: Prisma.SortOrder;
314
+ slug?: Prisma.SortOrder;
315
+ teamId?: Prisma.SortOrder;
316
+ createdAt?: Prisma.SortOrder;
317
+ updatedAt?: Prisma.SortOrder;
318
+ };
319
+ export type EnvironmentMinOrderByAggregateInput = {
320
+ id?: Prisma.SortOrder;
321
+ organizationId?: Prisma.SortOrder;
322
+ name?: Prisma.SortOrder;
323
+ slug?: Prisma.SortOrder;
324
+ teamId?: Prisma.SortOrder;
325
+ createdAt?: Prisma.SortOrder;
326
+ updatedAt?: Prisma.SortOrder;
327
+ };
328
+ export type EnvironmentScalarRelationFilter = {
329
+ is?: Prisma.EnvironmentWhereInput;
330
+ isNot?: Prisma.EnvironmentWhereInput;
331
+ };
332
+ export type EnvironmentCreateNestedOneWithoutAccountsInput = {
333
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutAccountsInput, Prisma.EnvironmentUncheckedCreateWithoutAccountsInput>;
334
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutAccountsInput;
335
+ connect?: Prisma.EnvironmentWhereUniqueInput;
336
+ };
337
+ export type EnvironmentUpdateOneWithoutAccountsNestedInput = {
338
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutAccountsInput, Prisma.EnvironmentUncheckedCreateWithoutAccountsInput>;
339
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutAccountsInput;
340
+ upsert?: Prisma.EnvironmentUpsertWithoutAccountsInput;
341
+ disconnect?: Prisma.EnvironmentWhereInput | boolean;
342
+ delete?: Prisma.EnvironmentWhereInput | boolean;
343
+ connect?: Prisma.EnvironmentWhereUniqueInput;
344
+ update?: Prisma.XOR<Prisma.XOR<Prisma.EnvironmentUpdateToOneWithWhereWithoutAccountsInput, Prisma.EnvironmentUpdateWithoutAccountsInput>, Prisma.EnvironmentUncheckedUpdateWithoutAccountsInput>;
345
+ };
346
+ export type EnvironmentCreateNestedManyWithoutOrganizationInput = {
347
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutOrganizationInput, Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput> | Prisma.EnvironmentCreateWithoutOrganizationInput[] | Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput[];
348
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput | Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput[];
349
+ createMany?: Prisma.EnvironmentCreateManyOrganizationInputEnvelope;
350
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
351
+ };
352
+ export type EnvironmentUncheckedCreateNestedManyWithoutOrganizationInput = {
353
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutOrganizationInput, Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput> | Prisma.EnvironmentCreateWithoutOrganizationInput[] | Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput[];
354
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput | Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput[];
355
+ createMany?: Prisma.EnvironmentCreateManyOrganizationInputEnvelope;
356
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
357
+ };
358
+ export type EnvironmentUpdateManyWithoutOrganizationNestedInput = {
359
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutOrganizationInput, Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput> | Prisma.EnvironmentCreateWithoutOrganizationInput[] | Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput[];
360
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput | Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput[];
361
+ upsert?: Prisma.EnvironmentUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.EnvironmentUpsertWithWhereUniqueWithoutOrganizationInput[];
362
+ createMany?: Prisma.EnvironmentCreateManyOrganizationInputEnvelope;
363
+ set?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
364
+ disconnect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
365
+ delete?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
366
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
367
+ update?: Prisma.EnvironmentUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.EnvironmentUpdateWithWhereUniqueWithoutOrganizationInput[];
368
+ updateMany?: Prisma.EnvironmentUpdateManyWithWhereWithoutOrganizationInput | Prisma.EnvironmentUpdateManyWithWhereWithoutOrganizationInput[];
369
+ deleteMany?: Prisma.EnvironmentScalarWhereInput | Prisma.EnvironmentScalarWhereInput[];
370
+ };
371
+ export type EnvironmentUncheckedUpdateManyWithoutOrganizationNestedInput = {
372
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutOrganizationInput, Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput> | Prisma.EnvironmentCreateWithoutOrganizationInput[] | Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput[];
373
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput | Prisma.EnvironmentCreateOrConnectWithoutOrganizationInput[];
374
+ upsert?: Prisma.EnvironmentUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.EnvironmentUpsertWithWhereUniqueWithoutOrganizationInput[];
375
+ createMany?: Prisma.EnvironmentCreateManyOrganizationInputEnvelope;
376
+ set?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
377
+ disconnect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
378
+ delete?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
379
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
380
+ update?: Prisma.EnvironmentUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.EnvironmentUpdateWithWhereUniqueWithoutOrganizationInput[];
381
+ updateMany?: Prisma.EnvironmentUpdateManyWithWhereWithoutOrganizationInput | Prisma.EnvironmentUpdateManyWithWhereWithoutOrganizationInput[];
382
+ deleteMany?: Prisma.EnvironmentScalarWhereInput | Prisma.EnvironmentScalarWhereInput[];
383
+ };
384
+ export type EnvironmentCreateNestedManyWithoutTeamInput = {
385
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutTeamInput, Prisma.EnvironmentUncheckedCreateWithoutTeamInput> | Prisma.EnvironmentCreateWithoutTeamInput[] | Prisma.EnvironmentUncheckedCreateWithoutTeamInput[];
386
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutTeamInput | Prisma.EnvironmentCreateOrConnectWithoutTeamInput[];
387
+ createMany?: Prisma.EnvironmentCreateManyTeamInputEnvelope;
388
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
389
+ };
390
+ export type EnvironmentUncheckedCreateNestedManyWithoutTeamInput = {
391
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutTeamInput, Prisma.EnvironmentUncheckedCreateWithoutTeamInput> | Prisma.EnvironmentCreateWithoutTeamInput[] | Prisma.EnvironmentUncheckedCreateWithoutTeamInput[];
392
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutTeamInput | Prisma.EnvironmentCreateOrConnectWithoutTeamInput[];
393
+ createMany?: Prisma.EnvironmentCreateManyTeamInputEnvelope;
394
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
395
+ };
396
+ export type EnvironmentUpdateManyWithoutTeamNestedInput = {
397
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutTeamInput, Prisma.EnvironmentUncheckedCreateWithoutTeamInput> | Prisma.EnvironmentCreateWithoutTeamInput[] | Prisma.EnvironmentUncheckedCreateWithoutTeamInput[];
398
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutTeamInput | Prisma.EnvironmentCreateOrConnectWithoutTeamInput[];
399
+ upsert?: Prisma.EnvironmentUpsertWithWhereUniqueWithoutTeamInput | Prisma.EnvironmentUpsertWithWhereUniqueWithoutTeamInput[];
400
+ createMany?: Prisma.EnvironmentCreateManyTeamInputEnvelope;
401
+ set?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
402
+ disconnect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
403
+ delete?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
404
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
405
+ update?: Prisma.EnvironmentUpdateWithWhereUniqueWithoutTeamInput | Prisma.EnvironmentUpdateWithWhereUniqueWithoutTeamInput[];
406
+ updateMany?: Prisma.EnvironmentUpdateManyWithWhereWithoutTeamInput | Prisma.EnvironmentUpdateManyWithWhereWithoutTeamInput[];
407
+ deleteMany?: Prisma.EnvironmentScalarWhereInput | Prisma.EnvironmentScalarWhereInput[];
408
+ };
409
+ export type EnvironmentUncheckedUpdateManyWithoutTeamNestedInput = {
410
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutTeamInput, Prisma.EnvironmentUncheckedCreateWithoutTeamInput> | Prisma.EnvironmentCreateWithoutTeamInput[] | Prisma.EnvironmentUncheckedCreateWithoutTeamInput[];
411
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutTeamInput | Prisma.EnvironmentCreateOrConnectWithoutTeamInput[];
412
+ upsert?: Prisma.EnvironmentUpsertWithWhereUniqueWithoutTeamInput | Prisma.EnvironmentUpsertWithWhereUniqueWithoutTeamInput[];
413
+ createMany?: Prisma.EnvironmentCreateManyTeamInputEnvelope;
414
+ set?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
415
+ disconnect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
416
+ delete?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
417
+ connect?: Prisma.EnvironmentWhereUniqueInput | Prisma.EnvironmentWhereUniqueInput[];
418
+ update?: Prisma.EnvironmentUpdateWithWhereUniqueWithoutTeamInput | Prisma.EnvironmentUpdateWithWhereUniqueWithoutTeamInput[];
419
+ updateMany?: Prisma.EnvironmentUpdateManyWithWhereWithoutTeamInput | Prisma.EnvironmentUpdateManyWithWhereWithoutTeamInput[];
420
+ deleteMany?: Prisma.EnvironmentScalarWhereInput | Prisma.EnvironmentScalarWhereInput[];
421
+ };
422
+ export type EnvironmentCreateNestedOneWithoutConfigurationsInput = {
423
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutConfigurationsInput, Prisma.EnvironmentUncheckedCreateWithoutConfigurationsInput>;
424
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutConfigurationsInput;
425
+ connect?: Prisma.EnvironmentWhereUniqueInput;
426
+ };
427
+ export type EnvironmentUpdateOneRequiredWithoutConfigurationsNestedInput = {
428
+ create?: Prisma.XOR<Prisma.EnvironmentCreateWithoutConfigurationsInput, Prisma.EnvironmentUncheckedCreateWithoutConfigurationsInput>;
429
+ connectOrCreate?: Prisma.EnvironmentCreateOrConnectWithoutConfigurationsInput;
430
+ upsert?: Prisma.EnvironmentUpsertWithoutConfigurationsInput;
431
+ connect?: Prisma.EnvironmentWhereUniqueInput;
432
+ update?: Prisma.XOR<Prisma.XOR<Prisma.EnvironmentUpdateToOneWithWhereWithoutConfigurationsInput, Prisma.EnvironmentUpdateWithoutConfigurationsInput>, Prisma.EnvironmentUncheckedUpdateWithoutConfigurationsInput>;
433
+ };
434
+ export type EnvironmentCreateWithoutAccountsInput = {
435
+ id?: string;
436
+ name: string;
437
+ slug: string;
438
+ createdAt?: Date | string;
439
+ updatedAt?: Date | string;
440
+ organization: Prisma.OrganizationCreateNestedOneWithoutEnvironmentsInput;
441
+ team?: Prisma.TeamCreateNestedOneWithoutEnvironmentsInput;
442
+ configurations?: Prisma.ConfigurationCreateNestedManyWithoutEnvironmentInput;
443
+ };
444
+ export type EnvironmentUncheckedCreateWithoutAccountsInput = {
445
+ id?: string;
446
+ organizationId: string;
447
+ name: string;
448
+ slug: string;
449
+ teamId?: string | null;
450
+ createdAt?: Date | string;
451
+ updatedAt?: Date | string;
452
+ configurations?: Prisma.ConfigurationUncheckedCreateNestedManyWithoutEnvironmentInput;
453
+ };
454
+ export type EnvironmentCreateOrConnectWithoutAccountsInput = {
455
+ where: Prisma.EnvironmentWhereUniqueInput;
456
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutAccountsInput, Prisma.EnvironmentUncheckedCreateWithoutAccountsInput>;
457
+ };
458
+ export type EnvironmentUpsertWithoutAccountsInput = {
459
+ update: Prisma.XOR<Prisma.EnvironmentUpdateWithoutAccountsInput, Prisma.EnvironmentUncheckedUpdateWithoutAccountsInput>;
460
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutAccountsInput, Prisma.EnvironmentUncheckedCreateWithoutAccountsInput>;
461
+ where?: Prisma.EnvironmentWhereInput;
462
+ };
463
+ export type EnvironmentUpdateToOneWithWhereWithoutAccountsInput = {
464
+ where?: Prisma.EnvironmentWhereInput;
465
+ data: Prisma.XOR<Prisma.EnvironmentUpdateWithoutAccountsInput, Prisma.EnvironmentUncheckedUpdateWithoutAccountsInput>;
466
+ };
467
+ export type EnvironmentUpdateWithoutAccountsInput = {
468
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
469
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
470
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
471
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
472
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
473
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutEnvironmentsNestedInput;
474
+ team?: Prisma.TeamUpdateOneWithoutEnvironmentsNestedInput;
475
+ configurations?: Prisma.ConfigurationUpdateManyWithoutEnvironmentNestedInput;
476
+ };
477
+ export type EnvironmentUncheckedUpdateWithoutAccountsInput = {
478
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
479
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
480
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
481
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
482
+ teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
483
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
484
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
485
+ configurations?: Prisma.ConfigurationUncheckedUpdateManyWithoutEnvironmentNestedInput;
486
+ };
487
+ export type EnvironmentCreateWithoutOrganizationInput = {
488
+ id?: string;
489
+ name: string;
490
+ slug: string;
491
+ createdAt?: Date | string;
492
+ updatedAt?: Date | string;
493
+ team?: Prisma.TeamCreateNestedOneWithoutEnvironmentsInput;
494
+ configurations?: Prisma.ConfigurationCreateNestedManyWithoutEnvironmentInput;
495
+ accounts?: Prisma.AccountCreateNestedManyWithoutEnvironmentInput;
496
+ };
497
+ export type EnvironmentUncheckedCreateWithoutOrganizationInput = {
498
+ id?: string;
499
+ name: string;
500
+ slug: string;
501
+ teamId?: string | null;
502
+ createdAt?: Date | string;
503
+ updatedAt?: Date | string;
504
+ configurations?: Prisma.ConfigurationUncheckedCreateNestedManyWithoutEnvironmentInput;
505
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutEnvironmentInput;
506
+ };
507
+ export type EnvironmentCreateOrConnectWithoutOrganizationInput = {
508
+ where: Prisma.EnvironmentWhereUniqueInput;
509
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutOrganizationInput, Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput>;
510
+ };
511
+ export type EnvironmentCreateManyOrganizationInputEnvelope = {
512
+ data: Prisma.EnvironmentCreateManyOrganizationInput | Prisma.EnvironmentCreateManyOrganizationInput[];
513
+ skipDuplicates?: boolean;
514
+ };
515
+ export type EnvironmentUpsertWithWhereUniqueWithoutOrganizationInput = {
516
+ where: Prisma.EnvironmentWhereUniqueInput;
517
+ update: Prisma.XOR<Prisma.EnvironmentUpdateWithoutOrganizationInput, Prisma.EnvironmentUncheckedUpdateWithoutOrganizationInput>;
518
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutOrganizationInput, Prisma.EnvironmentUncheckedCreateWithoutOrganizationInput>;
519
+ };
520
+ export type EnvironmentUpdateWithWhereUniqueWithoutOrganizationInput = {
521
+ where: Prisma.EnvironmentWhereUniqueInput;
522
+ data: Prisma.XOR<Prisma.EnvironmentUpdateWithoutOrganizationInput, Prisma.EnvironmentUncheckedUpdateWithoutOrganizationInput>;
523
+ };
524
+ export type EnvironmentUpdateManyWithWhereWithoutOrganizationInput = {
525
+ where: Prisma.EnvironmentScalarWhereInput;
526
+ data: Prisma.XOR<Prisma.EnvironmentUpdateManyMutationInput, Prisma.EnvironmentUncheckedUpdateManyWithoutOrganizationInput>;
527
+ };
528
+ export type EnvironmentScalarWhereInput = {
529
+ AND?: Prisma.EnvironmentScalarWhereInput | Prisma.EnvironmentScalarWhereInput[];
530
+ OR?: Prisma.EnvironmentScalarWhereInput[];
531
+ NOT?: Prisma.EnvironmentScalarWhereInput | Prisma.EnvironmentScalarWhereInput[];
532
+ id?: Prisma.StringFilter<"Environment"> | string;
533
+ organizationId?: Prisma.StringFilter<"Environment"> | string;
534
+ name?: Prisma.StringFilter<"Environment"> | string;
535
+ slug?: Prisma.StringFilter<"Environment"> | string;
536
+ teamId?: Prisma.StringNullableFilter<"Environment"> | string | null;
537
+ createdAt?: Prisma.DateTimeFilter<"Environment"> | Date | string;
538
+ updatedAt?: Prisma.DateTimeFilter<"Environment"> | Date | string;
539
+ };
540
+ export type EnvironmentCreateWithoutTeamInput = {
541
+ id?: string;
542
+ name: string;
543
+ slug: string;
544
+ createdAt?: Date | string;
545
+ updatedAt?: Date | string;
546
+ organization: Prisma.OrganizationCreateNestedOneWithoutEnvironmentsInput;
547
+ configurations?: Prisma.ConfigurationCreateNestedManyWithoutEnvironmentInput;
548
+ accounts?: Prisma.AccountCreateNestedManyWithoutEnvironmentInput;
549
+ };
550
+ export type EnvironmentUncheckedCreateWithoutTeamInput = {
551
+ id?: string;
552
+ organizationId: string;
553
+ name: string;
554
+ slug: string;
555
+ createdAt?: Date | string;
556
+ updatedAt?: Date | string;
557
+ configurations?: Prisma.ConfigurationUncheckedCreateNestedManyWithoutEnvironmentInput;
558
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutEnvironmentInput;
559
+ };
560
+ export type EnvironmentCreateOrConnectWithoutTeamInput = {
561
+ where: Prisma.EnvironmentWhereUniqueInput;
562
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutTeamInput, Prisma.EnvironmentUncheckedCreateWithoutTeamInput>;
563
+ };
564
+ export type EnvironmentCreateManyTeamInputEnvelope = {
565
+ data: Prisma.EnvironmentCreateManyTeamInput | Prisma.EnvironmentCreateManyTeamInput[];
566
+ skipDuplicates?: boolean;
567
+ };
568
+ export type EnvironmentUpsertWithWhereUniqueWithoutTeamInput = {
569
+ where: Prisma.EnvironmentWhereUniqueInput;
570
+ update: Prisma.XOR<Prisma.EnvironmentUpdateWithoutTeamInput, Prisma.EnvironmentUncheckedUpdateWithoutTeamInput>;
571
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutTeamInput, Prisma.EnvironmentUncheckedCreateWithoutTeamInput>;
572
+ };
573
+ export type EnvironmentUpdateWithWhereUniqueWithoutTeamInput = {
574
+ where: Prisma.EnvironmentWhereUniqueInput;
575
+ data: Prisma.XOR<Prisma.EnvironmentUpdateWithoutTeamInput, Prisma.EnvironmentUncheckedUpdateWithoutTeamInput>;
576
+ };
577
+ export type EnvironmentUpdateManyWithWhereWithoutTeamInput = {
578
+ where: Prisma.EnvironmentScalarWhereInput;
579
+ data: Prisma.XOR<Prisma.EnvironmentUpdateManyMutationInput, Prisma.EnvironmentUncheckedUpdateManyWithoutTeamInput>;
580
+ };
581
+ export type EnvironmentCreateWithoutConfigurationsInput = {
582
+ id?: string;
583
+ name: string;
584
+ slug: string;
585
+ createdAt?: Date | string;
586
+ updatedAt?: Date | string;
587
+ organization: Prisma.OrganizationCreateNestedOneWithoutEnvironmentsInput;
588
+ team?: Prisma.TeamCreateNestedOneWithoutEnvironmentsInput;
589
+ accounts?: Prisma.AccountCreateNestedManyWithoutEnvironmentInput;
590
+ };
591
+ export type EnvironmentUncheckedCreateWithoutConfigurationsInput = {
592
+ id?: string;
593
+ organizationId: string;
594
+ name: string;
595
+ slug: string;
596
+ teamId?: string | null;
597
+ createdAt?: Date | string;
598
+ updatedAt?: Date | string;
599
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutEnvironmentInput;
600
+ };
601
+ export type EnvironmentCreateOrConnectWithoutConfigurationsInput = {
602
+ where: Prisma.EnvironmentWhereUniqueInput;
603
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutConfigurationsInput, Prisma.EnvironmentUncheckedCreateWithoutConfigurationsInput>;
604
+ };
605
+ export type EnvironmentUpsertWithoutConfigurationsInput = {
606
+ update: Prisma.XOR<Prisma.EnvironmentUpdateWithoutConfigurationsInput, Prisma.EnvironmentUncheckedUpdateWithoutConfigurationsInput>;
607
+ create: Prisma.XOR<Prisma.EnvironmentCreateWithoutConfigurationsInput, Prisma.EnvironmentUncheckedCreateWithoutConfigurationsInput>;
608
+ where?: Prisma.EnvironmentWhereInput;
609
+ };
610
+ export type EnvironmentUpdateToOneWithWhereWithoutConfigurationsInput = {
611
+ where?: Prisma.EnvironmentWhereInput;
612
+ data: Prisma.XOR<Prisma.EnvironmentUpdateWithoutConfigurationsInput, Prisma.EnvironmentUncheckedUpdateWithoutConfigurationsInput>;
613
+ };
614
+ export type EnvironmentUpdateWithoutConfigurationsInput = {
615
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
616
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
617
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
618
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
619
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
620
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutEnvironmentsNestedInput;
621
+ team?: Prisma.TeamUpdateOneWithoutEnvironmentsNestedInput;
622
+ accounts?: Prisma.AccountUpdateManyWithoutEnvironmentNestedInput;
623
+ };
624
+ export type EnvironmentUncheckedUpdateWithoutConfigurationsInput = {
625
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
626
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
627
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
628
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
629
+ teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
630
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
631
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
632
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutEnvironmentNestedInput;
633
+ };
634
+ export type EnvironmentCreateManyOrganizationInput = {
635
+ id?: string;
636
+ name: string;
637
+ slug: string;
638
+ teamId?: string | null;
639
+ createdAt?: Date | string;
640
+ updatedAt?: Date | string;
641
+ };
642
+ export type EnvironmentUpdateWithoutOrganizationInput = {
643
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
644
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
645
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
646
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
647
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
648
+ team?: Prisma.TeamUpdateOneWithoutEnvironmentsNestedInput;
649
+ configurations?: Prisma.ConfigurationUpdateManyWithoutEnvironmentNestedInput;
650
+ accounts?: Prisma.AccountUpdateManyWithoutEnvironmentNestedInput;
651
+ };
652
+ export type EnvironmentUncheckedUpdateWithoutOrganizationInput = {
653
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
654
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
655
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
656
+ teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
657
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
658
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
659
+ configurations?: Prisma.ConfigurationUncheckedUpdateManyWithoutEnvironmentNestedInput;
660
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutEnvironmentNestedInput;
661
+ };
662
+ export type EnvironmentUncheckedUpdateManyWithoutOrganizationInput = {
663
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
664
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
665
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
666
+ teamId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
667
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
668
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
669
+ };
670
+ export type EnvironmentCreateManyTeamInput = {
671
+ id?: string;
672
+ organizationId: string;
673
+ name: string;
674
+ slug: string;
675
+ createdAt?: Date | string;
676
+ updatedAt?: Date | string;
677
+ };
678
+ export type EnvironmentUpdateWithoutTeamInput = {
679
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
680
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
681
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
682
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
683
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
684
+ organization?: Prisma.OrganizationUpdateOneRequiredWithoutEnvironmentsNestedInput;
685
+ configurations?: Prisma.ConfigurationUpdateManyWithoutEnvironmentNestedInput;
686
+ accounts?: Prisma.AccountUpdateManyWithoutEnvironmentNestedInput;
687
+ };
688
+ export type EnvironmentUncheckedUpdateWithoutTeamInput = {
689
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
690
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
691
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
692
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
693
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
694
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
695
+ configurations?: Prisma.ConfigurationUncheckedUpdateManyWithoutEnvironmentNestedInput;
696
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutEnvironmentNestedInput;
697
+ };
698
+ export type EnvironmentUncheckedUpdateManyWithoutTeamInput = {
699
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
700
+ organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
701
+ name?: Prisma.StringFieldUpdateOperationsInput | string;
702
+ slug?: Prisma.StringFieldUpdateOperationsInput | string;
703
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
704
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
705
+ };
706
+ /**
707
+ * Count Type EnvironmentCountOutputType
708
+ */
709
+ export type EnvironmentCountOutputType = {
710
+ configurations: number;
711
+ accounts: number;
712
+ };
713
+ export type EnvironmentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
714
+ configurations?: boolean | EnvironmentCountOutputTypeCountConfigurationsArgs;
715
+ accounts?: boolean | EnvironmentCountOutputTypeCountAccountsArgs;
716
+ };
717
+ /**
718
+ * EnvironmentCountOutputType without action
719
+ */
720
+ export type EnvironmentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
721
+ /**
722
+ * Select specific fields to fetch from the EnvironmentCountOutputType
723
+ */
724
+ select?: Prisma.EnvironmentCountOutputTypeSelect<ExtArgs> | null;
725
+ };
726
+ /**
727
+ * EnvironmentCountOutputType without action
728
+ */
729
+ export type EnvironmentCountOutputTypeCountConfigurationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
730
+ where?: Prisma.ConfigurationWhereInput;
731
+ };
732
+ /**
733
+ * EnvironmentCountOutputType without action
734
+ */
735
+ export type EnvironmentCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
736
+ where?: Prisma.AccountWhereInput;
737
+ };
738
+ export type EnvironmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
739
+ id?: boolean;
740
+ organizationId?: boolean;
741
+ name?: boolean;
742
+ slug?: boolean;
743
+ teamId?: boolean;
744
+ createdAt?: boolean;
745
+ updatedAt?: boolean;
746
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
747
+ team?: boolean | Prisma.Environment$teamArgs<ExtArgs>;
748
+ configurations?: boolean | Prisma.Environment$configurationsArgs<ExtArgs>;
749
+ accounts?: boolean | Prisma.Environment$accountsArgs<ExtArgs>;
750
+ _count?: boolean | Prisma.EnvironmentCountOutputTypeDefaultArgs<ExtArgs>;
751
+ }, ExtArgs["result"]["environment"]>;
752
+ export type EnvironmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
753
+ id?: boolean;
754
+ organizationId?: boolean;
755
+ name?: boolean;
756
+ slug?: boolean;
757
+ teamId?: boolean;
758
+ createdAt?: boolean;
759
+ updatedAt?: boolean;
760
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
761
+ team?: boolean | Prisma.Environment$teamArgs<ExtArgs>;
762
+ }, ExtArgs["result"]["environment"]>;
763
+ export type EnvironmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
764
+ id?: boolean;
765
+ organizationId?: boolean;
766
+ name?: boolean;
767
+ slug?: boolean;
768
+ teamId?: boolean;
769
+ createdAt?: boolean;
770
+ updatedAt?: boolean;
771
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
772
+ team?: boolean | Prisma.Environment$teamArgs<ExtArgs>;
773
+ }, ExtArgs["result"]["environment"]>;
774
+ export type EnvironmentSelectScalar = {
775
+ id?: boolean;
776
+ organizationId?: boolean;
777
+ name?: boolean;
778
+ slug?: boolean;
779
+ teamId?: boolean;
780
+ createdAt?: boolean;
781
+ updatedAt?: boolean;
782
+ };
783
+ export type EnvironmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "name" | "slug" | "teamId" | "createdAt" | "updatedAt", ExtArgs["result"]["environment"]>;
784
+ export type EnvironmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
785
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
786
+ team?: boolean | Prisma.Environment$teamArgs<ExtArgs>;
787
+ configurations?: boolean | Prisma.Environment$configurationsArgs<ExtArgs>;
788
+ accounts?: boolean | Prisma.Environment$accountsArgs<ExtArgs>;
789
+ _count?: boolean | Prisma.EnvironmentCountOutputTypeDefaultArgs<ExtArgs>;
790
+ };
791
+ export type EnvironmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
792
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
793
+ team?: boolean | Prisma.Environment$teamArgs<ExtArgs>;
794
+ };
795
+ export type EnvironmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
796
+ organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
797
+ team?: boolean | Prisma.Environment$teamArgs<ExtArgs>;
798
+ };
799
+ export type $EnvironmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
800
+ name: "Environment";
801
+ objects: {
802
+ organization: Prisma.$OrganizationPayload<ExtArgs>;
803
+ team: Prisma.$TeamPayload<ExtArgs> | null;
804
+ configurations: Prisma.$ConfigurationPayload<ExtArgs>[];
805
+ accounts: Prisma.$AccountPayload<ExtArgs>[];
806
+ };
807
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
808
+ id: string;
809
+ organizationId: string;
810
+ name: string;
811
+ slug: string;
812
+ teamId: string | null;
813
+ createdAt: Date;
814
+ updatedAt: Date;
815
+ }, ExtArgs["result"]["environment"]>;
816
+ composites: {};
817
+ };
818
+ export type EnvironmentGetPayload<S extends boolean | null | undefined | EnvironmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload, S>;
819
+ export type EnvironmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<EnvironmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
820
+ select?: EnvironmentCountAggregateInputType | true;
821
+ };
822
+ export interface EnvironmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
823
+ [K: symbol]: {
824
+ types: Prisma.TypeMap<ExtArgs>['model']['Environment'];
825
+ meta: {
826
+ name: 'Environment';
827
+ };
828
+ };
829
+ /**
830
+ * Find zero or one Environment that matches the filter.
831
+ * @param {EnvironmentFindUniqueArgs} args - Arguments to find a Environment
832
+ * @example
833
+ * // Get one Environment
834
+ * const environment = await prisma.environment.findUnique({
835
+ * where: {
836
+ * // ... provide filter here
837
+ * }
838
+ * })
839
+ */
840
+ findUnique<T extends EnvironmentFindUniqueArgs>(args: Prisma.SelectSubset<T, EnvironmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
841
+ /**
842
+ * Find one Environment that matches the filter or throw an error with `error.code='P2025'`
843
+ * if no matches were found.
844
+ * @param {EnvironmentFindUniqueOrThrowArgs} args - Arguments to find a Environment
845
+ * @example
846
+ * // Get one Environment
847
+ * const environment = await prisma.environment.findUniqueOrThrow({
848
+ * where: {
849
+ * // ... provide filter here
850
+ * }
851
+ * })
852
+ */
853
+ findUniqueOrThrow<T extends EnvironmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EnvironmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
854
+ /**
855
+ * Find the first Environment that matches the filter.
856
+ * Note, that providing `undefined` is treated as the value not being there.
857
+ * Read more here: https://pris.ly/d/null-undefined
858
+ * @param {EnvironmentFindFirstArgs} args - Arguments to find a Environment
859
+ * @example
860
+ * // Get one Environment
861
+ * const environment = await prisma.environment.findFirst({
862
+ * where: {
863
+ * // ... provide filter here
864
+ * }
865
+ * })
866
+ */
867
+ findFirst<T extends EnvironmentFindFirstArgs>(args?: Prisma.SelectSubset<T, EnvironmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
868
+ /**
869
+ * Find the first Environment that matches the filter or
870
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
871
+ * Note, that providing `undefined` is treated as the value not being there.
872
+ * Read more here: https://pris.ly/d/null-undefined
873
+ * @param {EnvironmentFindFirstOrThrowArgs} args - Arguments to find a Environment
874
+ * @example
875
+ * // Get one Environment
876
+ * const environment = await prisma.environment.findFirstOrThrow({
877
+ * where: {
878
+ * // ... provide filter here
879
+ * }
880
+ * })
881
+ */
882
+ findFirstOrThrow<T extends EnvironmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EnvironmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
883
+ /**
884
+ * Find zero or more Environments that matches the filter.
885
+ * Note, that providing `undefined` is treated as the value not being there.
886
+ * Read more here: https://pris.ly/d/null-undefined
887
+ * @param {EnvironmentFindManyArgs} args - Arguments to filter and select certain fields only.
888
+ * @example
889
+ * // Get all Environments
890
+ * const environments = await prisma.environment.findMany()
891
+ *
892
+ * // Get first 10 Environments
893
+ * const environments = await prisma.environment.findMany({ take: 10 })
894
+ *
895
+ * // Only select the `id`
896
+ * const environmentWithIdOnly = await prisma.environment.findMany({ select: { id: true } })
897
+ *
898
+ */
899
+ findMany<T extends EnvironmentFindManyArgs>(args?: Prisma.SelectSubset<T, EnvironmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
900
+ /**
901
+ * Create a Environment.
902
+ * @param {EnvironmentCreateArgs} args - Arguments to create a Environment.
903
+ * @example
904
+ * // Create one Environment
905
+ * const Environment = await prisma.environment.create({
906
+ * data: {
907
+ * // ... data to create a Environment
908
+ * }
909
+ * })
910
+ *
911
+ */
912
+ create<T extends EnvironmentCreateArgs>(args: Prisma.SelectSubset<T, EnvironmentCreateArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
913
+ /**
914
+ * Create many Environments.
915
+ * @param {EnvironmentCreateManyArgs} args - Arguments to create many Environments.
916
+ * @example
917
+ * // Create many Environments
918
+ * const environment = await prisma.environment.createMany({
919
+ * data: [
920
+ * // ... provide data here
921
+ * ]
922
+ * })
923
+ *
924
+ */
925
+ createMany<T extends EnvironmentCreateManyArgs>(args?: Prisma.SelectSubset<T, EnvironmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
926
+ /**
927
+ * Create many Environments and returns the data saved in the database.
928
+ * @param {EnvironmentCreateManyAndReturnArgs} args - Arguments to create many Environments.
929
+ * @example
930
+ * // Create many Environments
931
+ * const environment = await prisma.environment.createManyAndReturn({
932
+ * data: [
933
+ * // ... provide data here
934
+ * ]
935
+ * })
936
+ *
937
+ * // Create many Environments and only return the `id`
938
+ * const environmentWithIdOnly = await prisma.environment.createManyAndReturn({
939
+ * select: { id: true },
940
+ * data: [
941
+ * // ... provide data here
942
+ * ]
943
+ * })
944
+ * Note, that providing `undefined` is treated as the value not being there.
945
+ * Read more here: https://pris.ly/d/null-undefined
946
+ *
947
+ */
948
+ createManyAndReturn<T extends EnvironmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, EnvironmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
949
+ /**
950
+ * Delete a Environment.
951
+ * @param {EnvironmentDeleteArgs} args - Arguments to delete one Environment.
952
+ * @example
953
+ * // Delete one Environment
954
+ * const Environment = await prisma.environment.delete({
955
+ * where: {
956
+ * // ... filter to delete one Environment
957
+ * }
958
+ * })
959
+ *
960
+ */
961
+ delete<T extends EnvironmentDeleteArgs>(args: Prisma.SelectSubset<T, EnvironmentDeleteArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
962
+ /**
963
+ * Update one Environment.
964
+ * @param {EnvironmentUpdateArgs} args - Arguments to update one Environment.
965
+ * @example
966
+ * // Update one Environment
967
+ * const environment = await prisma.environment.update({
968
+ * where: {
969
+ * // ... provide filter here
970
+ * },
971
+ * data: {
972
+ * // ... provide data here
973
+ * }
974
+ * })
975
+ *
976
+ */
977
+ update<T extends EnvironmentUpdateArgs>(args: Prisma.SelectSubset<T, EnvironmentUpdateArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
978
+ /**
979
+ * Delete zero or more Environments.
980
+ * @param {EnvironmentDeleteManyArgs} args - Arguments to filter Environments to delete.
981
+ * @example
982
+ * // Delete a few Environments
983
+ * const { count } = await prisma.environment.deleteMany({
984
+ * where: {
985
+ * // ... provide filter here
986
+ * }
987
+ * })
988
+ *
989
+ */
990
+ deleteMany<T extends EnvironmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, EnvironmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
991
+ /**
992
+ * Update zero or more Environments.
993
+ * Note, that providing `undefined` is treated as the value not being there.
994
+ * Read more here: https://pris.ly/d/null-undefined
995
+ * @param {EnvironmentUpdateManyArgs} args - Arguments to update one or more rows.
996
+ * @example
997
+ * // Update many Environments
998
+ * const environment = await prisma.environment.updateMany({
999
+ * where: {
1000
+ * // ... provide filter here
1001
+ * },
1002
+ * data: {
1003
+ * // ... provide data here
1004
+ * }
1005
+ * })
1006
+ *
1007
+ */
1008
+ updateMany<T extends EnvironmentUpdateManyArgs>(args: Prisma.SelectSubset<T, EnvironmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1009
+ /**
1010
+ * Update zero or more Environments and returns the data updated in the database.
1011
+ * @param {EnvironmentUpdateManyAndReturnArgs} args - Arguments to update many Environments.
1012
+ * @example
1013
+ * // Update many Environments
1014
+ * const environment = await prisma.environment.updateManyAndReturn({
1015
+ * where: {
1016
+ * // ... provide filter here
1017
+ * },
1018
+ * data: [
1019
+ * // ... provide data here
1020
+ * ]
1021
+ * })
1022
+ *
1023
+ * // Update zero or more Environments and only return the `id`
1024
+ * const environmentWithIdOnly = await prisma.environment.updateManyAndReturn({
1025
+ * select: { id: true },
1026
+ * where: {
1027
+ * // ... provide filter here
1028
+ * },
1029
+ * data: [
1030
+ * // ... provide data here
1031
+ * ]
1032
+ * })
1033
+ * Note, that providing `undefined` is treated as the value not being there.
1034
+ * Read more here: https://pris.ly/d/null-undefined
1035
+ *
1036
+ */
1037
+ updateManyAndReturn<T extends EnvironmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, EnvironmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1038
+ /**
1039
+ * Create or update one Environment.
1040
+ * @param {EnvironmentUpsertArgs} args - Arguments to update or create a Environment.
1041
+ * @example
1042
+ * // Update or create a Environment
1043
+ * const environment = await prisma.environment.upsert({
1044
+ * create: {
1045
+ * // ... data to create a Environment
1046
+ * },
1047
+ * update: {
1048
+ * // ... in case it already exists, update
1049
+ * },
1050
+ * where: {
1051
+ * // ... the filter for the Environment we want to update
1052
+ * }
1053
+ * })
1054
+ */
1055
+ upsert<T extends EnvironmentUpsertArgs>(args: Prisma.SelectSubset<T, EnvironmentUpsertArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1056
+ /**
1057
+ * Count the number of Environments.
1058
+ * Note, that providing `undefined` is treated as the value not being there.
1059
+ * Read more here: https://pris.ly/d/null-undefined
1060
+ * @param {EnvironmentCountArgs} args - Arguments to filter Environments to count.
1061
+ * @example
1062
+ * // Count the number of Environments
1063
+ * const count = await prisma.environment.count({
1064
+ * where: {
1065
+ * // ... the filter for the Environments we want to count
1066
+ * }
1067
+ * })
1068
+ **/
1069
+ count<T extends EnvironmentCountArgs>(args?: Prisma.Subset<T, EnvironmentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], EnvironmentCountAggregateOutputType> : number>;
1070
+ /**
1071
+ * Allows you to perform aggregations operations on a Environment.
1072
+ * Note, that providing `undefined` is treated as the value not being there.
1073
+ * Read more here: https://pris.ly/d/null-undefined
1074
+ * @param {EnvironmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1075
+ * @example
1076
+ * // Ordered by age ascending
1077
+ * // Where email contains prisma.io
1078
+ * // Limited to the 10 users
1079
+ * const aggregations = await prisma.user.aggregate({
1080
+ * _avg: {
1081
+ * age: true,
1082
+ * },
1083
+ * where: {
1084
+ * email: {
1085
+ * contains: "prisma.io",
1086
+ * },
1087
+ * },
1088
+ * orderBy: {
1089
+ * age: "asc",
1090
+ * },
1091
+ * take: 10,
1092
+ * })
1093
+ **/
1094
+ aggregate<T extends EnvironmentAggregateArgs>(args: Prisma.Subset<T, EnvironmentAggregateArgs>): Prisma.PrismaPromise<GetEnvironmentAggregateType<T>>;
1095
+ /**
1096
+ * Group by Environment.
1097
+ * Note, that providing `undefined` is treated as the value not being there.
1098
+ * Read more here: https://pris.ly/d/null-undefined
1099
+ * @param {EnvironmentGroupByArgs} args - Group by arguments.
1100
+ * @example
1101
+ * // Group by city, order by createdAt, get count
1102
+ * const result = await prisma.user.groupBy({
1103
+ * by: ['city', 'createdAt'],
1104
+ * orderBy: {
1105
+ * createdAt: true
1106
+ * },
1107
+ * _count: {
1108
+ * _all: true
1109
+ * },
1110
+ * })
1111
+ *
1112
+ **/
1113
+ groupBy<T extends EnvironmentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1114
+ orderBy: EnvironmentGroupByArgs['orderBy'];
1115
+ } : {
1116
+ orderBy?: EnvironmentGroupByArgs['orderBy'];
1117
+ }, 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 ? {
1118
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1119
+ Error,
1120
+ 'Field ',
1121
+ P,
1122
+ ` in "having" needs to be provided in "by"`
1123
+ ];
1124
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1125
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1126
+ }[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 ? {} : {
1127
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1128
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1129
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1130
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, EnvironmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEnvironmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1131
+ /**
1132
+ * Fields of the Environment model
1133
+ */
1134
+ readonly fields: EnvironmentFieldRefs;
1135
+ }
1136
+ /**
1137
+ * The delegate class that acts as a "Promise-like" for Environment.
1138
+ * Why is this prefixed with `Prisma__`?
1139
+ * Because we want to prevent naming conflicts as mentioned in
1140
+ * https://github.com/prisma/prisma-client-js/issues/707
1141
+ */
1142
+ export interface Prisma__EnvironmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1143
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1144
+ 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>;
1145
+ team<T extends Prisma.Environment$teamArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Environment$teamArgs<ExtArgs>>): Prisma.Prisma__TeamClient<runtime.Types.Result.GetResult<Prisma.$TeamPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1146
+ configurations<T extends Prisma.Environment$configurationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Environment$configurationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConfigurationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1147
+ accounts<T extends Prisma.Environment$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Environment$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1148
+ /**
1149
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1150
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1151
+ * @param onrejected The callback to execute when the Promise is rejected.
1152
+ * @returns A Promise for the completion of which ever callback is executed.
1153
+ */
1154
+ 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>;
1155
+ /**
1156
+ * Attaches a callback for only the rejection of the Promise.
1157
+ * @param onrejected The callback to execute when the Promise is rejected.
1158
+ * @returns A Promise for the completion of the callback.
1159
+ */
1160
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1161
+ /**
1162
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1163
+ * resolved value cannot be modified from the callback.
1164
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1165
+ * @returns A Promise for the completion of the callback.
1166
+ */
1167
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1168
+ }
1169
+ /**
1170
+ * Fields of the Environment model
1171
+ */
1172
+ export interface EnvironmentFieldRefs {
1173
+ readonly id: Prisma.FieldRef<"Environment", 'String'>;
1174
+ readonly organizationId: Prisma.FieldRef<"Environment", 'String'>;
1175
+ readonly name: Prisma.FieldRef<"Environment", 'String'>;
1176
+ readonly slug: Prisma.FieldRef<"Environment", 'String'>;
1177
+ readonly teamId: Prisma.FieldRef<"Environment", 'String'>;
1178
+ readonly createdAt: Prisma.FieldRef<"Environment", 'DateTime'>;
1179
+ readonly updatedAt: Prisma.FieldRef<"Environment", 'DateTime'>;
1180
+ }
1181
+ /**
1182
+ * Environment findUnique
1183
+ */
1184
+ export type EnvironmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1185
+ /**
1186
+ * Select specific fields to fetch from the Environment
1187
+ */
1188
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1189
+ /**
1190
+ * Omit specific fields from the Environment
1191
+ */
1192
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1193
+ /**
1194
+ * Choose, which related nodes to fetch as well
1195
+ */
1196
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1197
+ /**
1198
+ * Filter, which Environment to fetch.
1199
+ */
1200
+ where: Prisma.EnvironmentWhereUniqueInput;
1201
+ };
1202
+ /**
1203
+ * Environment findUniqueOrThrow
1204
+ */
1205
+ export type EnvironmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1206
+ /**
1207
+ * Select specific fields to fetch from the Environment
1208
+ */
1209
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1210
+ /**
1211
+ * Omit specific fields from the Environment
1212
+ */
1213
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1214
+ /**
1215
+ * Choose, which related nodes to fetch as well
1216
+ */
1217
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1218
+ /**
1219
+ * Filter, which Environment to fetch.
1220
+ */
1221
+ where: Prisma.EnvironmentWhereUniqueInput;
1222
+ };
1223
+ /**
1224
+ * Environment findFirst
1225
+ */
1226
+ export type EnvironmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1227
+ /**
1228
+ * Select specific fields to fetch from the Environment
1229
+ */
1230
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1231
+ /**
1232
+ * Omit specific fields from the Environment
1233
+ */
1234
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1235
+ /**
1236
+ * Choose, which related nodes to fetch as well
1237
+ */
1238
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1239
+ /**
1240
+ * Filter, which Environment to fetch.
1241
+ */
1242
+ where?: Prisma.EnvironmentWhereInput;
1243
+ /**
1244
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1245
+ *
1246
+ * Determine the order of Environments to fetch.
1247
+ */
1248
+ orderBy?: Prisma.EnvironmentOrderByWithRelationInput | Prisma.EnvironmentOrderByWithRelationInput[];
1249
+ /**
1250
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1251
+ *
1252
+ * Sets the position for searching for Environments.
1253
+ */
1254
+ cursor?: Prisma.EnvironmentWhereUniqueInput;
1255
+ /**
1256
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1257
+ *
1258
+ * Take `±n` Environments from the position of the cursor.
1259
+ */
1260
+ take?: number;
1261
+ /**
1262
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1263
+ *
1264
+ * Skip the first `n` Environments.
1265
+ */
1266
+ skip?: number;
1267
+ /**
1268
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1269
+ *
1270
+ * Filter by unique combinations of Environments.
1271
+ */
1272
+ distinct?: Prisma.EnvironmentScalarFieldEnum | Prisma.EnvironmentScalarFieldEnum[];
1273
+ };
1274
+ /**
1275
+ * Environment findFirstOrThrow
1276
+ */
1277
+ export type EnvironmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1278
+ /**
1279
+ * Select specific fields to fetch from the Environment
1280
+ */
1281
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1282
+ /**
1283
+ * Omit specific fields from the Environment
1284
+ */
1285
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1286
+ /**
1287
+ * Choose, which related nodes to fetch as well
1288
+ */
1289
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1290
+ /**
1291
+ * Filter, which Environment to fetch.
1292
+ */
1293
+ where?: Prisma.EnvironmentWhereInput;
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1296
+ *
1297
+ * Determine the order of Environments to fetch.
1298
+ */
1299
+ orderBy?: Prisma.EnvironmentOrderByWithRelationInput | Prisma.EnvironmentOrderByWithRelationInput[];
1300
+ /**
1301
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1302
+ *
1303
+ * Sets the position for searching for Environments.
1304
+ */
1305
+ cursor?: Prisma.EnvironmentWhereUniqueInput;
1306
+ /**
1307
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1308
+ *
1309
+ * Take `±n` Environments from the position of the cursor.
1310
+ */
1311
+ take?: number;
1312
+ /**
1313
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1314
+ *
1315
+ * Skip the first `n` Environments.
1316
+ */
1317
+ skip?: number;
1318
+ /**
1319
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1320
+ *
1321
+ * Filter by unique combinations of Environments.
1322
+ */
1323
+ distinct?: Prisma.EnvironmentScalarFieldEnum | Prisma.EnvironmentScalarFieldEnum[];
1324
+ };
1325
+ /**
1326
+ * Environment findMany
1327
+ */
1328
+ export type EnvironmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1329
+ /**
1330
+ * Select specific fields to fetch from the Environment
1331
+ */
1332
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1333
+ /**
1334
+ * Omit specific fields from the Environment
1335
+ */
1336
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1337
+ /**
1338
+ * Choose, which related nodes to fetch as well
1339
+ */
1340
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1341
+ /**
1342
+ * Filter, which Environments to fetch.
1343
+ */
1344
+ where?: Prisma.EnvironmentWhereInput;
1345
+ /**
1346
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1347
+ *
1348
+ * Determine the order of Environments to fetch.
1349
+ */
1350
+ orderBy?: Prisma.EnvironmentOrderByWithRelationInput | Prisma.EnvironmentOrderByWithRelationInput[];
1351
+ /**
1352
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1353
+ *
1354
+ * Sets the position for listing Environments.
1355
+ */
1356
+ cursor?: Prisma.EnvironmentWhereUniqueInput;
1357
+ /**
1358
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1359
+ *
1360
+ * Take `±n` Environments from the position of the cursor.
1361
+ */
1362
+ take?: number;
1363
+ /**
1364
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1365
+ *
1366
+ * Skip the first `n` Environments.
1367
+ */
1368
+ skip?: number;
1369
+ /**
1370
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1371
+ *
1372
+ * Filter by unique combinations of Environments.
1373
+ */
1374
+ distinct?: Prisma.EnvironmentScalarFieldEnum | Prisma.EnvironmentScalarFieldEnum[];
1375
+ };
1376
+ /**
1377
+ * Environment create
1378
+ */
1379
+ export type EnvironmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1380
+ /**
1381
+ * Select specific fields to fetch from the Environment
1382
+ */
1383
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1384
+ /**
1385
+ * Omit specific fields from the Environment
1386
+ */
1387
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1388
+ /**
1389
+ * Choose, which related nodes to fetch as well
1390
+ */
1391
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1392
+ /**
1393
+ * The data needed to create a Environment.
1394
+ */
1395
+ data: Prisma.XOR<Prisma.EnvironmentCreateInput, Prisma.EnvironmentUncheckedCreateInput>;
1396
+ };
1397
+ /**
1398
+ * Environment createMany
1399
+ */
1400
+ export type EnvironmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1401
+ /**
1402
+ * The data used to create many Environments.
1403
+ */
1404
+ data: Prisma.EnvironmentCreateManyInput | Prisma.EnvironmentCreateManyInput[];
1405
+ skipDuplicates?: boolean;
1406
+ };
1407
+ /**
1408
+ * Environment createManyAndReturn
1409
+ */
1410
+ export type EnvironmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1411
+ /**
1412
+ * Select specific fields to fetch from the Environment
1413
+ */
1414
+ select?: Prisma.EnvironmentSelectCreateManyAndReturn<ExtArgs> | null;
1415
+ /**
1416
+ * Omit specific fields from the Environment
1417
+ */
1418
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1419
+ /**
1420
+ * The data used to create many Environments.
1421
+ */
1422
+ data: Prisma.EnvironmentCreateManyInput | Prisma.EnvironmentCreateManyInput[];
1423
+ skipDuplicates?: boolean;
1424
+ /**
1425
+ * Choose, which related nodes to fetch as well
1426
+ */
1427
+ include?: Prisma.EnvironmentIncludeCreateManyAndReturn<ExtArgs> | null;
1428
+ };
1429
+ /**
1430
+ * Environment update
1431
+ */
1432
+ export type EnvironmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1433
+ /**
1434
+ * Select specific fields to fetch from the Environment
1435
+ */
1436
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1437
+ /**
1438
+ * Omit specific fields from the Environment
1439
+ */
1440
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1441
+ /**
1442
+ * Choose, which related nodes to fetch as well
1443
+ */
1444
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1445
+ /**
1446
+ * The data needed to update a Environment.
1447
+ */
1448
+ data: Prisma.XOR<Prisma.EnvironmentUpdateInput, Prisma.EnvironmentUncheckedUpdateInput>;
1449
+ /**
1450
+ * Choose, which Environment to update.
1451
+ */
1452
+ where: Prisma.EnvironmentWhereUniqueInput;
1453
+ };
1454
+ /**
1455
+ * Environment updateMany
1456
+ */
1457
+ export type EnvironmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1458
+ /**
1459
+ * The data used to update Environments.
1460
+ */
1461
+ data: Prisma.XOR<Prisma.EnvironmentUpdateManyMutationInput, Prisma.EnvironmentUncheckedUpdateManyInput>;
1462
+ /**
1463
+ * Filter which Environments to update
1464
+ */
1465
+ where?: Prisma.EnvironmentWhereInput;
1466
+ /**
1467
+ * Limit how many Environments to update.
1468
+ */
1469
+ limit?: number;
1470
+ };
1471
+ /**
1472
+ * Environment updateManyAndReturn
1473
+ */
1474
+ export type EnvironmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1475
+ /**
1476
+ * Select specific fields to fetch from the Environment
1477
+ */
1478
+ select?: Prisma.EnvironmentSelectUpdateManyAndReturn<ExtArgs> | null;
1479
+ /**
1480
+ * Omit specific fields from the Environment
1481
+ */
1482
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1483
+ /**
1484
+ * The data used to update Environments.
1485
+ */
1486
+ data: Prisma.XOR<Prisma.EnvironmentUpdateManyMutationInput, Prisma.EnvironmentUncheckedUpdateManyInput>;
1487
+ /**
1488
+ * Filter which Environments to update
1489
+ */
1490
+ where?: Prisma.EnvironmentWhereInput;
1491
+ /**
1492
+ * Limit how many Environments to update.
1493
+ */
1494
+ limit?: number;
1495
+ /**
1496
+ * Choose, which related nodes to fetch as well
1497
+ */
1498
+ include?: Prisma.EnvironmentIncludeUpdateManyAndReturn<ExtArgs> | null;
1499
+ };
1500
+ /**
1501
+ * Environment upsert
1502
+ */
1503
+ export type EnvironmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1504
+ /**
1505
+ * Select specific fields to fetch from the Environment
1506
+ */
1507
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1508
+ /**
1509
+ * Omit specific fields from the Environment
1510
+ */
1511
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1512
+ /**
1513
+ * Choose, which related nodes to fetch as well
1514
+ */
1515
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1516
+ /**
1517
+ * The filter to search for the Environment to update in case it exists.
1518
+ */
1519
+ where: Prisma.EnvironmentWhereUniqueInput;
1520
+ /**
1521
+ * In case the Environment found by the `where` argument doesn't exist, create a new Environment with this data.
1522
+ */
1523
+ create: Prisma.XOR<Prisma.EnvironmentCreateInput, Prisma.EnvironmentUncheckedCreateInput>;
1524
+ /**
1525
+ * In case the Environment was found with the provided `where` argument, update it with this data.
1526
+ */
1527
+ update: Prisma.XOR<Prisma.EnvironmentUpdateInput, Prisma.EnvironmentUncheckedUpdateInput>;
1528
+ };
1529
+ /**
1530
+ * Environment delete
1531
+ */
1532
+ export type EnvironmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1533
+ /**
1534
+ * Select specific fields to fetch from the Environment
1535
+ */
1536
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1537
+ /**
1538
+ * Omit specific fields from the Environment
1539
+ */
1540
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1541
+ /**
1542
+ * Choose, which related nodes to fetch as well
1543
+ */
1544
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1545
+ /**
1546
+ * Filter which Environment to delete.
1547
+ */
1548
+ where: Prisma.EnvironmentWhereUniqueInput;
1549
+ };
1550
+ /**
1551
+ * Environment deleteMany
1552
+ */
1553
+ export type EnvironmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1554
+ /**
1555
+ * Filter which Environments to delete
1556
+ */
1557
+ where?: Prisma.EnvironmentWhereInput;
1558
+ /**
1559
+ * Limit how many Environments to delete.
1560
+ */
1561
+ limit?: number;
1562
+ };
1563
+ /**
1564
+ * Environment.team
1565
+ */
1566
+ export type Environment$teamArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1567
+ /**
1568
+ * Select specific fields to fetch from the Team
1569
+ */
1570
+ select?: Prisma.TeamSelect<ExtArgs> | null;
1571
+ /**
1572
+ * Omit specific fields from the Team
1573
+ */
1574
+ omit?: Prisma.TeamOmit<ExtArgs> | null;
1575
+ /**
1576
+ * Choose, which related nodes to fetch as well
1577
+ */
1578
+ include?: Prisma.TeamInclude<ExtArgs> | null;
1579
+ where?: Prisma.TeamWhereInput;
1580
+ };
1581
+ /**
1582
+ * Environment.configurations
1583
+ */
1584
+ export type Environment$configurationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1585
+ /**
1586
+ * Select specific fields to fetch from the Configuration
1587
+ */
1588
+ select?: Prisma.ConfigurationSelect<ExtArgs> | null;
1589
+ /**
1590
+ * Omit specific fields from the Configuration
1591
+ */
1592
+ omit?: Prisma.ConfigurationOmit<ExtArgs> | null;
1593
+ /**
1594
+ * Choose, which related nodes to fetch as well
1595
+ */
1596
+ include?: Prisma.ConfigurationInclude<ExtArgs> | null;
1597
+ where?: Prisma.ConfigurationWhereInput;
1598
+ orderBy?: Prisma.ConfigurationOrderByWithRelationInput | Prisma.ConfigurationOrderByWithRelationInput[];
1599
+ cursor?: Prisma.ConfigurationWhereUniqueInput;
1600
+ take?: number;
1601
+ skip?: number;
1602
+ distinct?: Prisma.ConfigurationScalarFieldEnum | Prisma.ConfigurationScalarFieldEnum[];
1603
+ };
1604
+ /**
1605
+ * Environment.accounts
1606
+ */
1607
+ export type Environment$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1608
+ /**
1609
+ * Select specific fields to fetch from the Account
1610
+ */
1611
+ select?: Prisma.AccountSelect<ExtArgs> | null;
1612
+ /**
1613
+ * Omit specific fields from the Account
1614
+ */
1615
+ omit?: Prisma.AccountOmit<ExtArgs> | null;
1616
+ /**
1617
+ * Choose, which related nodes to fetch as well
1618
+ */
1619
+ include?: Prisma.AccountInclude<ExtArgs> | null;
1620
+ where?: Prisma.AccountWhereInput;
1621
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[];
1622
+ cursor?: Prisma.AccountWhereUniqueInput;
1623
+ take?: number;
1624
+ skip?: number;
1625
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[];
1626
+ };
1627
+ /**
1628
+ * Environment without action
1629
+ */
1630
+ export type EnvironmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1631
+ /**
1632
+ * Select specific fields to fetch from the Environment
1633
+ */
1634
+ select?: Prisma.EnvironmentSelect<ExtArgs> | null;
1635
+ /**
1636
+ * Omit specific fields from the Environment
1637
+ */
1638
+ omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
1639
+ /**
1640
+ * Choose, which related nodes to fetch as well
1641
+ */
1642
+ include?: Prisma.EnvironmentInclude<ExtArgs> | null;
1643
+ };
1644
+ //# sourceMappingURL=Environment.d.ts.map