474 lines
13 KiB
JavaScript
474 lines
13 KiB
JavaScript
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const {
|
|
Decimal,
|
|
objectEnumValues,
|
|
makeStrictEnum,
|
|
Public,
|
|
getRuntime,
|
|
skip
|
|
} = require('@prisma/client/runtime/index-browser.js')
|
|
|
|
|
|
const Prisma = {}
|
|
|
|
exports.Prisma = Prisma
|
|
exports.$Enums = {}
|
|
|
|
/**
|
|
* Prisma Client JS version: 5.22.0
|
|
* Query Engine version: 605197351a3c8bdd595af2d2a9bc3025bca48ea2
|
|
*/
|
|
Prisma.prismaVersion = {
|
|
client: "5.22.0",
|
|
engine: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
|
}
|
|
|
|
Prisma.PrismaClientKnownRequestError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)};
|
|
Prisma.PrismaClientUnknownRequestError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.PrismaClientRustPanicError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.PrismaClientInitializationError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.PrismaClientValidationError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.NotFoundError = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`NotFoundError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.Decimal = Decimal
|
|
|
|
/**
|
|
* Re-export of sql-template-tag
|
|
*/
|
|
Prisma.sql = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.empty = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.join = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.raw = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.validator = Public.validator
|
|
|
|
/**
|
|
* Extensions
|
|
*/
|
|
Prisma.getExtensionContext = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
Prisma.defineExtension = () => {
|
|
const runtimeName = getRuntime().prettyName;
|
|
throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
|
|
In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
|
|
)}
|
|
|
|
/**
|
|
* Shorthand utilities for JSON filtering
|
|
*/
|
|
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
|
|
Prisma.NullTypes = {
|
|
DbNull: objectEnumValues.classes.DbNull,
|
|
JsonNull: objectEnumValues.classes.JsonNull,
|
|
AnyNull: objectEnumValues.classes.AnyNull
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
* Enums
|
|
*/
|
|
|
|
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
});
|
|
|
|
exports.Prisma.UserScalarFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
emailVerified: 'emailVerified',
|
|
name: 'name',
|
|
image: 'image',
|
|
role: 'role',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.AccountScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
provider: 'provider',
|
|
providerAccountId: 'providerAccountId',
|
|
access_token: 'access_token',
|
|
refresh_token: 'refresh_token',
|
|
expires_at: 'expires_at',
|
|
token_type: 'token_type',
|
|
scope: 'scope',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.SessionScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
sessionToken: 'sessionToken',
|
|
expires: 'expires',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.FamilyGroupScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
ownerId: 'ownerId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.FamilyGroupMemberScalarFieldEnum = {
|
|
id: 'id',
|
|
groupId: 'groupId',
|
|
userId: 'userId',
|
|
role: 'role',
|
|
joinedAt: 'joinedAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.SubscriptionScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
familyGroupId: 'familyGroupId',
|
|
stripeId: 'stripeId',
|
|
tier: 'tier',
|
|
status: 'status',
|
|
currentPeriodStart: 'currentPeriodStart',
|
|
currentPeriodEnd: 'currentPeriodEnd',
|
|
cancelAtPeriodEnd: 'cancelAtPeriodEnd',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.WatchlistItemScalarFieldEnum = {
|
|
id: 'id',
|
|
subscriptionId: 'subscriptionId',
|
|
type: 'type',
|
|
value: 'value',
|
|
hash: 'hash',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.ExposureScalarFieldEnum = {
|
|
id: 'id',
|
|
subscriptionId: 'subscriptionId',
|
|
watchlistItemId: 'watchlistItemId',
|
|
source: 'source',
|
|
dataType: 'dataType',
|
|
identifier: 'identifier',
|
|
identifierHash: 'identifierHash',
|
|
severity: 'severity',
|
|
metadata: 'metadata',
|
|
isFirstTime: 'isFirstTime',
|
|
detectedAt: 'detectedAt',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.AlertScalarFieldEnum = {
|
|
id: 'id',
|
|
subscriptionId: 'subscriptionId',
|
|
userId: 'userId',
|
|
exposureId: 'exposureId',
|
|
type: 'type',
|
|
title: 'title',
|
|
message: 'message',
|
|
severity: 'severity',
|
|
isRead: 'isRead',
|
|
readAt: 'readAt',
|
|
channel: 'channel',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.VoiceEnrollmentScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
name: 'name',
|
|
voiceHash: 'voiceHash',
|
|
audioMetadata: 'audioMetadata',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.VoiceAnalysisScalarFieldEnum = {
|
|
id: 'id',
|
|
enrollmentId: 'enrollmentId',
|
|
userId: 'userId',
|
|
audioHash: 'audioHash',
|
|
isSynthetic: 'isSynthetic',
|
|
confidence: 'confidence',
|
|
analysisResult: 'analysisResult',
|
|
audioUrl: 'audioUrl',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
exports.Prisma.SpamFeedbackScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
phoneNumber: 'phoneNumber',
|
|
phoneNumberHash: 'phoneNumberHash',
|
|
isSpam: 'isSpam',
|
|
confidence: 'confidence',
|
|
feedbackType: 'feedbackType',
|
|
metadata: 'metadata',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.SpamRuleScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
isGlobal: 'isGlobal',
|
|
ruleType: 'ruleType',
|
|
pattern: 'pattern',
|
|
action: 'action',
|
|
priority: 'priority',
|
|
isActive: 'isActive',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
};
|
|
|
|
exports.Prisma.AuditLogScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
action: 'action',
|
|
resource: 'resource',
|
|
resourceId: 'resourceId',
|
|
changes: 'changes',
|
|
metadata: 'metadata',
|
|
ipAddress: 'ipAddress',
|
|
userAgent: 'userAgent',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
exports.Prisma.KPISnapshotScalarFieldEnum = {
|
|
id: 'id',
|
|
date: 'date',
|
|
metricName: 'metricName',
|
|
metricValue: 'metricValue',
|
|
metadata: 'metadata',
|
|
createdAt: 'createdAt'
|
|
};
|
|
|
|
exports.Prisma.SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
};
|
|
|
|
exports.Prisma.NullableJsonNullValueInput = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueInput = {
|
|
JsonNull: Prisma.JsonNull
|
|
};
|
|
|
|
exports.Prisma.QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
};
|
|
|
|
exports.Prisma.NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
};
|
|
|
|
exports.Prisma.JsonNullValueFilter = {
|
|
DbNull: Prisma.DbNull,
|
|
JsonNull: Prisma.JsonNull,
|
|
AnyNull: Prisma.AnyNull
|
|
};
|
|
exports.UserRole = exports.$Enums.UserRole = {
|
|
user: 'user',
|
|
family_admin: 'family_admin',
|
|
family_member: 'family_member',
|
|
support: 'support'
|
|
};
|
|
|
|
exports.FamilyMemberRole = exports.$Enums.FamilyMemberRole = {
|
|
owner: 'owner',
|
|
admin: 'admin',
|
|
member: 'member'
|
|
};
|
|
|
|
exports.SubscriptionTier = exports.$Enums.SubscriptionTier = {
|
|
basic: 'basic',
|
|
plus: 'plus',
|
|
premium: 'premium'
|
|
};
|
|
|
|
exports.SubscriptionStatus = exports.$Enums.SubscriptionStatus = {
|
|
active: 'active',
|
|
past_due: 'past_due',
|
|
canceled: 'canceled',
|
|
unpaid: 'unpaid',
|
|
trialing: 'trialing'
|
|
};
|
|
|
|
exports.WatchlistType = exports.$Enums.WatchlistType = {
|
|
email: 'email',
|
|
phoneNumber: 'phoneNumber',
|
|
ssn: 'ssn',
|
|
address: 'address',
|
|
domain: 'domain'
|
|
};
|
|
|
|
exports.ExposureSource = exports.$Enums.ExposureSource = {
|
|
hibp: 'hibp',
|
|
securityTrails: 'securityTrails',
|
|
censys: 'censys',
|
|
darkWebForum: 'darkWebForum',
|
|
shodan: 'shodan',
|
|
honeypot: 'honeypot'
|
|
};
|
|
|
|
exports.ExposureSeverity = exports.$Enums.ExposureSeverity = {
|
|
info: 'info',
|
|
warning: 'warning',
|
|
critical: 'critical'
|
|
};
|
|
|
|
exports.AlertType = exports.$Enums.AlertType = {
|
|
exposure_detected: 'exposure_detected',
|
|
exposure_resolved: 'exposure_resolved',
|
|
scan_complete: 'scan_complete',
|
|
subscription_changed: 'subscription_changed',
|
|
system_warning: 'system_warning'
|
|
};
|
|
|
|
exports.AlertSeverity = exports.$Enums.AlertSeverity = {
|
|
info: 'info',
|
|
warning: 'warning',
|
|
critical: 'critical'
|
|
};
|
|
|
|
exports.AlertChannel = exports.$Enums.AlertChannel = {
|
|
email: 'email',
|
|
push: 'push',
|
|
sms: 'sms'
|
|
};
|
|
|
|
exports.FeedbackType = exports.$Enums.FeedbackType = {
|
|
initial_detection: 'initial_detection',
|
|
user_confirmation: 'user_confirmation',
|
|
user_rejection: 'user_rejection',
|
|
auto_learned: 'auto_learned'
|
|
};
|
|
|
|
exports.RuleType = exports.$Enums.RuleType = {
|
|
phoneNumber: 'phoneNumber',
|
|
areaCode: 'areaCode',
|
|
prefix: 'prefix',
|
|
pattern: 'pattern',
|
|
reputation: 'reputation'
|
|
};
|
|
|
|
exports.RuleAction = exports.$Enums.RuleAction = {
|
|
block: 'block',
|
|
flag: 'flag',
|
|
allow: 'allow',
|
|
challenge: 'challenge'
|
|
};
|
|
|
|
exports.Prisma.ModelName = {
|
|
User: 'User',
|
|
Account: 'Account',
|
|
Session: 'Session',
|
|
FamilyGroup: 'FamilyGroup',
|
|
FamilyGroupMember: 'FamilyGroupMember',
|
|
Subscription: 'Subscription',
|
|
WatchlistItem: 'WatchlistItem',
|
|
Exposure: 'Exposure',
|
|
Alert: 'Alert',
|
|
VoiceEnrollment: 'VoiceEnrollment',
|
|
VoiceAnalysis: 'VoiceAnalysis',
|
|
SpamFeedback: 'SpamFeedback',
|
|
SpamRule: 'SpamRule',
|
|
AuditLog: 'AuditLog',
|
|
KPISnapshot: 'KPISnapshot'
|
|
};
|
|
|
|
/**
|
|
* This is a stub Prisma Client that will error at runtime if called.
|
|
*/
|
|
class PrismaClient {
|
|
constructor() {
|
|
return new Proxy(this, {
|
|
get(target, prop) {
|
|
let message
|
|
const runtime = getRuntime()
|
|
if (runtime.isEdge) {
|
|
message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
|
|
- Use Prisma Accelerate: https://pris.ly/d/accelerate
|
|
- Use Driver Adapters: https://pris.ly/d/driver-adapters
|
|
`;
|
|
} else {
|
|
message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
|
|
}
|
|
|
|
message += `
|
|
If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
|
|
|
|
throw new Error(message)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
exports.PrismaClient = PrismaClient
|
|
|
|
Object.assign(exports, Prisma)
|