@distilled.cloud/typesense 0.28.2 → 0.29.1
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/lib/operations/clearCache.d.ts.map +1 -1
- package/lib/operations/clearCache.js +3 -3
- package/lib/operations/clearCache.js.map +1 -1
- package/lib/operations/compactDb.d.ts.map +1 -1
- package/lib/operations/compactDb.js +3 -3
- package/lib/operations/compactDb.js.map +1 -1
- package/lib/operations/createAnalyticsEvent.d.ts.map +1 -1
- package/lib/operations/createAnalyticsEvent.js +3 -3
- package/lib/operations/createAnalyticsEvent.js.map +1 -1
- package/lib/operations/createAnalyticsRule.js +3 -3
- package/lib/operations/createAnalyticsRule.js.map +1 -1
- package/lib/operations/createCollection.d.ts.map +1 -1
- package/lib/operations/createCollection.js +3 -3
- package/lib/operations/createCollection.js.map +1 -1
- package/lib/operations/createConversationModel.d.ts.map +1 -1
- package/lib/operations/createConversationModel.js +3 -3
- package/lib/operations/createConversationModel.js.map +1 -1
- package/lib/operations/createKey.js +3 -3
- package/lib/operations/createKey.js.map +1 -1
- package/lib/operations/createNLSearchModel.js +3 -3
- package/lib/operations/createNLSearchModel.js.map +1 -1
- package/lib/operations/debug.js +3 -3
- package/lib/operations/debug.js.map +1 -1
- package/lib/operations/deleteAlias.js +3 -3
- package/lib/operations/deleteAlias.js.map +1 -1
- package/lib/operations/deleteAnalyticsRule.js +3 -3
- package/lib/operations/deleteAnalyticsRule.js.map +1 -1
- package/lib/operations/deleteCollection.d.ts.map +1 -1
- package/lib/operations/deleteCollection.js +3 -3
- package/lib/operations/deleteCollection.js.map +1 -1
- package/lib/operations/deleteConversationModel.d.ts.map +1 -1
- package/lib/operations/deleteConversationModel.js +3 -3
- package/lib/operations/deleteConversationModel.js.map +1 -1
- package/lib/operations/deleteCurationSet.d.ts.map +1 -1
- package/lib/operations/deleteCurationSet.js +3 -3
- package/lib/operations/deleteCurationSet.js.map +1 -1
- package/lib/operations/deleteCurationSetItem.d.ts.map +1 -1
- package/lib/operations/deleteCurationSetItem.js +3 -3
- package/lib/operations/deleteCurationSetItem.js.map +1 -1
- package/lib/operations/deleteDocument.d.ts.map +1 -1
- package/lib/operations/deleteDocument.js +3 -3
- package/lib/operations/deleteDocument.js.map +1 -1
- package/lib/operations/deleteDocuments.js +3 -3
- package/lib/operations/deleteDocuments.js.map +1 -1
- package/lib/operations/deleteKey.js +3 -3
- package/lib/operations/deleteKey.js.map +1 -1
- package/lib/operations/deleteNLSearchModel.js +3 -3
- package/lib/operations/deleteNLSearchModel.js.map +1 -1
- package/lib/operations/deletePreset.js +3 -3
- package/lib/operations/deletePreset.js.map +1 -1
- package/lib/operations/deleteStopwordsSet.js +3 -3
- package/lib/operations/deleteStopwordsSet.js.map +1 -1
- package/lib/operations/deleteSynonymSet.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSet.js +3 -3
- package/lib/operations/deleteSynonymSet.js.map +1 -1
- package/lib/operations/deleteSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/deleteSynonymSetItem.js +3 -3
- package/lib/operations/deleteSynonymSetItem.js.map +1 -1
- package/lib/operations/exportDocuments.d.ts.map +1 -1
- package/lib/operations/exportDocuments.js +3 -3
- package/lib/operations/exportDocuments.js.map +1 -1
- package/lib/operations/flushAnalytics.d.ts.map +1 -1
- package/lib/operations/flushAnalytics.js +3 -3
- package/lib/operations/flushAnalytics.js.map +1 -1
- package/lib/operations/getAlias.js +3 -3
- package/lib/operations/getAlias.js.map +1 -1
- package/lib/operations/getAliases.d.ts.map +1 -1
- package/lib/operations/getAliases.js +3 -3
- package/lib/operations/getAliases.js.map +1 -1
- package/lib/operations/getAnalyticsEvents.js +3 -3
- package/lib/operations/getAnalyticsEvents.js.map +1 -1
- package/lib/operations/getAnalyticsStatus.js +3 -3
- package/lib/operations/getAnalyticsStatus.js.map +1 -1
- package/lib/operations/getCollection.js +3 -3
- package/lib/operations/getCollection.js.map +1 -1
- package/lib/operations/getCollections.js +3 -3
- package/lib/operations/getCollections.js.map +1 -1
- package/lib/operations/getDocument.d.ts.map +1 -1
- package/lib/operations/getDocument.js +3 -3
- package/lib/operations/getDocument.js.map +1 -1
- package/lib/operations/getKey.js +3 -3
- package/lib/operations/getKey.js.map +1 -1
- package/lib/operations/getKeys.js +3 -3
- package/lib/operations/getKeys.js.map +1 -1
- package/lib/operations/getSchemaChanges.d.ts.map +1 -1
- package/lib/operations/getSchemaChanges.js +3 -3
- package/lib/operations/getSchemaChanges.js.map +1 -1
- package/lib/operations/getStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/getStemmingDictionary.js +3 -3
- package/lib/operations/getStemmingDictionary.js.map +1 -1
- package/lib/operations/health.js +3 -3
- package/lib/operations/health.js.map +1 -1
- package/lib/operations/importDocuments.d.ts.map +1 -1
- package/lib/operations/importDocuments.js +3 -3
- package/lib/operations/importDocuments.js.map +1 -1
- package/lib/operations/importStemmingDictionary.d.ts.map +1 -1
- package/lib/operations/importStemmingDictionary.js +3 -3
- package/lib/operations/importStemmingDictionary.js.map +1 -1
- package/lib/operations/indexDocument.d.ts.map +1 -1
- package/lib/operations/indexDocument.js +3 -3
- package/lib/operations/indexDocument.js.map +1 -1
- package/lib/operations/listStemmingDictionaries.d.ts.map +1 -1
- package/lib/operations/listStemmingDictionaries.js +3 -3
- package/lib/operations/listStemmingDictionaries.js.map +1 -1
- package/lib/operations/multiSearch.js +3 -3
- package/lib/operations/multiSearch.js.map +1 -1
- package/lib/operations/retrieveAPIStats.d.ts.map +1 -1
- package/lib/operations/retrieveAPIStats.js +3 -3
- package/lib/operations/retrieveAPIStats.js.map +1 -1
- package/lib/operations/retrieveAllConversationModels.js +3 -3
- package/lib/operations/retrieveAllConversationModels.js.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.d.ts.map +1 -1
- package/lib/operations/retrieveAllNLSearchModels.js +3 -3
- package/lib/operations/retrieveAllNLSearchModels.js.map +1 -1
- package/lib/operations/retrieveAllPresets.js +3 -3
- package/lib/operations/retrieveAllPresets.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRule.js +3 -3
- package/lib/operations/retrieveAnalyticsRule.js.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.d.ts.map +1 -1
- package/lib/operations/retrieveAnalyticsRules.js +3 -3
- package/lib/operations/retrieveAnalyticsRules.js.map +1 -1
- package/lib/operations/retrieveConversationModel.d.ts.map +1 -1
- package/lib/operations/retrieveConversationModel.js +3 -3
- package/lib/operations/retrieveConversationModel.js.map +1 -1
- package/lib/operations/retrieveCurationSet.js +3 -3
- package/lib/operations/retrieveCurationSet.js.map +1 -1
- package/lib/operations/retrieveCurationSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItem.js +3 -3
- package/lib/operations/retrieveCurationSetItem.js.map +1 -1
- package/lib/operations/retrieveCurationSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSetItems.js +3 -3
- package/lib/operations/retrieveCurationSetItems.js.map +1 -1
- package/lib/operations/retrieveCurationSets.d.ts.map +1 -1
- package/lib/operations/retrieveCurationSets.js +3 -3
- package/lib/operations/retrieveCurationSets.js.map +1 -1
- package/lib/operations/retrieveMetrics.d.ts.map +1 -1
- package/lib/operations/retrieveMetrics.js +3 -3
- package/lib/operations/retrieveMetrics.js.map +1 -1
- package/lib/operations/retrieveNLSearchModel.d.ts.map +1 -1
- package/lib/operations/retrieveNLSearchModel.js +3 -3
- package/lib/operations/retrieveNLSearchModel.js.map +1 -1
- package/lib/operations/retrievePreset.js +3 -3
- package/lib/operations/retrievePreset.js.map +1 -1
- package/lib/operations/retrieveStopwordsSet.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSet.js +3 -3
- package/lib/operations/retrieveStopwordsSet.js.map +1 -1
- package/lib/operations/retrieveStopwordsSets.d.ts.map +1 -1
- package/lib/operations/retrieveStopwordsSets.js +3 -3
- package/lib/operations/retrieveStopwordsSets.js.map +1 -1
- package/lib/operations/retrieveSynonymSet.js +3 -3
- package/lib/operations/retrieveSynonymSet.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItem.js +3 -3
- package/lib/operations/retrieveSynonymSetItem.js.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.d.ts.map +1 -1
- package/lib/operations/retrieveSynonymSetItems.js +3 -3
- package/lib/operations/retrieveSynonymSetItems.js.map +1 -1
- package/lib/operations/retrieveSynonymSets.js +3 -3
- package/lib/operations/retrieveSynonymSets.js.map +1 -1
- package/lib/operations/searchCollection.d.ts.map +1 -1
- package/lib/operations/searchCollection.js +3 -3
- package/lib/operations/searchCollection.js.map +1 -1
- package/lib/operations/takeSnapshot.js +3 -3
- package/lib/operations/takeSnapshot.js.map +1 -1
- package/lib/operations/toggleSlowRequestLog.d.ts.map +1 -1
- package/lib/operations/toggleSlowRequestLog.js +3 -3
- package/lib/operations/toggleSlowRequestLog.js.map +1 -1
- package/lib/operations/updateCollection.d.ts.map +1 -1
- package/lib/operations/updateCollection.js +3 -3
- package/lib/operations/updateCollection.js.map +1 -1
- package/lib/operations/updateConversationModel.d.ts.map +1 -1
- package/lib/operations/updateConversationModel.js +3 -3
- package/lib/operations/updateConversationModel.js.map +1 -1
- package/lib/operations/updateDocument.d.ts.map +1 -1
- package/lib/operations/updateDocument.js +3 -3
- package/lib/operations/updateDocument.js.map +1 -1
- package/lib/operations/updateDocuments.js +3 -3
- package/lib/operations/updateDocuments.js.map +1 -1
- package/lib/operations/updateNLSearchModel.js +3 -3
- package/lib/operations/updateNLSearchModel.js.map +1 -1
- package/lib/operations/upsertAlias.js +3 -3
- package/lib/operations/upsertAlias.js.map +1 -1
- package/lib/operations/upsertAnalyticsRule.js +3 -3
- package/lib/operations/upsertAnalyticsRule.js.map +1 -1
- package/lib/operations/upsertCurationSet.d.ts.map +1 -1
- package/lib/operations/upsertCurationSet.js +3 -3
- package/lib/operations/upsertCurationSet.js.map +1 -1
- package/lib/operations/upsertCurationSetItem.d.ts.map +1 -1
- package/lib/operations/upsertCurationSetItem.js +3 -3
- package/lib/operations/upsertCurationSetItem.js.map +1 -1
- package/lib/operations/upsertPreset.js +3 -3
- package/lib/operations/upsertPreset.js.map +1 -1
- package/lib/operations/upsertStopwordsSet.js +3 -3
- package/lib/operations/upsertStopwordsSet.js.map +1 -1
- package/lib/operations/upsertSynonymSet.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSet.js +3 -3
- package/lib/operations/upsertSynonymSet.js.map +1 -1
- package/lib/operations/upsertSynonymSetItem.d.ts.map +1 -1
- package/lib/operations/upsertSynonymSetItem.js +3 -3
- package/lib/operations/upsertSynonymSetItem.js.map +1 -1
- package/lib/operations/vote.js +3 -3
- package/lib/operations/vote.js.map +1 -1
- package/package.json +7 -6
- package/src/operations/clearCache.ts +3 -5
- package/src/operations/compactDb.ts +3 -5
- package/src/operations/createAnalyticsEvent.ts +7 -9
- package/src/operations/createAnalyticsRule.ts +3 -3
- package/src/operations/createCollection.ts +57 -59
- package/src/operations/createConversationModel.ts +7 -9
- package/src/operations/createKey.ts +3 -3
- package/src/operations/createNLSearchModel.ts +3 -3
- package/src/operations/debug.ts +3 -3
- package/src/operations/deleteAlias.ts +3 -3
- package/src/operations/deleteAnalyticsRule.ts +3 -3
- package/src/operations/deleteCollection.ts +57 -59
- package/src/operations/deleteConversationModel.ts +7 -9
- package/src/operations/deleteCurationSet.ts +5 -7
- package/src/operations/deleteCurationSetItem.ts +7 -9
- package/src/operations/deleteDocument.ts +3 -3
- package/src/operations/deleteDocuments.ts +3 -3
- package/src/operations/deleteKey.ts +3 -3
- package/src/operations/deleteNLSearchModel.ts +3 -3
- package/src/operations/deletePreset.ts +3 -3
- package/src/operations/deleteStopwordsSet.ts +3 -3
- package/src/operations/deleteSynonymSet.ts +5 -7
- package/src/operations/deleteSynonymSetItem.ts +7 -9
- package/src/operations/exportDocuments.ts +3 -3
- package/src/operations/flushAnalytics.ts +3 -5
- package/src/operations/getAlias.ts +3 -3
- package/src/operations/getAliases.ts +3 -5
- package/src/operations/getAnalyticsEvents.ts +3 -3
- package/src/operations/getAnalyticsStatus.ts +3 -3
- package/src/operations/getCollection.ts +3 -3
- package/src/operations/getCollections.ts +3 -3
- package/src/operations/getDocument.ts +3 -3
- package/src/operations/getKey.ts +3 -3
- package/src/operations/getKeys.ts +3 -3
- package/src/operations/getSchemaChanges.ts +3 -5
- package/src/operations/getStemmingDictionary.ts +7 -9
- package/src/operations/health.ts +3 -3
- package/src/operations/importDocuments.ts +3 -3
- package/src/operations/importStemmingDictionary.ts +7 -9
- package/src/operations/indexDocument.ts +3 -3
- package/src/operations/listStemmingDictionaries.ts +6 -8
- package/src/operations/multiSearch.ts +3 -3
- package/src/operations/retrieveAPIStats.ts +17 -21
- package/src/operations/retrieveAllConversationModels.ts +3 -3
- package/src/operations/retrieveAllNLSearchModels.ts +6 -8
- package/src/operations/retrieveAllPresets.ts +3 -3
- package/src/operations/retrieveAnalyticsRule.ts +7 -9
- package/src/operations/retrieveAnalyticsRules.ts +6 -8
- package/src/operations/retrieveConversationModel.ts +7 -9
- package/src/operations/retrieveCurationSet.ts +3 -3
- package/src/operations/retrieveCurationSetItem.ts +7 -9
- package/src/operations/retrieveCurationSetItems.ts +7 -9
- package/src/operations/retrieveCurationSets.ts +6 -8
- package/src/operations/retrieveMetrics.ts +3 -5
- package/src/operations/retrieveNLSearchModel.ts +7 -9
- package/src/operations/retrievePreset.ts +3 -3
- package/src/operations/retrieveStopwordsSet.ts +7 -9
- package/src/operations/retrieveStopwordsSets.ts +6 -8
- package/src/operations/retrieveSynonymSet.ts +3 -3
- package/src/operations/retrieveSynonymSetItem.ts +7 -9
- package/src/operations/retrieveSynonymSetItems.ts +7 -9
- package/src/operations/retrieveSynonymSets.ts +3 -3
- package/src/operations/searchCollection.ts +145 -151
- package/src/operations/takeSnapshot.ts +3 -3
- package/src/operations/toggleSlowRequestLog.ts +6 -8
- package/src/operations/updateCollection.ts +46 -48
- package/src/operations/updateConversationModel.ts +7 -9
- package/src/operations/updateDocument.ts +3 -3
- package/src/operations/updateDocuments.ts +3 -3
- package/src/operations/updateNLSearchModel.ts +3 -3
- package/src/operations/upsertAlias.ts +3 -3
- package/src/operations/upsertAnalyticsRule.ts +3 -3
- package/src/operations/upsertCurationSet.ts +39 -41
- package/src/operations/upsertCurationSetItem.ts +7 -9
- package/src/operations/upsertPreset.ts +3 -3
- package/src/operations/upsertStopwordsSet.ts +3 -3
- package/src/operations/upsertSynonymSet.ts +14 -16
- package/src/operations/upsertSynonymSetItem.ts +7 -9
- package/src/operations/vote.ts +3 -3
|
@@ -10,7 +10,7 @@ export interface GetAnalyticsEventsInput {
|
|
|
10
10
|
n: number;
|
|
11
11
|
}
|
|
12
12
|
export const GetAnalyticsEventsInput =
|
|
13
|
-
/*@__PURE__*/
|
|
13
|
+
/*@__PURE__*/ Schema.Struct({
|
|
14
14
|
user_id: Schema.String,
|
|
15
15
|
name: Schema.String,
|
|
16
16
|
n: Schema.Number,
|
|
@@ -32,7 +32,7 @@ export interface GetAnalyticsEventsOutput {
|
|
|
32
32
|
}[];
|
|
33
33
|
}
|
|
34
34
|
export const GetAnalyticsEventsOutput =
|
|
35
|
-
/*@__PURE__*/
|
|
35
|
+
/*@__PURE__*/ Schema.Struct({
|
|
36
36
|
events: Schema.Array(
|
|
37
37
|
Schema.Struct({
|
|
38
38
|
name: Schema.optional(Schema.String),
|
|
@@ -56,7 +56,7 @@ export const GetAnalyticsEventsOutput =
|
|
|
56
56
|
* @param name - Analytics rule name
|
|
57
57
|
* @param n - Number of events to return (max 1000)
|
|
58
58
|
*/
|
|
59
|
-
export const getAnalyticsEvents = /*@__PURE__*/
|
|
59
|
+
export const getAnalyticsEvents = /*@__PURE__*/ API.make(() => ({
|
|
60
60
|
inputSchema: GetAnalyticsEventsInput,
|
|
61
61
|
outputSchema: GetAnalyticsEventsOutput,
|
|
62
62
|
errors: [BadRequest] as const,
|
|
@@ -5,7 +5,7 @@ import * as T from "../traits.ts";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetAnalyticsStatusInput {}
|
|
7
7
|
export const GetAnalyticsStatusInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
9
|
T.Http({ method: "GET", path: "/analytics/status" }),
|
|
10
10
|
) as unknown as Schema.Codec<GetAnalyticsStatusInput>;
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@ export interface GetAnalyticsStatusOutput {
|
|
|
20
20
|
doc_counter_events?: number;
|
|
21
21
|
}
|
|
22
22
|
export const GetAnalyticsStatusOutput =
|
|
23
|
-
/*@__PURE__*/
|
|
23
|
+
/*@__PURE__*/ Schema.Struct({
|
|
24
24
|
popular_prefix_queries: Schema.optional(Schema.Number),
|
|
25
25
|
nohits_prefix_queries: Schema.optional(Schema.Number),
|
|
26
26
|
log_prefix_queries: Schema.optional(Schema.Number),
|
|
@@ -36,7 +36,7 @@ export const GetAnalyticsStatusOutput =
|
|
|
36
36
|
*
|
|
37
37
|
* Returns sizes of internal analytics buffers and queues.
|
|
38
38
|
*/
|
|
39
|
-
export const getAnalyticsStatus = /*@__PURE__*/
|
|
39
|
+
export const getAnalyticsStatus = /*@__PURE__*/ API.make(() => ({
|
|
40
40
|
inputSchema: GetAnalyticsStatusInput,
|
|
41
41
|
outputSchema: GetAnalyticsStatusOutput,
|
|
42
42
|
}));
|
|
@@ -9,7 +9,7 @@ import * as Redacted from "effect/Redacted";
|
|
|
9
9
|
export interface GetCollectionInput {
|
|
10
10
|
collectionName: string;
|
|
11
11
|
}
|
|
12
|
-
export const GetCollectionInput = /*@__PURE__*/
|
|
12
|
+
export const GetCollectionInput = /*@__PURE__*/ Schema.Struct({
|
|
13
13
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
15
15
|
T.Http({ method: "GET", path: "/collections/{collectionName}" }),
|
|
@@ -64,7 +64,7 @@ export interface GetCollectionOutput {
|
|
|
64
64
|
num_documents: number;
|
|
65
65
|
created_at: number;
|
|
66
66
|
}
|
|
67
|
-
export const GetCollectionOutput = /*@__PURE__*/
|
|
67
|
+
export const GetCollectionOutput = /*@__PURE__*/ Schema.Struct({
|
|
68
68
|
name: Schema.String,
|
|
69
69
|
fields: Schema.Array(
|
|
70
70
|
Schema.Struct({
|
|
@@ -129,7 +129,7 @@ export const GetCollectionOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
129
129
|
*
|
|
130
130
|
* @param collectionName - The name of the collection to retrieve
|
|
131
131
|
*/
|
|
132
|
-
export const getCollection = /*@__PURE__*/
|
|
132
|
+
export const getCollection = /*@__PURE__*/ API.make(() => ({
|
|
133
133
|
inputSchema: GetCollectionInput,
|
|
134
134
|
outputSchema: GetCollectionOutput,
|
|
135
135
|
errors: [NotFound] as const,
|
|
@@ -8,7 +8,7 @@ import * as Redacted from "effect/Redacted";
|
|
|
8
8
|
export interface GetCollectionsInput {
|
|
9
9
|
getCollectionsParameters?: string;
|
|
10
10
|
}
|
|
11
|
-
export const GetCollectionsInput = /*@__PURE__*/
|
|
11
|
+
export const GetCollectionsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
getCollectionsParameters: Schema.optional(Schema.String),
|
|
13
13
|
}).pipe(
|
|
14
14
|
T.Http({ method: "GET", path: "/collections" }),
|
|
@@ -63,7 +63,7 @@ export type GetCollectionsOutput = {
|
|
|
63
63
|
num_documents: number;
|
|
64
64
|
created_at: number;
|
|
65
65
|
}[];
|
|
66
|
-
export const GetCollectionsOutput = /*@__PURE__*/
|
|
66
|
+
export const GetCollectionsOutput = /*@__PURE__*/ Schema.Array(
|
|
67
67
|
Schema.Struct({
|
|
68
68
|
name: Schema.String,
|
|
69
69
|
fields: Schema.Array(
|
|
@@ -128,7 +128,7 @@ export const GetCollectionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
128
128
|
*
|
|
129
129
|
* Returns a summary of all your collections. The collections are returned sorted by creation date, with the most recent collections appearing first.
|
|
130
130
|
*/
|
|
131
|
-
export const getCollections = /*@__PURE__*/
|
|
131
|
+
export const getCollections = /*@__PURE__*/ API.make(() => ({
|
|
132
132
|
inputSchema: GetCollectionsInput,
|
|
133
133
|
outputSchema: GetCollectionsOutput,
|
|
134
134
|
}));
|
|
@@ -8,7 +8,7 @@ export interface GetDocumentInput {
|
|
|
8
8
|
collectionName: string;
|
|
9
9
|
documentId: string;
|
|
10
10
|
}
|
|
11
|
-
export const GetDocumentInput = /*@__PURE__*/
|
|
11
|
+
export const GetDocumentInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
documentId: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
}).pipe(
|
|
@@ -21,7 +21,7 @@ export const GetDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
21
21
|
// Output Schema
|
|
22
22
|
export type GetDocumentOutput = unknown;
|
|
23
23
|
export const GetDocumentOutput =
|
|
24
|
-
/*@__PURE__*/
|
|
24
|
+
/*@__PURE__*/ Schema.Unknown as unknown as Schema.Codec<GetDocumentOutput>;
|
|
25
25
|
|
|
26
26
|
// The operation
|
|
27
27
|
/**
|
|
@@ -32,7 +32,7 @@ export const GetDocumentOutput =
|
|
|
32
32
|
* @param collectionName - The name of the collection to search for the document under
|
|
33
33
|
* @param documentId - The Document ID
|
|
34
34
|
*/
|
|
35
|
-
export const getDocument = /*@__PURE__*/
|
|
35
|
+
export const getDocument = /*@__PURE__*/ API.make(() => ({
|
|
36
36
|
inputSchema: GetDocumentInput,
|
|
37
37
|
outputSchema: GetDocumentOutput,
|
|
38
38
|
errors: [NotFound] as const,
|
package/src/operations/getKey.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { NotFound } from "../errors.ts";
|
|
|
7
7
|
export interface GetKeyInput {
|
|
8
8
|
keyId: number;
|
|
9
9
|
}
|
|
10
|
-
export const GetKeyInput = /*@__PURE__*/
|
|
10
|
+
export const GetKeyInput = /*@__PURE__*/ Schema.Struct({
|
|
11
11
|
keyId: Schema.Number.pipe(T.PathParam()),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/keys/{keyId}" }),
|
|
@@ -23,7 +23,7 @@ export interface GetKeyOutput {
|
|
|
23
23
|
id?: number;
|
|
24
24
|
value_prefix?: string;
|
|
25
25
|
}
|
|
26
|
-
export const GetKeyOutput = /*@__PURE__*/
|
|
26
|
+
export const GetKeyOutput = /*@__PURE__*/ Schema.Struct({
|
|
27
27
|
value: Schema.optional(Schema.String),
|
|
28
28
|
description: Schema.String,
|
|
29
29
|
actions: Schema.Array(Schema.String),
|
|
@@ -41,7 +41,7 @@ export const GetKeyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
41
41
|
*
|
|
42
42
|
* @param keyId - The ID of the key to retrieve
|
|
43
43
|
*/
|
|
44
|
-
export const getKey = /*@__PURE__*/
|
|
44
|
+
export const getKey = /*@__PURE__*/ API.make(() => ({
|
|
45
45
|
inputSchema: GetKeyInput,
|
|
46
46
|
outputSchema: GetKeyOutput,
|
|
47
47
|
errors: [NotFound] as const,
|
|
@@ -4,7 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetKeysInput {}
|
|
7
|
-
export const GetKeysInput = /*@__PURE__*/
|
|
7
|
+
export const GetKeysInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
8
|
T.Http({ method: "GET", path: "/keys" }),
|
|
9
9
|
) as unknown as Schema.Codec<GetKeysInput>;
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ export interface GetKeysOutput {
|
|
|
20
20
|
value_prefix?: string;
|
|
21
21
|
}[];
|
|
22
22
|
}
|
|
23
|
-
export const GetKeysOutput = /*@__PURE__*/
|
|
23
|
+
export const GetKeysOutput = /*@__PURE__*/ Schema.Struct({
|
|
24
24
|
keys: Schema.Array(
|
|
25
25
|
Schema.Struct({
|
|
26
26
|
value: Schema.optional(Schema.String),
|
|
@@ -38,7 +38,7 @@ export const GetKeysOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
38
38
|
/**
|
|
39
39
|
* Retrieve (metadata about) all keys.
|
|
40
40
|
*/
|
|
41
|
-
export const getKeys = /*@__PURE__*/
|
|
41
|
+
export const getKeys = /*@__PURE__*/ API.make(() => ({
|
|
42
42
|
inputSchema: GetKeysInput,
|
|
43
43
|
outputSchema: GetKeysOutput,
|
|
44
44
|
}));
|
|
@@ -4,9 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface GetSchemaChangesInput {}
|
|
7
|
-
export const GetSchemaChangesInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const GetSchemaChangesInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/operations/schema_changes" }),
|
|
11
9
|
) as unknown as Schema.Codec<GetSchemaChangesInput>;
|
|
12
10
|
|
|
@@ -16,7 +14,7 @@ export type GetSchemaChangesOutput = {
|
|
|
16
14
|
validated_docs?: number;
|
|
17
15
|
altered_docs?: number;
|
|
18
16
|
}[];
|
|
19
|
-
export const GetSchemaChangesOutput = /*@__PURE__*/
|
|
17
|
+
export const GetSchemaChangesOutput = /*@__PURE__*/ Schema.Array(
|
|
20
18
|
Schema.Struct({
|
|
21
19
|
collection: Schema.optional(Schema.String),
|
|
22
20
|
validated_docs: Schema.optional(Schema.Number),
|
|
@@ -30,7 +28,7 @@ export const GetSchemaChangesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
30
28
|
*
|
|
31
29
|
* Returns the status of any ongoing schema change operations. If no schema changes are in progress, returns an empty response.
|
|
32
30
|
*/
|
|
33
|
-
export const getSchemaChanges = /*@__PURE__*/
|
|
31
|
+
export const getSchemaChanges = /*@__PURE__*/ API.make(() => ({
|
|
34
32
|
inputSchema: GetSchemaChangesInput,
|
|
35
33
|
outputSchema: GetSchemaChangesOutput,
|
|
36
34
|
}));
|
|
@@ -8,7 +8,7 @@ export interface GetStemmingDictionaryInput {
|
|
|
8
8
|
dictionaryId: string;
|
|
9
9
|
}
|
|
10
10
|
export const GetStemmingDictionaryInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
dictionaryId: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
}).pipe(
|
|
14
14
|
T.Http({ method: "GET", path: "/stemming/dictionaries/{dictionaryId}" }),
|
|
@@ -20,7 +20,7 @@ export interface GetStemmingDictionaryOutput {
|
|
|
20
20
|
words: { word: string; root: string }[];
|
|
21
21
|
}
|
|
22
22
|
export const GetStemmingDictionaryOutput =
|
|
23
|
-
/*@__PURE__*/
|
|
23
|
+
/*@__PURE__*/ Schema.Struct({
|
|
24
24
|
id: Schema.String,
|
|
25
25
|
words: Schema.Array(
|
|
26
26
|
Schema.Struct({
|
|
@@ -38,10 +38,8 @@ export const GetStemmingDictionaryOutput =
|
|
|
38
38
|
*
|
|
39
39
|
* @param dictionaryId - The ID of the dictionary to retrieve
|
|
40
40
|
*/
|
|
41
|
-
export const getStemmingDictionary = /*@__PURE__*/
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}),
|
|
47
|
-
);
|
|
41
|
+
export const getStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
42
|
+
inputSchema: GetStemmingDictionaryInput,
|
|
43
|
+
outputSchema: GetStemmingDictionaryOutput,
|
|
44
|
+
errors: [NotFound] as const,
|
|
45
|
+
}));
|
package/src/operations/health.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface HealthInput {}
|
|
7
|
-
export const HealthInput = /*@__PURE__*/
|
|
7
|
+
export const HealthInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
8
|
T.Http({ method: "GET", path: "/health" }),
|
|
9
9
|
) as unknown as Schema.Codec<HealthInput>;
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ export const HealthInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
|
12
12
|
export interface HealthOutput {
|
|
13
13
|
ok: boolean;
|
|
14
14
|
}
|
|
15
|
-
export const HealthOutput = /*@__PURE__*/
|
|
15
|
+
export const HealthOutput = /*@__PURE__*/ Schema.Struct({
|
|
16
16
|
ok: Schema.Boolean,
|
|
17
17
|
}) as unknown as Schema.Codec<HealthOutput>;
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ export const HealthOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
20
20
|
/**
|
|
21
21
|
* Checks if Typesense server is ready to accept requests.
|
|
22
22
|
*/
|
|
23
|
-
export const health = /*@__PURE__*/
|
|
23
|
+
export const health = /*@__PURE__*/ API.make(() => ({
|
|
24
24
|
inputSchema: HealthInput,
|
|
25
25
|
outputSchema: HealthOutput,
|
|
26
26
|
}));
|
|
@@ -8,7 +8,7 @@ export interface ImportDocumentsInput {
|
|
|
8
8
|
collectionName: string;
|
|
9
9
|
importDocumentsParameters?: string;
|
|
10
10
|
}
|
|
11
|
-
export const ImportDocumentsInput = /*@__PURE__*/
|
|
11
|
+
export const ImportDocumentsInput = /*@__PURE__*/ Schema.Struct({
|
|
12
12
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
importDocumentsParameters: Schema.optional(Schema.String),
|
|
14
14
|
}).pipe(
|
|
@@ -21,7 +21,7 @@ export const ImportDocumentsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
21
21
|
// Output Schema
|
|
22
22
|
export type ImportDocumentsOutput = void;
|
|
23
23
|
export const ImportDocumentsOutput =
|
|
24
|
-
/*@__PURE__*/
|
|
24
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<ImportDocumentsOutput>;
|
|
25
25
|
|
|
26
26
|
// The operation
|
|
27
27
|
/**
|
|
@@ -31,7 +31,7 @@ export const ImportDocumentsOutput =
|
|
|
31
31
|
*
|
|
32
32
|
* @param collectionName - The name of the collection
|
|
33
33
|
*/
|
|
34
|
-
export const importDocuments = /*@__PURE__*/
|
|
34
|
+
export const importDocuments = /*@__PURE__*/ API.make(() => ({
|
|
35
35
|
inputSchema: ImportDocumentsInput,
|
|
36
36
|
outputSchema: ImportDocumentsOutput,
|
|
37
37
|
errors: [BadRequest, NotFound] as const,
|
|
@@ -8,7 +8,7 @@ export interface ImportStemmingDictionaryInput {
|
|
|
8
8
|
id: string;
|
|
9
9
|
}
|
|
10
10
|
export const ImportStemmingDictionaryInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
id: Schema.String,
|
|
13
13
|
}).pipe(
|
|
14
14
|
T.Http({ method: "POST", path: "/stemming/dictionaries/import" }),
|
|
@@ -17,7 +17,7 @@ export const ImportStemmingDictionaryInput =
|
|
|
17
17
|
// Output Schema
|
|
18
18
|
export type ImportStemmingDictionaryOutput = void;
|
|
19
19
|
export const ImportStemmingDictionaryOutput =
|
|
20
|
-
/*@__PURE__*/
|
|
20
|
+
/*@__PURE__*/ Schema.Void as unknown as Schema.Codec<ImportStemmingDictionaryOutput>;
|
|
21
21
|
|
|
22
22
|
// The operation
|
|
23
23
|
/**
|
|
@@ -27,10 +27,8 @@ export const ImportStemmingDictionaryOutput =
|
|
|
27
27
|
*
|
|
28
28
|
* @param id - The ID to assign to the dictionary
|
|
29
29
|
*/
|
|
30
|
-
export const importStemmingDictionary = /*@__PURE__*/
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
);
|
|
30
|
+
export const importStemmingDictionary = /*@__PURE__*/ API.make(() => ({
|
|
31
|
+
inputSchema: ImportStemmingDictionaryInput,
|
|
32
|
+
outputSchema: ImportStemmingDictionaryOutput,
|
|
33
|
+
errors: [BadRequest] as const,
|
|
34
|
+
}));
|
|
@@ -9,7 +9,7 @@ export interface IndexDocumentInput {
|
|
|
9
9
|
action?: string;
|
|
10
10
|
dirty_values?: string;
|
|
11
11
|
}
|
|
12
|
-
export const IndexDocumentInput = /*@__PURE__*/
|
|
12
|
+
export const IndexDocumentInput = /*@__PURE__*/ Schema.Struct({
|
|
13
13
|
collectionName: Schema.String.pipe(T.PathParam()),
|
|
14
14
|
action: Schema.optional(Schema.String),
|
|
15
15
|
dirty_values: Schema.optional(Schema.String),
|
|
@@ -20,7 +20,7 @@ export const IndexDocumentInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
20
20
|
// Output Schema
|
|
21
21
|
export type IndexDocumentOutput = unknown;
|
|
22
22
|
export const IndexDocumentOutput =
|
|
23
|
-
/*@__PURE__*/
|
|
23
|
+
/*@__PURE__*/ Schema.Unknown as unknown as Schema.Codec<IndexDocumentOutput>;
|
|
24
24
|
|
|
25
25
|
// The operation
|
|
26
26
|
/**
|
|
@@ -32,7 +32,7 @@ export const IndexDocumentOutput =
|
|
|
32
32
|
* @param action - Additional action to perform
|
|
33
33
|
* @param dirty_values - Dealing with Dirty Data
|
|
34
34
|
*/
|
|
35
|
-
export const indexDocument = /*@__PURE__*/
|
|
35
|
+
export const indexDocument = /*@__PURE__*/ API.make(() => ({
|
|
36
36
|
inputSchema: IndexDocumentInput,
|
|
37
37
|
outputSchema: IndexDocumentOutput,
|
|
38
38
|
errors: [NotFound] as const,
|
|
@@ -5,7 +5,7 @@ import * as T from "../traits.ts";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface ListStemmingDictionariesInput {}
|
|
7
7
|
export const ListStemmingDictionariesInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
9
|
T.Http({ method: "GET", path: "/stemming/dictionaries" }),
|
|
10
10
|
) as unknown as Schema.Codec<ListStemmingDictionariesInput>;
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ export interface ListStemmingDictionariesOutput {
|
|
|
14
14
|
dictionaries?: string[];
|
|
15
15
|
}
|
|
16
16
|
export const ListStemmingDictionariesOutput =
|
|
17
|
-
/*@__PURE__*/
|
|
17
|
+
/*@__PURE__*/ Schema.Struct({
|
|
18
18
|
dictionaries: Schema.optional(Schema.Array(Schema.String)),
|
|
19
19
|
}) as unknown as Schema.Codec<ListStemmingDictionariesOutput>;
|
|
20
20
|
|
|
@@ -24,9 +24,7 @@ export const ListStemmingDictionariesOutput =
|
|
|
24
24
|
*
|
|
25
25
|
* Retrieve a list of all available stemming dictionaries.
|
|
26
26
|
*/
|
|
27
|
-
export const listStemmingDictionaries = /*@__PURE__*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
);
|
|
27
|
+
export const listStemmingDictionaries = /*@__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: ListStemmingDictionariesInput,
|
|
29
|
+
outputSchema: ListStemmingDictionariesOutput,
|
|
30
|
+
}));
|
|
@@ -78,7 +78,7 @@ export interface MultiSearchInput {
|
|
|
78
78
|
rerank_hybrid_matches?: boolean;
|
|
79
79
|
}[];
|
|
80
80
|
}
|
|
81
|
-
export const MultiSearchInput = /*@__PURE__*/
|
|
81
|
+
export const MultiSearchInput = /*@__PURE__*/ Schema.Struct({
|
|
82
82
|
multiSearchParameters: Schema.String,
|
|
83
83
|
union: Schema.optional(Schema.Boolean),
|
|
84
84
|
searches: Schema.Array(
|
|
@@ -274,7 +274,7 @@ export interface MultiSearchOutput {
|
|
|
274
274
|
query: string;
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
export const MultiSearchOutput = /*@__PURE__*/
|
|
277
|
+
export const MultiSearchOutput = /*@__PURE__*/ Schema.Struct({
|
|
278
278
|
results: Schema.Array(
|
|
279
279
|
Schema.Struct({
|
|
280
280
|
facet_counts: Schema.optional(
|
|
@@ -469,7 +469,7 @@ export const MultiSearchOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
469
469
|
*
|
|
470
470
|
* This is especially useful to avoid round-trip network latencies incurred otherwise if each of these requests are sent in separate HTTP requests. You can also use this feature to do a federated search across multiple collections in a single HTTP request.
|
|
471
471
|
*/
|
|
472
|
-
export const multiSearch = /*@__PURE__*/
|
|
472
|
+
export const multiSearch = /*@__PURE__*/ API.make(() => ({
|
|
473
473
|
inputSchema: MultiSearchInput,
|
|
474
474
|
outputSchema: MultiSearchOutput,
|
|
475
475
|
errors: [BadRequest] as const,
|
|
@@ -4,9 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface RetrieveAPIStatsInput {}
|
|
7
|
-
export const RetrieveAPIStatsInput = /*@__PURE__*/
|
|
8
|
-
{},
|
|
9
|
-
).pipe(
|
|
7
|
+
export const RetrieveAPIStatsInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
10
8
|
T.Http({ method: "GET", path: "/stats.json" }),
|
|
11
9
|
) as unknown as Schema.Codec<RetrieveAPIStatsInput>;
|
|
12
10
|
|
|
@@ -26,23 +24,21 @@ export interface RetrieveAPIStatsOutput {
|
|
|
26
24
|
write_latency_ms?: number;
|
|
27
25
|
write_requests_per_second?: number;
|
|
28
26
|
}
|
|
29
|
-
export const RetrieveAPIStatsOutput = /*@__PURE__*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
) as unknown as Schema.Codec<RetrieveAPIStatsOutput>;
|
|
27
|
+
export const RetrieveAPIStatsOutput = /*@__PURE__*/ Schema.Struct({
|
|
28
|
+
delete_latency_ms: Schema.optional(Schema.Number),
|
|
29
|
+
delete_requests_per_second: Schema.optional(Schema.Number),
|
|
30
|
+
import_latency_ms: Schema.optional(Schema.Number),
|
|
31
|
+
import_requests_per_second: Schema.optional(Schema.Number),
|
|
32
|
+
latency_ms: Schema.optional(Schema.Unknown),
|
|
33
|
+
overloaded_requests_per_second: Schema.optional(Schema.Number),
|
|
34
|
+
pending_write_batches: Schema.optional(Schema.Number),
|
|
35
|
+
requests_per_second: Schema.optional(Schema.Unknown),
|
|
36
|
+
search_latency_ms: Schema.optional(Schema.Number),
|
|
37
|
+
search_requests_per_second: Schema.optional(Schema.Number),
|
|
38
|
+
total_requests_per_second: Schema.optional(Schema.Number),
|
|
39
|
+
write_latency_ms: Schema.optional(Schema.Number),
|
|
40
|
+
write_requests_per_second: Schema.optional(Schema.Number),
|
|
41
|
+
}) as unknown as Schema.Codec<RetrieveAPIStatsOutput>;
|
|
46
42
|
|
|
47
43
|
// The operation
|
|
48
44
|
/**
|
|
@@ -50,7 +46,7 @@ export const RetrieveAPIStatsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
50
46
|
*
|
|
51
47
|
* Retrieve the stats about API endpoints.
|
|
52
48
|
*/
|
|
53
|
-
export const retrieveAPIStats = /*@__PURE__*/
|
|
49
|
+
export const retrieveAPIStats = /*@__PURE__*/ API.make(() => ({
|
|
54
50
|
inputSchema: RetrieveAPIStatsInput,
|
|
55
51
|
outputSchema: RetrieveAPIStatsOutput,
|
|
56
52
|
}));
|
|
@@ -5,14 +5,14 @@ import * as T from "../traits.ts";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface RetrieveAllConversationModelsInput {}
|
|
7
7
|
export const RetrieveAllConversationModelsInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
9
|
T.Http({ method: "GET", path: "/conversations/models" }),
|
|
10
10
|
) as unknown as Schema.Codec<RetrieveAllConversationModelsInput>;
|
|
11
11
|
|
|
12
12
|
// Output Schema
|
|
13
13
|
export type RetrieveAllConversationModelsOutput = { id: string }[];
|
|
14
14
|
export const RetrieveAllConversationModelsOutput =
|
|
15
|
-
/*@__PURE__*/
|
|
15
|
+
/*@__PURE__*/ Schema.Array(
|
|
16
16
|
Schema.Struct({
|
|
17
17
|
id: Schema.String,
|
|
18
18
|
}),
|
|
@@ -25,7 +25,7 @@ export const RetrieveAllConversationModelsOutput =
|
|
|
25
25
|
* Retrieve all conversation models
|
|
26
26
|
*/
|
|
27
27
|
export const retrieveAllConversationModels =
|
|
28
|
-
/*@__PURE__*/
|
|
28
|
+
/*@__PURE__*/ API.make(() => ({
|
|
29
29
|
inputSchema: RetrieveAllConversationModelsInput,
|
|
30
30
|
outputSchema: RetrieveAllConversationModelsOutput,
|
|
31
31
|
}));
|
|
@@ -5,14 +5,14 @@ import * as T from "../traits.ts";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface RetrieveAllNLSearchModelsInput {}
|
|
7
7
|
export const RetrieveAllNLSearchModelsInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
9
|
T.Http({ method: "GET", path: "/nl_search_models" }),
|
|
10
10
|
) as unknown as Schema.Codec<RetrieveAllNLSearchModelsInput>;
|
|
11
11
|
|
|
12
12
|
// Output Schema
|
|
13
13
|
export type RetrieveAllNLSearchModelsOutput = { id: string }[];
|
|
14
14
|
export const RetrieveAllNLSearchModelsOutput =
|
|
15
|
-
/*@__PURE__*/
|
|
15
|
+
/*@__PURE__*/ Schema.Array(
|
|
16
16
|
Schema.Struct({
|
|
17
17
|
id: Schema.String,
|
|
18
18
|
}),
|
|
@@ -24,9 +24,7 @@ export const RetrieveAllNLSearchModelsOutput =
|
|
|
24
24
|
*
|
|
25
25
|
* Retrieve all NL search models.
|
|
26
26
|
*/
|
|
27
|
-
export const retrieveAllNLSearchModels = /*@__PURE__*/
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}),
|
|
32
|
-
);
|
|
27
|
+
export const retrieveAllNLSearchModels = /*@__PURE__*/ API.make(() => ({
|
|
28
|
+
inputSchema: RetrieveAllNLSearchModelsInput,
|
|
29
|
+
outputSchema: RetrieveAllNLSearchModelsOutput,
|
|
30
|
+
}));
|
|
@@ -5,7 +5,7 @@ import * as T from "../traits.ts";
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface RetrieveAllPresetsInput {}
|
|
7
7
|
export const RetrieveAllPresetsInput =
|
|
8
|
-
/*@__PURE__*/
|
|
8
|
+
/*@__PURE__*/ Schema.Struct({}).pipe(
|
|
9
9
|
T.Http({ method: "GET", path: "/presets" }),
|
|
10
10
|
) as unknown as Schema.Codec<RetrieveAllPresetsInput>;
|
|
11
11
|
|
|
@@ -167,7 +167,7 @@ export interface RetrieveAllPresetsOutput {
|
|
|
167
167
|
}[];
|
|
168
168
|
}
|
|
169
169
|
export const RetrieveAllPresetsOutput =
|
|
170
|
-
/*@__PURE__*/
|
|
170
|
+
/*@__PURE__*/ Schema.Struct({
|
|
171
171
|
presets: Schema.Array(
|
|
172
172
|
Schema.Struct({
|
|
173
173
|
value: Schema.Unknown,
|
|
@@ -182,7 +182,7 @@ export const RetrieveAllPresetsOutput =
|
|
|
182
182
|
*
|
|
183
183
|
* Retrieve the details of all presets
|
|
184
184
|
*/
|
|
185
|
-
export const retrieveAllPresets = /*@__PURE__*/
|
|
185
|
+
export const retrieveAllPresets = /*@__PURE__*/ API.make(() => ({
|
|
186
186
|
inputSchema: RetrieveAllPresetsInput,
|
|
187
187
|
outputSchema: RetrieveAllPresetsOutput,
|
|
188
188
|
}));
|
|
@@ -8,7 +8,7 @@ export interface RetrieveAnalyticsRuleInput {
|
|
|
8
8
|
ruleName: string;
|
|
9
9
|
}
|
|
10
10
|
export const RetrieveAnalyticsRuleInput =
|
|
11
|
-
/*@__PURE__*/
|
|
11
|
+
/*@__PURE__*/ Schema.Struct({
|
|
12
12
|
ruleName: Schema.String.pipe(T.PathParam()),
|
|
13
13
|
}).pipe(
|
|
14
14
|
T.Http({ method: "GET", path: "/analytics/rules/{ruleName}" }),
|
|
@@ -32,7 +32,7 @@ export interface RetrieveAnalyticsRuleOutput {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export const RetrieveAnalyticsRuleOutput =
|
|
35
|
-
/*@__PURE__*/
|
|
35
|
+
/*@__PURE__*/ Schema.Struct({
|
|
36
36
|
name: Schema.String,
|
|
37
37
|
type: Schema.Literals([
|
|
38
38
|
"popular_queries",
|
|
@@ -64,10 +64,8 @@ export const RetrieveAnalyticsRuleOutput =
|
|
|
64
64
|
*
|
|
65
65
|
* @param ruleName - The name of the analytics rule to retrieve
|
|
66
66
|
*/
|
|
67
|
-
export const retrieveAnalyticsRule = /*@__PURE__*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
);
|
|
67
|
+
export const retrieveAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
68
|
+
inputSchema: RetrieveAnalyticsRuleInput,
|
|
69
|
+
outputSchema: RetrieveAnalyticsRuleOutput,
|
|
70
|
+
errors: [NotFound] as const,
|
|
71
|
+
}));
|
|
@@ -7,7 +7,7 @@ export interface RetrieveAnalyticsRulesInput {
|
|
|
7
7
|
rule_tag?: string;
|
|
8
8
|
}
|
|
9
9
|
export const RetrieveAnalyticsRulesInput =
|
|
10
|
-
/*@__PURE__*/
|
|
10
|
+
/*@__PURE__*/ Schema.Struct({
|
|
11
11
|
rule_tag: Schema.optional(Schema.String),
|
|
12
12
|
}).pipe(
|
|
13
13
|
T.Http({ method: "GET", path: "/analytics/rules" }),
|
|
@@ -31,7 +31,7 @@ export type RetrieveAnalyticsRulesOutput = {
|
|
|
31
31
|
};
|
|
32
32
|
}[];
|
|
33
33
|
export const RetrieveAnalyticsRulesOutput =
|
|
34
|
-
/*@__PURE__*/
|
|
34
|
+
/*@__PURE__*/ Schema.Array(
|
|
35
35
|
Schema.Struct({
|
|
36
36
|
name: Schema.String,
|
|
37
37
|
type: Schema.Literals([
|
|
@@ -65,9 +65,7 @@ export const RetrieveAnalyticsRulesOutput =
|
|
|
65
65
|
*
|
|
66
66
|
* @param rule_tag - Filter rules by rule_tag
|
|
67
67
|
*/
|
|
68
|
-
export const retrieveAnalyticsRules = /*@__PURE__*/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
);
|
|
68
|
+
export const retrieveAnalyticsRules = /*@__PURE__*/ API.make(() => ({
|
|
69
|
+
inputSchema: RetrieveAnalyticsRulesInput,
|
|
70
|
+
outputSchema: RetrieveAnalyticsRulesOutput,
|
|
71
|
+
}));
|