@nsshunt/stsconfig 1.19.0 → 1.22.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 (43) hide show
  1. package/.env-default +17 -4
  2. package/.env-test-file-2 +15 -2
  3. package/.eslintrc.json +16 -9
  4. package/.github/workflows/npm-publish.yml +1 -0
  5. package/babel.config.json +6 -0
  6. package/dist/index.js +18 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/jest/setEnvVars.js +4 -0
  9. package/dist/jest/setEnvVars.js.map +1 -0
  10. package/dist/jest.config.js +143 -0
  11. package/dist/jest.config.js.map +1 -0
  12. package/dist/stsconfig-01.test.js +195 -0
  13. package/dist/stsconfig-01.test.js.map +1 -0
  14. package/dist/stsconfig-02.test.js +195 -0
  15. package/dist/stsconfig-02.test.js.map +1 -0
  16. package/dist/stsconfig-default.test.js +195 -0
  17. package/dist/stsconfig-default.test.js.map +1 -0
  18. package/dist/stsconfig.js +587 -0
  19. package/dist/stsconfig.js.map +1 -0
  20. package/index.ts +821 -0
  21. package/jest/setEnvVars.js +4 -0
  22. package/jest.config.js +197 -0
  23. package/package.json +14 -7
  24. package/{stsconfig-01.test.js → stsconfig-01.test.ts} +37 -32
  25. package/stsconfig-02.test.js +36 -31
  26. package/stsconfig-default.test.js +36 -31
  27. package/{stsconfig.js → stsconfig.ts} +118 -56
  28. package/tsconfig.json +16 -0
  29. package/types/index.d.ts +604 -0
  30. package/types/index.d.ts.map +1 -0
  31. package/types/jest/setEnvVars.d.ts +1 -0
  32. package/types/jest/setEnvVars.d.ts.map +1 -0
  33. package/types/jest.config.d.ts +3 -0
  34. package/types/jest.config.d.ts.map +1 -0
  35. package/types/stsconfig-01.test.d.ts +2 -0
  36. package/types/stsconfig-01.test.d.ts.map +1 -0
  37. package/types/stsconfig-02.test.d.ts +2 -0
  38. package/types/stsconfig-02.test.d.ts.map +1 -0
  39. package/types/stsconfig-default.test.d.ts +2 -0
  40. package/types/stsconfig-default.test.d.ts.map +1 -0
  41. package/types/stsconfig.d.ts +4 -0
  42. package/types/stsconfig.d.ts.map +1 -0
  43. package/.babelrc +0 -1
@@ -0,0 +1,604 @@
1
+ export interface STSOptions {
2
+ /**
3
+ * Node runtime environment
4
+ */
5
+ isProduction: boolean;
6
+ /**
7
+ * Node runtime environment
8
+ */
9
+ isTest: boolean;
10
+ /**
11
+ * Maximum number of CPUs (incl. logical processors) to use within the Microservice.
12
+ * Use -1 to use all available within the runtime container. Each CPU will spawn a node work thread.
13
+ */
14
+ useCPUs: number;
15
+ /**
16
+ * Automatically re-spawn a worker thread if one dies.
17
+ */
18
+ respawnOnFail: boolean;
19
+ /**
20
+ * Log error messages to the console within the microservice
21
+ */
22
+ consoleLogErrors: boolean;
23
+ /**
24
+ * Database username.
25
+ */
26
+ dbuser: string;
27
+ /**
28
+ * Database password.
29
+ */
30
+ dbpassword: string;
31
+ /**
32
+ * Database password file
33
+ */
34
+ dbpasswordfile: string;
35
+ /**
36
+ * Database host
37
+ */
38
+ dbhost: string;
39
+ /**
40
+ * Database port
41
+ */
42
+ dbport: string;
43
+ /**
44
+ * Database name.
45
+ */
46
+ database: string;
47
+ /**
48
+ * Database connection string to be used in production mode
49
+ */
50
+ databaseUrl: string;
51
+ /**
52
+ * Database script(s) folder
53
+ */
54
+ databasescriptfolder: string;
55
+ /**
56
+ * The maximum pool size for pg. There will be one pool per thread.
57
+ */
58
+ poolSize: number;
59
+ /**
60
+ * Default number of entries to create for a fresh database.
61
+ */
62
+ defaultDatabaseEntries: number;
63
+ /**
64
+ * Default number of entries to create for a fresh database.
65
+ */
66
+ defaultDatabaseMinExtraDataSize: number;
67
+ /**
68
+ * Default number of entries to create for a fresh database.
69
+ */
70
+ defaultDatabaseMaxExtraDataSize: number;
71
+ /**
72
+ * Microservice listen port.
73
+ */
74
+ useRedis: boolean;
75
+ /**
76
+ * Use redis for Microservice.
77
+ */
78
+ useL1Redis: boolean;
79
+ /**
80
+ * Automatically flush the redis cache when terminating the Microservice.
81
+ */
82
+ endFlush: boolean;
83
+ /**
84
+ * Redis server port.
85
+ */
86
+ redisPort: string;
87
+ /**
88
+ * Redis server endpoint.
89
+ */
90
+ redisServer: string;
91
+ /**
92
+ * Default K6 test script path
93
+ */
94
+ k6ScriptPath: string;
95
+ /**
96
+ * STSREST01 Server endpoint
97
+ */
98
+ rest01endpoint: string;
99
+ /**
100
+ * STSREST01 Server port (listen port for the service)
101
+ */
102
+ rest01hostport: string;
103
+ /**
104
+ * STSREST01 Server port (client port to access the service)
105
+ */
106
+ rest01port: string;
107
+ /**
108
+ * STSREST01 Server endpoint
109
+ */
110
+ rest01apiroot: string;
111
+ /**
112
+ * STSREST01 API Identifier. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
113
+ */
114
+ rest01apiidentifier: string;
115
+ /**
116
+ * STSREST01 API Identifier file. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
117
+ */
118
+ rest01apiidentifierfile: string;
119
+ /**
120
+ * STSREST01 Prometheus metric support
121
+ */
122
+ rest01prometheussupport: boolean;
123
+ /**
124
+ * STSREST01 Cluster Server port (port used for cluster prometheus scrapes). Service will listen on this port at mount point /metrics
125
+ */
126
+ rest01prometheusclusterport: string;
127
+ /**
128
+ * STSREST01 Service Name
129
+ */
130
+ rest01servicename: string;
131
+ /**
132
+ * STSREST01 Service Version
133
+ */
134
+ rest01serviceversion: string;
135
+ /**
136
+ * STSREST01 Server client ID. Used for oauth2 client credentials flow.
137
+ * Ref: https://auth0.com/docs/get-started/authentication-and-authorization-flow/client-credentials-flow
138
+ * Ref: https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow
139
+ */
140
+ rest01clientid: string;
141
+ /**
142
+ * STSREST01 Server client ID file. Used for oauth2 client credentials flow.
143
+ */
144
+ rest01clientidfile: string;
145
+ /**
146
+ * STSREST01 Server client secret. Used for oauth2 client credentials flow.
147
+ */
148
+ rest01clientsecret: string;
149
+ /**
150
+ * STSREST01 Server client secret file. Used for oauth2 client credentials flow.
151
+ */
152
+ rest01clientsecretfile: string;
153
+ /**
154
+ * STS Instrument Manager Service endpoint
155
+ */
156
+ imendpoint: string;
157
+ /**
158
+ * STS Instrument Manager Service listen port (listen port for the service)
159
+ */
160
+ imhostport: string;
161
+ /**
162
+ * STS Instrument Manager Service client access port (client port to access the service)
163
+ */
164
+ import: string;
165
+ /**
166
+ * STS Instrument Manager Service endpoint
167
+ */
168
+ imapiroot: string;
169
+ /**
170
+ * Instrument Manager API Identifier. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
171
+ */
172
+ imapiidentifier: string;
173
+ /**
174
+ * Instrument Manager API Identifier file. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
175
+ */
176
+ imapiidentifierfile: string;
177
+ /**
178
+ * STS Instrument Manager Prometheus metric support
179
+ */
180
+ imprometheussupport: boolean;
181
+ /**
182
+ * STS Instrument Manager Cluster Server port (port used for cluster prometheus scrapes)
183
+ */
184
+ imprometheusclusterport: string;
185
+ /**
186
+ * STS Instrument Manager Service Name
187
+ */
188
+ imservicename: string;
189
+ /**
190
+ * STS Instrument Manager Service Version
191
+ */
192
+ imserviceversion: string;
193
+ /**
194
+ * STS Instrument Manager Server client ID. Used for oauth2 client credentials flow.
195
+ */
196
+ imclientid: string;
197
+ /**
198
+ * STS Instrument Manager Server client ID file. Used for oauth2 client credentials flow.
199
+ */
200
+ imclientidfile: string;
201
+ /**
202
+ * STS Instrument Manager Server client secret. Used for oauth2 client credentials flow.
203
+ */
204
+ imclientsecret: string;
205
+ /**
206
+ * STS Instrument Manager Server client secret file. Used for oauth2 client credentials flow.
207
+ */
208
+ imclientsecretfile: string;
209
+ /**
210
+ * STS Test Orchestrator Service endpoint
211
+ */
212
+ toendpoint: string;
213
+ /**
214
+ * STS Test Orchestrator Service listen port (listen port for the service)
215
+ */
216
+ tohostport: string;
217
+ /**
218
+ * STS Test Orchestrator Service client access port (client port to access the service)
219
+ */
220
+ toport: string;
221
+ /**
222
+ * STS Test Orchestrator Service endpoint
223
+ */
224
+ toapiroot: string;
225
+ /**
226
+ * Test Orchestrator API Identifier. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
227
+ */
228
+ toapiidentifier: string;
229
+ /**
230
+ * Test Orchestrator API Identifier file. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
231
+ */
232
+ toapiidentifierfile: string;
233
+ /**
234
+ * STS Test Orchestrator Prometheus metric support
235
+ */
236
+ toprometheussupport: boolean;
237
+ /**
238
+ * STS Test Orchestrator Cluster Server port (port used for cluster prometheus scrapes)
239
+ */
240
+ toprometheusclusterport: string;
241
+ /**
242
+ * STS Test Orchestrator Service Name
243
+ */
244
+ toservicename: string;
245
+ /**
246
+ * STS Test Orchestrator Service Version
247
+ */
248
+ toserviceversion: string;
249
+ /**
250
+ * STS Test Orchestrator Server client ID. Used for oauth2 client credentials flow.
251
+ */
252
+ toclientid: string;
253
+ /**
254
+ * STS Test Orchestrator Server client ID file. Used for oauth2 client credentials flow.
255
+ */
256
+ toclientidfile: string;
257
+ /**
258
+ * STS Test Orchestrator Server client secret. Used for oauth2 client credentials flow.
259
+ */
260
+ toclientsecret: string;
261
+ /**
262
+ * STS Test Orchestrator Server client secret file. Used for oauth2 client credentials flow.
263
+ */
264
+ toclientsecretfile: string;
265
+ /**
266
+ * Auth Server endpoint
267
+ */
268
+ asendpoint: string;
269
+ /**
270
+ * Auth Server host port (listen port for the service)
271
+ */
272
+ ashostport: string;
273
+ /**
274
+ * Auth Server port (client port to access the service)
275
+ */
276
+ asport: string;
277
+ /**
278
+ * Auth Server API root.
279
+ */
280
+ asapiroot: string;
281
+ /**
282
+ * Auth Server OAuth2 API root.
283
+ */
284
+ asoauthapiroot: string;
285
+ /**
286
+ * Auth Server Admin API root.
287
+ */
288
+ asadminapiroot: string;
289
+ /**
290
+ * Auth Server API Identifier.
291
+ */
292
+ asapiidentifier: string;
293
+ /**
294
+ * Auth Server API Identifier file.
295
+ */
296
+ asapiidentifierfile: string;
297
+ /**
298
+ * Auth Server OAuth API Identifier.
299
+ */
300
+ asoauthapiidentifier: string;
301
+ /**
302
+ * Auth Server OAuth API Identifier file.
303
+ */
304
+ asoauthapiidentifierfile: string;
305
+ /**
306
+ * Auth Server Administration API Identifier.
307
+ */
308
+ asadminapiidentifier: string;
309
+ /**
310
+ * Auth Server Administration API Identifier file.
311
+ */
312
+ asadminapiidentifierfile: string;
313
+ /**
314
+ * Auth Server Prometheus metric support
315
+ */
316
+ asprometheussupport: boolean;
317
+ /**
318
+ * Auth Prometheus Cluster Server port (port used for cluster prometheus scrapes)
319
+ */
320
+ asprometheusclusterport: string;
321
+ /**
322
+ * STSAuth Service Name
323
+ */
324
+ asservicename: string;
325
+ /**
326
+ * STSAuth Service Version
327
+ */
328
+ asserviceversion: string;
329
+ /**
330
+ * STS Auth Server client ID. Used for oauth2 client credentials flow.
331
+ */
332
+ asclientid: string;
333
+ /**
334
+ * STS Auth Server client ID file. Used for oauth2 client credentials flow.
335
+ */
336
+ asclientidfile: string;
337
+ /**
338
+ * STS Auth Server client secret. Used for oauth2 client credentials flow.
339
+ */
340
+ asclientsecret: string;
341
+ /**
342
+ * STS Auth Server client secret file. Used for oauth2 client credentials flow.
343
+ */
344
+ asclientsecretfile: string;
345
+ /**
346
+ * Auth Server - JWKS Public End Point.
347
+ */
348
+ asjwksjsonpath: string;
349
+ /**
350
+ * Auth Server - JWKS key rotation time (seconds).
351
+ */
352
+ asjwkskeyrotationtime: number;
353
+ /**
354
+ * Auth Server - JWKS key purge time offset (seconds). Old keys (current keys are considered 'old' immediately after a key rotation) will be kept
355
+ * for asaccesstokenexpire + asjwkskeypurgetimeoffset seconds before purging from the JWKS.
356
+ */
357
+ asjwkskeypurgetimeoffset: number;
358
+ /**
359
+ * Auth Server - JWKS key count. Defines the number of active keys within the JWKS. Note that the actual key count may be double this value as current
360
+ * keys are rotated to old keys prior to old key purge. Old keys will be kept for asaccesstokenexpire + asjwkskeypurgetimeoffset seconds before removal from the JWKS.
361
+ * This is to ensure that any tokens signed by a current key that is then expired can still be validated within the life of the issued token.
362
+ */
363
+ asjwkskeycount: number;
364
+ /**
365
+ * Auth Server - JWKS Access token timeout.
366
+ */
367
+ asaccesstokenexpire: number;
368
+ /**
369
+ * STSBroker Server endpoint
370
+ */
371
+ brokerendpoint: string;
372
+ /**
373
+ * STSBroker Server port (listen port for the service)
374
+ */
375
+ brokerhostport: string;
376
+ /**
377
+ * STSBroker Server port (client port to access the service)
378
+ */
379
+ brokerport: string;
380
+ /**
381
+ * STSBroker Server endpoint
382
+ */
383
+ brokerapiroot: string;
384
+ /**
385
+ * STSBroker API Identifier. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
386
+ */
387
+ brokerapiidentifier: string;
388
+ /**
389
+ * STSBroker API Identifier file. This value will be used as the audience parameter on authorization calls (OAuth2 client credentials flow).
390
+ */
391
+ brokerapiidentifierfile: string;
392
+ /**
393
+ * STSBroker Prometheus metric support
394
+ */
395
+ brokerprometheussupport: boolean;
396
+ /**
397
+ * STSBroker Cluster Server port (port used for cluster prometheus scrapes). Service will listen on this port at mount point /metrics
398
+ */
399
+ brokerprometheusclusterport: string;
400
+ /**
401
+ * STSBroker Service Name
402
+ */
403
+ brokerservicename: string;
404
+ /**
405
+ * STSBroker Service Version
406
+ */
407
+ brokerserviceversion: string;
408
+ /**
409
+ * STSBroker Server client ID. Used for oauth2 client credentials flow.
410
+ */
411
+ brokerclientid: string;
412
+ /**
413
+ * STSBroker Server client ID file. Used for oauth2 client credentials flow.
414
+ */
415
+ brokerclientidfile: string;
416
+ /**
417
+ * STSBroker Server client secret. Used for oauth2 client credentials flow.
418
+ */
419
+ brokerclientsecret: string;
420
+ /**
421
+ * STSBroker Server client secret file. Used for oauth2 client credentials flow.
422
+ */
423
+ brokerclientsecretfile: string;
424
+ /**
425
+ * STS Test Runner Prometheus metric support
426
+ */
427
+ trprometheussupport: boolean;
428
+ /**
429
+ * STS Test Runner Cluster Server port (port used for cluster prometheus scrapes)
430
+ */
431
+ trprometheusclusterport: string;
432
+ /**
433
+ * STS Test Runner Service Name
434
+ */
435
+ trservicename: string;
436
+ /**
437
+ * STS Test Runner Service Version
438
+ */
439
+ trserviceversion: string;
440
+ /**
441
+ * STS Test Runner Server client ID. Used for oauth2 client credentials flow.
442
+ */
443
+ trclientid: string;
444
+ /**
445
+ * STS Test Runner Server client ID file. Used for oauth2 client credentials flow.
446
+ */
447
+ trclientidfile: string;
448
+ /**
449
+ * STS Test Runner Server client secret. Used for oauth2 client credentials flow.
450
+ */
451
+ trclientsecret: string;
452
+ /**
453
+ * STS Test Runner Server client secret file. Used for oauth2 client credentials flow.
454
+ */
455
+ trclientsecretfile: string;
456
+ /**
457
+ * Duration (in ms) between each publish event.
458
+ */
459
+ publishinterval: number;
460
+ /**
461
+ * The maximum time (in ms) to wait before timeout error when publishing instruments. Ideally, this should always be lower than the publishinterval frequency
462
+ * to avoid cascading http build up errors.
463
+ */
464
+ publishtimeout: number;
465
+ /**
466
+ * If true, instrument publish failures will be logged to debug output.
467
+ */
468
+ publishdebug: boolean;
469
+ /**
470
+ * Transport(s) to use for sending instrumentation data to the instrumentation server
471
+ */
472
+ transport: string;
473
+ /**
474
+ * Use secure cookies option when passing back cookies from STS services (such as STSAuth service).
475
+ * This setting will be ignore for production mode. In production mode services will always use secure cookies.
476
+ */
477
+ useSecureCookies: boolean;
478
+ /**
479
+ * keepAlive <boolean> Keep sockets around even when there are no outstanding requests, so they can be used for future requests without having to reestablish a
480
+ * TCP connection. Not to be confused with the keep-alive value of the Connection header. The Connection: keep-alive header is always sent when using an agent
481
+ * except when the Connection header is explicitly specified or when the keepAlive and maxSockets options are respectively set to false and Infinity, in which
482
+ * case Connection: close will be used. Default: false.
483
+ * Reference: https://nodejs.org/api/http.html#class-httpagent
484
+ */
485
+ keepAlive: boolean;
486
+ /**
487
+ * maxSockets <number> Maximum number of sockets to allow per host. If the same host opens multiple concurrent connections, each request will use new socket until the
488
+ * maxSockets value is reached. If the host attempts to open more connections than maxSockets, the additional requests will enter into a pending request queue, and will
489
+ * enter active connection state when an existing connection terminates. This makes sure there are at most maxSockets active connections at any point in time,
490
+ * from a given host. Default: Infinity.
491
+ * Reference: https://nodejs.org/api/http.html#class-httpagent
492
+ */
493
+ maxSockets: number;
494
+ /**
495
+ * maxTotalSockets <number> Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
496
+ * Reference: https://nodejs.org/api/http.html#class-httpagent
497
+ */
498
+ maxTotalSockets: number;
499
+ /**
500
+ * maxFreeSockets <number> Maximum number of sockets per host to leave open in a free state. Only relevant if keepAlive is set to true. Default: 256.
501
+ * Reference: https://nodejs.org/api/http.html#class-httpagent
502
+ */
503
+ maxFreeSockets: number;
504
+ /**
505
+ * timeout <number> Socket timeout in milliseconds. This will set the timeout when the socket is created.
506
+ * Reference: https://nodejs.org/api/http.html#class-httpagent
507
+ */
508
+ timeout: number;
509
+ /**
510
+ * Maximum payload size allowed for express server calls
511
+ */
512
+ maxPayloadSize: string;
513
+ /**
514
+ * Generic interval (ms) to make on observation for instrumentation objects.
515
+ */
516
+ instrumentationObservationInterval: number;
517
+ /**
518
+ * Generic sliding time window (seconds) for instrumentation objects that process telemetry over time (e.g. P(x) instruments).
519
+ */
520
+ instrumentationTimeWindow: number;
521
+ /**
522
+ * Define the valid age for a JWT access token (in ms). Default 10 minutes.
523
+ */
524
+ authJWTAccessTokenTimeout: number;
525
+ /**
526
+ * Define the valid age for a JWT refresh token (in ms). Default 24 hours.
527
+ */
528
+ authJWTRefreshTokenTimeout: number;
529
+ /**
530
+ * Define the valid age for an authentication/session cookie. Default 24 hours.
531
+ */
532
+ authCookieTimeout: number;
533
+ /**
534
+ * Define the time (ms) to wait prior to exiting the application (using process.exit(0))
535
+ */
536
+ masterProcessExitTime: number;
537
+ /**
538
+ * Define the time (ms) to wait prior to exiting the application (using process.exit(0))
539
+ */
540
+ childProcessExitTime: number;
541
+ /**
542
+ * Define the interval (ms) to collect system information for instrumentation purposes
543
+ */
544
+ systemInformationInterval: number;
545
+ /**
546
+ * Ignore socket.io REST api calls and/or WebSocket calls when collecting telemetry for instrumentation purposes.
547
+ */
548
+ ignoresocketio: boolean;
549
+ /**
550
+ * Define the interval for checking instrumentation updates on a instrumentation model. Entries in the model will be removed after this timeout value (ms) if no
551
+ * activity has been detected. Default 5 seconds.
552
+ //,modelPurgeUpdateTimeout: (process.env.MODEL_PURGE_UPDATE_TIMEOUT === undefined ? 5000 : parseInt(process.env.MODEL_PURGE_UPDATE_TIMEOUT))
553
+ */
554
+ /**
555
+ * HTTPS server key path.
556
+ */
557
+ httpsserverkeypath: string;
558
+ /**
559
+ * HTTPS server cert path.
560
+ */
561
+ httpsservercertpath: string;
562
+ /**
563
+ * Maximum number of RSA keys in the JWKS store
564
+ */
565
+ tsjwkskeys: number;
566
+ /**
567
+ * File path for JWKS store data. This file will contain the public and private keys for the JWKS store.
568
+ */
569
+ tsjwksstorepath: string;
570
+ /**
571
+ * File path for JWKS store path config setting (tsjwksstorepath). Use this config item with Docker/Kubernetes secrets.
572
+ */
573
+ tsjwksstorepathfile: string;
574
+ /**
575
+ * File path for JWKS public store data. This file will contain only the public signing keys for the JWKS store.
576
+ */
577
+ tsjwksstorepublicpath: string;
578
+ /**
579
+ * Enables a LRU cache. Ref: https://github.com/auth0/node-jwks-rsa#caching
580
+ */
581
+ jwksAuthConfigCache: boolean;
582
+ /**
583
+ * Maximum number of LRU cache entries. Ref: https://github.com/auth0/node-jwks-rsa#caching
584
+ */
585
+ jwksAuthConfigCacheMaxEntries: number;
586
+ /**
587
+ * Maximum age of LRU cache entries. Ref: https://github.com/auth0/node-jwks-rsa#caching
588
+ */
589
+ jwksAuthConfigCacheMaxAge: number;
590
+ /**
591
+ * Enforce rate limiting for jwks public endpoint query. Ref: https://github.com/auth0/node-jwks-rsa#rate-limiting
592
+ */
593
+ jwksAuthConfigRateLimit: boolean;
594
+ /**
595
+ * Enforce rate limiting maximum number of requests per minute. Ref: https://github.com/auth0/node-jwks-rsa#rate-limiting
596
+ */
597
+ jwksAuthConfigRateLimitRequestsPerMinute: number;
598
+ /**
599
+ * Timeout for the public endpoint query. Note: This will be ignored if an http/https agent is specified.
600
+ */
601
+ jwksAuthConfigTimeout: number;
602
+ }
603
+ export * from './stsconfig';
604
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IAG1B;;OAEG;IACH,YAAY,EAAE,OAAO,CAAA;IAErB;;OAEM;IACN,MAAM,EAAE,OAAO,CAAA;IAIf;;;OAGM;IACN,OAAO,EAAE,MAAM,CAAA;IAEf;;OAEM;IACN,aAAa,EAAE,OAAO,CAAA;IAEtB;;OAEM;IACN,gBAAgB,EAAE,OAAO,CAAA;IAIzB;;OAEM;IACN,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEM;IACN,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEM;IACN,cAAc,EAAE,MAAM,CAAA;IAEtB;;OAEM;IACN,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEM;IACN,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEM;IACN,QAAQ,EAAE,MAAM,CAAA;IAEb;;OAEG;IACN,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEM;IACN,oBAAoB,EAAE,MAAM,CAAA;IAE5B;;OAEM;IACN,QAAQ,EAAE,MAAM,CAAA;IAEb;;OAEG;IACN,sBAAsB,EAAE,MAAM,CAAA;IAE9B;;OAEG;IACH,+BAA+B,EAAE,MAAM,CAAA;IAEtC;;OAEG;IACJ,+BAA+B,EAAE,MAAM,CAAA;IAIvC;;OAEM;IACN,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAA;IAEjB;;OAEG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cAAc,EAAE,OAAO,CAAA;IAKvB;;;;OAIG;IAMH;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAK3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAA;IAK7B;;OAEG;IACH,mBAAmB,EAAE,OAAO,CAAA;IAE5B;;OAEG;IACH,6BAA6B,EAAE,MAAM,CAAA;IAErC;;OAEG;IACH,yBAAyB,EAAE,MAAM,CAAA;IAEjC;;OAEG;IACH,uBAAuB,EAAE,OAAO,CAAA;IAEhC;;OAEG;IACH,wCAAwC,EAAE,MAAM,CAAA;IAEhD;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAA;CAC7B;AAED,cAAc,aAAa,CAAA"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=setEnvVars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setEnvVars.d.ts","sourceRoot":"","sources":["../../jest/setEnvVars.js"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export const setupFiles: string[];
2
+ export const testPathIgnorePatterns: string[];
3
+ //# sourceMappingURL=jest.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../jest.config.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stsconfig-01.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsconfig-01.test.d.ts","sourceRoot":"","sources":["../stsconfig-01.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stsconfig-02.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsconfig-02.test.d.ts","sourceRoot":"","sources":["../stsconfig-02.test.js"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stsconfig-default.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsconfig-default.test.d.ts","sourceRoot":"","sources":["../stsconfig-default.test.js"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import 'colors';
2
+ import { STSOptions } from './index';
3
+ export declare function $Options(): STSOptions;
4
+ //# sourceMappingURL=stsconfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stsconfig.d.ts","sourceRoot":"","sources":["../stsconfig.ts"],"names":[],"mappings":"AAMA,OAAO,QAAQ,CAAA;AAEf,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAgdpC,wBAAgB,QAAQ,IAAI,UAAU,CAYrC"}
package/.babelrc DELETED
@@ -1 +0,0 @@
1
- { }