@stoplight/types
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -56,6 +56,6 @@ import { INode } from './node'; | ||
style?: | ||
| HttpParamStyles.Form | ||
| HttpParamStyles.SpaceDelimited | ||
| HttpParamStyles.PipeDelimited | ||
| HttpParamStyles.DeepObject; | ||
| HttpParamStyles.Form | ||
| HttpParamStyles.SpaceDelimited | ||
| HttpParamStyles.PipeDelimited | ||
| HttpParamStyles.DeepObject; | ||
@@ -82,6 +82,6 @@ allowEmptyValue?: boolean; | ||
style: | ||
| HttpParamStyles.Form | ||
| HttpParamStyles.SpaceDelimited | ||
| HttpParamStyles.PipeDelimited | ||
| HttpParamStyles.DeepObject; | ||
| HttpParamStyles.Form | ||
| HttpParamStyles.SpaceDelimited | ||
| HttpParamStyles.PipeDelimited | ||
| HttpParamStyles.DeepObject; | ||
@@ -96,3 +96,3 @@ explode?: boolean; | ||
examples?: IExample[]; | ||
encoding?: IHttpEncoding[]; | ||
encodings?: IHttpEncoding[]; | ||
} | ||
@@ -117,3 +117,3 @@ | ||
required?: boolean; | ||
content: IHttpContent[]; | ||
contents: IHttpContent[]; | ||
} | ||
@@ -147,2 +147,3 @@ | ||
| IBearerSecurityScheme | ||
| IBasicSecurityScheme | ||
| IOauth2SecurityScheme | ||
@@ -167,2 +168,7 @@ | IOpenIdConnectSecurityScheme; | ||
export interface IBasicSecurityScheme extends ISecurityScheme { | ||
type: 'http'; | ||
scheme: 'basic'; | ||
} | ||
export interface IOpenIdConnectSecurityScheme extends ISecurityScheme { | ||
@@ -175,12 +181,14 @@ type: 'openIdConnect'; | ||
type: 'oauth2'; | ||
flows: Array<{ | ||
implicit: IOauth2ImplicitFlow; | ||
password: IOauth2PasswordFlow; | ||
clientCredentials: IOauth2ClientCredentialsFlow; | ||
authorizationCode: IOauth2AuthorizationCodeFlow; | ||
}>; | ||
flows: IOauthFlowObjects; | ||
} | ||
export interface IOauthFlowObjects { | ||
implicit?: IOauth2ImplicitFlow; | ||
password?: IOauth2PasswordFlow; | ||
clientCredentials?: IOauth2ClientCredentialsFlow; | ||
authorizationCode?: IOauth2AuthorizationCodeFlow; | ||
} | ||
export interface IOauth2Flow { | ||
refreshUrl: string; | ||
refreshUrl?: string; | ||
scopes: Array<{ | ||
@@ -191,7 +199,7 @@ [name: string]: string; | ||
export interface IOauth2ImplicitFlow { | ||
export interface IOauth2ImplicitFlow extends IOauth2Flow { | ||
authorizationUrl: string; | ||
} | ||
export interface IOauth2AuthorizationCodeFlow { | ||
export interface IOauth2AuthorizationCodeFlow extends IOauth2Flow { | ||
authorizationUrl: string; | ||
@@ -201,8 +209,8 @@ tokenUrl: string; | ||
export interface IOauth2PasswordFlow { | ||
export interface IOauth2PasswordFlow extends IOauth2Flow { | ||
tokenUrl: string; | ||
} | ||
export interface IOauth2ClientCredentialsFlow { | ||
export interface IOauth2ClientCredentialsFlow extends IOauth2Flow { | ||
tokenUrl: string; | ||
} |
{ | ||
"name": "@stoplight/types", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"author": "Stoplight <support@stoplight.io>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
213
0
6116