@scalar/oas-utils 0.2.77 → 0.2.79
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/CHANGELOG.md +19 -0
- package/dist/entities/spec/collection.d.ts +0 -278
- package/dist/entities/spec/collection.d.ts.map +1 -1
- package/dist/entities/spec/collection.js +1 -8
- package/dist/entities/spec/index.js +1 -1
- package/dist/entities/spec/requests.d.ts +2 -2
- package/dist/entities/spec/security.d.ts +1123 -783
- package/dist/entities/spec/security.d.ts.map +1 -1
- package/dist/entities/spec/security.js +73 -133
- package/dist/entities/workspace/workspace.d.ts +3 -7
- package/dist/entities/workspace/workspace.d.ts.map +1 -1
- package/dist/entities/workspace/workspace.js +0 -2
- package/dist/migrations/data-version.d.ts +3 -2
- package/dist/migrations/data-version.d.ts.map +1 -1
- package/dist/migrations/data-version.js +3 -2
- package/dist/migrations/local-storage.d.ts.map +1 -1
- package/dist/migrations/local-storage.js +3 -5
- package/dist/migrations/migrator.d.ts +2 -2
- package/dist/migrations/migrator.d.ts.map +1 -1
- package/dist/migrations/migrator.js +16 -13
- package/dist/migrations/v-0.0.0/types.generated.d.ts +139 -90
- package/dist/migrations/v-0.0.0/types.generated.d.ts.map +1 -1
- package/dist/migrations/v-2.1.0/migration.d.ts +11 -340
- package/dist/migrations/v-2.1.0/migration.d.ts.map +1 -1
- package/dist/migrations/v-2.1.0/migration.js +67 -46
- package/dist/migrations/v-2.1.0/types.generated.d.ts +353 -28
- package/dist/migrations/v-2.1.0/types.generated.d.ts.map +1 -1
- package/dist/migrations/v-2.2.0/index.d.ts +3 -0
- package/dist/migrations/v-2.2.0/index.d.ts.map +1 -0
- package/dist/migrations/v-2.2.0/index.js +1 -0
- package/dist/migrations/v-2.2.0/migration.d.ts +5 -0
- package/dist/migrations/v-2.2.0/migration.d.ts.map +1 -0
- package/dist/migrations/v-2.2.0/migration.js +110 -0
- package/dist/migrations/v-2.2.0/types.generated.d.ts +41 -0
- package/dist/migrations/v-2.2.0/types.generated.d.ts.map +1 -0
- package/dist/transforms/import-spec.d.ts +9 -4
- package/dist/transforms/import-spec.d.ts.map +1 -1
- package/dist/transforms/import-spec.js +74 -99
- package/dist/transforms/index.js +1 -1
- package/package.json +10 -5
|
@@ -1,21 +1,357 @@
|
|
|
1
|
-
import type { Cookie as Ck } from '../../entities/cookie/index.js';
|
|
2
|
-
import type { Environment as E } from '../../entities/environment/index.js';
|
|
3
|
-
import type { Collection as Co, Request as R, RequestExample as RE, Server as S, SecurityScheme as SS, Tag as T } from '../../entities/spec/index.js';
|
|
4
|
-
import type { Workspace as W } from '../../entities/workspace/index.js';
|
|
5
|
-
/**
|
|
6
|
-
* TODO: These types are no longer generated, this was manually grabbed but we must generate them before the next
|
|
7
|
-
* migration else we will have issues!
|
|
8
|
-
*/
|
|
9
1
|
export declare namespace v_2_1_0 {
|
|
10
|
-
type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
type Collection = {
|
|
3
|
+
'type': 'collection';
|
|
4
|
+
'openapi': string | '3.0.0' | '3.1.0' | '4.0.0';
|
|
5
|
+
'jsonSchemaDialect'?: string | undefined;
|
|
6
|
+
'info'?: {
|
|
7
|
+
title: string;
|
|
8
|
+
summary?: string | undefined;
|
|
9
|
+
description?: string | undefined;
|
|
10
|
+
termsOfService?: string | undefined;
|
|
11
|
+
contact?: {
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
url?: string | undefined;
|
|
14
|
+
email?: string | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
license?: {
|
|
17
|
+
name: string;
|
|
18
|
+
identifier?: string | undefined;
|
|
19
|
+
url?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
version: string;
|
|
22
|
+
} | undefined;
|
|
23
|
+
'security': {
|
|
24
|
+
[x: string]: string[];
|
|
25
|
+
}[];
|
|
26
|
+
'externalDocs'?: {
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
url: string;
|
|
29
|
+
} | undefined;
|
|
30
|
+
'components'?: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
} | undefined;
|
|
33
|
+
'webhooks'?: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
} | undefined;
|
|
36
|
+
'x-scalar-icon': string;
|
|
37
|
+
'uid': string;
|
|
38
|
+
'securitySchemes': string[];
|
|
39
|
+
'selectedSecuritySchemeUids': string[];
|
|
40
|
+
'selectedServerUid': string;
|
|
41
|
+
'servers': string[];
|
|
42
|
+
'requests': string[];
|
|
43
|
+
'tags': string[];
|
|
44
|
+
'children': string[];
|
|
45
|
+
'auth': {
|
|
46
|
+
[x: string]: {
|
|
47
|
+
type: 'apiKey';
|
|
48
|
+
name: string;
|
|
49
|
+
value: string;
|
|
50
|
+
} | {
|
|
51
|
+
type: 'http';
|
|
52
|
+
username: string;
|
|
53
|
+
password: string;
|
|
54
|
+
token: string;
|
|
55
|
+
} | {
|
|
56
|
+
type: 'oauth-implicit';
|
|
57
|
+
token: string;
|
|
58
|
+
} | {
|
|
59
|
+
type: 'oauth-password';
|
|
60
|
+
token: string;
|
|
61
|
+
username: string;
|
|
62
|
+
password: string;
|
|
63
|
+
clientSecret: string;
|
|
64
|
+
} | {
|
|
65
|
+
type: 'oauth-clientCredentials';
|
|
66
|
+
token: string;
|
|
67
|
+
clientSecret: string;
|
|
68
|
+
} | {
|
|
69
|
+
type: 'oauth-authorizationCode';
|
|
70
|
+
token: string;
|
|
71
|
+
clientSecret: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
'documentUrl'?: string | undefined;
|
|
75
|
+
'watchMode': boolean;
|
|
76
|
+
'integration'?: (string | null) | undefined;
|
|
77
|
+
'watchModeStatus': 'IDLE' | 'WATCHING' | 'ERROR';
|
|
78
|
+
};
|
|
79
|
+
type Cookie = {
|
|
80
|
+
uid: string;
|
|
81
|
+
name: string;
|
|
82
|
+
value: string;
|
|
83
|
+
domain?: string | undefined;
|
|
84
|
+
expires?: Date | undefined;
|
|
85
|
+
httpOnly?: boolean | undefined;
|
|
86
|
+
maxAge?: number | undefined;
|
|
87
|
+
partitioned?: boolean | undefined;
|
|
88
|
+
path?: string | undefined;
|
|
89
|
+
sameSite: 'Lax' | 'Strict' | 'None';
|
|
90
|
+
secure?: boolean | undefined;
|
|
91
|
+
};
|
|
92
|
+
type Environment = {
|
|
93
|
+
uid: string;
|
|
94
|
+
name: string;
|
|
95
|
+
color: string;
|
|
96
|
+
value: string;
|
|
97
|
+
isDefault?: boolean | undefined;
|
|
98
|
+
};
|
|
99
|
+
type Tag = {
|
|
100
|
+
'type': 'tag';
|
|
101
|
+
'name': string;
|
|
102
|
+
'description'?: string | undefined;
|
|
103
|
+
'externalDocs'?: {
|
|
104
|
+
description?: string | undefined;
|
|
105
|
+
url: string;
|
|
106
|
+
} | undefined;
|
|
107
|
+
'x-scalar-children': {
|
|
108
|
+
tagName: string;
|
|
109
|
+
}[];
|
|
110
|
+
'uid': string;
|
|
111
|
+
'children': string[];
|
|
112
|
+
};
|
|
113
|
+
type RequestExample = {
|
|
114
|
+
type: 'requestExample';
|
|
115
|
+
uid: string;
|
|
116
|
+
requestUid: string;
|
|
117
|
+
name: string;
|
|
118
|
+
body: {
|
|
119
|
+
raw?: {
|
|
120
|
+
encoding: 'json' | 'text' | 'html' | 'javascript' | 'xml' | 'yaml' | 'edn';
|
|
121
|
+
value: string;
|
|
122
|
+
} | undefined;
|
|
123
|
+
formData?: {
|
|
124
|
+
encoding: 'form-data' | 'urlencoded';
|
|
125
|
+
value: {
|
|
126
|
+
key: string;
|
|
127
|
+
value: string;
|
|
128
|
+
enabled: boolean;
|
|
129
|
+
file?: any | undefined;
|
|
130
|
+
description?: string | undefined;
|
|
131
|
+
refUid?: string | undefined;
|
|
132
|
+
required?: boolean | undefined;
|
|
133
|
+
enum?: string[] | undefined;
|
|
134
|
+
type?: string | undefined;
|
|
135
|
+
format?: string | undefined;
|
|
136
|
+
minimum?: number | undefined;
|
|
137
|
+
maximum?: number | undefined;
|
|
138
|
+
default?: any | undefined;
|
|
139
|
+
nullable?: boolean | undefined;
|
|
140
|
+
}[];
|
|
141
|
+
} | undefined;
|
|
142
|
+
binary?: any | undefined;
|
|
143
|
+
activeBody: 'raw' | 'formData' | 'binary';
|
|
144
|
+
};
|
|
145
|
+
parameters: {
|
|
146
|
+
path: {
|
|
147
|
+
key: string;
|
|
148
|
+
value: string;
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
file?: any | undefined;
|
|
151
|
+
description?: string | undefined;
|
|
152
|
+
refUid?: string | undefined;
|
|
153
|
+
required?: boolean | undefined;
|
|
154
|
+
enum?: string[] | undefined;
|
|
155
|
+
type?: string | undefined;
|
|
156
|
+
format?: string | undefined;
|
|
157
|
+
minimum?: number | undefined;
|
|
158
|
+
maximum?: number | undefined;
|
|
159
|
+
default?: any | undefined;
|
|
160
|
+
nullable?: boolean | undefined;
|
|
161
|
+
}[];
|
|
162
|
+
query: {
|
|
163
|
+
key: string;
|
|
164
|
+
value: string;
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
file?: any | undefined;
|
|
167
|
+
description?: string | undefined;
|
|
168
|
+
refUid?: string | undefined;
|
|
169
|
+
required?: boolean | undefined;
|
|
170
|
+
enum?: string[] | undefined;
|
|
171
|
+
type?: string | undefined;
|
|
172
|
+
format?: string | undefined;
|
|
173
|
+
minimum?: number | undefined;
|
|
174
|
+
maximum?: number | undefined;
|
|
175
|
+
default?: any | undefined;
|
|
176
|
+
nullable?: boolean | undefined;
|
|
177
|
+
}[];
|
|
178
|
+
headers: {
|
|
179
|
+
key: string;
|
|
180
|
+
value: string;
|
|
181
|
+
enabled: boolean;
|
|
182
|
+
file?: any | undefined;
|
|
183
|
+
description?: string | undefined;
|
|
184
|
+
refUid?: string | undefined;
|
|
185
|
+
required?: boolean | undefined;
|
|
186
|
+
enum?: string[] | undefined;
|
|
187
|
+
type?: string | undefined;
|
|
188
|
+
format?: string | undefined;
|
|
189
|
+
minimum?: number | undefined;
|
|
190
|
+
maximum?: number | undefined;
|
|
191
|
+
default?: any | undefined;
|
|
192
|
+
nullable?: boolean | undefined;
|
|
193
|
+
}[];
|
|
194
|
+
cookies: {
|
|
195
|
+
key: string;
|
|
196
|
+
value: string;
|
|
197
|
+
enabled: boolean;
|
|
198
|
+
file?: any | undefined;
|
|
199
|
+
description?: string | undefined;
|
|
200
|
+
refUid?: string | undefined;
|
|
201
|
+
required?: boolean | undefined;
|
|
202
|
+
enum?: string[] | undefined;
|
|
203
|
+
type?: string | undefined;
|
|
204
|
+
format?: string | undefined;
|
|
205
|
+
minimum?: number | undefined;
|
|
206
|
+
maximum?: number | undefined;
|
|
207
|
+
default?: any | undefined;
|
|
208
|
+
nullable?: boolean | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
};
|
|
211
|
+
serverVariables?: {
|
|
212
|
+
[x: string]: string[];
|
|
213
|
+
} | undefined;
|
|
214
|
+
};
|
|
215
|
+
type Request = {
|
|
216
|
+
tags?: string[] | undefined;
|
|
217
|
+
summary?: string | undefined;
|
|
218
|
+
description?: string | undefined;
|
|
219
|
+
operationId?: string | undefined;
|
|
220
|
+
security?: {
|
|
221
|
+
[x: string]: string[];
|
|
222
|
+
}[] | undefined;
|
|
223
|
+
requestBody?: any | undefined;
|
|
224
|
+
parameters?: {
|
|
225
|
+
in: 'path' | 'query' | 'header' | 'cookie';
|
|
226
|
+
name: string;
|
|
227
|
+
description?: string | undefined;
|
|
228
|
+
required: boolean;
|
|
229
|
+
deprecated: boolean;
|
|
230
|
+
schema?: unknown | undefined;
|
|
231
|
+
content?: unknown | undefined;
|
|
232
|
+
style?: ('matrix' | 'simple' | 'form' | 'label' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject') | undefined;
|
|
233
|
+
example?: unknown | undefined;
|
|
234
|
+
examples?: {
|
|
235
|
+
[x: string]: {
|
|
236
|
+
value?: unknown;
|
|
237
|
+
summary?: string | undefined;
|
|
238
|
+
};
|
|
239
|
+
} | undefined;
|
|
240
|
+
}[] | undefined;
|
|
241
|
+
externalDocs?: {
|
|
242
|
+
description?: string | undefined;
|
|
243
|
+
url: string;
|
|
244
|
+
} | undefined;
|
|
245
|
+
deprecated?: boolean | undefined;
|
|
246
|
+
responses?: {
|
|
247
|
+
[x: string]: any;
|
|
248
|
+
} | undefined;
|
|
249
|
+
type: 'request';
|
|
250
|
+
uid: string;
|
|
251
|
+
path: string;
|
|
252
|
+
method: 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
|
|
253
|
+
servers: string[];
|
|
254
|
+
selectedServerUid: string;
|
|
255
|
+
examples: string[];
|
|
256
|
+
selectedSecuritySchemeUids: string[];
|
|
257
|
+
};
|
|
258
|
+
type SecurityScheme = {
|
|
259
|
+
description?: string | undefined;
|
|
260
|
+
type: 'apiKey';
|
|
261
|
+
name: string;
|
|
262
|
+
in: 'query' | 'header' | 'cookie';
|
|
263
|
+
uid: string;
|
|
264
|
+
nameKey: string;
|
|
265
|
+
} | {
|
|
266
|
+
description?: string | undefined;
|
|
267
|
+
type: 'http';
|
|
268
|
+
scheme: any;
|
|
269
|
+
bearerFormat: 'JWT' | string;
|
|
270
|
+
uid: string;
|
|
271
|
+
nameKey: string;
|
|
272
|
+
} | {
|
|
273
|
+
description?: string | undefined;
|
|
274
|
+
type: 'openIdConnect';
|
|
275
|
+
openIdConnectUrl: string;
|
|
276
|
+
uid: string;
|
|
277
|
+
nameKey: string;
|
|
278
|
+
} | {
|
|
279
|
+
'description'?: string | undefined;
|
|
280
|
+
'type': 'oauth2';
|
|
281
|
+
'flow': {
|
|
282
|
+
'refreshUrl': string;
|
|
283
|
+
'scopes': Map<string, string | undefined> | {
|
|
284
|
+
[x: string]: string | undefined;
|
|
285
|
+
} | {};
|
|
286
|
+
'selectedScopes': string[];
|
|
287
|
+
'type': 'implicit';
|
|
288
|
+
'authorizationUrl': string;
|
|
289
|
+
'x-scalar-redirect-uri': string;
|
|
290
|
+
} | {
|
|
291
|
+
refreshUrl: string;
|
|
292
|
+
scopes: Map<string, string | undefined> | {
|
|
293
|
+
[x: string]: string | undefined;
|
|
294
|
+
} | {};
|
|
295
|
+
selectedScopes: string[];
|
|
296
|
+
type: 'password';
|
|
297
|
+
tokenUrl: string;
|
|
298
|
+
} | {
|
|
299
|
+
refreshUrl: string;
|
|
300
|
+
scopes: Map<string, string | undefined> | {
|
|
301
|
+
[x: string]: string | undefined;
|
|
302
|
+
} | {};
|
|
303
|
+
selectedScopes: string[];
|
|
304
|
+
type: 'clientCredentials';
|
|
305
|
+
tokenUrl: string;
|
|
306
|
+
} | {
|
|
307
|
+
'refreshUrl': string;
|
|
308
|
+
'scopes': Map<string, string | undefined> | {
|
|
309
|
+
[x: string]: string | undefined;
|
|
310
|
+
} | {};
|
|
311
|
+
'selectedScopes': string[];
|
|
312
|
+
'type': 'authorizationCode';
|
|
313
|
+
'authorizationUrl': string;
|
|
314
|
+
'x-usePkce': 'SHA-256' | 'plain' | 'no';
|
|
315
|
+
'x-scalar-redirect-uri': string;
|
|
316
|
+
'tokenUrl': string;
|
|
317
|
+
};
|
|
318
|
+
'x-scalar-client-id': string;
|
|
319
|
+
'uid': string;
|
|
320
|
+
'nameKey': string;
|
|
321
|
+
};
|
|
322
|
+
type Server = {
|
|
323
|
+
url: string;
|
|
324
|
+
description?: string | undefined;
|
|
325
|
+
variables?: {
|
|
326
|
+
[x: string]: {
|
|
327
|
+
enum?: string[] | undefined;
|
|
328
|
+
default: string;
|
|
329
|
+
description?: string | undefined;
|
|
330
|
+
};
|
|
331
|
+
} | undefined;
|
|
332
|
+
uid: string;
|
|
333
|
+
};
|
|
334
|
+
type Workspace = {
|
|
335
|
+
uid: string;
|
|
336
|
+
name: string;
|
|
337
|
+
description: string;
|
|
338
|
+
isReadOnly: boolean;
|
|
339
|
+
collections: string[];
|
|
340
|
+
environments: string[];
|
|
341
|
+
hotKeyConfig?: {
|
|
342
|
+
modifiers: ('Meta' | 'Control' | 'Shift' | 'Alt' | 'default')[];
|
|
343
|
+
hotKeys?: {
|
|
344
|
+
[x: string]: {
|
|
345
|
+
modifiers?: ('Meta' | 'Control' | 'Shift' | 'Alt' | 'default')[] | undefined;
|
|
346
|
+
event: 'closeModal' | 'navigateSearchResultsDown' | 'selectSearchResult' | 'navigateSearchResultsUp' | 'openCommandPalette' | 'createNew' | 'toggleSidebar' | 'addTopNav' | 'closeTopNav' | 'navigateTopNavLeft' | 'navigateTopNavRight' | 'focusAddressBar' | 'jumpToTab' | 'jumpToLastTab' | 'focusRequestSearch';
|
|
347
|
+
};
|
|
348
|
+
} | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
activeEnvironmentId: string;
|
|
351
|
+
cookies: string[];
|
|
352
|
+
proxyUrl?: string | undefined;
|
|
353
|
+
themeId: 'alternate' | 'default' | 'moon' | 'purple' | 'solarized' | 'bluePlanet' | 'deepSpace' | 'saturn' | 'kepler' | 'mars' | 'none';
|
|
354
|
+
};
|
|
19
355
|
type DataRecord = {
|
|
20
356
|
collections: Record<string, Collection>;
|
|
21
357
|
cookies: Record<string, Cookie>;
|
|
@@ -27,16 +363,5 @@ export declare namespace v_2_1_0 {
|
|
|
27
363
|
tags: Record<string, Tag>;
|
|
28
364
|
workspaces: Record<string, Workspace>;
|
|
29
365
|
};
|
|
30
|
-
type DataArray = {
|
|
31
|
-
collections: Collection[];
|
|
32
|
-
cookies: Cookie[];
|
|
33
|
-
environments: Environment[];
|
|
34
|
-
requestExamples: RequestExample[];
|
|
35
|
-
requests: Request[];
|
|
36
|
-
securitySchemes: SecurityScheme[];
|
|
37
|
-
servers: Server[];
|
|
38
|
-
tags: Tag[];
|
|
39
|
-
workspaces: Workspace[];
|
|
40
|
-
};
|
|
41
366
|
}
|
|
42
367
|
//# sourceMappingURL=types.generated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.generated.d.ts","sourceRoot":"","sources":["../../../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AAE,MAAM,CAAC,CAAA;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACtC,CAAA;IAED,KAAY,SAAS,GAAG;QACtB,WAAW,EAAE,UAAU,EAAE,CAAA;QACzB,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,YAAY,EAAE,WAAW,EAAE,CAAA;QAC3B,eAAe,EAAE,cAAc,EAAE,CAAA;QACjC,QAAQ,EAAE,OAAO,EAAE,CAAA;QACnB,eAAe,EAAE,cAAc,EAAE,CAAA;QACjC,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,IAAI,EAAE,GAAG,EAAE,CAAA;QACX,UAAU,EAAE,SAAS,EAAE,CAAA;KACxB,CAAA;CACF"}
|
|
1
|
+
{"version":3,"file":"types.generated.d.ts","sourceRoot":"","sources":["../../../src/migrations/v-2.1.0/types.generated.ts"],"names":[],"mappings":"AAAA,yBAAiB,OAAO,CAAC;IACvB,KAAY,UAAU,GAAG;QACvB,MAAM,EAAE,YAAY,CAAA;QACpB,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;QAC/C,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QACxC,MAAM,CAAC,EACH;YACE,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;YAC5B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;YAChC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;YACnC,OAAO,CAAC,EACJ;gBACE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;gBACzB,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;gBACxB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;aAC3B,GACD,SAAS,CAAA;YACb,OAAO,CAAC,EACJ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ACN,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,MAAM,CAAA;KACX,CAAA;IAED,KAAY,UAAU,GAAG;QACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;QACvC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QACzC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QAC/C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACtC,CAAA;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migrations/v-2.2.0/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { migrate_v_2_2_0 } from './migration.js';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { v_2_1_0 } from '../../migrations/v-2.1.0/types.generated';
|
|
2
|
+
import type { v_2_2_0 } from './types.generated';
|
|
3
|
+
/** V-2.1.0 to V-2.2.0 migration */
|
|
4
|
+
export declare const migrate_v_2_2_0: (data: v_2_1_0.DataRecord) => v_2_2_0.DataRecord;
|
|
5
|
+
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../../src/migrations/v-2.2.0/migration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAwGhD,mCAAmC;AACnC,eAAO,MAAM,eAAe,SACpB,OAAO,CAAC,UAAU,KACvB,OAAO,CAAC,UA0BV,CAAA"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/** Migrate security scheme from v-2.1.0 to v-2.2.0 */
|
|
2
|
+
const migrateSecurityScheme = (scheme, auth) => {
|
|
3
|
+
// API Key
|
|
4
|
+
if (scheme.type === 'apiKey' && auth.type === 'apiKey') {
|
|
5
|
+
return {
|
|
6
|
+
...scheme,
|
|
7
|
+
value: auth.value,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
// HTTP
|
|
11
|
+
if (scheme.type === 'http' && auth.type === 'http') {
|
|
12
|
+
return {
|
|
13
|
+
...scheme,
|
|
14
|
+
username: auth.username,
|
|
15
|
+
password: auth.password,
|
|
16
|
+
token: auth.token,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
// OAuth2
|
|
20
|
+
if (scheme.type === 'oauth2') {
|
|
21
|
+
const { flow, ..._scheme } = scheme;
|
|
22
|
+
// Implicit
|
|
23
|
+
if (flow.type === 'implicit' && auth.type === 'oauth-implicit') {
|
|
24
|
+
return {
|
|
25
|
+
..._scheme,
|
|
26
|
+
flows: {
|
|
27
|
+
implicit: {
|
|
28
|
+
...flow,
|
|
29
|
+
'scopes': flow.scopes,
|
|
30
|
+
'token': auth.token,
|
|
31
|
+
'x-scalar-client-id': _scheme['x-scalar-client-id'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
// Password
|
|
37
|
+
if (flow.type === 'password' && auth.type === 'oauth-password') {
|
|
38
|
+
return {
|
|
39
|
+
..._scheme,
|
|
40
|
+
flows: {
|
|
41
|
+
password: {
|
|
42
|
+
...flow,
|
|
43
|
+
'username': auth.username,
|
|
44
|
+
'password': auth.password,
|
|
45
|
+
'token': auth.token,
|
|
46
|
+
'clientSecret': auth.clientSecret,
|
|
47
|
+
'scopes': flow.scopes,
|
|
48
|
+
'x-scalar-client-id': _scheme['x-scalar-client-id'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
// Client Credentials
|
|
54
|
+
if (flow.type === 'clientCredentials' &&
|
|
55
|
+
auth.type === 'oauth-clientCredentials') {
|
|
56
|
+
return {
|
|
57
|
+
..._scheme,
|
|
58
|
+
flows: {
|
|
59
|
+
clientCredentials: {
|
|
60
|
+
...flow,
|
|
61
|
+
'token': auth.token,
|
|
62
|
+
'clientSecret': auth.clientSecret,
|
|
63
|
+
'scopes': flow.scopes,
|
|
64
|
+
'x-scalar-client-id': _scheme['x-scalar-client-id'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
// Authorization Code
|
|
70
|
+
if (flow.type === 'authorizationCode' &&
|
|
71
|
+
auth.type === 'oauth-authorizationCode') {
|
|
72
|
+
return {
|
|
73
|
+
..._scheme,
|
|
74
|
+
flows: {
|
|
75
|
+
authorizationCode: {
|
|
76
|
+
...flow,
|
|
77
|
+
'token': auth.token,
|
|
78
|
+
'clientSecret': auth.clientSecret,
|
|
79
|
+
'scopes': flow.scopes,
|
|
80
|
+
'x-scalar-client-id': _scheme['x-scalar-client-id'],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
};
|
|
88
|
+
/** V-2.1.0 to V-2.2.0 migration */
|
|
89
|
+
const migrate_v_2_2_0 = (data) => {
|
|
90
|
+
console.info('Performing data migration v-2.1.0 to v-2.2.0');
|
|
91
|
+
const securitySchemes = Object.values(data.securitySchemes).reduce((prev, s) => {
|
|
92
|
+
const collection = Object.values(data.collections).find((c) => c.securitySchemes.includes(s.uid));
|
|
93
|
+
const auth = collection?.auth?.[s.uid];
|
|
94
|
+
if (!auth)
|
|
95
|
+
return prev;
|
|
96
|
+
const newScheme = migrateSecurityScheme(s, auth);
|
|
97
|
+
if (newScheme)
|
|
98
|
+
prev[s.uid] = newScheme;
|
|
99
|
+
return prev;
|
|
100
|
+
}, {});
|
|
101
|
+
// No changes to servers
|
|
102
|
+
const servers = data.servers;
|
|
103
|
+
return {
|
|
104
|
+
...data,
|
|
105
|
+
securitySchemes,
|
|
106
|
+
servers,
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export { migrate_v_2_2_0 };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Cookie as Ck } from '../../entities/cookie/index.js';
|
|
2
|
+
import type { Environment as E } from '../../entities/environment/index.js';
|
|
3
|
+
import type { Collection as Co, Request as R, RequestExample as RE, Server as S, SecurityScheme as SS, Tag as T } from '../../entities/spec/index.js';
|
|
4
|
+
import type { Workspace as W } from '../../entities/workspace/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* The most current types are not generated
|
|
7
|
+
*/
|
|
8
|
+
export declare namespace v_2_2_0 {
|
|
9
|
+
type Cookie = Ck;
|
|
10
|
+
type Environment = E;
|
|
11
|
+
type Collection = Co;
|
|
12
|
+
type Request = R;
|
|
13
|
+
type RequestExample = RE;
|
|
14
|
+
type SecurityScheme = SS;
|
|
15
|
+
type Server = S;
|
|
16
|
+
type Tag = T;
|
|
17
|
+
type Workspace = W;
|
|
18
|
+
type DataRecord = {
|
|
19
|
+
collections: Record<string, Collection>;
|
|
20
|
+
cookies: Record<string, Cookie>;
|
|
21
|
+
environments: Record<string, Environment>;
|
|
22
|
+
requestExamples: Record<string, RequestExample>;
|
|
23
|
+
requests: Record<string, Request>;
|
|
24
|
+
securitySchemes: Record<string, SecurityScheme>;
|
|
25
|
+
servers: Record<string, Server>;
|
|
26
|
+
tags: Record<string, Tag>;
|
|
27
|
+
workspaces: Record<string, Workspace>;
|
|
28
|
+
};
|
|
29
|
+
type DataArray = {
|
|
30
|
+
collections: Collection[];
|
|
31
|
+
cookies: Cookie[];
|
|
32
|
+
environments: Environment[];
|
|
33
|
+
requestExamples: RequestExample[];
|
|
34
|
+
requests: Request[];
|
|
35
|
+
securitySchemes: SecurityScheme[];
|
|
36
|
+
servers: Server[];
|
|
37
|
+
tags: Tag[];
|
|
38
|
+
workspaces: Workspace[];
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=types.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.generated.d.ts","sourceRoot":"","sources":["../../../src/migrations/v-2.2.0/types.generated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,IAAI,CAAC,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EACV,UAAU,IAAI,EAAE,EAChB,OAAO,IAAI,CAAC,EACZ,cAAc,IAAI,EAAE,EACpB,MAAM,IAAI,CAAC,EACX,cAAc,IAAI,EAAE,EACpB,GAAG,IAAI,CAAC,EACT,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,SAAS,IAAI,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;GAEG;AACH,yBAAiB,OAAO,CAAC;IACvB,KAAY,MAAM,GAAG,EAAE,CAAA;IACvB,KAAY,WAAW,GAAG,CAAC,CAAA;IAC3B,KAAY,UAAU,GAAG,EAAE,CAAA;IAC3B,KAAY,OAAO,GAAG,CAAC,CAAA;IACvB,KAAY,cAAc,GAAG,EAAE,CAAA;IAC/B,KAAY,cAAc,GAAG,EAAE,CAAA;IAC/B,KAAY,MAAM,GAAG,CAAC,CAAA;IACtB,KAAY,GAAG,GAAG,CAAC,CAAA;IACnB,KAAY,SAAS,GAAG,CAAC,CAAA;IAEzB,KAAY,UAAU,GAAG;QACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;QACvC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;QACzC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QACjC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;QAC/C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;QAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;KACtC,CAAA;IAED,KAAY,SAAS,GAAG;QACtB,WAAW,EAAE,UAAU,EAAE,CAAA;QACzB,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,YAAY,EAAE,WAAW,EAAE,CAAA;QAC3B,eAAe,EAAE,cAAc,EAAE,CAAA;QACjC,QAAQ,EAAE,OAAO,EAAE,CAAA;QACnB,eAAe,EAAE,cAAc,EAAE,CAAA;QACjC,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,IAAI,EAAE,GAAG,EAAE,CAAA;QACX,UAAU,EAAE,SAAS,EAAE,CAAA;KACxB,CAAA;CACF"}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { type Collection, type CollectionPayload, type Request, type RequestExample, type Server, type Tag } from '../entities/spec/index.js';
|
|
2
|
-
import { type SecurityScheme
|
|
2
|
+
import { type SecurityScheme } from '../entities/spec/security.js';
|
|
3
3
|
import type { OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
4
4
|
import type { ReferenceConfiguration } from '@scalar/types/legacy';
|
|
5
5
|
import type { UnknownObject } from '@scalar/types/utils';
|
|
6
|
-
/** Pre-fill baseValues if we have authentication config */
|
|
7
|
-
export declare const getBaseAuthValues: (scheme: SecurityScheme, auth?: ReferenceConfiguration["authentication"]) => Record<string, never> | Partial<SecuritySchemeExampleValue>;
|
|
8
6
|
/** Takes a string or object and parses it into an openapi spec compliant schema */
|
|
9
7
|
export declare const parseSchema: (spec: string | UnknownObject) => Promise<{
|
|
8
|
+
/**
|
|
9
|
+
* Temporary fix for the parser returning an empty array
|
|
10
|
+
* TODO: remove this once the parser is fixed
|
|
11
|
+
*/
|
|
10
12
|
schema: OpenAPIV3.Document | OpenAPIV3_1.Document;
|
|
11
|
-
errors:
|
|
13
|
+
errors: ({
|
|
14
|
+
code: any;
|
|
15
|
+
message: any;
|
|
16
|
+
} | import("@scalar/openapi-parser").ErrorObject)[];
|
|
12
17
|
}>;
|
|
13
18
|
export type ImportSpecToWorkspaceArgs = Pick<CollectionPayload, 'documentUrl' | 'watchMode'> & Pick<ReferenceConfiguration, 'authentication' | 'baseServerURL' | 'servers'> & {
|
|
14
19
|
/** Sets the preferred security scheme on the collection instead of the requests */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/transforms/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EAGnB,KAAK,MAAM,EACX,KAAK,GAAG,EAOT,MAAM,iBAAiB,CAAA;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"import-spec.d.ts","sourceRoot":"","sources":["../../src/transforms/import-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EAGnB,KAAK,MAAM,EACX,KAA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