@kosha-ai/server 0.0.6 → 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/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
|
@@ -33,14 +33,12 @@ 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
|
|
40
|
-
readonly Connection: "Connection";
|
|
41
|
-
readonly ConnectionCredential: "ConnectionCredential";
|
|
42
|
-
readonly ConnectSession: "ConnectSession";
|
|
43
|
-
readonly OAuthState: "OAuthState";
|
|
41
|
+
readonly EgressGrant: "EgressGrant";
|
|
44
42
|
};
|
|
45
43
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
46
44
|
export declare const TransactionIsolationLevel: {
|
|
@@ -58,6 +56,7 @@ export declare const UserScalarFieldEnum: {
|
|
|
58
56
|
readonly image: "image";
|
|
59
57
|
readonly createdAt: "createdAt";
|
|
60
58
|
readonly updatedAt: "updatedAt";
|
|
59
|
+
readonly externalId: "externalId";
|
|
61
60
|
};
|
|
62
61
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum];
|
|
63
62
|
export declare const SessionScalarFieldEnum: {
|
|
@@ -70,6 +69,7 @@ export declare const SessionScalarFieldEnum: {
|
|
|
70
69
|
readonly userAgent: "userAgent";
|
|
71
70
|
readonly userId: "userId";
|
|
72
71
|
readonly activeOrganizationId: "activeOrganizationId";
|
|
72
|
+
readonly activeTeamId: "activeTeamId";
|
|
73
73
|
};
|
|
74
74
|
export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum];
|
|
75
75
|
export declare const AccountScalarFieldEnum: {
|
|
@@ -86,6 +86,9 @@ export declare const AccountScalarFieldEnum: {
|
|
|
86
86
|
readonly password: "password";
|
|
87
87
|
readonly createdAt: "createdAt";
|
|
88
88
|
readonly updatedAt: "updatedAt";
|
|
89
|
+
readonly environmentId: "environmentId";
|
|
90
|
+
readonly organizationExternalId: "organizationExternalId";
|
|
91
|
+
readonly connectionConfig: "connectionConfig";
|
|
89
92
|
};
|
|
90
93
|
export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum];
|
|
91
94
|
export declare const VerificationScalarFieldEnum: {
|
|
@@ -123,8 +126,26 @@ export declare const InvitationScalarFieldEnum: {
|
|
|
123
126
|
readonly expiresAt: "expiresAt";
|
|
124
127
|
readonly createdAt: "createdAt";
|
|
125
128
|
readonly inviterId: "inviterId";
|
|
129
|
+
readonly teamId: "teamId";
|
|
126
130
|
};
|
|
127
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];
|
|
128
149
|
export declare const ApikeyScalarFieldEnum: {
|
|
129
150
|
readonly id: "id";
|
|
130
151
|
readonly configId: "configId";
|
|
@@ -150,105 +171,44 @@ export declare const ApikeyScalarFieldEnum: {
|
|
|
150
171
|
readonly metadata: "metadata";
|
|
151
172
|
};
|
|
152
173
|
export type ApikeyScalarFieldEnum = (typeof ApikeyScalarFieldEnum)[keyof typeof ApikeyScalarFieldEnum];
|
|
153
|
-
export declare const
|
|
174
|
+
export declare const EnvironmentScalarFieldEnum: {
|
|
154
175
|
readonly id: "id";
|
|
155
|
-
readonly
|
|
176
|
+
readonly organizationId: "organizationId";
|
|
156
177
|
readonly name: "name";
|
|
157
|
-
readonly
|
|
158
|
-
readonly
|
|
159
|
-
readonly tokenUrl: "tokenUrl";
|
|
160
|
-
readonly revokeUrl: "revokeUrl";
|
|
161
|
-
readonly apiBaseUrl: "apiBaseUrl";
|
|
162
|
-
readonly scopesAvailable: "scopesAvailable";
|
|
163
|
-
readonly docsUrl: "docsUrl";
|
|
164
|
-
readonly logoUrl: "logoUrl";
|
|
165
|
-
readonly isActive: "isActive";
|
|
178
|
+
readonly slug: "slug";
|
|
179
|
+
readonly teamId: "teamId";
|
|
166
180
|
readonly createdAt: "createdAt";
|
|
167
181
|
readonly updatedAt: "updatedAt";
|
|
168
182
|
};
|
|
169
|
-
export type
|
|
183
|
+
export type EnvironmentScalarFieldEnum = (typeof EnvironmentScalarFieldEnum)[keyof typeof EnvironmentScalarFieldEnum];
|
|
170
184
|
export declare const ConfigurationScalarFieldEnum: {
|
|
171
185
|
readonly id: "id";
|
|
172
|
-
readonly
|
|
173
|
-
readonly
|
|
186
|
+
readonly environmentId: "environmentId";
|
|
187
|
+
readonly integrationKey: "integrationKey";
|
|
188
|
+
readonly authType: "authType";
|
|
174
189
|
readonly name: "name";
|
|
175
190
|
readonly slug: "slug";
|
|
176
|
-
readonly
|
|
177
|
-
readonly
|
|
178
|
-
readonly clientId: "clientId";
|
|
179
|
-
readonly encryptedClientSecret: "encryptedClientSecret";
|
|
180
|
-
readonly redirectUri: "redirectUri";
|
|
181
|
-
readonly scopes: "scopes";
|
|
191
|
+
readonly credentials: "credentials";
|
|
192
|
+
readonly settings: "settings";
|
|
182
193
|
readonly isEnabled: "isEnabled";
|
|
183
|
-
readonly metadata: "metadata";
|
|
184
194
|
readonly createdAt: "createdAt";
|
|
185
195
|
readonly updatedAt: "updatedAt";
|
|
186
196
|
};
|
|
187
197
|
export type ConfigurationScalarFieldEnum = (typeof ConfigurationScalarFieldEnum)[keyof typeof ConfigurationScalarFieldEnum];
|
|
188
|
-
export declare const
|
|
198
|
+
export declare const EgressGrantScalarFieldEnum: {
|
|
189
199
|
readonly id: "id";
|
|
190
200
|
readonly organizationId: "organizationId";
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
readonly
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
readonly updatedAt: "updatedAt";
|
|
197
|
-
};
|
|
198
|
-
export type EndUserScalarFieldEnum = (typeof EndUserScalarFieldEnum)[keyof typeof EndUserScalarFieldEnum];
|
|
199
|
-
export declare const ConnectionScalarFieldEnum: {
|
|
200
|
-
readonly id: "id";
|
|
201
|
-
readonly organizationId: "organizationId";
|
|
202
|
-
readonly endUserId: "endUserId";
|
|
203
|
-
readonly configurationId: "configurationId";
|
|
201
|
+
readonly userId: "userId";
|
|
202
|
+
readonly tokenHash: "tokenHash";
|
|
203
|
+
readonly providerKeys: "providerKeys";
|
|
204
|
+
readonly caPem: "caPem";
|
|
205
|
+
readonly caKey: "caKey";
|
|
204
206
|
readonly label: "label";
|
|
205
|
-
readonly externalAccountId: "externalAccountId";
|
|
206
|
-
readonly status: "status";
|
|
207
|
-
readonly scopes: "scopes";
|
|
208
|
-
readonly lastSyncedAt: "lastSyncedAt";
|
|
209
|
-
readonly lastUsedAt: "lastUsedAt";
|
|
210
|
-
readonly errorMessage: "errorMessage";
|
|
211
|
-
readonly metadata: "metadata";
|
|
212
|
-
readonly createdAt: "createdAt";
|
|
213
|
-
readonly updatedAt: "updatedAt";
|
|
214
|
-
};
|
|
215
|
-
export type ConnectionScalarFieldEnum = (typeof ConnectionScalarFieldEnum)[keyof typeof ConnectionScalarFieldEnum];
|
|
216
|
-
export declare const ConnectionCredentialScalarFieldEnum: {
|
|
217
|
-
readonly id: "id";
|
|
218
|
-
readonly connectionId: "connectionId";
|
|
219
|
-
readonly accessToken: "accessToken";
|
|
220
|
-
readonly refreshToken: "refreshToken";
|
|
221
|
-
readonly idToken: "idToken";
|
|
222
|
-
readonly tokenType: "tokenType";
|
|
223
|
-
readonly expiresAt: "expiresAt";
|
|
224
|
-
readonly refreshTokenExpiresAt: "refreshTokenExpiresAt";
|
|
225
|
-
readonly createdAt: "createdAt";
|
|
226
|
-
readonly updatedAt: "updatedAt";
|
|
227
|
-
};
|
|
228
|
-
export type ConnectionCredentialScalarFieldEnum = (typeof ConnectionCredentialScalarFieldEnum)[keyof typeof ConnectionCredentialScalarFieldEnum];
|
|
229
|
-
export declare const ConnectSessionScalarFieldEnum: {
|
|
230
|
-
readonly id: "id";
|
|
231
|
-
readonly organizationId: "organizationId";
|
|
232
|
-
readonly endUserId: "endUserId";
|
|
233
|
-
readonly token: "token";
|
|
234
|
-
readonly allowedConfigurationIds: "allowedConfigurationIds";
|
|
235
|
-
readonly redirectUrl: "redirectUrl";
|
|
236
|
-
readonly status: "status";
|
|
237
|
-
readonly expiresAt: "expiresAt";
|
|
238
|
-
readonly createdAt: "createdAt";
|
|
239
|
-
};
|
|
240
|
-
export type ConnectSessionScalarFieldEnum = (typeof ConnectSessionScalarFieldEnum)[keyof typeof ConnectSessionScalarFieldEnum];
|
|
241
|
-
export declare const OAuthStateScalarFieldEnum: {
|
|
242
|
-
readonly id: "id";
|
|
243
|
-
readonly state: "state";
|
|
244
|
-
readonly connectSessionId: "connectSessionId";
|
|
245
|
-
readonly configurationId: "configurationId";
|
|
246
|
-
readonly codeVerifier: "codeVerifier";
|
|
247
|
-
readonly status: "status";
|
|
248
207
|
readonly expiresAt: "expiresAt";
|
|
208
|
+
readonly revokedAt: "revokedAt";
|
|
249
209
|
readonly createdAt: "createdAt";
|
|
250
210
|
};
|
|
251
|
-
export type
|
|
211
|
+
export type EgressGrantScalarFieldEnum = (typeof EgressGrantScalarFieldEnum)[keyof typeof EgressGrantScalarFieldEnum];
|
|
252
212
|
export declare const SortOrder: {
|
|
253
213
|
readonly asc: "asc";
|
|
254
214
|
readonly desc: "desc";
|
|
@@ -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,CAA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AO,0BAA0B,CAAC,CAAA;AAGrH,eAAO,MAAM,SAAS;;;CAGZ,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAA;AAGlE,eAAO,MAAM,UAAU;;;CAGb,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAA;AAGrE,eAAO,MAAM,mBAAmB;;;;CAItB,CAAA;AAEV,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -46,14 +46,12 @@ 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
|
-
|
|
53
|
-
Connection: 'Connection',
|
|
54
|
-
ConnectionCredential: 'ConnectionCredential',
|
|
55
|
-
ConnectSession: 'ConnectSession',
|
|
56
|
-
OAuthState: 'OAuthState'
|
|
54
|
+
EgressGrant: 'EgressGrant'
|
|
57
55
|
};
|
|
58
56
|
/*
|
|
59
57
|
* Enums
|
|
@@ -71,7 +69,8 @@ export const UserScalarFieldEnum = {
|
|
|
71
69
|
emailVerified: 'emailVerified',
|
|
72
70
|
image: 'image',
|
|
73
71
|
createdAt: 'createdAt',
|
|
74
|
-
updatedAt: 'updatedAt'
|
|
72
|
+
updatedAt: 'updatedAt',
|
|
73
|
+
externalId: 'externalId'
|
|
75
74
|
};
|
|
76
75
|
export const SessionScalarFieldEnum = {
|
|
77
76
|
id: 'id',
|
|
@@ -82,7 +81,8 @@ export const SessionScalarFieldEnum = {
|
|
|
82
81
|
ipAddress: 'ipAddress',
|
|
83
82
|
userAgent: 'userAgent',
|
|
84
83
|
userId: 'userId',
|
|
85
|
-
activeOrganizationId: 'activeOrganizationId'
|
|
84
|
+
activeOrganizationId: 'activeOrganizationId',
|
|
85
|
+
activeTeamId: 'activeTeamId'
|
|
86
86
|
};
|
|
87
87
|
export const AccountScalarFieldEnum = {
|
|
88
88
|
id: 'id',
|
|
@@ -97,7 +97,10 @@ export const AccountScalarFieldEnum = {
|
|
|
97
97
|
scope: 'scope',
|
|
98
98
|
password: 'password',
|
|
99
99
|
createdAt: 'createdAt',
|
|
100
|
-
updatedAt: 'updatedAt'
|
|
100
|
+
updatedAt: 'updatedAt',
|
|
101
|
+
environmentId: 'environmentId',
|
|
102
|
+
organizationExternalId: 'organizationExternalId',
|
|
103
|
+
connectionConfig: 'connectionConfig'
|
|
101
104
|
};
|
|
102
105
|
export const VerificationScalarFieldEnum = {
|
|
103
106
|
id: 'id',
|
|
@@ -130,7 +133,23 @@ export const InvitationScalarFieldEnum = {
|
|
|
130
133
|
status: 'status',
|
|
131
134
|
expiresAt: 'expiresAt',
|
|
132
135
|
createdAt: 'createdAt',
|
|
133
|
-
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'
|
|
134
153
|
};
|
|
135
154
|
export const ApikeyScalarFieldEnum = {
|
|
136
155
|
id: 'id',
|
|
@@ -156,96 +175,39 @@ export const ApikeyScalarFieldEnum = {
|
|
|
156
175
|
permissions: 'permissions',
|
|
157
176
|
metadata: 'metadata'
|
|
158
177
|
};
|
|
159
|
-
export const
|
|
178
|
+
export const EnvironmentScalarFieldEnum = {
|
|
160
179
|
id: 'id',
|
|
161
|
-
|
|
180
|
+
organizationId: 'organizationId',
|
|
162
181
|
name: 'name',
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
tokenUrl: 'tokenUrl',
|
|
166
|
-
revokeUrl: 'revokeUrl',
|
|
167
|
-
apiBaseUrl: 'apiBaseUrl',
|
|
168
|
-
scopesAvailable: 'scopesAvailable',
|
|
169
|
-
docsUrl: 'docsUrl',
|
|
170
|
-
logoUrl: 'logoUrl',
|
|
171
|
-
isActive: 'isActive',
|
|
182
|
+
slug: 'slug',
|
|
183
|
+
teamId: 'teamId',
|
|
172
184
|
createdAt: 'createdAt',
|
|
173
185
|
updatedAt: 'updatedAt'
|
|
174
186
|
};
|
|
175
187
|
export const ConfigurationScalarFieldEnum = {
|
|
176
188
|
id: 'id',
|
|
177
|
-
|
|
178
|
-
|
|
189
|
+
environmentId: 'environmentId',
|
|
190
|
+
integrationKey: 'integrationKey',
|
|
191
|
+
authType: 'authType',
|
|
179
192
|
name: 'name',
|
|
180
193
|
slug: 'slug',
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
clientId: 'clientId',
|
|
184
|
-
encryptedClientSecret: 'encryptedClientSecret',
|
|
185
|
-
redirectUri: 'redirectUri',
|
|
186
|
-
scopes: 'scopes',
|
|
194
|
+
credentials: 'credentials',
|
|
195
|
+
settings: 'settings',
|
|
187
196
|
isEnabled: 'isEnabled',
|
|
188
|
-
metadata: 'metadata',
|
|
189
197
|
createdAt: 'createdAt',
|
|
190
198
|
updatedAt: 'updatedAt'
|
|
191
199
|
};
|
|
192
|
-
export const
|
|
200
|
+
export const EgressGrantScalarFieldEnum = {
|
|
193
201
|
id: 'id',
|
|
194
202
|
organizationId: 'organizationId',
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
updatedAt: 'updatedAt'
|
|
201
|
-
};
|
|
202
|
-
export const ConnectionScalarFieldEnum = {
|
|
203
|
-
id: 'id',
|
|
204
|
-
organizationId: 'organizationId',
|
|
205
|
-
endUserId: 'endUserId',
|
|
206
|
-
configurationId: 'configurationId',
|
|
203
|
+
userId: 'userId',
|
|
204
|
+
tokenHash: 'tokenHash',
|
|
205
|
+
providerKeys: 'providerKeys',
|
|
206
|
+
caPem: 'caPem',
|
|
207
|
+
caKey: 'caKey',
|
|
207
208
|
label: 'label',
|
|
208
|
-
externalAccountId: 'externalAccountId',
|
|
209
|
-
status: 'status',
|
|
210
|
-
scopes: 'scopes',
|
|
211
|
-
lastSyncedAt: 'lastSyncedAt',
|
|
212
|
-
lastUsedAt: 'lastUsedAt',
|
|
213
|
-
errorMessage: 'errorMessage',
|
|
214
|
-
metadata: 'metadata',
|
|
215
|
-
createdAt: 'createdAt',
|
|
216
|
-
updatedAt: 'updatedAt'
|
|
217
|
-
};
|
|
218
|
-
export const ConnectionCredentialScalarFieldEnum = {
|
|
219
|
-
id: 'id',
|
|
220
|
-
connectionId: 'connectionId',
|
|
221
|
-
accessToken: 'accessToken',
|
|
222
|
-
refreshToken: 'refreshToken',
|
|
223
|
-
idToken: 'idToken',
|
|
224
|
-
tokenType: 'tokenType',
|
|
225
|
-
expiresAt: 'expiresAt',
|
|
226
|
-
refreshTokenExpiresAt: 'refreshTokenExpiresAt',
|
|
227
|
-
createdAt: 'createdAt',
|
|
228
|
-
updatedAt: 'updatedAt'
|
|
229
|
-
};
|
|
230
|
-
export const ConnectSessionScalarFieldEnum = {
|
|
231
|
-
id: 'id',
|
|
232
|
-
organizationId: 'organizationId',
|
|
233
|
-
endUserId: 'endUserId',
|
|
234
|
-
token: 'token',
|
|
235
|
-
allowedConfigurationIds: 'allowedConfigurationIds',
|
|
236
|
-
redirectUrl: 'redirectUrl',
|
|
237
|
-
status: 'status',
|
|
238
|
-
expiresAt: 'expiresAt',
|
|
239
|
-
createdAt: 'createdAt'
|
|
240
|
-
};
|
|
241
|
-
export const OAuthStateScalarFieldEnum = {
|
|
242
|
-
id: 'id',
|
|
243
|
-
state: 'state',
|
|
244
|
-
connectSessionId: 'connectSessionId',
|
|
245
|
-
configurationId: 'configurationId',
|
|
246
|
-
codeVerifier: 'codeVerifier',
|
|
247
|
-
status: 'status',
|
|
248
209
|
expiresAt: 'expiresAt',
|
|
210
|
+
revokedAt: 'revokedAt',
|
|
249
211
|
createdAt: 'createdAt'
|
|
250
212
|
};
|
|
251
213
|
export const SortOrder = {
|