@redocly/replay 0.7.1 → 0.7.3

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/dist/replay.d.ts CHANGED
@@ -28,6 +28,12 @@ declare type AppCredential = {
28
28
  valueToUseInHeader: 'clientId' | 'clientSecret';
29
29
  };
30
30
 
31
+ declare type AuthorizationCodeOAuthFlowsObject = {
32
+ authorizationUrl: string;
33
+ tokenUrl: string;
34
+ scopes: Record<string, string>;
35
+ };
36
+
31
37
  declare type Certificate = {
32
38
  host: string;
33
39
  port: string;
@@ -35,6 +41,12 @@ declare type Certificate = {
35
41
  keyFilePath: string;
36
42
  };
37
43
 
44
+ declare type ClientCredentialsOAuthFlowsObject = {
45
+ 'x-assertionType'?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer';
46
+ tokenUrl: string;
47
+ scopes: Record<string, string>;
48
+ };
49
+
38
50
  declare type CollectionsFolder = {
39
51
  id: string;
40
52
  name: string;
@@ -302,6 +314,11 @@ declare type HistoryItem = {
302
314
  response: Response_2 | null;
303
315
  };
304
316
 
317
+ declare type ImplicitOAuthFlowsObject = {
318
+ authorizationUrl?: string;
319
+ scopes: Record<string, string>;
320
+ };
321
+
305
322
  declare type InputType = 'text' | 'file';
306
323
 
307
324
  declare enum LoadingState {
@@ -355,6 +372,13 @@ declare enum OAuth2ExtraParamsLocation {
355
372
  URL = "URL"
356
373
  }
357
374
 
375
+ declare type OAuthFlowsObject = {
376
+ implicit?: ImplicitOAuthFlowsObject;
377
+ password?: PasswordOAuthFlowsObject;
378
+ clientCredentials?: ClientCredentialsOAuthFlowsObject;
379
+ authorizationCode?: AuthorizationCodeOAuthFlowsObject;
380
+ };
381
+
358
382
  declare function openFile({ name, extensions, multiple, }: {
359
383
  name: string;
360
384
  extensions: string[];
@@ -369,6 +393,7 @@ declare type Operation = {
369
393
  body?: {
370
394
  mediaTypes: MediaTypes;
371
395
  required?: boolean;
396
+ activeExampleName?: string;
372
397
  };
373
398
  servers: Server[];
374
399
  security?: OperationSecurity[][];
@@ -405,25 +430,7 @@ export declare type OperationSecurity = {
405
430
  in?: 'query' | 'header' | 'cookie';
406
431
  scheme?: string;
407
432
  name?: string;
408
- flows?: {
409
- implicit?: {
410
- authorizationUrl?: string;
411
- scopes: Record<string, string>;
412
- };
413
- password?: {
414
- tokenUrl: string;
415
- scopes: Record<string, string>;
416
- };
417
- clientCredentials?: {
418
- tokenUrl: string;
419
- scopes: Record<string, string>;
420
- };
421
- authorizationCode?: {
422
- authorizationUrl: string;
423
- tokenUrl: string;
424
- scopes: Record<string, string>;
425
- };
426
- };
433
+ flows?: OAuthFlowsObject;
427
434
  };
428
435
 
429
436
  declare type Parameter = {
@@ -433,6 +440,11 @@ declare type Parameter = {
433
440
  value: string;
434
441
  };
435
442
 
443
+ declare type PasswordOAuthFlowsObject = {
444
+ tokenUrl: string;
445
+ scopes: Record<string, string>;
446
+ };
447
+
436
448
  export declare function Replay(props: ReplayAppProps): JSX_2.Element;
437
449
 
438
450
  declare type ReplayAppProps = {