Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 1 addition & 7 deletions openapi/primitive-api.codegen.json
Original file line number Diff line number Diff line change
Expand Up @@ -3896,13 +3896,7 @@
"post": {
"operationId": "semanticSearch",
"summary": "Semantic search across received and sent mail",
"description": "Ranked search across both received and sent mail. The `mode`\nfield selects the ranking strategy:\n\n- `keyword`: lexical full-text matching only (no embeddings).\n- `semantic`: meaning-based matching using vector embeddings.\n- `hybrid` (default): blends the semantic and keyword signals.\n\nResults are ordered by a relevance `score`. Every row reports the\nfields it matched (`matched_fields`), a match-centered excerpt per\nfield (`snippets`), and a `score_breakdown` whose components account\nfor the `score`. Page through results by passing the prior\nresponse's `meta.cursor` back as `cursor`.\n\nRequires the Pro plan and the `semantic_search_enabled`\nentitlement; callers without them receive `403`.\n\nHost routing: this operation is served only by the search host\n(`https://api.primitive.dev/v1`). The typed SDKs route it there\nautomatically.\n",
"servers": [
{
"url": "https://api.primitive.dev/v1",
"description": "Search host"
}
],
"description": "Ranked search across both received and sent mail. The `mode`\nfield selects the ranking strategy:\n\n- `keyword`: lexical full-text matching only (no embeddings).\n- `semantic`: meaning-based matching using vector embeddings.\n- `hybrid` (default): blends the semantic and keyword signals.\n\nResults are ordered by a relevance `score`. Every row reports the\nfields it matched (`matched_fields`), a match-centered excerpt per\nfield (`snippets`), and a `score_breakdown` whose components account\nfor the `score`. Page through results by passing the prior\nresponse's `meta.cursor` back as `cursor`.\n\nRequires the Pro plan and the `semantic_search_enabled`\nentitlement; callers without them receive `403`.\n",
"tags": [
"Search"
],
Expand Down
7 changes: 0 additions & 7 deletions openapi/primitive-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2886,13 +2886,6 @@ paths:

Comment thread
etbyrd marked this conversation as resolved.
Requires the Pro plan and the `semantic_search_enabled`
entitlement; callers without them receive `403`.

Host routing: this operation is served only by the search host
(`https://api.primitive.dev/v1`). The typed SDKs route it there
automatically.
servers:
- url: https://api.primitive.dev/v1
description: Search host
tags: [Search]
requestBody:
required: true
Expand Down
4 changes: 0 additions & 4 deletions packages/api-core/src/api/sdk.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,10 +1164,6 @@ export const sendEmail = <ThrowOnError extends boolean = false>(options: Options
* Requires the Pro plan and the `semantic_search_enabled`
* entitlement; callers without them receive `403`.
*
* Host routing: this operation is served only by the search host
* (`https://api.primitive.dev/v1`). The typed SDKs route it there
* automatically.
*
*/
export const semanticSearch = <ThrowOnError extends boolean = false>(options: Options<SemanticSearchData, ThrowOnError>) => (options.client ?? client).post<SemanticSearchResponses, SemanticSearchErrors, ThrowOnError>({
security: [{ scheme: 'bearer', type: 'http' }],
Expand Down
2 changes: 1 addition & 1 deletion packages/api-core/src/api/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This file is auto-generated by @hey-api/openapi-ts

export type ClientOptions = {
baseUrl: 'https://api.primitive.dev/v1' | 'https://www.primitive.dev/api/v1' | 'https://api.primitive.dev/v1' | 'https://www.primitive.dev/api/v1' | 'https://api.primitive.dev/v1' | 'https://www.primitive.dev/api/v1' | 'https://api.primitive.dev/v1' | (string & {});
baseUrl: 'https://api.primitive.dev/v1' | 'https://www.primitive.dev/api/v1' | 'https://api.primitive.dev/v1' | 'https://www.primitive.dev/api/v1' | 'https://api.primitive.dev/v1' | 'https://www.primitive.dev/api/v1' | (string & {});
};

/**
Expand Down
8 changes: 1 addition & 7 deletions packages/api-core/src/openapi/openapi.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3903,13 +3903,7 @@ export const openapiDocument: Record<string, unknown> = {
"post": {
"operationId": "semanticSearch",
"summary": "Semantic search across received and sent mail",
"description": "Ranked search across both received and sent mail. The `mode`\nfield selects the ranking strategy:\n\n- `keyword`: lexical full-text matching only (no embeddings).\n- `semantic`: meaning-based matching using vector embeddings.\n- `hybrid` (default): blends the semantic and keyword signals.\n\nResults are ordered by a relevance `score`. Every row reports the\nfields it matched (`matched_fields`), a match-centered excerpt per\nfield (`snippets`), and a `score_breakdown` whose components account\nfor the `score`. Page through results by passing the prior\nresponse's `meta.cursor` back as `cursor`.\n\nRequires the Pro plan and the `semantic_search_enabled`\nentitlement; callers without them receive `403`.\n\nHost routing: this operation is served only by the search host\n(`https://api.primitive.dev/v1`). The typed SDKs route it there\nautomatically.\n",
"servers": [
{
"url": "https://api.primitive.dev/v1",
"description": "Search host"
}
],
"description": "Ranked search across both received and sent mail. The `mode`\nfield selects the ranking strategy:\n\n- `keyword`: lexical full-text matching only (no embeddings).\n- `semantic`: meaning-based matching using vector embeddings.\n- `hybrid` (default): blends the semantic and keyword signals.\n\nResults are ordered by a relevance `score`. Every row reports the\nfields it matched (`matched_fields`), a match-centered excerpt per\nfield (`snippets`), and a `score_breakdown` whose components account\nfor the `score`. Page through results by passing the prior\nresponse's `meta.cursor` back as `cursor`.\n\nRequires the Pro plan and the `semantic_search_enabled`\nentitlement; callers without them receive `403`.\n",
"tags": [
"Search"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/api-core/src/openapi/operations.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10281,7 +10281,7 @@ export const operationManifest: PrimitiveOperationManifest[] = [
"binaryResponse": false,
"bodyRequired": true,
"command": "semantic-search",
"description": "Ranked search across both received and sent mail. The `mode`\nfield selects the ranking strategy:\n\n- `keyword`: lexical full-text matching only (no embeddings).\n- `semantic`: meaning-based matching using vector embeddings.\n- `hybrid` (default): blends the semantic and keyword signals.\n\nResults are ordered by a relevance `score`. Every row reports the\nfields it matched (`matched_fields`), a match-centered excerpt per\nfield (`snippets`), and a `score_breakdown` whose components account\nfor the `score`. Page through results by passing the prior\nresponse's `meta.cursor` back as `cursor`.\n\nRequires the Pro plan and the `semantic_search_enabled`\nentitlement; callers without them receive `403`.\n\nHost routing: this operation is served only by the search host\n(`https://api.primitive.dev/v1`). The typed SDKs route it there\nautomatically.\n",
"description": "Ranked search across both received and sent mail. The `mode`\nfield selects the ranking strategy:\n\n- `keyword`: lexical full-text matching only (no embeddings).\n- `semantic`: meaning-based matching using vector embeddings.\n- `hybrid` (default): blends the semantic and keyword signals.\n\nResults are ordered by a relevance `score`. Every row reports the\nfields it matched (`matched_fields`), a match-centered excerpt per\nfield (`snippets`), and a `score_breakdown` whose components account\nfor the `score`. Page through results by passing the prior\nresponse's `meta.cursor` back as `cursor`.\n\nRequires the Pro plan and the `semantic_search_enabled`\nentitlement; callers without them receive `403`.\n",
"hasJsonBody": true,
"method": "POST",
"operationId": "semanticSearch",
Expand Down
6 changes: 0 additions & 6 deletions sdk-go/api/oas_client_gen.go

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

3 changes: 0 additions & 3 deletions sdk-go/api/oas_handlers_gen.go

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

3 changes: 0 additions & 3 deletions sdk-go/api/oas_server_gen.go

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

3 changes: 0 additions & 3 deletions sdk-go/api/oas_unimplemented_gen.go

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

16 changes: 0 additions & 16 deletions sdk-python/src/primitive/api/api/search/semantic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ def sync_detailed(
Requires the Pro plan and the `semantic_search_enabled`
entitlement; callers without them receive `403`.

Host routing: this operation is served only by the search host
(`https://api.primitive.dev/v1`). The typed SDKs route it there
automatically.

Args:
body (SemanticSearchInput):

Expand Down Expand Up @@ -182,10 +178,6 @@ def sync(
Requires the Pro plan and the `semantic_search_enabled`
entitlement; callers without them receive `403`.

Host routing: this operation is served only by the search host
(`https://api.primitive.dev/v1`). The typed SDKs route it there
automatically.

Args:
body (SemanticSearchInput):

Expand Down Expand Up @@ -228,10 +220,6 @@ async def asyncio_detailed(
Requires the Pro plan and the `semantic_search_enabled`
entitlement; callers without them receive `403`.

Host routing: this operation is served only by the search host
(`https://api.primitive.dev/v1`). The typed SDKs route it there
automatically.

Args:
body (SemanticSearchInput):

Expand Down Expand Up @@ -279,10 +267,6 @@ async def asyncio(
Requires the Pro plan and the `semantic_search_enabled`
entitlement; callers without them receive `403`.

Host routing: this operation is served only by the search host
(`https://api.primitive.dev/v1`). The typed SDKs route it there
automatically.

Args:
body (SemanticSearchInput):

Expand Down