@kosha-ai/server 0.1.0 → 0.2.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
|
@@ -33,14 +33,11 @@ export declare const ModelName: {
|
|
|
33
33
|
readonly Organization: "Organization";
|
|
34
34
|
readonly Member: "Member";
|
|
35
35
|
readonly Invitation: "Invitation";
|
|
36
|
+
readonly Team: "Team";
|
|
37
|
+
readonly TeamMember: "TeamMember";
|
|
36
38
|
readonly Apikey: "Apikey";
|
|
37
|
-
readonly
|
|
39
|
+
readonly Environment: "Environment";
|
|
38
40
|
readonly Configuration: "Configuration";
|
|
39
|
-
readonly EndUser: "EndUser";
|
|
40
|
-
readonly Connection: "Connection";
|
|
41
|
-
readonly ConnectionCredential: "ConnectionCredential";
|
|
42
|
-
readonly ConnectSession: "ConnectSession";
|
|
43
|
-
readonly OAuthState: "OAuthState";
|
|
44
41
|
readonly EgressGrant: "EgressGrant";
|
|
45
42
|
};
|
|
46
43
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
@@ -59,6 +56,7 @@ export declare const UserScalarFieldEnum: {
|
|
|
59
56
|
readonly image: "image";
|
|
60
57
|
readonly createdAt: "createdAt";
|
|
61
58
|
readonly updatedAt: "updatedAt";
|
|
59
|
+
readonly externalId: "externalId";
|
|
62
60
|
};
|
|
63
61
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
|
|
64
62
|
export declare const SessionScalarFieldEnum: {
|
|
@@ -71,6 +69,7 @@ export declare const SessionScalarFieldEnum: {
|
|
|
71
69
|
readonly userAgent: "userAgent";
|
|
72
70
|
readonly userId: "userId";
|
|
73
71
|
readonly activeOrganizationId: "activeOrganizationId";
|
|
72
|
+
readonly activeTeamId: "activeTeamId";
|
|
74
73
|
};
|
|
75
74
|
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum];
|
|
76
75
|
export declare const AccountScalarFieldEnum: {
|
|
@@ -87,6 +86,9 @@ export declare const AccountScalarFieldEnum: {
|
|
|
87
86
|
readonly password: "password";
|
|
88
87
|
readonly createdAt: "createdAt";
|
|
89
88
|
readonly updatedAt: "updatedAt";
|
|
89
|
+
readonly environmentId: "environmentId";
|
|
90
|
+
readonly organizationExternalId: "organizationExternalId";
|
|
91
|
+
readonly connectionConfig: "connectionConfig";
|
|
90
92
|
};
|
|
91
93
|
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum];
|
|
92
94
|
export declare const VerificationScalarFieldEnum: {
|
|
@@ -124,8 +126,26 @@ export declare const InvitationScalarFieldEnum: {
|
|
|
124
126
|
readonly expiresAt: "expiresAt";
|
|
125
127
|
readonly createdAt: "createdAt";
|
|
126
128
|
readonly inviterId: "inviterId";
|
|
129
|
+
readonly teamId: "teamId";
|
|
127
130
|
};
|
|
128
131
|
export type InvitationScalarFieldEnum = (typeof InvitationScalarFieldEnum)[keyof typeof InvitationScalarFieldEnum];
|
|
132
|
+
export declare const TeamScalarFieldEnum: {
|
|
133
|
+
readonly id: "id";
|
|
134
|
+
readonly name: "name";
|
|
135
|
+
readonly memberCount: "memberCount";
|
|
136
|
+
readonly organizationId: "organizationId";
|
|
137
|
+
readonly createdAt: "createdAt";
|
|
138
|
+
readonly updatedAt: "updatedAt";
|
|
139
|
+
};
|
|
140
|
+
export type TeamScalarFieldEnum = (typeof TeamScalarFieldEnum)[keyof typeof TeamScalarFieldEnum];
|
|
141
|
+
export declare const TeamMemberScalarFieldEnum: {
|
|
142
|
+
readonly id: "id";
|
|
143
|
+
readonly teamId: "teamId";
|
|
144
|
+
readonly userId: "userId";
|
|
145
|
+
readonly membershipKey: "membershipKey";
|
|
146
|
+
readonly createdAt: "createdAt";
|
|
147
|
+
};
|
|
148
|
+
export type TeamMemberScalarFieldEnum = (typeof TeamMemberScalarFieldEnum)[keyof typeof TeamMemberScalarFieldEnum];
|
|
129
149
|
export declare const ApikeyScalarFieldEnum: {
|
|
130
150
|
readonly id: "id";
|
|
131
151
|
readonly configId: "configId";
|
|
@@ -151,109 +171,34 @@ export declare const ApikeyScalarFieldEnum: {
|
|
|
151
171
|
readonly metadata: "metadata";
|
|
152
172
|
};
|
|
153
173
|
export type ApikeyScalarFieldEnum = (typeof ApikeyScalarFieldEnum)[keyof typeof ApikeyScalarFieldEnum];
|
|
154
|
-
export declare const
|
|
174
|
+
export declare const EnvironmentScalarFieldEnum: {
|
|
155
175
|
readonly id: "id";
|
|
156
|
-
readonly
|
|
176
|
+
readonly organizationId: "organizationId";
|
|
157
177
|
readonly name: "name";
|
|
158
|
-
readonly
|
|
159
|
-
readonly
|
|
160
|
-
readonly tokenUrl: "tokenUrl";
|
|
161
|
-
readonly revokeUrl: "revokeUrl";
|
|
162
|
-
readonly apiBaseUrl: "apiBaseUrl";
|
|
163
|
-
readonly scopesAvailable: "scopesAvailable";
|
|
164
|
-
readonly docsUrl: "docsUrl";
|
|
165
|
-
readonly logoUrl: "logoUrl";
|
|
166
|
-
readonly isActive: "isActive";
|
|
178
|
+
readonly slug: "slug";
|
|
179
|
+
readonly teamId: "teamId";
|
|
167
180
|
readonly createdAt: "createdAt";
|
|
168
181
|
readonly updatedAt: "updatedAt";
|
|
169
182
|
};
|
|
170
|
-
export type
|
|
183
|
+
export type EnvironmentScalarFieldEnum = (typeof EnvironmentScalarFieldEnum)[keyof typeof EnvironmentScalarFieldEnum];
|
|
171
184
|
export declare const ConfigurationScalarFieldEnum: {
|
|
172
185
|
readonly id: "id";
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
186
|
+
readonly environmentId: "environmentId";
|
|
187
|
+
readonly integrationKey: "integrationKey";
|
|
188
|
+
readonly authType: "authType";
|
|
175
189
|
readonly name: "name";
|
|
176
190
|
readonly slug: "slug";
|
|
177
|
-
readonly
|
|
178
|
-
readonly
|
|
179
|
-
readonly clientId: "clientId";
|
|
180
|
-
readonly encryptedClientSecret: "encryptedClientSecret";
|
|
181
|
-
readonly redirectUri: "redirectUri";
|
|
182
|
-
readonly scopes: "scopes";
|
|
191
|
+
readonly credentials: "credentials";
|
|
192
|
+
readonly settings: "settings";
|
|
183
193
|
readonly isEnabled: "isEnabled";
|
|
184
|
-
readonly metadata: "metadata";
|
|
185
194
|
readonly createdAt: "createdAt";
|
|
186
195
|
readonly updatedAt: "updatedAt";
|
|
187
196
|
};
|
|
188
197
|
export type ConfigurationScalarFieldEnum = (typeof ConfigurationScalarFieldEnum)[keyof typeof ConfigurationScalarFieldEnum];
|
|
189
|
-
export declare const EndUserScalarFieldEnum: {
|
|
190
|
-
readonly id: "id";
|
|
191
|
-
readonly organizationId: "organizationId";
|
|
192
|
-
readonly externalId: "externalId";
|
|
193
|
-
readonly email: "email";
|
|
194
|
-
readonly name: "name";
|
|
195
|
-
readonly metadata: "metadata";
|
|
196
|
-
readonly createdAt: "createdAt";
|
|
197
|
-
readonly updatedAt: "updatedAt";
|
|
198
|
-
};
|
|
199
|
-
export type EndUserScalarFieldEnum = (typeof EndUserScalarFieldEnum)[keyof typeof EndUserScalarFieldEnum];
|
|
200
|
-
export declare const ConnectionScalarFieldEnum: {
|
|
201
|
-
readonly id: "id";
|
|
202
|
-
readonly organizationId: "organizationId";
|
|
203
|
-
readonly endUserId: "endUserId";
|
|
204
|
-
readonly configurationId: "configurationId";
|
|
205
|
-
readonly label: "label";
|
|
206
|
-
readonly externalAccountId: "externalAccountId";
|
|
207
|
-
readonly status: "status";
|
|
208
|
-
readonly scopes: "scopes";
|
|
209
|
-
readonly lastSyncedAt: "lastSyncedAt";
|
|
210
|
-
readonly lastUsedAt: "lastUsedAt";
|
|
211
|
-
readonly errorMessage: "errorMessage";
|
|
212
|
-
readonly metadata: "metadata";
|
|
213
|
-
readonly createdAt: "createdAt";
|
|
214
|
-
readonly updatedAt: "updatedAt";
|
|
215
|
-
};
|
|
216
|
-
export type ConnectionScalarFieldEnum = (typeof ConnectionScalarFieldEnum)[keyof typeof ConnectionScalarFieldEnum];
|
|
217
|
-
export declare const ConnectionCredentialScalarFieldEnum: {
|
|
218
|
-
readonly id: "id";
|
|
219
|
-
readonly connectionId: "connectionId";
|
|
220
|
-
readonly accessToken: "accessToken";
|
|
221
|
-
readonly refreshToken: "refreshToken";
|
|
222
|
-
readonly idToken: "idToken";
|
|
223
|
-
readonly tokenType: "tokenType";
|
|
224
|
-
readonly expiresAt: "expiresAt";
|
|
225
|
-
readonly refreshTokenExpiresAt: "refreshTokenExpiresAt";
|
|
226
|
-
readonly createdAt: "createdAt";
|
|
227
|
-
readonly updatedAt: "updatedAt";
|
|
228
|
-
};
|
|
229
|
-
export type ConnectionCredentialScalarFieldEnum = (typeof ConnectionCredentialScalarFieldEnum)[keyof typeof ConnectionCredentialScalarFieldEnum];
|
|
230
|
-
export declare const ConnectSessionScalarFieldEnum: {
|
|
231
|
-
readonly id: "id";
|
|
232
|
-
readonly organizationId: "organizationId";
|
|
233
|
-
readonly endUserId: "endUserId";
|
|
234
|
-
readonly token: "token";
|
|
235
|
-
readonly allowedConfigurationIds: "allowedConfigurationIds";
|
|
236
|
-
readonly redirectUrl: "redirectUrl";
|
|
237
|
-
readonly status: "status";
|
|
238
|
-
readonly expiresAt: "expiresAt";
|
|
239
|
-
readonly createdAt: "createdAt";
|
|
240
|
-
};
|
|
241
|
-
export type ConnectSessionScalarFieldEnum = (typeof ConnectSessionScalarFieldEnum)[keyof typeof ConnectSessionScalarFieldEnum];
|
|
242
|
-
export declare const OAuthStateScalarFieldEnum: {
|
|
243
|
-
readonly id: "id";
|
|
244
|
-
readonly state: "state";
|
|
245
|
-
readonly connectSessionId: "connectSessionId";
|
|
246
|
-
readonly configurationId: "configurationId";
|
|
247
|
-
readonly codeVerifier: "codeVerifier";
|
|
248
|
-
readonly status: "status";
|
|
249
|
-
readonly expiresAt: "expiresAt";
|
|
250
|
-
readonly createdAt: "createdAt";
|
|
251
|
-
};
|
|
252
|
-
export type OAuthStateScalarFieldEnum = (typeof OAuthStateScalarFieldEnum)[keyof typeof OAuthStateScalarFieldEnum];
|
|
253
198
|
export declare const EgressGrantScalarFieldEnum: {
|
|
254
199
|
readonly id: "id";
|
|
255
200
|
readonly organizationId: "organizationId";
|
|
256
|
-
readonly
|
|
201
|
+
readonly userId: "userId";
|
|
257
202
|
readonly tokenHash: "tokenHash";
|
|
258
203
|
readonly providerKeys: "providerKeys";
|
|
259
204
|
readonly caPem: "caPem";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prismaNamespaceBrowser.d.ts","sourceRoot":"","sources":["../../../../src/generated/prisma/internal/prismaNamespaceBrowser.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,OAAO,MAAM,sCAAsC,CAAA;AAE/D,mBAAmB,cAAc,CAAA;AACjC,mBAAmB,sBAAsB,CAAA;AAEzC,eAAO,MAAM,OAAO,wBAAkB,CAAA;AAGtC,eAAO,MAAM,SAAS;YACgB,CAAC,KAAK,MAAM,EAAE,KAAK,KAAK,OAAO,OAAO,CAAC,MAAM,CAAC;cAC1C,CAAC,KAAK,MAAM,EAAE,KAAK,KAAK,OAAO,OAAO,CAAC,QAAQ,CAAC;aAClD,CAAC,KAAK,MAAM,EAAE,KAAK,KAAK,OAAO,OAAO,CAAC,OAAO,CAAC;CACtF,CAAA;AACD;;;;GAIG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AAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -46,14 +46,11 @@ export const ModelName = {
|
|
|
46
46
|
Organization: 'Organization',
|
|
47
47
|
Member: 'Member',
|
|
48
48
|
Invitation: 'Invitation',
|
|
49
|
+
Team: 'Team',
|
|
50
|
+
TeamMember: 'TeamMember',
|
|
49
51
|
Apikey: 'Apikey',
|
|
50
|
-
|
|
52
|
+
Environment: 'Environment',
|
|
51
53
|
Configuration: 'Configuration',
|
|
52
|
-
EndUser: 'EndUser',
|
|
53
|
-
Connection: 'Connection',
|
|
54
|
-
ConnectionCredential: 'ConnectionCredential',
|
|
55
|
-
ConnectSession: 'ConnectSession',
|
|
56
|
-
OAuthState: 'OAuthState',
|
|
57
54
|
EgressGrant: 'EgressGrant'
|
|
58
55
|
};
|
|
59
56
|
/*
|
|
@@ -72,7 +69,8 @@ export const UserScalarFieldEnum = {
|
|
|
72
69
|
emailVerified: 'emailVerified',
|
|
73
70
|
image: 'image',
|
|
74
71
|
createdAt: 'createdAt',
|
|
75
|
-
updatedAt: 'updatedAt'
|
|
72
|
+
updatedAt: 'updatedAt',
|
|
73
|
+
externalId: 'externalId'
|
|
76
74
|
};
|
|
77
75
|
export const SessionScalarFieldEnum = {
|
|
78
76
|
id: 'id',
|
|
@@ -83,7 +81,8 @@ export const SessionScalarFieldEnum = {
|
|
|
83
81
|
ipAddress: 'ipAddress',
|
|
84
82
|
userAgent: 'userAgent',
|
|
85
83
|
userId: 'userId',
|
|
86
|
-
activeOrganizationId: 'activeOrganizationId'
|
|
84
|
+
activeOrganizationId: 'activeOrganizationId',
|
|
85
|
+
activeTeamId: 'activeTeamId'
|
|
87
86
|
};
|
|
88
87
|
export const AccountScalarFieldEnum = {
|
|
89
88
|
id: 'id',
|
|
@@ -98,7 +97,10 @@ export const AccountScalarFieldEnum = {
|
|
|
98
97
|
scope: 'scope',
|
|
99
98
|
password: 'password',
|
|
100
99
|
createdAt: 'createdAt',
|
|
101
|
-
updatedAt: 'updatedAt'
|
|
100
|
+
updatedAt: 'updatedAt',
|
|
101
|
+
environmentId: 'environmentId',
|
|
102
|
+
organizationExternalId: 'organizationExternalId',
|
|
103
|
+
connectionConfig: 'connectionConfig'
|
|
102
104
|
};
|
|
103
105
|
export const VerificationScalarFieldEnum = {
|
|
104
106
|
id: 'id',
|
|
@@ -131,7 +133,23 @@ export const InvitationScalarFieldEnum = {
|
|
|
131
133
|
status: 'status',
|
|
132
134
|
expiresAt: 'expiresAt',
|
|
133
135
|
createdAt: 'createdAt',
|
|
134
|
-
inviterId: 'inviterId'
|
|
136
|
+
inviterId: 'inviterId',
|
|
137
|
+
teamId: 'teamId'
|
|
138
|
+
};
|
|
139
|
+
export const TeamScalarFieldEnum = {
|
|
140
|
+
id: 'id',
|
|
141
|
+
name: 'name',
|
|
142
|
+
memberCount: 'memberCount',
|
|
143
|
+
organizationId: 'organizationId',
|
|
144
|
+
createdAt: 'createdAt',
|
|
145
|
+
updatedAt: 'updatedAt'
|
|
146
|
+
};
|
|
147
|
+
export const TeamMemberScalarFieldEnum = {
|
|
148
|
+
id: 'id',
|
|
149
|
+
teamId: 'teamId',
|
|
150
|
+
userId: 'userId',
|
|
151
|
+
membershipKey: 'membershipKey',
|
|
152
|
+
createdAt: 'createdAt'
|
|
135
153
|
};
|
|
136
154
|
export const ApikeyScalarFieldEnum = {
|
|
137
155
|
id: 'id',
|
|
@@ -157,102 +175,32 @@ export const ApikeyScalarFieldEnum = {
|
|
|
157
175
|
permissions: 'permissions',
|
|
158
176
|
metadata: 'metadata'
|
|
159
177
|
};
|
|
160
|
-
export const
|
|
178
|
+
export const EnvironmentScalarFieldEnum = {
|
|
161
179
|
id: 'id',
|
|
162
|
-
|
|
180
|
+
organizationId: 'organizationId',
|
|
163
181
|
name: 'name',
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
tokenUrl: 'tokenUrl',
|
|
167
|
-
revokeUrl: 'revokeUrl',
|
|
168
|
-
apiBaseUrl: 'apiBaseUrl',
|
|
169
|
-
scopesAvailable: 'scopesAvailable',
|
|
170
|
-
docsUrl: 'docsUrl',
|
|
171
|
-
logoUrl: 'logoUrl',
|
|
172
|
-
isActive: 'isActive',
|
|
182
|
+
slug: 'slug',
|
|
183
|
+
teamId: 'teamId',
|
|
173
184
|
createdAt: 'createdAt',
|
|
174
185
|
updatedAt: 'updatedAt'
|
|
175
186
|
};
|
|
176
187
|
export const ConfigurationScalarFieldEnum = {
|
|
177
188
|
id: 'id',
|
|
178
|
-
|
|
179
|
-
|
|
189
|
+
environmentId: 'environmentId',
|
|
190
|
+
integrationKey: 'integrationKey',
|
|
191
|
+
authType: 'authType',
|
|
180
192
|
name: 'name',
|
|
181
193
|
slug: 'slug',
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
clientId: 'clientId',
|
|
185
|
-
encryptedClientSecret: 'encryptedClientSecret',
|
|
186
|
-
redirectUri: 'redirectUri',
|
|
187
|
-
scopes: 'scopes',
|
|
194
|
+
credentials: 'credentials',
|
|
195
|
+
settings: 'settings',
|
|
188
196
|
isEnabled: 'isEnabled',
|
|
189
|
-
metadata: 'metadata',
|
|
190
|
-
createdAt: 'createdAt',
|
|
191
|
-
updatedAt: 'updatedAt'
|
|
192
|
-
};
|
|
193
|
-
export const EndUserScalarFieldEnum = {
|
|
194
|
-
id: 'id',
|
|
195
|
-
organizationId: 'organizationId',
|
|
196
|
-
externalId: 'externalId',
|
|
197
|
-
email: 'email',
|
|
198
|
-
name: 'name',
|
|
199
|
-
metadata: 'metadata',
|
|
200
197
|
createdAt: 'createdAt',
|
|
201
198
|
updatedAt: 'updatedAt'
|
|
202
199
|
};
|
|
203
|
-
export const ConnectionScalarFieldEnum = {
|
|
204
|
-
id: 'id',
|
|
205
|
-
organizationId: 'organizationId',
|
|
206
|
-
endUserId: 'endUserId',
|
|
207
|
-
configurationId: 'configurationId',
|
|
208
|
-
label: 'label',
|
|
209
|
-
externalAccountId: 'externalAccountId',
|
|
210
|
-
status: 'status',
|
|
211
|
-
scopes: 'scopes',
|
|
212
|
-
lastSyncedAt: 'lastSyncedAt',
|
|
213
|
-
lastUsedAt: 'lastUsedAt',
|
|
214
|
-
errorMessage: 'errorMessage',
|
|
215
|
-
metadata: 'metadata',
|
|
216
|
-
createdAt: 'createdAt',
|
|
217
|
-
updatedAt: 'updatedAt'
|
|
218
|
-
};
|
|
219
|
-
export const ConnectionCredentialScalarFieldEnum = {
|
|
220
|
-
id: 'id',
|
|
221
|
-
connectionId: 'connectionId',
|
|
222
|
-
accessToken: 'accessToken',
|
|
223
|
-
refreshToken: 'refreshToken',
|
|
224
|
-
idToken: 'idToken',
|
|
225
|
-
tokenType: 'tokenType',
|
|
226
|
-
expiresAt: 'expiresAt',
|
|
227
|
-
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
|
|
228
|
-
createdAt: 'createdAt',
|
|
229
|
-
updatedAt: 'updatedAt'
|
|
230
|
-
};
|
|
231
|
-
export const ConnectSessionScalarFieldEnum = {
|
|
232
|
-
id: 'id',
|
|
233
|
-
organizationId: 'organizationId',
|
|
234
|
-
endUserId: 'endUserId',
|
|
235
|
-
token: 'token',
|
|
236
|
-
allowedConfigurationIds: 'allowedConfigurationIds',
|
|
237
|
-
redirectUrl: 'redirectUrl',
|
|
238
|
-
status: 'status',
|
|
239
|
-
expiresAt: 'expiresAt',
|
|
240
|
-
createdAt: 'createdAt'
|
|
241
|
-
};
|
|
242
|
-
export const OAuthStateScalarFieldEnum = {
|
|
243
|
-
id: 'id',
|
|
244
|
-
state: 'state',
|
|
245
|
-
connectSessionId: 'connectSessionId',
|
|
246
|
-
configurationId: 'configurationId',
|
|
247
|
-
codeVerifier: 'codeVerifier',
|
|
248
|
-
status: 'status',
|
|
249
|
-
expiresAt: 'expiresAt',
|
|
250
|
-
createdAt: 'createdAt'
|
|
251
|
-
};
|
|
252
200
|
export const EgressGrantScalarFieldEnum = {
|
|
253
201
|
id: 'id',
|
|
254
202
|
organizationId: 'organizationId',
|
|
255
|
-
|
|
203
|
+
userId: 'userId',
|
|
256
204
|
tokenHash: 'tokenHash',
|
|
257
205
|
providerKeys: 'providerKeys',
|
|
258
206
|
caPem: 'caPem',
|