@openctx/protocol
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -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
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
470
27549
11
1
+ Added@openctx/schema@0.0.9(transitive)
- Removed@openctx/schema@0.0.8(transitive)
Updated@openctx/schema@0.0.9