
/* !!! This is code generated by Prisma. Do not edit directly. !!!
/* eslint-disable */
// biome-ignore-all lint: generated file

Object.defineProperty(exports, "__esModule", { value: true });

const {
  Decimal,
  DbNull,
  JsonNull,
  AnyNull,
  NullTypes,
  makeStrictEnum,
  Public,
  getRuntime,
  skip
} = require('./runtime/index-browser.js')


const Prisma = {}

exports.Prisma = Prisma
exports.$Enums = {}

/**
 * Prisma Client JS version: 7.5.0
 * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
 */
Prisma.prismaVersion = {
  client: "7.5.0",
  engine: "280c870be64f457428992c43c1f6d557fab6e29e"
}

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.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 = DbNull
Prisma.JsonNull = JsonNull
Prisma.AnyNull = AnyNull

Prisma.NullTypes = NullTypes



/**
 * Enums
 */

exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
  ReadUncommitted: 'ReadUncommitted',
  ReadCommitted: 'ReadCommitted',
  RepeatableRead: 'RepeatableRead',
  Serializable: 'Serializable'
});

exports.Prisma.RunScalarFieldEnum = {
  runId: 'runId',
  workflowId: 'workflowId',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  status: 'status',
  revision: 'revision',
  parentJson: 'parentJson',
  executionOptionsJson: 'executionOptionsJson',
  controlJson: 'controlJson',
  workflowSnapshotJson: 'workflowSnapshotJson',
  workflowSnapshotId: 'workflowSnapshotId',
  policySnapshotJson: 'policySnapshotJson',
  engineCountersJson: 'engineCountersJson',
  mutableStateJson: 'mutableStateJson',
  hitlStateJson: 'hitlStateJson',
  outputsByNodeJson: 'outputsByNodeJson',
  updatedAt: 'updatedAt',
  testSuiteRunId: 'testSuiteRunId',
  testCaseIndex: 'testCaseIndex',
  testCaseLabel: 'testCaseLabel',
  testCaseStatus: 'testCaseStatus'
};

exports.Prisma.RunWorkItemScalarFieldEnum = {
  workItemId: 'workItemId',
  runId: 'runId',
  workflowId: 'workflowId',
  status: 'status',
  targetNodeId: 'targetNodeId',
  batchId: 'batchId',
  queueName: 'queueName',
  claimToken: 'claimToken',
  claimedBy: 'claimedBy',
  claimedAt: 'claimedAt',
  availableAt: 'availableAt',
  enqueuedAt: 'enqueuedAt',
  completedAt: 'completedAt',
  failedAt: 'failedAt',
  sourceInstanceId: 'sourceInstanceId',
  parentInstanceId: 'parentInstanceId',
  itemsIn: 'itemsIn',
  inputsByPortJson: 'inputsByPortJson',
  errorJson: 'errorJson'
};

exports.Prisma.ExecutionInstanceScalarFieldEnum = {
  instanceId: 'instanceId',
  runId: 'runId',
  workflowId: 'workflowId',
  slotNodeId: 'slotNodeId',
  workflowNodeId: 'workflowNodeId',
  kind: 'kind',
  connectionKind: 'connectionKind',
  activationId: 'activationId',
  batchId: 'batchId',
  runIndex: 'runIndex',
  parentInstanceId: 'parentInstanceId',
  parentRunId: 'parentRunId',
  workerClaimToken: 'workerClaimToken',
  status: 'status',
  queuedAt: 'queuedAt',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  updatedAt: 'updatedAt',
  itemCount: 'itemCount',
  inputJson: 'inputJson',
  outputJson: 'outputJson',
  errorJson: 'errorJson',
  inputItemIndicesJson: 'inputItemIndicesJson',
  outputItemCount: 'outputItemCount',
  successfulItemCount: 'successfulItemCount',
  failedItemCount: 'failedItemCount',
  inputStorageKind: 'inputStorageKind',
  outputStorageKind: 'outputStorageKind',
  inputBytes: 'inputBytes',
  outputBytes: 'outputBytes',
  inputPreviewJson: 'inputPreviewJson',
  outputPreviewJson: 'outputPreviewJson',
  inputPayloadRef: 'inputPayloadRef',
  outputPayloadRef: 'outputPayloadRef',
  inputTruncated: 'inputTruncated',
  outputTruncated: 'outputTruncated',
  usedPinnedOutput: 'usedPinnedOutput',
  iterationId: 'iterationId',
  itemIndex: 'itemIndex',
  parentInvocationId: 'parentInvocationId',
  childRunId: 'childRunId'
};

exports.Prisma.RunSlotProjectionScalarFieldEnum = {
  runId: 'runId',
  workflowId: 'workflowId',
  revision: 'revision',
  updatedAt: 'updatedAt',
  slotStatesJson: 'slotStatesJson'
};

exports.Prisma.TestSuiteRunScalarFieldEnum = {
  id: 'id',
  workflowId: 'workflowId',
  triggerNodeId: 'triggerNodeId',
  triggerNodeName: 'triggerNodeName',
  status: 'status',
  concurrency: 'concurrency',
  startedAt: 'startedAt',
  finishedAt: 'finishedAt',
  totalCases: 'totalCases',
  passedCases: 'passedCases',
  failedCases: 'failedCases',
  nodeCoverageJson: 'nodeCoverageJson',
  errorMessage: 'errorMessage',
  updatedAt: 'updatedAt'
};

exports.Prisma.TestAssertionScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  testSuiteRunId: 'testSuiteRunId',
  workflowId: 'workflowId',
  nodeId: 'nodeId',
  iterationId: 'iterationId',
  itemIndex: 'itemIndex',
  name: 'name',
  score: 'score',
  passThreshold: 'passThreshold',
  errored: 'errored',
  expectedJson: 'expectedJson',
  actualJson: 'actualJson',
  message: 'message',
  detailsJson: 'detailsJson',
  createdAt: 'createdAt'
};

exports.Prisma.WorkflowDebuggerOverlayScalarFieldEnum = {
  workflowId: 'workflowId',
  updatedAt: 'updatedAt',
  copiedFromRunId: 'copiedFromRunId',
  stateJson: 'stateJson'
};

exports.Prisma.WorkflowActivationScalarFieldEnum = {
  workflowId: 'workflowId',
  isActive: 'isActive',
  updatedAt: 'updatedAt'
};

exports.Prisma.TriggerSetupStateScalarFieldEnum = {
  workflowId: 'workflowId',
  nodeId: 'nodeId',
  updatedAt: 'updatedAt',
  stateJson: 'stateJson'
};

exports.Prisma.RunTraceContextScalarFieldEnum = {
  runId: 'runId',
  workflowId: 'workflowId',
  traceId: 'traceId',
  rootSpanId: 'rootSpanId',
  serviceName: 'serviceName',
  createdAt: 'createdAt',
  expiresAt: 'expiresAt'
};

exports.Prisma.TelemetrySpanScalarFieldEnum = {
  telemetrySpanId: 'telemetrySpanId',
  traceId: 'traceId',
  spanId: 'spanId',
  parentSpanId: 'parentSpanId',
  runId: 'runId',
  workflowId: 'workflowId',
  nodeId: 'nodeId',
  activationId: 'activationId',
  connectionInvocationId: 'connectionInvocationId',
  name: 'name',
  kind: 'kind',
  status: 'status',
  statusMessage: 'statusMessage',
  startTime: 'startTime',
  endTime: 'endTime',
  workflowFolder: 'workflowFolder',
  nodeType: 'nodeType',
  nodeRole: 'nodeRole',
  modelName: 'modelName',
  attributesJson: 'attributesJson',
  eventsJson: 'eventsJson',
  retentionExpiresAt: 'retentionExpiresAt',
  iterationId: 'iterationId',
  itemIndex: 'itemIndex',
  parentInvocationId: 'parentInvocationId',
  updatedAt: 'updatedAt'
};

exports.Prisma.WorkflowSnapshotScalarFieldEnum = {
  id: 'id',
  workflowId: 'workflowId',
  snapshotHash: 'snapshotHash',
  snapshotJson: 'snapshotJson',
  createdAt: 'createdAt'
};

exports.Prisma.TelemetryArtifactScalarFieldEnum = {
  artifactId: 'artifactId',
  traceId: 'traceId',
  spanId: 'spanId',
  runId: 'runId',
  workflowId: 'workflowId',
  nodeId: 'nodeId',
  activationId: 'activationId',
  kind: 'kind',
  contentType: 'contentType',
  previewText: 'previewText',
  previewJson: 'previewJson',
  payloadText: 'payloadText',
  payloadJson: 'payloadJson',
  payloadStorageKey: 'payloadStorageKey',
  bytes: 'bytes',
  truncated: 'truncated',
  createdAt: 'createdAt',
  expiresAt: 'expiresAt',
  retentionExpiresAt: 'retentionExpiresAt'
};

exports.Prisma.TelemetryMetricPointScalarFieldEnum = {
  metricPointId: 'metricPointId',
  traceId: 'traceId',
  spanId: 'spanId',
  runId: 'runId',
  workflowId: 'workflowId',
  nodeId: 'nodeId',
  activationId: 'activationId',
  metricName: 'metricName',
  value: 'value',
  unit: 'unit',
  observedAt: 'observedAt',
  workflowFolder: 'workflowFolder',
  nodeType: 'nodeType',
  nodeRole: 'nodeRole',
  modelName: 'modelName',
  dimensionsJson: 'dimensionsJson',
  retentionExpiresAt: 'retentionExpiresAt',
  iterationId: 'iterationId',
  itemIndex: 'itemIndex',
  parentInvocationId: 'parentInvocationId'
};

exports.Prisma.CredentialInstanceScalarFieldEnum = {
  instanceId: 'instanceId',
  typeId: 'typeId',
  displayName: 'displayName',
  sourceKind: 'sourceKind',
  publicConfigJson: 'publicConfigJson',
  secretRefJson: 'secretRefJson',
  tagsJson: 'tagsJson',
  setupStatus: 'setupStatus',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  materialSource: 'materialSource',
  materialRef: 'materialRef'
};

exports.Prisma.CredentialSecretMaterialScalarFieldEnum = {
  instanceId: 'instanceId',
  encryptedJson: 'encryptedJson',
  encryptionKeyId: 'encryptionKeyId',
  schemaVersion: 'schemaVersion',
  updatedAt: 'updatedAt'
};

exports.Prisma.CredentialOAuth2MaterialScalarFieldEnum = {
  instanceId: 'instanceId',
  encryptedJson: 'encryptedJson',
  encryptionKeyId: 'encryptionKeyId',
  schemaVersion: 'schemaVersion',
  providerId: 'providerId',
  connectedEmail: 'connectedEmail',
  connectedAt: 'connectedAt',
  scopesJson: 'scopesJson',
  updatedAt: 'updatedAt'
};

exports.Prisma.CredentialOAuth2StateScalarFieldEnum = {
  state: 'state',
  instanceId: 'instanceId',
  codeVerifier: 'codeVerifier',
  providerId: 'providerId',
  requestedScopesJson: 'requestedScopesJson',
  createdAt: 'createdAt',
  expiresAt: 'expiresAt'
};

exports.Prisma.CredentialBindingScalarFieldEnum = {
  workflowId: 'workflowId',
  nodeId: 'nodeId',
  slotKey: 'slotKey',
  instanceId: 'instanceId',
  updatedAt: 'updatedAt'
};

exports.Prisma.CredentialTestResultScalarFieldEnum = {
  testId: 'testId',
  instanceId: 'instanceId',
  status: 'status',
  message: 'message',
  detailsJson: 'detailsJson',
  testedAt: 'testedAt',
  expiresAt: 'expiresAt'
};

exports.Prisma.UserScalarFieldEnum = {
  id: 'id',
  name: 'name',
  email: 'email',
  emailVerified: 'emailVerified',
  image: 'image',
  passwordHash: 'passwordHash',
  accountStatus: 'accountStatus',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

exports.Prisma.UserInviteScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  tokenHash: 'tokenHash',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt',
  revokedAt: 'revokedAt'
};

exports.Prisma.AccountScalarFieldEnum = {
  id: 'id',
  userId: 'userId',
  type: 'type',
  provider: 'provider',
  providerAccountId: 'providerAccountId',
  password: 'password',
  refresh_token: 'refresh_token',
  access_token: 'access_token',
  expires_at: 'expires_at',
  accessTokenExpiresAt: 'accessTokenExpiresAt',
  refreshTokenExpiresAt: 'refreshTokenExpiresAt',
  token_type: 'token_type',
  scope: 'scope',
  id_token: 'id_token',
  session_state: 'session_state',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

exports.Prisma.SessionScalarFieldEnum = {
  id: 'id',
  sessionToken: 'sessionToken',
  userId: 'userId',
  expires: 'expires',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt',
  ipAddress: 'ipAddress',
  userAgent: 'userAgent'
};

exports.Prisma.VerificationTokenScalarFieldEnum = {
  id: 'id',
  identifier: 'identifier',
  token: 'token',
  expires: 'expires',
  createdAt: 'createdAt',
  updatedAt: 'updatedAt'
};

exports.Prisma.WorkflowAuditLogScalarFieldEnum = {
  id: 'id',
  occurredAt: 'occurredAt',
  actorUserId: 'actorUserId',
  actorSessionId: 'actorSessionId',
  action: 'action',
  resourceType: 'resourceType',
  resourceId: 'resourceId',
  outcome: 'outcome',
  errorCode: 'errorCode',
  correlationId: 'correlationId',
  workflowId: 'workflowId',
  runId: 'runId',
  nodeId: 'nodeId'
};

exports.Prisma.HmacNonceScalarFieldEnum = {
  nonce: 'nonce',
  expiresAt: 'expiresAt'
};

exports.Prisma.HumanTaskScalarFieldEnum = {
  id: 'id',
  runId: 'runId',
  workflowId: 'workflowId',
  workspaceId: 'workspaceId',
  nodeId: 'nodeId',
  activationId: 'activationId',
  itemIndex: 'itemIndex',
  status: 'status',
  channel: 'channel',
  subjectJson: 'subjectJson',
  metadataJson: 'metadataJson',
  decisionSchemaJson: 'decisionSchemaJson',
  decisionSchemaHash: 'decisionSchemaHash',
  onTimeout: 'onTimeout',
  deliveryRefJson: 'deliveryRefJson',
  decisionJson: 'decisionJson',
  decidedAt: 'decidedAt',
  decidedByJson: 'decidedByJson',
  resumeTokenHash: 'resumeTokenHash',
  expiresAt: 'expiresAt',
  createdAt: 'createdAt'
};

exports.Prisma.SortOrder = {
  asc: 'asc',
  desc: 'desc'
};

exports.Prisma.QueryMode = {
  default: 'default',
  insensitive: 'insensitive'
};

exports.Prisma.NullsOrder = {
  first: 'first',
  last: 'last'
};


exports.Prisma.ModelName = {
  Run: 'Run',
  RunWorkItem: 'RunWorkItem',
  ExecutionInstance: 'ExecutionInstance',
  RunSlotProjection: 'RunSlotProjection',
  TestSuiteRun: 'TestSuiteRun',
  TestAssertion: 'TestAssertion',
  WorkflowDebuggerOverlay: 'WorkflowDebuggerOverlay',
  WorkflowActivation: 'WorkflowActivation',
  TriggerSetupState: 'TriggerSetupState',
  RunTraceContext: 'RunTraceContext',
  TelemetrySpan: 'TelemetrySpan',
  WorkflowSnapshot: 'WorkflowSnapshot',
  TelemetryArtifact: 'TelemetryArtifact',
  TelemetryMetricPoint: 'TelemetryMetricPoint',
  CredentialInstance: 'CredentialInstance',
  CredentialSecretMaterial: 'CredentialSecretMaterial',
  CredentialOAuth2Material: 'CredentialOAuth2Material',
  CredentialOAuth2State: 'CredentialOAuth2State',
  CredentialBinding: 'CredentialBinding',
  CredentialTestResult: 'CredentialTestResult',
  User: 'User',
  UserInvite: 'UserInvite',
  Account: 'Account',
  Session: 'Session',
  VerificationToken: 'VerificationToken',
  WorkflowAuditLog: 'WorkflowAuditLog',
  HmacNonce: 'HmacNonce',
  HumanTask: 'HumanTask'
};

/**
 * 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)
