@redocly/replay 0.3.2 → 0.3.4
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.cjs +407 -347
- package/dist/replay.d.ts +38 -13
- package/dist/replay.js +9646 -9271
- package/package.json +2 -2
package/dist/replay.d.ts
CHANGED
|
@@ -71,12 +71,19 @@ requestController: AbortController | undefined;
|
|
|
71
71
|
request: {
|
|
72
72
|
method: string;
|
|
73
73
|
url: string;
|
|
74
|
-
securityType: SecurityTypes;
|
|
75
74
|
security: {
|
|
75
|
+
securitySchemeVariants: SecuritySchemeVariantType[];
|
|
76
|
+
selectedSecuritySchemeId: string;
|
|
77
|
+
securities: {
|
|
78
|
+
securityType: SecurityTypes;
|
|
79
|
+
securitySchemeId: string;
|
|
76
80
|
"Basic Auth": {
|
|
77
81
|
username: string;
|
|
78
82
|
password: string;
|
|
79
83
|
};
|
|
84
|
+
JWT: {
|
|
85
|
+
token: string;
|
|
86
|
+
};
|
|
80
87
|
"Digest Auth": {
|
|
81
88
|
username: string;
|
|
82
89
|
password: string;
|
|
@@ -88,9 +95,6 @@ qop: string | undefined;
|
|
|
88
95
|
algorithm: string | undefined;
|
|
89
96
|
cnonce: string | undefined;
|
|
90
97
|
};
|
|
91
|
-
JWT: {
|
|
92
|
-
token: string;
|
|
93
|
-
};
|
|
94
98
|
"API key": {
|
|
95
99
|
location: ApiKeyLocation;
|
|
96
100
|
name: string;
|
|
@@ -99,6 +103,8 @@ key: string;
|
|
|
99
103
|
"OAuth 2.0": {
|
|
100
104
|
documentedOAuth2Types: SecurityFlows[];
|
|
101
105
|
grantType: SecurityFlows;
|
|
106
|
+
authRequestExtraParams: Parameter[];
|
|
107
|
+
tokenRequestExtraParams: SecurityDataParameter[];
|
|
102
108
|
"Client Credentials": {
|
|
103
109
|
clientId: string;
|
|
104
110
|
clientSecret: string;
|
|
@@ -111,8 +117,8 @@ clientSecret: string;
|
|
|
111
117
|
tokenUrl: string;
|
|
112
118
|
authorizationUrl: string;
|
|
113
119
|
callbackUrl: string;
|
|
114
|
-
availableScopes: string;
|
|
115
|
-
scopes:
|
|
120
|
+
availableScopes: string[];
|
|
121
|
+
scopes: Parameter[];
|
|
116
122
|
codeVerifier: string;
|
|
117
123
|
codeChallenge: string;
|
|
118
124
|
accessToken: string;
|
|
@@ -121,8 +127,8 @@ Implicit: {
|
|
|
121
127
|
clientId: string;
|
|
122
128
|
authorizationUrl: string;
|
|
123
129
|
callbackUrl: string;
|
|
124
|
-
availableScopes: string;
|
|
125
|
-
scopes:
|
|
130
|
+
availableScopes: string[];
|
|
131
|
+
scopes: Parameter[];
|
|
126
132
|
accessToken: string;
|
|
127
133
|
};
|
|
128
134
|
Password: {
|
|
@@ -139,6 +145,8 @@ openIdConnectUrl: string;
|
|
|
139
145
|
userInfoUrl: string;
|
|
140
146
|
documentedOAuth2Types: SecurityFlows[];
|
|
141
147
|
grantType: SecurityFlows;
|
|
148
|
+
authRequestExtraParams: Parameter[];
|
|
149
|
+
tokenRequestExtraParams: SecurityDataParameter[];
|
|
142
150
|
"Client Credentials": {
|
|
143
151
|
clientId: string;
|
|
144
152
|
clientSecret: string;
|
|
@@ -151,8 +159,8 @@ clientSecret: string;
|
|
|
151
159
|
tokenUrl: string;
|
|
152
160
|
authorizationUrl: string;
|
|
153
161
|
callbackUrl: string;
|
|
154
|
-
availableScopes: string;
|
|
155
|
-
scopes:
|
|
162
|
+
availableScopes: string[];
|
|
163
|
+
scopes: Parameter[];
|
|
156
164
|
codeVerifier: string;
|
|
157
165
|
codeChallenge: string;
|
|
158
166
|
accessToken: string;
|
|
@@ -161,8 +169,8 @@ Implicit: {
|
|
|
161
169
|
clientId: string;
|
|
162
170
|
authorizationUrl: string;
|
|
163
171
|
callbackUrl: string;
|
|
164
|
-
availableScopes: string;
|
|
165
|
-
scopes:
|
|
172
|
+
availableScopes: string[];
|
|
173
|
+
scopes: Parameter[];
|
|
166
174
|
accessToken: string;
|
|
167
175
|
};
|
|
168
176
|
Password: {
|
|
@@ -174,6 +182,7 @@ tokenUrl: string;
|
|
|
174
182
|
accessToken: string;
|
|
175
183
|
};
|
|
176
184
|
};
|
|
185
|
+
}[];
|
|
177
186
|
};
|
|
178
187
|
body: {
|
|
179
188
|
type: string;
|
|
@@ -250,6 +259,12 @@ declare type MockServer = {
|
|
|
250
259
|
description: string;
|
|
251
260
|
};
|
|
252
261
|
|
|
262
|
+
declare enum OAuth2ExtraParamsLocation {
|
|
263
|
+
Body = "Body",
|
|
264
|
+
Header = "Header",
|
|
265
|
+
URL = "URL"
|
|
266
|
+
}
|
|
267
|
+
|
|
253
268
|
declare type Operation = {
|
|
254
269
|
name: string;
|
|
255
270
|
method: string;
|
|
@@ -260,7 +275,7 @@ declare type Operation = {
|
|
|
260
275
|
required?: boolean;
|
|
261
276
|
};
|
|
262
277
|
servers: Server[];
|
|
263
|
-
security?: OperationSecurity[];
|
|
278
|
+
security?: OperationSecurity[][];
|
|
264
279
|
};
|
|
265
280
|
|
|
266
281
|
declare type OperationIn = 'query' | 'header' | 'path' | 'cookie';
|
|
@@ -355,6 +370,7 @@ declare type ReplayOnChangeParams = {
|
|
|
355
370
|
environments?: Record<string, {
|
|
356
371
|
[key: string]: string;
|
|
357
372
|
}>;
|
|
373
|
+
activeSecuritySchemeIds?: string[];
|
|
358
374
|
};
|
|
359
375
|
|
|
360
376
|
export declare function ReplayOverlay({ onClose, onLoad, onRequestChange, ...props }: ReplayOverlayProps): JSX_2.Element;
|
|
@@ -402,6 +418,10 @@ declare type SavedRequest = {
|
|
|
402
418
|
response: Response | null;
|
|
403
419
|
};
|
|
404
420
|
|
|
421
|
+
declare type SecurityDataParameter = Parameter & {
|
|
422
|
+
sendIn: OAuth2ExtraParamsLocation;
|
|
423
|
+
};
|
|
424
|
+
|
|
405
425
|
declare enum SecurityFlows {
|
|
406
426
|
ClientCredentials = "Client Credentials",
|
|
407
427
|
AuthorizationCode = "Authorization Code",
|
|
@@ -409,6 +429,11 @@ declare enum SecurityFlows {
|
|
|
409
429
|
Password = "Password"
|
|
410
430
|
}
|
|
411
431
|
|
|
432
|
+
declare type SecuritySchemeVariantType = {
|
|
433
|
+
id: string;
|
|
434
|
+
schemes: string[];
|
|
435
|
+
};
|
|
436
|
+
|
|
412
437
|
declare enum SecurityTypes {
|
|
413
438
|
NoAuth = "No Auth",
|
|
414
439
|
BasicAuth = "Basic Auth",
|