@neverblink/ohi 0.18.2 → 0.18.3

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/dist/catalog.d.ts CHANGED
@@ -1,8 +1,4 @@
1
- import type { Publication } from "./generated.js";
2
- import type { CatalogConfig } from "./generated_config.js";
3
- import type { CatalogError } from "./generated_error.js";
4
- import type { SearchRequest } from "./generated_search_request.js";
5
- import type { SearchHit, SearchResult } from "./generated_search.js";
1
+ import type { CatalogConfig, CatalogError, Publication, SearchHit, SearchRequest, SearchResult } from "./generated.js";
6
2
  export declare class CatalogException extends Error {
7
3
  readonly error: CatalogError;
8
4
  constructor(error: CatalogError, options?: ErrorOptions);
package/dist/catalog.js CHANGED
@@ -1,4 +1,4 @@
1
- import { decodePublication } from "./publication.js";
1
+ import { decodePublication, formats as knownFormats, isNew } from "./publication.js";
2
2
  const searchPath = "/search/collections/packages/documents/search";
3
3
  const referencePattern = /^([^/@\p{White_Space}`]+)\/([^/@\p{White_Space}`]+)(?:@([^/@\p{White_Space}+`]+))?$/u;
4
4
  export class CatalogException extends Error {
@@ -50,8 +50,14 @@ function searchResult(bytes, page, perPage) {
50
50
  }
51
51
  return {
52
52
  ...result,
53
- hits: result.hits.map(({ base_url, namespace, name, version, title, description, formats, licenses, published_at, keywords }) => ({ base_url, namespace, name, version, title, description, formats, licenses, published_at,
54
- ...(keywords === undefined ? {} : { keywords }) })),
53
+ // Formats added after this SDK version are discarded
54
+ hits: result.hits.flatMap(({ base_url, namespace, name, version, title, description, formats, licenses, published_at, keywords }) => {
55
+ const known = Array.isArray(formats) ? formats.filter((format) => !isNew(format, knownFormats)) : formats;
56
+ if (Array.isArray(formats) && formats.length > 0 && known.length === 0)
57
+ return [];
58
+ return [{ base_url, namespace, name, version, title, description, formats: known, licenses, published_at,
59
+ ...(keywords === undefined ? {} : { keywords }) }];
60
+ }),
55
61
  ...(result.facet_counts === undefined ? {} : {
56
62
  facet_counts: result.facet_counts.map(({ field_name, counts }) => ({ field_name, counts: counts.map(({ value, count }) => ({ value, count })) })),
57
63
  }),
@@ -14,12 +14,84 @@ export interface Artifact {
14
14
  url: string;
15
15
  [key: string]: unknown;
16
16
  }
17
+ /** Exact publication identity and artifact download URL, compared without normalization. */
18
+ export interface ArtifactSelection {
19
+ /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
20
+ base_url: string;
21
+ /** Permanent absolute download URL of an immutable ontology file. */
22
+ url: string;
23
+ }
24
+ export interface CatalogConfig {
25
+ /** Comma-separated indexed fields used for text search. Omit both query_by and search_url to use title,name,description,namespace at ohi.dev. Supply both to select another catalog. */
26
+ query_by?: string;
27
+ /** Complete HTTP search endpoint, including its collection path. Omit both search_url and query_by to use https://api.ohi.dev/search/collections/packages/documents/search. Supply both to select another catalog. */
28
+ search_url?: string;
29
+ /** Positive native request timeout in milliseconds. Omitted means 30000. */
30
+ timeout_ms?: number;
31
+ }
32
+ export interface CatalogError {
33
+ /** Stable SDK failure category. */
34
+ code: CatalogErrorCode;
35
+ /** Human-readable explanation of the failure. */
36
+ message: string;
37
+ /** Client construction or operation that failed. */
38
+ operation: CatalogOperation;
39
+ /** Parsed JSON object from an HTTP failure, preserving nested server fields. */
40
+ response_json?: unknown;
41
+ /** HTTP response status when visible to the client. */
42
+ status?: number;
43
+ /** Original target supplied by the caller, when available. */
44
+ url?: string;
45
+ }
17
46
  /** A reference to an exact immutable publication required by this publication. */
18
47
  export interface Dependency {
19
48
  /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
20
49
  base_url: string;
21
50
  [key: string]: unknown;
22
51
  }
52
+ /** Counts for the returned values of one indexed field. */
53
+ export interface FacetCount {
54
+ /** Value counts in search-result order. */
55
+ counts: FacetValueCount[];
56
+ /** Indexed field used for this facet. */
57
+ field_name: string;
58
+ [key: string]: unknown;
59
+ }
60
+ /** A facet value and its matching-publication count. */
61
+ export interface FacetValueCount {
62
+ /** Number of matching publications for this facet value or range. */
63
+ count: number;
64
+ /** Facet value or range label. */
65
+ value: string;
66
+ [key: string]: unknown;
67
+ }
68
+ /** Direct selections and their artifact files. */
69
+ export interface Lock {
70
+ /** Each (base_url, url) pair is unique. Every selection matches a file by that pair. */
71
+ files: LockedFile[];
72
+ /** Version 1 omits file hashes. Version 2 requires sha256 for every file. */
73
+ format_version: number;
74
+ /** Direct publication and artifact selections in supplied order. */
75
+ selections: ArtifactSelection[];
76
+ }
77
+ export interface LockError {
78
+ code: LockErrorCode;
79
+ /** Human-readable explanation of the failure. */
80
+ message: string;
81
+ operation: LockOperation;
82
+ /** Explicit path supplied to a file operation. Absent for text operations. */
83
+ path?: string;
84
+ }
85
+ export interface LockedFile {
86
+ /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
87
+ base_url: string;
88
+ /** Ontology language and syntax of the artifact. */
89
+ format: Format;
90
+ /** Permanent absolute download URL of an immutable ontology file. */
91
+ url: string;
92
+ /** SHA-256 of the file bytes before HTTP content encoding. */
93
+ sha256?: string;
94
+ }
23
95
  /** One immutable release of one ontology, including its metadata, artifacts and dependencies. Package, publication and release refer to the same entity. */
24
96
  export interface Publication {
25
97
  /** Available artifacts of this ontology. Each artifact URL occurs once. Multiple artifacts may share a format. */
@@ -30,6 +102,8 @@ export interface Publication {
30
102
  dependencies: Dependency[];
31
103
  /** Short description of the ontology's domain and intended use. */
32
104
  description: string;
105
+ /** Number of LinkML elements in the publication. */
106
+ element_count?: number;
33
107
  /** Keywords describing the ontology's subject. An empty list means no keywords are provided. */
34
108
  keywords: string[];
35
109
  /** Reported license names or standard identifiers such as Apache-2.0. Empty means no information supplied. The list specifies neither AND nor OR combination semantics. */
@@ -40,6 +114,8 @@ export interface Publication {
40
114
  namespace: string;
41
115
  /** Optional preferred primary RDF term namespace. Preserve the complete value including any trailing delimiter. Not the catalog namespace and not necessarily the ontology IRI. */
42
116
  namespace_iri?: string;
117
+ /** Number of elements in the publication's native format, as published upstream, such as the classes and properties of an OWL ontology. */
118
+ native_element_count?: number;
43
119
  /** Optional abbreviation for namespace_iri, without whitespace or a colon. Requires namespace_iri. This constraint does not certify prefix syntax for every ontology language. */
44
120
  preferred_prefix?: string;
45
121
  /** First successful Hub publication time for this immutable release. Backend emits UTC date-time text with Z. Consumers accept timezone-bearing RFC 3339 text. Fixed for the lifetime of this publication. Not an upstream release date. */
@@ -54,7 +130,74 @@ export interface Publication {
54
130
  version: string;
55
131
  [key: string]: unknown;
56
132
  }
133
+ /** Summary of one immutable publication. */
134
+ export interface SearchHit {
135
+ /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
136
+ base_url: string;
137
+ /** Short description of the ontology's domain and intended use. */
138
+ description: string;
139
+ /** Number of LinkML elements in the publication. */
140
+ element_count?: number;
141
+ /** Formats of the publication's available artifacts. Each value identifies both the ontology language and serialization syntax, as in artifact.format. */
142
+ formats: Format[];
143
+ /** Keywords describing the ontology's subject. An empty list means no keywords are provided. */
144
+ keywords?: string[];
145
+ /** Reported license names or standard identifiers such as Apache-2.0. Empty means no information supplied. The list specifies neither AND nor OR combination semantics. */
146
+ licenses: string[];
147
+ /** Short catalog identifier, qualified by namespace. The namespace/name pair identifies the same ontology across releases. */
148
+ name: string;
149
+ /** Namespace qualifying the ontology name, such as w3c in w3c/prov-o. */
150
+ namespace: string;
151
+ /** Number of elements in the publication's native format, as published upstream, such as the classes and properties of an OWL ontology. */
152
+ native_element_count?: number;
153
+ /** First successful Hub publication time for this immutable release. Backend emits UTC date-time text with Z. Consumers accept timezone-bearing RFC 3339 text. Fixed for the lifetime of this publication. Not an upstream release date. */
154
+ published_at: string;
155
+ /** Display title of the ontology. */
156
+ title: string;
157
+ /** Complete publication version label, including amendments. */
158
+ version: string;
159
+ [key: string]: unknown;
160
+ }
161
+ /** Query and options for retrieving one page of ontology publications. */
162
+ export interface SearchRequest {
163
+ /** Search every release instead of each ontology's latest version. */
164
+ all_releases?: boolean;
165
+ /** Typesense facet expression over facetable fields. */
166
+ facet_by?: string;
167
+ /** Typesense filter expression over filterable fields. */
168
+ filter_by?: string;
169
+ /** Maximum values returned per facet. Omitted uses the backend default. */
170
+ max_facet_values?: number;
171
+ /** One-based page number. Omitted means 1. */
172
+ page?: number;
173
+ /** Maximum hits requested for this page, from 1 through 250. Omitted means 10. */
174
+ per_page?: number;
175
+ /** Text query over the configured search fields. Use the wildcard * for browsing. */
176
+ q: string;
177
+ /** Typesense sort expression. Omitted preserves default search ordering. */
178
+ sort_by?: string;
179
+ }
180
+ /** One ordered page of publication summaries, with count, effective paging information and optional facet counts. */
181
+ export interface SearchResult {
182
+ /** Facet values and counts for the query and filters, independently of hit pagination. The number of returned facet values may be limited. */
183
+ facet_counts?: FacetCount[];
184
+ /** Publication summaries in search-result order. */
185
+ hits: SearchHit[];
186
+ /** Effective one-based page for this response. */
187
+ page: number;
188
+ /** Effective requested page size, not the number of returned hits. */
189
+ per_page: number;
190
+ /** Whether search stopped early. When true, hits or total may be incomplete. */
191
+ search_cutoff: boolean;
192
+ /** Matching indexed publications after query and filters, before pagination. May be incomplete when search_cutoff is true. An exact total can exceed the retrieval window. */
193
+ total: number;
194
+ [key: string]: unknown;
195
+ }
57
196
  /** Origin of published artifact content. */
58
197
  export type ArtifactOrigin = "UPSTREAM" | "GENERATED";
198
+ export type CatalogErrorCode = "INVALID_INPUT" | "HTTP_ERROR" | "CONNECTION_ERROR" | "TIMEOUT" | "INVALID_RESPONSE";
199
+ export type CatalogOperation = "CONFIGURE" | "SEARCH" | "INSPECT" | "GET";
59
200
  /** A combination of ontology language and syntax. */
60
- export type Format = "owl-turtle" | "owl-rdfxml" | "rdfs-turtle" | "linkml-yaml" | "ossie-yaml";
201
+ export type Format = "owl-turtle" | "owl-rdfxml" | "rdfs-turtle" | "linkml-yaml" | "ossie-yaml" | "shacl-turtle";
202
+ export type LockErrorCode = "INVALID_LOCK" | "UNSUPPORTED_VERSION" | "STORAGE_ERROR";
203
+ export type LockOperation = "DECODE" | "ENCODE" | "READ" | "WRITE";
package/dist/generated.js CHANGED
@@ -1,3 +1,3 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/package
1
+ // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/sdk
2
2
  // DO NOT EDIT.
3
3
  export {};
package/dist/index.d.ts CHANGED
@@ -3,10 +3,4 @@ export { decodePublication } from "./publication.js";
3
3
  export { ohiReleasePage } from "./pages.js";
4
4
  export type { Release } from "./pages.js";
5
5
  export { decodeLock, encodeLock, LockException } from "./lock.js";
6
- export type { Lock, ArtifactSelection, LockedFile } from "./generated_lock.js";
7
- export type * from "./generated_lock_error.js";
8
6
  export type * from "./generated.js";
9
- export type * from "./generated_config.js";
10
- export type * from "./generated_error.js";
11
- export type { FacetCount, FacetValueCount, SearchHit, SearchResult } from "./generated_search.js";
12
- export type * from "./generated_search_request.js";
package/dist/lock.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { Lock } from "./generated_lock.js";
2
- import type { LockError } from "./generated_lock_error.js";
1
+ import type { Lock, LockError } from "./generated.js";
3
2
  export declare class LockException extends Error {
4
3
  readonly error: LockError;
5
4
  constructor(error: LockError, options?: ErrorOptions);
package/dist/node.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Lock } from "./generated_lock.js";
1
+ import type { Lock } from "./generated.js";
2
2
  /** Read and validate UTF-8 JSON without a BOM.
3
3
  * Rejects with LockException for read failures, invalid records or unsupported revisions.
4
4
  */
@@ -1,3 +1,9 @@
1
- import type { Publication } from "./generated.js";
2
- /** Decode publication metadata, discarding extras. Field values are not validated. */
1
+ import type { Format, Publication } from "./generated.js";
2
+ export declare const formats: Record<Format, true>;
3
+ /** Whether a value is text outside an enum, so added to it after this SDK version. */
4
+ export declare function isNew(value: unknown, known: object): boolean;
5
+ /**
6
+ * Decode publication metadata, discarding extras and artifacts with a format or origin added
7
+ * after this SDK version. Field values are not validated.
8
+ */
3
9
  export declare function decodePublication(text: string): Publication;
@@ -1,10 +1,27 @@
1
- /** Decode publication metadata, discarding extras. Field values are not validated. */
1
+ // The compiler checks that these have every value of the generated enums.
2
+ export const formats = {
3
+ "owl-turtle": true, "owl-rdfxml": true, "rdfs-turtle": true, "linkml-yaml": true, "ossie-yaml": true,
4
+ "shacl-turtle": true,
5
+ };
6
+ const origins = { UPSTREAM: true, GENERATED: true };
7
+ /** Whether a value is text outside an enum, so added to it after this SDK version. */
8
+ export function isNew(value, known) {
9
+ return typeof value === "string" && !Object.hasOwn(known, value);
10
+ }
11
+ /**
12
+ * Decode publication metadata, discarding extras and artifacts with a format or origin added
13
+ * after this SDK version. Field values are not validated.
14
+ */
2
15
  export function decodePublication(text) {
3
16
  const data = JSON.parse(text);
4
17
  if (data.preferred_prefix !== undefined && data.namespace_iri === undefined) {
5
18
  throw new Error("preferred_prefix requires namespace_iri");
6
19
  }
7
- const artifactUrls = data.artifacts.map(({ url }) => url);
20
+ const artifacts = data.artifacts.filter(({ format, origin }) => !isNew(format, formats) && !isNew(origin, origins));
21
+ if (data.artifacts.length > 0 && artifacts.length === 0) {
22
+ throw new Error("publication has no artifacts that this SDK version supports");
23
+ }
24
+ const artifactUrls = artifacts.map(({ url }) => url);
8
25
  if (new Set(artifactUrls).size !== artifactUrls.length) {
9
26
  throw new Error("artifacts must have unique URLs");
10
27
  }
@@ -29,7 +46,7 @@ export function decodePublication(text) {
29
46
  ...(data.preferred_prefix === undefined ? {} : { preferred_prefix: data.preferred_prefix }),
30
47
  description: data.description,
31
48
  keywords: data.keywords,
32
- artifacts: data.artifacts.map(({ format, url, origin, roots, size_bytes, sha256 }) => ({ format, url, origin, roots, size_bytes, sha256 })),
49
+ artifacts: artifacts.map(({ format, url, origin, roots, size_bytes, sha256 }) => ({ format, url, origin, roots, size_bytes, sha256 })),
33
50
  dependencies: data.dependencies.map(({ base_url }) => ({ base_url })),
34
51
  };
35
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neverblink/ohi",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "description": "Search ontologies on ohi.dev, inspect their metadata and download their files.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://ohi.dev/docs/reference/sdks/",
@@ -1,8 +0,0 @@
1
- export interface CatalogConfig {
2
- /** Comma-separated indexed fields used for text search. Omit both query_by and search_url to use title,name,description,namespace at ohi.dev. Supply both to select another catalog. */
3
- query_by?: string;
4
- /** Complete HTTP search endpoint, including its collection path. Omit both search_url and query_by to use https://api.ohi.dev/search/collections/packages/documents/search. Supply both to select another catalog. */
5
- search_url?: string;
6
- /** Positive native request timeout in milliseconds. Omitted means 30000. */
7
- timeout_ms?: number;
8
- }
@@ -1,3 +0,0 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/catalog-config
2
- // DO NOT EDIT.
3
- export {};
@@ -1,16 +0,0 @@
1
- export interface CatalogError {
2
- /** Stable SDK failure category. */
3
- code: CatalogErrorCode;
4
- /** Human-readable explanation of the failure. */
5
- message: string;
6
- /** Client construction or operation that failed. */
7
- operation: CatalogOperation;
8
- /** Parsed JSON object from an HTTP failure, preserving nested server fields. */
9
- response_json?: unknown;
10
- /** HTTP response status when visible to the client. */
11
- status?: number;
12
- /** Original target supplied by the caller, when available. */
13
- url?: string;
14
- }
15
- export type CatalogErrorCode = "INVALID_INPUT" | "HTTP_ERROR" | "CONNECTION_ERROR" | "TIMEOUT" | "INVALID_RESPONSE";
16
- export type CatalogOperation = "CONFIGURE" | "SEARCH" | "INSPECT" | "GET";
@@ -1,3 +0,0 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/catalog-error
2
- // DO NOT EDIT.
3
- export {};
@@ -1,28 +0,0 @@
1
- /** Exact publication identity and artifact download URL, compared without normalization. */
2
- export interface ArtifactSelection {
3
- /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
4
- base_url: string;
5
- /** Permanent absolute download URL of an immutable ontology file. */
6
- url: string;
7
- }
8
- /** Direct selections and their artifact files. */
9
- export interface Lock {
10
- /** Each (base_url, url) pair is unique. Every selection matches a file by that pair. */
11
- files: LockedFile[];
12
- /** Version 1 omits file hashes. Version 2 requires sha256 for every file. */
13
- format_version: number;
14
- /** Direct publication and artifact selections in supplied order. */
15
- selections: ArtifactSelection[];
16
- }
17
- export interface LockedFile {
18
- /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
19
- base_url: string;
20
- /** Ontology language and syntax of the artifact. */
21
- format: Format;
22
- /** Permanent absolute download URL of an immutable ontology file. */
23
- url: string;
24
- /** SHA-256 of the file bytes before HTTP content encoding. */
25
- sha256?: string;
26
- }
27
- /** A combination of ontology language and syntax. */
28
- export type Format = "owl-turtle" | "owl-rdfxml" | "rdfs-turtle" | "linkml-yaml" | "ossie-yaml";
@@ -1,3 +0,0 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/lock
2
- // DO NOT EDIT.
3
- export {};
@@ -1,10 +0,0 @@
1
- export interface LockError {
2
- code: LockErrorCode;
3
- /** Human-readable explanation of the failure. */
4
- message: string;
5
- operation: LockOperation;
6
- /** Explicit path supplied to a file operation. Absent for text operations. */
7
- path?: string;
8
- }
9
- export type LockErrorCode = "INVALID_LOCK" | "UNSUPPORTED_VERSION" | "STORAGE_ERROR";
10
- export type LockOperation = "DECODE" | "ENCODE" | "READ" | "WRITE";
@@ -1,3 +0,0 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/lock-error
2
- // DO NOT EDIT.
3
- export {};
@@ -1,58 +0,0 @@
1
- /** Counts for the returned values of one indexed field. */
2
- export interface FacetCount {
3
- /** Value counts in search-result order. */
4
- counts: FacetValueCount[];
5
- /** Indexed field used for this facet. */
6
- field_name: string;
7
- [key: string]: unknown;
8
- }
9
- /** A facet value and its matching-publication count. */
10
- export interface FacetValueCount {
11
- /** Number of matching publications for this facet value or range. */
12
- count: number;
13
- /** Facet value or range label. */
14
- value: string;
15
- [key: string]: unknown;
16
- }
17
- /** Summary of one immutable publication. */
18
- export interface SearchHit {
19
- /** Permanent absolute URL identifying one exact immutable publication. GET this exact URL returns its publication JSON. Do not append a filename. */
20
- base_url: string;
21
- /** Short description of the ontology's domain and intended use. */
22
- description: string;
23
- /** Formats of the publication's available artifacts. Each value identifies both the ontology language and serialization syntax, as in artifact.format. */
24
- formats: Format[];
25
- /** Keywords describing the ontology's subject. An empty list means no keywords are provided. */
26
- keywords?: string[];
27
- /** Reported license names or standard identifiers such as Apache-2.0. Empty means no information supplied. The list specifies neither AND nor OR combination semantics. */
28
- licenses: string[];
29
- /** Short catalog identifier, qualified by namespace. The namespace/name pair identifies the same ontology across releases. */
30
- name: string;
31
- /** Namespace qualifying the ontology name, such as w3c in w3c/prov-o. */
32
- namespace: string;
33
- /** First successful Hub publication time for this immutable release. Backend emits UTC date-time text with Z. Consumers accept timezone-bearing RFC 3339 text. Fixed for the lifetime of this publication. Not an upstream release date. */
34
- published_at: string;
35
- /** Display title of the ontology. */
36
- title: string;
37
- /** Complete publication version label, including amendments. */
38
- version: string;
39
- [key: string]: unknown;
40
- }
41
- /** One ordered page of publication summaries, with count, effective paging information and optional facet counts. */
42
- export interface SearchResult {
43
- /** Facet values and counts for the query and filters, independently of hit pagination. The number of returned facet values may be limited. */
44
- facet_counts?: FacetCount[];
45
- /** Publication summaries in search-result order. */
46
- hits: SearchHit[];
47
- /** Effective one-based page for this response. */
48
- page: number;
49
- /** Effective requested page size, not the number of returned hits. */
50
- per_page: number;
51
- /** Whether search stopped early. When true, hits or total may be incomplete. */
52
- search_cutoff: boolean;
53
- /** Matching indexed publications after query and filters, before pagination. May be incomplete when search_cutoff is true. An exact total can exceed the retrieval window. */
54
- total: number;
55
- [key: string]: unknown;
56
- }
57
- /** A combination of ontology language and syntax. */
58
- export type Format = "owl-turtle" | "owl-rdfxml" | "rdfs-turtle" | "linkml-yaml" | "ossie-yaml";
@@ -1,3 +0,0 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/search
2
- // DO NOT EDIT.
3
- export {};
@@ -1,19 +0,0 @@
1
- /** Query and options for retrieving one page of ontology publications. */
2
- export interface SearchRequest {
3
- /** Search every release instead of each ontology's latest version. */
4
- all_releases?: boolean;
5
- /** Typesense facet expression over facetable fields. */
6
- facet_by?: string;
7
- /** Typesense filter expression over filterable fields. */
8
- filter_by?: string;
9
- /** Maximum values returned per facet. Omitted uses the backend default. */
10
- max_facet_values?: number;
11
- /** One-based page number. Omitted means 1. */
12
- page?: number;
13
- /** Maximum hits requested for this page, from 1 through 250. Omitted means 10. */
14
- per_page?: number;
15
- /** Text query over the configured search fields. Use the wildcard * for browsing. */
16
- q: string;
17
- /** Typesense sort expression. Omitted preserves default search ordering. */
18
- sort_by?: string;
19
- }
@@ -1,3 +0,0 @@
1
- // Generated by ohi LinkML from https://ohi.neverblink.eu/contracts/search-request
2
- // DO NOT EDIT.
3
- export {};