@kosha-ai/server 0.0.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/api-key.guard.d.ts +7 -2
- package/dist/auth/api-key.guard.d.ts.map +1 -1
- package/dist/auth/api-key.guard.js +28 -8
- package/dist/auth/auth.factory.d.ts +15 -1
- package/dist/auth/auth.factory.d.ts.map +1 -1
- package/dist/auth/auth.factory.js +48 -2
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +24 -6
- package/dist/config/kosha-config.d.ts +21 -0
- package/dist/config/kosha-config.d.ts.map +1 -1
- package/dist/config/kosha-config.js +31 -2
- package/dist/configurations/configurations.controller.d.ts +11 -136
- package/dist/configurations/configurations.controller.d.ts.map +1 -1
- package/dist/configurations/configurations.controller.js +58 -25
- package/dist/configurations/configurations.module.d.ts.map +1 -1
- package/dist/configurations/configurations.module.js +4 -1
- package/dist/configurations/configurations.repository.d.ts +43 -0
- package/dist/configurations/configurations.repository.d.ts.map +1 -0
- package/dist/configurations/configurations.repository.js +76 -0
- package/dist/configurations/configurations.service.d.ts +38 -194
- package/dist/configurations/configurations.service.d.ts.map +1 -1
- package/dist/configurations/configurations.service.js +118 -110
- package/dist/configurations/dto/create-configuration.dto.d.ts +8 -0
- package/dist/configurations/dto/create-configuration.dto.d.ts.map +1 -0
- package/dist/configurations/dto/create-configuration.dto.js +54 -0
- package/dist/configurations/dto/update-configuration.dto.d.ts +7 -0
- package/dist/configurations/dto/update-configuration.dto.d.ts.map +1 -0
- package/dist/configurations/dto/update-configuration.dto.js +39 -0
- package/dist/connect/connect.controller.d.ts +6 -8
- package/dist/connect/connect.controller.d.ts.map +1 -1
- package/dist/connect/connect.controller.js +45 -15
- package/dist/connect/connect.module.d.ts.map +1 -1
- package/dist/connect/connect.module.js +4 -2
- package/dist/connect/connect.repository.d.ts +78 -0
- package/dist/connect/connect.repository.d.ts.map +1 -0
- package/dist/connect/connect.repository.js +146 -0
- package/dist/connect/connect.service.d.ts +28 -19
- package/dist/connect/connect.service.d.ts.map +1 -1
- package/dist/connect/connect.service.js +149 -163
- package/dist/connect/dto/create-connect-session.dto.d.ts +8 -0
- package/dist/connect/dto/create-connect-session.dto.d.ts.map +1 -0
- package/dist/connect/dto/create-connect-session.dto.js +55 -0
- package/dist/connect/dto/create-test-session.dto.d.ts +10 -0
- package/dist/connect/dto/create-test-session.dto.d.ts.map +1 -0
- package/dist/connect/dto/create-test-session.dto.js +34 -0
- package/dist/connections/connections.controller.d.ts +8 -61
- package/dist/connections/connections.controller.d.ts.map +1 -1
- package/dist/connections/connections.controller.js +31 -9
- package/dist/connections/connections.module.d.ts.map +1 -1
- package/dist/connections/connections.module.js +4 -1
- package/dist/connections/connections.repository.d.ts +24 -0
- package/dist/connections/connections.repository.d.ts.map +1 -0
- package/dist/connections/connections.repository.js +66 -0
- package/dist/connections/connections.service.d.ts +24 -69
- package/dist/connections/connections.service.d.ts.map +1 -1
- package/dist/connections/connections.service.js +59 -56
- package/dist/connections/dto/list-connections.dto.d.ts +5 -0
- package/dist/connections/dto/list-connections.dto.d.ts.map +1 -0
- package/dist/connections/dto/list-connections.dto.js +25 -0
- package/dist/connections/environment-connections.controller.d.ts +26 -0
- package/dist/connections/environment-connections.controller.d.ts.map +1 -0
- package/dist/connections/environment-connections.controller.js +81 -0
- package/dist/connections/environment-connections.module.d.ts +11 -0
- package/dist/connections/environment-connections.module.d.ts.map +1 -0
- package/dist/connections/environment-connections.module.js +21 -0
- package/dist/credentials/credentials.module.d.ts +3 -0
- package/dist/credentials/credentials.module.d.ts.map +1 -0
- package/dist/credentials/credentials.module.js +15 -0
- package/dist/credentials/credentials.repository.d.ts +8 -0
- package/dist/credentials/credentials.repository.d.ts.map +1 -0
- package/dist/credentials/credentials.repository.js +21 -0
- package/dist/credentials/credentials.service.d.ts +45 -0
- package/dist/credentials/credentials.service.d.ts.map +1 -0
- package/dist/credentials/credentials.service.js +135 -0
- package/dist/crypto/credential-envelope.d.ts +56 -0
- package/dist/crypto/credential-envelope.d.ts.map +1 -0
- package/dist/crypto/credential-envelope.js +70 -0
- package/dist/crypto/crypto.service.d.ts +8 -0
- package/dist/crypto/crypto.service.d.ts.map +1 -1
- package/dist/crypto/crypto.service.js +12 -0
- package/dist/egress/ca.service.d.ts +36 -0
- package/dist/egress/ca.service.d.ts.map +1 -0
- package/dist/egress/ca.service.js +117 -0
- package/dist/egress/dto/mint-grant.dto.d.ts +7 -0
- package/dist/egress/dto/mint-grant.dto.d.ts.map +1 -0
- package/dist/egress/dto/mint-grant.dto.js +44 -0
- package/dist/egress/egress.controller.d.ts +18 -0
- package/dist/egress/egress.controller.d.ts.map +1 -0
- package/dist/egress/egress.controller.js +80 -0
- package/dist/egress/egress.listener.d.ts +39 -0
- package/dist/egress/egress.listener.d.ts.map +1 -0
- package/dist/egress/egress.listener.js +328 -0
- package/dist/egress/egress.module.d.ts +7 -0
- package/dist/egress/egress.module.d.ts.map +1 -0
- package/dist/egress/egress.module.js +31 -0
- package/dist/egress/egress.repository.d.ts +58 -0
- package/dist/egress/egress.repository.d.ts.map +1 -0
- package/dist/egress/egress.repository.js +116 -0
- package/dist/egress/grants.service.d.ts +77 -0
- package/dist/egress/grants.service.d.ts.map +1 -0
- package/dist/egress/grants.service.js +159 -0
- package/dist/egress/host-rules.service.d.ts +35 -0
- package/dist/egress/host-rules.service.d.ts.map +1 -0
- package/dist/egress/host-rules.service.js +48 -0
- package/dist/environments/dto/create-environment.dto.d.ts +6 -0
- package/dist/environments/dto/create-environment.dto.d.ts.map +1 -0
- package/dist/environments/dto/create-environment.dto.js +34 -0
- package/dist/environments/dto/update-environment.dto.d.ts +5 -0
- package/dist/environments/dto/update-environment.dto.d.ts.map +1 -0
- package/dist/environments/dto/update-environment.dto.js +24 -0
- package/dist/environments/environments.controller.d.ts +53 -0
- package/dist/environments/environments.controller.d.ts.map +1 -0
- package/dist/environments/environments.controller.js +101 -0
- package/dist/environments/environments.module.d.ts +3 -0
- package/dist/environments/environments.module.d.ts.map +1 -0
- package/dist/environments/environments.module.js +15 -0
- package/dist/environments/environments.repository.d.ts +37 -0
- package/dist/environments/environments.repository.d.ts.map +1 -0
- package/dist/environments/environments.repository.js +82 -0
- package/dist/environments/environments.service.d.ts +43 -0
- package/dist/environments/environments.service.d.ts.map +1 -0
- package/dist/environments/environments.service.js +124 -0
- package/dist/generated/prisma/browser.d.ts +17 -35
- package/dist/generated/prisma/browser.d.ts.map +1 -1
- package/dist/generated/prisma/client.d.ts +17 -35
- package/dist/generated/prisma/client.d.ts.map +1 -1
- package/dist/generated/prisma/commonInputTypes.d.ts +104 -145
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -1
- package/dist/generated/prisma/enums.d.ts +1 -21
- package/dist/generated/prisma/enums.d.ts.map +1 -1
- package/dist/generated/prisma/enums.js +1 -18
- package/dist/generated/prisma/internal/class.d.ts +24 -46
- package/dist/generated/prisma/internal/class.d.ts.map +1 -1
- package/dist/generated/prisma/internal/class.js +4 -4
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +258 -472
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +45 -83
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +45 -85
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +45 -83
- package/dist/generated/prisma/models/Account.d.ts +344 -26
- package/dist/generated/prisma/models/Account.d.ts.map +1 -1
- package/dist/generated/prisma/models/Configuration.d.ts +218 -851
- package/dist/generated/prisma/models/Configuration.d.ts.map +1 -1
- package/dist/generated/prisma/models/EgressGrant.d.ts +1535 -0
- package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -0
- package/dist/generated/prisma/models/Environment.d.ts +1644 -0
- package/dist/generated/prisma/models/Environment.d.ts.map +1 -0
- package/dist/generated/prisma/models/Invitation.d.ts +42 -1
- package/dist/generated/prisma/models/Invitation.d.ts.map +1 -1
- package/dist/generated/prisma/models/Organization.d.ts +183 -322
- package/dist/generated/prisma/models/Organization.d.ts.map +1 -1
- package/dist/generated/prisma/models/Session.d.ts +36 -1
- package/dist/generated/prisma/models/Session.d.ts.map +1 -1
- package/dist/generated/prisma/models/Team.d.ts +1498 -0
- package/dist/generated/prisma/models/Team.d.ts.map +1 -0
- package/dist/generated/prisma/models/TeamMember.d.ts +1281 -0
- package/dist/generated/prisma/models/TeamMember.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.d.ts +338 -2
- package/dist/generated/prisma/models/User.d.ts.map +1 -1
- package/dist/generated/prisma/models.d.ts +4 -6
- package/dist/generated/prisma/models.d.ts.map +1 -1
- package/dist/index.d.ts +20 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -3
- package/dist/integrations/integrations.controller.d.ts +2 -1
- package/dist/integrations/integrations.controller.d.ts.map +1 -1
- package/dist/integrations/integrations.module.d.ts.map +1 -1
- package/dist/integrations/integrations.module.js +0 -2
- package/dist/kosha.module.d.ts.map +1 -1
- package/dist/kosha.module.js +13 -3
- package/dist/proxy/proxy.controller.d.ts +8 -3
- package/dist/proxy/proxy.controller.d.ts.map +1 -1
- package/dist/proxy/proxy.controller.js +26 -10
- package/dist/proxy/proxy.module.d.ts.map +1 -1
- package/dist/proxy/proxy.module.js +5 -3
- package/dist/proxy/proxy.repository.d.ts +24 -0
- package/dist/proxy/proxy.repository.d.ts.map +1 -0
- package/dist/proxy/proxy.repository.js +47 -0
- package/dist/proxy/proxy.service.d.ts +17 -21
- package/dist/proxy/proxy.service.d.ts.map +1 -1
- package/dist/proxy/proxy.service.js +61 -110
- package/package.json +9 -4
- package/prisma/migrations/20260929101936_init/migration.sql +345 -0
- package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
- package/prisma/schema.prisma +103 -178
- package/dist/generated/prisma/models/ConnectSession.d.ts +0 -1606
- package/dist/generated/prisma/models/ConnectSession.d.ts.map +0 -1
- package/dist/generated/prisma/models/Connection.d.ts +0 -1949
- package/dist/generated/prisma/models/Connection.d.ts.map +0 -1
- package/dist/generated/prisma/models/ConnectionCredential.d.ts +0 -1293
- package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +0 -1
- package/dist/generated/prisma/models/EndUser.d.ts +0 -1539
- package/dist/generated/prisma/models/EndUser.d.ts.map +0 -1
- package/dist/generated/prisma/models/OAuthState.d.ts +0 -1404
- package/dist/generated/prisma/models/OAuthState.d.ts.map +0 -1
- package/dist/generated/prisma/models/OAuthState.js +0 -1
- package/dist/generated/prisma/models/Provider.d.ts +0 -1462
- package/dist/generated/prisma/models/Provider.d.ts.map +0 -1
- package/dist/generated/prisma/models/Provider.js +0 -1
- package/dist/integrations/provider-sync.service.d.ts +0 -24
- package/dist/integrations/provider-sync.service.d.ts.map +0 -1
- package/dist/integrations/provider-sync.service.js +0 -74
- package/prisma/migrations/20260908000000_init/migration.sql +0 -209
- package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +0 -173
- package/prisma/migrations/20260916000000_add_configuration_slug/migration.sql +0 -15
- /package/dist/generated/prisma/models/{ConnectSession.js → EgressGrant.js} +0 -0
- /package/dist/generated/prisma/models/{Connection.js → Environment.js} +0 -0
- /package/dist/generated/prisma/models/{ConnectionCredential.js → Team.js} +0 -0
- /package/dist/generated/prisma/models/{EndUser.js → TeamMember.js} +0 -0
|
@@ -24,6 +24,8 @@ export type AccountMinAggregateOutputType = {
|
|
|
24
24
|
password: string | null;
|
|
25
25
|
createdAt: Date | null;
|
|
26
26
|
updatedAt: Date | null;
|
|
27
|
+
environmentId: string | null;
|
|
28
|
+
organizationExternalId: string | null;
|
|
27
29
|
};
|
|
28
30
|
export type AccountMaxAggregateOutputType = {
|
|
29
31
|
id: string | null;
|
|
@@ -39,6 +41,8 @@ export type AccountMaxAggregateOutputType = {
|
|
|
39
41
|
password: string | null;
|
|
40
42
|
createdAt: Date | null;
|
|
41
43
|
updatedAt: Date | null;
|
|
44
|
+
environmentId: string | null;
|
|
45
|
+
organizationExternalId: string | null;
|
|
42
46
|
};
|
|
43
47
|
export type AccountCountAggregateOutputType = {
|
|
44
48
|
id: number;
|
|
@@ -54,6 +58,9 @@ export type AccountCountAggregateOutputType = {
|
|
|
54
58
|
password: number;
|
|
55
59
|
createdAt: number;
|
|
56
60
|
updatedAt: number;
|
|
61
|
+
environmentId: number;
|
|
62
|
+
organizationExternalId: number;
|
|
63
|
+
connectionConfig: number;
|
|
57
64
|
_all: number;
|
|
58
65
|
};
|
|
59
66
|
export type AccountMinAggregateInputType = {
|
|
@@ -70,6 +77,8 @@ export type AccountMinAggregateInputType = {
|
|
|
70
77
|
password?: true;
|
|
71
78
|
createdAt?: true;
|
|
72
79
|
updatedAt?: true;
|
|
80
|
+
environmentId?: true;
|
|
81
|
+
organizationExternalId?: true;
|
|
73
82
|
};
|
|
74
83
|
export type AccountMaxAggregateInputType = {
|
|
75
84
|
id?: true;
|
|
@@ -85,6 +94,8 @@ export type AccountMaxAggregateInputType = {
|
|
|
85
94
|
password?: true;
|
|
86
95
|
createdAt?: true;
|
|
87
96
|
updatedAt?: true;
|
|
97
|
+
environmentId?: true;
|
|
98
|
+
organizationExternalId?: true;
|
|
88
99
|
};
|
|
89
100
|
export type AccountCountAggregateInputType = {
|
|
90
101
|
id?: true;
|
|
@@ -100,6 +111,9 @@ export type AccountCountAggregateInputType = {
|
|
|
100
111
|
password?: true;
|
|
101
112
|
createdAt?: true;
|
|
102
113
|
updatedAt?: true;
|
|
114
|
+
environmentId?: true;
|
|
115
|
+
organizationExternalId?: true;
|
|
116
|
+
connectionConfig?: true;
|
|
103
117
|
_all?: true;
|
|
104
118
|
};
|
|
105
119
|
export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
@@ -168,7 +182,7 @@ export type AccountGroupByOutputType = {
|
|
|
168
182
|
id: string;
|
|
169
183
|
accountId: string;
|
|
170
184
|
providerId: string;
|
|
171
|
-
userId: string;
|
|
185
|
+
userId: string | null;
|
|
172
186
|
accessToken: string | null;
|
|
173
187
|
refreshToken: string | null;
|
|
174
188
|
idToken: string | null;
|
|
@@ -178,6 +192,9 @@ export type AccountGroupByOutputType = {
|
|
|
178
192
|
password: string | null;
|
|
179
193
|
createdAt: Date;
|
|
180
194
|
updatedAt: Date;
|
|
195
|
+
environmentId: string | null;
|
|
196
|
+
organizationExternalId: string | null;
|
|
197
|
+
connectionConfig: runtime.JsonValue | null;
|
|
181
198
|
_count: AccountCountAggregateOutputType | null;
|
|
182
199
|
_min: AccountMinAggregateOutputType | null;
|
|
183
200
|
_max: AccountMaxAggregateOutputType | null;
|
|
@@ -192,7 +209,7 @@ export type AccountWhereInput = {
|
|
|
192
209
|
id?: Prisma.StringFilter<"Account"> | string;
|
|
193
210
|
accountId?: Prisma.StringFilter<"Account"> | string;
|
|
194
211
|
providerId?: Prisma.StringFilter<"Account"> | string;
|
|
195
|
-
userId?: Prisma.
|
|
212
|
+
userId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
196
213
|
accessToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
197
214
|
refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
198
215
|
idToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
@@ -202,13 +219,17 @@ export type AccountWhereInput = {
|
|
|
202
219
|
password?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
203
220
|
createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string;
|
|
204
221
|
updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string;
|
|
205
|
-
|
|
222
|
+
environmentId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
223
|
+
organizationExternalId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
224
|
+
connectionConfig?: Prisma.JsonNullableFilter<"Account">;
|
|
225
|
+
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
226
|
+
environment?: Prisma.XOR<Prisma.EnvironmentNullableScalarRelationFilter, Prisma.EnvironmentWhereInput> | null;
|
|
206
227
|
};
|
|
207
228
|
export type AccountOrderByWithRelationInput = {
|
|
208
229
|
id?: Prisma.SortOrder;
|
|
209
230
|
accountId?: Prisma.SortOrder;
|
|
210
231
|
providerId?: Prisma.SortOrder;
|
|
211
|
-
userId?: Prisma.SortOrder;
|
|
232
|
+
userId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
212
233
|
accessToken?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
213
234
|
refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
214
235
|
idToken?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
@@ -218,16 +239,21 @@ export type AccountOrderByWithRelationInput = {
|
|
|
218
239
|
password?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
219
240
|
createdAt?: Prisma.SortOrder;
|
|
220
241
|
updatedAt?: Prisma.SortOrder;
|
|
242
|
+
environmentId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
243
|
+
organizationExternalId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
244
|
+
connectionConfig?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
221
245
|
user?: Prisma.UserOrderByWithRelationInput;
|
|
246
|
+
environment?: Prisma.EnvironmentOrderByWithRelationInput;
|
|
222
247
|
};
|
|
223
248
|
export type AccountWhereUniqueInput = Prisma.AtLeast<{
|
|
224
249
|
id?: string;
|
|
250
|
+
environmentId_organizationExternalId_providerId?: Prisma.AccountEnvironmentIdOrganizationExternalIdProviderIdCompoundUniqueInput;
|
|
225
251
|
AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[];
|
|
226
252
|
OR?: Prisma.AccountWhereInput[];
|
|
227
253
|
NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[];
|
|
228
254
|
accountId?: Prisma.StringFilter<"Account"> | string;
|
|
229
255
|
providerId?: Prisma.StringFilter<"Account"> | string;
|
|
230
|
-
userId?: Prisma.
|
|
256
|
+
userId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
231
257
|
accessToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
232
258
|
refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
233
259
|
idToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
@@ -237,13 +263,17 @@ export type AccountWhereUniqueInput = Prisma.AtLeast<{
|
|
|
237
263
|
password?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
238
264
|
createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string;
|
|
239
265
|
updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string;
|
|
240
|
-
|
|
241
|
-
|
|
266
|
+
environmentId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
267
|
+
organizationExternalId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
268
|
+
connectionConfig?: Prisma.JsonNullableFilter<"Account">;
|
|
269
|
+
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
|
|
270
|
+
environment?: Prisma.XOR<Prisma.EnvironmentNullableScalarRelationFilter, Prisma.EnvironmentWhereInput> | null;
|
|
271
|
+
}, "id" | "environmentId_organizationExternalId_providerId">;
|
|
242
272
|
export type AccountOrderByWithAggregationInput = {
|
|
243
273
|
id?: Prisma.SortOrder;
|
|
244
274
|
accountId?: Prisma.SortOrder;
|
|
245
275
|
providerId?: Prisma.SortOrder;
|
|
246
|
-
userId?: Prisma.SortOrder;
|
|
276
|
+
userId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
247
277
|
accessToken?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
248
278
|
refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
249
279
|
idToken?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
@@ -253,6 +283,9 @@ export type AccountOrderByWithAggregationInput = {
|
|
|
253
283
|
password?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
254
284
|
createdAt?: Prisma.SortOrder;
|
|
255
285
|
updatedAt?: Prisma.SortOrder;
|
|
286
|
+
environmentId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
287
|
+
organizationExternalId?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
288
|
+
connectionConfig?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
256
289
|
_count?: Prisma.AccountCountOrderByAggregateInput;
|
|
257
290
|
_max?: Prisma.AccountMaxOrderByAggregateInput;
|
|
258
291
|
_min?: Prisma.AccountMinOrderByAggregateInput;
|
|
@@ -264,7 +297,7 @@ export type AccountScalarWhereWithAggregatesInput = {
|
|
|
264
297
|
id?: Prisma.StringWithAggregatesFilter<"Account"> | string;
|
|
265
298
|
accountId?: Prisma.StringWithAggregatesFilter<"Account"> | string;
|
|
266
299
|
providerId?: Prisma.StringWithAggregatesFilter<"Account"> | string;
|
|
267
|
-
userId?: Prisma.
|
|
300
|
+
userId?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
268
301
|
accessToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
269
302
|
refreshToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
270
303
|
idToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
@@ -274,6 +307,9 @@ export type AccountScalarWhereWithAggregatesInput = {
|
|
|
274
307
|
password?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
275
308
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string;
|
|
276
309
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Account"> | Date | string;
|
|
310
|
+
environmentId?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
311
|
+
organizationExternalId?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null;
|
|
312
|
+
connectionConfig?: Prisma.JsonNullableWithAggregatesFilter<"Account">;
|
|
277
313
|
};
|
|
278
314
|
export type AccountCreateInput = {
|
|
279
315
|
id: string;
|
|
@@ -288,13 +324,16 @@ export type AccountCreateInput = {
|
|
|
288
324
|
password?: string | null;
|
|
289
325
|
createdAt?: Date | string;
|
|
290
326
|
updatedAt?: Date | string;
|
|
291
|
-
|
|
327
|
+
organizationExternalId?: string | null;
|
|
328
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
329
|
+
user?: Prisma.UserCreateNestedOneWithoutAccountsInput;
|
|
330
|
+
environment?: Prisma.EnvironmentCreateNestedOneWithoutAccountsInput;
|
|
292
331
|
};
|
|
293
332
|
export type AccountUncheckedCreateInput = {
|
|
294
333
|
id: string;
|
|
295
334
|
accountId: string;
|
|
296
335
|
providerId: string;
|
|
297
|
-
userId
|
|
336
|
+
userId?: string | null;
|
|
298
337
|
accessToken?: string | null;
|
|
299
338
|
refreshToken?: string | null;
|
|
300
339
|
idToken?: string | null;
|
|
@@ -304,6 +343,9 @@ export type AccountUncheckedCreateInput = {
|
|
|
304
343
|
password?: string | null;
|
|
305
344
|
createdAt?: Date | string;
|
|
306
345
|
updatedAt?: Date | string;
|
|
346
|
+
environmentId?: string | null;
|
|
347
|
+
organizationExternalId?: string | null;
|
|
348
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
307
349
|
};
|
|
308
350
|
export type AccountUpdateInput = {
|
|
309
351
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -318,13 +360,16 @@ export type AccountUpdateInput = {
|
|
|
318
360
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
319
361
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
320
362
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
321
|
-
|
|
363
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
364
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
365
|
+
user?: Prisma.UserUpdateOneWithoutAccountsNestedInput;
|
|
366
|
+
environment?: Prisma.EnvironmentUpdateOneWithoutAccountsNestedInput;
|
|
322
367
|
};
|
|
323
368
|
export type AccountUncheckedUpdateInput = {
|
|
324
369
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
325
370
|
accountId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
326
371
|
providerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
327
|
-
userId?: Prisma.
|
|
372
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
328
373
|
accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
329
374
|
refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
330
375
|
idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -334,12 +379,15 @@ export type AccountUncheckedUpdateInput = {
|
|
|
334
379
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
335
380
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
336
381
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
382
|
+
environmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
383
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
384
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
337
385
|
};
|
|
338
386
|
export type AccountCreateManyInput = {
|
|
339
387
|
id: string;
|
|
340
388
|
accountId: string;
|
|
341
389
|
providerId: string;
|
|
342
|
-
userId
|
|
390
|
+
userId?: string | null;
|
|
343
391
|
accessToken?: string | null;
|
|
344
392
|
refreshToken?: string | null;
|
|
345
393
|
idToken?: string | null;
|
|
@@ -349,6 +397,9 @@ export type AccountCreateManyInput = {
|
|
|
349
397
|
password?: string | null;
|
|
350
398
|
createdAt?: Date | string;
|
|
351
399
|
updatedAt?: Date | string;
|
|
400
|
+
environmentId?: string | null;
|
|
401
|
+
organizationExternalId?: string | null;
|
|
402
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
352
403
|
};
|
|
353
404
|
export type AccountUpdateManyMutationInput = {
|
|
354
405
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -363,12 +414,14 @@ export type AccountUpdateManyMutationInput = {
|
|
|
363
414
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
364
415
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
365
416
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
417
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
418
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
366
419
|
};
|
|
367
420
|
export type AccountUncheckedUpdateManyInput = {
|
|
368
421
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
369
422
|
accountId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
370
423
|
providerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
371
|
-
userId?: Prisma.
|
|
424
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
372
425
|
accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
373
426
|
refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
374
427
|
idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
@@ -378,6 +431,9 @@ export type AccountUncheckedUpdateManyInput = {
|
|
|
378
431
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
379
432
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
380
433
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
434
|
+
environmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
435
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
436
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
381
437
|
};
|
|
382
438
|
export type AccountListRelationFilter = {
|
|
383
439
|
every?: Prisma.AccountWhereInput;
|
|
@@ -387,6 +443,11 @@ export type AccountListRelationFilter = {
|
|
|
387
443
|
export type AccountOrderByRelationAggregateInput = {
|
|
388
444
|
_count?: Prisma.SortOrder;
|
|
389
445
|
};
|
|
446
|
+
export type AccountEnvironmentIdOrganizationExternalIdProviderIdCompoundUniqueInput = {
|
|
447
|
+
environmentId: string;
|
|
448
|
+
organizationExternalId: string;
|
|
449
|
+
providerId: string;
|
|
450
|
+
};
|
|
390
451
|
export type AccountCountOrderByAggregateInput = {
|
|
391
452
|
id?: Prisma.SortOrder;
|
|
392
453
|
accountId?: Prisma.SortOrder;
|
|
@@ -401,6 +462,9 @@ export type AccountCountOrderByAggregateInput = {
|
|
|
401
462
|
password?: Prisma.SortOrder;
|
|
402
463
|
createdAt?: Prisma.SortOrder;
|
|
403
464
|
updatedAt?: Prisma.SortOrder;
|
|
465
|
+
environmentId?: Prisma.SortOrder;
|
|
466
|
+
organizationExternalId?: Prisma.SortOrder;
|
|
467
|
+
connectionConfig?: Prisma.SortOrder;
|
|
404
468
|
};
|
|
405
469
|
export type AccountMaxOrderByAggregateInput = {
|
|
406
470
|
id?: Prisma.SortOrder;
|
|
@@ -416,6 +480,8 @@ export type AccountMaxOrderByAggregateInput = {
|
|
|
416
480
|
password?: Prisma.SortOrder;
|
|
417
481
|
createdAt?: Prisma.SortOrder;
|
|
418
482
|
updatedAt?: Prisma.SortOrder;
|
|
483
|
+
environmentId?: Prisma.SortOrder;
|
|
484
|
+
organizationExternalId?: Prisma.SortOrder;
|
|
419
485
|
};
|
|
420
486
|
export type AccountMinOrderByAggregateInput = {
|
|
421
487
|
id?: Prisma.SortOrder;
|
|
@@ -431,6 +497,8 @@ export type AccountMinOrderByAggregateInput = {
|
|
|
431
497
|
password?: Prisma.SortOrder;
|
|
432
498
|
createdAt?: Prisma.SortOrder;
|
|
433
499
|
updatedAt?: Prisma.SortOrder;
|
|
500
|
+
environmentId?: Prisma.SortOrder;
|
|
501
|
+
organizationExternalId?: Prisma.SortOrder;
|
|
434
502
|
};
|
|
435
503
|
export type AccountCreateNestedManyWithoutUserInput = {
|
|
436
504
|
create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[];
|
|
@@ -473,6 +541,44 @@ export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
|
|
|
473
541
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
474
542
|
set?: Date | string | null;
|
|
475
543
|
};
|
|
544
|
+
export type AccountCreateNestedManyWithoutEnvironmentInput = {
|
|
545
|
+
create?: Prisma.XOR<Prisma.AccountCreateWithoutEnvironmentInput, Prisma.AccountUncheckedCreateWithoutEnvironmentInput> | Prisma.AccountCreateWithoutEnvironmentInput[] | Prisma.AccountUncheckedCreateWithoutEnvironmentInput[];
|
|
546
|
+
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutEnvironmentInput | Prisma.AccountCreateOrConnectWithoutEnvironmentInput[];
|
|
547
|
+
createMany?: Prisma.AccountCreateManyEnvironmentInputEnvelope;
|
|
548
|
+
connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
549
|
+
};
|
|
550
|
+
export type AccountUncheckedCreateNestedManyWithoutEnvironmentInput = {
|
|
551
|
+
create?: Prisma.XOR<Prisma.AccountCreateWithoutEnvironmentInput, Prisma.AccountUncheckedCreateWithoutEnvironmentInput> | Prisma.AccountCreateWithoutEnvironmentInput[] | Prisma.AccountUncheckedCreateWithoutEnvironmentInput[];
|
|
552
|
+
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutEnvironmentInput | Prisma.AccountCreateOrConnectWithoutEnvironmentInput[];
|
|
553
|
+
createMany?: Prisma.AccountCreateManyEnvironmentInputEnvelope;
|
|
554
|
+
connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
555
|
+
};
|
|
556
|
+
export type AccountUpdateManyWithoutEnvironmentNestedInput = {
|
|
557
|
+
create?: Prisma.XOR<Prisma.AccountCreateWithoutEnvironmentInput, Prisma.AccountUncheckedCreateWithoutEnvironmentInput> | Prisma.AccountCreateWithoutEnvironmentInput[] | Prisma.AccountUncheckedCreateWithoutEnvironmentInput[];
|
|
558
|
+
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutEnvironmentInput | Prisma.AccountCreateOrConnectWithoutEnvironmentInput[];
|
|
559
|
+
upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutEnvironmentInput | Prisma.AccountUpsertWithWhereUniqueWithoutEnvironmentInput[];
|
|
560
|
+
createMany?: Prisma.AccountCreateManyEnvironmentInputEnvelope;
|
|
561
|
+
set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
562
|
+
disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
563
|
+
delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
564
|
+
connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
565
|
+
update?: Prisma.AccountUpdateWithWhereUniqueWithoutEnvironmentInput | Prisma.AccountUpdateWithWhereUniqueWithoutEnvironmentInput[];
|
|
566
|
+
updateMany?: Prisma.AccountUpdateManyWithWhereWithoutEnvironmentInput | Prisma.AccountUpdateManyWithWhereWithoutEnvironmentInput[];
|
|
567
|
+
deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[];
|
|
568
|
+
};
|
|
569
|
+
export type AccountUncheckedUpdateManyWithoutEnvironmentNestedInput = {
|
|
570
|
+
create?: Prisma.XOR<Prisma.AccountCreateWithoutEnvironmentInput, Prisma.AccountUncheckedCreateWithoutEnvironmentInput> | Prisma.AccountCreateWithoutEnvironmentInput[] | Prisma.AccountUncheckedCreateWithoutEnvironmentInput[];
|
|
571
|
+
connectOrCreate?: Prisma.AccountCreateOrConnectWithoutEnvironmentInput | Prisma.AccountCreateOrConnectWithoutEnvironmentInput[];
|
|
572
|
+
upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutEnvironmentInput | Prisma.AccountUpsertWithWhereUniqueWithoutEnvironmentInput[];
|
|
573
|
+
createMany?: Prisma.AccountCreateManyEnvironmentInputEnvelope;
|
|
574
|
+
set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
575
|
+
disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
576
|
+
delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
577
|
+
connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[];
|
|
578
|
+
update?: Prisma.AccountUpdateWithWhereUniqueWithoutEnvironmentInput | Prisma.AccountUpdateWithWhereUniqueWithoutEnvironmentInput[];
|
|
579
|
+
updateMany?: Prisma.AccountUpdateManyWithWhereWithoutEnvironmentInput | Prisma.AccountUpdateManyWithWhereWithoutEnvironmentInput[];
|
|
580
|
+
deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[];
|
|
581
|
+
};
|
|
476
582
|
export type AccountCreateWithoutUserInput = {
|
|
477
583
|
id: string;
|
|
478
584
|
accountId: string;
|
|
@@ -486,6 +592,9 @@ export type AccountCreateWithoutUserInput = {
|
|
|
486
592
|
password?: string | null;
|
|
487
593
|
createdAt?: Date | string;
|
|
488
594
|
updatedAt?: Date | string;
|
|
595
|
+
organizationExternalId?: string | null;
|
|
596
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
597
|
+
environment?: Prisma.EnvironmentCreateNestedOneWithoutAccountsInput;
|
|
489
598
|
};
|
|
490
599
|
export type AccountUncheckedCreateWithoutUserInput = {
|
|
491
600
|
id: string;
|
|
@@ -500,6 +609,9 @@ export type AccountUncheckedCreateWithoutUserInput = {
|
|
|
500
609
|
password?: string | null;
|
|
501
610
|
createdAt?: Date | string;
|
|
502
611
|
updatedAt?: Date | string;
|
|
612
|
+
environmentId?: string | null;
|
|
613
|
+
organizationExternalId?: string | null;
|
|
614
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
503
615
|
};
|
|
504
616
|
export type AccountCreateOrConnectWithoutUserInput = {
|
|
505
617
|
where: Prisma.AccountWhereUniqueInput;
|
|
@@ -529,7 +641,7 @@ export type AccountScalarWhereInput = {
|
|
|
529
641
|
id?: Prisma.StringFilter<"Account"> | string;
|
|
530
642
|
accountId?: Prisma.StringFilter<"Account"> | string;
|
|
531
643
|
providerId?: Prisma.StringFilter<"Account"> | string;
|
|
532
|
-
userId?: Prisma.
|
|
644
|
+
userId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
533
645
|
accessToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
534
646
|
refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
535
647
|
idToken?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
@@ -539,6 +651,64 @@ export type AccountScalarWhereInput = {
|
|
|
539
651
|
password?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
540
652
|
createdAt?: Prisma.DateTimeFilter<"Account"> | Date | string;
|
|
541
653
|
updatedAt?: Prisma.DateTimeFilter<"Account"> | Date | string;
|
|
654
|
+
environmentId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
655
|
+
organizationExternalId?: Prisma.StringNullableFilter<"Account"> | string | null;
|
|
656
|
+
connectionConfig?: Prisma.JsonNullableFilter<"Account">;
|
|
657
|
+
};
|
|
658
|
+
export type AccountCreateWithoutEnvironmentInput = {
|
|
659
|
+
id: string;
|
|
660
|
+
accountId: string;
|
|
661
|
+
providerId: string;
|
|
662
|
+
accessToken?: string | null;
|
|
663
|
+
refreshToken?: string | null;
|
|
664
|
+
idToken?: string | null;
|
|
665
|
+
accessTokenExpiresAt?: Date | string | null;
|
|
666
|
+
refreshTokenExpiresAt?: Date | string | null;
|
|
667
|
+
scope?: string | null;
|
|
668
|
+
password?: string | null;
|
|
669
|
+
createdAt?: Date | string;
|
|
670
|
+
updatedAt?: Date | string;
|
|
671
|
+
organizationExternalId?: string | null;
|
|
672
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
673
|
+
user?: Prisma.UserCreateNestedOneWithoutAccountsInput;
|
|
674
|
+
};
|
|
675
|
+
export type AccountUncheckedCreateWithoutEnvironmentInput = {
|
|
676
|
+
id: string;
|
|
677
|
+
accountId: string;
|
|
678
|
+
providerId: string;
|
|
679
|
+
userId?: string | null;
|
|
680
|
+
accessToken?: string | null;
|
|
681
|
+
refreshToken?: string | null;
|
|
682
|
+
idToken?: string | null;
|
|
683
|
+
accessTokenExpiresAt?: Date | string | null;
|
|
684
|
+
refreshTokenExpiresAt?: Date | string | null;
|
|
685
|
+
scope?: string | null;
|
|
686
|
+
password?: string | null;
|
|
687
|
+
createdAt?: Date | string;
|
|
688
|
+
updatedAt?: Date | string;
|
|
689
|
+
organizationExternalId?: string | null;
|
|
690
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
691
|
+
};
|
|
692
|
+
export type AccountCreateOrConnectWithoutEnvironmentInput = {
|
|
693
|
+
where: Prisma.AccountWhereUniqueInput;
|
|
694
|
+
create: Prisma.XOR<Prisma.AccountCreateWithoutEnvironmentInput, Prisma.AccountUncheckedCreateWithoutEnvironmentInput>;
|
|
695
|
+
};
|
|
696
|
+
export type AccountCreateManyEnvironmentInputEnvelope = {
|
|
697
|
+
data: Prisma.AccountCreateManyEnvironmentInput | Prisma.AccountCreateManyEnvironmentInput[];
|
|
698
|
+
skipDuplicates?: boolean;
|
|
699
|
+
};
|
|
700
|
+
export type AccountUpsertWithWhereUniqueWithoutEnvironmentInput = {
|
|
701
|
+
where: Prisma.AccountWhereUniqueInput;
|
|
702
|
+
update: Prisma.XOR<Prisma.AccountUpdateWithoutEnvironmentInput, Prisma.AccountUncheckedUpdateWithoutEnvironmentInput>;
|
|
703
|
+
create: Prisma.XOR<Prisma.AccountCreateWithoutEnvironmentInput, Prisma.AccountUncheckedCreateWithoutEnvironmentInput>;
|
|
704
|
+
};
|
|
705
|
+
export type AccountUpdateWithWhereUniqueWithoutEnvironmentInput = {
|
|
706
|
+
where: Prisma.AccountWhereUniqueInput;
|
|
707
|
+
data: Prisma.XOR<Prisma.AccountUpdateWithoutEnvironmentInput, Prisma.AccountUncheckedUpdateWithoutEnvironmentInput>;
|
|
708
|
+
};
|
|
709
|
+
export type AccountUpdateManyWithWhereWithoutEnvironmentInput = {
|
|
710
|
+
where: Prisma.AccountScalarWhereInput;
|
|
711
|
+
data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyWithoutEnvironmentInput>;
|
|
542
712
|
};
|
|
543
713
|
export type AccountCreateManyUserInput = {
|
|
544
714
|
id: string;
|
|
@@ -553,6 +723,9 @@ export type AccountCreateManyUserInput = {
|
|
|
553
723
|
password?: string | null;
|
|
554
724
|
createdAt?: Date | string;
|
|
555
725
|
updatedAt?: Date | string;
|
|
726
|
+
environmentId?: string | null;
|
|
727
|
+
organizationExternalId?: string | null;
|
|
728
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
556
729
|
};
|
|
557
730
|
export type AccountUpdateWithoutUserInput = {
|
|
558
731
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -567,6 +740,9 @@ export type AccountUpdateWithoutUserInput = {
|
|
|
567
740
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
568
741
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
569
742
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
743
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
744
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
745
|
+
environment?: Prisma.EnvironmentUpdateOneWithoutAccountsNestedInput;
|
|
570
746
|
};
|
|
571
747
|
export type AccountUncheckedUpdateWithoutUserInput = {
|
|
572
748
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -581,6 +757,9 @@ export type AccountUncheckedUpdateWithoutUserInput = {
|
|
|
581
757
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
582
758
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
583
759
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
760
|
+
environmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
761
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
762
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
584
763
|
};
|
|
585
764
|
export type AccountUncheckedUpdateManyWithoutUserInput = {
|
|
586
765
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -595,6 +774,77 @@ export type AccountUncheckedUpdateManyWithoutUserInput = {
|
|
|
595
774
|
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
596
775
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
597
776
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
777
|
+
environmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
778
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
779
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
780
|
+
};
|
|
781
|
+
export type AccountCreateManyEnvironmentInput = {
|
|
782
|
+
id: string;
|
|
783
|
+
accountId: string;
|
|
784
|
+
providerId: string;
|
|
785
|
+
userId?: string | null;
|
|
786
|
+
accessToken?: string | null;
|
|
787
|
+
refreshToken?: string | null;
|
|
788
|
+
idToken?: string | null;
|
|
789
|
+
accessTokenExpiresAt?: Date | string | null;
|
|
790
|
+
refreshTokenExpiresAt?: Date | string | null;
|
|
791
|
+
scope?: string | null;
|
|
792
|
+
password?: string | null;
|
|
793
|
+
createdAt?: Date | string;
|
|
794
|
+
updatedAt?: Date | string;
|
|
795
|
+
organizationExternalId?: string | null;
|
|
796
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
797
|
+
};
|
|
798
|
+
export type AccountUpdateWithoutEnvironmentInput = {
|
|
799
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
800
|
+
accountId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
801
|
+
providerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
802
|
+
accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
803
|
+
refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
804
|
+
idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
805
|
+
accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
806
|
+
refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
807
|
+
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
808
|
+
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
809
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
810
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
811
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
812
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
813
|
+
user?: Prisma.UserUpdateOneWithoutAccountsNestedInput;
|
|
814
|
+
};
|
|
815
|
+
export type AccountUncheckedUpdateWithoutEnvironmentInput = {
|
|
816
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
817
|
+
accountId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
818
|
+
providerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
819
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
820
|
+
accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
821
|
+
refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
822
|
+
idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
823
|
+
accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
824
|
+
refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
825
|
+
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
826
|
+
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
827
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
828
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
829
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
830
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
831
|
+
};
|
|
832
|
+
export type AccountUncheckedUpdateManyWithoutEnvironmentInput = {
|
|
833
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
834
|
+
accountId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
835
|
+
providerId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
836
|
+
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
837
|
+
accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
838
|
+
refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
839
|
+
idToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
840
|
+
accessTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
841
|
+
refreshTokenExpiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
842
|
+
scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
843
|
+
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
844
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
845
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
846
|
+
organizationExternalId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
847
|
+
connectionConfig?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
|
|
598
848
|
};
|
|
599
849
|
export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
600
850
|
id?: boolean;
|
|
@@ -610,7 +860,11 @@ export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
|
|
610
860
|
password?: boolean;
|
|
611
861
|
createdAt?: boolean;
|
|
612
862
|
updatedAt?: boolean;
|
|
613
|
-
|
|
863
|
+
environmentId?: boolean;
|
|
864
|
+
organizationExternalId?: boolean;
|
|
865
|
+
connectionConfig?: boolean;
|
|
866
|
+
user?: boolean | Prisma.Account$userArgs<ExtArgs>;
|
|
867
|
+
environment?: boolean | Prisma.Account$environmentArgs<ExtArgs>;
|
|
614
868
|
}, ExtArgs["result"]["account"]>;
|
|
615
869
|
export type AccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
616
870
|
id?: boolean;
|
|
@@ -626,7 +880,11 @@ export type AccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
626
880
|
password?: boolean;
|
|
627
881
|
createdAt?: boolean;
|
|
628
882
|
updatedAt?: boolean;
|
|
629
|
-
|
|
883
|
+
environmentId?: boolean;
|
|
884
|
+
organizationExternalId?: boolean;
|
|
885
|
+
connectionConfig?: boolean;
|
|
886
|
+
user?: boolean | Prisma.Account$userArgs<ExtArgs>;
|
|
887
|
+
environment?: boolean | Prisma.Account$environmentArgs<ExtArgs>;
|
|
630
888
|
}, ExtArgs["result"]["account"]>;
|
|
631
889
|
export type AccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
632
890
|
id?: boolean;
|
|
@@ -642,7 +900,11 @@ export type AccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Exten
|
|
|
642
900
|
password?: boolean;
|
|
643
901
|
createdAt?: boolean;
|
|
644
902
|
updatedAt?: boolean;
|
|
645
|
-
|
|
903
|
+
environmentId?: boolean;
|
|
904
|
+
organizationExternalId?: boolean;
|
|
905
|
+
connectionConfig?: boolean;
|
|
906
|
+
user?: boolean | Prisma.Account$userArgs<ExtArgs>;
|
|
907
|
+
environment?: boolean | Prisma.Account$environmentArgs<ExtArgs>;
|
|
646
908
|
}, ExtArgs["result"]["account"]>;
|
|
647
909
|
export type AccountSelectScalar = {
|
|
648
910
|
id?: boolean;
|
|
@@ -658,27 +920,34 @@ export type AccountSelectScalar = {
|
|
|
658
920
|
password?: boolean;
|
|
659
921
|
createdAt?: boolean;
|
|
660
922
|
updatedAt?: boolean;
|
|
923
|
+
environmentId?: boolean;
|
|
924
|
+
organizationExternalId?: boolean;
|
|
925
|
+
connectionConfig?: boolean;
|
|
661
926
|
};
|
|
662
|
-
export type AccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["account"]>;
|
|
927
|
+
export type AccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "accountId" | "providerId" | "userId" | "accessToken" | "refreshToken" | "idToken" | "accessTokenExpiresAt" | "refreshTokenExpiresAt" | "scope" | "password" | "createdAt" | "updatedAt" | "environmentId" | "organizationExternalId" | "connectionConfig", ExtArgs["result"]["account"]>;
|
|
663
928
|
export type AccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
664
|
-
user?: boolean | Prisma.
|
|
929
|
+
user?: boolean | Prisma.Account$userArgs<ExtArgs>;
|
|
930
|
+
environment?: boolean | Prisma.Account$environmentArgs<ExtArgs>;
|
|
665
931
|
};
|
|
666
932
|
export type AccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
667
|
-
user?: boolean | Prisma.
|
|
933
|
+
user?: boolean | Prisma.Account$userArgs<ExtArgs>;
|
|
934
|
+
environment?: boolean | Prisma.Account$environmentArgs<ExtArgs>;
|
|
668
935
|
};
|
|
669
936
|
export type AccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
670
|
-
user?: boolean | Prisma.
|
|
937
|
+
user?: boolean | Prisma.Account$userArgs<ExtArgs>;
|
|
938
|
+
environment?: boolean | Prisma.Account$environmentArgs<ExtArgs>;
|
|
671
939
|
};
|
|
672
940
|
export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
673
941
|
name: "Account";
|
|
674
942
|
objects: {
|
|
675
|
-
user: Prisma.$UserPayload<ExtArgs
|
|
943
|
+
user: Prisma.$UserPayload<ExtArgs> | null;
|
|
944
|
+
environment: Prisma.$EnvironmentPayload<ExtArgs> | null;
|
|
676
945
|
};
|
|
677
946
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
678
947
|
id: string;
|
|
679
948
|
accountId: string;
|
|
680
949
|
providerId: string;
|
|
681
|
-
userId: string;
|
|
950
|
+
userId: string | null;
|
|
682
951
|
accessToken: string | null;
|
|
683
952
|
refreshToken: string | null;
|
|
684
953
|
idToken: string | null;
|
|
@@ -688,6 +957,15 @@ export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
|
|
688
957
|
password: string | null;
|
|
689
958
|
createdAt: Date;
|
|
690
959
|
updatedAt: Date;
|
|
960
|
+
environmentId: string | null;
|
|
961
|
+
organizationExternalId: string | null;
|
|
962
|
+
/**
|
|
963
|
+
* Per-connection provider parameters, for providers that need any: the
|
|
964
|
+
* Jira site, the Zendesk subdomain. Non-secret, and held on the connection
|
|
965
|
+
* rather than on the configuration because one OAuth app serves every
|
|
966
|
+
* tenant. Null on a Kosha login, like every other column here.
|
|
967
|
+
*/
|
|
968
|
+
connectionConfig: runtime.JsonValue | null;
|
|
691
969
|
}, ExtArgs["result"]["account"]>;
|
|
692
970
|
composites: {};
|
|
693
971
|
};
|
|
@@ -1017,7 +1295,8 @@ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.Intern
|
|
|
1017
1295
|
*/
|
|
1018
1296
|
export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1019
1297
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1020
|
-
user<T extends Prisma.
|
|
1298
|
+
user<T extends Prisma.Account$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1299
|
+
environment<T extends Prisma.Account$environmentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Account$environmentArgs<ExtArgs>>): Prisma.Prisma__EnvironmentClient<runtime.Types.Result.GetResult<Prisma.$EnvironmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
1021
1300
|
/**
|
|
1022
1301
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1023
1302
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1056,6 +1335,9 @@ export interface AccountFieldRefs {
|
|
|
1056
1335
|
readonly password: Prisma.FieldRef<"Account", 'String'>;
|
|
1057
1336
|
readonly createdAt: Prisma.FieldRef<"Account", 'DateTime'>;
|
|
1058
1337
|
readonly updatedAt: Prisma.FieldRef<"Account", 'DateTime'>;
|
|
1338
|
+
readonly environmentId: Prisma.FieldRef<"Account", 'String'>;
|
|
1339
|
+
readonly organizationExternalId: Prisma.FieldRef<"Account", 'String'>;
|
|
1340
|
+
readonly connectionConfig: Prisma.FieldRef<"Account", 'Json'>;
|
|
1059
1341
|
}
|
|
1060
1342
|
/**
|
|
1061
1343
|
* Account findUnique
|
|
@@ -1439,6 +1721,42 @@ export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
|
|
1439
1721
|
*/
|
|
1440
1722
|
limit?: number;
|
|
1441
1723
|
};
|
|
1724
|
+
/**
|
|
1725
|
+
* Account.user
|
|
1726
|
+
*/
|
|
1727
|
+
export type Account$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1728
|
+
/**
|
|
1729
|
+
* Select specific fields to fetch from the User
|
|
1730
|
+
*/
|
|
1731
|
+
select?: Prisma.UserSelect<ExtArgs> | null;
|
|
1732
|
+
/**
|
|
1733
|
+
* Omit specific fields from the User
|
|
1734
|
+
*/
|
|
1735
|
+
omit?: Prisma.UserOmit<ExtArgs> | null;
|
|
1736
|
+
/**
|
|
1737
|
+
* Choose, which related nodes to fetch as well
|
|
1738
|
+
*/
|
|
1739
|
+
include?: Prisma.UserInclude<ExtArgs> | null;
|
|
1740
|
+
where?: Prisma.UserWhereInput;
|
|
1741
|
+
};
|
|
1742
|
+
/**
|
|
1743
|
+
* Account.environment
|
|
1744
|
+
*/
|
|
1745
|
+
export type Account$environmentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1746
|
+
/**
|
|
1747
|
+
* Select specific fields to fetch from the Environment
|
|
1748
|
+
*/
|
|
1749
|
+
select?: Prisma.EnvironmentSelect<ExtArgs> | null;
|
|
1750
|
+
/**
|
|
1751
|
+
* Omit specific fields from the Environment
|
|
1752
|
+
*/
|
|
1753
|
+
omit?: Prisma.EnvironmentOmit<ExtArgs> | null;
|
|
1754
|
+
/**
|
|
1755
|
+
* Choose, which related nodes to fetch as well
|
|
1756
|
+
*/
|
|
1757
|
+
include?: Prisma.EnvironmentInclude<ExtArgs> | null;
|
|
1758
|
+
where?: Prisma.EnvironmentWhereInput;
|
|
1759
|
+
};
|
|
1442
1760
|
/**
|
|
1443
1761
|
* Account without action
|
|
1444
1762
|
*/
|