@fonoster/apiserver 0.8.6 → 0.8.7
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/applications/createGetFnUtil.d.ts +4 -4
- package/dist/applications/types.d.ts +1 -1
- package/dist/applications/utils/convertToApplicationData.js +1 -1
- package/dist/applications/utils/getApplicationValidationSchema.js +1 -1
- package/dist/applications/utils/prepareForValidation.js +1 -1
- package/dist/core/db.d.ts +2 -2
- package/dist/core/db.js +1 -1
- package/dist/core/seed.js +1 -1
- package/dist/generated/@prisma/client/default.d.ts +1 -0
- package/dist/generated/@prisma/client/default.js +1 -0
- package/dist/generated/@prisma/client/edge.d.ts +1 -0
- package/dist/generated/@prisma/client/edge.js +260 -0
- package/dist/generated/@prisma/client/index-browser.js +248 -0
- package/dist/generated/@prisma/client/index.d.ts +9473 -0
- package/dist/generated/@prisma/client/index.js +281 -0
- package/dist/generated/@prisma/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/generated/@prisma/client/package.json +97 -0
- package/dist/generated/@prisma/client/runtime/edge-esm.js +31 -0
- package/dist/generated/@prisma/client/runtime/edge.js +31 -0
- package/dist/generated/@prisma/client/runtime/index-browser.d.ts +365 -0
- package/dist/generated/@prisma/client/runtime/index-browser.js +13 -0
- package/dist/generated/@prisma/client/runtime/library.d.ts +3378 -0
- package/dist/generated/@prisma/client/runtime/library.js +143 -0
- package/dist/generated/@prisma/client/runtime/react-native.js +80 -0
- package/dist/generated/@prisma/client/runtime/wasm.js +32 -0
- package/dist/generated/@prisma/client/schema.prisma +138 -0
- package/dist/generated/@prisma/client/wasm.d.ts +1 -0
- package/dist/generated/@prisma/client/wasm.js +248 -0
- package/package.json +9 -9
|
@@ -5,25 +5,25 @@ declare function createGetFnUtil(prisma: Prisma): (ref: string) => Promise<{
|
|
|
5
5
|
};
|
|
6
6
|
textToSpeech: {
|
|
7
7
|
ref: string;
|
|
8
|
-
config: import("
|
|
8
|
+
config: import("../generated/@prisma/client/runtime/library").JsonValue;
|
|
9
9
|
productRef: string;
|
|
10
10
|
applicationRef: string;
|
|
11
11
|
};
|
|
12
12
|
speechToText: {
|
|
13
13
|
ref: string;
|
|
14
|
-
config: import("
|
|
14
|
+
config: import("../generated/@prisma/client/runtime/library").JsonValue;
|
|
15
15
|
productRef: string;
|
|
16
16
|
applicationRef: string;
|
|
17
17
|
};
|
|
18
18
|
intelligence: {
|
|
19
19
|
ref: string;
|
|
20
|
-
config: import("
|
|
20
|
+
config: import("../generated/@prisma/client/runtime/library").JsonValue;
|
|
21
21
|
credentials: string;
|
|
22
22
|
productRef: string;
|
|
23
23
|
applicationRef: string;
|
|
24
24
|
};
|
|
25
25
|
name: string;
|
|
26
|
-
type: import("
|
|
26
|
+
type: import("../generated/@prisma/client").$Enums.ApplicationType;
|
|
27
27
|
endpoint: string;
|
|
28
28
|
ref: string;
|
|
29
29
|
accessKeyId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToApplicationData = convertToApplicationData;
|
|
4
|
-
const client_1 = require("
|
|
4
|
+
const client_1 = require("../../generated/@prisma/client");
|
|
5
5
|
const pb_util_1 = require("pb-util");
|
|
6
6
|
function convertToApplicationData(request) {
|
|
7
7
|
const type = request.type || client_1.ApplicationType.EXTERNAL;
|
|
@@ -20,7 +20,7 @@ exports.getApplicationValidationSchema = getApplicationValidationSchema;
|
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
22
|
const common_1 = require("@fonoster/common");
|
|
23
|
-
const client_1 = require("
|
|
23
|
+
const client_1 = require("../../generated/@prisma/client");
|
|
24
24
|
const zod_1 = require("zod");
|
|
25
25
|
const Deepgram_1 = require("../../voice/stt/Deepgram");
|
|
26
26
|
const Google_1 = require("../../voice/stt/Google");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.prepareForValidation = prepareForValidation;
|
|
4
|
-
const client_1 = require("
|
|
4
|
+
const client_1 = require("../../generated/@prisma/client");
|
|
5
5
|
const pb_util_1 = require("pb-util");
|
|
6
6
|
function prepareForValidation(request) {
|
|
7
7
|
const type = request.type || client_1.ApplicationType.EXTERNAL;
|
package/dist/core/db.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare const prisma: import("
|
|
1
|
+
declare const prisma: import("../generated/@prisma/client/runtime/library").DynamicClientExtensionThis<import("../generated/@prisma/client").Prisma.TypeMap<import("../generated/@prisma/client/runtime/library").InternalArgs & {
|
|
2
2
|
result: {};
|
|
3
3
|
model: {};
|
|
4
4
|
query: {};
|
|
5
5
|
client: {};
|
|
6
|
-
}, import("
|
|
6
|
+
}, import("../generated/@prisma/client").Prisma.PrismaClientOptions>, import("../generated/@prisma/client").Prisma.TypeMapCb, {
|
|
7
7
|
result: {};
|
|
8
8
|
model: {};
|
|
9
9
|
query: {};
|
package/dist/core/db.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.prisma = void 0;
|
|
|
19
19
|
* See the License for the specific language governing permissions and
|
|
20
20
|
* limitations under the License.
|
|
21
21
|
*/
|
|
22
|
-
const client_1 = require("
|
|
22
|
+
const client_1 = require("../generated/@prisma/client");
|
|
23
23
|
const prisma_field_encryption_1 = require("prisma-field-encryption");
|
|
24
24
|
const envs_1 = require("../envs");
|
|
25
25
|
// We encrypt all fields marked with /// encrypted in the schema
|
package/dist/core/seed.js
CHANGED
|
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
* limitations under the License.
|
|
29
29
|
*/
|
|
30
30
|
const logger_1 = require("@fonoster/logger");
|
|
31
|
-
const client_1 = require("
|
|
31
|
+
const client_1 = require("../generated/@prisma/client");
|
|
32
32
|
const prisma = new client_1.PrismaClient();
|
|
33
33
|
const logger = (0, logger_1.getLogger)({ service: "apiserver", filePath: __filename });
|
|
34
34
|
function main() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = { ...require('.') }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./default"
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
PrismaClientKnownRequestError,
|
|
6
|
+
PrismaClientUnknownRequestError,
|
|
7
|
+
PrismaClientRustPanicError,
|
|
8
|
+
PrismaClientInitializationError,
|
|
9
|
+
PrismaClientValidationError,
|
|
10
|
+
getPrismaClient,
|
|
11
|
+
sqltag,
|
|
12
|
+
empty,
|
|
13
|
+
join,
|
|
14
|
+
raw,
|
|
15
|
+
skip,
|
|
16
|
+
Decimal,
|
|
17
|
+
Debug,
|
|
18
|
+
objectEnumValues,
|
|
19
|
+
makeStrictEnum,
|
|
20
|
+
Extensions,
|
|
21
|
+
warnOnce,
|
|
22
|
+
defineDmmfProperty,
|
|
23
|
+
Public,
|
|
24
|
+
getRuntime
|
|
25
|
+
} = require('./runtime/edge.js')
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const Prisma = {}
|
|
29
|
+
|
|
30
|
+
exports.Prisma = Prisma
|
|
31
|
+
exports.$Enums = {}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Prisma Client JS version: 6.1.0
|
|
35
|
+
* Query Engine version: 11f085a2012c0f4778414c8db2651556ee0ef959
|
|
36
|
+
*/
|
|
37
|
+
Prisma.prismaVersion = {
|
|
38
|
+
client: "6.1.0",
|
|
39
|
+
engine: "11f085a2012c0f4778414c8db2651556ee0ef959"
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
43
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
44
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
45
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
46
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
47
|
+
Prisma.Decimal = Decimal
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Re-export of sql-template-tag
|
|
51
|
+
*/
|
|
52
|
+
Prisma.sql = sqltag
|
|
53
|
+
Prisma.empty = empty
|
|
54
|
+
Prisma.join = join
|
|
55
|
+
Prisma.raw = raw
|
|
56
|
+
Prisma.validator = Public.validator
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Extensions
|
|
60
|
+
*/
|
|
61
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
62
|
+
Prisma.defineExtension = Extensions.defineExtension
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Shorthand utilities for JSON filtering
|
|
66
|
+
*/
|
|
67
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
68
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
69
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
70
|
+
|
|
71
|
+
Prisma.NullTypes = {
|
|
72
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
73
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
74
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Enums
|
|
83
|
+
*/
|
|
84
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
85
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
86
|
+
ReadCommitted: 'ReadCommitted',
|
|
87
|
+
RepeatableRead: 'RepeatableRead',
|
|
88
|
+
Serializable: 'Serializable'
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
exports.Prisma.ApplicationScalarFieldEnum = {
|
|
92
|
+
ref: 'ref',
|
|
93
|
+
accessKeyId: 'accessKeyId',
|
|
94
|
+
name: 'name',
|
|
95
|
+
type: 'type',
|
|
96
|
+
endpoint: 'endpoint',
|
|
97
|
+
createdAt: 'createdAt',
|
|
98
|
+
updatedAt: 'updatedAt'
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.Prisma.TextToSpeechScalarFieldEnum = {
|
|
102
|
+
ref: 'ref',
|
|
103
|
+
config: 'config',
|
|
104
|
+
applicationRef: 'applicationRef',
|
|
105
|
+
productRef: 'productRef'
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
exports.Prisma.SpeechToTextScalarFieldEnum = {
|
|
109
|
+
ref: 'ref',
|
|
110
|
+
config: 'config',
|
|
111
|
+
applicationRef: 'applicationRef',
|
|
112
|
+
productRef: 'productRef'
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
exports.Prisma.IntelligenceScalarFieldEnum = {
|
|
116
|
+
ref: 'ref',
|
|
117
|
+
config: 'config',
|
|
118
|
+
credentials: 'credentials',
|
|
119
|
+
applicationRef: 'applicationRef',
|
|
120
|
+
productRef: 'productRef'
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
exports.Prisma.ProductScalarFieldEnum = {
|
|
124
|
+
ref: 'ref',
|
|
125
|
+
name: 'name',
|
|
126
|
+
vendor: 'vendor',
|
|
127
|
+
type: 'type'
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
exports.Prisma.SecretScalarFieldEnum = {
|
|
131
|
+
ref: 'ref',
|
|
132
|
+
accessKeyId: 'accessKeyId',
|
|
133
|
+
name: 'name',
|
|
134
|
+
secret: 'secret',
|
|
135
|
+
createdAt: 'createdAt',
|
|
136
|
+
updatedAt: 'updatedAt'
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
exports.Prisma.SortOrder = {
|
|
140
|
+
asc: 'asc',
|
|
141
|
+
desc: 'desc'
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
exports.Prisma.JsonNullValueInput = {
|
|
145
|
+
JsonNull: Prisma.JsonNull
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
exports.Prisma.QueryMode = {
|
|
149
|
+
default: 'default',
|
|
150
|
+
insensitive: 'insensitive'
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
154
|
+
DbNull: Prisma.DbNull,
|
|
155
|
+
JsonNull: Prisma.JsonNull,
|
|
156
|
+
AnyNull: Prisma.AnyNull
|
|
157
|
+
};
|
|
158
|
+
exports.ApplicationType = exports.$Enums.ApplicationType = {
|
|
159
|
+
EXTERNAL: 'EXTERNAL'
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
exports.ProductType = exports.$Enums.ProductType = {
|
|
163
|
+
TTS: 'TTS',
|
|
164
|
+
STT: 'STT',
|
|
165
|
+
ASSISTANT: 'ASSISTANT'
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
exports.ProductVendor = exports.$Enums.ProductVendor = {
|
|
169
|
+
GOOGLE: 'GOOGLE',
|
|
170
|
+
MICROSOFT: 'MICROSOFT',
|
|
171
|
+
AMAZON: 'AMAZON',
|
|
172
|
+
DEEPGRAM: 'DEEPGRAM',
|
|
173
|
+
IBM: 'IBM',
|
|
174
|
+
RASA: 'RASA',
|
|
175
|
+
OPENAI: 'OPENAI',
|
|
176
|
+
GROQ: 'GROQ',
|
|
177
|
+
ELEVEN_LABS: 'ELEVEN_LABS',
|
|
178
|
+
GENERIC: 'GENERIC'
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
exports.Prisma.ModelName = {
|
|
182
|
+
Application: 'Application',
|
|
183
|
+
TextToSpeech: 'TextToSpeech',
|
|
184
|
+
SpeechToText: 'SpeechToText',
|
|
185
|
+
Intelligence: 'Intelligence',
|
|
186
|
+
Product: 'Product',
|
|
187
|
+
Secret: 'Secret'
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Create the Client
|
|
191
|
+
*/
|
|
192
|
+
const config = {
|
|
193
|
+
"generator": {
|
|
194
|
+
"name": "client",
|
|
195
|
+
"provider": {
|
|
196
|
+
"fromEnvVar": null,
|
|
197
|
+
"value": "prisma-client-js"
|
|
198
|
+
},
|
|
199
|
+
"output": {
|
|
200
|
+
"value": "/Users/psanders/Projects/fonoster/mods/apiserver/src/generated/@prisma/client",
|
|
201
|
+
"fromEnvVar": null
|
|
202
|
+
},
|
|
203
|
+
"config": {
|
|
204
|
+
"engineType": "library"
|
|
205
|
+
},
|
|
206
|
+
"binaryTargets": [
|
|
207
|
+
{
|
|
208
|
+
"fromEnvVar": null,
|
|
209
|
+
"value": "darwin-arm64",
|
|
210
|
+
"native": true
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"previewFeatures": [],
|
|
214
|
+
"sourceFilePath": "/Users/psanders/Projects/fonoster/mods/apiserver/schema.prisma",
|
|
215
|
+
"isCustomOutput": true
|
|
216
|
+
},
|
|
217
|
+
"relativeEnvPaths": {
|
|
218
|
+
"rootEnvPath": null,
|
|
219
|
+
"schemaEnvPath": "../../../../../../.env"
|
|
220
|
+
},
|
|
221
|
+
"relativePath": "../../../..",
|
|
222
|
+
"clientVersion": "6.1.0",
|
|
223
|
+
"engineVersion": "11f085a2012c0f4778414c8db2651556ee0ef959",
|
|
224
|
+
"datasourceNames": [
|
|
225
|
+
"db"
|
|
226
|
+
],
|
|
227
|
+
"activeProvider": "postgresql",
|
|
228
|
+
"postinstall": false,
|
|
229
|
+
"inlineDatasources": {
|
|
230
|
+
"db": {
|
|
231
|
+
"url": {
|
|
232
|
+
"fromEnvVar": "DATABASE_URL",
|
|
233
|
+
"value": null
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"src/generated/@prisma/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel Application {\n ref String @id @default(uuid())\n accessKeyId String @map(\"access_key_id\")\n name String @db.VarChar(255)\n type ApplicationType\n endpoint String @db.VarChar(255)\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Relations\n textToSpeech TextToSpeech?\n speechToText SpeechToText?\n intelligence Intelligence?\n\n // Indexes and maps\n @@index([accessKeyId], type: Hash)\n @@map(\"applications\")\n}\n\nmodel TextToSpeech {\n ref String @id @default(uuid())\n config Json\n\n // Relations\n application Application @relation(fields: [applicationRef], references: [ref], onDelete: Cascade)\n applicationRef String @unique @map(\"application_ref\")\n product Product @relation(fields: [productRef], references: [ref], onDelete: Cascade)\n productRef String @map(\"product_ref\")\n\n // Indexes and maps\n @@index([applicationRef], type: Hash)\n @@index([productRef], type: Hash)\n @@map(\"tts_services\")\n}\n\nmodel SpeechToText {\n ref String @id @default(uuid())\n config Json\n\n // Relations\n application Application @relation(fields: [applicationRef], references: [ref], onDelete: Cascade)\n applicationRef String @unique @map(\"application_ref\")\n product Product @relation(fields: [productRef], references: [ref], onDelete: Cascade)\n productRef String @map(\"product_ref\")\n\n // Indexes and maps\n @@index([applicationRef], type: Hash)\n @@index([productRef], type: Hash)\n @@map(\"stt_services\")\n}\n\nmodel Intelligence {\n ref String @id @default(uuid())\n config Json\n credentials String @map(\"credentials_hash\") /// @encrypted\n\n // Relations\n application Application @relation(fields: [applicationRef], references: [ref], onDelete: Cascade)\n applicationRef String @unique @map(\"application_ref\")\n Product Product @relation(fields: [productRef], references: [ref], onDelete: Cascade)\n productRef String @map(\"product_ref\")\n\n // Indexes and maps\n @@index([applicationRef], type: Hash)\n @@index([productRef], type: Hash)\n @@map(\"intelligence_services\")\n}\n\nmodel Product {\n ref String @id\n name String\n vendor ProductVendor\n type ProductType\n\n // Relations\n speechToText SpeechToText[]\n sextToSpeech TextToSpeech[]\n intelligence Intelligence[]\n\n // Indexes and maps\n @@map(\"products\")\n}\n\nmodel Secret {\n ref String @id @default(uuid())\n accessKeyId String @map(\"access_key_id\")\n name String\n secret String @map(\"secret_hash\") /// @encrypted\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Indexes and maps\n @@index([accessKeyId], type: Hash)\n @@index([name], type: Hash)\n @@map(\"secrets\")\n}\n\nenum ApplicationType {\n EXTERNAL\n\n // Maps\n @@map(\"application_types\")\n}\n\nenum ProductType {\n TTS\n STT\n ASSISTANT\n\n // Maps\n @@map(\"product_types\")\n}\n\nenum ProductVendor {\n GOOGLE\n MICROSOFT\n AMAZON\n DEEPGRAM\n IBM\n RASA\n OPENAI\n GROQ\n ELEVEN_LABS\n GENERIC\n\n // Maps\n @@map(\"product_vendors\")\n}\n",
|
|
238
|
+
"inlineSchemaHash": "6d8ba897bfe8a32e017c5f2c64853b31c62afd158376baf4cc6c659d186212e6",
|
|
239
|
+
"copyEngine": true
|
|
240
|
+
}
|
|
241
|
+
config.dirname = '/'
|
|
242
|
+
|
|
243
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"Application\":{\"dbName\":\"applications\",\"schema\":null,\"fields\":[{\"name\":\"ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accessKeyId\",\"dbName\":\"access_key_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":[\"VarChar\",[\"255\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ApplicationType\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"endpoint\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":[\"VarChar\",[\"255\"]],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"textToSpeech\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"TextToSpeech\",\"nativeType\":null,\"relationName\":\"ApplicationToTextToSpeech\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"speechToText\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SpeechToText\",\"nativeType\":null,\"relationName\":\"ApplicationToSpeechToText\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"intelligence\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Intelligence\",\"nativeType\":null,\"relationName\":\"ApplicationToIntelligence\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"TextToSpeech\":{\"dbName\":\"tts_services\",\"schema\":null,\"fields\":[{\"name\":\"ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"application\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Application\",\"nativeType\":null,\"relationName\":\"ApplicationToTextToSpeech\",\"relationFromFields\":[\"applicationRef\"],\"relationToFields\":[\"ref\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applicationRef\",\"dbName\":\"application_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"ProductToTextToSpeech\",\"relationFromFields\":[\"productRef\"],\"relationToFields\":[\"ref\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productRef\",\"dbName\":\"product_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"SpeechToText\":{\"dbName\":\"stt_services\",\"schema\":null,\"fields\":[{\"name\":\"ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"application\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Application\",\"nativeType\":null,\"relationName\":\"ApplicationToSpeechToText\",\"relationFromFields\":[\"applicationRef\"],\"relationToFields\":[\"ref\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applicationRef\",\"dbName\":\"application_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"ProductToSpeechToText\",\"relationFromFields\":[\"productRef\"],\"relationToFields\":[\"ref\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productRef\",\"dbName\":\"product_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Intelligence\":{\"dbName\":\"intelligence_services\",\"schema\":null,\"fields\":[{\"name\":\"ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"credentials\",\"dbName\":\"credentials_hash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false,\"documentation\":\"@encrypted\"},{\"name\":\"application\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Application\",\"nativeType\":null,\"relationName\":\"ApplicationToIntelligence\",\"relationFromFields\":[\"applicationRef\"],\"relationToFields\":[\"ref\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"applicationRef\",\"dbName\":\"application_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Product\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Product\",\"nativeType\":null,\"relationName\":\"IntelligenceToProduct\",\"relationFromFields\":[\"productRef\"],\"relationToFields\":[\"ref\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"productRef\",\"dbName\":\"product_ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Product\":{\"dbName\":\"products\",\"schema\":null,\"fields\":[{\"name\":\"ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"vendor\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ProductVendor\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"ProductType\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"speechToText\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"SpeechToText\",\"nativeType\":null,\"relationName\":\"ProductToSpeechToText\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"sextToSpeech\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"TextToSpeech\",\"nativeType\":null,\"relationName\":\"ProductToTextToSpeech\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"intelligence\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Intelligence\",\"nativeType\":null,\"relationName\":\"IntelligenceToProduct\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Secret\":{\"dbName\":\"secrets\",\"schema\":null,\"fields\":[{\"name\":\"ref\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"uuid\",\"args\":[4]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"accessKeyId\",\"dbName\":\"access_key_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"secret\",\"dbName\":\"secret_hash\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false,\"documentation\":\"@encrypted\"},{\"name\":\"createdAt\",\"dbName\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"dbName\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"ApplicationType\":{\"values\":[{\"name\":\"EXTERNAL\",\"dbName\":null}],\"dbName\":\"application_types\"},\"ProductType\":{\"values\":[{\"name\":\"TTS\",\"dbName\":null},{\"name\":\"STT\",\"dbName\":null},{\"name\":\"ASSISTANT\",\"dbName\":null}],\"dbName\":\"product_types\"},\"ProductVendor\":{\"values\":[{\"name\":\"GOOGLE\",\"dbName\":null},{\"name\":\"MICROSOFT\",\"dbName\":null},{\"name\":\"AMAZON\",\"dbName\":null},{\"name\":\"DEEPGRAM\",\"dbName\":null},{\"name\":\"IBM\",\"dbName\":null},{\"name\":\"RASA\",\"dbName\":null},{\"name\":\"OPENAI\",\"dbName\":null},{\"name\":\"GROQ\",\"dbName\":null},{\"name\":\"ELEVEN_LABS\",\"dbName\":null},{\"name\":\"GENERIC\",\"dbName\":null}],\"dbName\":\"product_vendors\"}},\"types\":{}}")
|
|
244
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
245
|
+
config.engineWasm = undefined
|
|
246
|
+
|
|
247
|
+
config.injectableEdgeEnv = () => ({
|
|
248
|
+
parsed: {
|
|
249
|
+
DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
|
|
250
|
+
}
|
|
251
|
+
})
|
|
252
|
+
|
|
253
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
|
|
254
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const PrismaClient = getPrismaClient(config)
|
|
258
|
+
exports.PrismaClient = PrismaClient
|
|
259
|
+
Object.assign(exports, Prisma)
|
|
260
|
+
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
Decimal,
|
|
6
|
+
objectEnumValues,
|
|
7
|
+
makeStrictEnum,
|
|
8
|
+
Public,
|
|
9
|
+
getRuntime,
|
|
10
|
+
skip
|
|
11
|
+
} = require('./runtime/index-browser.js')
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
const Prisma = {}
|
|
15
|
+
|
|
16
|
+
exports.Prisma = Prisma
|
|
17
|
+
exports.$Enums = {}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Prisma Client JS version: 6.1.0
|
|
21
|
+
* Query Engine version: 11f085a2012c0f4778414c8db2651556ee0ef959
|
|
22
|
+
*/
|
|
23
|
+
Prisma.prismaVersion = {
|
|
24
|
+
client: "6.1.0",
|
|
25
|
+
engine: "11f085a2012c0f4778414c8db2651556ee0ef959"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
Prisma.PrismaClientKnownRequestError = () => {
|
|
29
|
+
const runtimeName = getRuntime().prettyName;
|
|
30
|
+
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
31
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
32
|
+
)};
|
|
33
|
+
Prisma.PrismaClientUnknownRequestError = () => {
|
|
34
|
+
const runtimeName = getRuntime().prettyName;
|
|
35
|
+
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
36
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
37
|
+
)}
|
|
38
|
+
Prisma.PrismaClientRustPanicError = () => {
|
|
39
|
+
const runtimeName = getRuntime().prettyName;
|
|
40
|
+
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
41
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
42
|
+
)}
|
|
43
|
+
Prisma.PrismaClientInitializationError = () => {
|
|
44
|
+
const runtimeName = getRuntime().prettyName;
|
|
45
|
+
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
46
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
47
|
+
)}
|
|
48
|
+
Prisma.PrismaClientValidationError = () => {
|
|
49
|
+
const runtimeName = getRuntime().prettyName;
|
|
50
|
+
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
51
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
52
|
+
)}
|
|
53
|
+
Prisma.Decimal = Decimal
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Re-export of sql-template-tag
|
|
57
|
+
*/
|
|
58
|
+
Prisma.sql = () => {
|
|
59
|
+
const runtimeName = getRuntime().prettyName;
|
|
60
|
+
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
61
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
62
|
+
)}
|
|
63
|
+
Prisma.empty = () => {
|
|
64
|
+
const runtimeName = getRuntime().prettyName;
|
|
65
|
+
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
66
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
67
|
+
)}
|
|
68
|
+
Prisma.join = () => {
|
|
69
|
+
const runtimeName = getRuntime().prettyName;
|
|
70
|
+
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
71
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
72
|
+
)}
|
|
73
|
+
Prisma.raw = () => {
|
|
74
|
+
const runtimeName = getRuntime().prettyName;
|
|
75
|
+
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
76
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
77
|
+
)}
|
|
78
|
+
Prisma.validator = Public.validator
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Extensions
|
|
82
|
+
*/
|
|
83
|
+
Prisma.getExtensionContext = () => {
|
|
84
|
+
const runtimeName = getRuntime().prettyName;
|
|
85
|
+
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
86
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
87
|
+
)}
|
|
88
|
+
Prisma.defineExtension = () => {
|
|
89
|
+
const runtimeName = getRuntime().prettyName;
|
|
90
|
+
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
91
|
+
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
92
|
+
)}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Shorthand utilities for JSON filtering
|
|
96
|
+
*/
|
|
97
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
98
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
99
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
100
|
+
|
|
101
|
+
Prisma.NullTypes = {
|
|
102
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
103
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
104
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Enums
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
114
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
115
|
+
ReadCommitted: 'ReadCommitted',
|
|
116
|
+
RepeatableRead: 'RepeatableRead',
|
|
117
|
+
Serializable: 'Serializable'
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
exports.Prisma.ApplicationScalarFieldEnum = {
|
|
121
|
+
ref: 'ref',
|
|
122
|
+
accessKeyId: 'accessKeyId',
|
|
123
|
+
name: 'name',
|
|
124
|
+
type: 'type',
|
|
125
|
+
endpoint: 'endpoint',
|
|
126
|
+
createdAt: 'createdAt',
|
|
127
|
+
updatedAt: 'updatedAt'
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
exports.Prisma.TextToSpeechScalarFieldEnum = {
|
|
131
|
+
ref: 'ref',
|
|
132
|
+
config: 'config',
|
|
133
|
+
applicationRef: 'applicationRef',
|
|
134
|
+
productRef: 'productRef'
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
exports.Prisma.SpeechToTextScalarFieldEnum = {
|
|
138
|
+
ref: 'ref',
|
|
139
|
+
config: 'config',
|
|
140
|
+
applicationRef: 'applicationRef',
|
|
141
|
+
productRef: 'productRef'
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
exports.Prisma.IntelligenceScalarFieldEnum = {
|
|
145
|
+
ref: 'ref',
|
|
146
|
+
config: 'config',
|
|
147
|
+
credentials: 'credentials',
|
|
148
|
+
applicationRef: 'applicationRef',
|
|
149
|
+
productRef: 'productRef'
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
exports.Prisma.ProductScalarFieldEnum = {
|
|
153
|
+
ref: 'ref',
|
|
154
|
+
name: 'name',
|
|
155
|
+
vendor: 'vendor',
|
|
156
|
+
type: 'type'
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
exports.Prisma.SecretScalarFieldEnum = {
|
|
160
|
+
ref: 'ref',
|
|
161
|
+
accessKeyId: 'accessKeyId',
|
|
162
|
+
name: 'name',
|
|
163
|
+
secret: 'secret',
|
|
164
|
+
createdAt: 'createdAt',
|
|
165
|
+
updatedAt: 'updatedAt'
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
exports.Prisma.SortOrder = {
|
|
169
|
+
asc: 'asc',
|
|
170
|
+
desc: 'desc'
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
exports.Prisma.JsonNullValueInput = {
|
|
174
|
+
JsonNull: Prisma.JsonNull
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.Prisma.QueryMode = {
|
|
178
|
+
default: 'default',
|
|
179
|
+
insensitive: 'insensitive'
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
183
|
+
DbNull: Prisma.DbNull,
|
|
184
|
+
JsonNull: Prisma.JsonNull,
|
|
185
|
+
AnyNull: Prisma.AnyNull
|
|
186
|
+
};
|
|
187
|
+
exports.ApplicationType = exports.$Enums.ApplicationType = {
|
|
188
|
+
EXTERNAL: 'EXTERNAL'
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
exports.ProductVendor = exports.$Enums.ProductVendor = {
|
|
192
|
+
GOOGLE: 'GOOGLE',
|
|
193
|
+
MICROSOFT: 'MICROSOFT',
|
|
194
|
+
AMAZON: 'AMAZON',
|
|
195
|
+
DEEPGRAM: 'DEEPGRAM',
|
|
196
|
+
IBM: 'IBM',
|
|
197
|
+
RASA: 'RASA',
|
|
198
|
+
OPENAI: 'OPENAI',
|
|
199
|
+
GROQ: 'GROQ',
|
|
200
|
+
ELEVEN_LABS: 'ELEVEN_LABS',
|
|
201
|
+
GENERIC: 'GENERIC'
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
exports.ProductType = exports.$Enums.ProductType = {
|
|
205
|
+
TTS: 'TTS',
|
|
206
|
+
STT: 'STT',
|
|
207
|
+
ASSISTANT: 'ASSISTANT'
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
exports.Prisma.ModelName = {
|
|
211
|
+
Application: 'Application',
|
|
212
|
+
TextToSpeech: 'TextToSpeech',
|
|
213
|
+
SpeechToText: 'SpeechToText',
|
|
214
|
+
Intelligence: 'Intelligence',
|
|
215
|
+
Product: 'Product',
|
|
216
|
+
Secret: 'Secret'
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* This is a stub Prisma Client that will error at runtime if called.
|
|
221
|
+
*/
|
|
222
|
+
class PrismaClient {
|
|
223
|
+
constructor() {
|
|
224
|
+
return new Proxy(this, {
|
|
225
|
+
get(target, prop) {
|
|
226
|
+
let message
|
|
227
|
+
const runtime = getRuntime()
|
|
228
|
+
if (runtime.isEdge) {
|
|
229
|
+
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
230
|
+
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
231
|
+
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
232
|
+
`;
|
|
233
|
+
} else {
|
|
234
|
+
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
message += `
|
|
238
|
+
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
|
239
|
+
|
|
240
|
+
throw new Error(message)
|
|
241
|
+
}
|
|
242
|
+
})
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
exports.PrismaClient = PrismaClient
|
|
247
|
+
|
|
248
|
+
Object.assign(exports, Prisma)
|