@scalar/workspace-store 0.20.0 → 0.22.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 +58 -0
- package/README.md +2 -2
- package/dist/client.d.ts +54 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +66 -29
- package/dist/client.js.map +2 -2
- package/dist/events/bus.d.ts +14 -2
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/events/bus.js +46 -10
- package/dist/events/bus.js.map +3 -3
- package/dist/events/definitions/auth.d.ts +2 -1
- package/dist/events/definitions/auth.d.ts.map +1 -1
- package/dist/events/definitions/cookie.d.ts +20 -0
- package/dist/events/definitions/cookie.d.ts.map +1 -0
- package/dist/events/definitions/cookie.js +1 -0
- package/dist/events/definitions/cookie.js.map +7 -0
- package/dist/events/definitions/document.d.ts +19 -2
- package/dist/events/definitions/document.d.ts.map +1 -1
- package/dist/events/definitions/index.d.ts +6 -1
- package/dist/events/definitions/index.d.ts.map +1 -1
- package/dist/events/definitions/operation.d.ts +20 -14
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/events/definitions/server.d.ts +2 -2
- package/dist/events/definitions/server.d.ts.map +1 -1
- package/dist/events/definitions/tabs.d.ts +55 -0
- package/dist/events/definitions/tabs.d.ts.map +1 -0
- package/dist/events/definitions/tabs.js +1 -0
- package/dist/events/definitions/tabs.js.map +7 -0
- package/dist/events/definitions/tag.d.ts +15 -0
- package/dist/events/definitions/tag.d.ts.map +1 -0
- package/dist/events/definitions/tag.js +1 -0
- package/dist/events/definitions/tag.js.map +7 -0
- package/dist/events/definitions/ui.d.ts +131 -39
- package/dist/events/definitions/ui.d.ts.map +1 -1
- package/dist/events/definitions/workspace.d.ts +18 -0
- package/dist/events/definitions/workspace.d.ts.map +1 -0
- package/dist/events/definitions/workspace.js +1 -0
- package/dist/events/definitions/workspace.js.map +7 -0
- package/dist/events/index.d.ts +1 -1
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js.map +2 -2
- package/dist/helpers/generate-unique-value.d.ts +19 -6
- package/dist/helpers/generate-unique-value.d.ts.map +1 -1
- package/dist/helpers/generate-unique-value.js +12 -7
- package/dist/helpers/generate-unique-value.js.map +2 -2
- package/dist/helpers/unpack-proxy.d.ts +14 -1
- package/dist/helpers/unpack-proxy.d.ts.map +1 -1
- package/dist/helpers/unpack-proxy.js +51 -1
- package/dist/helpers/unpack-proxy.js.map +3 -3
- package/dist/mutators/auth.d.ts +7 -2
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/auth.js +24 -21
- package/dist/mutators/auth.js.map +2 -2
- package/dist/mutators/cookie.d.ts +21 -13
- package/dist/mutators/cookie.d.ts.map +1 -1
- package/dist/mutators/cookie.js +34 -26
- package/dist/mutators/cookie.js.map +3 -3
- package/dist/mutators/document.d.ts +12 -2
- package/dist/mutators/document.d.ts.map +1 -1
- package/dist/mutators/document.js +42 -3
- package/dist/mutators/document.js.map +2 -2
- package/dist/mutators/index.d.ts +30 -20
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/index.js +38 -9
- package/dist/mutators/index.js.map +2 -2
- package/dist/mutators/operation.d.ts +49 -108
- package/dist/mutators/operation.d.ts.map +1 -1
- package/dist/mutators/operation.js +198 -94
- package/dist/mutators/operation.js.map +2 -2
- package/dist/mutators/request.d.ts +2 -1
- package/dist/mutators/request.d.ts.map +1 -1
- package/dist/mutators/request.js.map +1 -1
- package/dist/mutators/server.d.ts +1 -1
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/server.js +6 -5
- package/dist/mutators/server.js.map +2 -2
- package/dist/mutators/tabs.d.ts +44 -0
- package/dist/mutators/tabs.d.ts.map +1 -0
- package/dist/mutators/tabs.js +133 -0
- package/dist/mutators/tabs.js.map +7 -0
- package/dist/mutators/tag.d.ts +12 -0
- package/dist/mutators/tag.d.ts.map +1 -0
- package/dist/mutators/tag.js +19 -0
- package/dist/mutators/tag.js.map +7 -0
- package/dist/mutators/workspace.d.ts +6 -0
- package/dist/mutators/workspace.d.ts.map +1 -0
- package/dist/mutators/workspace.js +24 -0
- package/dist/mutators/workspace.js.map +7 -0
- package/dist/navigation/get-navigation-options.d.ts.map +1 -1
- package/dist/navigation/get-navigation-options.js +4 -4
- package/dist/navigation/get-navigation-options.js.map +2 -2
- package/dist/navigation/helpers/get-openapi-object.d.ts +35 -0
- package/dist/navigation/helpers/get-openapi-object.d.ts.map +1 -0
- package/dist/navigation/helpers/get-openapi-object.js +31 -0
- package/dist/navigation/helpers/get-openapi-object.js.map +7 -0
- package/dist/navigation/helpers/get-operation-entries.d.ts +24 -0
- package/dist/navigation/helpers/get-operation-entries.d.ts.map +1 -0
- package/dist/navigation/helpers/get-operation-entries.js +33 -0
- package/dist/navigation/helpers/get-operation-entries.js.map +7 -0
- package/dist/navigation/helpers/get-parent-entry.d.ts +15 -0
- package/dist/navigation/helpers/get-parent-entry.d.ts.map +1 -0
- package/dist/navigation/helpers/get-parent-entry.js +13 -0
- package/dist/navigation/helpers/get-parent-entry.js.map +7 -0
- package/dist/navigation/helpers/traverse-description.d.ts +0 -1
- package/dist/navigation/helpers/traverse-description.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-description.js +0 -1
- package/dist/navigation/helpers/traverse-description.js.map +2 -2
- package/dist/navigation/helpers/traverse-document.d.ts +1 -0
- package/dist/navigation/helpers/traverse-document.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-document.js +16 -2
- package/dist/navigation/helpers/traverse-document.js.map +2 -2
- package/dist/navigation/helpers/traverse-examples.js +2 -2
- package/dist/navigation/helpers/traverse-examples.js.map +2 -2
- package/dist/navigation/helpers/traverse-paths.d.ts +6 -3
- package/dist/navigation/helpers/traverse-paths.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-paths.js +5 -10
- package/dist/navigation/helpers/traverse-paths.js.map +2 -2
- package/dist/navigation/helpers/traverse-tags.d.ts +0 -1
- package/dist/navigation/helpers/traverse-tags.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-tags.js +57 -49
- package/dist/navigation/helpers/traverse-tags.js.map +3 -3
- package/dist/navigation/helpers/utils.d.ts +2 -1
- package/dist/navigation/helpers/utils.d.ts.map +1 -1
- package/dist/navigation/helpers/utils.js.map +1 -1
- package/dist/navigation/index.d.ts +2 -1
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +5 -3
- package/dist/navigation/index.js.map +2 -2
- package/dist/persistence/index.d.ts +6 -0
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +18 -0
- package/dist/persistence/index.js.map +2 -2
- package/dist/persistence/indexdb.d.ts +1 -0
- package/dist/persistence/indexdb.d.ts.map +1 -1
- package/dist/persistence/indexdb.js +6 -1
- package/dist/persistence/indexdb.js.map +2 -2
- package/dist/plugins/client/persistence.d.ts.map +1 -1
- package/dist/plugins/client/persistence.js +6 -0
- package/dist/plugins/client/persistence.js.map +2 -2
- package/dist/schemas/extensions/document/x-scalar-environments.d.ts +1 -0
- package/dist/schemas/extensions/document/x-scalar-environments.d.ts.map +1 -1
- package/dist/schemas/extensions/document/x-scalar-environments.js.map +2 -2
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.d.ts +13 -0
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.d.ts.map +1 -0
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.js +8 -0
- package/dist/schemas/extensions/document/x-scalar-set-operation-security.js.map +7 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.d.ts +36 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.d.ts.map +1 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.js +15 -0
- package/dist/schemas/extensions/general/x-scalar-cookies.js.map +7 -0
- package/dist/schemas/extensions/general/x-scalar-order.d.ts +12 -0
- package/dist/schemas/extensions/general/x-scalar-order.d.ts.map +1 -0
- package/dist/schemas/extensions/general/x-scalar-order.js +8 -0
- package/dist/schemas/extensions/general/x-scalar-order.js.map +7 -0
- package/dist/schemas/extensions/operation/index.d.ts +4 -1
- package/dist/schemas/extensions/operation/index.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/index.js +22 -0
- package/dist/schemas/extensions/operation/index.js.map +3 -3
- package/dist/schemas/extensions/operation/x-code-samples.d.ts +0 -5
- package/dist/schemas/extensions/operation/x-code-samples.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-code-samples.js +0 -1
- package/dist/schemas/extensions/operation/x-code-samples.js.map +2 -2
- package/dist/schemas/extensions/operation/x-post-response.d.ts +0 -18
- package/dist/schemas/extensions/operation/x-post-response.d.ts.map +1 -1
- package/dist/schemas/extensions/operation/x-post-response.js.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +8 -14
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js +15 -11
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +2 -2
- package/dist/schemas/extensions/workspace/index.d.ts +4 -0
- package/dist/schemas/extensions/workspace/index.d.ts.map +1 -0
- package/dist/schemas/extensions/workspace/index.js +15 -0
- package/dist/schemas/extensions/workspace/index.js.map +7 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts +18 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.d.ts.map +1 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js +8 -0
- package/dist/schemas/extensions/workspace/x-scalar-active-proxy.js.map +7 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts +36 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.d.ts.map +1 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js +16 -0
- package/dist/schemas/extensions/workspace/x-scalar-tabs.js.map +7 -0
- package/dist/schemas/extensions.d.ts +1 -1
- package/dist/schemas/extensions.js +1 -1
- package/dist/schemas/extensions.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +46 -33
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/navigation.d.ts +12 -1
- package/dist/schemas/navigation.d.ts.map +1 -1
- package/dist/schemas/navigation.js +2 -1
- package/dist/schemas/navigation.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +22 -16
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +22 -16
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.js +2 -0
- package/dist/schemas/reference-config/settings.js.map +2 -2
- package/dist/schemas/v3.1/strict/header.d.ts +0 -45
- package/dist/schemas/v3.1/strict/header.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/header.js +1 -3
- package/dist/schemas/v3.1/strict/header.js.map +2 -2
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts +0 -99
- package/dist/schemas/v3.1/strict/oauth-flow.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/oauth-flow.js +0 -7
- package/dist/schemas/v3.1/strict/oauth-flow.js.map +2 -2
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +756 -552
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +10 -11
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +1 -5
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +1 -5
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/v3.1/strict/parameter.d.ts +1 -101
- package/dist/schemas/v3.1/strict/parameter.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/parameter.js +1 -4
- package/dist/schemas/v3.1/strict/parameter.js.map +2 -2
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts +0 -1
- package/dist/schemas/v3.1/strict/ref-definitions.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/ref-definitions.js +0 -2
- package/dist/schemas/v3.1/strict/ref-definitions.js.map +2 -2
- package/dist/schemas/v3.1/strict/schema.d.ts +28 -11
- package/dist/schemas/v3.1/strict/schema.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/schema.js +2 -2
- package/dist/schemas/v3.1/strict/schema.js.map +2 -2
- package/dist/schemas/v3.1/strict/security-scheme.d.ts +1 -54
- package/dist/schemas/v3.1/strict/security-scheme.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/security-scheme.js +0 -5
- package/dist/schemas/v3.1/strict/security-scheme.js.map +2 -2
- package/dist/schemas/v3.1/strict/tag.d.ts +4 -1
- package/dist/schemas/v3.1/strict/tag.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/tag.js +3 -1
- package/dist/schemas/v3.1/strict/tag.js.map +2 -2
- package/dist/schemas/v3.1/strict/type-guards.d.ts +6 -0
- package/dist/schemas/v3.1/strict/type-guards.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/type-guards.js +4 -0
- package/dist/schemas/v3.1/strict/type-guards.js.map +2 -2
- package/dist/schemas/workspace-specification/config.d.ts +22 -16
- package/dist/schemas/workspace-specification/config.d.ts.map +1 -1
- package/dist/schemas/workspace-specification/index.d.ts +23 -17
- package/dist/schemas/workspace-specification/index.d.ts.map +1 -1
- package/dist/schemas/workspace.d.ts +204 -130
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +18 -11
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +1 -1
- package/dist/workspace-plugin.d.ts +3 -0
- package/dist/workspace-plugin.d.ts.map +1 -1
- package/package.json +50 -35
- package/dist/schemas/extensions/document/x-scalar-document-security.d.ts +0 -13
- package/dist/schemas/extensions/document/x-scalar-document-security.d.ts.map +0 -1
- package/dist/schemas/extensions/document/x-scalar-document-security.js +0 -8
- package/dist/schemas/extensions/document/x-scalar-document-security.js.map +0 -7
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.d.ts +0 -13
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.d.ts.map +0 -1
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.js +0 -9
- package/dist/schemas/extensions/operation/x-scalar-operation-identifiers.js.map +0 -7
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts +0 -32
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.d.ts.map +0 -1
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js +0 -13
- package/dist/schemas/v3.1/strict/client-config-extensions/x-scalar-client-config-cookies.js.map +0 -7
|
@@ -138,105 +138,6 @@ export type OAuthFlowAuthorizationCode = OAuthFlowCommon & {
|
|
|
138
138
|
/** 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. */
|
|
139
139
|
tokenUrl: string;
|
|
140
140
|
} & XScalarSecretClientSecret & XScalarSecretRedirectUri & XusePkce;
|
|
141
|
-
/** Union of all OAuth flow schemas */
|
|
142
|
-
export declare const OAuthFlowObjectSchemaDefinition: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
143
|
-
/** 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. */
|
|
144
|
-
refreshUrl: import("@scalar/typebox").TString;
|
|
145
|
-
/** 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. */
|
|
146
|
-
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
147
|
-
}>, import("@scalar/typebox").TObject<{
|
|
148
|
-
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
149
|
-
}>, import("@scalar/typebox").TObject<{
|
|
150
|
-
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
151
|
-
}>, import("@scalar/typebox").TObject<{
|
|
152
|
-
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
153
|
-
}>, import("@scalar/typebox").TObject<{
|
|
154
|
-
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
155
|
-
}>, import("@scalar/typebox").TObject<{
|
|
156
|
-
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
157
|
-
}>, import("@scalar/typebox").TObject<{
|
|
158
|
-
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
159
|
-
}>]>, import("@scalar/typebox").TObject<{
|
|
160
|
-
/** 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. */
|
|
161
|
-
authorizationUrl: import("@scalar/typebox").TString;
|
|
162
|
-
}>, import("@scalar/typebox").TObject<{
|
|
163
|
-
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
164
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
165
|
-
/** 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. */
|
|
166
|
-
refreshUrl: import("@scalar/typebox").TString;
|
|
167
|
-
/** 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. */
|
|
168
|
-
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
169
|
-
}>, import("@scalar/typebox").TObject<{
|
|
170
|
-
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
171
|
-
}>, import("@scalar/typebox").TObject<{
|
|
172
|
-
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
173
|
-
}>, import("@scalar/typebox").TObject<{
|
|
174
|
-
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
175
|
-
}>, import("@scalar/typebox").TObject<{
|
|
176
|
-
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
177
|
-
}>, import("@scalar/typebox").TObject<{
|
|
178
|
-
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
179
|
-
}>, import("@scalar/typebox").TObject<{
|
|
180
|
-
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
181
|
-
}>]>, import("@scalar/typebox").TObject<{
|
|
182
|
-
/** 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. */
|
|
183
|
-
tokenUrl: import("@scalar/typebox").TString;
|
|
184
|
-
}>, import("@scalar/typebox").TObject<{
|
|
185
|
-
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
186
|
-
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
187
|
-
}>, import("@scalar/typebox").TObject<{
|
|
188
|
-
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
189
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
190
|
-
/** 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. */
|
|
191
|
-
refreshUrl: import("@scalar/typebox").TString;
|
|
192
|
-
/** 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. */
|
|
193
|
-
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
194
|
-
}>, import("@scalar/typebox").TObject<{
|
|
195
|
-
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
196
|
-
}>, import("@scalar/typebox").TObject<{
|
|
197
|
-
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
198
|
-
}>, import("@scalar/typebox").TObject<{
|
|
199
|
-
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
200
|
-
}>, import("@scalar/typebox").TObject<{
|
|
201
|
-
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
202
|
-
}>, import("@scalar/typebox").TObject<{
|
|
203
|
-
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
204
|
-
}>, import("@scalar/typebox").TObject<{
|
|
205
|
-
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
206
|
-
}>]>, import("@scalar/typebox").TObject<{
|
|
207
|
-
/** 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. */
|
|
208
|
-
tokenUrl: import("@scalar/typebox").TString;
|
|
209
|
-
}>, import("@scalar/typebox").TObject<{
|
|
210
|
-
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
211
|
-
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
212
|
-
/** 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. */
|
|
213
|
-
refreshUrl: import("@scalar/typebox").TString;
|
|
214
|
-
/** 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. */
|
|
215
|
-
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
216
|
-
}>, import("@scalar/typebox").TObject<{
|
|
217
|
-
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
218
|
-
}>, import("@scalar/typebox").TObject<{
|
|
219
|
-
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
220
|
-
}>, import("@scalar/typebox").TObject<{
|
|
221
|
-
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
222
|
-
}>, import("@scalar/typebox").TObject<{
|
|
223
|
-
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
224
|
-
}>, import("@scalar/typebox").TObject<{
|
|
225
|
-
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
226
|
-
}>, import("@scalar/typebox").TObject<{
|
|
227
|
-
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
228
|
-
}>]>, import("@scalar/typebox").TObject<{
|
|
229
|
-
/** 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. */
|
|
230
|
-
authorizationUrl: import("@scalar/typebox").TString;
|
|
231
|
-
/** 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. */
|
|
232
|
-
tokenUrl: import("@scalar/typebox").TString;
|
|
233
|
-
}>, import("@scalar/typebox").TObject<{
|
|
234
|
-
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
235
|
-
}>, import("@scalar/typebox").TObject<{
|
|
236
|
-
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
237
|
-
}>, import("@scalar/typebox").TObject<{
|
|
238
|
-
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
239
|
-
}>]>]>;
|
|
240
141
|
export type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode;
|
|
241
142
|
export {};
|
|
242
143
|
//# 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":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,6DAA6D,CAAA;AACpE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,uDAAuD,CAAA;AAC9D,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,wBAAwB,EAE7B,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,2CAA2C,CAAA;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,0CAA0C,CAAA;AAkBxF,oDAAoD;AACpD,KAAK,eAAe,GAAG;IACrB,uIAAuI;IACvI,UAAU,EAAE,MAAM,CAAA;IAClB,wJAAwJ;IACxJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B,GAAG,qBAAqB,GACvB,kBAAkB,GAClB,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,0BAA0B,CAAA;AAE5B,gDAAgD;AAChD,eAAO,MAAM,uBAAuB;IA3BhC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4BxJ,gJAAgJ;;;;IAInJ,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;CACzB,GAAG,wBAAwB,CAAA;AAE5B,+DAA+D;AAC/D,eAAO,MAAM,uBAAuB;IA3ChC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4CxJ,wIAAwI;;;;;;;IAK3I,CAAA;AAED,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,iBAAiB,GACnB,yBAAyB,CAAA;AAE3B,yGAAyG;AACzG,eAAO,MAAM,gCAAgC;IA7DzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8DxJ,wIAAwI;;;;IAI3I,CAAA;AAED,yGAAyG;AACzG,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,yBAAyB,CAAA;AAE7B,wGAAwG;AACxG,eAAO,MAAM,gCAAgC;IA7EzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8ExJ,gJAAgJ;;IAEhJ,wIAAwI;;;;;;;;IAM3I,CAAA;AAED,wGAAwG;AACxG,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;IACxB,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,yBAAyB,GAC3B,wBAAwB,GACxB,QAAQ,CAAA;AAEV,
|
|
1
|
+
{"version":3,"file":"oauth-flow.d.ts","sourceRoot":"","sources":["../../../../src/schemas/v3.1/strict/oauth-flow.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,6DAA6D,CAAA;AACpE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,uDAAuD,CAAA;AAC9D,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,yBAAyB,EAE9B,KAAK,iBAAiB,EAEtB,KAAK,wBAAwB,EAE7B,KAAK,kBAAkB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,2CAA2C,CAAA;AAC7F,OAAO,EAAE,KAAK,QAAQ,EAAkB,MAAM,0CAA0C,CAAA;AAkBxF,oDAAoD;AACpD,KAAK,eAAe,GAAG;IACrB,uIAAuI;IACvI,UAAU,EAAE,MAAM,CAAA;IAClB,wJAAwJ;IACxJ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B,GAAG,qBAAqB,GACvB,kBAAkB,GAClB,oBAAoB,GACpB,mBAAmB,GACnB,UAAU,GACV,0BAA0B,CAAA;AAE5B,gDAAgD;AAChD,eAAO,MAAM,uBAAuB;IA3BhC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4BxJ,gJAAgJ;;;;IAInJ,CAAA;AAED,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;CACzB,GAAG,wBAAwB,CAAA;AAE5B,+DAA+D;AAC/D,eAAO,MAAM,uBAAuB;IA3ChC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA4CxJ,wIAAwI;;;;;;;IAK3I,CAAA;AAED,+DAA+D;AAC/D,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG;IAChD,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,iBAAiB,GACnB,yBAAyB,CAAA;AAE3B,yGAAyG;AACzG,eAAO,MAAM,gCAAgC;IA7DzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8DxJ,wIAAwI;;;;IAI3I,CAAA;AAED,yGAAyG;AACzG,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,yBAAyB,CAAA;AAE7B,wGAAwG;AACxG,eAAO,MAAM,gCAAgC;IA7EzC,uIAAuI;;IAEvI,wJAAwJ;;;;;;;;;;;;;;;IA8ExJ,gJAAgJ;;IAEhJ,wIAAwI;;;;;;;;IAM3I,CAAA;AAED,wGAAwG;AACxG,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG;IACzD,gJAAgJ;IAChJ,gBAAgB,EAAE,MAAM,CAAA;IACxB,wIAAwI;IACxI,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,yBAAyB,GAC3B,wBAAwB,GACxB,QAAQ,CAAA;AAEV,MAAM,MAAM,SAAS,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,0BAA0B,GAAG,0BAA0B,CAAA"}
|
|
@@ -69,17 +69,10 @@ const OAuthFlowAuthorizationCodeSchema = compose(
|
|
|
69
69
|
XScalarSecretRedirectUriSchema,
|
|
70
70
|
XusePkceSchema
|
|
71
71
|
);
|
|
72
|
-
const OAuthFlowObjectSchemaDefinition = Type.Union([
|
|
73
|
-
OAuthFlowImplicitSchema,
|
|
74
|
-
OAuthFlowPasswordSchema,
|
|
75
|
-
OAuthFlowClientCredentialsSchema,
|
|
76
|
-
OAuthFlowAuthorizationCodeSchema
|
|
77
|
-
]);
|
|
78
72
|
export {
|
|
79
73
|
OAuthFlowAuthorizationCodeSchema,
|
|
80
74
|
OAuthFlowClientCredentialsSchema,
|
|
81
75
|
OAuthFlowImplicitSchema,
|
|
82
|
-
OAuthFlowObjectSchemaDefinition,
|
|
83
76
|
OAuthFlowPasswordSchema
|
|
84
77
|
};
|
|
85
78
|
//# sourceMappingURL=oauth-flow.js.map
|
|
@@ -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 } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n type XScalarCredentialsLocation,\n XScalarCredentialsLocationSchema,\n} from '@/schemas/extensions/security/x-scalar-credentials-location'\nimport {\n type XScalarSecurityBody,\n XScalarSecurityBodySchema,\n} from '@/schemas/extensions/security/x-scalar-security-body'\nimport {\n type XScalarSecurityQuery,\n XScalarSecurityQuerySchema,\n} from '@/schemas/extensions/security/x-scalar-security-query'\nimport {\n type XScalarSecretClientId,\n XScalarSecretClientIdSchema,\n type XScalarSecretClientSecret,\n XScalarSecretClientSecretSchema,\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretRedirectUri,\n XScalarSecretRedirectUriSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { type XTokenName, XTokenNameSchema } from '@/schemas/extensions/security/x-tokenName'\nimport { type XusePkce, 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 XScalarSecurityQuerySchema,\n XScalarSecurityBodySchema,\n XTokenNameSchema,\n XScalarCredentialsLocationSchema,\n)\n\n/** Common properties used across all OAuth flows */\ntype OAuthFlowCommon = {\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: 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: Record<string, string>\n} & XScalarSecretClientId &\n XScalarSecretToken &\n XScalarSecurityQuery &\n XScalarSecurityBody &\n XTokenName &\n XScalarCredentialsLocation\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 Implicit flow */\nexport type OAuthFlowImplicit = OAuthFlowCommon & {\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: string\n} & XScalarSecretRedirectUri\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 Resource Owner Password flow */\nexport type OAuthFlowPassword = OAuthFlowCommon & {\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: string\n} & XScalarSecretHTTP &\n XScalarSecretClientSecret\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 Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport type OAuthFlowClientCredentials = OAuthFlowCommon & {\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: string\n} & XScalarSecretClientSecret\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/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport type OAuthFlowAuthorizationCode = OAuthFlowCommon & {\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: 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: string\n} & XScalarSecretClientSecret &\n XScalarSecretRedirectUri &\n XusePkce\n\
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AACP,SAA0B,wBAAwB;AAClD,SAAwB,sBAAsB;AAG9C,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;AAgBO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AASO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AACF;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AASO,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;
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport {\n type XScalarCredentialsLocation,\n XScalarCredentialsLocationSchema,\n} from '@/schemas/extensions/security/x-scalar-credentials-location'\nimport {\n type XScalarSecurityBody,\n XScalarSecurityBodySchema,\n} from '@/schemas/extensions/security/x-scalar-security-body'\nimport {\n type XScalarSecurityQuery,\n XScalarSecurityQuerySchema,\n} from '@/schemas/extensions/security/x-scalar-security-query'\nimport {\n type XScalarSecretClientId,\n XScalarSecretClientIdSchema,\n type XScalarSecretClientSecret,\n XScalarSecretClientSecretSchema,\n type XScalarSecretHTTP,\n XScalarSecretHTTPSchema,\n type XScalarSecretRedirectUri,\n XScalarSecretRedirectUriSchema,\n type XScalarSecretToken,\n XScalarSecretTokenSchema,\n} from '@/schemas/extensions/security/x-scalar-security-secrets'\nimport { type XTokenName, XTokenNameSchema } from '@/schemas/extensions/security/x-tokenName'\nimport { type XusePkce, 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 XScalarSecurityQuerySchema,\n XScalarSecurityBodySchema,\n XTokenNameSchema,\n XScalarCredentialsLocationSchema,\n)\n\n/** Common properties used across all OAuth flows */\ntype OAuthFlowCommon = {\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: 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: Record<string, string>\n} & XScalarSecretClientId &\n XScalarSecretToken &\n XScalarSecurityQuery &\n XScalarSecurityBody &\n XTokenName &\n XScalarCredentialsLocation\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 Implicit flow */\nexport type OAuthFlowImplicit = OAuthFlowCommon & {\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: string\n} & XScalarSecretRedirectUri\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 Resource Owner Password flow */\nexport type OAuthFlowPassword = OAuthFlowCommon & {\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: string\n} & XScalarSecretHTTP &\n XScalarSecretClientSecret\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 Client Credentials flow. Previously called application in OpenAPI 2.0. */\nexport type OAuthFlowClientCredentials = OAuthFlowCommon & {\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: string\n} & XScalarSecretClientSecret\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/** Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0. */\nexport type OAuthFlowAuthorizationCode = OAuthFlowCommon & {\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: 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: string\n} & XScalarSecretClientSecret &\n XScalarSecretRedirectUri &\n XusePkce\n\nexport type OAuthFlow = OAuthFlowImplicit | OAuthFlowPassword | OAuthFlowClientCredentials | OAuthFlowAuthorizationCode\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AACP,SAA0B,wBAAwB;AAClD,SAAwB,sBAAsB;AAG9C,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;AAgBO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,kBAAkB,KAAK,OAAO;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AASO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AAAA,EACA;AACF;AAUO,MAAM,mCAAmC;AAAA,EAC9C;AAAA,EACA,KAAK,OAAO;AAAA;AAAA,IAEV,UAAU,KAAK,OAAO;AAAA,EACxB,CAAC;AAAA,EACD;AACF;AASO,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;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|