stellate 1.13.2 → 1.14.2

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.
package/build/CLI.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { Command, Commands } from './types';
2
+ /**
3
+ * CLI command
4
+ */
5
+ export declare class CLI implements Command {
6
+ private readonly cmds;
7
+ constructor(cmds: Commands);
8
+ parse(argv: string[]): Promise<string>;
9
+ private static help;
10
+ }
@@ -0,0 +1,6 @@
1
+ import { Command } from './types';
2
+ export declare class Check implements Command {
3
+ private static help;
4
+ parse(argv: string[]): Promise<string>;
5
+ help(error?: string): string;
6
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Unknown command
3
+ */
4
+ export declare function unknownCommand(helpTemplate: string, cmd: string): HelpError;
5
+ /**
6
+ * Custom help error used to display help
7
+ * errors without printing a stack trace
8
+ */
9
+ export declare class HelpError extends Error {
10
+ constructor(msg: string);
11
+ }
@@ -0,0 +1,9 @@
1
+ import { Command } from './types';
2
+ /**
3
+ * $ stellate version
4
+ */
5
+ export declare class Init implements Command {
6
+ private static help;
7
+ parse(argv: string[]): Promise<string>;
8
+ help(error?: string): string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { Command } from './types';
2
+ /**
3
+ * $ stellate ls
4
+ */
5
+ export declare class List implements Command {
6
+ private static help;
7
+ parse(argv: string[]): Promise<string>;
8
+ help(error?: string): string;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { Command } from './types';
2
+ /**
3
+ * $ stellate login
4
+ */
5
+ export declare class Login implements Command {
6
+ private static help;
7
+ parse(argv: string[]): Promise<string>;
8
+ private handleExistingToken;
9
+ requestToken(): Promise<string>;
10
+ private persistToken;
11
+ help(error?: string): string;
12
+ }
@@ -0,0 +1,19 @@
1
+ import { Command } from './types';
2
+ /**
3
+ * $ stellate pull
4
+ * Pull yml.app, write to root
5
+
6
+ * $ stellate pull --app <app>
7
+ * Pull <app>, write config to root
8
+
9
+ * stellate pull --env <env>
10
+ * Pull yml.<env>.app, write env-specific settings to environments.<env> and everything else to root
11
+
12
+ * stellate pull --app <app> --env <env>
13
+ * Pull <app>, write env-specific settings to environments.<env> and everything else to root
14
+ */
15
+ export declare class Pull implements Command {
16
+ private static help;
17
+ parse(argv: string[]): Promise<string>;
18
+ help(error?: string): string;
19
+ }
@@ -0,0 +1,6 @@
1
+ import { Command } from './types';
2
+ export declare class Push implements Command {
3
+ private static help;
4
+ parse(argv: string[]): Promise<string>;
5
+ help(error?: string): string;
6
+ }
@@ -0,0 +1,23 @@
1
+ import { Input } from '@gcdn/configuration';
2
+ import { Command } from './types';
3
+ declare type ServeCacheEntry = {
4
+ checksum: string;
5
+ envName: string;
6
+ purgeToken?: string;
7
+ };
8
+ declare type ServeCache = {
9
+ [appName: string]: ServeCacheEntry;
10
+ };
11
+ export declare class Serve implements Command {
12
+ private static help;
13
+ parse(argv: string[]): Promise<string>;
14
+ setupPurgingProxy(name: string, servePort: number): Promise<void>;
15
+ setupApiProxy(name: string, servePort: number): void;
16
+ ensureConfig(): void;
17
+ getCache(): ServeCache;
18
+ getCacheEntry(appName?: string): ServeCacheEntry;
19
+ getChecksum(input: Input): string;
20
+ writePurgeToken(appName: string, purgeToken: string): void;
21
+ writeCache(appName: string, input: Input, envName: string): ServeCacheEntry;
22
+ }
23
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Command } from './types';
2
+ /**
3
+ * $ stellate version
4
+ */
5
+ export declare class Version implements Command {
6
+ private static help;
7
+ parse(argv: string[]): Promise<string>;
8
+ help(error?: string): string;
9
+ }
package/build/bin.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ts-node
2
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare class AppNotFoundError extends Error {
2
+ constructor(message: any);
3
+ }
4
+ export declare const baseUrl: string;
5
+ export declare class BaseClient {
6
+ private readonly token?;
7
+ constructor(token?: string | undefined);
8
+ query<T>(query: string, variables?: any): Promise<T>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import { Input } from '@gcdn/configuration';
2
+ export declare type ConfigFormat = 'yml' | 'ts' | 'js' | 'mjs';
3
+ export declare const detectConfigFormat: () => ConfigFormat;
4
+ declare const readConfig: (envName?: string | null) => Promise<Input | null>;
5
+ declare const updateConfig: (input: Input, envName?: string | null) => Promise<void>;
6
+ declare const getAppName: (input: Input | null, appName?: string | null) => string;
7
+ declare const hasConfig: () => Promise<boolean>;
8
+ export { readConfig, updateConfig, hasConfig, getAppName };
@@ -0,0 +1,5 @@
1
+ export declare const configDir: string;
2
+ export declare const deprecatedConfigDir: string;
3
+ export declare const tokenPath: string;
4
+ export declare const deprecatedTokenPath: string;
5
+ export declare const serveCache: string;
@@ -0,0 +1 @@
1
+ export declare function getToken(triggerLogin?: boolean): Promise<string>;
@@ -0,0 +1,13 @@
1
+ import { EnumValueChange, FieldArgumentRemoval, FieldArgumentTypeChange, FieldRemoval, FieldTypeChange, SchemaChange, TypeRemoval } from './checkTypes';
2
+ declare type Severity = 'warning' | 'error';
3
+ export declare const getBoxText: ({ severity }: {
4
+ severity: Severity;
5
+ }) => string;
6
+ export declare const printTypeRemoval: (severity: Severity, e: TypeRemoval) => string;
7
+ export declare const printFieldRemoval: (severity: Severity, e: FieldRemoval) => string;
8
+ export declare const printFieldArgumentRemoval: (severity: Severity, e: FieldArgumentRemoval) => string;
9
+ export declare const printFieldTypeChange: (severity: Severity, e: FieldTypeChange) => string;
10
+ export declare const printFieldArgumentTypeChange: (severity: Severity, e: FieldArgumentTypeChange) => string;
11
+ export declare const printEnumValueChange: (severity: Severity, e: EnumValueChange) => string;
12
+ export declare const printSchemaChange: (severity: 'warning' | 'error', e: SchemaChange) => string;
13
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,161 @@
1
+ export declare type SchemaChange = TypeRemoval | FieldRemoval | FieldArgumentRemoval | FieldTypeChange | FieldArgumentTypeChange | EnumValueChange;
2
+ export declare type TypeRemoval = {
3
+ __typename: 'TypeRemoval';
4
+ isBreaking: boolean;
5
+ requestCount: number | null;
6
+ type: GraphQLTypeDetails;
7
+ };
8
+ export declare type FieldRemoval = {
9
+ __typename: 'FieldRemoval';
10
+ isBreaking: boolean;
11
+ requestCount: number | null;
12
+ type: GraphQLTypeName;
13
+ field: {
14
+ name: string;
15
+ sdlType: string;
16
+ args: {
17
+ name: string;
18
+ sdlType: string;
19
+ }[];
20
+ };
21
+ };
22
+ export declare type FieldArgumentRemoval = {
23
+ __typename: 'FieldArgumentRemoval';
24
+ isBreaking: boolean;
25
+ requestCount: number | null;
26
+ type: GraphQLTypeName;
27
+ field: {
28
+ name: string;
29
+ sdlType: string;
30
+ arguments: {
31
+ name: string;
32
+ sdlType: string;
33
+ }[];
34
+ };
35
+ node: {
36
+ name: string;
37
+ sdlType: string;
38
+ };
39
+ };
40
+ export declare type FieldTypeChange = {
41
+ __typename: 'FieldTypeChange';
42
+ isBreaking: boolean;
43
+ requestCount: number | null;
44
+ type: GraphQLTypeName;
45
+ fieldBefore: {
46
+ name: string;
47
+ sdlType: string;
48
+ args: {
49
+ name: string;
50
+ sdlType: string;
51
+ }[];
52
+ };
53
+ fieldAfter: {
54
+ name: string;
55
+ sdlType: string;
56
+ };
57
+ };
58
+ export declare type FieldArgumentTypeChange = {
59
+ __typename: 'FieldArgumentTypeChange';
60
+ isBreaking: boolean;
61
+ requestCount: number | null;
62
+ type: GraphQLTypeName;
63
+ field: {
64
+ name: string;
65
+ sdlType: string;
66
+ };
67
+ fieldArgumentBefore: {
68
+ name: string;
69
+ sdlType: string;
70
+ };
71
+ fieldArgumentAfter: {
72
+ name: string;
73
+ sdlType: string;
74
+ };
75
+ };
76
+ export declare type EnumValueChange = {
77
+ __typename: 'EnumValueChange';
78
+ isBreaking: boolean;
79
+ requestCount: number | null;
80
+ enumTypeBefore: {
81
+ name: string;
82
+ enumValues: {
83
+ name: string;
84
+ }[];
85
+ };
86
+ enumTypeAfter: {
87
+ name: string;
88
+ enumValues: {
89
+ name: string;
90
+ }[];
91
+ };
92
+ };
93
+ declare type GraphQLTypeName = GraphQLScalarTypeName | GraphQLObjectTypeName | GraphQLInputObjectTypeName | GraphQLEnumTypeName | GraphQLInterfaceTypeName | GraphQLUnionTypeName;
94
+ declare type GraphQLScalarTypeName = {
95
+ __typename: 'GraphQLScalarType';
96
+ name: string;
97
+ };
98
+ declare type GraphQLObjectTypeName = {
99
+ __typename: 'GraphQLObjectType';
100
+ name: string;
101
+ };
102
+ declare type GraphQLInputObjectTypeName = {
103
+ __typename: 'GraphQLInputObjectType';
104
+ name: string;
105
+ };
106
+ declare type GraphQLEnumTypeName = {
107
+ __typename: 'GraphQLEnumType';
108
+ name: string;
109
+ };
110
+ declare type GraphQLInterfaceTypeName = {
111
+ __typename: 'GraphQLInterfaceType';
112
+ name: string;
113
+ };
114
+ declare type GraphQLUnionTypeName = {
115
+ __typename: 'GraphQLUnionType';
116
+ name: string;
117
+ };
118
+ declare type GraphQLTypeDetails = GraphQLScalarTypeDetails | GraphQLObjectTypeDetails | GraphQLInputObjectTypeDetails | GraphQLEnumTypeDetails | GraphQLInterfaceTypeDetails | GraphQLUnionTypeDetails;
119
+ declare type GraphQLScalarTypeDetails = {
120
+ __typename: 'GraphQLScalarType';
121
+ name: string;
122
+ };
123
+ declare type GraphQLObjectTypeDetails = {
124
+ __typename: 'GraphQLObjectType';
125
+ name: string;
126
+ fields: {
127
+ name: string;
128
+ sdlType: string;
129
+ }[];
130
+ };
131
+ declare type GraphQLInputObjectTypeDetails = {
132
+ __typename: 'GraphQLInputObjectType';
133
+ name: string;
134
+ fields: {
135
+ name: string;
136
+ sdlType: string;
137
+ }[];
138
+ };
139
+ declare type GraphQLEnumTypeDetails = {
140
+ __typename: 'GraphQLEnumType';
141
+ name: string;
142
+ enumValues: {
143
+ name: string;
144
+ }[];
145
+ };
146
+ declare type GraphQLInterfaceTypeDetails = {
147
+ __typename: 'GraphQLInterfaceType';
148
+ name: string;
149
+ fields: {
150
+ name: string;
151
+ sdlType: string;
152
+ }[];
153
+ };
154
+ declare type GraphQLUnionTypeDetails = {
155
+ __typename: 'GraphQLUnionType';
156
+ name: string;
157
+ possibleTypes: {
158
+ name: string;
159
+ }[];
160
+ };
161
+ export {};
@@ -0,0 +1 @@
1
+ export declare function getCodegenSchema(): string | null;
@@ -0,0 +1,2 @@
1
+ export declare function isPortFree(port: any): Promise<boolean>;
2
+ export declare function getFirstAvailablePort(port: any): Promise<any>;
@@ -0,0 +1,255 @@
1
+ import * as z from 'zod';
2
+ declare const inputSchema: z.ZodObject<{
3
+ app: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5
+ originUrl: z.ZodOptional<z.ZodString>;
6
+ schema: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7
+ injectHeaders: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
8
+ enablePlayground: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
9
+ ignoreOriginCacheControl: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
10
+ queryDepthLimit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
11
+ passThroughOnly: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
12
+ mutationPolicy: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Type", "List", "Entity"]>>>;
13
+ bypassCacheHeaders: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: string;
17
+ }, {
18
+ name: string;
19
+ }>, "many">>>;
20
+ headers: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
21
+ scopes: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
22
+ definition: z.ZodNullable<z.ZodOptional<z.ZodString>>;
23
+ jwt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
24
+ claim: z.ZodNullable<z.ZodOptional<z.ZodString>>;
25
+ algorithm: z.ZodNullable<z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "PS256", "PS384", "PS512"]>>>;
26
+ secret: z.ZodNullable<z.ZodOptional<z.ZodString>>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ claim?: string | null | undefined;
29
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "PS256" | "PS384" | "PS512" | null | undefined;
30
+ secret?: string | null | undefined;
31
+ }, {
32
+ claim?: string | null | undefined;
33
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "PS256" | "PS384" | "PS512" | null | undefined;
34
+ secret?: string | null | undefined;
35
+ }>>>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ definition?: string | null | undefined;
38
+ jwt?: {
39
+ claim?: string | null | undefined;
40
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "PS256" | "PS384" | "PS512" | null | undefined;
41
+ secret?: string | null | undefined;
42
+ } | null | undefined;
43
+ }, {
44
+ definition?: string | null | undefined;
45
+ jwt?: {
46
+ claim?: string | null | undefined;
47
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "PS256" | "PS384" | "PS512" | null | undefined;
48
+ secret?: string | null | undefined;
49
+ } | null | undefined;
50
+ }>]>>>>;
51
+ rootTypeNames: z.ZodNullable<z.ZodOptional<z.ZodObject<{
52
+ query: z.ZodNullable<z.ZodOptional<z.ZodString>>;
53
+ mutation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
54
+ subscription: z.ZodNullable<z.ZodOptional<z.ZodString>>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ query?: string | null | undefined;
57
+ mutation?: string | null | undefined;
58
+ subscription?: string | null | undefined;
59
+ }, {
60
+ query?: string | null | undefined;
61
+ mutation?: string | null | undefined;
62
+ subscription?: string | null | undefined;
63
+ }>>>;
64
+ keyFields: z.ZodNullable<z.ZodOptional<z.ZodObject<{
65
+ autoAdd: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
66
+ defaults: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
67
+ types: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ autoAdd?: boolean | null | undefined;
70
+ defaults?: string[] | null | undefined;
71
+ types: Record<string, string[]> | null;
72
+ }, {
73
+ autoAdd?: boolean | null | undefined;
74
+ defaults?: string[] | null | undefined;
75
+ types: Record<string, string[]> | null;
76
+ }>>>;
77
+ rules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
78
+ /** Array of types, or dictionary to enable types, fields of types, or list of fields per type. */
79
+ types: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodRecord<z.ZodString, z.ZodBoolean>]>, z.ZodArray<z.ZodString, "many">]>>, z.ZodArray<z.ZodString, "many">]>;
80
+ maxAge: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
81
+ swr: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
82
+ scope: z.ZodNullable<z.ZodOptional<z.ZodString>>;
83
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ types: (string[] | Record<string, boolean | Record<string, boolean> | string[]> | undefined) & (string[] | Record<string, boolean | Record<string, boolean> | string[]>);
86
+ maxAge?: number | null | undefined;
87
+ swr?: number | null | undefined;
88
+ scope?: string | null | undefined;
89
+ description?: string | null | undefined;
90
+ }, {
91
+ types: (string[] | Record<string, boolean | Record<string, boolean> | string[]> | undefined) & (string[] | Record<string, boolean | Record<string, boolean> | string[]>);
92
+ maxAge?: number | null | undefined;
93
+ swr?: number | null | undefined;
94
+ scope?: string | null | undefined;
95
+ description?: string | null | undefined;
96
+ }>, "many">>>;
97
+ retries: z.ZodNullable<z.ZodOptional<z.ZodObject<{
98
+ networkErrors: z.ZodNullable<z.ZodOptional<z.ZodObject<{
99
+ isEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
100
+ whenGraphQLResponse: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ isEnabled?: boolean | null | undefined;
103
+ whenGraphQLResponse?: boolean | null | undefined;
104
+ }, {
105
+ isEnabled?: boolean | null | undefined;
106
+ whenGraphQLResponse?: boolean | null | undefined;
107
+ }>>>;
108
+ serverErrors: z.ZodNullable<z.ZodOptional<z.ZodObject<{
109
+ isEnabled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
110
+ whenGraphQLResponse: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ isEnabled?: boolean | null | undefined;
113
+ whenGraphQLResponse?: boolean | null | undefined;
114
+ }, {
115
+ isEnabled?: boolean | null | undefined;
116
+ whenGraphQLResponse?: boolean | null | undefined;
117
+ }>>>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ networkErrors?: {
120
+ isEnabled?: boolean | null | undefined;
121
+ whenGraphQLResponse?: boolean | null | undefined;
122
+ } | null | undefined;
123
+ serverErrors?: {
124
+ isEnabled?: boolean | null | undefined;
125
+ whenGraphQLResponse?: boolean | null | undefined;
126
+ } | null | undefined;
127
+ }, {
128
+ networkErrors?: {
129
+ isEnabled?: boolean | null | undefined;
130
+ whenGraphQLResponse?: boolean | null | undefined;
131
+ } | null | undefined;
132
+ serverErrors?: {
133
+ isEnabled?: boolean | null | undefined;
134
+ whenGraphQLResponse?: boolean | null | undefined;
135
+ } | null | undefined;
136
+ }>>>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ app?: string | undefined;
139
+ name?: string | undefined;
140
+ originUrl?: string | undefined;
141
+ schema?: string | null | undefined;
142
+ injectHeaders?: boolean | null | undefined;
143
+ enablePlayground?: boolean | null | undefined;
144
+ ignoreOriginCacheControl?: boolean | null | undefined;
145
+ queryDepthLimit?: number | null | undefined;
146
+ passThroughOnly?: boolean | null | undefined;
147
+ mutationPolicy?: "Type" | "List" | "Entity" | null | undefined;
148
+ bypassCacheHeaders?: {
149
+ name: string;
150
+ }[] | null | undefined;
151
+ headers?: Record<string, string> | null | undefined;
152
+ scopes?: Record<string, string | {
153
+ definition?: string | null | undefined;
154
+ jwt?: {
155
+ claim?: string | null | undefined;
156
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "PS256" | "PS384" | "PS512" | null | undefined;
157
+ secret?: string | null | undefined;
158
+ } | null | undefined;
159
+ }> | null | undefined;
160
+ rootTypeNames?: {
161
+ query?: string | null | undefined;
162
+ mutation?: string | null | undefined;
163
+ subscription?: string | null | undefined;
164
+ } | null | undefined;
165
+ keyFields?: {
166
+ autoAdd?: boolean | null | undefined;
167
+ defaults?: string[] | null | undefined;
168
+ types: Record<string, string[]> | null;
169
+ } | null | undefined;
170
+ rules?: {
171
+ types: (string[] | Record<string, boolean | Record<string, boolean> | string[]> | undefined) & (string[] | Record<string, boolean | Record<string, boolean> | string[]>);
172
+ maxAge?: number | null | undefined;
173
+ swr?: number | null | undefined;
174
+ scope?: string | null | undefined;
175
+ description?: string | null | undefined;
176
+ }[] | null | undefined;
177
+ retries?: {
178
+ networkErrors?: {
179
+ isEnabled?: boolean | null | undefined;
180
+ whenGraphQLResponse?: boolean | null | undefined;
181
+ } | null | undefined;
182
+ serverErrors?: {
183
+ isEnabled?: boolean | null | undefined;
184
+ whenGraphQLResponse?: boolean | null | undefined;
185
+ } | null | undefined;
186
+ } | null | undefined;
187
+ }, {
188
+ app?: string | undefined;
189
+ name?: string | undefined;
190
+ originUrl?: string | undefined;
191
+ schema?: string | null | undefined;
192
+ injectHeaders?: boolean | null | undefined;
193
+ enablePlayground?: boolean | null | undefined;
194
+ ignoreOriginCacheControl?: boolean | null | undefined;
195
+ queryDepthLimit?: number | null | undefined;
196
+ passThroughOnly?: boolean | null | undefined;
197
+ mutationPolicy?: "Type" | "List" | "Entity" | null | undefined;
198
+ bypassCacheHeaders?: {
199
+ name: string;
200
+ }[] | null | undefined;
201
+ headers?: Record<string, string> | null | undefined;
202
+ scopes?: Record<string, string | {
203
+ definition?: string | null | undefined;
204
+ jwt?: {
205
+ claim?: string | null | undefined;
206
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "PS256" | "PS384" | "PS512" | null | undefined;
207
+ secret?: string | null | undefined;
208
+ } | null | undefined;
209
+ }> | null | undefined;
210
+ rootTypeNames?: {
211
+ query?: string | null | undefined;
212
+ mutation?: string | null | undefined;
213
+ subscription?: string | null | undefined;
214
+ } | null | undefined;
215
+ keyFields?: {
216
+ autoAdd?: boolean | null | undefined;
217
+ defaults?: string[] | null | undefined;
218
+ types: Record<string, string[]> | null;
219
+ } | null | undefined;
220
+ rules?: {
221
+ types: (string[] | Record<string, boolean | Record<string, boolean> | string[]> | undefined) & (string[] | Record<string, boolean | Record<string, boolean> | string[]>);
222
+ maxAge?: number | null | undefined;
223
+ swr?: number | null | undefined;
224
+ scope?: string | null | undefined;
225
+ description?: string | null | undefined;
226
+ }[] | null | undefined;
227
+ retries?: {
228
+ networkErrors?: {
229
+ isEnabled?: boolean | null | undefined;
230
+ whenGraphQLResponse?: boolean | null | undefined;
231
+ } | null | undefined;
232
+ serverErrors?: {
233
+ isEnabled?: boolean | null | undefined;
234
+ whenGraphQLResponse?: boolean | null | undefined;
235
+ } | null | undefined;
236
+ } | null | undefined;
237
+ }>;
238
+ declare type Input = Readonly<z.infer<typeof inputSchema>>;
239
+ export declare type Config = {
240
+ config: Input & {
241
+ name: string;
242
+ originUrl: string;
243
+ schema?: string;
244
+ environments?: {
245
+ [key: string]: Partial<{
246
+ name: string;
247
+ schema?: string;
248
+ app?: string;
249
+ originUrl: string;
250
+ }>;
251
+ };
252
+ };
253
+ };
254
+ declare const createConfig: (input: Partial<Input>) => Input;
255
+ export default createConfig;