@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.
- 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/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.js +3 -3
- 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 +19 -29
- package/dist/credentials/credentials.service.d.ts.map +1 -1
- package/dist/credentials/credentials.service.js +84 -57
- 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/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 +2 -8
- package/dist/egress/egress.controller.d.ts.map +1 -1
- package/dist/egress/egress.controller.js +27 -6
- package/dist/egress/egress.listener.d.ts +3 -1
- package/dist/egress/egress.listener.d.ts.map +1 -1
- package/dist/egress/egress.listener.js +12 -8
- package/dist/egress/egress.module.d.ts.map +1 -1
- package/dist/egress/egress.module.js +10 -2
- 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 +23 -78
- package/dist/egress/grants.service.d.ts.map +1 -1
- package/dist/egress/grants.service.js +44 -104
- 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 +14 -37
- package/dist/generated/prisma/browser.d.ts.map +1 -1
- package/dist/generated/prisma/client.d.ts +14 -37
- 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 +20 -53
- 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 +215 -519
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespace.js +38 -90
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +37 -92
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +38 -90
- 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 +131 -134
- package/dist/generated/prisma/models/EgressGrant.d.ts.map +1 -1
- 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 +122 -408
- 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 +3 -6
- package/dist/generated/prisma/models.d.ts.map +1 -1
- package/dist/index.d.ts +15 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- 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 +9 -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 -2
- 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 -5
- package/dist/proxy/proxy.service.d.ts.map +1 -1
- package/dist/proxy/proxy.service.js +58 -27
- package/package.json +7 -4
- package/prisma/migrations/20260929101936_init/migration.sql +345 -0
- package/prisma/migrations/20260930102529_connection_config/migration.sql +2 -0
- package/prisma/schema.prisma +93 -198
- 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 -1666
- package/dist/generated/prisma/models/EndUser.d.ts.map +0 -1
- package/dist/generated/prisma/models/EndUser.js +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/prisma/migrations/20260921000000_add_egress_grant/migration.sql +0 -31
- /package/dist/generated/prisma/models/{ConnectSession.js → Environment.js} +0 -0
- /package/dist/generated/prisma/models/{Connection.js → Team.js} +0 -0
- /package/dist/generated/prisma/models/{ConnectionCredential.js → TeamMember.js} +0 -0
|
@@ -13,7 +13,7 @@ export type AggregateEgressGrant = {
|
|
|
13
13
|
export type EgressGrantMinAggregateOutputType = {
|
|
14
14
|
id: string | null;
|
|
15
15
|
organizationId: string | null;
|
|
16
|
-
|
|
16
|
+
userId: string | null;
|
|
17
17
|
tokenHash: string | null;
|
|
18
18
|
caPem: string | null;
|
|
19
19
|
caKey: string | null;
|
|
@@ -25,7 +25,7 @@ export type EgressGrantMinAggregateOutputType = {
|
|
|
25
25
|
export type EgressGrantMaxAggregateOutputType = {
|
|
26
26
|
id: string | null;
|
|
27
27
|
organizationId: string | null;
|
|
28
|
-
|
|
28
|
+
userId: string | null;
|
|
29
29
|
tokenHash: string | null;
|
|
30
30
|
caPem: string | null;
|
|
31
31
|
caKey: string | null;
|
|
@@ -37,7 +37,7 @@ export type EgressGrantMaxAggregateOutputType = {
|
|
|
37
37
|
export type EgressGrantCountAggregateOutputType = {
|
|
38
38
|
id: number;
|
|
39
39
|
organizationId: number;
|
|
40
|
-
|
|
40
|
+
userId: number;
|
|
41
41
|
tokenHash: number;
|
|
42
42
|
providerKeys: number;
|
|
43
43
|
caPem: number;
|
|
@@ -51,7 +51,7 @@ export type EgressGrantCountAggregateOutputType = {
|
|
|
51
51
|
export type EgressGrantMinAggregateInputType = {
|
|
52
52
|
id?: true;
|
|
53
53
|
organizationId?: true;
|
|
54
|
-
|
|
54
|
+
userId?: true;
|
|
55
55
|
tokenHash?: true;
|
|
56
56
|
caPem?: true;
|
|
57
57
|
caKey?: true;
|
|
@@ -63,7 +63,7 @@ export type EgressGrantMinAggregateInputType = {
|
|
|
63
63
|
export type EgressGrantMaxAggregateInputType = {
|
|
64
64
|
id?: true;
|
|
65
65
|
organizationId?: true;
|
|
66
|
-
|
|
66
|
+
userId?: true;
|
|
67
67
|
tokenHash?: true;
|
|
68
68
|
caPem?: true;
|
|
69
69
|
caKey?: true;
|
|
@@ -75,7 +75,7 @@ export type EgressGrantMaxAggregateInputType = {
|
|
|
75
75
|
export type EgressGrantCountAggregateInputType = {
|
|
76
76
|
id?: true;
|
|
77
77
|
organizationId?: true;
|
|
78
|
-
|
|
78
|
+
userId?: true;
|
|
79
79
|
tokenHash?: true;
|
|
80
80
|
providerKeys?: true;
|
|
81
81
|
caPem?: true;
|
|
@@ -151,7 +151,7 @@ export type EgressGrantGroupByArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
151
151
|
export type EgressGrantGroupByOutputType = {
|
|
152
152
|
id: string;
|
|
153
153
|
organizationId: string;
|
|
154
|
-
|
|
154
|
+
userId: string;
|
|
155
155
|
tokenHash: string;
|
|
156
156
|
providerKeys: string[];
|
|
157
157
|
caPem: string;
|
|
@@ -173,7 +173,7 @@ export type EgressGrantWhereInput = {
|
|
|
173
173
|
NOT?: Prisma.EgressGrantWhereInput | Prisma.EgressGrantWhereInput[];
|
|
174
174
|
id?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
175
175
|
organizationId?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
176
|
-
|
|
176
|
+
userId?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
177
177
|
tokenHash?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
178
178
|
providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
|
|
179
179
|
caPem?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
@@ -183,12 +183,12 @@ export type EgressGrantWhereInput = {
|
|
|
183
183
|
revokedAt?: Prisma.DateTimeNullableFilter<"EgressGrant"> | Date | string | null;
|
|
184
184
|
createdAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
|
|
185
185
|
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
186
|
-
|
|
186
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
187
187
|
};
|
|
188
188
|
export type EgressGrantOrderByWithRelationInput = {
|
|
189
189
|
id?: Prisma.SortOrder;
|
|
190
190
|
organizationId?: Prisma.SortOrder;
|
|
191
|
-
|
|
191
|
+
userId?: Prisma.SortOrder;
|
|
192
192
|
tokenHash?: Prisma.SortOrder;
|
|
193
193
|
providerKeys?: Prisma.SortOrder;
|
|
194
194
|
caPem?: Prisma.SortOrder;
|
|
@@ -198,7 +198,7 @@ export type EgressGrantOrderByWithRelationInput = {
|
|
|
198
198
|
revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
199
199
|
createdAt?: Prisma.SortOrder;
|
|
200
200
|
organization?: Prisma.OrganizationOrderByWithRelationInput;
|
|
201
|
-
|
|
201
|
+
user?: Prisma.UserOrderByWithRelationInput;
|
|
202
202
|
};
|
|
203
203
|
export type EgressGrantWhereUniqueInput = Prisma.AtLeast<{
|
|
204
204
|
id?: string;
|
|
@@ -206,7 +206,7 @@ export type EgressGrantWhereUniqueInput = Prisma.AtLeast<{
|
|
|
206
206
|
OR?: Prisma.EgressGrantWhereInput[];
|
|
207
207
|
NOT?: Prisma.EgressGrantWhereInput | Prisma.EgressGrantWhereInput[];
|
|
208
208
|
organizationId?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
209
|
-
|
|
209
|
+
userId?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
210
210
|
tokenHash?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
211
211
|
providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
|
|
212
212
|
caPem?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
@@ -216,12 +216,12 @@ export type EgressGrantWhereUniqueInput = Prisma.AtLeast<{
|
|
|
216
216
|
revokedAt?: Prisma.DateTimeNullableFilter<"EgressGrant"> | Date | string | null;
|
|
217
217
|
createdAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
|
|
218
218
|
organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>;
|
|
219
|
-
|
|
219
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
|
|
220
220
|
}, "id">;
|
|
221
221
|
export type EgressGrantOrderByWithAggregationInput = {
|
|
222
222
|
id?: Prisma.SortOrder;
|
|
223
223
|
organizationId?: Prisma.SortOrder;
|
|
224
|
-
|
|
224
|
+
userId?: Prisma.SortOrder;
|
|
225
225
|
tokenHash?: Prisma.SortOrder;
|
|
226
226
|
providerKeys?: Prisma.SortOrder;
|
|
227
227
|
caPem?: Prisma.SortOrder;
|
|
@@ -240,7 +240,7 @@ export type EgressGrantScalarWhereWithAggregatesInput = {
|
|
|
240
240
|
NOT?: Prisma.EgressGrantScalarWhereWithAggregatesInput | Prisma.EgressGrantScalarWhereWithAggregatesInput[];
|
|
241
241
|
id?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
|
|
242
242
|
organizationId?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
|
|
243
|
-
|
|
243
|
+
userId?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
|
|
244
244
|
tokenHash?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
|
|
245
245
|
providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
|
|
246
246
|
caPem?: Prisma.StringWithAggregatesFilter<"EgressGrant"> | string;
|
|
@@ -261,12 +261,12 @@ export type EgressGrantCreateInput = {
|
|
|
261
261
|
revokedAt?: Date | string | null;
|
|
262
262
|
createdAt?: Date | string;
|
|
263
263
|
organization: Prisma.OrganizationCreateNestedOneWithoutEgressGrantsInput;
|
|
264
|
-
|
|
264
|
+
user: Prisma.UserCreateNestedOneWithoutEgressGrantsInput;
|
|
265
265
|
};
|
|
266
266
|
export type EgressGrantUncheckedCreateInput = {
|
|
267
267
|
id?: string;
|
|
268
268
|
organizationId: string;
|
|
269
|
-
|
|
269
|
+
userId: string;
|
|
270
270
|
tokenHash: string;
|
|
271
271
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
272
272
|
caPem: string;
|
|
@@ -287,12 +287,12 @@ export type EgressGrantUpdateInput = {
|
|
|
287
287
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
288
288
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
289
289
|
organization?: Prisma.OrganizationUpdateOneRequiredWithoutEgressGrantsNestedInput;
|
|
290
|
-
|
|
290
|
+
user?: Prisma.UserUpdateOneRequiredWithoutEgressGrantsNestedInput;
|
|
291
291
|
};
|
|
292
292
|
export type EgressGrantUncheckedUpdateInput = {
|
|
293
293
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
294
294
|
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
295
|
-
|
|
295
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
296
296
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
297
297
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
298
298
|
caPem?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -305,7 +305,7 @@ export type EgressGrantUncheckedUpdateInput = {
|
|
|
305
305
|
export type EgressGrantCreateManyInput = {
|
|
306
306
|
id?: string;
|
|
307
307
|
organizationId: string;
|
|
308
|
-
|
|
308
|
+
userId: string;
|
|
309
309
|
tokenHash: string;
|
|
310
310
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
311
311
|
caPem: string;
|
|
@@ -329,7 +329,7 @@ export type EgressGrantUpdateManyMutationInput = {
|
|
|
329
329
|
export type EgressGrantUncheckedUpdateManyInput = {
|
|
330
330
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
331
331
|
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
332
|
-
|
|
332
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
333
333
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
334
334
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
335
335
|
caPem?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -347,10 +347,17 @@ export type EgressGrantListRelationFilter = {
|
|
|
347
347
|
export type EgressGrantOrderByRelationAggregateInput = {
|
|
348
348
|
_count?: Prisma.SortOrder;
|
|
349
349
|
};
|
|
350
|
+
export type StringNullableListFilter<$PrismaModel = never> = {
|
|
351
|
+
equals?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null;
|
|
352
|
+
has?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
353
|
+
hasEvery?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
354
|
+
hasSome?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
355
|
+
isEmpty?: boolean;
|
|
356
|
+
};
|
|
350
357
|
export type EgressGrantCountOrderByAggregateInput = {
|
|
351
358
|
id?: Prisma.SortOrder;
|
|
352
359
|
organizationId?: Prisma.SortOrder;
|
|
353
|
-
|
|
360
|
+
userId?: Prisma.SortOrder;
|
|
354
361
|
tokenHash?: Prisma.SortOrder;
|
|
355
362
|
providerKeys?: Prisma.SortOrder;
|
|
356
363
|
caPem?: Prisma.SortOrder;
|
|
@@ -363,7 +370,7 @@ export type EgressGrantCountOrderByAggregateInput = {
|
|
|
363
370
|
export type EgressGrantMaxOrderByAggregateInput = {
|
|
364
371
|
id?: Prisma.SortOrder;
|
|
365
372
|
organizationId?: Prisma.SortOrder;
|
|
366
|
-
|
|
373
|
+
userId?: Prisma.SortOrder;
|
|
367
374
|
tokenHash?: Prisma.SortOrder;
|
|
368
375
|
caPem?: Prisma.SortOrder;
|
|
369
376
|
caKey?: Prisma.SortOrder;
|
|
@@ -375,7 +382,7 @@ export type EgressGrantMaxOrderByAggregateInput = {
|
|
|
375
382
|
export type EgressGrantMinOrderByAggregateInput = {
|
|
376
383
|
id?: Prisma.SortOrder;
|
|
377
384
|
organizationId?: Prisma.SortOrder;
|
|
378
|
-
|
|
385
|
+
userId?: Prisma.SortOrder;
|
|
379
386
|
tokenHash?: Prisma.SortOrder;
|
|
380
387
|
caPem?: Prisma.SortOrder;
|
|
381
388
|
caKey?: Prisma.SortOrder;
|
|
@@ -384,6 +391,44 @@ export type EgressGrantMinOrderByAggregateInput = {
|
|
|
384
391
|
revokedAt?: Prisma.SortOrder;
|
|
385
392
|
createdAt?: Prisma.SortOrder;
|
|
386
393
|
};
|
|
394
|
+
export type EgressGrantCreateNestedManyWithoutUserInput = {
|
|
395
|
+
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutUserInput, Prisma.EgressGrantUncheckedCreateWithoutUserInput> | Prisma.EgressGrantCreateWithoutUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutUserInput[];
|
|
396
|
+
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutUserInput | Prisma.EgressGrantCreateOrConnectWithoutUserInput[];
|
|
397
|
+
createMany?: Prisma.EgressGrantCreateManyUserInputEnvelope;
|
|
398
|
+
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
399
|
+
};
|
|
400
|
+
export type EgressGrantUncheckedCreateNestedManyWithoutUserInput = {
|
|
401
|
+
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutUserInput, Prisma.EgressGrantUncheckedCreateWithoutUserInput> | Prisma.EgressGrantCreateWithoutUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutUserInput[];
|
|
402
|
+
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutUserInput | Prisma.EgressGrantCreateOrConnectWithoutUserInput[];
|
|
403
|
+
createMany?: Prisma.EgressGrantCreateManyUserInputEnvelope;
|
|
404
|
+
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
405
|
+
};
|
|
406
|
+
export type EgressGrantUpdateManyWithoutUserNestedInput = {
|
|
407
|
+
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutUserInput, Prisma.EgressGrantUncheckedCreateWithoutUserInput> | Prisma.EgressGrantCreateWithoutUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutUserInput[];
|
|
408
|
+
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutUserInput | Prisma.EgressGrantCreateOrConnectWithoutUserInput[];
|
|
409
|
+
upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutUserInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutUserInput[];
|
|
410
|
+
createMany?: Prisma.EgressGrantCreateManyUserInputEnvelope;
|
|
411
|
+
set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
412
|
+
disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
413
|
+
delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
414
|
+
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
415
|
+
update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutUserInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutUserInput[];
|
|
416
|
+
updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutUserInput | Prisma.EgressGrantUpdateManyWithWhereWithoutUserInput[];
|
|
417
|
+
deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
418
|
+
};
|
|
419
|
+
export type EgressGrantUncheckedUpdateManyWithoutUserNestedInput = {
|
|
420
|
+
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutUserInput, Prisma.EgressGrantUncheckedCreateWithoutUserInput> | Prisma.EgressGrantCreateWithoutUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutUserInput[];
|
|
421
|
+
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutUserInput | Prisma.EgressGrantCreateOrConnectWithoutUserInput[];
|
|
422
|
+
upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutUserInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutUserInput[];
|
|
423
|
+
createMany?: Prisma.EgressGrantCreateManyUserInputEnvelope;
|
|
424
|
+
set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
425
|
+
disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
426
|
+
delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
427
|
+
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
428
|
+
update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutUserInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutUserInput[];
|
|
429
|
+
updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutUserInput | Prisma.EgressGrantUpdateManyWithWhereWithoutUserInput[];
|
|
430
|
+
deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
431
|
+
};
|
|
387
432
|
export type EgressGrantCreateNestedManyWithoutOrganizationInput = {
|
|
388
433
|
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput> | Prisma.EgressGrantCreateWithoutOrganizationInput[] | Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput[];
|
|
389
434
|
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput | Prisma.EgressGrantCreateOrConnectWithoutOrganizationInput[];
|
|
@@ -422,44 +467,6 @@ export type EgressGrantUncheckedUpdateManyWithoutOrganizationNestedInput = {
|
|
|
422
467
|
updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutOrganizationInput | Prisma.EgressGrantUpdateManyWithWhereWithoutOrganizationInput[];
|
|
423
468
|
deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
424
469
|
};
|
|
425
|
-
export type EgressGrantCreateNestedManyWithoutEndUserInput = {
|
|
426
|
-
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
|
|
427
|
-
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
|
|
428
|
-
createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
|
|
429
|
-
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
430
|
-
};
|
|
431
|
-
export type EgressGrantUncheckedCreateNestedManyWithoutEndUserInput = {
|
|
432
|
-
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
|
|
433
|
-
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
|
|
434
|
-
createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
|
|
435
|
-
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
436
|
-
};
|
|
437
|
-
export type EgressGrantUpdateManyWithoutEndUserNestedInput = {
|
|
438
|
-
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
|
|
439
|
-
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
|
|
440
|
-
upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput[];
|
|
441
|
-
createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
|
|
442
|
-
set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
443
|
-
disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
444
|
-
delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
445
|
-
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
446
|
-
update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput[];
|
|
447
|
-
updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput | Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput[];
|
|
448
|
-
deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
449
|
-
};
|
|
450
|
-
export type EgressGrantUncheckedUpdateManyWithoutEndUserNestedInput = {
|
|
451
|
-
create?: Prisma.XOR<Prisma.EgressGrantCreateWithoutEndUserInput, Prisma.EgressGrantUncheckedCreateWithoutEndUserInput> | Prisma.EgressGrantCreateWithoutEndUserInput[] | Prisma.EgressGrantUncheckedCreateWithoutEndUserInput[];
|
|
452
|
-
connectOrCreate?: Prisma.EgressGrantCreateOrConnectWithoutEndUserInput | Prisma.EgressGrantCreateOrConnectWithoutEndUserInput[];
|
|
453
|
-
upsert?: Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpsertWithWhereUniqueWithoutEndUserInput[];
|
|
454
|
-
createMany?: Prisma.EgressGrantCreateManyEndUserInputEnvelope;
|
|
455
|
-
set?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
456
|
-
disconnect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
457
|
-
delete?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
458
|
-
connect?: Prisma.EgressGrantWhereUniqueInput | Prisma.EgressGrantWhereUniqueInput[];
|
|
459
|
-
update?: Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput | Prisma.EgressGrantUpdateWithWhereUniqueWithoutEndUserInput[];
|
|
460
|
-
updateMany?: Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput | Prisma.EgressGrantUpdateManyWithWhereWithoutEndUserInput[];
|
|
461
|
-
deleteMany?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
462
|
-
};
|
|
463
470
|
export type EgressGrantCreateproviderKeysInput = {
|
|
464
471
|
set: string[];
|
|
465
472
|
};
|
|
@@ -467,7 +474,7 @@ export type EgressGrantUpdateproviderKeysInput = {
|
|
|
467
474
|
set?: string[];
|
|
468
475
|
push?: string | string[];
|
|
469
476
|
};
|
|
470
|
-
export type
|
|
477
|
+
export type EgressGrantCreateWithoutUserInput = {
|
|
471
478
|
id?: string;
|
|
472
479
|
tokenHash: string;
|
|
473
480
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
@@ -477,11 +484,11 @@ export type EgressGrantCreateWithoutOrganizationInput = {
|
|
|
477
484
|
expiresAt: Date | string;
|
|
478
485
|
revokedAt?: Date | string | null;
|
|
479
486
|
createdAt?: Date | string;
|
|
480
|
-
|
|
487
|
+
organization: Prisma.OrganizationCreateNestedOneWithoutEgressGrantsInput;
|
|
481
488
|
};
|
|
482
|
-
export type
|
|
489
|
+
export type EgressGrantUncheckedCreateWithoutUserInput = {
|
|
483
490
|
id?: string;
|
|
484
|
-
|
|
491
|
+
organizationId: string;
|
|
485
492
|
tokenHash: string;
|
|
486
493
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
487
494
|
caPem: string;
|
|
@@ -491,26 +498,26 @@ export type EgressGrantUncheckedCreateWithoutOrganizationInput = {
|
|
|
491
498
|
revokedAt?: Date | string | null;
|
|
492
499
|
createdAt?: Date | string;
|
|
493
500
|
};
|
|
494
|
-
export type
|
|
501
|
+
export type EgressGrantCreateOrConnectWithoutUserInput = {
|
|
495
502
|
where: Prisma.EgressGrantWhereUniqueInput;
|
|
496
|
-
create: Prisma.XOR<Prisma.
|
|
503
|
+
create: Prisma.XOR<Prisma.EgressGrantCreateWithoutUserInput, Prisma.EgressGrantUncheckedCreateWithoutUserInput>;
|
|
497
504
|
};
|
|
498
|
-
export type
|
|
499
|
-
data: Prisma.
|
|
505
|
+
export type EgressGrantCreateManyUserInputEnvelope = {
|
|
506
|
+
data: Prisma.EgressGrantCreateManyUserInput | Prisma.EgressGrantCreateManyUserInput[];
|
|
500
507
|
skipDuplicates?: boolean;
|
|
501
508
|
};
|
|
502
|
-
export type
|
|
509
|
+
export type EgressGrantUpsertWithWhereUniqueWithoutUserInput = {
|
|
503
510
|
where: Prisma.EgressGrantWhereUniqueInput;
|
|
504
|
-
update: Prisma.XOR<Prisma.
|
|
505
|
-
create: Prisma.XOR<Prisma.
|
|
511
|
+
update: Prisma.XOR<Prisma.EgressGrantUpdateWithoutUserInput, Prisma.EgressGrantUncheckedUpdateWithoutUserInput>;
|
|
512
|
+
create: Prisma.XOR<Prisma.EgressGrantCreateWithoutUserInput, Prisma.EgressGrantUncheckedCreateWithoutUserInput>;
|
|
506
513
|
};
|
|
507
|
-
export type
|
|
514
|
+
export type EgressGrantUpdateWithWhereUniqueWithoutUserInput = {
|
|
508
515
|
where: Prisma.EgressGrantWhereUniqueInput;
|
|
509
|
-
data: Prisma.XOR<Prisma.
|
|
516
|
+
data: Prisma.XOR<Prisma.EgressGrantUpdateWithoutUserInput, Prisma.EgressGrantUncheckedUpdateWithoutUserInput>;
|
|
510
517
|
};
|
|
511
|
-
export type
|
|
518
|
+
export type EgressGrantUpdateManyWithWhereWithoutUserInput = {
|
|
512
519
|
where: Prisma.EgressGrantScalarWhereInput;
|
|
513
|
-
data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.
|
|
520
|
+
data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.EgressGrantUncheckedUpdateManyWithoutUserInput>;
|
|
514
521
|
};
|
|
515
522
|
export type EgressGrantScalarWhereInput = {
|
|
516
523
|
AND?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
@@ -518,7 +525,7 @@ export type EgressGrantScalarWhereInput = {
|
|
|
518
525
|
NOT?: Prisma.EgressGrantScalarWhereInput | Prisma.EgressGrantScalarWhereInput[];
|
|
519
526
|
id?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
520
527
|
organizationId?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
521
|
-
|
|
528
|
+
userId?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
522
529
|
tokenHash?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
523
530
|
providerKeys?: Prisma.StringNullableListFilter<"EgressGrant">;
|
|
524
531
|
caPem?: Prisma.StringFilter<"EgressGrant"> | string;
|
|
@@ -528,7 +535,7 @@ export type EgressGrantScalarWhereInput = {
|
|
|
528
535
|
revokedAt?: Prisma.DateTimeNullableFilter<"EgressGrant"> | Date | string | null;
|
|
529
536
|
createdAt?: Prisma.DateTimeFilter<"EgressGrant"> | Date | string;
|
|
530
537
|
};
|
|
531
|
-
export type
|
|
538
|
+
export type EgressGrantCreateWithoutOrganizationInput = {
|
|
532
539
|
id?: string;
|
|
533
540
|
tokenHash: string;
|
|
534
541
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
@@ -538,11 +545,11 @@ export type EgressGrantCreateWithoutEndUserInput = {
|
|
|
538
545
|
expiresAt: Date | string;
|
|
539
546
|
revokedAt?: Date | string | null;
|
|
540
547
|
createdAt?: Date | string;
|
|
541
|
-
|
|
548
|
+
user: Prisma.UserCreateNestedOneWithoutEgressGrantsInput;
|
|
542
549
|
};
|
|
543
|
-
export type
|
|
550
|
+
export type EgressGrantUncheckedCreateWithoutOrganizationInput = {
|
|
544
551
|
id?: string;
|
|
545
|
-
|
|
552
|
+
userId: string;
|
|
546
553
|
tokenHash: string;
|
|
547
554
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
548
555
|
caPem: string;
|
|
@@ -552,30 +559,30 @@ export type EgressGrantUncheckedCreateWithoutEndUserInput = {
|
|
|
552
559
|
revokedAt?: Date | string | null;
|
|
553
560
|
createdAt?: Date | string;
|
|
554
561
|
};
|
|
555
|
-
export type
|
|
562
|
+
export type EgressGrantCreateOrConnectWithoutOrganizationInput = {
|
|
556
563
|
where: Prisma.EgressGrantWhereUniqueInput;
|
|
557
|
-
create: Prisma.XOR<Prisma.
|
|
564
|
+
create: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput>;
|
|
558
565
|
};
|
|
559
|
-
export type
|
|
560
|
-
data: Prisma.
|
|
566
|
+
export type EgressGrantCreateManyOrganizationInputEnvelope = {
|
|
567
|
+
data: Prisma.EgressGrantCreateManyOrganizationInput | Prisma.EgressGrantCreateManyOrganizationInput[];
|
|
561
568
|
skipDuplicates?: boolean;
|
|
562
569
|
};
|
|
563
|
-
export type
|
|
570
|
+
export type EgressGrantUpsertWithWhereUniqueWithoutOrganizationInput = {
|
|
564
571
|
where: Prisma.EgressGrantWhereUniqueInput;
|
|
565
|
-
update: Prisma.XOR<Prisma.
|
|
566
|
-
create: Prisma.XOR<Prisma.
|
|
572
|
+
update: Prisma.XOR<Prisma.EgressGrantUpdateWithoutOrganizationInput, Prisma.EgressGrantUncheckedUpdateWithoutOrganizationInput>;
|
|
573
|
+
create: Prisma.XOR<Prisma.EgressGrantCreateWithoutOrganizationInput, Prisma.EgressGrantUncheckedCreateWithoutOrganizationInput>;
|
|
567
574
|
};
|
|
568
|
-
export type
|
|
575
|
+
export type EgressGrantUpdateWithWhereUniqueWithoutOrganizationInput = {
|
|
569
576
|
where: Prisma.EgressGrantWhereUniqueInput;
|
|
570
|
-
data: Prisma.XOR<Prisma.
|
|
577
|
+
data: Prisma.XOR<Prisma.EgressGrantUpdateWithoutOrganizationInput, Prisma.EgressGrantUncheckedUpdateWithoutOrganizationInput>;
|
|
571
578
|
};
|
|
572
|
-
export type
|
|
579
|
+
export type EgressGrantUpdateManyWithWhereWithoutOrganizationInput = {
|
|
573
580
|
where: Prisma.EgressGrantScalarWhereInput;
|
|
574
|
-
data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.
|
|
581
|
+
data: Prisma.XOR<Prisma.EgressGrantUpdateManyMutationInput, Prisma.EgressGrantUncheckedUpdateManyWithoutOrganizationInput>;
|
|
575
582
|
};
|
|
576
|
-
export type
|
|
583
|
+
export type EgressGrantCreateManyUserInput = {
|
|
577
584
|
id?: string;
|
|
578
|
-
|
|
585
|
+
organizationId: string;
|
|
579
586
|
tokenHash: string;
|
|
580
587
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
581
588
|
caPem: string;
|
|
@@ -585,7 +592,7 @@ export type EgressGrantCreateManyOrganizationInput = {
|
|
|
585
592
|
revokedAt?: Date | string | null;
|
|
586
593
|
createdAt?: Date | string;
|
|
587
594
|
};
|
|
588
|
-
export type
|
|
595
|
+
export type EgressGrantUpdateWithoutUserInput = {
|
|
589
596
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
590
597
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
591
598
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
@@ -595,11 +602,11 @@ export type EgressGrantUpdateWithoutOrganizationInput = {
|
|
|
595
602
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
596
603
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
597
604
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
598
|
-
|
|
605
|
+
organization?: Prisma.OrganizationUpdateOneRequiredWithoutEgressGrantsNestedInput;
|
|
599
606
|
};
|
|
600
|
-
export type
|
|
607
|
+
export type EgressGrantUncheckedUpdateWithoutUserInput = {
|
|
601
608
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
602
|
-
|
|
609
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
603
610
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
604
611
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
605
612
|
caPem?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -609,9 +616,9 @@ export type EgressGrantUncheckedUpdateWithoutOrganizationInput = {
|
|
|
609
616
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
610
617
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
611
618
|
};
|
|
612
|
-
export type
|
|
619
|
+
export type EgressGrantUncheckedUpdateManyWithoutUserInput = {
|
|
613
620
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
614
|
-
|
|
621
|
+
organizationId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
615
622
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
616
623
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
617
624
|
caPem?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -621,9 +628,9 @@ export type EgressGrantUncheckedUpdateManyWithoutOrganizationInput = {
|
|
|
621
628
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
622
629
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
623
630
|
};
|
|
624
|
-
export type
|
|
631
|
+
export type EgressGrantCreateManyOrganizationInput = {
|
|
625
632
|
id?: string;
|
|
626
|
-
|
|
633
|
+
userId: string;
|
|
627
634
|
tokenHash: string;
|
|
628
635
|
providerKeys?: Prisma.EgressGrantCreateproviderKeysInput | string[];
|
|
629
636
|
caPem: string;
|
|
@@ -633,7 +640,7 @@ export type EgressGrantCreateManyEndUserInput = {
|
|
|
633
640
|
revokedAt?: Date | string | null;
|
|
634
641
|
createdAt?: Date | string;
|
|
635
642
|
};
|
|
636
|
-
export type
|
|
643
|
+
export type EgressGrantUpdateWithoutOrganizationInput = {
|
|
637
644
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
638
645
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
639
646
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
@@ -643,11 +650,11 @@ export type EgressGrantUpdateWithoutEndUserInput = {
|
|
|
643
650
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
644
651
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
645
652
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
646
|
-
|
|
653
|
+
user?: Prisma.UserUpdateOneRequiredWithoutEgressGrantsNestedInput;
|
|
647
654
|
};
|
|
648
|
-
export type
|
|
655
|
+
export type EgressGrantUncheckedUpdateWithoutOrganizationInput = {
|
|
649
656
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
650
|
-
|
|
657
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
651
658
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
652
659
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
653
660
|
caPem?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -657,9 +664,9 @@ export type EgressGrantUncheckedUpdateWithoutEndUserInput = {
|
|
|
657
664
|
revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
|
|
658
665
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
|
|
659
666
|
};
|
|
660
|
-
export type
|
|
667
|
+
export type EgressGrantUncheckedUpdateManyWithoutOrganizationInput = {
|
|
661
668
|
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
662
|
-
|
|
669
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
663
670
|
tokenHash?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
664
671
|
providerKeys?: Prisma.EgressGrantUpdateproviderKeysInput | string[];
|
|
665
672
|
caPem?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
@@ -672,7 +679,7 @@ export type EgressGrantUncheckedUpdateManyWithoutEndUserInput = {
|
|
|
672
679
|
export type EgressGrantSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
673
680
|
id?: boolean;
|
|
674
681
|
organizationId?: boolean;
|
|
675
|
-
|
|
682
|
+
userId?: boolean;
|
|
676
683
|
tokenHash?: boolean;
|
|
677
684
|
providerKeys?: boolean;
|
|
678
685
|
caPem?: boolean;
|
|
@@ -682,12 +689,12 @@ export type EgressGrantSelect<ExtArgs extends runtime.Types.Extensions.InternalA
|
|
|
682
689
|
revokedAt?: boolean;
|
|
683
690
|
createdAt?: boolean;
|
|
684
691
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
685
|
-
|
|
692
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
686
693
|
}, ExtArgs["result"]["egressGrant"]>;
|
|
687
694
|
export type EgressGrantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
688
695
|
id?: boolean;
|
|
689
696
|
organizationId?: boolean;
|
|
690
|
-
|
|
697
|
+
userId?: boolean;
|
|
691
698
|
tokenHash?: boolean;
|
|
692
699
|
providerKeys?: boolean;
|
|
693
700
|
caPem?: boolean;
|
|
@@ -697,12 +704,12 @@ export type EgressGrantSelectCreateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
697
704
|
revokedAt?: boolean;
|
|
698
705
|
createdAt?: boolean;
|
|
699
706
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
700
|
-
|
|
707
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
701
708
|
}, ExtArgs["result"]["egressGrant"]>;
|
|
702
709
|
export type EgressGrantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
703
710
|
id?: boolean;
|
|
704
711
|
organizationId?: boolean;
|
|
705
|
-
|
|
712
|
+
userId?: boolean;
|
|
706
713
|
tokenHash?: boolean;
|
|
707
714
|
providerKeys?: boolean;
|
|
708
715
|
caPem?: boolean;
|
|
@@ -712,12 +719,12 @@ export type EgressGrantSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.E
|
|
|
712
719
|
revokedAt?: boolean;
|
|
713
720
|
createdAt?: boolean;
|
|
714
721
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
715
|
-
|
|
722
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
716
723
|
}, ExtArgs["result"]["egressGrant"]>;
|
|
717
724
|
export type EgressGrantSelectScalar = {
|
|
718
725
|
id?: boolean;
|
|
719
726
|
organizationId?: boolean;
|
|
720
|
-
|
|
727
|
+
userId?: boolean;
|
|
721
728
|
tokenHash?: boolean;
|
|
722
729
|
providerKeys?: boolean;
|
|
723
730
|
caPem?: boolean;
|
|
@@ -727,42 +734,32 @@ export type EgressGrantSelectScalar = {
|
|
|
727
734
|
revokedAt?: boolean;
|
|
728
735
|
createdAt?: boolean;
|
|
729
736
|
};
|
|
730
|
-
export type EgressGrantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "
|
|
737
|
+
export type EgressGrantOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "organizationId" | "userId" | "tokenHash" | "providerKeys" | "caPem" | "caKey" | "label" | "expiresAt" | "revokedAt" | "createdAt", ExtArgs["result"]["egressGrant"]>;
|
|
731
738
|
export type EgressGrantInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
732
739
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
733
|
-
|
|
740
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
734
741
|
};
|
|
735
742
|
export type EgressGrantIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
736
743
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
737
|
-
|
|
744
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
738
745
|
};
|
|
739
746
|
export type EgressGrantIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
740
747
|
organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>;
|
|
741
|
-
|
|
748
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
|
|
742
749
|
};
|
|
743
750
|
export type $EgressGrantPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
744
751
|
name: "EgressGrant";
|
|
745
752
|
objects: {
|
|
746
753
|
organization: Prisma.$OrganizationPayload<ExtArgs>;
|
|
747
|
-
|
|
754
|
+
user: Prisma.$UserPayload<ExtArgs>;
|
|
748
755
|
};
|
|
749
756
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
750
757
|
id: string;
|
|
751
758
|
organizationId: string;
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* Unsalted SHA-256. The token is 32 random bytes, so there is nothing to
|
|
755
|
-
* brute-force and a salt would only stop the lookup being an index scan.
|
|
756
|
-
*/
|
|
759
|
+
userId: string;
|
|
757
760
|
tokenHash: string;
|
|
758
|
-
/**
|
|
759
|
-
* Which providers this grant may borrow. Empty means all the end user has.
|
|
760
|
-
*/
|
|
761
761
|
providerKeys: string[];
|
|
762
762
|
caPem: string;
|
|
763
|
-
/**
|
|
764
|
-
* AES-256-GCM ciphertext, like every other secret at rest here.
|
|
765
|
-
*/
|
|
766
763
|
caKey: string;
|
|
767
764
|
label: string | null;
|
|
768
765
|
expiresAt: Date;
|
|
@@ -1098,7 +1095,7 @@ export interface EgressGrantDelegate<ExtArgs extends runtime.Types.Extensions.In
|
|
|
1098
1095
|
export interface Prisma__EgressGrantClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1099
1096
|
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
1100
1097
|
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>;
|
|
1101
|
-
|
|
1098
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
|
|
1102
1099
|
/**
|
|
1103
1100
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1104
1101
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
@@ -1126,7 +1123,7 @@ export interface Prisma__EgressGrantClient<T, Null = never, ExtArgs extends runt
|
|
|
1126
1123
|
export interface EgressGrantFieldRefs {
|
|
1127
1124
|
readonly id: Prisma.FieldRef<"EgressGrant", 'String'>;
|
|
1128
1125
|
readonly organizationId: Prisma.FieldRef<"EgressGrant", 'String'>;
|
|
1129
|
-
readonly
|
|
1126
|
+
readonly userId: Prisma.FieldRef<"EgressGrant", 'String'>;
|
|
1130
1127
|
readonly tokenHash: Prisma.FieldRef<"EgressGrant", 'String'>;
|
|
1131
1128
|
readonly providerKeys: Prisma.FieldRef<"EgressGrant", 'String[]'>;
|
|
1132
1129
|
readonly caPem: Prisma.FieldRef<"EgressGrant", 'String'>;
|