@redocly/replay 0.7.0 → 0.7.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/dist/replay.cjs +680 -571
- package/dist/replay.d.ts +55 -0
- package/dist/replay.js +27697 -27263
- package/package.json +3 -2
package/dist/replay.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { FileResponse } from '@tauri-apps/plugin-dialog';
|
|
1
2
|
import { ImmutableObject } from '@hookstate/core';
|
|
2
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
|
+
import { NamedExoticComponent } from 'react';
|
|
5
|
+
import { ReactElement } from 'react';
|
|
3
6
|
import { State } from '@hookstate/core';
|
|
4
7
|
|
|
5
8
|
declare enum ApiKeyLocation {
|
|
@@ -25,6 +28,13 @@ declare type AppCredential = {
|
|
|
25
28
|
valueToUseInHeader: 'clientId' | 'clientSecret';
|
|
26
29
|
};
|
|
27
30
|
|
|
31
|
+
declare type Certificate = {
|
|
32
|
+
host: string;
|
|
33
|
+
port: string;
|
|
34
|
+
crtFilePath: string;
|
|
35
|
+
keyFilePath: string;
|
|
36
|
+
};
|
|
37
|
+
|
|
28
38
|
declare type CollectionsFolder = {
|
|
29
39
|
id: string;
|
|
30
40
|
name: string;
|
|
@@ -140,7 +150,17 @@ tokenRequestExtraParams: SecurityDataParameter[];
|
|
|
140
150
|
"Client Credentials": {
|
|
141
151
|
clientId: string;
|
|
142
152
|
clientSecret: string;
|
|
153
|
+
clientAssertion: string;
|
|
143
154
|
tokenUrl: string;
|
|
155
|
+
scopes: Parameter[];
|
|
156
|
+
accessToken: string;
|
|
157
|
+
};
|
|
158
|
+
"Client Credentials with JWT Assertion": {
|
|
159
|
+
clientId: string;
|
|
160
|
+
clientSecret: string;
|
|
161
|
+
clientAssertion: string;
|
|
162
|
+
tokenUrl: string;
|
|
163
|
+
scopes: Parameter[];
|
|
144
164
|
accessToken: string;
|
|
145
165
|
};
|
|
146
166
|
"Authorization Code": {
|
|
@@ -182,7 +202,17 @@ tokenRequestExtraParams: SecurityDataParameter[];
|
|
|
182
202
|
"Client Credentials": {
|
|
183
203
|
clientId: string;
|
|
184
204
|
clientSecret: string;
|
|
205
|
+
clientAssertion: string;
|
|
185
206
|
tokenUrl: string;
|
|
207
|
+
scopes: Parameter[];
|
|
208
|
+
accessToken: string;
|
|
209
|
+
};
|
|
210
|
+
"Client Credentials with JWT Assertion": {
|
|
211
|
+
clientId: string;
|
|
212
|
+
clientSecret: string;
|
|
213
|
+
clientAssertion: string;
|
|
214
|
+
tokenUrl: string;
|
|
215
|
+
scopes: Parameter[];
|
|
186
216
|
accessToken: string;
|
|
187
217
|
};
|
|
188
218
|
"Authorization Code": {
|
|
@@ -256,12 +286,14 @@ apiId: string | undefined;
|
|
|
256
286
|
requestActiveTabIdx: number;
|
|
257
287
|
oAuth2RedirectURI: string | null | undefined;
|
|
258
288
|
isRequestEditable: boolean;
|
|
289
|
+
tokenRequestError: string | null;
|
|
259
290
|
definitionUrl: string | undefined;
|
|
260
291
|
transactionSource: TransactionSource | null;
|
|
261
292
|
showUnsavedChangesModal: boolean;
|
|
262
293
|
pendingTransaction: Transaction | null;
|
|
263
294
|
pendingTransactionSource: TransactionSource | null;
|
|
264
295
|
disableCollectionsTab: boolean | undefined;
|
|
296
|
+
certificates: Certificate[];
|
|
265
297
|
}, {}>;
|
|
266
298
|
|
|
267
299
|
declare type HistoryItem = {
|
|
@@ -306,12 +338,29 @@ declare type MockServer = {
|
|
|
306
338
|
description: string;
|
|
307
339
|
};
|
|
308
340
|
|
|
341
|
+
export declare const Modal: NamedExoticComponent<ModalProps>;
|
|
342
|
+
|
|
343
|
+
declare type ModalProps = {
|
|
344
|
+
isOpen: boolean;
|
|
345
|
+
onClose: () => void;
|
|
346
|
+
title: string;
|
|
347
|
+
content: ReactElement;
|
|
348
|
+
mountId?: string;
|
|
349
|
+
className?: string;
|
|
350
|
+
};
|
|
351
|
+
|
|
309
352
|
declare enum OAuth2ExtraParamsLocation {
|
|
310
353
|
Body = "Body",
|
|
311
354
|
Header = "Header",
|
|
312
355
|
URL = "URL"
|
|
313
356
|
}
|
|
314
357
|
|
|
358
|
+
declare function openFile({ name, extensions, multiple, }: {
|
|
359
|
+
name: string;
|
|
360
|
+
extensions: string[];
|
|
361
|
+
multiple: boolean;
|
|
362
|
+
}): Promise<FileResponse | string | null>;
|
|
363
|
+
|
|
315
364
|
declare type Operation = {
|
|
316
365
|
name: string;
|
|
317
366
|
method: string;
|
|
@@ -399,6 +448,7 @@ declare type ReplayAppProps = {
|
|
|
399
448
|
oAuth2RedirectURI?: string | null;
|
|
400
449
|
definitionUrl?: string;
|
|
401
450
|
disableCollectionsTab?: boolean;
|
|
451
|
+
certificates?: Certificate[];
|
|
402
452
|
};
|
|
403
453
|
|
|
404
454
|
declare type ReplayOnChangeParams = {
|
|
@@ -453,6 +503,7 @@ declare type SecurityDataParameter = Parameter & {
|
|
|
453
503
|
|
|
454
504
|
declare enum SecurityFlows {
|
|
455
505
|
ClientCredentials = "Client Credentials",
|
|
506
|
+
ClientCredentialsWithJwtAssertion = "Client Credentials with JWT Assertion",
|
|
456
507
|
AuthorizationCode = "Authorization Code",
|
|
457
508
|
Implicit = "Implicit",
|
|
458
509
|
Password = "Password"
|
|
@@ -498,6 +549,10 @@ declare type TransactionSource = {
|
|
|
498
549
|
name: string;
|
|
499
550
|
};
|
|
500
551
|
|
|
552
|
+
export declare const utils: {
|
|
553
|
+
openFile: typeof openFile;
|
|
554
|
+
};
|
|
555
|
+
|
|
501
556
|
export { }
|
|
502
557
|
|
|
503
558
|
declare global {
|