Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
20343af
docs(client): add jsdoc for client resources
tharropoulos May 19, 2026
f72ca0b
docs(debug): add jsdoc for debug class methods
tharropoulos May 19, 2026
1e490f2
docs(metrics): add jsdoc for metrics class methods
tharropoulos May 19, 2026
f62c023
docs(stats): add jsdoc for stats class methods
tharropoulos May 19, 2026
b9423e9
docs(health): add jsdoc for health class methods
tharropoulos May 19, 2026
3af5e26
docs(operations): add jsdoc for operations class methods
tharropoulos May 19, 2026
ce596b3
docs(multi-search): add jsdoc for multi-search class methods
tharropoulos May 19, 2026
322178f
docs(analytics): add jsdoc for analytics class methods
tharropoulos May 19, 2026
05562a7
docs(analytics-rules): add jsdoc for analytics rules and events class…
tharropoulos May 19, 2026
9ce8a29
docs(analytics-v1): add jsdoc for legacy v1 analytics class methods
tharropoulos May 19, 2026
e6f30a4
docs(stemming): add jsdoc for stemming class methods
tharropoulos May 19, 2026
3ed9b78
docs(collections): add jsdoc for collection class methods
tharropoulos May 19, 2026
0833605
docs(documents): add jsdoc for document class methods
tharropoulos May 19, 2026
486e036
docs(aliases): add jsdoc for alias class methods
tharropoulos May 19, 2026
3222216
docs(keys): add jsdoc for api key class methods
tharropoulos May 19, 2026
00ae1da
docs(presets): add jsdoc for preset class methods
tharropoulos May 19, 2026
88b60a0
docs(stopwords): add jsdoc for stopword class methods
tharropoulos May 19, 2026
3f64bbd
docs(conversations): add jsdoc for conversation class methods
tharropoulos May 19, 2026
2967ea4
docs(nl-search-models): add jsdoc for nl search model class methods
tharropoulos May 19, 2026
0005585
docs(synonym-sets): add jsdoc for synonym set class methods
tharropoulos May 19, 2026
4b98ccc
docs(curation-sets): add jsdoc for curation set class methods
tharropoulos May 19, 2026
dce0168
docs(overrides-synonyms): add jsdoc for legacy collection-scoped over…
tharropoulos May 19, 2026
457565b
docs(search-client): add jsdoc for search-only client methods
tharropoulos May 19, 2026
7a00a0e
chore: build
tharropoulos May 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,796 changes: 2,719 additions & 1,077 deletions dist/typesense.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions lib/Typesense/Alias.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ export default class Alias {
private name;
private apiCall;
constructor(name: string, apiCall: ApiCall);
/**
* Find out which collection an alias points to by fetching it
*
* @example
* await client.aliases("my-alias").retrieve()
*
* @see https://typesense.org/docs/latest/api/collection-alias.html#retrieve-an-alias
*/
retrieve(): Promise<CollectionAliasSchema>;
/**
* Delete an alias
*
* @example
* await client.aliases("my-alias").delete()
*
* @see https://typesense.org/docs/latest/api/collection-alias.html#delete-an-alias
*/
delete(): Promise<CollectionAliasSchema>;
private endpointPath;
}
16 changes: 16 additions & 0 deletions lib/Typesense/Alias.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Typesense/Alias.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/Typesense/Aliases.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,23 @@ export interface CollectionAliasesResponseSchema {
export default class Aliases {
private apiCall;
constructor(apiCall: ApiCall);
/**
* Create or update a collection alias.
*
* @example
* await client.aliases().upsert("my-alias", { collection_name: "products" })
*
* @see https://typesense.org/docs/latest/api/collection-alias.html#create-or-update-an-alias
*/
upsert(name: string, mapping: CollectionAliasCreateSchema): Promise<CollectionAliasSchema>;
/**
* List all aliases and the corresponding collections that they map to.
*
* @example
* await client.aliases().retrieve()
*
* @see https://typesense.org/docs/latest/api/collection-alias.html#list-all-aliases
*/
retrieve(): Promise<CollectionAliasesResponseSchema>;
private endpointPath;
static get RESOURCEPATH(): string;
Expand Down
16 changes: 16 additions & 0 deletions lib/Typesense/Aliases.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Typesense/Aliases.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions lib/Typesense/Analytics.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,34 @@ export default class Analytics {
private readonly individualAnalyticsRules;
private readonly _analyticsEvents;
constructor(apiCall: ApiCall);
/**
* Access the analytics rules resource. Call without arguments to list or create rules, or pass an ID to access a single rule.
*
* @example
* await client.analytics.rules().retrieve()
* @example
* await client.analytics.rules("rule-1").retrieve()
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
rules(): AnalyticsRules;
/**
* Access an individual analytics rule by ID.
*
* @example
* await client.analytics.rules("rule-1").retrieve()
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
rules(id: string): AnalyticsRule;
/**
* Access the analytics events resource to send analytics events.
*
* @example
* await client.analytics.events().create({ type: "click", name: "products_click", data: {} })
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
events(): AnalyticsEvents;
static get RESOURCEPATH(): string;
}
8 changes: 8 additions & 0 deletions lib/Typesense/Analytics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Typesense/Analytics.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/Typesense/AnalyticsEvents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,23 @@ export interface AnalyticsEventsRetrieveSchema {
export default class AnalyticsEvents {
private readonly apiCall;
constructor(apiCall: ApiCall);
/**
* Submit a single analytics event. The event must correspond to an existing analytics rule by name.
*
* @example
* await client.analytics.events().create({ type: "click", name: "products_click", data: {} })
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
create(params: AnalyticsEventCreateSchema): Promise<AnalyticsEventCreateSchema>;
/**
* Retrieve the most recent events for a user and rule.
*
* @example
* await client.analytics.events().retrieve({ user_id: "u1", name: "products_click", n: 10 })
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
retrieve(params: {
user_id: string;
name: string;
Expand Down
16 changes: 16 additions & 0 deletions lib/Typesense/AnalyticsEvents.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Typesense/AnalyticsEvents.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/Typesense/AnalyticsRule.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,23 @@ export default class AnalyticsRule {
private name;
private apiCall;
constructor(name: string, apiCall: ApiCall);
/**
* Retrieve the details of an analytics rule, given it's name
*
* @example
* await client.analytics.rules("rule-1").retrieve()
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
retrieve(): Promise<AnalyticsRuleSchema>;
/**
* Permanently deletes an analytics rule, given it's name
*
* @example
* await client.analytics.rules("rule-1").delete()
*
* @see https://typesense.org/docs/latest/api/analytics-query-suggestions.html
*/
delete(): Promise<AnalyticsRuleDeleteSchema>;
private endpointPath;
}
16 changes: 16 additions & 0 deletions lib/Typesense/AnalyticsRule.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Typesense/AnalyticsRule.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/Typesense/AnalyticsRuleV1.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,23 @@ export default class AnalyticsRuleV1 {
private name;
private apiCall;
constructor(name: string, apiCall: ApiCall);
/**
* Retrieve a legacy v1 analytics rule by name.
*
* @example
* await client.analyticsV1.rules("rule-1").retrieve()
*
* @see https://typesense.org/docs/29.0/api/analytics-query-suggestions.html
*/
retrieve(): Promise<AnalyticsRuleSchemaV1>;
/**
* Delete a legacy v1 analytics rule by name.
*
* @example
* await client.analyticsV1.rules("rule-1").delete()
*
* @see https://typesense.org/docs/29.0/api/analytics-query-suggestions.html
*/
delete(): Promise<AnalyticsRuleDeleteSchemaV1>;
private endpointPath;
}
16 changes: 16 additions & 0 deletions lib/Typesense/AnalyticsRuleV1.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading