@scalar/workspace-store 0.15.8 → 0.16.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 +12 -0
- package/dist/schemas/extensions/operation/index.d.ts +2 -0
- package/dist/schemas/extensions/operation/index.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/index.js +1 -0
- package/dist/schemas/extensions/operation/index.js.map +7 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +2 -0
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
- package/dist/schemas/extensions/security/x-default-scopes.d.ts +17 -0
- package/dist/schemas/extensions/security/x-default-scopes.d.ts.map +1 -0
- package/dist/schemas/extensions/security/x-default-scopes.js +8 -0
- package/dist/schemas/extensions/security/x-default-scopes.js.map +7 -0
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts +6 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js +1 -1
- package/dist/schemas/extensions/security/x-scalar-redirect-uri.js.map +2 -2
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts +27 -3
- package/dist/schemas/extensions/security/x-scalar-security-secrets.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js +15 -3
- package/dist/schemas/extensions/security/x-scalar-security-secrets.js.map +2 -2
- package/dist/schemas/extensions/security/x-use-pkce.d.ts +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.d.ts.map +1 -1
- package/dist/schemas/extensions/security/x-use-pkce.js +1 -3
- package/dist/schemas/extensions/security/x-use-pkce.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +150 -32
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/reference-config/index.d.ts +75 -16
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +75 -16
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +135 -24
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +37 -15
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauthflows.d.ts +67 -12
- package/dist/schemas/v3.1/strict/oauthflows.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +2550 -544
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +1 -0
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +1 -0
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +2 -1
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +12 -8
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +3 -1
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +75 -16
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +75 -16
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace.d.ts +525 -112
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/package.json +8 -13
|
@@ -284,6 +284,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
284
284
|
cookie: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
285
285
|
}>>;
|
|
286
286
|
}>>>;
|
|
287
|
+
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
287
288
|
}>, import("@scalar/typebox").TObject<{
|
|
288
289
|
'x-badges': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
289
290
|
name: import("@scalar/typebox").TString;
|
|
@@ -1085,7 +1086,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1085
1086
|
SecuritySchemeObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1086
1087
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1087
1088
|
}>, import("@scalar/typebox").TObject<{
|
|
1088
|
-
'x-scalar-secret-token': import("@scalar/typebox").
|
|
1089
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1089
1090
|
}>, import("@scalar/typebox").TObject<{
|
|
1090
1091
|
type: import("@scalar/typebox").TLiteral<"apiKey">;
|
|
1091
1092
|
name: import("@scalar/typebox").TString;
|
|
@@ -1093,10 +1094,10 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1093
1094
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1094
1095
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1095
1096
|
}>, import("@scalar/typebox").TObject<{
|
|
1096
|
-
'x-scalar-secret-token': import("@scalar/typebox").
|
|
1097
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1097
1098
|
}>, import("@scalar/typebox").TObject<{
|
|
1098
|
-
'x-scalar-secret-username': import("@scalar/typebox").
|
|
1099
|
-
'x-scalar-secret-password': import("@scalar/typebox").
|
|
1099
|
+
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
1100
|
+
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
1100
1101
|
}>, import("@scalar/typebox").TObject<{
|
|
1101
1102
|
type: import("@scalar/typebox").TLiteral<"http">;
|
|
1102
1103
|
scheme: import("@scalar/typebox").TString;
|
|
@@ -1106,6 +1107,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1106
1107
|
}>, import("@scalar/typebox").TObject<{
|
|
1107
1108
|
type: import("@scalar/typebox").TLiteral<"oauth2">;
|
|
1108
1109
|
flows: import("@scalar/typebox").TRef<"OAuthFlowsObject">;
|
|
1110
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1111
|
+
'x-default-scopes': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
1109
1112
|
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1110
1113
|
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1111
1114
|
}>, import("@scalar/typebox").TObject<{
|
|
@@ -1132,38 +1135,93 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1132
1135
|
mapping: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1133
1136
|
}>;
|
|
1134
1137
|
OAuthFlowsObject: import("@scalar/typebox").TObject<{
|
|
1135
|
-
implicit: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1136
|
-
refreshUrl: import("@scalar/typebox").
|
|
1138
|
+
implicit: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1139
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1137
1140
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1138
1141
|
}>, import("@scalar/typebox").TObject<{
|
|
1139
|
-
'x-scalar-secret-
|
|
1142
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1143
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1144
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1145
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1146
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1147
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1148
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1140
1149
|
}>, import("@scalar/typebox").TObject<{
|
|
1150
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1151
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1152
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1153
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1141
1154
|
authorizationUrl: import("@scalar/typebox").TString;
|
|
1155
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1156
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
1142
1157
|
}>]>>;
|
|
1143
|
-
password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1144
|
-
refreshUrl: import("@scalar/typebox").
|
|
1158
|
+
password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1159
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1145
1160
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1146
1161
|
}>, import("@scalar/typebox").TObject<{
|
|
1147
|
-
'x-scalar-secret-
|
|
1162
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1148
1163
|
}>, import("@scalar/typebox").TObject<{
|
|
1164
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1165
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1166
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1167
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1168
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1169
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1170
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1171
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1172
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1173
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1149
1174
|
tokenUrl: import("@scalar/typebox").TString;
|
|
1175
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1176
|
+
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
1177
|
+
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
1178
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1179
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
1150
1180
|
}>]>>;
|
|
1151
|
-
clientCredentials: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1152
|
-
refreshUrl: import("@scalar/typebox").
|
|
1181
|
+
clientCredentials: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1182
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1153
1183
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1154
1184
|
}>, import("@scalar/typebox").TObject<{
|
|
1155
|
-
'x-scalar-secret-
|
|
1185
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1156
1186
|
}>, import("@scalar/typebox").TObject<{
|
|
1187
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1188
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1189
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1190
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1191
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1192
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1193
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1194
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1195
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1196
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1157
1197
|
tokenUrl: import("@scalar/typebox").TString;
|
|
1198
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1199
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
1158
1200
|
}>]>>;
|
|
1159
|
-
authorizationCode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1160
|
-
refreshUrl: import("@scalar/typebox").
|
|
1201
|
+
authorizationCode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1202
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1161
1203
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1162
1204
|
}>, import("@scalar/typebox").TObject<{
|
|
1163
|
-
'x-scalar-secret-
|
|
1205
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1206
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1207
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1164
1208
|
}>, import("@scalar/typebox").TObject<{
|
|
1209
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1210
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1211
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1212
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1213
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1214
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1215
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1216
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1165
1217
|
authorizationUrl: import("@scalar/typebox").TString;
|
|
1166
1218
|
tokenUrl: import("@scalar/typebox").TString;
|
|
1219
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1220
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
1221
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1222
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
1223
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1224
|
+
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
1167
1225
|
}>]>>;
|
|
1168
1226
|
}>;
|
|
1169
1227
|
ServerVariableObject: import("@scalar/typebox").TObject<{
|
|
@@ -1203,6 +1261,7 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
1203
1261
|
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1204
1262
|
}>>>;
|
|
1205
1263
|
'x-original-oas-version': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1264
|
+
'x-scalar-selected-security': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"SecurityRequirementObject">>>;
|
|
1206
1265
|
"x-scalar-navigation": import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TRef<"TraversedEntryObject">>>;
|
|
1207
1266
|
}>]>;
|
|
1208
1267
|
TraversedDescriptionObject: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAI7C,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAI7C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS1B,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAEpD,eAAO,MAAM,eAAe,EAAE,YAAY,CAAC,QAAQ,CAKlD,CAAA"}
|
|
@@ -1,100 +1,211 @@
|
|
|
1
1
|
import { type Static } from '@scalar/typebox';
|
|
2
2
|
/** Configuration for the OAuth Implicit flow */
|
|
3
|
-
export declare const OAuthFlowImplicitSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
3
|
+
export declare const OAuthFlowImplicitSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
4
4
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
5
|
-
refreshUrl: import("@scalar/typebox").
|
|
5
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
6
6
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
7
7
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
8
8
|
}>, import("@scalar/typebox").TObject<{
|
|
9
|
-
'x-scalar-secret-
|
|
9
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
10
10
|
}>, import("@scalar/typebox").TObject<{
|
|
11
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
12
|
+
}>, import("@scalar/typebox").TObject<{
|
|
13
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
14
|
+
}>, import("@scalar/typebox").TObject<{
|
|
15
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
16
|
+
}>, import("@scalar/typebox").TObject<{
|
|
17
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
18
|
+
}>, import("@scalar/typebox").TObject<{
|
|
19
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
20
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
11
21
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
12
22
|
authorizationUrl: import("@scalar/typebox").TString;
|
|
23
|
+
}>, import("@scalar/typebox").TObject<{
|
|
24
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
13
25
|
}>]>;
|
|
14
26
|
/** Configuration for the OAuth Resource Owner Password flow */
|
|
15
|
-
export declare const OAuthFlowPasswordSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
27
|
+
export declare const OAuthFlowPasswordSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
16
28
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
17
|
-
refreshUrl: import("@scalar/typebox").
|
|
29
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
18
30
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
19
31
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
20
32
|
}>, import("@scalar/typebox").TObject<{
|
|
21
|
-
'x-scalar-secret-
|
|
33
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
34
|
+
}>, import("@scalar/typebox").TObject<{
|
|
35
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
22
36
|
}>, import("@scalar/typebox").TObject<{
|
|
37
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
38
|
+
}>, import("@scalar/typebox").TObject<{
|
|
39
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
40
|
+
}>, import("@scalar/typebox").TObject<{
|
|
41
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
42
|
+
}>, import("@scalar/typebox").TObject<{
|
|
43
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
44
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
23
45
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
24
46
|
tokenUrl: import("@scalar/typebox").TString;
|
|
47
|
+
}>, import("@scalar/typebox").TObject<{
|
|
48
|
+
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
49
|
+
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
50
|
+
}>, import("@scalar/typebox").TObject<{
|
|
51
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
25
52
|
}>]>;
|
|
26
53
|
/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */
|
|
27
|
-
export declare const OAuthFlowClientCredentialsSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
54
|
+
export declare const OAuthFlowClientCredentialsSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
28
55
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
29
|
-
refreshUrl: import("@scalar/typebox").
|
|
56
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
30
57
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
31
58
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
32
59
|
}>, import("@scalar/typebox").TObject<{
|
|
33
|
-
'x-scalar-secret-
|
|
60
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
61
|
+
}>, import("@scalar/typebox").TObject<{
|
|
62
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
34
63
|
}>, import("@scalar/typebox").TObject<{
|
|
64
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
65
|
+
}>, import("@scalar/typebox").TObject<{
|
|
66
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
67
|
+
}>, import("@scalar/typebox").TObject<{
|
|
68
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
69
|
+
}>, import("@scalar/typebox").TObject<{
|
|
70
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
71
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
35
72
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
36
73
|
tokenUrl: import("@scalar/typebox").TString;
|
|
74
|
+
}>, import("@scalar/typebox").TObject<{
|
|
75
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
37
76
|
}>]>;
|
|
38
77
|
/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */
|
|
39
|
-
export declare const OAuthFlowAuthorizationCodeSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
78
|
+
export declare const OAuthFlowAuthorizationCodeSchema: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
40
79
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
41
|
-
refreshUrl: import("@scalar/typebox").
|
|
80
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
42
81
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
43
82
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
44
83
|
}>, import("@scalar/typebox").TObject<{
|
|
45
|
-
'x-scalar-secret-
|
|
84
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
85
|
+
}>, import("@scalar/typebox").TObject<{
|
|
86
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
87
|
+
}>, import("@scalar/typebox").TObject<{
|
|
88
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
46
89
|
}>, import("@scalar/typebox").TObject<{
|
|
90
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
91
|
+
}>, import("@scalar/typebox").TObject<{
|
|
92
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
93
|
+
}>, import("@scalar/typebox").TObject<{
|
|
94
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
95
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
47
96
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
48
97
|
authorizationUrl: import("@scalar/typebox").TString;
|
|
49
98
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
50
99
|
tokenUrl: import("@scalar/typebox").TString;
|
|
100
|
+
}>, import("@scalar/typebox").TObject<{
|
|
101
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
102
|
+
}>, import("@scalar/typebox").TObject<{
|
|
103
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
104
|
+
}>, import("@scalar/typebox").TObject<{
|
|
105
|
+
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
51
106
|
}>]>;
|
|
52
107
|
/** Union of all OAuth flow schemas */
|
|
53
|
-
export declare const OAuthFlowObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
108
|
+
export declare const OAuthFlowObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
54
109
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
55
|
-
refreshUrl: import("@scalar/typebox").
|
|
110
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
56
111
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
57
112
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
58
113
|
}>, import("@scalar/typebox").TObject<{
|
|
59
|
-
'x-scalar-secret-
|
|
114
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
60
115
|
}>, import("@scalar/typebox").TObject<{
|
|
116
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
117
|
+
}>, import("@scalar/typebox").TObject<{
|
|
118
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
119
|
+
}>, import("@scalar/typebox").TObject<{
|
|
120
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
121
|
+
}>, import("@scalar/typebox").TObject<{
|
|
122
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
123
|
+
}>, import("@scalar/typebox").TObject<{
|
|
124
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
125
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
61
126
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
62
127
|
authorizationUrl: import("@scalar/typebox").TString;
|
|
63
|
-
}
|
|
128
|
+
}>, import("@scalar/typebox").TObject<{
|
|
129
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
130
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
64
131
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
65
|
-
refreshUrl: import("@scalar/typebox").
|
|
132
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
66
133
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
67
134
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
68
135
|
}>, import("@scalar/typebox").TObject<{
|
|
69
|
-
'x-scalar-secret-
|
|
136
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
137
|
+
}>, import("@scalar/typebox").TObject<{
|
|
138
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
70
139
|
}>, import("@scalar/typebox").TObject<{
|
|
140
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
141
|
+
}>, import("@scalar/typebox").TObject<{
|
|
142
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
143
|
+
}>, import("@scalar/typebox").TObject<{
|
|
144
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
145
|
+
}>, import("@scalar/typebox").TObject<{
|
|
146
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
147
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
71
148
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
72
149
|
tokenUrl: import("@scalar/typebox").TString;
|
|
73
|
-
}
|
|
150
|
+
}>, import("@scalar/typebox").TObject<{
|
|
151
|
+
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
152
|
+
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
153
|
+
}>, import("@scalar/typebox").TObject<{
|
|
154
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
155
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
74
156
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
75
|
-
refreshUrl: import("@scalar/typebox").
|
|
157
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
76
158
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
77
159
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
78
160
|
}>, import("@scalar/typebox").TObject<{
|
|
79
|
-
'x-scalar-secret-
|
|
161
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
162
|
+
}>, import("@scalar/typebox").TObject<{
|
|
163
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
80
164
|
}>, import("@scalar/typebox").TObject<{
|
|
165
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
166
|
+
}>, import("@scalar/typebox").TObject<{
|
|
167
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
168
|
+
}>, import("@scalar/typebox").TObject<{
|
|
169
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
170
|
+
}>, import("@scalar/typebox").TObject<{
|
|
171
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
172
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
81
173
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
82
174
|
tokenUrl: import("@scalar/typebox").TString;
|
|
83
|
-
}
|
|
175
|
+
}>, import("@scalar/typebox").TObject<{
|
|
176
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
177
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
84
178
|
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
85
|
-
refreshUrl: import("@scalar/typebox").
|
|
179
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
86
180
|
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
87
181
|
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
88
182
|
}>, import("@scalar/typebox").TObject<{
|
|
89
|
-
'x-scalar-secret-
|
|
183
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
184
|
+
}>, import("@scalar/typebox").TObject<{
|
|
185
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
186
|
+
}>, import("@scalar/typebox").TObject<{
|
|
187
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
90
188
|
}>, import("@scalar/typebox").TObject<{
|
|
189
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
190
|
+
}>, import("@scalar/typebox").TObject<{
|
|
191
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
192
|
+
}>, import("@scalar/typebox").TObject<{
|
|
193
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
194
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
91
195
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
92
196
|
authorizationUrl: import("@scalar/typebox").TString;
|
|
93
197
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
94
198
|
tokenUrl: import("@scalar/typebox").TString;
|
|
199
|
+
}>, import("@scalar/typebox").TObject<{
|
|
200
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
201
|
+
}>, import("@scalar/typebox").TObject<{
|
|
202
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
203
|
+
}>, import("@scalar/typebox").TObject<{
|
|
204
|
+
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
95
205
|
}>]>]>;
|
|
96
206
|
export type OAuthFlowImplicit = Static<typeof OAuthFlowImplicitSchema>;
|
|
97
207
|
export type OAuthFlowPassword = Static<typeof OAuthFlowPasswordSchema>;
|
|
98
208
|
export type OAuthFlowClientCredentials = Static<typeof OAuthFlowClientCredentialsSchema>;
|
|
99
209
|
export type OAuthFlowAuthorizationCode = Static<typeof OAuthFlowAuthorizationCodeSchema>;
|
|
210
|
+
export type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode;
|
|
100
211
|
//# sourceMappingURL=oauth-flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAgCnD,gDAAgD;AAChD,eAAO,MAAM,uBAAuB;IAdhC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IAexJ,gJAAgJ;;;;IAInJ,CAAA;AAED,+DAA+D;AAC/D,eAAO,MAAM,uBAAuB;IAxBhC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IAyBxJ,wIAAwI;;;;;;;IAK3I,CAAA;AAED,yGAAyG;AACzG,eAAO,MAAM,gCAAgC;IAnCzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IAoCxJ,wIAAwI;;;;IAI3I,CAAA;AAED,wGAAwG;AACxG,eAAO,MAAM,gCAAgC;IA7CzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8CxJ,gJAAgJ;;IAEhJ,wIAAwI;;;;;;;;IAM3I,CAAA;AAED,sCAAsC;AACtC,eAAO,MAAM,+BAA+B;IA3DxC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IAexJ,gJAAgJ;;;;;IAjBhJ,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IAyBxJ,wIAAwI;;;;;;;;IA3BxI,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IAoCxJ,wIAAwI;;;;;IAtCxI,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8CxJ,gJAAgJ;;IAEhJ,wIAAwI;;;;;;;;MAc1I,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACtE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACtE,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACxF,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAExF,MAAM,MAAM,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,0BAA0B,GAAG,0BAA0B,CAAA"}
|
|
@@ -1,45 +1,67 @@
|
|
|
1
1
|
import { Type } from "@scalar/typebox";
|
|
2
2
|
import { compose } from "../../../schemas/compose.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { XScalarCredentialsLocationSchema } from "../../../schemas/extensions/security/x-scalar-credentials-location.js";
|
|
4
|
+
import { XScalarSecurityBody } from "../../../schemas/extensions/security/x-scalar-security-body.js";
|
|
5
|
+
import { XScalarSecurityQuery } from "../../../schemas/extensions/security/x-scalar-security-query.js";
|
|
6
|
+
import {
|
|
7
|
+
XScalarSecretClientIdSchema,
|
|
8
|
+
XScalarSecretClientSecretSchema,
|
|
9
|
+
XScalarSecretHTTPSchema,
|
|
10
|
+
XScalarSecretRedirectUriSchema,
|
|
11
|
+
XScalarSecretTokenSchema
|
|
12
|
+
} from "../../../schemas/extensions/security/x-scalar-security-secrets.js";
|
|
13
|
+
import { XTokenName } from "../../../schemas/extensions/security/x-tokenName.js";
|
|
14
|
+
import { XusePkceSchema } from "../../../schemas/extensions/security/x-use-pkce.js";
|
|
15
|
+
const OAuthFlowCommonSchema = compose(
|
|
16
|
+
Type.Object({
|
|
17
|
+
/** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
18
|
+
refreshUrl: Type.String(),
|
|
19
|
+
/** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */
|
|
20
|
+
scopes: Type.Record(Type.String(), Type.String())
|
|
21
|
+
}),
|
|
22
|
+
XScalarSecretClientIdSchema,
|
|
23
|
+
XScalarSecretTokenSchema,
|
|
24
|
+
XScalarSecurityQuery,
|
|
25
|
+
XScalarSecurityBody,
|
|
26
|
+
XTokenName,
|
|
27
|
+
XScalarCredentialsLocationSchema
|
|
28
|
+
);
|
|
10
29
|
const OAuthFlowImplicitSchema = compose(
|
|
11
30
|
OAuthFlowCommonSchema,
|
|
12
|
-
XScalarSecretTokenSchema,
|
|
13
31
|
Type.Object({
|
|
14
32
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
15
33
|
authorizationUrl: Type.String()
|
|
16
|
-
})
|
|
34
|
+
}),
|
|
35
|
+
XScalarSecretRedirectUriSchema
|
|
17
36
|
);
|
|
18
37
|
const OAuthFlowPasswordSchema = compose(
|
|
19
38
|
OAuthFlowCommonSchema,
|
|
20
|
-
XScalarSecretTokenSchema,
|
|
21
39
|
Type.Object({
|
|
22
40
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
23
41
|
tokenUrl: Type.String()
|
|
24
|
-
})
|
|
42
|
+
}),
|
|
43
|
+
XScalarSecretHTTPSchema,
|
|
44
|
+
XScalarSecretClientSecretSchema
|
|
25
45
|
);
|
|
26
46
|
const OAuthFlowClientCredentialsSchema = compose(
|
|
27
47
|
OAuthFlowCommonSchema,
|
|
28
|
-
XScalarSecretTokenSchema,
|
|
29
48
|
Type.Object({
|
|
30
49
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
31
50
|
tokenUrl: Type.String()
|
|
32
|
-
})
|
|
51
|
+
}),
|
|
52
|
+
XScalarSecretClientSecretSchema
|
|
33
53
|
);
|
|
34
54
|
const OAuthFlowAuthorizationCodeSchema = compose(
|
|
35
55
|
OAuthFlowCommonSchema,
|
|
36
|
-
XScalarSecretTokenSchema,
|
|
37
56
|
Type.Object({
|
|
38
57
|
/** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
39
58
|
authorizationUrl: Type.String(),
|
|
40
59
|
/** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */
|
|
41
60
|
tokenUrl: Type.String()
|
|
42
|
-
})
|
|
61
|
+
}),
|
|
62
|
+
XScalarSecretClientSecretSchema,
|
|
63
|
+
XScalarSecretRedirectUriSchema,
|
|
64
|
+
XusePkceSchema
|
|
43
65
|
);
|
|
44
66
|
const OAuthFlowObjectSchemaDefinition = Type.Union([
|
|
45
67
|
OAuthFlowImplicitSchema,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],
|
|
4
|
-
"sourcesContent": ["import { type Static, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {
|
|
5
|
-
"mappings": "AAAA,SAAsB,YAAY;AAElC,SAAS,eAAe;AACxB,SAAS,
|
|
4
|
+
"sourcesContent": ["import { type Static, Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { XScalarCredentialsLocationSchema } from '@/schemas/extensions/security/x-scalar-credentials-location'\nimport { XScalarSecurityBody } from '@/schemas/extensions/security/x-scalar-security-body'\nimport { XScalarSecurityQuery } from '@/schemas/extensions/security/x-scalar-security-query'\nimport {\n XScalarSecretClientIdSchema,\n XScalarSecretClientSecretSchema,\n XScalarSecretHTTPSchema,\n XScalarSecretRedirectUriSchema,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { XTokenName } from '@/schemas/extensions/security/x-tokenName'\nimport { XusePkceSchema } from '@/schemas/extensions/security/x-use-pkce'\n\n/** Common properties used across all OAuth flows */\nconst OAuthFlowCommonSchema = compose(\n Type.Object({\n /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n refreshUrl: Type.String(),\n /** REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */\n scopes: Type.Record(Type.String(), Type.String()),\n }),\n XScalarSecretClientIdSchema,\n XScalarSecretTokenSchema,\n XScalarSecurityQuery,\n XScalarSecurityBody,\n XTokenName,\n XScalarCredentialsLocationSchema,\n)\n\n/** Configuration for the OAuth Implicit flow */\nexport const OAuthFlowImplicitSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n }),\n XScalarSecretRedirectUriSchema,\n)\n\n/** Configuration for the OAuth Resource Owner Password flow */\nexport const OAuthFlowPasswordSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretHTTPSchema,\n XScalarSecretClientSecretSchema,\n)\n\n/** Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport const OAuthFlowClientCredentialsSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretClientSecretSchema,\n)\n\n/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport const OAuthFlowAuthorizationCodeSchema = compose(\n OAuthFlowCommonSchema,\n Type.Object({\n /** REQUIRED. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n authorizationUrl: Type.String(),\n /** REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */\n tokenUrl: Type.String(),\n }),\n XScalarSecretClientSecretSchema,\n XScalarSecretRedirectUriSchema,\n XusePkceSchema,\n)\n\n/** Union of all OAuth flow schemas */\nexport const OAuthFlowObjectSchemaDefinition = Type.Union([\n OAuthFlowImplicitSchema,\n OAuthFlowPasswordSchema,\n OAuthFlowClientCredentialsSchema,\n OAuthFlowAuthorizationCodeSchema,\n])\n\nexport type OAuthFlowImplicit = Static<typeof OAuthFlowImplicitSchema>\nexport type OAuthFlowPassword = Static<typeof OAuthFlowPasswordSchema>\nexport type OAuthFlowClientCredentials = Static<typeof OAuthFlowClientCredentialsSchema>\nexport type OAuthFlowAuthorizationCode = Static<typeof OAuthFlowAuthorizationCodeSchema>\n\nexport type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode\n"],
|
|
5
|
+
"mappings": "AAAA,SAAsB,YAAY;AAElC,SAAS,eAAe;AACxB,SAAS,wCAAwC;AACjD,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAG/B,MAAM,wBAAwB;AAAA,EAC5B,KAAK,OAAO;AAAA;AAAA,IAEV,YAAY,KAAK,OAAO;AAAA;AAAA,IAExB,QAAQ,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,OAAO,CAAC;AAAA,EAClD,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AAGO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AACF;AAGO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AAGO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA;AAAA,IAE9B,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AAAA,EACA;AACF;AAGO,MAAM,kCAAkC,KAAK,MAAM;AAAA,EACxD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|