@prisma/client 6.6.0-dev.42 → 6.6.0-dev.50

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.
@@ -347,6 +347,22 @@ declare type DataLoaderOptions<T> = {
347
347
  batchOrder: (requestA: T, requestB: T) => number;
348
348
  };
349
349
 
350
+ declare type Datamodel = ReadonlyDeep_2<{
351
+ models: Model[];
352
+ enums: DatamodelEnum[];
353
+ types: Model[];
354
+ indexes: Index[];
355
+ }>;
356
+
357
+ declare type DatamodelEnum = ReadonlyDeep_2<{
358
+ name: string;
359
+ values: EnumValue[];
360
+ dbName?: string | null;
361
+ documentation?: string;
362
+ }>;
363
+
364
+ declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum;
365
+
350
366
  declare type Datasource = {
351
367
  url?: string;
352
368
  };
@@ -681,6 +697,12 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
681
697
 
682
698
  declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
683
699
 
700
+ declare type Deprecation = ReadonlyDeep_2<{
701
+ sinceVersion: string;
702
+ reason: string;
703
+ plannedRemovalVersion?: string;
704
+ }>;
705
+
684
706
  declare type DeserializedResponse = Array<Record<string, unknown>>;
685
707
 
686
708
  export declare function deserializeJsonResponse(result: unknown): unknown;
@@ -707,247 +729,56 @@ export declare type DevTypeMapFnDef = {
707
729
  payload: OperationPayload;
708
730
  };
709
731
 
710
- export declare namespace DMMF {
711
- export type Document = ReadonlyDeep_2<{
712
- datamodel: Datamodel;
713
- schema: Schema;
714
- mappings: Mappings;
715
- }>;
716
- export type Mappings = ReadonlyDeep_2<{
717
- modelOperations: ModelMapping[];
718
- otherOperations: {
719
- read: string[];
720
- write: string[];
721
- };
722
- }>;
723
- export type OtherOperationMappings = ReadonlyDeep_2<{
724
- read: string[];
725
- write: string[];
726
- }>;
727
- export type DatamodelEnum = ReadonlyDeep_2<{
728
- name: string;
729
- values: EnumValue[];
730
- dbName?: string | null;
731
- documentation?: string;
732
- }>;
733
- export type SchemaEnum = ReadonlyDeep_2<{
734
- name: string;
735
- values: string[];
736
- }>;
737
- export type EnumValue = ReadonlyDeep_2<{
738
- name: string;
739
- dbName: string | null;
740
- }>;
741
- export type Datamodel = ReadonlyDeep_2<{
742
- models: Model[];
743
- enums: DatamodelEnum[];
744
- types: Model[];
745
- indexes: Index[];
746
- }>;
747
- export type uniqueIndex = ReadonlyDeep_2<{
748
- name: string;
749
- fields: string[];
750
- }>;
751
- export type PrimaryKey = ReadonlyDeep_2<{
752
- name: string | null;
753
- fields: string[];
754
- }>;
755
- export type Model = ReadonlyDeep_2<{
756
- name: string;
757
- dbName: string | null;
758
- schema: string | null;
759
- fields: Field[];
760
- uniqueFields: string[][];
761
- uniqueIndexes: uniqueIndex[];
762
- documentation?: string;
763
- primaryKey: PrimaryKey | null;
764
- isGenerated?: boolean;
765
- }>;
766
- export type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported';
767
- export type FieldNamespace = 'model' | 'prisma';
768
- export type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes';
769
- export type Field = ReadonlyDeep_2<{
770
- kind: FieldKind;
771
- name: string;
772
- isRequired: boolean;
773
- isList: boolean;
774
- isUnique: boolean;
775
- isId: boolean;
776
- isReadOnly: boolean;
777
- isGenerated?: boolean;
778
- isUpdatedAt?: boolean;
779
- /**
780
- * Describes the data type in the same the way it is defined in the Prisma schema:
781
- * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
782
- */
783
- type: string;
784
- /**
785
- * Native database type, if specified.
786
- * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
787
- * `@db.Text` is encoded as `['Text', []]`.
788
- */
789
- nativeType?: [string, string[]] | null;
790
- dbName?: string | null;
791
- hasDefaultValue: boolean;
792
- default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
793
- relationFromFields?: string[];
794
- relationToFields?: string[];
795
- relationOnDelete?: string;
796
- relationOnUpdate?: string;
797
- relationName?: string;
798
- documentation?: string;
799
- }>;
800
- export type FieldDefault = ReadonlyDeep_2<{
801
- name: string;
802
- args: Array<string | number>;
803
- }>;
804
- export type FieldDefaultScalar = string | boolean | number;
805
- export type Index = ReadonlyDeep_2<{
806
- model: string;
807
- type: IndexType;
808
- isDefinedOnField: boolean;
809
- name?: string;
810
- dbName?: string;
811
- algorithm?: string;
812
- clustered?: boolean;
813
- fields: IndexField[];
814
- }>;
815
- export type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
816
- export type IndexField = ReadonlyDeep_2<{
817
- name: string;
818
- sortOrder?: SortOrder;
819
- length?: number;
820
- operatorClass?: string;
821
- }>;
822
- export type SortOrder = 'asc' | 'desc';
823
- export type Schema = ReadonlyDeep_2<{
824
- rootQueryType?: string;
825
- rootMutationType?: string;
826
- inputObjectTypes: {
827
- model?: InputType[];
828
- prisma: InputType[];
829
- };
830
- outputObjectTypes: {
831
- model: OutputType[];
832
- prisma: OutputType[];
833
- };
834
- enumTypes: {
835
- model?: SchemaEnum[];
836
- prisma: SchemaEnum[];
837
- };
838
- fieldRefTypes: {
839
- prisma?: FieldRefType[];
840
- };
841
- }>;
842
- export type Query = ReadonlyDeep_2<{
843
- name: string;
844
- args: SchemaArg[];
845
- output: QueryOutput;
846
- }>;
847
- export type QueryOutput = ReadonlyDeep_2<{
848
- name: string;
849
- isRequired: boolean;
850
- isList: boolean;
851
- }>;
852
- export type TypeRef<AllowedLocations extends FieldLocation> = {
853
- isList: boolean;
854
- type: string;
855
- location: AllowedLocations;
856
- namespace?: FieldNamespace;
857
- };
858
- export type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>;
859
- export type SchemaArg = ReadonlyDeep_2<{
860
- name: string;
861
- comment?: string;
862
- isNullable: boolean;
863
- isRequired: boolean;
864
- inputTypes: InputTypeRef[];
865
- deprecation?: Deprecation;
866
- }>;
867
- export type OutputType = ReadonlyDeep_2<{
868
- name: string;
869
- fields: SchemaField[];
870
- }>;
871
- export type SchemaField = ReadonlyDeep_2<{
872
- name: string;
873
- isNullable?: boolean;
874
- outputType: OutputTypeRef;
875
- args: SchemaArg[];
876
- deprecation?: Deprecation;
877
- documentation?: string;
878
- }>;
879
- export type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>;
880
- export type Deprecation = ReadonlyDeep_2<{
881
- sinceVersion: string;
882
- reason: string;
883
- plannedRemovalVersion?: string;
884
- }>;
885
- export type InputType = ReadonlyDeep_2<{
886
- name: string;
887
- constraints: {
888
- maxNumFields: number | null;
889
- minNumFields: number | null;
890
- fields?: string[];
891
- };
892
- meta?: {
893
- source?: string;
894
- };
895
- fields: SchemaArg[];
896
- }>;
897
- export type FieldRefType = ReadonlyDeep_2<{
898
- name: string;
899
- allowTypes: FieldRefAllowType[];
900
- fields: SchemaArg[];
901
- }>;
902
- export type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>;
903
- export type ModelMapping = ReadonlyDeep_2<{
904
- model: string;
905
- plural: string;
906
- findUnique?: string | null;
907
- findUniqueOrThrow?: string | null;
908
- findFirst?: string | null;
909
- findFirstOrThrow?: string | null;
910
- findMany?: string | null;
911
- create?: string | null;
912
- createMany?: string | null;
913
- createManyAndReturn?: string | null;
914
- update?: string | null;
915
- updateMany?: string | null;
916
- updateManyAndReturn?: string | null;
917
- upsert?: string | null;
918
- delete?: string | null;
919
- deleteMany?: string | null;
920
- aggregate?: string | null;
921
- groupBy?: string | null;
922
- count?: string | null;
923
- findRaw?: string | null;
924
- aggregateRaw?: string | null;
925
- }>;
926
- export enum ModelAction {
927
- findUnique = "findUnique",
928
- findUniqueOrThrow = "findUniqueOrThrow",
929
- findFirst = "findFirst",
930
- findFirstOrThrow = "findFirstOrThrow",
931
- findMany = "findMany",
932
- create = "create",
933
- createMany = "createMany",
934
- createManyAndReturn = "createManyAndReturn",
935
- update = "update",
936
- updateMany = "updateMany",
937
- updateManyAndReturn = "updateManyAndReturn",
938
- upsert = "upsert",
939
- delete = "delete",
940
- deleteMany = "deleteMany",
941
- groupBy = "groupBy",
942
- count = "count",// TODO: count does not actually exist, why?
943
- aggregate = "aggregate",
944
- findRaw = "findRaw",
945
- aggregateRaw = "aggregateRaw"
732
+ declare namespace DMMF {
733
+ export {
734
+ datamodelEnumToSchemaEnum,
735
+ Datamodel,
736
+ DatamodelEnum,
737
+ Deprecation,
738
+ Document_2 as Document,
739
+ EnumValue,
740
+ Field,
741
+ FieldDefault,
742
+ FieldDefaultScalar,
743
+ FieldKind,
744
+ FieldLocation,
745
+ FieldNamespace,
746
+ FieldRefAllowType,
747
+ FieldRefType,
748
+ Index,
749
+ IndexField,
750
+ IndexType,
751
+ InputType,
752
+ InputTypeRef,
753
+ Mappings,
754
+ Model,
755
+ ModelAction,
756
+ ModelMapping,
757
+ OtherOperationMappings,
758
+ OutputType,
759
+ OutputTypeRef,
760
+ PrimaryKey,
761
+ Query,
762
+ QueryOutput,
763
+ Schema,
764
+ SchemaArg,
765
+ SchemaEnum,
766
+ SchemaField,
767
+ SortOrder,
768
+ TypeRef,
769
+ uniqueIndex
946
770
  }
947
771
  }
772
+ export { DMMF }
948
773
 
949
774
  export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
950
775
 
776
+ declare type Document_2 = ReadonlyDeep_2<{
777
+ datamodel: Datamodel;
778
+ schema: Schema;
779
+ mappings: Mappings;
780
+ }>;
781
+
951
782
  /**
952
783
  * A generic driver adapter factory that allows the user to instantiate a
953
784
  * driver adapter. The query and result types are specific to the adapter.
@@ -1242,6 +1073,11 @@ declare type EngineWasmLoadingConfig = {
1242
1073
  getQueryEngineWasmModule: () => Promise<unknown>;
1243
1074
  };
1244
1075
 
1076
+ declare type EnumValue = ReadonlyDeep_2<{
1077
+ name: string;
1078
+ dbName: string | null;
1079
+ }>;
1080
+
1245
1081
  declare type EnvPaths = {
1246
1082
  rootEnvPath: string | null;
1247
1083
  schemaEnvPath: string | undefined;
@@ -1448,6 +1284,51 @@ export declare type ExtractGlobalOmit<Options, ModelName extends string> = Optio
1448
1284
  };
1449
1285
  } ? GlobalOmit : {};
1450
1286
 
1287
+ declare type Field = ReadonlyDeep_2<{
1288
+ kind: FieldKind;
1289
+ name: string;
1290
+ isRequired: boolean;
1291
+ isList: boolean;
1292
+ isUnique: boolean;
1293
+ isId: boolean;
1294
+ isReadOnly: boolean;
1295
+ isGenerated?: boolean;
1296
+ isUpdatedAt?: boolean;
1297
+ /**
1298
+ * Describes the data type in the same the way it is defined in the Prisma schema:
1299
+ * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
1300
+ */
1301
+ type: string;
1302
+ /**
1303
+ * Native database type, if specified.
1304
+ * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
1305
+ * `@db.Text` is encoded as `['Text', []]`.
1306
+ */
1307
+ nativeType?: [string, string[]] | null;
1308
+ dbName?: string | null;
1309
+ hasDefaultValue: boolean;
1310
+ default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
1311
+ relationFromFields?: string[];
1312
+ relationToFields?: string[];
1313
+ relationOnDelete?: string;
1314
+ relationOnUpdate?: string;
1315
+ relationName?: string;
1316
+ documentation?: string;
1317
+ }>;
1318
+
1319
+ declare type FieldDefault = ReadonlyDeep_2<{
1320
+ name: string;
1321
+ args: Array<string | number>;
1322
+ }>;
1323
+
1324
+ declare type FieldDefaultScalar = string | boolean | number;
1325
+
1326
+ declare type FieldKind = 'scalar' | 'object' | 'enum' | 'unsupported';
1327
+
1328
+ declare type FieldLocation = 'scalar' | 'inputObjectTypes' | 'outputObjectTypes' | 'enumTypes' | 'fieldRefTypes';
1329
+
1330
+ declare type FieldNamespace = 'model' | 'prisma';
1331
+
1451
1332
  /**
1452
1333
  * A reference to a specific field of a specific model
1453
1334
  */
@@ -1458,6 +1339,14 @@ export declare interface FieldRef<Model, FieldType> {
1458
1339
  readonly isList: boolean;
1459
1340
  }
1460
1341
 
1342
+ declare type FieldRefAllowType = TypeRef<'scalar' | 'enumTypes'>;
1343
+
1344
+ declare type FieldRefType = ReadonlyDeep_2<{
1345
+ name: string;
1346
+ allowTypes: FieldRefAllowType[];
1347
+ fields: SchemaArg[];
1348
+ }>;
1349
+
1461
1350
  export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
1462
1351
 
1463
1352
  export declare interface Fn<Params = unknown, Returns = unknown> {
@@ -1838,6 +1727,26 @@ declare type HrTime = [number, number];
1838
1727
  */
1839
1728
  declare type HrTime_2 = [number, number];
1840
1729
 
1730
+ declare type Index = ReadonlyDeep_2<{
1731
+ model: string;
1732
+ type: IndexType;
1733
+ isDefinedOnField: boolean;
1734
+ name?: string;
1735
+ dbName?: string;
1736
+ algorithm?: string;
1737
+ clustered?: boolean;
1738
+ fields: IndexField[];
1739
+ }>;
1740
+
1741
+ declare type IndexField = ReadonlyDeep_2<{
1742
+ name: string;
1743
+ sortOrder?: SortOrder;
1744
+ length?: number;
1745
+ operatorClass?: string;
1746
+ }>;
1747
+
1748
+ declare type IndexType = 'id' | 'normal' | 'unique' | 'fulltext';
1749
+
1841
1750
  /**
1842
1751
  * Matches a JSON array.
1843
1752
  * Unlike \`JsonArray\`, readonly arrays are assignable to this type.
@@ -1870,6 +1779,21 @@ export declare type InputJsonValue = string | number | boolean | InputJsonObject
1870
1779
  toJSON(): unknown;
1871
1780
  };
1872
1781
 
1782
+ declare type InputType = ReadonlyDeep_2<{
1783
+ name: string;
1784
+ constraints: {
1785
+ maxNumFields: number | null;
1786
+ minNumFields: number | null;
1787
+ fields?: string[];
1788
+ };
1789
+ meta?: {
1790
+ source?: string;
1791
+ };
1792
+ fields: SchemaArg[];
1793
+ }>;
1794
+
1795
+ declare type InputTypeRef = TypeRef<'scalar' | 'inputObjectTypes' | 'enumTypes' | 'fieldRefTypes'>;
1796
+
1873
1797
  declare type InteractiveTransactionInfo<Payload = unknown> = {
1874
1798
  /**
1875
1799
  * Transaction ID returned by the query engine.
@@ -2134,6 +2058,14 @@ export declare function makeStrictEnum<T extends Record<PropertyKey, string | nu
2134
2058
 
2135
2059
  export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
2136
2060
 
2061
+ declare type Mappings = ReadonlyDeep_2<{
2062
+ modelOperations: ModelMapping[];
2063
+ otherOperations: {
2064
+ read: string[];
2065
+ write: string[];
2066
+ };
2067
+ }>;
2068
+
2137
2069
  /**
2138
2070
  * Class that holds the list of all extensions, applied to particular instance,
2139
2071
  * as well as resolved versions of the components that need to apply on
@@ -2233,6 +2165,40 @@ declare class MiddlewareHandler<M extends Function> {
2233
2165
  length(): number;
2234
2166
  }
2235
2167
 
2168
+ declare type Model = ReadonlyDeep_2<{
2169
+ name: string;
2170
+ dbName: string | null;
2171
+ schema: string | null;
2172
+ fields: Field[];
2173
+ uniqueFields: string[][];
2174
+ uniqueIndexes: uniqueIndex[];
2175
+ documentation?: string;
2176
+ primaryKey: PrimaryKey | null;
2177
+ isGenerated?: boolean;
2178
+ }>;
2179
+
2180
+ declare enum ModelAction {
2181
+ findUnique = "findUnique",
2182
+ findUniqueOrThrow = "findUniqueOrThrow",
2183
+ findFirst = "findFirst",
2184
+ findFirstOrThrow = "findFirstOrThrow",
2185
+ findMany = "findMany",
2186
+ create = "create",
2187
+ createMany = "createMany",
2188
+ createManyAndReturn = "createManyAndReturn",
2189
+ update = "update",
2190
+ updateMany = "updateMany",
2191
+ updateManyAndReturn = "updateManyAndReturn",
2192
+ upsert = "upsert",
2193
+ delete = "delete",
2194
+ deleteMany = "deleteMany",
2195
+ groupBy = "groupBy",
2196
+ count = "count",// TODO: count does not actually exist in DMMF
2197
+ aggregate = "aggregate",
2198
+ findRaw = "findRaw",
2199
+ aggregateRaw = "aggregateRaw"
2200
+ }
2201
+
2236
2202
  export declare type ModelArg = {
2237
2203
  [MethodName in string]: unknown;
2238
2204
  };
@@ -2245,6 +2211,30 @@ export declare type ModelArgs = {
2245
2211
 
2246
2212
  export declare type ModelKey<TypeMap extends TypeMapDef, M extends PropertyKey> = M extends keyof TypeMap['model'] ? M : Capitalize<M & string>;
2247
2213
 
2214
+ declare type ModelMapping = ReadonlyDeep_2<{
2215
+ model: string;
2216
+ plural: string;
2217
+ findUnique?: string | null;
2218
+ findUniqueOrThrow?: string | null;
2219
+ findFirst?: string | null;
2220
+ findFirstOrThrow?: string | null;
2221
+ findMany?: string | null;
2222
+ create?: string | null;
2223
+ createMany?: string | null;
2224
+ createManyAndReturn?: string | null;
2225
+ update?: string | null;
2226
+ updateMany?: string | null;
2227
+ updateManyAndReturn?: string | null;
2228
+ upsert?: string | null;
2229
+ delete?: string | null;
2230
+ deleteMany?: string | null;
2231
+ aggregate?: string | null;
2232
+ groupBy?: string | null;
2233
+ count?: string | null;
2234
+ findRaw?: string | null;
2235
+ aggregateRaw?: string | null;
2236
+ }>;
2237
+
2248
2238
  export declare type ModelQueryOptionsCb = (args: ModelQueryOptionsCbArgs) => Promise<any>;
2249
2239
 
2250
2240
  export declare type ModelQueryOptionsCbArgs = {
@@ -2353,6 +2343,18 @@ export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
2353
2343
  };
2354
2344
  }[A][B];
2355
2345
 
2346
+ declare type OtherOperationMappings = ReadonlyDeep_2<{
2347
+ read: string[];
2348
+ write: string[];
2349
+ }>;
2350
+
2351
+ declare type OutputType = ReadonlyDeep_2<{
2352
+ name: string;
2353
+ fields: SchemaField[];
2354
+ }>;
2355
+
2356
+ declare type OutputTypeRef = TypeRef<'scalar' | 'outputObjectTypes' | 'enumTypes'>;
2357
+
2356
2358
  export declare function Param<$Type, $Value extends string>(name: $Value): Param<$Type, $Value>;
2357
2359
 
2358
2360
  export declare type Param<out $Type, $Value extends string> = {
@@ -2380,6 +2382,11 @@ declare type Pick_2<T, K extends string | number | symbol> = {
2380
2382
  };
2381
2383
  export { Pick_2 as Pick }
2382
2384
 
2385
+ declare type PrimaryKey = ReadonlyDeep_2<{
2386
+ name: string | null;
2387
+ fields: string[];
2388
+ }>;
2389
+
2383
2390
  export declare class PrismaClientInitializationError extends Error {
2384
2391
  clientVersion: string;
2385
2392
  errorCode?: string;
@@ -2570,6 +2577,12 @@ declare namespace Public_2 {
2570
2577
  }
2571
2578
  }
2572
2579
 
2580
+ declare type Query = ReadonlyDeep_2<{
2581
+ name: string;
2582
+ args: SchemaArg[];
2583
+ output: QueryOutput;
2584
+ }>;
2585
+
2573
2586
  declare interface Queryable<Query, Result> extends AdapterInfo {
2574
2587
  /**
2575
2588
  * Execute a query and return its result.
@@ -2690,6 +2703,12 @@ export declare type QueryOptionsCbArgs = {
2690
2703
  query: (args: JsArgs | RawQueryArgs) => Promise<unknown>;
2691
2704
  };
2692
2705
 
2706
+ declare type QueryOutput = ReadonlyDeep_2<{
2707
+ name: string;
2708
+ isRequired: boolean;
2709
+ isList: boolean;
2710
+ }>;
2711
+
2693
2712
  /**
2694
2713
  * Create raw SQL statement.
2695
2714
  */
@@ -2894,6 +2913,49 @@ declare type RuntimeModel = Omit<DMMF.Model, 'name'>;
2894
2913
 
2895
2914
  declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | '';
2896
2915
 
2916
+ declare type Schema = ReadonlyDeep_2<{
2917
+ rootQueryType?: string;
2918
+ rootMutationType?: string;
2919
+ inputObjectTypes: {
2920
+ model?: InputType[];
2921
+ prisma: InputType[];
2922
+ };
2923
+ outputObjectTypes: {
2924
+ model: OutputType[];
2925
+ prisma: OutputType[];
2926
+ };
2927
+ enumTypes: {
2928
+ model?: SchemaEnum[];
2929
+ prisma: SchemaEnum[];
2930
+ };
2931
+ fieldRefTypes: {
2932
+ prisma?: FieldRefType[];
2933
+ };
2934
+ }>;
2935
+
2936
+ declare type SchemaArg = ReadonlyDeep_2<{
2937
+ name: string;
2938
+ comment?: string;
2939
+ isNullable: boolean;
2940
+ isRequired: boolean;
2941
+ inputTypes: InputTypeRef[];
2942
+ deprecation?: Deprecation;
2943
+ }>;
2944
+
2945
+ declare type SchemaEnum = ReadonlyDeep_2<{
2946
+ name: string;
2947
+ values: string[];
2948
+ }>;
2949
+
2950
+ declare type SchemaField = ReadonlyDeep_2<{
2951
+ name: string;
2952
+ isNullable?: boolean;
2953
+ outputType: OutputTypeRef;
2954
+ args: SchemaArg[];
2955
+ deprecation?: Deprecation;
2956
+ documentation?: string;
2957
+ }>;
2958
+
2897
2959
  export declare type Select<T, U> = T extends U ? T : never;
2898
2960
 
2899
2961
  export declare type SelectablePayloadFields<K extends PropertyKey, O> = {
@@ -2938,6 +3000,8 @@ declare class Skip {
2938
3000
 
2939
3001
  export declare const skip: Skip;
2940
3002
 
3003
+ declare type SortOrder = 'asc' | 'desc';
3004
+
2941
3005
  /**
2942
3006
  * An interface that represents a span. A span represents a single operation
2943
3007
  * within a trace. Examples of span might include remote procedure calls or a
@@ -3379,6 +3443,13 @@ export declare type TypeMapCbDef = Fn<{
3379
3443
  /** Shared */
3380
3444
  export declare type TypeMapDef = Record<any, any>;
3381
3445
 
3446
+ declare type TypeRef<AllowedLocations extends FieldLocation> = {
3447
+ isList: boolean;
3448
+ type: string;
3449
+ location: AllowedLocations;
3450
+ namespace?: FieldNamespace;
3451
+ };
3452
+
3382
3453
  declare namespace Types {
3383
3454
  export {
3384
3455
  Result_3 as Result,
@@ -3394,6 +3465,11 @@ declare namespace Types {
3394
3465
  }
3395
3466
  export { Types }
3396
3467
 
3468
+ declare type uniqueIndex = ReadonlyDeep_2<{
3469
+ name: string;
3470
+ fields: string[];
3471
+ }>;
3472
+
3397
3473
  declare type UnknownErrorParams = {
3398
3474
  clientVersion: string;
3399
3475
  batchRequestIdx?: number;