@distilled.cloud/typesense 0.29.0 → 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 +3 -2
- 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
|
@@ -19,7 +19,7 @@ export interface UpsertAnalyticsRuleInput {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export const UpsertAnalyticsRuleInput =
|
|
22
|
-
/*@__PURE__*/
|
|
22
|
+
/*@__PURE__*/ Schema.Struct({
|
|
23
23
|
ruleName: Schema.String.pipe(T.PathParam()),
|
|
24
24
|
name: Schema.optional(Schema.String),
|
|
25
25
|
rule_tag: Schema.optional(Schema.String),
|
|
@@ -56,7 +56,7 @@ export interface UpsertAnalyticsRuleOutput {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
export const UpsertAnalyticsRuleOutput =
|
|
59
|
-
/*@__PURE__*/
|
|
59
|
+
/*@__PURE__*/ Schema.Struct({
|
|
60
60
|
name: Schema.String,
|
|
61
61
|
type: Schema.Literals([
|
|
62
62
|
"popular_queries",
|
|
@@ -88,7 +88,7 @@ export const UpsertAnalyticsRuleOutput =
|
|
|
88
88
|
*
|
|
89
89
|
* @param ruleName - The name of the analytics rule to upsert
|
|
90
90
|
*/
|
|
91
|
-
export const upsertAnalyticsRule = /*@__PURE__*/
|
|
91
|
+
export const upsertAnalyticsRule = /*@__PURE__*/ API.make(() => ({
|
|
92
92
|
inputSchema: UpsertAnalyticsRuleInput,
|
|
93
93
|
outputSchema: UpsertAnalyticsRuleOutput,
|
|
94
94
|
errors: [BadRequest] as const,
|
|
@@ -28,47 +28,45 @@ export interface UpsertCurationSetInput {
|
|
|
28
28
|
}[];
|
|
29
29
|
description?: string;
|
|
30
30
|
}
|
|
31
|
-
export const UpsertCurationSetInput = /*@__PURE__*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Schema.Struct({
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
match: Schema.optional(Schema.Literals(["exact", "contains"])),
|
|
40
|
-
filter_by: Schema.optional(Schema.String),
|
|
41
|
-
}),
|
|
42
|
-
includes: Schema.optional(
|
|
43
|
-
Schema.Array(
|
|
44
|
-
Schema.Struct({
|
|
45
|
-
id: Schema.String,
|
|
46
|
-
position: Schema.Number,
|
|
47
|
-
}),
|
|
48
|
-
),
|
|
49
|
-
),
|
|
50
|
-
excludes: Schema.optional(
|
|
51
|
-
Schema.Array(
|
|
52
|
-
Schema.Struct({
|
|
53
|
-
id: Schema.String,
|
|
54
|
-
}),
|
|
55
|
-
),
|
|
56
|
-
),
|
|
31
|
+
export const UpsertCurationSetInput = /*@__PURE__*/ Schema.Struct({
|
|
32
|
+
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
33
|
+
items: Schema.Array(
|
|
34
|
+
Schema.Struct({
|
|
35
|
+
rule: Schema.Struct({
|
|
36
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
37
|
+
query: Schema.optional(Schema.String),
|
|
38
|
+
match: Schema.optional(Schema.Literals(["exact", "contains"])),
|
|
57
39
|
filter_by: Schema.optional(Schema.String),
|
|
58
|
-
remove_matched_tokens: Schema.optional(Schema.Boolean),
|
|
59
|
-
metadata: Schema.optional(Schema.Unknown),
|
|
60
|
-
sort_by: Schema.optional(Schema.String),
|
|
61
|
-
replace_query: Schema.optional(Schema.String),
|
|
62
|
-
filter_curated_hits: Schema.optional(Schema.Boolean),
|
|
63
|
-
effective_from_ts: Schema.optional(Schema.Number),
|
|
64
|
-
effective_to_ts: Schema.optional(Schema.Number),
|
|
65
|
-
stop_processing: Schema.optional(Schema.Boolean),
|
|
66
|
-
id: Schema.optional(Schema.String),
|
|
67
40
|
}),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
41
|
+
includes: Schema.optional(
|
|
42
|
+
Schema.Array(
|
|
43
|
+
Schema.Struct({
|
|
44
|
+
id: Schema.String,
|
|
45
|
+
position: Schema.Number,
|
|
46
|
+
}),
|
|
47
|
+
),
|
|
48
|
+
),
|
|
49
|
+
excludes: Schema.optional(
|
|
50
|
+
Schema.Array(
|
|
51
|
+
Schema.Struct({
|
|
52
|
+
id: Schema.String,
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
),
|
|
56
|
+
filter_by: Schema.optional(Schema.String),
|
|
57
|
+
remove_matched_tokens: Schema.optional(Schema.Boolean),
|
|
58
|
+
metadata: Schema.optional(Schema.Unknown),
|
|
59
|
+
sort_by: Schema.optional(Schema.String),
|
|
60
|
+
replace_query: Schema.optional(Schema.String),
|
|
61
|
+
filter_curated_hits: Schema.optional(Schema.Boolean),
|
|
62
|
+
effective_from_ts: Schema.optional(Schema.Number),
|
|
63
|
+
effective_to_ts: Schema.optional(Schema.Number),
|
|
64
|
+
stop_processing: Schema.optional(Schema.Boolean),
|
|
65
|
+
id: Schema.optional(Schema.String),
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
description: Schema.optional(Schema.String),
|
|
69
|
+
}).pipe(
|
|
72
70
|
T.Http({ method: "PUT", path: "/curation_sets/{curationSetName}" }),
|
|
73
71
|
) as unknown as Schema.Codec<UpsertCurationSetInput>;
|
|
74
72
|
|
|
@@ -98,7 +96,7 @@ export interface UpsertCurationSetOutput {
|
|
|
98
96
|
name: string;
|
|
99
97
|
}
|
|
100
98
|
export const UpsertCurationSetOutput =
|
|
101
|
-
/*@__PURE__*/
|
|
99
|
+
/*@__PURE__*/ Schema.Struct({
|
|
102
100
|
items: Schema.Array(
|
|
103
101
|
Schema.Struct({
|
|
104
102
|
rule: Schema.Struct({
|
|
@@ -146,7 +144,7 @@ export const UpsertCurationSetOutput =
|
|
|
146
144
|
*
|
|
147
145
|
* @param curationSetName - The name of the curation set to create/update
|
|
148
146
|
*/
|
|
149
|
-
export const upsertCurationSet = /*@__PURE__*/
|
|
147
|
+
export const upsertCurationSet = /*@__PURE__*/ API.make(() => ({
|
|
150
148
|
inputSchema: UpsertCurationSetInput,
|
|
151
149
|
outputSchema: UpsertCurationSetOutput,
|
|
152
150
|
errors: [BadRequest] as const,
|
|
@@ -27,7 +27,7 @@ export interface UpsertCurationSetItemInput {
|
|
|
27
27
|
id?: string;
|
|
28
28
|
}
|
|
29
29
|
export const UpsertCurationSetItemInput =
|
|
30
|
-
/*@__PURE__*/
|
|
30
|
+
/*@__PURE__*/ Schema.Struct({
|
|
31
31
|
curationSetName: Schema.String.pipe(T.PathParam()),
|
|
32
32
|
itemId: Schema.String.pipe(T.PathParam()),
|
|
33
33
|
rule: Schema.Struct({
|
|
@@ -90,7 +90,7 @@ export interface UpsertCurationSetItemOutput {
|
|
|
90
90
|
id: string;
|
|
91
91
|
}
|
|
92
92
|
export const UpsertCurationSetItemOutput =
|
|
93
|
-
/*@__PURE__*/
|
|
93
|
+
/*@__PURE__*/ Schema.Struct({
|
|
94
94
|
rule: Schema.Struct({
|
|
95
95
|
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
96
96
|
query: Schema.optional(Schema.String),
|
|
@@ -133,10 +133,8 @@ export const UpsertCurationSetItemOutput =
|
|
|
133
133
|
* @param curationSetName - The name of the curation set
|
|
134
134
|
* @param itemId - The id of the curation item to upsert
|
|
135
135
|
*/
|
|
136
|
-
export const upsertCurationSetItem = /*@__PURE__*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}),
|
|
142
|
-
);
|
|
136
|
+
export const upsertCurationSetItem = /*@__PURE__*/ API.make(() => ({
|
|
137
|
+
inputSchema: UpsertCurationSetItemInput,
|
|
138
|
+
outputSchema: UpsertCurationSetItemOutput,
|
|
139
|
+
errors: [BadRequest] as const,
|
|
140
|
+
}));
|
|
@@ -155,7 +155,7 @@ export interface UpsertPresetInput {
|
|
|
155
155
|
}[];
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
export const UpsertPresetInput = /*@__PURE__*/
|
|
158
|
+
export const UpsertPresetInput = /*@__PURE__*/ Schema.Struct({
|
|
159
159
|
presetId: Schema.String.pipe(T.PathParam()),
|
|
160
160
|
value: Schema.Unknown,
|
|
161
161
|
}).pipe(
|
|
@@ -314,7 +314,7 @@ export interface UpsertPresetOutput {
|
|
|
314
314
|
};
|
|
315
315
|
name: string;
|
|
316
316
|
}
|
|
317
|
-
export const UpsertPresetOutput = /*@__PURE__*/
|
|
317
|
+
export const UpsertPresetOutput = /*@__PURE__*/ Schema.Struct({
|
|
318
318
|
value: Schema.Unknown,
|
|
319
319
|
name: Schema.String,
|
|
320
320
|
}) as unknown as Schema.Codec<UpsertPresetOutput>;
|
|
@@ -327,7 +327,7 @@ export const UpsertPresetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
327
327
|
*
|
|
328
328
|
* @param presetId - The name of the preset set to upsert.
|
|
329
329
|
*/
|
|
330
|
-
export const upsertPreset = /*@__PURE__*/
|
|
330
|
+
export const upsertPreset = /*@__PURE__*/ API.make(() => ({
|
|
331
331
|
inputSchema: UpsertPresetInput,
|
|
332
332
|
outputSchema: UpsertPresetOutput,
|
|
333
333
|
errors: [BadRequest] as const,
|
|
@@ -10,7 +10,7 @@ export interface UpsertStopwordsSetInput {
|
|
|
10
10
|
locale?: string;
|
|
11
11
|
}
|
|
12
12
|
export const UpsertStopwordsSetInput =
|
|
13
|
-
/*@__PURE__*/
|
|
13
|
+
/*@__PURE__*/ Schema.Struct({
|
|
14
14
|
setId: Schema.String.pipe(T.PathParam()),
|
|
15
15
|
stopwords: Schema.Array(Schema.String),
|
|
16
16
|
locale: Schema.optional(Schema.String),
|
|
@@ -25,7 +25,7 @@ export interface UpsertStopwordsSetOutput {
|
|
|
25
25
|
locale?: string;
|
|
26
26
|
}
|
|
27
27
|
export const UpsertStopwordsSetOutput =
|
|
28
|
-
/*@__PURE__*/
|
|
28
|
+
/*@__PURE__*/ Schema.Struct({
|
|
29
29
|
id: Schema.String,
|
|
30
30
|
stopwords: Schema.Array(Schema.String),
|
|
31
31
|
locale: Schema.optional(Schema.String),
|
|
@@ -39,7 +39,7 @@ export const UpsertStopwordsSetOutput =
|
|
|
39
39
|
*
|
|
40
40
|
* @param setId - The ID of the stopwords set to upsert.
|
|
41
41
|
*/
|
|
42
|
-
export const upsertStopwordsSet = /*@__PURE__*/
|
|
42
|
+
export const upsertStopwordsSet = /*@__PURE__*/ API.make(() => ({
|
|
43
43
|
inputSchema: UpsertStopwordsSetInput,
|
|
44
44
|
outputSchema: UpsertStopwordsSetOutput,
|
|
45
45
|
errors: [BadRequest] as const,
|
|
@@ -14,7 +14,7 @@ export interface UpsertSynonymSetInput {
|
|
|
14
14
|
symbols_to_index?: string[];
|
|
15
15
|
}[];
|
|
16
16
|
}
|
|
17
|
-
export const UpsertSynonymSetInput = /*@__PURE__*/
|
|
17
|
+
export const UpsertSynonymSetInput = /*@__PURE__*/ Schema.Struct({
|
|
18
18
|
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
19
19
|
items: Schema.Array(
|
|
20
20
|
Schema.Struct({
|
|
@@ -40,20 +40,18 @@ export interface UpsertSynonymSetOutput {
|
|
|
40
40
|
}[];
|
|
41
41
|
name: string;
|
|
42
42
|
}
|
|
43
|
-
export const UpsertSynonymSetOutput = /*@__PURE__*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Schema.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
) as unknown as Schema.Codec<UpsertSynonymSetOutput>;
|
|
43
|
+
export const UpsertSynonymSetOutput = /*@__PURE__*/ Schema.Struct({
|
|
44
|
+
items: Schema.Array(
|
|
45
|
+
Schema.Struct({
|
|
46
|
+
id: Schema.String,
|
|
47
|
+
synonyms: Schema.Array(Schema.String),
|
|
48
|
+
root: Schema.optional(Schema.String),
|
|
49
|
+
locale: Schema.optional(Schema.String),
|
|
50
|
+
symbols_to_index: Schema.optional(Schema.Array(Schema.String)),
|
|
51
|
+
}),
|
|
52
|
+
),
|
|
53
|
+
name: Schema.String,
|
|
54
|
+
}) as unknown as Schema.Codec<UpsertSynonymSetOutput>;
|
|
57
55
|
|
|
58
56
|
// The operation
|
|
59
57
|
/**
|
|
@@ -63,7 +61,7 @@ export const UpsertSynonymSetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
63
61
|
*
|
|
64
62
|
* @param synonymSetName - The name of the synonym set to create/update
|
|
65
63
|
*/
|
|
66
|
-
export const upsertSynonymSet = /*@__PURE__*/
|
|
64
|
+
export const upsertSynonymSet = /*@__PURE__*/ API.make(() => ({
|
|
67
65
|
inputSchema: UpsertSynonymSetInput,
|
|
68
66
|
outputSchema: UpsertSynonymSetOutput,
|
|
69
67
|
errors: [BadRequest] as const,
|
|
@@ -13,7 +13,7 @@ export interface UpsertSynonymSetItemInput {
|
|
|
13
13
|
symbols_to_index?: string[];
|
|
14
14
|
}
|
|
15
15
|
export const UpsertSynonymSetItemInput =
|
|
16
|
-
/*@__PURE__*/
|
|
16
|
+
/*@__PURE__*/ Schema.Struct({
|
|
17
17
|
synonymSetName: Schema.String.pipe(T.PathParam()),
|
|
18
18
|
itemId: Schema.String.pipe(T.PathParam()),
|
|
19
19
|
synonyms: Schema.Array(Schema.String),
|
|
@@ -36,7 +36,7 @@ export interface UpsertSynonymSetItemOutput {
|
|
|
36
36
|
symbols_to_index?: string[];
|
|
37
37
|
}
|
|
38
38
|
export const UpsertSynonymSetItemOutput =
|
|
39
|
-
/*@__PURE__*/
|
|
39
|
+
/*@__PURE__*/ Schema.Struct({
|
|
40
40
|
id: Schema.String,
|
|
41
41
|
synonyms: Schema.Array(Schema.String),
|
|
42
42
|
root: Schema.optional(Schema.String),
|
|
@@ -53,10 +53,8 @@ export const UpsertSynonymSetItemOutput =
|
|
|
53
53
|
* @param synonymSetName - The name of the synonym set
|
|
54
54
|
* @param itemId - The id of the synonym item to upsert
|
|
55
55
|
*/
|
|
56
|
-
export const upsertSynonymSetItem = /*@__PURE__*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
);
|
|
56
|
+
export const upsertSynonymSetItem = /*@__PURE__*/ API.make(() => ({
|
|
57
|
+
inputSchema: UpsertSynonymSetItemInput,
|
|
58
|
+
outputSchema: UpsertSynonymSetItemOutput,
|
|
59
|
+
errors: [BadRequest] as const,
|
|
60
|
+
}));
|
package/src/operations/vote.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
|
|
5
5
|
// Input Schema
|
|
6
6
|
export interface VoteInput {}
|
|
7
|
-
export const VoteInput = /*@__PURE__*/
|
|
7
|
+
export const VoteInput = /*@__PURE__*/ Schema.Struct({}).pipe(
|
|
8
8
|
T.Http({ method: "POST", path: "/operations/vote" }),
|
|
9
9
|
) as unknown as Schema.Codec<VoteInput>;
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ export const VoteInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
|
12
12
|
export interface VoteOutput {
|
|
13
13
|
success: boolean;
|
|
14
14
|
}
|
|
15
|
-
export const VoteOutput = /*@__PURE__*/
|
|
15
|
+
export const VoteOutput = /*@__PURE__*/ Schema.Struct({
|
|
16
16
|
success: Schema.Boolean,
|
|
17
17
|
}) as unknown as Schema.Codec<VoteOutput>;
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ export const VoteOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
22
22
|
*
|
|
23
23
|
* Triggers a follower node to initiate the raft voting process, which triggers leader re-election. The follower node that you run this operation against will become the new leader, once this command succeeds.
|
|
24
24
|
*/
|
|
25
|
-
export const vote = /*@__PURE__*/
|
|
25
|
+
export const vote = /*@__PURE__*/ API.make(() => ({
|
|
26
26
|
inputSchema: VoteInput,
|
|
27
27
|
outputSchema: VoteOutput,
|
|
28
28
|
}));
|