expo-backend-types 0.30.0-EXPO-308-auth.27 → 0.30.0-EXPO-309-Migrar-Configuracion.5

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.
Files changed (90) hide show
  1. package/dist/src/exports.d.ts +1 -3
  2. package/dist/src/exports.js +1 -3
  3. package/dist/src/i18n/es.d.ts +0 -20
  4. package/dist/src/i18n/es.js +0 -20
  5. package/dist/src/i18n/es.js.map +1 -1
  6. package/dist/src/location/dto/find-all-location.dto.js +2 -2
  7. package/dist/src/{schema/location.schema.js → location/dto/location.dto.js} +2 -2
  8. package/dist/src/location/exports.d.ts +1 -0
  9. package/dist/src/location/exports.js +1 -0
  10. package/dist/src/message/dto/non-read-messages.dto.d.ts +2 -2
  11. package/dist/src/message/dto/non-read-messages.dto.js +2 -2
  12. package/dist/src/message/dto/send-message-to-phone.dto.d.ts +2 -2
  13. package/dist/src/message/dto/send-message-to-phone.dto.js +2 -2
  14. package/dist/src/profile/dto/create-profile.dto.d.ts +14 -48
  15. package/dist/src/profile/dto/create-profile.dto.js +7 -9
  16. package/dist/src/profile/dto/delete-profile.dto.d.ts +6 -30
  17. package/dist/src/profile/dto/delete-profile.dto.js +2 -2
  18. package/dist/src/profile/dto/find-all-profile.dto.d.ts +7 -47
  19. package/dist/src/profile/dto/find-all-profile.dto.js +2 -2
  20. package/dist/src/profile/dto/find-by-date-range-profile.dto.d.ts +11 -75
  21. package/dist/src/profile/dto/find-by-date-range-profile.dto.js +3 -3
  22. package/dist/src/profile/dto/find-by-id-profile.dto.d.ts +13 -32
  23. package/dist/src/profile/dto/find-by-id-profile.dto.js +5 -7
  24. package/dist/src/profile/dto/find-by-phone-number.dto.d.ts +6 -30
  25. package/dist/src/profile/dto/find-by-phone-number.dto.js +2 -2
  26. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.d.ts +7 -47
  27. package/dist/src/profile/dto/find-by-tag-groups-profile.dto.js +2 -2
  28. package/dist/src/profile/dto/find-by-tags-profile.dto.d.ts +7 -47
  29. package/dist/src/profile/dto/find-by-tags-profile.dto.js +2 -2
  30. package/dist/src/profile/dto/find-trash.dto.d.ts +3 -7
  31. package/dist/src/profile/dto/find-trash.dto.js +2 -2
  32. package/dist/src/profile/dto/find-with-active-chat.dto.d.ts +7 -47
  33. package/dist/src/profile/dto/find-with-active-chat.dto.js +2 -2
  34. package/dist/src/profile/dto/profile.dto.d.ts +30 -44
  35. package/dist/src/profile/dto/profile.dto.js +63 -6
  36. package/dist/src/profile/dto/update-profile.dto.d.ts +12 -54
  37. package/dist/src/profile/dto/update-profile.dto.js +6 -9
  38. package/dist/src/shared/dto-modification/zod-without-dates.d.ts +4 -2
  39. package/dist/src/shared/dto-modification/zod-without-dates.js +0 -8
  40. package/dist/src/shared/dto-modification/zod-without-dates.js.map +1 -1
  41. package/dist/src/tag/dto/massive-allocation.dto.d.ts +7 -47
  42. package/dist/src/tag/dto/massive-allocation.dto.js +3 -3
  43. package/dist/src/tag/dto/massive-deallocation.dto.d.ts +7 -47
  44. package/dist/src/tag/dto/massive-deallocation.dto.js +3 -3
  45. package/dist/types/prisma-schema/edge.js +24 -38
  46. package/dist/types/prisma-schema/index-browser.js +9 -18
  47. package/dist/types/prisma-schema/index.d.ts +553 -3904
  48. package/dist/types/prisma-schema/index.js +24 -38
  49. package/dist/types/prisma-schema/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
  50. package/dist/types/prisma-schema/package.json +2 -2
  51. package/dist/types/prisma-schema/runtime/edge-esm.js +18 -18
  52. package/dist/types/prisma-schema/runtime/edge.js +18 -18
  53. package/dist/types/prisma-schema/runtime/index-browser.d.ts +1 -1
  54. package/dist/types/prisma-schema/runtime/library.d.ts +133 -177
  55. package/dist/types/prisma-schema/runtime/library.js +51 -51
  56. package/dist/types/prisma-schema/runtime/react-native.js +26 -26
  57. package/dist/types/prisma-schema/runtime/wasm.js +19 -19
  58. package/dist/types/prisma-schema/schema.prisma +1 -22
  59. package/dist/types/prisma-schema/wasm.js +9 -18
  60. package/dist/types/schema.d.ts +6 -510
  61. package/package.json +17 -23
  62. package/dist/src/image/constants.d.ts +0 -5
  63. package/dist/src/image/constants.js +0 -9
  64. package/dist/src/mi-expo/dto/get-me.dto.d.ts +0 -337
  65. package/dist/src/mi-expo/dto/get-me.dto.js +0 -16
  66. package/dist/src/mi-expo/dto/login-with-phone.dto.d.ts +0 -311
  67. package/dist/src/mi-expo/dto/login-with-phone.dto.js +0 -29
  68. package/dist/src/mi-expo/dto/login.dto.d.ts +0 -327
  69. package/dist/src/mi-expo/dto/login.dto.js +0 -31
  70. package/dist/src/mi-expo/dto/update-me.dto.d.ts +0 -352
  71. package/dist/src/mi-expo/dto/update-me.dto.js +0 -31
  72. package/dist/src/mi-expo/exports.d.ts +0 -4
  73. package/dist/src/mi-expo/exports.js +0 -21
  74. package/dist/src/otp/constants.d.ts +0 -2
  75. package/dist/src/otp/constants.js +0 -6
  76. package/dist/src/otp/dto/send-otp.dto.d.ts +0 -158
  77. package/dist/src/otp/dto/send-otp.dto.js +0 -35
  78. package/dist/src/otp/dto/verify-otp.dto.d.ts +0 -455
  79. package/dist/src/otp/dto/verify-otp.dto.js +0 -46
  80. package/dist/src/otp/exports.d.ts +0 -2
  81. package/dist/src/otp/exports.js +0 -19
  82. package/dist/src/prisma/constants.d.ts +0 -1
  83. package/dist/src/prisma/constants.js +0 -5
  84. package/dist/src/schema/exports.d.ts +0 -2
  85. package/dist/src/schema/exports.js +0 -19
  86. package/dist/src/schema/profile.schema.d.ts +0 -74
  87. package/dist/src/schema/profile.schema.js +0 -133
  88. package/dist/src/webhook/constants.d.ts +0 -1
  89. package/dist/src/webhook/constants.js +0 -5
  90. /package/dist/src/{schema/location.schema.d.ts → location/dto/location.dto.d.ts} +0 -0
@@ -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' | 'prisma+postgres'>;
26
+ declare type ActiveConnectorType = Exclude<ConnectorType, '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> = QueryEngineResultData<T> | Error;
104
+ declare type BatchQueryEngineResult<T> = QueryEngineResult<T> | Error;
105
105
 
106
106
  declare type BatchQueryOptionsCb = (args: BatchQueryOptionsCbArgs) => Promise<any>;
107
107
 
@@ -193,24 +193,6 @@ declare const ColumnTypeEnum: {
193
193
  readonly UnknownNumber: 128;
194
194
  };
195
195
 
196
- declare type CompilerWasmLoadingConfig = {
197
- /**
198
- * WASM-bindgen runtime for corresponding module
199
- */
200
- getRuntime: () => {
201
- __wbg_set_wasm(exports: unknown): any;
202
- QueryCompiler: QueryCompilerConstructor;
203
- };
204
- /**
205
- * Loads the raw wasm module for the wasm compiler engine. This configuration is
206
- * generated specifically for each type of client, eg. Node.js client and Edge
207
- * clients will have different implementations.
208
- * @remarks this is a callback on purpose, we only load the wasm if needed.
209
- * @remarks only used by ClientEngine
210
- */
211
- getQueryCompilerWasmModule: () => Promise<unknown>;
212
- };
213
-
214
196
  export declare type Compute<T> = T extends Function ? T : {
215
197
  [K in keyof T]: T[K];
216
198
  } & unknown;
@@ -234,7 +216,7 @@ declare type ConnectionInfo = {
234
216
  maxBindValues?: number;
235
217
  };
236
218
 
237
- declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb';
219
+ declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
238
220
 
239
221
  declare interface Context {
240
222
  /**
@@ -284,38 +266,7 @@ export declare type Count<O> = {
284
266
  [K in keyof O]: Count<number>;
285
267
  } & {};
286
268
 
287
- export declare function createParam(name: string): Param<unknown, string>;
288
-
289
- /**
290
- * Custom fetch function for `DataProxyEngine`.
291
- *
292
- * We can't use the actual type of `globalThis.fetch` because this will result
293
- * in API Extractor referencing Node.js type definitions in the `.d.ts` bundle
294
- * for the client runtime. We can only use such types in internal types that
295
- * don't end up exported anywhere.
296
-
297
- * It's also not possible to write a definition of `fetch` that would accept the
298
- * actual `fetch` function from different environments such as Node.js and
299
- * Cloudflare Workers (with their extensions to `RequestInit` and `Response`).
300
- * `fetch` is used in both covariant and contravariant positions in
301
- * `CustomDataProxyFetch`, making it invariant, so we need the exact same type.
302
- * Even if we removed the argument and left `fetch` in covariant position only,
303
- * then for an extension-supplied function to be assignable to `customDataProxyFetch`,
304
- * the platform-specific (or custom) `fetch` function needs to be assignable
305
- * to our `fetch` definition. This, in turn, requires the third-party `Response`
306
- * to be a subtype of our `Response` (which is not a problem, we could declare
307
- * a minimal `Response` type that only includes what we use) *and* requires the
308
- * third-party `RequestInit` to be a supertype of our `RequestInit` (i.e. we
309
- * have to declare all properties any `RequestInit` implementation in existence
310
- * could possibly have), which is not possible.
311
- *
312
- * Since `@prisma/extension-accelerate` redefines the type of
313
- * `__internalParams.customDataProxyFetch` to its own type anyway (probably for
314
- * exactly this reason), our definition is never actually used and is completely
315
- * ignored, so it doesn't matter, and we can just use `unknown` as the type of
316
- * `fetch` here.
317
- */
318
- declare type CustomDataProxyFetch = (fetch: unknown) => unknown;
269
+ declare type CustomDataProxyFetch = (fetch: Fetch) => Fetch;
319
270
 
320
271
  declare class DataLoader<T = unknown> {
321
272
  private options;
@@ -668,12 +619,8 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
668
619
 
669
620
  declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
670
621
 
671
- declare type DeserializedResponse = Array<Record<string, unknown>>;
672
-
673
622
  export declare function deserializeJsonResponse(result: unknown): unknown;
674
623
 
675
- export declare function deserializeRawResult(response: RawResponse): DeserializedResponse;
676
-
677
624
  export declare type DevTypeMapDef = {
678
625
  meta: {
679
626
  modelProps: string;
@@ -742,7 +689,6 @@ export declare namespace DMMF {
742
689
  export type Model = ReadonlyDeep_2<{
743
690
  name: string;
744
691
  dbName: string | null;
745
- schema: string | null;
746
692
  fields: Field[];
747
693
  uniqueFields: string[][];
748
694
  uniqueIndexes: uniqueIndex[];
@@ -768,25 +714,18 @@ export declare namespace DMMF {
768
714
  * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
769
715
  */
770
716
  type: string;
771
- /**
772
- * Native database type, if specified.
773
- * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
774
- * `@db.Text` is encoded as `['Text', []]`.
775
- */
776
- nativeType?: [string, string[]] | null;
777
717
  dbName?: string | null;
778
718
  hasDefaultValue: boolean;
779
719
  default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
780
720
  relationFromFields?: string[];
781
721
  relationToFields?: string[];
782
722
  relationOnDelete?: string;
783
- relationOnUpdate?: string;
784
723
  relationName?: string;
785
724
  documentation?: string;
786
725
  }>;
787
726
  export type FieldDefault = ReadonlyDeep_2<{
788
727
  name: string;
789
- args: Array<string | number>;
728
+ args: any[];
790
729
  }>;
791
730
  export type FieldDefaultScalar = string | boolean | number;
792
731
  export type Index = ReadonlyDeep_2<{
@@ -900,7 +839,6 @@ export declare namespace DMMF {
900
839
  createManyAndReturn?: string | null;
901
840
  update?: string | null;
902
841
  updateMany?: string | null;
903
- updateManyAndReturn?: string | null;
904
842
  upsert?: string | null;
905
843
  delete?: string | null;
906
844
  deleteMany?: string | null;
@@ -921,7 +859,6 @@ export declare namespace DMMF {
921
859
  createManyAndReturn = "createManyAndReturn",
922
860
  update = "update",
923
861
  updateMany = "updateMany",
924
- updateManyAndReturn = "updateManyAndReturn",
925
862
  upsert = "upsert",
926
863
  delete = "delete",
927
864
  deleteMany = "deleteMany",
@@ -1100,7 +1037,7 @@ declare interface Engine<InteractiveTransactionPayload = unknown> {
1100
1037
  start(): Promise<void>;
1101
1038
  stop(): Promise<void>;
1102
1039
  version(forceRun?: boolean): Promise<string> | string;
1103
- request<T>(query: JsonQuery, options: RequestOptions<InteractiveTransactionPayload>): Promise<QueryEngineResultData<T>>;
1040
+ request<T>(query: JsonQuery, options: RequestOptions_2<InteractiveTransactionPayload>): Promise<QueryEngineResult<T>>;
1104
1041
  requestBatch<T>(queries: JsonQuery[], options: RequestBatchOptions<InteractiveTransactionPayload>): Promise<BatchQueryEngineResult<T>[]>;
1105
1042
  transaction(action: 'start', headers: Transaction_2.TransactionHeaders, options: Transaction_2.Options): Promise<Transaction_2.InteractiveTransactionInfo<unknown>>;
1106
1043
  transaction(action: 'commit', headers: Transaction_2.TransactionHeaders, info: Transaction_2.InteractiveTransactionInfo<unknown>): Promise<void>;
@@ -1167,8 +1104,7 @@ declare interface EngineConfig {
1167
1104
  /**
1168
1105
  * Web Assembly module loading configuration
1169
1106
  */
1170
- engineWasm?: EngineWasmLoadingConfig;
1171
- compilerWasm?: CompilerWasmLoadingConfig;
1107
+ engineWasm?: WasmLoadingConfig;
1172
1108
  /**
1173
1109
  * Allows Accelerate to use runtime utilities from the client. These are
1174
1110
  * necessary for the AccelerateEngine to function correctly.
@@ -1193,38 +1129,28 @@ declare type EngineEventType = QueryEventType | LogEventType;
1193
1129
  declare type EngineProtocol = 'graphql' | 'json';
1194
1130
 
1195
1131
  declare type EngineSpan = {
1196
- id: EngineSpanId;
1197
- parentId: string | null;
1132
+ span: boolean;
1198
1133
  name: string;
1199
- startTime: HrTime;
1200
- endTime: HrTime;
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
+ }[];
1201
1144
  kind: EngineSpanKind;
1202
- attributes?: Record<string, unknown>;
1203
- links?: EngineSpanId[];
1204
1145
  };
1205
1146
 
1206
- declare type EngineSpanId = string;
1147
+ declare type EngineSpanEvent = {
1148
+ span: boolean;
1149
+ spans: EngineSpan[];
1150
+ };
1207
1151
 
1208
1152
  declare type EngineSpanKind = 'client' | 'internal';
1209
1153
 
1210
- declare type EngineWasmLoadingConfig = {
1211
- /**
1212
- * WASM-bindgen runtime for corresponding module
1213
- */
1214
- getRuntime: () => {
1215
- __wbg_set_wasm(exports: unknown): any;
1216
- QueryEngine: QueryEngineConstructor;
1217
- };
1218
- /**
1219
- * Loads the raw wasm module for the wasm query engine. This configuration is
1220
- * generated specifically for each type of client, eg. Node.js client and Edge
1221
- * clients will have different implementations.
1222
- * @remarks this is a callback on purpose, we only load the wasm if needed.
1223
- * @remarks only used by LibraryEngine
1224
- */
1225
- getQueryEngineWasmModule: () => Promise<unknown>;
1226
- };
1227
-
1228
1154
  declare type EnvPaths = {
1229
1155
  rootEnvPath: string | null;
1230
1156
  schemaEnvPath: string | undefined;
@@ -1422,6 +1348,8 @@ export declare type ExtractGlobalOmit<Options, ModelName extends string> = Optio
1422
1348
  };
1423
1349
  } ? GlobalOmit : {};
1424
1350
 
1351
+ declare type Fetch = typeof nodeFetch;
1352
+
1425
1353
  /**
1426
1354
  * A reference to a specific field of a specific model
1427
1355
  */
@@ -1432,8 +1360,6 @@ export declare interface FieldRef<Model, FieldType> {
1432
1360
  readonly isList: boolean;
1433
1361
  }
1434
1362
 
1435
- declare type Flavour = 'mysql' | 'postgres' | 'sqlite';
1436
-
1437
1363
  export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
1438
1364
 
1439
1365
  export declare interface Fn<Params = unknown, Returns = unknown> {
@@ -1494,9 +1420,7 @@ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions>
1494
1420
  } ? O : K extends '_count' ? Count<P['objects']> : never;
1495
1421
  } & (A extends {
1496
1422
  include: any;
1497
- } & Record<string, unknown> ? DefaultSelection<P, A & {
1498
- omit: A['omit'];
1499
- }, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1423
+ } & Record<string, unknown> ? DefaultSelection<P, A, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1500
1424
 
1501
1425
  export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
1502
1426
  by: string[];
@@ -1570,7 +1494,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1570
1494
  * @param values
1571
1495
  * @returns
1572
1496
  */
1573
- $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown, any>;
1497
+ $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1574
1498
  /**
1575
1499
  * Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections
1576
1500
  * @see https://github.com/prisma/prisma/issues/7142
@@ -1579,14 +1503,14 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1579
1503
  * @param values
1580
1504
  * @returns
1581
1505
  */
1582
- $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown, any>;
1506
+ $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
1583
1507
  /**
1584
1508
  * Executes a raw command only for MongoDB
1585
1509
  *
1586
1510
  * @param command
1587
1511
  * @returns
1588
1512
  */
1589
- $runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown, any>;
1513
+ $runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown>;
1590
1514
  /**
1591
1515
  * Executes a raw query and returns selected data
1592
1516
  */
@@ -1599,12 +1523,12 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1599
1523
  * @param values
1600
1524
  * @returns
1601
1525
  */
1602
- $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown, any>;
1526
+ $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1603
1527
  /**
1604
1528
  * Counterpart to $queryRaw, that returns strongly typed results
1605
1529
  * @param typedSql
1606
1530
  */
1607
- $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown, any>;
1531
+ $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
1608
1532
  /**
1609
1533
  * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
1610
1534
  * @see https://github.com/prisma/prisma/issues/7142
@@ -1613,7 +1537,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1613
1537
  * @param values
1614
1538
  * @returns
1615
1539
  */
1616
- $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown, any>;
1540
+ $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
1617
1541
  /**
1618
1542
  * Execute a batch of requests in a transaction
1619
1543
  * @param requests
@@ -1736,8 +1660,7 @@ declare type GetPrismaClientConfig = {
1736
1660
  /**
1737
1661
  * Optional wasm loading configuration
1738
1662
  */
1739
- engineWasm?: EngineWasmLoadingConfig;
1740
- compilerWasm?: CompilerWasmLoadingConfig;
1663
+ engineWasm?: WasmLoadingConfig;
1741
1664
  };
1742
1665
 
1743
1666
  export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', ClientOptions = {}> = {
@@ -1751,7 +1674,6 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
1751
1674
  createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1752
1675
  update: GetFindResult<Payload, Args, ClientOptions>;
1753
1676
  updateMany: GetBatchResult;
1754
- updateManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1755
1677
  upsert: GetFindResult<Payload, Args, ClientOptions>;
1756
1678
  delete: GetFindResult<Payload, Args, ClientOptions>;
1757
1679
  deleteMany: GetBatchResult;
@@ -1796,8 +1718,6 @@ declare type HandleErrorParams = {
1796
1718
  globalOmit?: GlobalOmitOptions;
1797
1719
  };
1798
1720
 
1799
- declare type HrTime = [number, number];
1800
-
1801
1721
  /**
1802
1722
  * Defines High-Resolution Time.
1803
1723
  *
@@ -1810,7 +1730,7 @@ declare type HrTime = [number, number];
1810
1730
  * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000.
1811
1731
  * This is represented in HrTime format as [1609504210, 150000000].
1812
1732
  */
1813
- declare type HrTime_2 = [number, number];
1733
+ declare type HrTime = [number, number];
1814
1734
 
1815
1735
  /**
1816
1736
  * Matches a JSON array.
@@ -1916,7 +1836,7 @@ declare type InternalRequestParams = {
1916
1836
  /** Used to convert args for middleware and back */
1917
1837
  middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>;
1918
1838
  /** Used for Accelerate client extension via Data Proxy */
1919
- customDataProxyFetch?: CustomDataProxyFetch;
1839
+ customDataProxyFetch?: (fetch: Fetch) => Fetch;
1920
1840
  } & Omit<QueryMiddlewareParams, 'runInTransaction'>;
1921
1841
 
1922
1842
  declare enum IsolationLevel {
@@ -2002,7 +1922,7 @@ export declare type JsonQuery = {
2002
1922
  query: JsonFieldSelection;
2003
1923
  };
2004
1924
 
2005
- declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'updateManyAndReturn' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
1925
+ declare type JsonQueryAction = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'findMany' | 'createOne' | 'createMany' | 'createManyAndReturn' | 'updateOne' | 'updateMany' | 'deleteOne' | 'deleteMany' | 'upsertOne' | 'aggregate' | 'groupBy' | 'executeRaw' | 'queryRaw' | 'runCommandRaw' | 'findRaw' | 'aggregateRaw';
2006
1926
 
2007
1927
  declare type JsonSelectionSet = {
2008
1928
  $scalars?: boolean;
@@ -2246,6 +2166,37 @@ export declare type Narrowable = string | number | bigint | boolean | [];
2246
2166
 
2247
2167
  export declare type NeverToUnknown<T> = [T] extends [never] ? unknown : T;
2248
2168
 
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
+
2249
2200
  declare class NullTypesEnumValue extends ObjectEnumValue {
2250
2201
  _getNamespace(): string;
2251
2202
  }
@@ -2289,7 +2240,7 @@ export { Omit_2 as Omit }
2289
2240
 
2290
2241
  export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
2291
2242
 
2292
- 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';
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';
2293
2244
 
2294
2245
  export declare type OperationPayload = {
2295
2246
  name: string;
@@ -2339,12 +2290,6 @@ export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
2339
2290
  };
2340
2291
  }[A][B];
2341
2292
 
2342
- export declare function Param<$Type, $Value extends string>(name: $Value): Param<$Type, $Value>;
2343
-
2344
- export declare type Param<out $Type, $Value extends string> = {
2345
- readonly name: $Value;
2346
- };
2347
-
2348
2293
  export declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
2349
2294
 
2350
2295
  export declare type Path<O, P, Default = never> = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path<O[K], R> : Default : O : never;
@@ -2462,12 +2407,6 @@ export declare class PrismaClientValidationError extends Error {
2462
2407
 
2463
2408
  declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError;
2464
2409
 
2465
- declare type PrismaOperationSpec<TArgs, TAction = string> = {
2466
- args: TArgs;
2467
- action: TAction;
2468
- model: string;
2469
- };
2470
-
2471
2410
  export declare interface PrismaPromise<T> extends Promise<T> {
2472
2411
  [Symbol.toStringTag]: 'PrismaPromise';
2473
2412
  }
@@ -2477,27 +2416,26 @@ export declare interface PrismaPromise<T> extends Promise<T> {
2477
2416
  * original `Promise` are optional so that it can be backwards-compatible.
2478
2417
  * @see [[createPrismaPromise]]
2479
2418
  */
2480
- declare interface PrismaPromise_2<TResult, TSpec extends PrismaOperationSpec<unknown> = any> extends Promise<TResult> {
2481
- get spec(): TSpec;
2419
+ declare interface PrismaPromise_2<A> extends Promise<A> {
2482
2420
  /**
2483
2421
  * Extension of the original `.then` function
2484
2422
  * @param onfulfilled same as regular promises
2485
2423
  * @param onrejected same as regular promises
2486
2424
  * @param transaction transaction options
2487
2425
  */
2488
- then<R1 = TResult, R2 = never>(onfulfilled?: (value: TResult) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
2426
+ then<R1 = A, R2 = never>(onfulfilled?: (value: A) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
2489
2427
  /**
2490
2428
  * Extension of the original `.catch` function
2491
2429
  * @param onrejected same as regular promises
2492
2430
  * @param transaction transaction options
2493
2431
  */
2494
- catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<TResult | R>;
2432
+ catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A | R>;
2495
2433
  /**
2496
2434
  * Extension of the original `.finally` function
2497
2435
  * @param onfinally same as regular promises
2498
2436
  * @param transaction transaction options
2499
2437
  */
2500
- finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<TResult>;
2438
+ finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A>;
2501
2439
  /**
2502
2440
  * Called when executing a batch of regular tx
2503
2441
  * @param transaction transaction options for batch tx
@@ -2513,7 +2451,7 @@ declare type PrismaPromiseBatchTransaction = {
2513
2451
  lock: PromiseLike<void>;
2514
2452
  };
2515
2453
 
2516
- declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => Promise<unknown>;
2454
+ declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => PrismaPromise_2<unknown>;
2517
2455
 
2518
2456
  /**
2519
2457
  * Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which
@@ -2524,7 +2462,7 @@ declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) =>
2524
2462
  * @see [[PrismaPromise]]
2525
2463
  * @returns
2526
2464
  */
2527
- declare type PrismaPromiseFactory = <T extends PrismaOperationSpec<unknown>>(callback: PrismaPromiseCallback, op?: T) => PrismaPromise_2<unknown>;
2465
+ declare type PrismaPromiseFactory = (callback: PrismaPromiseCallback) => PrismaPromise_2<unknown>;
2528
2466
 
2529
2467
  declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
2530
2468
  kind: 'itx';
@@ -2561,7 +2499,7 @@ declare type Query = {
2561
2499
  };
2562
2500
 
2563
2501
  declare interface Queryable {
2564
- readonly provider: Flavour;
2502
+ readonly provider: 'mysql' | 'postgres' | 'sqlite';
2565
2503
  readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
2566
2504
  /**
2567
2505
  * Execute a query given as SQL, interpolating the given parameters,
@@ -2580,20 +2518,6 @@ declare interface Queryable {
2580
2518
  executeRaw(params: Query): Promise<Result_4<number>>;
2581
2519
  }
2582
2520
 
2583
- declare type QueryCompiler = {
2584
- compile(request: string): Promise<string>;
2585
- };
2586
-
2587
- declare interface QueryCompilerConstructor {
2588
- new (options: QueryCompilerOptions): QueryCompiler;
2589
- }
2590
-
2591
- declare type QueryCompilerOptions = {
2592
- datamodel: string;
2593
- flavour: Flavour;
2594
- connectionInfo: ConnectionInfo;
2595
- };
2596
-
2597
2521
  declare type QueryEngineBatchGraphQLRequest = {
2598
2522
  batch: QueryEngineRequest[];
2599
2523
  transaction?: boolean;
@@ -2610,8 +2534,8 @@ declare type QueryEngineConfig = {
2610
2534
  datasourceOverrides: Record<string, string>;
2611
2535
  env: Record<string, string | undefined>;
2612
2536
  logLevel: QueryEngineLogLevel;
2537
+ telemetry?: QueryEngineTelemetry;
2613
2538
  engineProtocol: EngineProtocol;
2614
- enableTracing: boolean;
2615
2539
  };
2616
2540
 
2617
2541
  declare interface QueryEngineConstructor {
@@ -2619,20 +2543,20 @@ declare interface QueryEngineConstructor {
2619
2543
  }
2620
2544
 
2621
2545
  declare type QueryEngineInstance = {
2622
- connect(headers: string, requestId: string): Promise<void>;
2623
- disconnect(headers: string, requestId: string): Promise<void>;
2546
+ connect(headers: string): Promise<void>;
2547
+ disconnect(headers: string): Promise<void>;
2624
2548
  /**
2625
2549
  * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest`
2626
2550
  * @param headersStr JSON.stringified `QueryEngineRequestHeaders`
2627
2551
  */
2628
- query(requestStr: string, headersStr: string, transactionId: string | undefined, requestId: string): Promise<string>;
2629
- sdlSchema?(): Promise<string>;
2630
- startTransaction(options: string, traceHeaders: string, requestId: string): Promise<string>;
2631
- commitTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2632
- rollbackTransaction(id: string, traceHeaders: string, requestId: string): Promise<string>;
2633
- metrics?(options: string): Promise<string>;
2634
- applyPendingMigrations?(): Promise<void>;
2635
- trace(requestId: string): Promise<string | null>;
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>;
2636
2560
  };
2637
2561
 
2638
2562
  declare type QueryEngineLogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'off';
@@ -2642,8 +2566,14 @@ declare type QueryEngineRequest = {
2642
2566
  variables: Object;
2643
2567
  };
2644
2568
 
2645
- declare type QueryEngineResultData<T> = {
2569
+ declare type QueryEngineResult<T> = {
2646
2570
  data: T;
2571
+ elapsed: number;
2572
+ };
2573
+
2574
+ declare type QueryEngineTelemetry = {
2575
+ enabled: Boolean;
2576
+ endpoint: string;
2647
2577
  };
2648
2578
 
2649
2579
  declare type QueryEvent = {
@@ -2656,8 +2586,6 @@ declare type QueryEvent = {
2656
2586
 
2657
2587
  declare type QueryEventType = 'query';
2658
2588
 
2659
- 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';
2660
-
2661
2589
  declare type QueryMiddleware = (params: QueryMiddlewareParams, next: (params: QueryMiddlewareParams) => Promise<unknown>) => Promise<unknown>;
2662
2590
 
2663
2591
  declare type QueryMiddlewareParams = {
@@ -2701,12 +2629,6 @@ export declare type RawParameters = {
2701
2629
 
2702
2630
  export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
2703
2631
 
2704
- declare type RawResponse = {
2705
- columns: string[];
2706
- types: QueryIntrospectionBuiltinType[];
2707
- rows: unknown[][];
2708
- };
2709
-
2710
2632
  declare type RawTaggedValue = {
2711
2633
  $type: 'Raw';
2712
2634
  value: unknown;
@@ -2739,7 +2661,7 @@ declare type RequestBatchOptions<InteractiveTransactionPayload> = {
2739
2661
  traceparent?: string;
2740
2662
  numTry?: number;
2741
2663
  containsWrite: boolean;
2742
- customDataProxyFetch?: CustomDataProxyFetch;
2664
+ customDataProxyFetch?: (fetch: Fetch) => Fetch;
2743
2665
  };
2744
2666
 
2745
2667
  declare interface RequestError {
@@ -2759,7 +2681,7 @@ declare class RequestHandler {
2759
2681
  private logEmitter?;
2760
2682
  constructor(client: Client, logEmitter?: LogEmitter);
2761
2683
  request(params: RequestParams): Promise<any>;
2762
- mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResultData<any>): any;
2684
+ mapQueryEngineResult({ dataPath, unpacker }: RequestParams, response: QueryEngineResult<any>): any;
2763
2685
  /**
2764
2686
  * Handles the error and logs it, logging the error is done synchronously waiting for the event
2765
2687
  * handlers to finish.
@@ -2771,12 +2693,18 @@ declare class RequestHandler {
2771
2693
  get [Symbol.toStringTag](): string;
2772
2694
  }
2773
2695
 
2774
- declare type RequestOptions<InteractiveTransactionPayload> = {
2696
+ declare type RequestOptions = {
2697
+ method?: string;
2698
+ headers?: Record<string, string>;
2699
+ body?: string;
2700
+ };
2701
+
2702
+ declare type RequestOptions_2<InteractiveTransactionPayload> = {
2775
2703
  traceparent?: string;
2776
2704
  numTry?: number;
2777
2705
  interactiveTransaction?: InteractiveTransactionOptions<InteractiveTransactionPayload>;
2778
2706
  isWrite: boolean;
2779
- customDataProxyFetch?: CustomDataProxyFetch;
2707
+ customDataProxyFetch?: (fetch: Fetch) => Fetch;
2780
2708
  };
2781
2709
 
2782
2710
  declare type RequestParams = {
@@ -2794,7 +2722,17 @@ declare type RequestParams = {
2794
2722
  otelParentCtx?: Context;
2795
2723
  otelChildCtx?: Context;
2796
2724
  globalOmit?: GlobalOmitOptions;
2797
- customDataProxyFetch?: CustomDataProxyFetch;
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>;
2798
2736
  };
2799
2737
 
2800
2738
  declare type RequiredExtensionArgs = NameArgs & ResultArgs & ModelArgs & ClientArgs & QueryOptions;
@@ -3237,7 +3175,7 @@ export declare function sqltag(strings: readonly string[], ...values: readonly R
3237
3175
  *
3238
3176
  * hrtime, epoch milliseconds, performance.now() or Date
3239
3177
  */
3240
- declare type TimeInput = HrTime_2 | number | Date;
3178
+ declare type TimeInput = HrTime | number | Date;
3241
3179
 
3242
3180
  export declare type ToTuple<T> = T extends any[] ? T : [T];
3243
3181
 
@@ -3282,7 +3220,7 @@ declare interface TraceState {
3282
3220
  declare interface TracingHelper {
3283
3221
  isEnabled(): boolean;
3284
3222
  getTraceParent(context?: Context): string;
3285
- dispatchEngineSpans(spans: EngineSpan[]): void;
3223
+ createEngineSpan(engineSpanEvent: EngineSpanEvent): void;
3286
3224
  getActiveContext(): Context | undefined;
3287
3225
  runInChildSpan<R>(nameOrOptions: string | ExtendedSpanOptions, callback: SpanCallback<R>): R;
3288
3226
  }
@@ -3444,4 +3382,22 @@ export declare function warnEnvConflicts(envPaths: any): void;
3444
3382
 
3445
3383
  export declare const warnOnce: (key: string, message: string, ...args: unknown[]) => void;
3446
3384
 
3385
+ declare type WasmLoadingConfig = {
3386
+ /**
3387
+ * WASM-bindgen runtime for corresponding module
3388
+ */
3389
+ getRuntime: () => {
3390
+ __wbg_set_wasm(exports: unknown): any;
3391
+ QueryEngine: QueryEngineConstructor;
3392
+ };
3393
+ /**
3394
+ * Loads the raw wasm module for the wasm query engine. This configuration is
3395
+ * generated specifically for each type of client, eg. Node.js client and Edge
3396
+ * clients will have different implementations.
3397
+ * @remarks this is a callback on purpose, we only load the wasm if needed.
3398
+ * @remarks only used by LibraryEngine.ts
3399
+ */
3400
+ getQueryEngineWasmModule: () => Promise<unknown>;
3401
+ };
3402
+
3447
3403
  export { }