@prisma/accelerate-contract
Advanced tools
Comparing version 6.1.0-integration-expose-deserialize-raw-result.1 to 6.1.0
@@ -541,24 +541,29 @@ /** | ||
export declare type EngineSpan = { | ||
span: boolean; | ||
id: EngineSpanId; | ||
parentId: string | null; | ||
name: string; | ||
trace_id: string; | ||
span_id: string; | ||
parent_span_id: string; | ||
start_time: [number, number]; | ||
end_time: [number, number]; | ||
attributes?: Record<string, string>; | ||
links?: { | ||
trace_id: string; | ||
span_id: string; | ||
}[]; | ||
startTime: HrTime; | ||
endTime: HrTime; | ||
kind: EngineSpanKind; | ||
attributes?: Record<string, unknown>; | ||
links?: EngineSpanId[]; | ||
}; | ||
declare type EngineSpanEvent = { | ||
span: boolean; | ||
spans: EngineSpan[]; | ||
}; | ||
declare type EngineSpanId = string; | ||
declare type EngineSpanKind = 'client' | 'internal'; | ||
declare type EngineTraceEvent = { | ||
spanId: EngineSpanId; | ||
target: string; | ||
level: LogLevel_2; | ||
timestamp: HrTime; | ||
attributes: Record<string, unknown> & { | ||
message?: string; | ||
query?: string; | ||
duration_ms?: number; | ||
params?: string; | ||
}; | ||
}; | ||
declare type EnvPaths = { | ||
@@ -760,2 +765,4 @@ rootEnvPath: string | null; | ||
declare type HrTime = [number, number]; | ||
/** | ||
@@ -773,3 +780,3 @@ * Defines High-Resolution Time. | ||
*/ | ||
declare type HrTime = [number, number]; | ||
declare type HrTime_2 = [number, number]; | ||
@@ -890,2 +897,4 @@ export declare type InteractiveTransactionInfo<Payload = unknown> = { | ||
declare type LogLevel_2 = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'query'; | ||
declare type Metric<T> = { | ||
@@ -1004,4 +1013,4 @@ key: string; | ||
logLevel: QueryEngineLogLevel; | ||
telemetry?: QueryEngineTelemetry; | ||
engineProtocol: EngineProtocol; | ||
enableTracing: boolean; | ||
}; | ||
@@ -1014,4 +1023,4 @@ | ||
declare type QueryEngineInstance = { | ||
connect(headers: string): Promise<void>; | ||
disconnect(headers: string): Promise<void>; | ||
connect(headers: string, requestId: string): Promise<void>; | ||
disconnect(headers: string, requestId: string): Promise<void>; | ||
/** | ||
@@ -1021,10 +1030,10 @@ * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest` | ||
*/ | ||
query(requestStr: string, headersStr: string, transactionId?: string): Promise<string>; | ||
sdlSchema(): Promise<string>; | ||
dmmf(traceparent: string): Promise<string>; | ||
startTransaction(options: string, traceHeaders: string): Promise<string>; | ||
commitTransaction(id: string, traceHeaders: string): Promise<string>; | ||
rollbackTransaction(id: string, traceHeaders: string): Promise<string>; | ||
metrics(options: string): Promise<string>; | ||
applyPendingMigrations(): Promise<void>; | ||
query(requestStr: string, headersStr: string, transactionId: string | undefined, requestId: string): Promise<string>; | ||
sdlSchema?(): Promise<string>; | ||
startTransaction(options: string, traceHeaders: string, requestId: string): Promise<string>; | ||
commitTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>; | ||
rollbackTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>; | ||
metrics?(options: string): Promise<string>; | ||
applyPendingMigrations?(): Promise<void>; | ||
trace(requestId: string): Promise<string | null>; | ||
}; | ||
@@ -1034,14 +1043,2 @@ | ||
declare type QueryEngineRawEvent = { | ||
span_id: string; | ||
name: string; | ||
level: LogLevel; | ||
timestamp: [seconds: number, nanoseconds: number]; | ||
attributes: Record<string, unknown> & { | ||
duration_ms: number; | ||
params: string; | ||
target: string; | ||
}; | ||
}; | ||
declare type QueryEngineRequest = { | ||
@@ -1059,11 +1056,6 @@ query: string; | ||
declare type QueryEngineResultExtensions = { | ||
logs?: QueryEngineRawEvent[]; | ||
logs?: EngineTraceEvent[]; | ||
traces?: EngineSpan[]; | ||
}; | ||
declare type QueryEngineTelemetry = { | ||
enabled: Boolean; | ||
endpoint: string; | ||
}; | ||
declare type QueryEvent = { | ||
@@ -1420,3 +1412,3 @@ timestamp: Date; | ||
*/ | ||
declare type TimeInput = HrTime | number | Date; | ||
declare type TimeInput = HrTime_2 | number | Date; | ||
@@ -1464,3 +1456,3 @@ declare interface TraceState { | ||
getTraceParent(context?: Context): string; | ||
createEngineSpan(engineSpanEvent: EngineSpanEvent): void; | ||
dispatchEngineSpans(spans: EngineSpan[]): void; | ||
getActiveContext(): Context | undefined; | ||
@@ -1467,0 +1459,0 @@ runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R; |
{ | ||
"name": "@prisma/accelerate-contract", | ||
"version": "6.1.0-integration-expose-deserialize-raw-result.1", | ||
"version": "6.1.0", | ||
"description": "This package is intended for Prisma's internal use", | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@prisma/client": "6.1.0-integration-expose-deserialize-raw-result.1" | ||
"@prisma/client": "6.1.0" | ||
}, | ||
@@ -18,0 +18,0 @@ "dependencies": {}, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
70204
1498