stellate 2.12.0 → 2.14.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 (3) hide show
  1. package/dist/bin.js +657 -647
  2. package/dist/index.d.ts +115 -0
  3. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -98,6 +98,13 @@ declare const inputSchema: z.ZodObject<{
98
98
  */
99
99
  httpVersion: z.ZodNullable<z.ZodOptional<z.ZodEnum<["1.1", "2", "3"]>>>;
100
100
  schema: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
+ schemaPolling: z.ZodNullable<z.ZodOptional<z.ZodObject<{
102
+ enabled: z.ZodBoolean;
103
+ }, "strip", z.ZodTypeAny, {
104
+ enabled: boolean;
105
+ }, {
106
+ enabled: boolean;
107
+ }>>>;
101
108
  cacheIntrospection: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
102
109
  injectHeaders: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
103
110
  devPortal: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -415,6 +422,65 @@ declare const inputSchema: z.ZodObject<{
415
422
  secret?: string | null | undefined;
416
423
  } | null | undefined;
417
424
  }>>>>;
425
+ userId: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
426
+ header: z.ZodString;
427
+ jwt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
428
+ claim: z.ZodNullable<z.ZodOptional<z.ZodString>>;
429
+ algorithm: z.ZodNullable<z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES256k", "EdDSA", "PS256", "PS384", "PS512"]>>>;
430
+ secret: z.ZodNullable<z.ZodOptional<z.ZodString>>;
431
+ }, "strip", z.ZodTypeAny, {
432
+ claim?: string | null | undefined;
433
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
434
+ secret?: string | null | undefined;
435
+ }, {
436
+ claim?: string | null | undefined;
437
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
438
+ secret?: string | null | undefined;
439
+ }>>>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ header: string;
442
+ jwt?: {
443
+ claim?: string | null | undefined;
444
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
445
+ secret?: string | null | undefined;
446
+ } | null | undefined;
447
+ }, {
448
+ header: string;
449
+ jwt?: {
450
+ claim?: string | null | undefined;
451
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
452
+ secret?: string | null | undefined;
453
+ } | null | undefined;
454
+ }>, z.ZodObject<{
455
+ cookie: z.ZodString;
456
+ jwt: z.ZodNullable<z.ZodOptional<z.ZodObject<{
457
+ claim: z.ZodNullable<z.ZodOptional<z.ZodString>>;
458
+ algorithm: z.ZodNullable<z.ZodOptional<z.ZodEnum<["HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "ES256", "ES384", "ES256k", "EdDSA", "PS256", "PS384", "PS512"]>>>;
459
+ secret: z.ZodNullable<z.ZodOptional<z.ZodString>>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ claim?: string | null | undefined;
462
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
463
+ secret?: string | null | undefined;
464
+ }, {
465
+ claim?: string | null | undefined;
466
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
467
+ secret?: string | null | undefined;
468
+ }>>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ cookie: string;
471
+ jwt?: {
472
+ claim?: string | null | undefined;
473
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
474
+ secret?: string | null | undefined;
475
+ } | null | undefined;
476
+ }, {
477
+ cookie: string;
478
+ jwt?: {
479
+ claim?: string | null | undefined;
480
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
481
+ secret?: string | null | undefined;
482
+ } | null | undefined;
483
+ }>]>>>;
418
484
  graphiql: z.ZodNullable<z.ZodOptional<z.ZodObject<{
419
485
  enabled: z.ZodBoolean;
420
486
  title: z.ZodOptional<z.ZodString>;
@@ -893,12 +959,22 @@ declare const inputSchema: z.ZodObject<{
893
959
  } | null | undefined;
894
960
  }>>>;
895
961
  removeCookies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
962
+ variableLogging: z.ZodNullable<z.ZodOptional<z.ZodObject<{
963
+ enabled: z.ZodBoolean;
964
+ }, "strip", z.ZodTypeAny, {
965
+ enabled: boolean;
966
+ }, {
967
+ enabled: boolean;
968
+ }>>>;
896
969
  }, "strip", z.ZodTypeAny, {
897
970
  app?: string | undefined;
898
971
  name?: string | undefined;
899
972
  originUrl?: string | undefined;
900
973
  httpVersion?: "1.1" | "2" | "3" | null | undefined;
901
974
  schema?: string | null | undefined;
975
+ schemaPolling?: {
976
+ enabled: boolean;
977
+ } | null | undefined;
902
978
  cacheIntrospection?: boolean | null | undefined;
903
979
  injectHeaders?: boolean | null | undefined;
904
980
  devPortal?: {
@@ -987,6 +1063,21 @@ declare const inputSchema: z.ZodObject<{
987
1063
  secret?: string | null | undefined;
988
1064
  } | null | undefined;
989
1065
  }> | null | undefined;
1066
+ userId?: {
1067
+ header: string;
1068
+ jwt?: {
1069
+ claim?: string | null | undefined;
1070
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
1071
+ secret?: string | null | undefined;
1072
+ } | null | undefined;
1073
+ } | {
1074
+ cookie: string;
1075
+ jwt?: {
1076
+ claim?: string | null | undefined;
1077
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
1078
+ secret?: string | null | undefined;
1079
+ } | null | undefined;
1080
+ } | null | undefined;
990
1081
  graphiql?: {
991
1082
  enabled: boolean;
992
1083
  title?: string | undefined;
@@ -1107,12 +1198,18 @@ declare const inputSchema: z.ZodObject<{
1107
1198
  } | null | undefined;
1108
1199
  } | null | undefined;
1109
1200
  removeCookies?: string[] | null | undefined;
1201
+ variableLogging?: {
1202
+ enabled: boolean;
1203
+ } | null | undefined;
1110
1204
  }, {
1111
1205
  app?: string | undefined;
1112
1206
  name?: string | undefined;
1113
1207
  originUrl?: string | undefined;
1114
1208
  httpVersion?: "1.1" | "2" | "3" | null | undefined;
1115
1209
  schema?: string | null | undefined;
1210
+ schemaPolling?: {
1211
+ enabled: boolean;
1212
+ } | null | undefined;
1116
1213
  cacheIntrospection?: boolean | null | undefined;
1117
1214
  injectHeaders?: boolean | null | undefined;
1118
1215
  devPortal?: {
@@ -1201,6 +1298,21 @@ declare const inputSchema: z.ZodObject<{
1201
1298
  secret?: string | null | undefined;
1202
1299
  } | null | undefined;
1203
1300
  }> | null | undefined;
1301
+ userId?: {
1302
+ header: string;
1303
+ jwt?: {
1304
+ claim?: string | null | undefined;
1305
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
1306
+ secret?: string | null | undefined;
1307
+ } | null | undefined;
1308
+ } | {
1309
+ cookie: string;
1310
+ jwt?: {
1311
+ claim?: string | null | undefined;
1312
+ algorithm?: "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES256k" | "EdDSA" | "PS256" | "PS384" | "PS512" | null | undefined;
1313
+ secret?: string | null | undefined;
1314
+ } | null | undefined;
1315
+ } | null | undefined;
1204
1316
  graphiql?: {
1205
1317
  enabled: boolean;
1206
1318
  title?: string | undefined;
@@ -1321,6 +1433,9 @@ declare const inputSchema: z.ZodObject<{
1321
1433
  } | null | undefined;
1322
1434
  } | null | undefined;
1323
1435
  removeCookies?: string[] | null | undefined;
1436
+ variableLogging?: {
1437
+ enabled: boolean;
1438
+ } | null | undefined;
1324
1439
  }>;
1325
1440
  type Input$1 = Readonly<z.infer<typeof inputSchema>>;
1326
1441
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellate",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "engines": {
5
5
  "node": ">=16"
6
6
  },
@@ -10,7 +10,7 @@
10
10
  "registry": "https://registry.npmjs.org/"
11
11
  },
12
12
  "devDependencies": {
13
- "@apollo/server": "^4.9.0",
13
+ "@apollo/server": "^4.10.2",
14
14
  "@envelop/core": "^4.0.0",
15
15
  "@graphql-codegen/plugin-helpers": "^5.0.1",
16
16
  "@graphql-tools/code-file-loader": "^7.2.4",
@@ -41,10 +41,10 @@
41
41
  "tsup": "6.7.0",
42
42
  "tsx": "^3.12.1",
43
43
  "typescript": "^5.1.6",
44
- "vitest": "^1.3.0",
44
+ "vitest": "^1.4.0",
45
45
  "ws": "8.11.0",
46
46
  "yaml": "^1.10.2",
47
- "@gcdn/configuration": "1.32.0"
47
+ "@gcdn/configuration": "1.35.0"
48
48
  },
49
49
  "bin": {
50
50
  "stellate": "dist/bin.js",
@@ -117,7 +117,7 @@
117
117
  "is-ci": "^3.0.1",
118
118
  "lz-string": "1.5.0",
119
119
  "random-words": "^1.1.1",
120
- "zod": "^3.21.4"
120
+ "zod": "^3.22.4"
121
121
  },
122
122
  "scripts": {
123
123
  "build": "tsup && rm dist/bin.mjs",