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

@openctx/protocol

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openctx/protocol - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

23

dist/openctx-protocol.schema.d.ts

@@ -5,4 +5,4 @@ import type { Annotation, Item } from '@openctx/schema';

*/
export type Protocol = RequestMessage | ResponseMessage | ResponseError | ProviderSettings | CapabilitiesParams | CapabilitiesResult | Mention | MentionsParams | MentionsResult | ItemsParams | ItemsResult | AnnotationsParams | AnnotationsResult;
export type CapabilitiesParams = Record<string, never>;
export type Protocol = RequestMessage | ResponseMessage | ResponseError | ProviderSettings | MetaParams | MetaResult | Mention | MentionsParams | MentionsResult | ItemsParams | ItemsResult | AnnotationsParams | AnnotationsResult;
export type MetaParams = Record<string, never>;
export type MentionsResult = Mention[];

@@ -31,3 +31,3 @@ export type ItemsResult = Item[];

}
export interface CapabilitiesResult {
export interface MetaResult {
/**

@@ -39,11 +39,14 @@ * Selects the scope in which this provider should be called.

selector?: Selector[];
meta: {
/**
* The name of the provider.
*/
name: string;
/**
* The features supported by the provider.
*/
features?: {
/**
* The name of the provider.
* Whether the provider support mentions.
*/
name: string;
/**
* A description of the provider.
*/
description?: string;
mentions?: boolean;
};

@@ -50,0 +53,0 @@ }

{
"name": "@openctx/protocol",
"version": "0.0.9",
"version": "0.0.10",
"description": "OpenCtx client/provider protocol",

@@ -20,3 +20,3 @@ "license": "Apache-2.0",

"dependencies": {
"@openctx/schema": "0.0.8"
"@openctx/schema": "0.0.9"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -21,6 +21,6 @@ {

{
"$ref": "#/definitions/CapabilitiesParams"
"$ref": "#/definitions/MetaParams"
},
{
"$ref": "#/definitions/CapabilitiesResult"
"$ref": "#/definitions/MetaResult"
},

@@ -102,3 +102,3 @@ {

},
"CapabilitiesParams": {
"MetaParams": {
"type": "object",

@@ -110,6 +110,6 @@ "additionalProperties": false,

},
"CapabilitiesResult": {
"MetaResult": {
"type": "object",
"additionalProperties": false,
"required": ["meta"],
"required": ["name"],
"properties": {

@@ -136,14 +136,14 @@ "selector": {

},
"meta": {
"name": {
"description": "The name of the provider.",
"type": "string"
},
"features": {
"description": "The features supported by the provider.",
"type": "object",
"additionalProperties": false,
"required": ["name"],
"properties": {
"name": {
"description": "The name of the provider.",
"type": "string"
},
"description": {
"description": "A description of the provider.",
"type": "string"
"mentions": {
"description": "Whether the provider support mentions.",
"type": "boolean"
}

@@ -150,0 +150,0 @@ }

@@ -10,4 +10,4 @@ import type { Annotation, Item } from '@openctx/schema'

| ProviderSettings
| CapabilitiesParams
| CapabilitiesResult
| MetaParams
| MetaResult
| Mention

@@ -20,3 +20,3 @@ | MentionsParams

| AnnotationsResult
export type CapabilitiesParams = Record<string, never>
export type MetaParams = Record<string, never>
export type MentionsResult = Mention[]

@@ -46,3 +46,3 @@ export type ItemsResult = Item[]

}
export interface CapabilitiesResult {
export interface MetaResult {
/**

@@ -54,11 +54,14 @@ * Selects the scope in which this provider should be called.

selector?: Selector[]
meta: {
/**
* The name of the provider.
*/
name: string
/**
* The features supported by the provider.
*/
features?: {
/**
* The name of the provider.
* Whether the provider support mentions.
*/
name: string
/**
* A description of the provider.
*/
description?: string
mentions?: boolean
}

@@ -65,0 +68,0 @@ }

Sorry, the diff of this file is not supported yet

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