@naisys/hub-database 3.0.0-beta.4 → 3.0.0-beta.6

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.
Files changed (29) hide show
  1. package/package.json +6 -4
  2. package/dist/dbConfig.d.ts +0 -2
  3. package/dist/generated/prisma/browser.d.ts +0 -80
  4. package/dist/generated/prisma/client.d.ts +0 -99
  5. package/dist/generated/prisma/commonInputTypes.d.ts +0 -758
  6. package/dist/generated/prisma/enums.d.ts +0 -57
  7. package/dist/generated/prisma/internal/class.d.ts +0 -285
  8. package/dist/generated/prisma/internal/prismaNamespace.d.ts +0 -1777
  9. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +0 -223
  10. package/dist/generated/prisma/models/attachments.d.ts +0 -1624
  11. package/dist/generated/prisma/models/config_revisions.d.ts +0 -1320
  12. package/dist/generated/prisma/models/context_log.d.ts +0 -1889
  13. package/dist/generated/prisma/models/costs.d.ts +0 -1834
  14. package/dist/generated/prisma/models/hosts.d.ts +0 -1892
  15. package/dist/generated/prisma/models/mail_attachments.d.ts +0 -1244
  16. package/dist/generated/prisma/models/mail_messages.d.ts +0 -1721
  17. package/dist/generated/prisma/models/mail_recipients.d.ts +0 -1409
  18. package/dist/generated/prisma/models/models.d.ts +0 -1175
  19. package/dist/generated/prisma/models/run_session.d.ts +0 -1894
  20. package/dist/generated/prisma/models/schema_version.d.ts +0 -984
  21. package/dist/generated/prisma/models/user_hosts.d.ts +0 -1244
  22. package/dist/generated/prisma/models/user_notifications.d.ts +0 -1543
  23. package/dist/generated/prisma/models/users.d.ts +0 -3229
  24. package/dist/generated/prisma/models/variables.d.ts +0 -1052
  25. package/dist/generated/prisma/models.d.ts +0 -17
  26. package/dist/hubDatabaseService.d.ts +0 -7
  27. package/dist/hubSessionService.d.ts +0 -41
  28. package/dist/index.d.ts +0 -8
  29. package/dist/prismaClient.d.ts +0 -7
@@ -1,57 +0,0 @@
1
- export declare const ContextLogRole: {
2
- readonly NAISYS: "NAISYS";
3
- readonly LLM: "LLM";
4
- };
5
- export type ContextLogRole = (typeof ContextLogRole)[keyof typeof ContextLogRole];
6
- export declare const ContextLogSource: {
7
- readonly startPrompt: "startPrompt";
8
- readonly endPrompt: "endPrompt";
9
- readonly console: "console";
10
- readonly llm: "llm";
11
- };
12
- export type ContextLogSource = (typeof ContextLogSource)[keyof typeof ContextLogSource];
13
- export declare const ContextLogType: {
14
- readonly comment: "comment";
15
- readonly error: "error";
16
- readonly system: "system";
17
- readonly tool: "tool";
18
- };
19
- export type ContextLogType = (typeof ContextLogType)[keyof typeof ContextLogType];
20
- export declare const MessageKind: {
21
- readonly mail: "mail";
22
- readonly chat: "chat";
23
- };
24
- export type MessageKind = (typeof MessageKind)[keyof typeof MessageKind];
25
- export declare const RecipientType: {
26
- readonly to: "to";
27
- readonly cc: "cc";
28
- readonly bcc: "bcc";
29
- readonly from: "from";
30
- };
31
- export type RecipientType = (typeof RecipientType)[keyof typeof RecipientType];
32
- export declare const AttachmentPurpose: {
33
- readonly mail: "mail";
34
- readonly context: "context";
35
- };
36
- export type AttachmentPurpose = (typeof AttachmentPurpose)[keyof typeof AttachmentPurpose];
37
- export declare const HostType: {
38
- readonly naisys: "naisys";
39
- readonly supervisor: "supervisor";
40
- };
41
- export type HostType = (typeof HostType)[keyof typeof HostType];
42
- export declare const ModelType: {
43
- readonly llm: "llm";
44
- readonly image: "image";
45
- };
46
- export type ModelType = (typeof ModelType)[keyof typeof ModelType];
47
- export declare const CostSource: {
48
- readonly console: "console";
49
- readonly write_protection: "write_protection";
50
- readonly compact: "compact";
51
- readonly lynx: "lynx";
52
- readonly look: "look";
53
- readonly listen: "listen";
54
- readonly genimg: "genimg";
55
- };
56
- export type CostSource = (typeof CostSource)[keyof typeof CostSource];
57
- //# sourceMappingURL=enums.d.ts.map
@@ -1,285 +0,0 @@
1
- import * as runtime from "@prisma/client/runtime/client";
2
- import type * as Prisma from "./prismaNamespace.js";
3
- export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
4
- export interface PrismaClientConstructor {
5
- /**
6
- * ## Prisma Client
7
- *
8
- * Type-safe database client for TypeScript
9
- * @example
10
- * ```
11
- * const prisma = new PrismaClient({
12
- * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
13
- * })
14
- * // Fetch zero or more Context_logs
15
- * const context_logs = await prisma.context_log.findMany()
16
- * ```
17
- *
18
- * Read more in our [docs](https://pris.ly/d/client).
19
- */
20
- new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
21
- omit: infer U;
22
- } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
23
- }
24
- /**
25
- * ## Prisma Client
26
- *
27
- * Type-safe database client for TypeScript
28
- * @example
29
- * ```
30
- * const prisma = new PrismaClient({
31
- * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
32
- * })
33
- * // Fetch zero or more Context_logs
34
- * const context_logs = await prisma.context_log.findMany()
35
- * ```
36
- *
37
- * Read more in our [docs](https://pris.ly/d/client).
38
- */
39
- export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
40
- [K: symbol]: {
41
- types: Prisma.TypeMap<ExtArgs>['other'];
42
- };
43
- $on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
44
- /**
45
- * Connect with the database
46
- */
47
- $connect(): runtime.Types.Utils.JsPromise<void>;
48
- /**
49
- * Disconnect from the database
50
- */
51
- $disconnect(): runtime.Types.Utils.JsPromise<void>;
52
- /**
53
- * Executes a prepared raw query and returns the number of affected rows.
54
- * @example
55
- * ```
56
- * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
57
- * ```
58
- *
59
- * Read more in our [docs](https://pris.ly/d/raw-queries).
60
- */
61
- $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
62
- /**
63
- * Executes a raw query and returns the number of affected rows.
64
- * Susceptible to SQL injections, see documentation.
65
- * @example
66
- * ```
67
- * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
68
- * ```
69
- *
70
- * Read more in our [docs](https://pris.ly/d/raw-queries).
71
- */
72
- $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
73
- /**
74
- * Performs a prepared raw query and returns the `SELECT` data.
75
- * @example
76
- * ```
77
- * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
78
- * ```
79
- *
80
- * Read more in our [docs](https://pris.ly/d/raw-queries).
81
- */
82
- $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
83
- /**
84
- * Performs a raw query and returns the `SELECT` data.
85
- * Susceptible to SQL injections, see documentation.
86
- * @example
87
- * ```
88
- * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
89
- * ```
90
- *
91
- * Read more in our [docs](https://pris.ly/d/raw-queries).
92
- */
93
- $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
94
- /**
95
- * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
96
- * @example
97
- * ```
98
- * const [george, bob, alice] = await prisma.$transaction([
99
- * prisma.user.create({ data: { name: 'George' } }),
100
- * prisma.user.create({ data: { name: 'Bob' } }),
101
- * prisma.user.create({ data: { name: 'Alice' } }),
102
- * ])
103
- * ```
104
- *
105
- * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
106
- */
107
- $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
108
- isolationLevel?: Prisma.TransactionIsolationLevel;
109
- }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
110
- $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
111
- maxWait?: number;
112
- timeout?: number;
113
- isolationLevel?: Prisma.TransactionIsolationLevel;
114
- }): runtime.Types.Utils.JsPromise<R>;
115
- $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
116
- extArgs: ExtArgs;
117
- }>>;
118
- /**
119
- * `prisma.context_log`: Exposes CRUD operations for the **context_log** model.
120
- * Example usage:
121
- * ```ts
122
- * // Fetch zero or more Context_logs
123
- * const context_logs = await prisma.context_log.findMany()
124
- * ```
125
- */
126
- get context_log(): Prisma.context_logDelegate<ExtArgs, {
127
- omit: OmitOpts;
128
- }>;
129
- /**
130
- * `prisma.costs`: Exposes CRUD operations for the **costs** model.
131
- * Example usage:
132
- * ```ts
133
- * // Fetch zero or more Costs
134
- * const costs = await prisma.costs.findMany()
135
- * ```
136
- */
137
- get costs(): Prisma.costsDelegate<ExtArgs, {
138
- omit: OmitOpts;
139
- }>;
140
- /**
141
- * `prisma.mail_messages`: Exposes CRUD operations for the **mail_messages** model.
142
- * Example usage:
143
- * ```ts
144
- * // Fetch zero or more Mail_messages
145
- * const mail_messages = await prisma.mail_messages.findMany()
146
- * ```
147
- */
148
- get mail_messages(): Prisma.mail_messagesDelegate<ExtArgs, {
149
- omit: OmitOpts;
150
- }>;
151
- /**
152
- * `prisma.attachments`: Exposes CRUD operations for the **attachments** model.
153
- * Example usage:
154
- * ```ts
155
- * // Fetch zero or more Attachments
156
- * const attachments = await prisma.attachments.findMany()
157
- * ```
158
- */
159
- get attachments(): Prisma.attachmentsDelegate<ExtArgs, {
160
- omit: OmitOpts;
161
- }>;
162
- /**
163
- * `prisma.mail_attachments`: Exposes CRUD operations for the **mail_attachments** model.
164
- * Example usage:
165
- * ```ts
166
- * // Fetch zero or more Mail_attachments
167
- * const mail_attachments = await prisma.mail_attachments.findMany()
168
- * ```
169
- */
170
- get mail_attachments(): Prisma.mail_attachmentsDelegate<ExtArgs, {
171
- omit: OmitOpts;
172
- }>;
173
- /**
174
- * `prisma.mail_recipients`: Exposes CRUD operations for the **mail_recipients** model.
175
- * Example usage:
176
- * ```ts
177
- * // Fetch zero or more Mail_recipients
178
- * const mail_recipients = await prisma.mail_recipients.findMany()
179
- * ```
180
- */
181
- get mail_recipients(): Prisma.mail_recipientsDelegate<ExtArgs, {
182
- omit: OmitOpts;
183
- }>;
184
- /**
185
- * `prisma.users`: Exposes CRUD operations for the **users** model.
186
- * Example usage:
187
- * ```ts
188
- * // Fetch zero or more Users
189
- * const users = await prisma.users.findMany()
190
- * ```
191
- */
192
- get users(): Prisma.usersDelegate<ExtArgs, {
193
- omit: OmitOpts;
194
- }>;
195
- /**
196
- * `prisma.user_notifications`: Exposes CRUD operations for the **user_notifications** model.
197
- * Example usage:
198
- * ```ts
199
- * // Fetch zero or more User_notifications
200
- * const user_notifications = await prisma.user_notifications.findMany()
201
- * ```
202
- */
203
- get user_notifications(): Prisma.user_notificationsDelegate<ExtArgs, {
204
- omit: OmitOpts;
205
- }>;
206
- /**
207
- * `prisma.user_hosts`: Exposes CRUD operations for the **user_hosts** model.
208
- * Example usage:
209
- * ```ts
210
- * // Fetch zero or more User_hosts
211
- * const user_hosts = await prisma.user_hosts.findMany()
212
- * ```
213
- */
214
- get user_hosts(): Prisma.user_hostsDelegate<ExtArgs, {
215
- omit: OmitOpts;
216
- }>;
217
- /**
218
- * `prisma.run_session`: Exposes CRUD operations for the **run_session** model.
219
- * Example usage:
220
- * ```ts
221
- * // Fetch zero or more Run_sessions
222
- * const run_sessions = await prisma.run_session.findMany()
223
- * ```
224
- */
225
- get run_session(): Prisma.run_sessionDelegate<ExtArgs, {
226
- omit: OmitOpts;
227
- }>;
228
- /**
229
- * `prisma.schema_version`: Exposes CRUD operations for the **schema_version** model.
230
- * Example usage:
231
- * ```ts
232
- * // Fetch zero or more Schema_versions
233
- * const schema_versions = await prisma.schema_version.findMany()
234
- * ```
235
- */
236
- get schema_version(): Prisma.schema_versionDelegate<ExtArgs, {
237
- omit: OmitOpts;
238
- }>;
239
- /**
240
- * `prisma.hosts`: Exposes CRUD operations for the **hosts** model.
241
- * Example usage:
242
- * ```ts
243
- * // Fetch zero or more Hosts
244
- * const hosts = await prisma.hosts.findMany()
245
- * ```
246
- */
247
- get hosts(): Prisma.hostsDelegate<ExtArgs, {
248
- omit: OmitOpts;
249
- }>;
250
- /**
251
- * `prisma.config_revisions`: Exposes CRUD operations for the **config_revisions** model.
252
- * Example usage:
253
- * ```ts
254
- * // Fetch zero or more Config_revisions
255
- * const config_revisions = await prisma.config_revisions.findMany()
256
- * ```
257
- */
258
- get config_revisions(): Prisma.config_revisionsDelegate<ExtArgs, {
259
- omit: OmitOpts;
260
- }>;
261
- /**
262
- * `prisma.variables`: Exposes CRUD operations for the **variables** model.
263
- * Example usage:
264
- * ```ts
265
- * // Fetch zero or more Variables
266
- * const variables = await prisma.variables.findMany()
267
- * ```
268
- */
269
- get variables(): Prisma.variablesDelegate<ExtArgs, {
270
- omit: OmitOpts;
271
- }>;
272
- /**
273
- * `prisma.models`: Exposes CRUD operations for the **models** model.
274
- * Example usage:
275
- * ```ts
276
- * // Fetch zero or more Models
277
- * const models = await prisma.models.findMany()
278
- * ```
279
- */
280
- get models(): Prisma.modelsDelegate<ExtArgs, {
281
- omit: OmitOpts;
282
- }>;
283
- }
284
- export declare function getPrismaClientClass(): PrismaClientConstructor;
285
- //# sourceMappingURL=class.d.ts.map