@kosha-ai/server 0.0.1
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/LICENSE +21 -0
- package/dist/auth/api-key.guard.d.ts +18 -0
- package/dist/auth/api-key.guard.d.ts.map +1 -0
- package/dist/auth/api-key.guard.js +33 -0
- package/dist/auth/auth.factory.d.ts +35 -0
- package/dist/auth/auth.factory.d.ts.map +1 -0
- package/dist/auth/auth.factory.js +29 -0
- package/dist/bootstrap.d.ts +13 -0
- package/dist/bootstrap.d.ts.map +1 -0
- package/dist/bootstrap.js +33 -0
- package/dist/common/active-organization.d.ts +3 -0
- package/dist/common/active-organization.d.ts.map +1 -0
- package/dist/common/active-organization.js +8 -0
- package/dist/config/kosha-config.d.ts +80 -0
- package/dist/config/kosha-config.d.ts.map +1 -0
- package/dist/config/kosha-config.js +69 -0
- package/dist/config/tokens.d.ts +4 -0
- package/dist/config/tokens.d.ts.map +1 -0
- package/dist/config/tokens.js +3 -0
- package/dist/configurations/configurations.controller.d.ts +143 -0
- package/dist/configurations/configurations.controller.d.ts.map +1 -0
- package/dist/configurations/configurations.controller.js +76 -0
- package/dist/configurations/configurations.module.d.ts +3 -0
- package/dist/configurations/configurations.module.d.ts.map +1 -0
- package/dist/configurations/configurations.module.js +14 -0
- package/dist/configurations/configurations.service.d.ts +210 -0
- package/dist/configurations/configurations.service.d.ts.map +1 -0
- package/dist/configurations/configurations.service.js +204 -0
- package/dist/connect/connect.controller.d.ts +33 -0
- package/dist/connect/connect.controller.d.ts.map +1 -0
- package/dist/connect/connect.controller.js +123 -0
- package/dist/connect/connect.module.d.ts +3 -0
- package/dist/connect/connect.module.d.ts.map +1 -0
- package/dist/connect/connect.module.js +16 -0
- package/dist/connect/connect.service.d.ts +54 -0
- package/dist/connect/connect.service.d.ts.map +1 -0
- package/dist/connect/connect.service.js +248 -0
- package/dist/connections/connections.controller.d.ts +71 -0
- package/dist/connections/connections.controller.d.ts.map +1 -0
- package/dist/connections/connections.controller.js +51 -0
- package/dist/connections/connections.module.d.ts +3 -0
- package/dist/connections/connections.module.d.ts.map +1 -0
- package/dist/connections/connections.module.js +14 -0
- package/dist/connections/connections.service.d.ts +76 -0
- package/dist/connections/connections.service.d.ts.map +1 -0
- package/dist/connections/connections.service.js +71 -0
- package/dist/crypto/crypto.module.d.ts +3 -0
- package/dist/crypto/crypto.module.d.ts.map +1 -0
- package/dist/crypto/crypto.module.js +13 -0
- package/dist/crypto/crypto.service.d.ts +21 -0
- package/dist/crypto/crypto.service.d.ts.map +1 -0
- package/dist/crypto/crypto.service.js +77 -0
- package/dist/generated/prisma/browser.d.ts +88 -0
- package/dist/generated/prisma/browser.d.ts.map +1 -0
- package/dist/generated/prisma/browser.js +17 -0
- package/dist/generated/prisma/client.d.ts +107 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +34 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +478 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +10 -0
- package/dist/generated/prisma/enums.d.ts +22 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +27 -0
- package/dist/generated/prisma/internal/class.d.ts +287 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +49 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +1905 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +299 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +277 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +270 -0
- package/dist/generated/prisma/models/Account.d.ts +1459 -0
- package/dist/generated/prisma/models/Account.d.ts.map +1 -0
- package/dist/generated/prisma/models/Account.js +1 -0
- package/dist/generated/prisma/models/Apikey.d.ts +1552 -0
- package/dist/generated/prisma/models/Apikey.d.ts.map +1 -0
- package/dist/generated/prisma/models/Apikey.js +1 -0
- package/dist/generated/prisma/models/Configuration.d.ts +1964 -0
- package/dist/generated/prisma/models/Configuration.d.ts.map +1 -0
- package/dist/generated/prisma/models/Configuration.js +1 -0
- package/dist/generated/prisma/models/ConnectSession.d.ts +1606 -0
- package/dist/generated/prisma/models/ConnectSession.d.ts.map +1 -0
- package/dist/generated/prisma/models/ConnectSession.js +1 -0
- package/dist/generated/prisma/models/Connection.d.ts +1949 -0
- package/dist/generated/prisma/models/Connection.d.ts.map +1 -0
- package/dist/generated/prisma/models/Connection.js +1 -0
- package/dist/generated/prisma/models/ConnectionCredential.d.ts +1293 -0
- package/dist/generated/prisma/models/ConnectionCredential.d.ts.map +1 -0
- package/dist/generated/prisma/models/ConnectionCredential.js +1 -0
- package/dist/generated/prisma/models/EndUser.d.ts +1539 -0
- package/dist/generated/prisma/models/EndUser.d.ts.map +1 -0
- package/dist/generated/prisma/models/EndUser.js +1 -0
- package/dist/generated/prisma/models/Invitation.d.ts +1404 -0
- package/dist/generated/prisma/models/Invitation.d.ts.map +1 -0
- package/dist/generated/prisma/models/Invitation.js +1 -0
- package/dist/generated/prisma/models/Member.d.ts +1281 -0
- package/dist/generated/prisma/models/Member.d.ts.map +1 -0
- package/dist/generated/prisma/models/Member.js +1 -0
- package/dist/generated/prisma/models/OAuthState.d.ts +1404 -0
- package/dist/generated/prisma/models/OAuthState.d.ts.map +1 -0
- package/dist/generated/prisma/models/OAuthState.js +1 -0
- package/dist/generated/prisma/models/Organization.d.ts +1807 -0
- package/dist/generated/prisma/models/Organization.d.ts.map +1 -0
- package/dist/generated/prisma/models/Organization.js +1 -0
- package/dist/generated/prisma/models/Provider.d.ts +1462 -0
- package/dist/generated/prisma/models/Provider.d.ts.map +1 -0
- package/dist/generated/prisma/models/Provider.js +1 -0
- package/dist/generated/prisma/models/Session.d.ts +1316 -0
- package/dist/generated/prisma/models/Session.d.ts.map +1 -0
- package/dist/generated/prisma/models/Session.js +1 -0
- package/dist/generated/prisma/models/User.d.ts +1593 -0
- package/dist/generated/prisma/models/User.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.js +1 -0
- package/dist/generated/prisma/models/Verification.d.ts +1026 -0
- package/dist/generated/prisma/models/Verification.d.ts.map +1 -0
- package/dist/generated/prisma/models/Verification.js +1 -0
- package/dist/generated/prisma/models.d.ts +17 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +1 -0
- package/dist/health/health.controller.d.ts +12 -0
- package/dist/health/health.controller.d.ts.map +1 -0
- package/dist/health/health.controller.js +36 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/integrations/integration.registry.d.ts +19 -0
- package/dist/integrations/integration.registry.d.ts.map +1 -0
- package/dist/integrations/integration.registry.js +45 -0
- package/dist/integrations/integrations.controller.d.ts +26 -0
- package/dist/integrations/integrations.controller.d.ts.map +1 -0
- package/dist/integrations/integrations.controller.js +47 -0
- package/dist/integrations/integrations.module.d.ts +6 -0
- package/dist/integrations/integrations.module.d.ts.map +1 -0
- package/dist/integrations/integrations.module.js +26 -0
- package/dist/integrations/provider-sync.service.d.ts +24 -0
- package/dist/integrations/provider-sync.service.d.ts.map +1 -0
- package/dist/integrations/provider-sync.service.js +74 -0
- package/dist/kosha.module.d.ts +11 -0
- package/dist/kosha.module.d.ts.map +1 -0
- package/dist/kosha.module.js +48 -0
- package/dist/prisma/prisma.module.d.ts +11 -0
- package/dist/prisma/prisma.module.d.ts.map +1 -0
- package/dist/prisma/prisma.module.js +24 -0
- package/dist/prisma/prisma.service.d.ts +10 -0
- package/dist/prisma/prisma.service.d.ts.map +1 -0
- package/dist/prisma/prisma.service.js +25 -0
- package/dist/proxy/proxy.controller.d.ts +17 -0
- package/dist/proxy/proxy.controller.d.ts.map +1 -0
- package/dist/proxy/proxy.controller.js +64 -0
- package/dist/proxy/proxy.module.d.ts +3 -0
- package/dist/proxy/proxy.module.d.ts.map +1 -0
- package/dist/proxy/proxy.module.js +16 -0
- package/dist/proxy/proxy.service.d.ts +40 -0
- package/dist/proxy/proxy.service.d.ts.map +1 -0
- package/dist/proxy/proxy.service.js +186 -0
- package/package.json +118 -0
- package/prisma/migrations/20260908000000_init/migration.sql +209 -0
- package/prisma/migrations/20260908161813_add_connect_domain/migration.sql +173 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +347 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import * as Prisma from './internal/prismaNamespaceBrowser.js';
|
|
2
|
+
export { Prisma };
|
|
3
|
+
export * as $Enums from './enums.js';
|
|
4
|
+
export * from './enums.js';
|
|
5
|
+
/**
|
|
6
|
+
* Model User
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export type User = Prisma.UserModel;
|
|
10
|
+
/**
|
|
11
|
+
* Model Session
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
export type Session = Prisma.SessionModel;
|
|
15
|
+
/**
|
|
16
|
+
* Model Account
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type Account = Prisma.AccountModel;
|
|
20
|
+
/**
|
|
21
|
+
* Model Verification
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export type Verification = Prisma.VerificationModel;
|
|
25
|
+
/**
|
|
26
|
+
* Model Organization
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export type Organization = Prisma.OrganizationModel;
|
|
30
|
+
/**
|
|
31
|
+
* Model Member
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export type Member = Prisma.MemberModel;
|
|
35
|
+
/**
|
|
36
|
+
* Model Invitation
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
export type Invitation = Prisma.InvitationModel;
|
|
40
|
+
/**
|
|
41
|
+
* Model Apikey
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export type Apikey = Prisma.ApikeyModel;
|
|
45
|
+
/**
|
|
46
|
+
* Model Provider
|
|
47
|
+
* Catalogue of providers Kosha can talk to. Derived state: every row is
|
|
48
|
+
* upserted at boot from the installed integration packages, and rows whose
|
|
49
|
+
* package is gone are deactivated rather than deleted.
|
|
50
|
+
*/
|
|
51
|
+
export type Provider = Prisma.ProviderModel;
|
|
52
|
+
/**
|
|
53
|
+
* Model Configuration
|
|
54
|
+
* One organization's setup of one provider: which OAuth app, which scopes,
|
|
55
|
+
* which environment. `metadata` holds the integration's own `configFields`.
|
|
56
|
+
*/
|
|
57
|
+
export type Configuration = Prisma.ConfigurationModel;
|
|
58
|
+
/**
|
|
59
|
+
* Model EndUser
|
|
60
|
+
* The organization's own users, identified by the organization's id for them
|
|
61
|
+
* — never by a Kosha auth user.
|
|
62
|
+
*/
|
|
63
|
+
export type EndUser = Prisma.EndUserModel;
|
|
64
|
+
/**
|
|
65
|
+
* Model Connection
|
|
66
|
+
* The authorized link between an EndUser and a Configuration. An end user may
|
|
67
|
+
* hold several connections against the same configuration (two GitHub
|
|
68
|
+
* accounts), so uniqueness is per provider account, not per end user.
|
|
69
|
+
*/
|
|
70
|
+
export type Connection = Prisma.ConnectionModel;
|
|
71
|
+
/**
|
|
72
|
+
* Model ConnectionCredential
|
|
73
|
+
* Tokens, split out from Connection so they have their own access path.
|
|
74
|
+
* Every token column is AES-256-GCM ciphertext.
|
|
75
|
+
*/
|
|
76
|
+
export type ConnectionCredential = Prisma.ConnectionCredentialModel;
|
|
77
|
+
/**
|
|
78
|
+
* Model ConnectSession
|
|
79
|
+
* Short-lived token handed to the organization's frontend to drive one
|
|
80
|
+
* connect flow.
|
|
81
|
+
*/
|
|
82
|
+
export type ConnectSession = Prisma.ConnectSessionModel;
|
|
83
|
+
/**
|
|
84
|
+
* Model OAuthState
|
|
85
|
+
* CSRF state and PKCE verifier for one OAuth redirect attempt.
|
|
86
|
+
*/
|
|
87
|
+
export type OAuthState = Prisma.OAuthStateModel;
|
|
88
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,sCAAsC,CAAA;AAC9D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAC;AAC3B;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAA;AAC3C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,yBAAyB,CAAA;AACnE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAA;AACvD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// biome-ignore-all lint: generated file
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
|
7
|
+
* Use it to get access to models, enums, and input types.
|
|
8
|
+
*
|
|
9
|
+
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
|
10
|
+
* See `client.ts` for the standard, server-side entry point.
|
|
11
|
+
*
|
|
12
|
+
* 🟢 You can import this file directly.
|
|
13
|
+
*/
|
|
14
|
+
import * as Prisma from './internal/prismaNamespaceBrowser.js';
|
|
15
|
+
export { Prisma };
|
|
16
|
+
export * as $Enums from './enums.js';
|
|
17
|
+
export * from './enums.js';
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import * as $Class from "./internal/class.js";
|
|
3
|
+
import * as Prisma from "./internal/prismaNamespace.js";
|
|
4
|
+
export * as $Enums from './enums.js';
|
|
5
|
+
export * from "./enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* ## Prisma Client
|
|
8
|
+
*
|
|
9
|
+
* Type-safe database client for TypeScript
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* const prisma = new PrismaClient({
|
|
13
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
14
|
+
* })
|
|
15
|
+
* // Fetch zero or more Users
|
|
16
|
+
* const users = await prisma.user.findMany()
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
20
|
+
*/
|
|
21
|
+
export declare const PrismaClient: $Class.PrismaClientConstructor;
|
|
22
|
+
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
export { Prisma };
|
|
24
|
+
/**
|
|
25
|
+
* Model User
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export type User = Prisma.UserModel;
|
|
29
|
+
/**
|
|
30
|
+
* Model Session
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export type Session = Prisma.SessionModel;
|
|
34
|
+
/**
|
|
35
|
+
* Model Account
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export type Account = Prisma.AccountModel;
|
|
39
|
+
/**
|
|
40
|
+
* Model Verification
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
export type Verification = Prisma.VerificationModel;
|
|
44
|
+
/**
|
|
45
|
+
* Model Organization
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
export type Organization = Prisma.OrganizationModel;
|
|
49
|
+
/**
|
|
50
|
+
* Model Member
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
export type Member = Prisma.MemberModel;
|
|
54
|
+
/**
|
|
55
|
+
* Model Invitation
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
export type Invitation = Prisma.InvitationModel;
|
|
59
|
+
/**
|
|
60
|
+
* Model Apikey
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export type Apikey = Prisma.ApikeyModel;
|
|
64
|
+
/**
|
|
65
|
+
* Model Provider
|
|
66
|
+
* Catalogue of providers Kosha can talk to. Derived state: every row is
|
|
67
|
+
* upserted at boot from the installed integration packages, and rows whose
|
|
68
|
+
* package is gone are deactivated rather than deleted.
|
|
69
|
+
*/
|
|
70
|
+
export type Provider = Prisma.ProviderModel;
|
|
71
|
+
/**
|
|
72
|
+
* Model Configuration
|
|
73
|
+
* One organization's setup of one provider: which OAuth app, which scopes,
|
|
74
|
+
* which environment. `metadata` holds the integration's own `configFields`.
|
|
75
|
+
*/
|
|
76
|
+
export type Configuration = Prisma.ConfigurationModel;
|
|
77
|
+
/**
|
|
78
|
+
* Model EndUser
|
|
79
|
+
* The organization's own users, identified by the organization's id for them
|
|
80
|
+
* — never by a Kosha auth user.
|
|
81
|
+
*/
|
|
82
|
+
export type EndUser = Prisma.EndUserModel;
|
|
83
|
+
/**
|
|
84
|
+
* Model Connection
|
|
85
|
+
* The authorized link between an EndUser and a Configuration. An end user may
|
|
86
|
+
* hold several connections against the same configuration (two GitHub
|
|
87
|
+
* accounts), so uniqueness is per provider account, not per end user.
|
|
88
|
+
*/
|
|
89
|
+
export type Connection = Prisma.ConnectionModel;
|
|
90
|
+
/**
|
|
91
|
+
* Model ConnectionCredential
|
|
92
|
+
* Tokens, split out from Connection so they have their own access path.
|
|
93
|
+
* Every token column is AES-256-GCM ciphertext.
|
|
94
|
+
*/
|
|
95
|
+
export type ConnectionCredential = Prisma.ConnectionCredentialModel;
|
|
96
|
+
/**
|
|
97
|
+
* Model ConnectSession
|
|
98
|
+
* Short-lived token handed to the organization's frontend to drive one
|
|
99
|
+
* connect flow.
|
|
100
|
+
*/
|
|
101
|
+
export type ConnectSession = Prisma.ConnectSessionModel;
|
|
102
|
+
/**
|
|
103
|
+
* Model OAuthState
|
|
104
|
+
* CSRF state and PKCE verifier for one OAuth redirect attempt.
|
|
105
|
+
*/
|
|
106
|
+
export type OAuthState = Prisma.OAuthStateModel;
|
|
107
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAA;AAEvD,OAAO,KAAK,MAAM,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,SAAS,CAAA;AACnC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,iBAAiB,CAAA;AACnD;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,CAAA;AACvC;;;;;GAKG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAA;AAC3C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,kBAAkB,CAAA;AACrD;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,YAAY,CAAA;AACzC;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA;AAC/C;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,yBAAyB,CAAA;AACnE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB,CAAA;AACvD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// biome-ignore-all lint: generated file
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
/*
|
|
6
|
+
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
7
|
+
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import * as path from 'node:path';
|
|
12
|
+
import { fileURLToPath } from 'node:url';
|
|
13
|
+
globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
import * as $Class from "./internal/class.js";
|
|
15
|
+
import * as Prisma from "./internal/prismaNamespace.js";
|
|
16
|
+
export * as $Enums from './enums.js';
|
|
17
|
+
export * from "./enums.js";
|
|
18
|
+
/**
|
|
19
|
+
* ## Prisma Client
|
|
20
|
+
*
|
|
21
|
+
* Type-safe database client for TypeScript
|
|
22
|
+
* @example
|
|
23
|
+
* ```
|
|
24
|
+
* const prisma = new PrismaClient({
|
|
25
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
26
|
+
* })
|
|
27
|
+
* // Fetch zero or more Users
|
|
28
|
+
* const users = await prisma.user.findMany()
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
32
|
+
*/
|
|
33
|
+
export const PrismaClient = $Class.getPrismaClientClass();
|
|
34
|
+
export { Prisma };
|