@scalar/workspace-store 0.6.0 → 0.7.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.
- package/CHANGELOG.md +19 -0
- package/README.md +47 -1
- package/dist/client.d.ts +11713 -11143
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +27 -2
- package/dist/client.js.map +2 -2
- package/dist/helpers/json-path-utils.d.ts +1 -1
- package/dist/helpers/json-path-utils.d.ts.map +1 -1
- package/dist/helpers/json-path-utils.js.map +2 -2
- package/dist/helpers/merge-object.d.ts +23 -0
- package/dist/helpers/merge-object.d.ts.map +1 -0
- package/dist/helpers/merge-object.js +20 -0
- package/dist/helpers/merge-object.js.map +7 -0
- package/dist/schemas/reference-config/appearance.d.ts +13 -0
- package/dist/schemas/reference-config/appearance.d.ts.map +1 -0
- package/dist/schemas/reference-config/appearance.js +26 -0
- package/dist/schemas/reference-config/appearance.js.map +7 -0
- package/dist/schemas/reference-config/features.d.ts +15 -0
- package/dist/schemas/reference-config/features.d.ts.map +1 -0
- package/dist/schemas/reference-config/features.js +30 -0
- package/dist/schemas/reference-config/features.js.map +7 -0
- package/dist/schemas/reference-config/index.d.ts +53 -0
- package/dist/schemas/reference-config/index.d.ts.map +1 -0
- package/dist/schemas/reference-config/index.js +66 -0
- package/dist/schemas/reference-config/index.js.map +7 -0
- package/dist/schemas/reference-config/meta.d.ts +12 -0
- package/dist/schemas/reference-config/meta.d.ts.map +1 -0
- package/dist/schemas/reference-config/meta.js +24 -0
- package/dist/schemas/reference-config/meta.js.map +7 -0
- package/dist/schemas/reference-config/routing.d.ts +8 -0
- package/dist/schemas/reference-config/routing.d.ts.map +1 -0
- package/dist/schemas/reference-config/routing.js +16 -0
- package/dist/schemas/reference-config/routing.js.map +7 -0
- package/dist/schemas/reference-config/settings.d.ts +8 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -0
- package/dist/schemas/reference-config/settings.js +16 -0
- package/dist/schemas/reference-config/settings.js.map +7 -0
- package/dist/schemas/v3.1/strict/components.d.ts +167 -40
- package/dist/schemas/v3.1/strict/components.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.d.ts +2 -0
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts +6 -0
- package/dist/schemas/v3.1/strict/media-header-encoding.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/media-type.d.ts +1 -0
- package/dist/schemas/v3.1/strict/media-type.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +73 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +44 -7
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +11 -10
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauthflows.js +11 -8
- package/dist/schemas/v3.1/strict/oauthflows.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +11 -2
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.d.ts +11 -5
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +1 -1
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts +5 -2
- package/dist/schemas/v3.1/strict/path-item.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/path-operations.d.ts +158 -32
- package/dist/schemas/v3.1/strict/path-operations.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/paths.d.ts +71 -14
- package/dist/schemas/v3.1/strict/paths.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/request-body.d.ts +2 -0
- package/dist/schemas/v3.1/strict/request-body.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/response.d.ts +4 -0
- package/dist/schemas/v3.1/strict/response.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/responses.d.ts +4 -0
- package/dist/schemas/v3.1/strict/responses.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.d.ts +6 -1
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +7 -2
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +22 -20
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/type-guard.d.ts +5 -0
- package/dist/schemas/v3.1/type-guard.d.ts.map +1 -1
- package/dist/schemas/v3.1/type-guard.js +1 -3
- package/dist/schemas/v3.1/type-guard.js.map +2 -2
- package/dist/server.d.ts +640 -614
- package/dist/server.d.ts.map +1 -1
- package/dist/types.d.ts +57 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +7 -0
- package/package.json +18 -6
|
@@ -6,7 +6,7 @@ export declare const ParameterObjectBaseSchema: import("@sinclair/typebox").TInt
|
|
|
6
6
|
* - For all other cases, the name corresponds to the parameter name used by the in field. */
|
|
7
7
|
name: import("@sinclair/typebox").TString;
|
|
8
8
|
/** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
|
|
9
|
-
in: import("@sinclair/typebox").
|
|
9
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
10
10
|
/** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
11
11
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
12
|
/** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
|
|
@@ -23,7 +23,7 @@ export declare const ParameterObjectWithSchemaSchema: import("@sinclair/typebox"
|
|
|
23
23
|
* - For all other cases, the name corresponds to the parameter name used by the in field. */
|
|
24
24
|
name: import("@sinclair/typebox").TString;
|
|
25
25
|
/** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
|
|
26
|
-
in: import("@sinclair/typebox").
|
|
26
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
27
27
|
/** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
28
28
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
29
29
|
/** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
|
|
@@ -55,6 +55,7 @@ export declare const ParameterObjectWithSchemaSchema: import("@sinclair/typebox"
|
|
|
55
55
|
url: import("@sinclair/typebox").TString;
|
|
56
56
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
57
57
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
58
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
58
59
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
59
60
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
60
61
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -89,7 +90,7 @@ export declare const ParameterObjectWithContentSchema: import("@sinclair/typebox
|
|
|
89
90
|
* - For all other cases, the name corresponds to the parameter name used by the in field. */
|
|
90
91
|
name: import("@sinclair/typebox").TString;
|
|
91
92
|
/** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
|
|
92
|
-
in: import("@sinclair/typebox").
|
|
93
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
93
94
|
/** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
94
95
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
95
96
|
/** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
|
|
@@ -117,6 +118,7 @@ export declare const ParameterObjectWithContentSchema: import("@sinclair/typebox
|
|
|
117
118
|
url: import("@sinclair/typebox").TString;
|
|
118
119
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
119
120
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
121
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
120
122
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
121
123
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
122
124
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -160,6 +162,7 @@ export declare const ParameterObjectWithContentSchema: import("@sinclair/typebox
|
|
|
160
162
|
url: import("@sinclair/typebox").TString;
|
|
161
163
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
162
164
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
165
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
163
166
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
164
167
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
165
168
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -215,7 +218,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
|
|
|
215
218
|
* - For all other cases, the name corresponds to the parameter name used by the in field. */
|
|
216
219
|
name: import("@sinclair/typebox").TString;
|
|
217
220
|
/** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
|
|
218
|
-
in: import("@sinclair/typebox").
|
|
221
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
219
222
|
/** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
220
223
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
221
224
|
/** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
|
|
@@ -247,6 +250,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
|
|
|
247
250
|
url: import("@sinclair/typebox").TString;
|
|
248
251
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
249
252
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
253
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
250
254
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
251
255
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
252
256
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -280,7 +284,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
|
|
|
280
284
|
* - For all other cases, the name corresponds to the parameter name used by the in field. */
|
|
281
285
|
name: import("@sinclair/typebox").TString;
|
|
282
286
|
/** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
|
|
283
|
-
in: import("@sinclair/typebox").
|
|
287
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
284
288
|
/** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
285
289
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
286
290
|
/** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
|
|
@@ -308,6 +312,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
|
|
|
308
312
|
url: import("@sinclair/typebox").TString;
|
|
309
313
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
310
314
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
315
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
311
316
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
312
317
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
313
318
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -351,6 +356,7 @@ export declare const ParameterObjectSchema: import("@sinclair/typebox").TUnion<[
|
|
|
351
356
|
url: import("@sinclair/typebox").TString;
|
|
352
357
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
353
358
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
359
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
354
360
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
355
361
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
356
362
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/parameter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,yBAAyB;IAElC;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;kJAI/iB,CAAA;AAED,eAAO,MAAM,+BAA+B;IAnBxC;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;;IAS5iB,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD
|
|
1
|
+
{"version":3,"file":"parameter.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/parameter.ts"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAErD,eAAO,MAAM,yBAAyB;IAElC;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;kJAI/iB,CAAA;AAED,eAAO,MAAM,+BAA+B;IAnBxC;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;;IAS5iB,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;;;;IAGtI,CAAA;AAED,eAAO,MAAM,gCAAgC;IAnCzC;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2B/iB,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;IAjD9B;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;;IAS5iB,qHAAqH;;IAErH,+QAA+Q;;IAE/Q,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAExD,kIAAkI;;IAElI,mIAAmI;;;;;;;;;;;;;;;IA9BnI;;;oGAGgG;;IAEhG,0GAA0G;;IAE1G,4IAA4I;;IAE5I,mNAAmN;;IAEnN,gHAAgH;;IAEhH,4iBAA4iB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoC5b,CAAA;AAEpH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -13,7 +13,7 @@ const ParameterObjectBaseSchema = compose(
|
|
|
13
13
|
* - For all other cases, the name corresponds to the parameter name used by the in field. */
|
|
14
14
|
name: Type.String(),
|
|
15
15
|
/** REQUIRED. The location of the parameter. Possible values are "query", "header", "path" or "cookie". */
|
|
16
|
-
in: Type.
|
|
16
|
+
in: Type.Union([Type.Literal("query"), Type.Literal("header"), Type.Literal("path"), Type.Literal("cookie")]),
|
|
17
17
|
/** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */
|
|
18
18
|
description: Type.Optional(Type.String()),
|
|
19
19
|
/** Determines whether this parameter is mandatory. If the parameter location is "path", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/parameter.ts"],
|
|
4
|
-
"sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { MediaTypeObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type Static } from '@sinclair/typebox'\n\nexport const ParameterObjectBaseSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the parameter. Parameter names are case sensitive.\n * - If in is \"path\", the name field MUST correspond to a template expression occurring within the path field in the Paths Object. See Path Templating for further information.\n * - If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition SHALL be ignored.\n * - For all other cases, the name corresponds to the parameter name used by the in field. */\n name: Type.String(),\n /** REQUIRED. The location of the parameter. Possible values are \"query\", \"header\", \"path\" or \"cookie\". */\n in: Type.
|
|
5
|
-
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,YAAyB;AAE3B,MAAM,4BAA4B;AAAA,EACvC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,OAAO;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["import { compose } from '@/schemas/v3.1/compose'\nimport { MediaTypeObjectSchema } from '@/schemas/v3.1/strict/media-header-encoding'\nimport { ExampleObjectSchema } from '@/schemas/v3.1/strict/example'\nimport { ExtensionsSchema } from '@/schemas/v3.1/strict/extensions'\nimport { ReferenceObjectSchema } from '@/schemas/v3.1/strict/reference'\nimport { SchemaObjectSchema } from '@/schemas/v3.1/strict/schema'\nimport { Type, type Static } from '@sinclair/typebox'\n\nexport const ParameterObjectBaseSchema = compose(\n Type.Object({\n /** REQUIRED. The name of the parameter. Parameter names are case sensitive.\n * - If in is \"path\", the name field MUST correspond to a template expression occurring within the path field in the Paths Object. See Path Templating for further information.\n * - If in is \"header\" and the name field is \"Accept\", \"Content-Type\" or \"Authorization\", the parameter definition SHALL be ignored.\n * - For all other cases, the name corresponds to the parameter name used by the in field. */\n name: Type.String(),\n /** REQUIRED. The location of the parameter. Possible values are \"query\", \"header\", \"path\" or \"cookie\". */\n in: Type.Union([Type.Literal('query'), Type.Literal('header'), Type.Literal('path'), Type.Literal('cookie')]),\n /** A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation. */\n description: Type.Optional(Type.String()),\n /** Determines whether this parameter is mandatory. If the parameter location is \"path\", this field is REQUIRED and its value MUST be true. Otherwise, the field MAY be included and its default value is false. */\n required: Type.Optional(Type.Boolean()),\n /** Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false. */\n deprecated: Type.Optional(Type.Boolean()),\n /** If true, clients MAY pass a zero-length string value in place of parameters that would otherwise be omitted entirely, which the server SHOULD interpret as the parameter being unused. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Interactions between this field and the parameter's Schema Object are implementation-defined. This field is valid only for query parameters. Use of this field is NOT RECOMMENDED, and it is likely to be removed in a later revision. */\n allowEmptyValue: Type.Optional(Type.Boolean()),\n }),\n ExtensionsSchema,\n)\n\nexport const ParameterObjectWithSchemaSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n /** Describes how the header value will be serialized. The default (and only legal value for headers) is \"simple\". */\n style: Type.Optional(Type.String()),\n /** When this is true, header values of type array or object generate a single header whose value is a comma-separated list of the array items or key-value pairs of the map, see Style Examples. For other data types this field has no effect. The default value is false. */\n explode: Type.Optional(Type.Boolean()),\n /** The schema defining the type used for the header. */\n schema: Type.Optional(Type.Union([SchemaObjectSchema, ReferenceObjectSchema])),\n /** Example of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n example: Type.Any(),\n /** Examples of the header's potential value; see Working With Examples. https://swagger.io/specification/#working-with-examples */\n examples: Type.Optional(Type.Record(Type.String(), Type.Union([ExampleObjectSchema, ReferenceObjectSchema]))),\n }),\n)\n\nexport const ParameterObjectWithContentSchema = compose(\n ParameterObjectBaseSchema,\n Type.Object({\n content: Type.Optional(Type.Record(Type.String(), MediaTypeObjectSchema)),\n }),\n)\n\n/**\n * Describes a single operation parameter.\n *\n * A unique parameter is defined by a combination of a name and location.\n *\n * See Appendix E for a detailed examination of percent-encoding concerns, including interactions with the application/x-www-form-urlencoded query string format.\n */\nexport const ParameterObjectSchema = Type.Union([ParameterObjectWithSchemaSchema, ParameterObjectWithContentSchema])\n\nexport type ParameterObject = Static<typeof ParameterObjectSchema>\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,6BAA6B;AACtC,SAAS,2BAA2B;AACpC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AACnC,SAAS,YAAyB;AAE3B,MAAM,4BAA4B;AAAA,EACvC,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,IAKV,MAAM,KAAK,OAAO;AAAA;AAAA,IAElB,IAAI,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,GAAG,KAAK,QAAQ,QAAQ,GAAG,KAAK,QAAQ,MAAM,GAAG,KAAK,QAAQ,QAAQ,CAAC,CAAC;AAAA;AAAA,IAE5G,aAAa,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAExC,UAAU,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAEtC,YAAY,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAExC,iBAAiB,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA,EAC/C,CAAC;AAAA,EACD;AACF;AAEO,MAAM,kCAAkC;AAAA,EAC7C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,OAAO,KAAK,SAAS,KAAK,OAAO,CAAC;AAAA;AAAA,IAElC,SAAS,KAAK,SAAS,KAAK,QAAQ,CAAC;AAAA;AAAA,IAErC,QAAQ,KAAK,SAAS,KAAK,MAAM,CAAC,oBAAoB,qBAAqB,CAAC,CAAC;AAAA;AAAA,IAE7E,SAAS,KAAK,IAAI;AAAA;AAAA,IAElB,UAAU,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,MAAM,CAAC,qBAAqB,qBAAqB,CAAC,CAAC,CAAC;AAAA,EAC9G,CAAC;AACH;AAEO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA,IACV,SAAS,KAAK,SAAS,KAAK,OAAO,KAAK,OAAO,GAAG,qBAAqB,CAAC;AAAA,EAC1E,CAAC;AACH;AASO,MAAM,wBAAwB,KAAK,MAAM,CAAC,iCAAiC,gCAAgC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -35,7 +35,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
|
|
|
35
35
|
/** A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined in the OpenAPI Object's components.parameters. */
|
|
36
36
|
parameters: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
37
37
|
name: import("@sinclair/typebox").TString;
|
|
38
|
-
in: import("@sinclair/typebox").
|
|
38
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
39
39
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
40
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
41
41
|
deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -60,6 +60,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
|
|
|
60
60
|
url: import("@sinclair/typebox").TString;
|
|
61
61
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
62
62
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
63
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
63
64
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
64
65
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
65
66
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -86,7 +87,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
|
|
|
86
87
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>]>>>;
|
|
87
88
|
}>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
88
89
|
name: import("@sinclair/typebox").TString;
|
|
89
|
-
in: import("@sinclair/typebox").
|
|
90
|
+
in: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"query">, import("@sinclair/typebox").TLiteral<"header">, import("@sinclair/typebox").TLiteral<"path">, import("@sinclair/typebox").TLiteral<"cookie">]>;
|
|
90
91
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
91
92
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
92
93
|
deprecated: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -110,6 +111,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
|
|
|
110
111
|
url: import("@sinclair/typebox").TString;
|
|
111
112
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
112
113
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
114
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
113
115
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
114
116
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
115
117
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>>;
|
|
@@ -153,6 +155,7 @@ export declare const pathItemObjectSchemaBuilder: <O extends TSchema>(operation:
|
|
|
153
155
|
url: import("@sinclair/typebox").TString;
|
|
154
156
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>]>>;
|
|
155
157
|
example: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
158
|
+
examples: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
156
159
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TTemplateLiteralSyntax<"x-${string}">, import("@sinclair/typebox").TUnknown>, import("@sinclair/typebox").TObject<{
|
|
157
160
|
'x-tags': import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
158
161
|
}>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TUnknown>]>, import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAGrE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a
|
|
1
|
+
{"version":3,"file":"path-item.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/path-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAOtD,eAAO,MAAM,2BAA2B,GAAI,CAAC,SAAS,OAAO,aAAa,CAAC;IAGrE;;;;OAIG;;IAEH,oFAAoF;;IAEpF,oJAAoJ;;IAEpJ,oDAAoD;;IAEpD,oDAAoD;;IAEpD,qDAAqD;;IAErD,uDAAuD;;IAEvD,sDAAsD;;IAEtD,sDAAsD;;IAEtD,6KAA6K;;;;;;;;;;IAE7K,6aAA6a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kJAIhb,CAAA"}
|