Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/types

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/types - npm Package Compare versions

Comparing version 13.0.0-beta.4 to 13.0.0-beta.5

6

dist/graph.d.ts

@@ -1,3 +0,5 @@

export interface INode {
export interface IShareableNode {
id: string;
}
export interface INode extends IShareableNode {
/** An internal identifier. For example, the operationId property in OAS. */

@@ -23,3 +25,3 @@ iid?: string;

}
export interface INodeExample extends INodeExampleBase {
export interface INodeExample extends INodeExampleBase, IShareableNode {
value: unknown;

@@ -26,0 +28,0 @@ }

import { JSONSchema7 } from 'json-schema';
import { Dictionary } from './basic';
import { INode, INodeExample, INodeExternalExample } from './graph';
import { IShareableNode, INode, INodeExample, INodeExternalExample } from './graph';
import { IServer } from './servers';

@@ -8,3 +8,3 @@ /**

*/
export interface IHttpService extends INode {
export interface IHttpService extends INode, IShareableNode {
name: string;

@@ -36,3 +36,3 @@ version: string;

*/
export interface IHttpOperation extends INode {
export interface IHttpOperation extends INode, IShareableNode {
method: string;

@@ -59,3 +59,3 @@ path: string;

}
export interface IHttpOperationRequestBody {
export interface IHttpOperationRequestBody extends IShareableNode {
contents?: IMediaTypeContent[];

@@ -65,3 +65,3 @@ required?: boolean;

}
export interface IHttpOperationResponse {
export interface IHttpOperationResponse extends IShareableNode {
code: string;

@@ -75,3 +75,3 @@ contents?: IMediaTypeContent[];

*/
export interface IHttpParam extends IHttpContent {
export interface IHttpParam extends IHttpContent, IShareableNode {
name: string;

@@ -111,3 +111,3 @@ style: HttpParamStyles;

*/
export interface IHttpContent {
export interface IHttpContent extends IShareableNode {
schema?: JSONSchema7;

@@ -132,3 +132,3 @@ examples?: (INodeExample | INodeExternalExample)[];

export declare type HttpSecurityScheme = IApiKeySecurityScheme | IBearerSecurityScheme | IBasicSecurityScheme | IOauth2SecurityScheme | IOpenIdConnectSecurityScheme | IMutualTLSSecurityScheme;
interface ISecurityScheme {
interface ISecurityScheme extends IShareableNode {
key: string;

@@ -135,0 +135,0 @@ description?: string;

import { Dictionary } from './basic';
import { IShareableNode } from './graph';
import { IHttpOperation } from './http-spec';

@@ -11,3 +12,3 @@ export declare type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'head' | 'options' | 'trace';

/** Inspired by the Axios typings, since that is what Stoplight generally uses under the hood. */
export interface IHttpRequest<T = any> {
export interface IHttpRequest<T = any> extends IShareableNode {
method: HttpMethod;

@@ -22,3 +23,3 @@ /** Can be relative or absolute. If relative, `baseUrl` must also be set. */

}
export interface IHttpResponse<T = any> {
export interface IHttpResponse<T = any> extends IShareableNode {
status: number;

@@ -25,0 +26,0 @@ headers: HttpNameValue;

import { Dictionary } from './basic';
import { INodeVariable } from './graph';
export interface IServer {
import { INodeVariable, IShareableNode } from './graph';
export interface IServer extends IShareableNode {
url: string;

@@ -5,0 +5,0 @@ name?: string;

{
"name": "@stoplight/types",
"version": "13.0.0-beta.4",
"version": "13.0.0-beta.5",
"description": "Common typings for the Stoplight ecosystem.",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc