stellate 1.14.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -1,4 +1,241 @@
1
- import { Input } from '@gcdn/configuration';
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>>;
2
239
  export declare type Config = {
3
240
  config: Input & {
4
241
  name: string;