@prisma/client 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.1

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.
@@ -345,7 +345,7 @@ export declare const objectEnumValues: {
345
345
  };
346
346
  };
347
347
 
348
- declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
348
+ declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
349
349
 
350
350
  declare namespace Public {
351
351
  export {
@@ -23,7 +23,7 @@ declare type AccelerateEngineConfig = {
23
23
 
24
24
  export declare type Action = keyof typeof DMMF.ModelAction | 'executeRaw' | 'queryRaw' | 'runCommandRaw';
25
25
 
26
- declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres'>;
26
+ declare type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
27
27
 
28
28
  export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
29
29
 
@@ -101,7 +101,7 @@ declare type BatchQuery = {
101
101
  args: JsArgs | RawQueryArgs;
102
102
  };
103
103
 
104
- declare type BatchQueryEngineResult<T> = QueryEngineResult<T> | Error;
104
+ declare type BatchQueryEngineResult<T> = QueryEngineResultData<T> | Error;
105
105
 
106
106
  declare type BatchQueryOptionsCb = (args: BatchQueryOptionsCbArgs) => Promise<any>;
107
107
 
@@ -216,7 +216,7 @@ declare type ConnectionInfo = {
216
216
  maxBindValues?: number;
217
217
  };
218
218
 
219
- declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
219
+ declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb';
220
220
 
221
221
  declare interface Context {
222
222
  /**
@@ -266,7 +266,36 @@ export declare type Count<O> = {
266
266
  [K in keyof O]: Count<number>;
267
267
  } & {};
268
268
 
269
- declare type CustomDataProxyFetch = (fetch: Fetch) => Fetch;
269
+ /**
270
+ * Custom fetch function for `DataProxyEngine`.
271
+ *
272
+ * We can't use the actual type of `globalThis.fetch` because this will result
273
+ * in API Extractor referencing Node.js type definitions in the `.d.ts` bundle
274
+ * for the client runtime. We can only use such types in internal types that
275
+ * don't end up exported anywhere.
276
+
277
+ * It's also not possible to write a definition of `fetch` that would accept the
278
+ * actual `fetch` function from different environments such as Node.js and
279
+ * Cloudflare Workers (with their extensions to `RequestInit` and `Response`).
280
+ * `fetch` is used in both covariant and contravariant positions in
281
+ * `CustomDataProxyFetch`, making it invariant, so we need the exact same type.
282
+ * Even if we removed the argument and left `fetch` in covariant position only,
283
+ * then for an extension-supplied function to be assignable to `customDataProxyFetch`,
284
+ * the platform-specific (or custom) `fetch` function needs to be assignable
285
+ * to our `fetch` definition. This, in turn, requires the third-party `Response`
286
+ * to be a subtype of our `Response` (which is not a problem, we could declare
287
+ * a minimal `Response` type that only includes what we use) *and* requires the
288
+ * third-party `RequestInit` to be a supertype of our `RequestInit` (i.e. we
289
+ * have to declare all properties any `RequestInit` implementation in existence
290
+ * could possibly have), which is not possible.
291
+ *
292
+ * Since `@prisma/extension-accelerate` redefines the type of
293
+ * `__internalParams.customDataProxyFetch` to its own type anyway (probably for
294
+ * exactly this reason), our definition is never actually used and is completely
295
+ * ignored, so it doesn't matter, and we can just use `unknown` as the type of
296
+ * `fetch` here.
297
+ */
298
+ declare type CustomDataProxyFetch = (fetch: unknown) => unknown;
270
299
 
271
300
  declare class DataLoader<T = unknown> {
272
301
  private options;
@@ -619,8 +648,12 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
619
648
 
620
649
  declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
621
650
 
651
+ declare type DeserializedResponse = Array<Record<string, unknown>>;
652
+
622
653
  export declare function deserializeJsonResponse(result: unknown): unknown;
623
654
 
655
+ export declare function deserializeRawResult(response: RawResponse): DeserializedResponse;
656
+
624
657
  export declare type DevTypeMapDef = {
625
658
  meta: {
626
659
  modelProps: string;
@@ -689,6 +722,7 @@ export declare namespace DMMF {
689
722
  export type Model = ReadonlyDeep_2<{
690
723
  name: string;
691
724
  dbName: string | null;
725
+ schema: string | null;
692
726
  fields: Field[];
693
727
  uniqueFields: string[][];
694
728
  uniqueIndexes: uniqueIndex[];
@@ -714,18 +748,25 @@ export declare namespace DMMF {
714
748
  * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
715
749
  */
716
750
  type: string;
751
+ /**
752
+ * Native database type, if specified.
753
+ * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
754
+ * `@db.Text` is encoded as `['Text', []]`.
755
+ */
756
+ nativeType?: [string, string[]] | null;
717
757
  dbName?: string | null;
718
758
  hasDefaultValue: boolean;
719
759
  default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
720
760
  relationFromFields?: string[];
721
761
  relationToFields?: string[];
722
762
  relationOnDelete?: string;
763
+ relationOnUpdate?: string;
723
764
  relationName?: string;
724
765
  documentation?: string;
725
766
  }>;
726
767
  export type FieldDefault = ReadonlyDeep_2<{
727
768
  name: string;
728
- args: any[];
769
+ args: Array<string | number>;
729
770
  }>;
730
771
  export type FieldDefaultScalar = string | boolean | number;
731
772
  export type Index = ReadonlyDeep_2<{
@@ -839,6 +880,7 @@ export declare namespace DMMF {
839
880
  createManyAndReturn?: string | null;
840
881
  update?: string | null;
841
882
  updateMany?: string | null;
883
+ updateManyAndReturn?: string | null;
842
884
  upsert?: string | null;
843
885
  delete?: string | null;
844
886
  deleteMany?: string | null;
@@ -859,6 +901,7 @@ export declare namespace DMMF {
859
901
  createManyAndReturn = "createManyAndReturn",
860
902
  update = "update",
861
903
  updateMany = "updateMany",
904
+ updateManyAndReturn = "updateManyAndReturn",
862
905
  upsert = "upsert",
863
906
  delete = "delete",
864
907
  deleteMany = "deleteMany",
@@ -1037,7 +1080,7 @@ declare interface Engine<InteractiveTransactionPayload = unknown> {
1037
1080
  start(): Promise<void>;
1038
1081
  stop(): Promise<void>;
1039
1082
  version(forceRun?: boolean): Promise<string> | string;
1040
- request<T>(query: JsonQuery, options: RequestOptions_2<InteractiveTransactionPayload>): Promise<QueryEngineResult<T>>;
1083
+ request<T>(query: JsonQuery, options: RequestOptions<InteractiveTransactionPayload>): Promise<QueryEngineResultData<T>>;
1041
1084
  requestBatch<T>(queries: JsonQuery[], options: RequestBatchOptions<InteractiveTransactionPayload>): Promise<BatchQueryEngineResult<T>[]>;
1042
1085
  transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise<Transaction_2.InteractiveTransactionInfo<unknown>>;
1043
1086
  transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
@@ -1129,25 +1172,17 @@ declare type EngineEventType = QueryEventType | LogEventType;
1129
1172
  declare type EngineProtocol = 'graphql' | 'json';
1130
1173
 
1131
1174
  declare type EngineSpan = {
1132
- span: boolean;
1175
+ id: EngineSpanId;
1176
+ parentId: string | null;
1133
1177
  name: string;
1134
- trace_id: string;
1135
- span_id: string;
1136
- parent_span_id: string;
1137
- start_time: [number, number];
1138
- end_time: [number, number];
1139
- attributes?: Record<string, string>;
1140
- links?: {
1141
- trace_id: string;
1142
- span_id: string;
1143
- }[];
1178
+ startTime: HrTime;
1179
+ endTime: HrTime;
1144
1180
  kind: EngineSpanKind;
1181
+ attributes?: Record<string, unknown>;
1182
+ links?: EngineSpanId[];
1145
1183
  };
1146
1184
 
1147
- declare type EngineSpanEvent = {
1148
- span: boolean;
1149
- spans: EngineSpan[];
1150
- };
1185
+ declare type EngineSpanId = string;
1151
1186
 
1152
1187
  declare type EngineSpanKind = 'client' | 'internal';
1153
1188
 
@@ -1348,8 +1383,6 @@ export declare type ExtractGlobalOmit<Options, ModelName extends string> = Optio
1348
1383
  };
1349
1384
  } ? GlobalOmit : {};
1350
1385
 
1351
- declare type Fetch = typeof nodeFetch;
1352
-
1353
1386
  /**
1354
1387
  * A reference to a specific field of a specific model
1355
1388
  */
@@ -1420,7 +1453,9 @@ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions>
1420
1453
  } ? O : K extends '_count' ? Count<P['objects']> : never;
1421
1454
  } & (A extends {
1422
1455
  include: any;
1423
- } & Record<string, unknown> ? DefaultSelection<P, A, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1456
+ } & Record<string, unknown> ? DefaultSelection<P, A & {
1457
+ omit: A['omit'];
1458
+ }, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1424
1459
 
1425
1460
  export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
1426
1461
  by: string[];
@@ -1674,6 +1709,7 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
1674
1709
  createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1675
1710
  update: GetFindResult<Payload, Args, ClientOptions>;
1676
1711
  updateMany: GetBatchResult;
1712
+ updateManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1677
1713
  upsert: GetFindResult<Payload, Args, ClientOptions>;
1678
1714
  delete: GetFindResult<Payload, Args, ClientOptions>;
1679
1715
  deleteMany: GetBatchResult;
@@ -1718,6 +1754,8 @@ declare type HandleErrorParams = {
1718
1754
  globalOmit?: GlobalOmitOptions;
1719
1755
  };
1720
1756
 
1757
+ declare type HrTime = [number, number];
1758
+
1721
1759
  /**
1722
1760
  * Defines High-Resolution Time.
1723
1761
  *
@@ -1730,7 +1768,7 @@ declare type HandleErrorParams = {
1730
1768
  * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
1731
1769
  * This is represented in HrTime format as [1609504210, 150000000].
1732
1770
  */
1733
- declare type HrTime = [number, number];
1771
+ declare type HrTime_2 = [number, number];
1734
1772
 
1735
1773
  /**
1736
1774
  * Matches a JSON array.
@@ -1836,7 +1874,7 @@ declare type InternalRequestParams = {
1836
1874
  /** Used to convert args for middleware and back */
1837
1875
  middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>;
1838
1876
  /** Used for Accelerate client extension via Data Proxy */
1839
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
1877
+ customDataProxyFetch?: CustomDataProxyFetch;
1840
1878
  } & Omit<QueryMiddlewareParams, 'runInTransaction'>;
1841
1879
 
1842
1880
  declare enum IsolationLevel {
@@ -1922,7 +1960,7 @@ export declare type JsonQuery = {
1922
1960
  query: JsonFieldSelection;
1923
1961
  };
1924
1962
 
1925
- declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
1963
+ declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'updateManyAndReturn' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
1926
1964
 
1927
1965
  declare type JsonSelectionSet = {
1928
1966
  $scalars?: boolean;
@@ -2166,37 +2204,6 @@ export declare type Narrowable = string | number | bigint | boolean | [];
2166
2204
 
2167
2205
  export declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
2168
2206
 
2169
- /**
2170
- * Imitates `fetch` via `https` to only suit our needs, it does nothing more.
2171
- * This is because we cannot bundle `node-fetch` as it uses many other Node.js
2172
- * utilities, while also bloating our bundles. This approach is much leaner.
2173
- * @param url
2174
- * @param options
2175
- * @returns
2176
- */
2177
- declare function nodeFetch(url: string, options?: RequestOptions): Promise<RequestResponse>;
2178
-
2179
- declare class NodeHeaders {
2180
- readonly headers: Map<string, string>;
2181
- constructor(init?: Record<any, any>);
2182
- append(name: string, value: string): void;
2183
- delete(name: string): void;
2184
- get(name: string): string | null;
2185
- has(name: string): boolean;
2186
- set(name: string, value: string): void;
2187
- forEach(callbackfn: (value: string, key: string, parent: this) => void, thisArg?: any): void;
2188
- }
2189
-
2190
- /**
2191
- * @deprecated Please don´t rely on type checks to this error anymore.
2192
- * This will become a regular `PrismaClientKnownRequestError` with code `P2025`
2193
- * in the future major version of the client.
2194
- * Instead of `error instanceof Prisma.NotFoundError` use `error.code === "P2025"`.
2195
- */
2196
- export declare class NotFoundError extends PrismaClientKnownRequestError {
2197
- constructor(message: string, clientVersion: string);
2198
- }
2199
-
2200
2207
  declare class NullTypesEnumValue extends ObjectEnumValue {
2201
2208
  _getNamespace(): string;
2202
2209
  }
@@ -2240,7 +2247,7 @@ export { Omit_2 as Omit }
2240
2247
 
2241
2248
  export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
2242
2249
 
2243
- export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
2250
+ export declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
2244
2251
 
2245
2252
  export declare type OperationPayload = {
2246
2253
  name: string;
@@ -2534,8 +2541,8 @@ declare type QueryEngineConfig = {
2534
2541
  datasourceOverrides: Record<string, string>;
2535
2542
  env: Record<string, string | undefined>;
2536
2543
  logLevel: QueryEngineLogLevel;
2537
- telemetry?: QueryEngineTelemetry;
2538
2544
  engineProtocol: EngineProtocol;
2545
+ enableTracing: boolean;
2539
2546
  };
2540
2547
 
2541
2548
  declare interface QueryEngineConstructor {
@@ -2543,20 +2550,20 @@ declare interface QueryEngineConstructor {
2543
2550
  }
2544
2551
 
2545
2552
  declare type QueryEngineInstance = {
2546
- connect(headers: string): Promise<void>;
2547
- disconnect(headers: string): Promise<void>;
2553
+ connect(headers: string, requestId: string): Promise<void>;
2554
+ disconnect(headers: string, requestId: string): Promise<void>;
2548
2555
  /**
2549
2556
  * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest`
2550
2557
  * @param headersStr JSON.stringified `QueryEngineRequestHeaders`
2551
2558
  */
2552
- query(requestStr: string, headersStr: string, transactionId?: string): Promise<string>;
2553
- sdlSchema(): Promise<string>;
2554
- dmmf(traceparent: string): Promise<string>;
2555
- startTransaction(options: string, traceHeaders: string): Promise<string>;
2556
- commitTransaction(id: string, traceHeaders: string): Promise<string>;
2557
- rollbackTransaction(id: string, traceHeaders: string): Promise<string>;
2558
- metrics(options: string): Promise<string>;
2559
- applyPendingMigrations(): Promise<void>;
2559
+ query(requestStr: string, headersStr: string, transactionId: string | undefined, requestId: string): Promise<string>;
2560
+ sdlSchema?(): Promise<string>;
2561
+ startTransaction(options: string, traceHeaders: string, requestId: string): Promise<string>;
2562
+ commitTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2563
+ rollbackTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2564
+ metrics?(options: string): Promise<string>;
2565
+ applyPendingMigrations?(): Promise<void>;
2566
+ trace(requestId: string): Promise<string | null>;
2560
2567
  };
2561
2568
 
2562
2569
  declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
@@ -2566,14 +2573,8 @@ declare type QueryEngineRequest = {
2566
2573
  variables: Object;
2567
2574
  };
2568
2575
 
2569
- declare type QueryEngineResult<T> = {
2576
+ declare type QueryEngineResultData<T> = {
2570
2577
  data: T;
2571
- elapsed: number;
2572
- };
2573
-
2574
- declare type QueryEngineTelemetry = {
2575
- enabled: Boolean;
2576
- endpoint: string;
2577
2578
  };
2578
2579
 
2579
2580
  declare type QueryEvent = {
@@ -2586,6 +2587,8 @@ declare type QueryEvent = {
2586
2587
 
2587
2588
  declare type QueryEventType = 'query';
2588
2589
 
2590
+ declare type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
2591
+
2589
2592
  declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
2590
2593
 
2591
2594
  declare type QueryMiddlewareParams = {
@@ -2629,6 +2632,12 @@ export declare type RawParameters = {
2629
2632
 
2630
2633
  export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
2631
2634
 
2635
+ declare type RawResponse = {
2636
+ columns: string[];
2637
+ types: QueryIntrospectionBuiltinType[];
2638
+ rows: unknown[][];
2639
+ };
2640
+
2632
2641
  declare type RawTaggedValue = {
2633
2642
  $type: 'Raw';
2634
2643
  value: unknown;
@@ -2661,7 +2670,7 @@ declare type RequestBatchOptions<InteractiveTransactionPayload> = {
2661
2670
  traceparent?: string;
2662
2671
  numTry?: number;
2663
2672
  containsWrite: boolean;
2664
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
2673
+ customDataProxyFetch?: CustomDataProxyFetch;
2665
2674
  };
2666
2675
 
2667
2676
  declare interface RequestError {
@@ -2681,7 +2690,7 @@ declare class RequestHandler {
2681
2690
  private logEmitter?;
2682
2691
  constructor(client: Client, logEmitter?: LogEmitter);
2683
2692
  request(params: RequestParams): Promise<any>;
2684
- mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResult<any>): any;
2693
+ mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResultData<any>): any;
2685
2694
  /**
2686
2695
  * Handles the error and logs it, logging the error is done synchronously waiting for the event
2687
2696
  * handlers to finish.
@@ -2693,18 +2702,12 @@ declare class RequestHandler {
2693
2702
  get [Symbol.toStringTag](): string;
2694
2703
  }
2695
2704
 
2696
- declare type RequestOptions = {
2697
- method?: string;
2698
- headers?: Record<string, string>;
2699
- body?: string;
2700
- };
2701
-
2702
- declare type RequestOptions_2<InteractiveTransactionPayload> = {
2705
+ declare type RequestOptions<InteractiveTransactionPayload> = {
2703
2706
  traceparent?: string;
2704
2707
  numTry?: number;
2705
2708
  interactiveTransaction?: InteractiveTransactionOptions<InteractiveTransactionPayload>;
2706
2709
  isWrite: boolean;
2707
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
2710
+ customDataProxyFetch?: CustomDataProxyFetch;
2708
2711
  };
2709
2712
 
2710
2713
  declare type RequestParams = {
@@ -2722,17 +2725,7 @@ declare type RequestParams = {
2722
2725
  otelParentCtx?: Context;
2723
2726
  otelChildCtx?: Context;
2724
2727
  globalOmit?: GlobalOmitOptions;
2725
- customDataProxyFetch?: (fetch: Fetch) => Fetch;
2726
- };
2727
-
2728
- declare type RequestResponse = {
2729
- ok: boolean;
2730
- url: string;
2731
- statusText?: string;
2732
- status: number;
2733
- headers: NodeHeaders;
2734
- text: () => Promise<string>;
2735
- json: () => Promise<any>;
2728
+ customDataProxyFetch?: CustomDataProxyFetch;
2736
2729
  };
2737
2730
 
2738
2731
  declare type RequiredExtensionArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions;
@@ -3175,7 +3168,7 @@ export declare function sqltag(strings: readonly string[], ...values: readonly R
3175
3168
  *
3176
3169
  * hrtime, epoch milliseconds, performance.now() or Date
3177
3170
  */
3178
- declare type TimeInput = HrTime | number | Date;
3171
+ declare type TimeInput = HrTime_2 | number | Date;
3179
3172
 
3180
3173
  export declare type ToTuple<T> = T extends any[] ? T : [T];
3181
3174
 
@@ -3220,7 +3213,7 @@ declare interface TraceState {
3220
3213
  declare interface TracingHelper {
3221
3214
  isEnabled(): boolean;
3222
3215
  getTraceParent(context?: Context): string;
3223
- createEngineSpan(engineSpanEvent: EngineSpanEvent): void;
3216
+ dispatchEngineSpans(spans: EngineSpan[]): void;
3224
3217
  getActiveContext(): Context | undefined;
3225
3218
  runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
3226
3219
  }