expo-backend-types 0.24.0 → 0.25.0

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 (30) hide show
  1. package/dist/src/i18n/es.d.ts +24 -0
  2. package/dist/src/i18n/es.js +24 -0
  3. package/dist/src/i18n/es.js.map +1 -1
  4. package/dist/src/image/dto/delete-image.dto.d.ts +18 -0
  5. package/dist/src/image/dto/delete-image.dto.js +12 -0
  6. package/dist/src/image/dto/image.dto.d.ts +24 -0
  7. package/dist/src/image/dto/image.dto.js +18 -0
  8. package/dist/src/image/dto/update-image.dto.d.ts +18 -0
  9. package/dist/src/image/dto/update-image.dto.js +15 -0
  10. package/dist/src/image/exports.d.ts +3 -0
  11. package/dist/src/image/exports.js +20 -0
  12. package/dist/types/prisma-schema/default.d.ts +1 -1
  13. package/dist/types/prisma-schema/edge.d.ts +1 -1
  14. package/dist/types/prisma-schema/edge.js +11 -7
  15. package/dist/types/prisma-schema/index-browser.js +7 -4
  16. package/dist/types/prisma-schema/index.d.ts +803 -1034
  17. package/dist/types/prisma-schema/index.js +11 -7
  18. package/dist/types/prisma-schema/libquery_engine-debian-openssl-1.1.x.so.node +0 -0
  19. package/dist/types/prisma-schema/package.json +14 -1
  20. package/dist/types/prisma-schema/runtime/edge-esm.js +21 -18
  21. package/dist/types/prisma-schema/runtime/edge.js +21 -18
  22. package/dist/types/prisma-schema/runtime/index-browser.js +1 -1
  23. package/dist/types/prisma-schema/runtime/library.d.ts +297 -87
  24. package/dist/types/prisma-schema/runtime/library.js +64 -61
  25. package/dist/types/prisma-schema/runtime/react-native.js +31 -28
  26. package/dist/types/prisma-schema/runtime/wasm.js +22 -19
  27. package/dist/types/prisma-schema/wasm.d.ts +1 -1
  28. package/dist/types/prisma-schema/wasm.js +7 -4
  29. package/dist/types/schema.d.ts +120 -0
  30. package/package.json +5 -3
@@ -23,6 +23,8 @@ 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'>;
27
+
26
28
  export declare type Aggregate = '_count' | '_max' | '_min' | '_avg' | '_sum';
27
29
 
28
30
  export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args extends Record<string, any>, K extends PropertyKey> = Args extends {
@@ -36,6 +38,10 @@ export declare type AllModelsToStringIndex<TypeMap extends TypeMapDef, Args exte
36
38
  declare class AnyNull extends NullTypesEnumValue {
37
39
  }
38
40
 
41
+ export declare type ApplyOmit<T, OmitConfig> = Compute<{
42
+ [K in keyof T as OmitValue<OmitConfig, K> extends true ? never : K]: T[K];
43
+ }>;
44
+
39
45
  export declare type Args<T, F extends Operation> = T extends {
40
46
  [K: symbol]: {
41
47
  types: {
@@ -50,6 +56,13 @@ export declare type Args<T, F extends Operation> = T extends {
50
56
 
51
57
  export declare type Args_3<T, F extends Operation> = Args<T, F>;
52
58
 
59
+ /**
60
+ * Original `quaint::ValueType` enum tag from Prisma's `quaint`.
61
+ * Query arguments marked with this type are sanitized before being sent to the database.
62
+ * Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
63
+ */
64
+ declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
65
+
53
66
  /**
54
67
  * Attributes is a map from string to attribute values.
55
68
  *
@@ -66,7 +79,9 @@ declare interface Attributes {
66
79
  */
67
80
  declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
68
81
 
69
- export declare type BaseDMMF = Pick<DMMF.Document, 'datamodel'>;
82
+ export declare type BaseDMMF = {
83
+ readonly datamodel: Omit<DMMF.Datamodel, 'indexes'>;
84
+ };
70
85
 
71
86
  declare type BatchArgs = {
72
87
  queries: BatchQuery[];
@@ -126,7 +141,20 @@ export declare type ClientArgs = {
126
141
  client: ClientArg;
127
142
  };
128
143
 
129
- export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never>;
144
+ export declare type ClientBuiltInProp = keyof DynamicClientExtensionThisBuiltin<never, never, never, never>;
145
+
146
+ export declare type ClientOptionDef = undefined | {
147
+ [K in string]: any;
148
+ };
149
+
150
+ export declare type ClientOtherOps = {
151
+ $queryRaw<T = unknown>(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<T>;
152
+ $queryRawTyped<T>(query: TypedSql<unknown[], T>): PrismaPromise<T[]>;
153
+ $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<T>;
154
+ $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<number>;
155
+ $executeRawUnsafe(query: string, ...values: any[]): PrismaPromise<number>;
156
+ $runCommandRaw(command: InputJsonObject): PrismaPromise<JsonObject>;
157
+ };
130
158
 
131
159
  declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
132
160
 
@@ -185,8 +213,11 @@ declare type ComputedFieldsMap = {
185
213
 
186
214
  declare type ConnectionInfo = {
187
215
  schemaName?: string;
216
+ maxBindValues?: number;
188
217
  };
189
218
 
219
+ declare type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
220
+
190
221
  declare interface Context {
191
222
  /**
192
223
  * Get a value from the context.
@@ -574,9 +605,13 @@ export declare interface DecimalJsLike {
574
605
 
575
606
  export declare type DefaultArgs = InternalArgs<{}, {}, {}, {}>;
576
607
 
577
- export declare type DefaultSelection<P> = UnwrapPayload<{
578
- default: P;
579
- }>['default'];
608
+ export declare type DefaultSelection<Payload extends OperationPayload, Args = {}, ClientOptions = {}> = Args extends {
609
+ omit: infer LocalOmit;
610
+ } ? ApplyOmit<UnwrapPayload<{
611
+ default: Payload;
612
+ }>['default'], PatchFlat<LocalOmit, ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>> : ApplyOmit<UnwrapPayload<{
613
+ default: Payload;
614
+ }>['default'], ExtractGlobalOmit<ClientOptions, Uncapitalize<Payload['name']>>>;
580
615
 
581
616
  export declare function defineDmmfProperty(target: object, runtimeDataModel: RuntimeDataModel): void;
582
617
 
@@ -584,6 +619,8 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
584
619
 
585
620
  declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
586
621
 
622
+ export declare function deserializeJsonResponse(result: unknown): unknown;
623
+
587
624
  export declare type DevTypeMapDef = {
588
625
  meta: {
589
626
  modelProps: string;
@@ -639,6 +676,7 @@ export declare namespace DMMF {
639
676
  models: Model[];
640
677
  enums: DatamodelEnum[];
641
678
  types: Model[];
679
+ indexes: Index[];
642
680
  }>;
643
681
  export type uniqueIndex = ReadonlyDeep_2<{
644
682
  name: string;
@@ -690,6 +728,24 @@ export declare namespace DMMF {
690
728
  args: any[];
691
729
  }>;
692
730
  export type FieldDefaultScalar = string | boolean | number;
731
+ export type Index = ReadonlyDeep_2<{
732
+ model: string;
733
+ type: IndexType;
734
+ isDefinedOnField: boolean;
735
+ name?: string;
736
+ dbName?: string;
737
+ algorithm?: string;
738
+ clustered?: boolean;
739
+ fields: IndexField[];
740
+ }>;
741
+ export type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
742
+ export type IndexField = ReadonlyDeep_2<{
743
+ name: string;
744
+ sortOrder?: SortOrder;
745
+ length?: number;
746
+ operatorClass?: string;
747
+ }>;
748
+ export type SortOrder = 'asc' | 'desc';
693
749
  export type Schema = ReadonlyDeep_2<{
694
750
  rootQueryType?: string;
695
751
  rootMutationType?: string;
@@ -814,11 +870,13 @@ export declare namespace DMMF {
814
870
  }
815
871
  }
816
872
 
873
+ export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
874
+
817
875
  export declare interface DriverAdapter extends Queryable {
818
876
  /**
819
877
  * Starts new transaction.
820
878
  */
821
- startTransaction(): Promise<Result_4<Transaction>>;
879
+ transactionContext(): Promise<Result_4<TransactionContext>>;
822
880
  /**
823
881
  * Optional method that returns extra connection info
824
882
  */
@@ -826,36 +884,38 @@ export declare interface DriverAdapter extends Queryable {
826
884
  }
827
885
 
828
886
  /** Client */
829
- export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
887
+ export declare type DynamicClientExtensionArgs<C_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
830
888
  [P in keyof C_]: unknown;
831
889
  } & {
832
890
  [K: symbol]: {
833
- ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList> & {
834
- $parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>;
891
+ ctx: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList> & {
892
+ $parent: Optional<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>;
835
893
  };
836
894
  };
837
895
  };
838
896
 
839
- export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
897
+ export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
840
898
  [P in keyof ExtArgs['client']]: Return<ExtArgs['client'][P]>;
841
899
  } & {
842
- [P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs>;
900
+ [P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs, ClientOptions>;
843
901
  } & {
844
- [P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: <R = GetResult<TypeMap['other']['payload'], any, P & Operation>>(...args: ToTuple<TypeMap['other']['operations'][P]['args']>) => PrismaPromise<R>;
902
+ [P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: P extends keyof ClientOtherOps ? ClientOtherOps[P] : never;
845
903
  } & {
846
- [P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs>[P];
904
+ [P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs, ClientOptions>[P];
847
905
  } & {
848
906
  [K: symbol]: {
849
907
  types: TypeMap['other'];
850
908
  };
851
909
  };
852
910
 
853
- export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
854
- $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs>;
911
+ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
912
+ $extends: ExtendsHook<'extends', TypeMapCb, ExtArgs, Call<TypeMapCb, {
913
+ extArgs: ExtArgs;
914
+ }>, ClientOptions>;
855
915
  $transaction<P extends PrismaPromise<any>[]>(arg: [...P], options?: {
856
916
  isolationLevel?: TypeMap['meta']['txIsolationLevel'];
857
917
  }): Promise<UnwrapTuple<P>>;
858
- $transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>, ITXClientDenyList>) => Promise<R>, options?: {
918
+ $transaction<R>(fn: (client: Omit<DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>, ITXClientDenyList>) => Promise<R>, options?: {
859
919
  maxWait?: number;
860
920
  timeout?: number;
861
921
  isolationLevel?: TypeMap['meta']['txIsolationLevel'];
@@ -865,7 +925,7 @@ export declare type DynamicClientExtensionThisBuiltin<TypeMap extends TypeMapDef
865
925
  };
866
926
 
867
927
  /** Model */
868
- export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>> = {
928
+ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, ClientOptions> = {
869
929
  [K in keyof M_]: K extends '$allModels' ? {
870
930
  [P in keyof M_[K]]?: unknown;
871
931
  } & {
@@ -874,8 +934,8 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
874
934
  [P in keyof M_[K]]?: unknown;
875
935
  } & {
876
936
  [K: symbol]: {
877
- ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs> & {
878
- $parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>;
937
+ ctx: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, K>, ExtArgs, ClientOptions> & {
938
+ $parent: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>;
879
939
  } & {
880
940
  $name: ModelKey<TypeMap, K>;
881
941
  } & {
@@ -888,26 +948,26 @@ export declare type DynamicModelExtensionArgs<M_, TypeMap extends TypeMapDef, Ty
888
948
  } : never;
889
949
  };
890
950
 
891
- export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null> = {
951
+ export declare type DynamicModelExtensionFluentApi<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, Null, ClientOptions> = {
892
952
  [K in keyof TypeMap['model'][M]['payload']['objects']]: <A>(args?: Exact<A, Path<TypeMap['model'][M]['operations'][P]['args']['select'], [K]>>) => PrismaPromise<Path<DynamicModelExtensionFnResultBase<TypeMap, M, {
893
953
  select: {
894
954
  [P in K]: A;
895
955
  };
896
- }, P>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>>;
956
+ }, P, ClientOptions>, [K]> | Null> & DynamicModelExtensionFluentApi<TypeMap, (TypeMap['model'][M]['payload']['objects'][K] & {})['name'], P, Null | Select<TypeMap['model'][M]['payload']['objects'][K], null>, ClientOptions>;
897
957
  };
898
958
 
899
- export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null = DynamicModelExtensionFnResultNull<P>> = P extends FluentOperation ? DynamicModelExtensionFluentApi<TypeMap, M, P, Null> & PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P> | Null> : PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P>>;
959
+ export declare type DynamicModelExtensionFnResult<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, Null, ClientOptions> = P extends FluentOperation ? DynamicModelExtensionFluentApi<TypeMap, M, P, Null, ClientOptions> & PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P, ClientOptions> | Null> : PrismaPromise<DynamicModelExtensionFnResultBase<TypeMap, M, A, P, ClientOptions>>;
900
960
 
901
- export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation>;
961
+ export declare type DynamicModelExtensionFnResultBase<TypeMap extends TypeMapDef, M extends PropertyKey, A, P extends PropertyKey, ClientOptions> = GetResult<TypeMap['model'][M]['payload'], A, P & Operation, ClientOptions>;
902
962
 
903
963
  export declare type DynamicModelExtensionFnResultNull<P extends PropertyKey> = P extends 'findUnique' | 'findFirst' ? null : never;
904
964
 
905
- export declare type DynamicModelExtensionOperationFn<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey> = {} extends TypeMap['model'][M]['operations'][P]['args'] ? <A extends TypeMap['model'][M]['operations'][P]['args']>(args?: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P> : <A extends TypeMap['model'][M]['operations'][P]['args']>(args: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P>;
965
+ export declare type DynamicModelExtensionOperationFn<TypeMap extends TypeMapDef, M extends PropertyKey, P extends PropertyKey, ClientOptions> = {} extends TypeMap['model'][M]['operations'][P]['args'] ? <A extends TypeMap['model'][M]['operations'][P]['args']>(args?: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>, ClientOptions> : <A extends TypeMap['model'][M]['operations'][P]['args']>(args: Exact<A, TypeMap['model'][M]['operations'][P]['args']>) => DynamicModelExtensionFnResult<TypeMap, M, A, P, DynamicModelExtensionFnResultNull<P>, ClientOptions>;
906
966
 
907
- export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>> = {
967
+ export declare type DynamicModelExtensionThis<TypeMap extends TypeMapDef, M extends PropertyKey, ExtArgs extends Record<string, any>, ClientOptions> = {
908
968
  [P in keyof ExtArgs['model'][Uncapitalize<M & string>]]: Return<ExtArgs['model'][Uncapitalize<M & string>][P]>;
909
969
  } & {
910
- [P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P>;
970
+ [P in Exclude<keyof TypeMap['model'][M]['operations'], keyof ExtArgs['model'][Uncapitalize<M & string>]>]: DynamicModelExtensionOperationFn<TypeMap, M, P, ClientOptions>;
911
971
  } & {
912
972
  [P in Exclude<'fields', keyof ExtArgs['model'][Uncapitalize<M & string>]>]: TypeMap['model'][M]['fields'];
913
973
  } & {
@@ -955,7 +1015,7 @@ export declare type DynamicResultExtensionArgs<R_, TypeMap extends TypeMapDef> =
955
1015
 
956
1016
  export declare type DynamicResultExtensionData<TypeMap extends TypeMapDef, M extends PropertyKey, S> = GetFindResult<TypeMap['model'][M]['payload'], {
957
1017
  select: S;
958
- }>;
1018
+ }, {}>;
959
1019
 
960
1020
  export declare type DynamicResultExtensionNeeds<TypeMap extends TypeMapDef, M extends PropertyKey, S> = {
961
1021
  [K in keyof S]: K extends keyof TypeMap['model'][M]['payload']['scalars'] ? S[K] : never;
@@ -1081,6 +1141,7 @@ declare type EngineSpan = {
1081
1141
  trace_id: string;
1082
1142
  span_id: string;
1083
1143
  }[];
1144
+ kind: EngineSpanKind;
1084
1145
  };
1085
1146
 
1086
1147
  declare type EngineSpanEvent = {
@@ -1088,6 +1149,13 @@ declare type EngineSpanEvent = {
1088
1149
  spans: EngineSpan[];
1089
1150
  };
1090
1151
 
1152
+ declare type EngineSpanKind = 'client' | 'internal';
1153
+
1154
+ declare type EnvPaths = {
1155
+ rootEnvPath: string | null;
1156
+ schemaEnvPath: string | undefined;
1157
+ };
1158
+
1091
1159
  declare interface EnvValue {
1092
1160
  fromEnvVar: null | string;
1093
1161
  value: null | string;
@@ -1191,7 +1259,7 @@ declare type ExtendedSpanOptions = SpanOptions & {
1191
1259
  /** $extends, defineExtension */
1192
1260
  export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeMapCb extends TypeMapCbDef, ExtArgs extends Record<string, any>, TypeMap extends TypeMapDef = Call<TypeMapCb, {
1193
1261
  extArgs: ExtArgs;
1194
- }>> {
1262
+ }>, ClientOptions = {}> {
1195
1263
  extArgs: ExtArgs;
1196
1264
  <R_ extends {
1197
1265
  [K in TypeMap['meta']['modelProps'] | '$allModels']?: unknown;
@@ -1201,7 +1269,7 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
1201
1269
  [K in TypeMap['meta']['modelProps'] | '$allModels' | keyof TypeMap['other']['operations'] | '$allOperations']?: unknown;
1202
1270
  }, C_ extends {
1203
1271
  [K in string]?: unknown;
1204
- }, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs>) => {
1272
+ }, C, Args extends InternalArgs = InternalArgs<R, M, {}, C>, MergedArgs extends InternalArgs = MergeExtArgs<TypeMap, ExtArgs, Args>>(extension: ((client: DynamicClientExtensionThis<TypeMap, TypeMapCb, ExtArgs, ClientOptions>) => {
1205
1273
  $extends: {
1206
1274
  extArgs: Args;
1207
1275
  };
@@ -1209,12 +1277,12 @@ export declare interface ExtendsHook<Variant extends 'extends' | 'define', TypeM
1209
1277
  name?: string;
1210
1278
  query?: DynamicQueryExtensionArgs<Q_, TypeMap>;
1211
1279
  result?: DynamicResultExtensionArgs<R_, TypeMap> & R;
1212
- model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs> & M;
1213
- client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs> & C;
1280
+ model?: DynamicModelExtensionArgs<M_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & M;
1281
+ client?: DynamicClientExtensionArgs<C_, TypeMap, TypeMapCb, ExtArgs, ClientOptions> & C;
1214
1282
  }): {
1215
1283
  extends: DynamicClientExtensionThis<Call<TypeMapCb, {
1216
1284
  extArgs: MergedArgs;
1217
- }>, TypeMapCb, MergedArgs>;
1285
+ }>, TypeMapCb, MergedArgs, ClientOptions>;
1218
1286
  define: (client: any) => {
1219
1287
  $extends: {
1220
1288
  extArgs: Args;
@@ -1237,6 +1305,8 @@ declare namespace Extensions_2 {
1237
1305
  export {
1238
1306
  InternalArgs,
1239
1307
  DefaultArgs,
1308
+ GetPayloadResultExtensionKeys,
1309
+ GetPayloadResultExtensionObject,
1240
1310
  GetPayloadResult,
1241
1311
  GetSelect,
1242
1312
  GetOmit,
@@ -1264,12 +1334,20 @@ declare namespace Extensions_2 {
1264
1334
  TypeMapDef,
1265
1335
  DevTypeMapDef,
1266
1336
  DevTypeMapFnDef,
1337
+ ClientOptionDef,
1338
+ ClientOtherOps,
1267
1339
  TypeMapCbDef,
1268
1340
  ModelKey,
1269
1341
  RequiredExtensionArgs as UserArgs
1270
1342
  }
1271
1343
  }
1272
1344
 
1345
+ export declare type ExtractGlobalOmit<Options, ModelName extends string> = Options extends {
1346
+ omit: {
1347
+ [K in ModelName]: infer GlobalOmit;
1348
+ };
1349
+ } ? GlobalOmit : {};
1350
+
1273
1351
  declare type Fetch = typeof nodeFetch;
1274
1352
 
1275
1353
  /**
@@ -1308,6 +1386,8 @@ declare interface GeneratorConfig {
1308
1386
  };
1309
1387
  binaryTargets: BinaryTargetsEnvValue[];
1310
1388
  previewFeatures: string[];
1389
+ envPaths?: EnvPaths;
1390
+ sourceFilePath: string;
1311
1391
  }
1312
1392
 
1313
1393
  export declare type GetAggregateResult<P extends OperationPayload, A> = {
@@ -1328,9 +1408,19 @@ export declare type GetCountResult<A> = A extends {
1328
1408
 
1329
1409
  declare function getExtensionContext<T>(that: T): Context_2<T>;
1330
1410
 
1331
- export declare type GetFindResult<P extends OperationPayload, A> = A extends {
1332
- omit: infer Omission;
1333
- } ? Compute<Omit_2<GetSelectIncludeResult<P, A>, TrueKeys<Omission>>> : GetSelectIncludeResult<P, A>;
1411
+ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions> = Equals<A, any> extends 1 ? DefaultSelection<P, A, ClientOptions> : A extends {
1412
+ select: infer S extends object;
1413
+ } & Record<string, unknown> | {
1414
+ include: infer I extends object;
1415
+ } & Record<string, unknown> ? {
1416
+ [K in keyof S | keyof I as (S & I)[K] extends false | undefined | Skip | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K], ClientOptions>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions> | SelectField<P, K> & null : never : P extends {
1417
+ scalars: {
1418
+ [k in K]: infer O;
1419
+ };
1420
+ } ? O : K extends '_count' ? Count<P['objects']> : never;
1421
+ } & (A extends {
1422
+ include: any;
1423
+ } & Record<string, unknown> ? DefaultSelection<P, A, ClientOptions> : unknown) : DefaultSelection<P, A, ClientOptions>;
1334
1424
 
1335
1425
  export declare type GetGroupByResult<P extends OperationPayload, A> = A extends {
1336
1426
  by: string[];
@@ -1342,14 +1432,18 @@ export declare type GetGroupByResult<P extends OperationPayload, A> = A extends
1342
1432
  [K in A['by']]: P['scalars'][K];
1343
1433
  }> : {}[];
1344
1434
 
1345
- export declare type GetOmit<BaseKeys extends string, R extends InternalArgs['result'][string]> = {
1346
- [K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean;
1435
+ export declare type GetOmit<BaseKeys extends string, R extends InternalArgs['result'][string], ExtraType = never> = {
1436
+ [K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean | ExtraType;
1347
1437
  };
1348
1438
 
1349
- export declare type GetPayloadResult<Base extends Record<any, any>, R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = unknown extends R ? Base : {
1350
- [K in KR | keyof Base]: K extends KR ? R[K] extends () => {
1439
+ export declare type GetPayloadResult<Base extends Record<any, any>, R extends InternalArgs['result'][string]> = Omit<Base, GetPayloadResultExtensionKeys<R>> & GetPayloadResultExtensionObject<R>;
1440
+
1441
+ export declare type GetPayloadResultExtensionKeys<R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = KR;
1442
+
1443
+ export declare type GetPayloadResultExtensionObject<R extends InternalArgs['result'][string]> = {
1444
+ [K in GetPayloadResultExtensionKeys<R>]: R[K] extends () => {
1351
1445
  compute: (...args: any) => infer C;
1352
- } ? C : never : Base[K];
1446
+ } ? C : never;
1353
1447
  };
1354
1448
 
1355
1449
  export declare function getPrismaClient(config: GetPrismaClientConfig): {
@@ -1368,6 +1462,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1368
1462
  _middlewares: MiddlewareHandler<QueryMiddleware>;
1369
1463
  _previewFeatures: string[];
1370
1464
  _activeProvider: string;
1465
+ _globalOmit?: GlobalOmitOptions | undefined;
1371
1466
  _extensions: MergedExtensionsList;
1372
1467
  _engine: Engine;
1373
1468
  /**
@@ -1419,7 +1514,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1419
1514
  /**
1420
1515
  * Executes a raw query and returns selected data
1421
1516
  */
1422
- $queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>): Promise<unknown[]>;
1517
+ $queryRawInternal(transaction: PrismaPromiseTransaction | undefined, clientMethod: string, args: RawQueryArgs, middlewareArgsMapper?: MiddlewareArgsMapper<unknown, unknown>): Promise<any>;
1423
1518
  /**
1424
1519
  * Executes a raw query provided through a safe tag function
1425
1520
  * @see https://github.com/prisma/prisma/issues/7142
@@ -1429,6 +1524,11 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1429
1524
  * @returns
1430
1525
  */
1431
1526
  $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1527
+ /**
1528
+ * Counterpart to $queryRaw, that returns strongly typed results
1529
+ * @param typedSql
1530
+ */
1531
+ $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
1432
1532
  /**
1433
1533
  * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
1434
1534
  * @see https://github.com/prisma/prisma/issues/7142
@@ -1503,7 +1603,7 @@ declare type GetPrismaClientConfig = {
1503
1603
  clientVersion: string;
1504
1604
  engineVersion: string;
1505
1605
  datasourceNames: string[];
1506
- activeProvider: string;
1606
+ activeProvider: ActiveConnectorType;
1507
1607
  /**
1508
1608
  * The contents of the schema encoded into a string
1509
1609
  * @remarks only used for the purpose of data proxy
@@ -1563,31 +1663,32 @@ declare type GetPrismaClientConfig = {
1563
1663
  engineWasm?: WasmLoadingConfig;
1564
1664
  };
1565
1665
 
1566
- export declare type GetResult<P extends OperationPayload, A, O extends Operation = 'findUniqueOrThrow'> = {
1567
- findUnique: GetFindResult<P, A> | null;
1568
- findUniqueOrThrow: GetFindResult<P, A>;
1569
- findFirst: GetFindResult<P, A> | null;
1570
- findFirstOrThrow: GetFindResult<P, A>;
1571
- findMany: GetFindResult<P, A>[];
1572
- create: GetFindResult<P, A>;
1666
+ export declare type GetResult<Payload extends OperationPayload, Args, OperationName extends Operation = 'findUniqueOrThrow', ClientOptions = {}> = {
1667
+ findUnique: GetFindResult<Payload, Args, ClientOptions> | null;
1668
+ findUniqueOrThrow: GetFindResult<Payload, Args, ClientOptions>;
1669
+ findFirst: GetFindResult<Payload, Args, ClientOptions> | null;
1670
+ findFirstOrThrow: GetFindResult<Payload, Args, ClientOptions>;
1671
+ findMany: GetFindResult<Payload, Args, ClientOptions>[];
1672
+ create: GetFindResult<Payload, Args, ClientOptions>;
1573
1673
  createMany: GetBatchResult;
1574
- createManyAndReturn: GetFindResult<P, A>[];
1575
- update: GetFindResult<P, A>;
1674
+ createManyAndReturn: GetFindResult<Payload, Args, ClientOptions>[];
1675
+ update: GetFindResult<Payload, Args, ClientOptions>;
1576
1676
  updateMany: GetBatchResult;
1577
- upsert: GetFindResult<P, A>;
1578
- delete: GetFindResult<P, A>;
1677
+ upsert: GetFindResult<Payload, Args, ClientOptions>;
1678
+ delete: GetFindResult<Payload, Args, ClientOptions>;
1579
1679
  deleteMany: GetBatchResult;
1580
- aggregate: GetAggregateResult<P, A>;
1581
- count: GetCountResult<A>;
1582
- groupBy: GetGroupByResult<P, A>;
1680
+ aggregate: GetAggregateResult<Payload, Args>;
1681
+ count: GetCountResult<Args>;
1682
+ groupBy: GetGroupByResult<Payload, Args>;
1583
1683
  $queryRaw: unknown;
1684
+ $queryRawTyped: unknown;
1584
1685
  $executeRaw: number;
1585
1686
  $queryRawUnsafe: unknown;
1586
1687
  $executeRawUnsafe: number;
1587
1688
  $runCommandRaw: JsonObject;
1588
1689
  findRaw: JsonObject;
1589
1690
  aggregateRaw: JsonObject;
1590
- }[O];
1691
+ }[OperationName];
1591
1692
 
1592
1693
  export declare function getRuntime(): GetRuntimeOutput;
1593
1694
 
@@ -1601,19 +1702,11 @@ export declare type GetSelect<Base extends Record<any, any>, R extends InternalA
1601
1702
  [K in KR | keyof Base]?: K extends KR ? boolean : Base[K];
1602
1703
  };
1603
1704
 
1604
- export declare type GetSelectIncludeResult<P extends OperationPayload, A> = Equals<A, any> extends 1 ? DefaultSelection<P> : A extends {
1605
- select: infer S extends object;
1606
- } & Record<string, unknown> | {
1607
- include: infer I extends object;
1608
- } & Record<string, unknown> ? {
1609
- [K in keyof S | keyof I as (S & I)[K] extends false | undefined | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K]>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K]> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K]>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O> | SelectField<P, K> & null : never : P extends {
1610
- scalars: {
1611
- [k in K]: infer O;
1612
- };
1613
- } ? O : K extends '_count' ? Count<P['objects']> : never;
1614
- } & (A extends {
1615
- include: any;
1616
- } & Record<string, unknown> ? DefaultSelection<P> : unknown) : DefaultSelection<P>;
1705
+ declare type GlobalOmitOptions = {
1706
+ [modelName: string]: {
1707
+ [fieldName: string]: boolean;
1708
+ };
1709
+ };
1617
1710
 
1618
1711
  declare type HandleErrorParams = {
1619
1712
  args: JsArgs;
@@ -1622,6 +1715,7 @@ declare type HandleErrorParams = {
1622
1715
  callsite?: CallSite;
1623
1716
  transaction?: PrismaPromiseTransaction;
1624
1717
  modelName?: string;
1718
+ globalOmit?: GlobalOmitOptions;
1625
1719
  };
1626
1720
 
1627
1721
  /**
@@ -1638,6 +1732,38 @@ declare type HandleErrorParams = {
1638
1732
  */
1639
1733
  declare type HrTime = [number, number];
1640
1734
 
1735
+ /**
1736
+ * Matches a JSON array.
1737
+ * Unlike \`JsonArray\`, readonly arrays are assignable to this type.
1738
+ */
1739
+ export declare interface InputJsonArray extends ReadonlyArray<InputJsonValue | null> {
1740
+ }
1741
+
1742
+ /**
1743
+ * Matches a JSON object.
1744
+ * Unlike \`JsonObject\`, this type allows undefined and read-only properties.
1745
+ */
1746
+ export declare type InputJsonObject = {
1747
+ readonly [Key in string]?: InputJsonValue | null;
1748
+ };
1749
+
1750
+ /**
1751
+ * Matches any valid value that can be used as an input for operations like
1752
+ * create and update as the value of a JSON field. Unlike \`JsonValue\`, this
1753
+ * type allows read-only arrays and read-only object properties and disallows
1754
+ * \`null\` at the top level.
1755
+ *
1756
+ * \`null\` cannot be used as the value of a JSON field because its meaning
1757
+ * would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or
1758
+ * \`Prisma.DbNull\` to clear the JSON value and set the field to the database
1759
+ * NULL value instead.
1760
+ *
1761
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values
1762
+ */
1763
+ export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | {
1764
+ toJSON(): unknown;
1765
+ };
1766
+
1641
1767
  declare type InteractiveTransactionInfo<Payload = unknown> = {
1642
1768
  /**
1643
1769
  * Transaction ID returned by the query engine.
@@ -1721,6 +1847,10 @@ declare enum IsolationLevel {
1721
1847
  Serializable = "Serializable"
1722
1848
  }
1723
1849
 
1850
+ declare function isSkip(value: unknown): value is Skip;
1851
+
1852
+ export declare function isTypedSql(value: unknown): value is UnknownTypedSql;
1853
+
1724
1854
  export declare type ITXClientDenyList = (typeof denylist)[number];
1725
1855
 
1726
1856
  export declare const itxClientDenyList: readonly (string | symbol)[];
@@ -1743,7 +1873,7 @@ export declare type JsArgs = {
1743
1873
  [argName: string]: JsInputValue;
1744
1874
  };
1745
1875
 
1746
- export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] | {
1876
+ export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] | Skip | {
1747
1877
  [key: string]: JsInputValue;
1748
1878
  };
1749
1879
 
@@ -1751,10 +1881,14 @@ declare type JsonArgumentValue = number | string | boolean | null | RawTaggedVal
1751
1881
  [key: string]: JsonArgumentValue;
1752
1882
  };
1753
1883
 
1884
+ /**
1885
+ * From https://github.com/sindresorhus/type-fest/
1886
+ * Matches a JSON array.
1887
+ */
1754
1888
  export declare interface JsonArray extends Array<JsonValue> {
1755
1889
  }
1756
1890
 
1757
- declare type JsonBatchQuery = {
1891
+ export declare type JsonBatchQuery = {
1758
1892
  batch: JsonQuery[];
1759
1893
  transaction?: {
1760
1894
  isolationLevel?: Transaction_2.IsolationLevel;
@@ -1773,11 +1907,16 @@ declare type JsonFieldSelection = {
1773
1907
  declare class JsonNull extends NullTypesEnumValue {
1774
1908
  }
1775
1909
 
1910
+ /**
1911
+ * From https://github.com/sindresorhus/type-fest/
1912
+ * Matches a JSON object.
1913
+ * This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from.
1914
+ */
1776
1915
  export declare type JsonObject = {
1777
1916
  [Key in string]?: JsonValue;
1778
1917
  };
1779
1918
 
1780
- declare type JsonQuery = {
1919
+ export declare type JsonQuery = {
1781
1920
  modelName?: string;
1782
1921
  action: JsonQueryAction;
1783
1922
  query: JsonFieldSelection;
@@ -1792,6 +1931,10 @@ declare type JsonSelectionSet = {
1792
1931
  [fieldName: string]: boolean | JsonFieldSelection;
1793
1932
  };
1794
1933
 
1934
+ /**
1935
+ * From https://github.com/sindresorhus/type-fest/
1936
+ * Matches any valid JSON value.
1937
+ */
1795
1938
  export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null;
1796
1939
 
1797
1940
  export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | {
@@ -1889,6 +2032,8 @@ declare type LogLevel = 'info' | 'query' | 'warn' | 'error';
1889
2032
  */
1890
2033
  export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
1891
2034
 
2035
+ export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
2036
+
1892
2037
  /**
1893
2038
  * Class that holds the list of all extensions, applied to particular instance,
1894
2039
  * as well as resolved versions of the components that need to apply on
@@ -2086,16 +2231,19 @@ export declare const objectEnumValues: {
2086
2231
 
2087
2232
  declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-pg-worker"];
2088
2233
 
2089
- export declare type Omission = Record<string, boolean>;
2234
+ export declare type Omission = Record<string, boolean | Skip>;
2090
2235
 
2091
2236
  declare type Omit_2<T, K extends string | number | symbol> = {
2092
2237
  [P in keyof T as P extends K ? never : P]: T[P];
2093
2238
  };
2094
2239
  export { Omit_2 as Omit }
2095
2240
 
2241
+ export declare type OmitValue<Omit, Key> = Key extends keyof Omit ? Omit[Key] : false;
2242
+
2096
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';
2097
2244
 
2098
2245
  export declare type OperationPayload = {
2246
+ name: string;
2099
2247
  scalars: {
2100
2248
  [ScalarName in string]: unknown;
2101
2249
  };
@@ -2219,6 +2367,7 @@ export declare type PrismaClientOptions = {
2219
2367
  * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
2220
2368
  */
2221
2369
  log?: Array<LogLevel | LogDefinition>;
2370
+ omit?: GlobalOmitOptions;
2222
2371
  /**
2223
2372
  * @internal
2224
2373
  * You probably don't want to use this. \`__internal\` is used by internal tooling.
@@ -2323,6 +2472,8 @@ declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
2323
2472
 
2324
2473
  declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
2325
2474
 
2475
+ export declare const PrivateResultType: unique symbol;
2476
+
2326
2477
  declare namespace Public {
2327
2478
  export {
2328
2479
  validator
@@ -2344,6 +2495,7 @@ declare namespace Public_2 {
2344
2495
  declare type Query = {
2345
2496
  sql: string;
2346
2497
  args: Array<unknown>;
2498
+ argTypes: Array<ArgType>;
2347
2499
  };
2348
2500
 
2349
2501
  declare interface Queryable {
@@ -2475,7 +2627,7 @@ export declare type RawParameters = {
2475
2627
  values: string;
2476
2628
  };
2477
2629
 
2478
- export declare type RawQueryArgs = Sql | [query: string, ...values: RawValue[]];
2630
+ export declare type RawQueryArgs = Sql | UnknownTypedSql | [query: string, ...values: RawValue[]];
2479
2631
 
2480
2632
  declare type RawTaggedValue = {
2481
2633
  $type: 'Raw';
@@ -2535,7 +2687,7 @@ declare class RequestHandler {
2535
2687
  * handlers to finish.
2536
2688
  */
2537
2689
  handleAndLogRequestError(params: HandleErrorParams): never;
2538
- handleRequestError({ error, clientMethod, callsite, transaction, args, modelName }: HandleErrorParams): never;
2690
+ handleRequestError({ error, clientMethod, callsite, transaction, args, modelName, globalOmit, }: HandleErrorParams): never;
2539
2691
  sanitizeMessage(message: any): any;
2540
2692
  unpack(data: unknown, dataPath: string[], unpacker?: Unpacker): any;
2541
2693
  get [Symbol.toStringTag](): string;
@@ -2569,6 +2721,7 @@ declare type RequestParams = {
2569
2721
  unpacker?: Unpacker;
2570
2722
  otelParentCtx?: Context;
2571
2723
  otelChildCtx?: Context;
2724
+ globalOmit?: GlobalOmitOptions;
2572
2725
  customDataProxyFetch?: (fetch: Fetch) => Fetch;
2573
2726
  };
2574
2727
 
@@ -2607,6 +2760,7 @@ export declare type Result<T, A, F extends Operation> = T extends {
2607
2760
  composites: {};
2608
2761
  objects: {};
2609
2762
  scalars: {};
2763
+ name: '';
2610
2764
  }, {}, F>;
2611
2765
 
2612
2766
  export declare type Result_2<T, A, F extends Operation> = Result<T, A, F>;
@@ -2616,19 +2770,20 @@ declare namespace Result_3 {
2616
2770
  Operation,
2617
2771
  FluentOperation,
2618
2772
  Count,
2619
- TrueKeys,
2620
2773
  GetFindResult,
2621
- GetSelectIncludeResult,
2622
2774
  SelectablePayloadFields,
2623
2775
  SelectField,
2624
2776
  DefaultSelection,
2625
2777
  UnwrapPayload,
2778
+ ApplyOmit,
2779
+ OmitValue,
2626
2780
  GetCountResult,
2627
2781
  Aggregate,
2628
2782
  GetAggregateResult,
2629
2783
  GetBatchResult,
2630
2784
  GetGroupByResult,
2631
- GetResult
2785
+ GetResult,
2786
+ ExtractGlobalOmit
2632
2787
  }
2633
2788
  }
2634
2789
 
@@ -2688,7 +2843,7 @@ export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
2688
2843
 
2689
2844
  declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
2690
2845
 
2691
- declare type RuntimeDataModel = {
2846
+ export declare type RuntimeDataModel = {
2692
2847
  readonly models: Record<string, RuntimeModel>;
2693
2848
  readonly enums: Record<string, RuntimeEnum>;
2694
2849
  readonly types: Record<string, RuntimeModel>;
@@ -2716,9 +2871,32 @@ export declare type SelectField<P extends SelectablePayloadFields<any, any>, K e
2716
2871
  composites: Record<K, any>;
2717
2872
  } ? P['composites'][K] : never;
2718
2873
 
2719
- declare type Selection_2 = Record<string, boolean | JsArgs>;
2874
+ declare type Selection_2 = Record<string, boolean | Skip | JsArgs>;
2720
2875
  export { Selection_2 as Selection }
2721
2876
 
2877
+ export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery;
2878
+
2879
+ declare type SerializeParams = {
2880
+ runtimeDataModel: RuntimeDataModel;
2881
+ modelName?: string;
2882
+ action: Action;
2883
+ args?: JsArgs;
2884
+ extensions?: MergedExtensionsList;
2885
+ callsite?: CallSite;
2886
+ clientMethod: string;
2887
+ clientVersion: string;
2888
+ errorFormat: ErrorFormat;
2889
+ previewFeatures: string[];
2890
+ globalOmit?: GlobalOmitOptions;
2891
+ };
2892
+
2893
+ declare class Skip {
2894
+ constructor(param?: symbol);
2895
+ ifUndefined<T>(value: T | undefined): T | Skip;
2896
+ }
2897
+
2898
+ export declare const skip: Skip;
2899
+
2722
2900
  /**
2723
2901
  * An interface that represents a span. A span represents a single operation
2724
2902
  * within a trace. Examples of span might include remote procedure calls or a
@@ -2767,6 +2945,24 @@ declare interface Span {
2767
2945
  * @param [startTime] start time of the event.
2768
2946
  */
2769
2947
  addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this;
2948
+ /**
2949
+ * Adds a single link to the span.
2950
+ *
2951
+ * Links added after the creation will not affect the sampling decision.
2952
+ * It is preferred span links be added at span creation.
2953
+ *
2954
+ * @param link the link to add.
2955
+ */
2956
+ addLink(link: Link): this;
2957
+ /**
2958
+ * Adds multiple links to the span.
2959
+ *
2960
+ * Links added after the creation will not affect the sampling decision.
2961
+ * It is preferred span links be added at span creation.
2962
+ *
2963
+ * @param links the links to add.
2964
+ */
2965
+ addLinks(links: Link[]): this;
2770
2966
  /**
2771
2967
  * Sets a status to the span. If used, this will override the default Span
2772
2968
  * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value
@@ -3053,6 +3249,13 @@ declare namespace Transaction_2 {
3053
3249
  }
3054
3250
  }
3055
3251
 
3252
+ declare interface TransactionContext extends Queryable {
3253
+ /**
3254
+ * Starts new transaction.
3255
+ */
3256
+ startTransaction(): Promise<Result_4<Transaction>>;
3257
+ }
3258
+
3056
3259
  declare type TransactionHeaders = {
3057
3260
  traceparent?: string;
3058
3261
  };
@@ -3069,12 +3272,16 @@ declare type TransactionOptions_2<InteractiveTransactionPayload> = {
3069
3272
  options: BatchTransactionOptions;
3070
3273
  };
3071
3274
 
3072
- export declare type TrueKeys<T> = {
3073
- [K in keyof T]: T[K] extends true ? K : never;
3074
- }[keyof T];
3275
+ export declare class TypedSql<Values extends readonly unknown[], Result> {
3276
+ [PrivateResultType]: Result;
3277
+ constructor(sql: string, values: Values);
3278
+ get sql(): string;
3279
+ get values(): Values;
3280
+ }
3075
3281
 
3076
3282
  export declare type TypeMapCbDef = Fn<{
3077
3283
  extArgs: InternalArgs;
3284
+ clientOptions: ClientOptionDef;
3078
3285
  }, TypeMapDef>;
3079
3286
 
3080
3287
  /** Shared */
@@ -3086,6 +3293,10 @@ declare namespace Types {
3086
3293
  Extensions_2 as Extensions,
3087
3294
  Utils,
3088
3295
  Public_2 as Public,
3296
+ isSkip,
3297
+ Skip,
3298
+ skip,
3299
+ UnknownTypedSql,
3089
3300
  OperationPayload as Payload
3090
3301
  }
3091
3302
  }
@@ -3096,6 +3307,8 @@ declare type UnknownErrorParams = {
3096
3307
  batchRequestIdx?: number;
3097
3308
  };
3098
3309
 
3310
+ export declare type UnknownTypedSql = TypedSql<unknown[], unknown>;
3311
+
3099
3312
  declare type Unpacker = (data: any) => any;
3100
3313
 
3101
3314
  export declare type UnwrapPayload<P> = {} extends P ? unknown : {
@@ -3134,9 +3347,6 @@ declare namespace Utils {
3134
3347
  Narrow,
3135
3348
  Exact,
3136
3349
  Cast,
3137
- JsonObject,
3138
- JsonArray,
3139
- JsonValue,
3140
3350
  Record_2 as Record,
3141
3351
  UnwrapPromise,
3142
3352
  UnwrapTuple,