@primitivedotdev/sdk 0.34.0 → 0.35.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/README.md +8 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/{api-Ox103I5d.js → api-COmUIWhS.js} +97 -39
- package/dist/{index-Bl9EHMFR.d.ts → index-Imm1lbB_.d.ts} +267 -35
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-Cz2SoaH4.js → operations.generated-CgJWP2sH.js} +535 -10
- package/package.json +1 -1
|
@@ -1858,6 +1858,161 @@ type SentEmailSummary = {
|
|
|
1858
1858
|
*/
|
|
1859
1859
|
request_id?: string | null;
|
|
1860
1860
|
};
|
|
1861
|
+
/**
|
|
1862
|
+
* A searchable email field.
|
|
1863
|
+
*/
|
|
1864
|
+
type SemanticSearchField = 'subject' | 'headers' | 'addresses' | 'body';
|
|
1865
|
+
type SemanticSearchInput = {
|
|
1866
|
+
/**
|
|
1867
|
+
* Free-text query. Required for `semantic` and `hybrid` modes;
|
|
1868
|
+
* optional for `keyword` mode.
|
|
1869
|
+
*
|
|
1870
|
+
*/
|
|
1871
|
+
query?: string;
|
|
1872
|
+
/**
|
|
1873
|
+
* Ranking strategy. `keyword` is lexical only, `semantic` is
|
|
1874
|
+
* embedding-based, `hybrid` blends both.
|
|
1875
|
+
*
|
|
1876
|
+
*/
|
|
1877
|
+
mode?: 'hybrid' | 'semantic' | 'keyword';
|
|
1878
|
+
/**
|
|
1879
|
+
* Which mail to search. Defaults to both received (`inbound`)
|
|
1880
|
+
* and sent (`outbound`).
|
|
1881
|
+
*
|
|
1882
|
+
*/
|
|
1883
|
+
corpus?: Array<'inbound' | 'outbound'>;
|
|
1884
|
+
/**
|
|
1885
|
+
* Restrict matching to these fields. Defaults to all.
|
|
1886
|
+
*/
|
|
1887
|
+
search_in?: Array<SemanticSearchField>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Exclude these fields from matching.
|
|
1890
|
+
*/
|
|
1891
|
+
exclude?: Array<SemanticSearchField>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Only include mail at or after this timestamp.
|
|
1894
|
+
*/
|
|
1895
|
+
date_from?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* Only include mail at or before this timestamp.
|
|
1898
|
+
*/
|
|
1899
|
+
date_to?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* Opt-in extras. `coverage` adds an index-coverage snapshot to
|
|
1902
|
+
* `meta`. Matched fields, snippets, and the score breakdown are
|
|
1903
|
+
* always returned regardless of this field.
|
|
1904
|
+
*
|
|
1905
|
+
*/
|
|
1906
|
+
include?: Array<'coverage'>;
|
|
1907
|
+
/**
|
|
1908
|
+
* Maximum number of results to return.
|
|
1909
|
+
*/
|
|
1910
|
+
limit?: number;
|
|
1911
|
+
/**
|
|
1912
|
+
* Opaque pagination cursor from a prior response's `meta.cursor`.
|
|
1913
|
+
*/
|
|
1914
|
+
cursor?: string;
|
|
1915
|
+
};
|
|
1916
|
+
type SemanticSearchSnippet = {
|
|
1917
|
+
/**
|
|
1918
|
+
* The field this excerpt came from.
|
|
1919
|
+
*/
|
|
1920
|
+
field: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* Plain-text excerpt centered on the match (no markup).
|
|
1923
|
+
*/
|
|
1924
|
+
text: string;
|
|
1925
|
+
};
|
|
1926
|
+
/**
|
|
1927
|
+
* Additive contributions to `score`. `semantic` and `keyword` are the
|
|
1928
|
+
* raw signals times the mode's weight (null when not applicable);
|
|
1929
|
+
* these plus `field_boost` and `recency` sum to `score` before each
|
|
1930
|
+
* value is independently rounded to 5 decimal places.
|
|
1931
|
+
*
|
|
1932
|
+
*/
|
|
1933
|
+
type SemanticSearchScoreBreakdown = {
|
|
1934
|
+
semantic: number | null;
|
|
1935
|
+
keyword: number | null;
|
|
1936
|
+
field_boost: number;
|
|
1937
|
+
recency: number;
|
|
1938
|
+
};
|
|
1939
|
+
type SemanticSearchResult = {
|
|
1940
|
+
/**
|
|
1941
|
+
* Whether this row is a received or sent message.
|
|
1942
|
+
*/
|
|
1943
|
+
source_type: 'inbound_email' | 'sent_email';
|
|
1944
|
+
/**
|
|
1945
|
+
* Message id. Combine with `api_url` to fetch the full record.
|
|
1946
|
+
*/
|
|
1947
|
+
id: string;
|
|
1948
|
+
subject: string | null;
|
|
1949
|
+
from: string | null;
|
|
1950
|
+
to: string | null;
|
|
1951
|
+
/**
|
|
1952
|
+
* Message timestamp (received_at for inbound, created_at for sent).
|
|
1953
|
+
*/
|
|
1954
|
+
timestamp: string;
|
|
1955
|
+
/**
|
|
1956
|
+
* Lifecycle status of the message.
|
|
1957
|
+
*/
|
|
1958
|
+
status: string;
|
|
1959
|
+
/**
|
|
1960
|
+
* Overall relevance score; the `score_breakdown` components account for it.
|
|
1961
|
+
*/
|
|
1962
|
+
score: number;
|
|
1963
|
+
/**
|
|
1964
|
+
* Raw semantic similarity signal, or null when not applicable.
|
|
1965
|
+
*/
|
|
1966
|
+
semantic_score: number | null;
|
|
1967
|
+
/**
|
|
1968
|
+
* Raw keyword (lexical) signal, or null when not applicable.
|
|
1969
|
+
*/
|
|
1970
|
+
keyword_score: number | null;
|
|
1971
|
+
/**
|
|
1972
|
+
* Fields where the query matched.
|
|
1973
|
+
*/
|
|
1974
|
+
matched_fields: Array<SemanticSearchField>;
|
|
1975
|
+
/**
|
|
1976
|
+
* Match-centered excerpts, one per matched field.
|
|
1977
|
+
*/
|
|
1978
|
+
snippets: Array<SemanticSearchSnippet>;
|
|
1979
|
+
score_breakdown: SemanticSearchScoreBreakdown;
|
|
1980
|
+
/**
|
|
1981
|
+
* Relative API path to fetch the full message.
|
|
1982
|
+
*/
|
|
1983
|
+
api_url: string | null;
|
|
1984
|
+
};
|
|
1985
|
+
/**
|
|
1986
|
+
* Index-coverage snapshot for the org, returned only when the `coverage` include option is requested.
|
|
1987
|
+
*/
|
|
1988
|
+
type SemanticSearchCoverage = {
|
|
1989
|
+
embedded_chunks: number;
|
|
1990
|
+
pending_chunks: number;
|
|
1991
|
+
skipped_plan_chunks: number;
|
|
1992
|
+
skipped_quota_chunks: number;
|
|
1993
|
+
unsupported_attachment_chunks: number;
|
|
1994
|
+
failed_chunks: number;
|
|
1995
|
+
};
|
|
1996
|
+
type SemanticSearchMeta = {
|
|
1997
|
+
/**
|
|
1998
|
+
* Page size used for this request.
|
|
1999
|
+
*/
|
|
2000
|
+
limit: number;
|
|
2001
|
+
/**
|
|
2002
|
+
* Cursor for the next page, or null if there are no more results.
|
|
2003
|
+
*/
|
|
2004
|
+
cursor: string | null;
|
|
2005
|
+
/**
|
|
2006
|
+
* Ranking mode used for this response.
|
|
2007
|
+
*/
|
|
2008
|
+
mode: 'hybrid' | 'semantic' | 'keyword';
|
|
2009
|
+
/**
|
|
2010
|
+
* Index-coverage snapshot, present only when requested via
|
|
2011
|
+
* `include: [coverage]`; otherwise null.
|
|
2012
|
+
*
|
|
2013
|
+
*/
|
|
2014
|
+
coverage: SemanticSearchCoverage | unknown;
|
|
2015
|
+
};
|
|
1861
2016
|
/**
|
|
1862
2017
|
* Full sent-email record, including `body_text` and
|
|
1863
2018
|
* `body_html`. Returned by /sent-emails/{id}.
|
|
@@ -1917,6 +2072,10 @@ type ReplyInput$1 = {
|
|
|
1917
2072
|
* When true, wait for the first downstream SMTP delivery outcome before returning, mirroring the send-mail `wait` semantics.
|
|
1918
2073
|
*/
|
|
1919
2074
|
wait?: boolean;
|
|
2075
|
+
/**
|
|
2076
|
+
* Inline attachments for this reply. Use https://api.primitive.dev/v1 for replies with attachments. Combined raw decoded attachment bytes must be at most 31457280.
|
|
2077
|
+
*/
|
|
2078
|
+
attachments?: Array<SendMailAttachment>;
|
|
1920
2079
|
};
|
|
1921
2080
|
type SendMailResult = {
|
|
1922
2081
|
/**
|
|
@@ -4285,6 +4444,48 @@ type SendEmailResponses = {
|
|
|
4285
4444
|
};
|
|
4286
4445
|
};
|
|
4287
4446
|
type SendEmailResponse = SendEmailResponses[keyof SendEmailResponses];
|
|
4447
|
+
type SemanticSearchData = {
|
|
4448
|
+
body: SemanticSearchInput;
|
|
4449
|
+
path?: never;
|
|
4450
|
+
query?: never;
|
|
4451
|
+
url: '/semantic-search';
|
|
4452
|
+
};
|
|
4453
|
+
type SemanticSearchErrors = {
|
|
4454
|
+
/**
|
|
4455
|
+
* Invalid request parameters
|
|
4456
|
+
*/
|
|
4457
|
+
400: ErrorResponse;
|
|
4458
|
+
/**
|
|
4459
|
+
* Invalid or missing API key
|
|
4460
|
+
*/
|
|
4461
|
+
401: ErrorResponse;
|
|
4462
|
+
/**
|
|
4463
|
+
* Authenticated caller lacks permission for the operation
|
|
4464
|
+
*/
|
|
4465
|
+
403: ErrorResponse;
|
|
4466
|
+
/**
|
|
4467
|
+
* Rate limit exceeded
|
|
4468
|
+
*/
|
|
4469
|
+
429: ErrorResponse;
|
|
4470
|
+
/**
|
|
4471
|
+
* Primitive encountered an internal error
|
|
4472
|
+
*/
|
|
4473
|
+
500: ErrorResponse;
|
|
4474
|
+
/**
|
|
4475
|
+
* Primitive is temporarily unable to process the request
|
|
4476
|
+
*/
|
|
4477
|
+
503: ErrorResponse;
|
|
4478
|
+
};
|
|
4479
|
+
type SemanticSearchError = SemanticSearchErrors[keyof SemanticSearchErrors];
|
|
4480
|
+
type SemanticSearchResponses = {
|
|
4481
|
+
/**
|
|
4482
|
+
* Ranked search results
|
|
4483
|
+
*/
|
|
4484
|
+
200: SuccessEnvelope & {
|
|
4485
|
+
data: Array<SemanticSearchResult>;
|
|
4486
|
+
meta: SemanticSearchMeta;
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
4288
4489
|
type ListSentEmailsData = {
|
|
4289
4490
|
body?: never;
|
|
4290
4491
|
path?: never;
|
|
@@ -4925,7 +5126,7 @@ type ListFunctionLogsResponses = {
|
|
|
4925
5126
|
};
|
|
4926
5127
|
type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
|
|
4927
5128
|
declare namespace sdk_gen_d_exports {
|
|
4928
|
-
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionTestRunTrace, getInboxStatus, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain };
|
|
5129
|
+
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionTestRunTrace, getInboxStatus, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain };
|
|
4929
5130
|
}
|
|
4930
5131
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
4931
5132
|
/**
|
|
@@ -5238,9 +5439,9 @@ declare const downloadAttachments: <ThrowOnError extends boolean = false>(option
|
|
|
5238
5439
|
* derivation (Reply-To, then From, then bare sender), and the
|
|
5239
5440
|
* `Re:` subject prefix are all derived server-side from the
|
|
5240
5441
|
* stored inbound row. The request body carries only the message
|
|
5241
|
-
* body
|
|
5242
|
-
*
|
|
5243
|
-
* false`).
|
|
5442
|
+
* body, optional From override, optional attachments, and optional
|
|
5443
|
+
* `wait` flag; passing any header or recipient override is
|
|
5444
|
+
* rejected by the schema (`additionalProperties: false`).
|
|
5244
5445
|
*
|
|
5245
5446
|
* Forwards through the same gates as `/send-mail`: the response
|
|
5246
5447
|
* status, error envelope, and `idempotent_replay` flag mirror
|
|
@@ -5444,17 +5645,41 @@ declare const getSendPermissions: <ThrowOnError extends boolean = false>(options
|
|
|
5444
5645
|
* the request returns once the relay accepts the message for delivery.
|
|
5445
5646
|
* Set `wait: true` to wait for the first downstream SMTP delivery outcome.
|
|
5446
5647
|
*
|
|
5447
|
-
* **Host routing.** /send-mail is served by the
|
|
5448
|
-
*
|
|
5449
|
-
*
|
|
5450
|
-
*
|
|
5451
|
-
*
|
|
5452
|
-
*
|
|
5453
|
-
*
|
|
5454
|
-
* route /send-mail to the attachments host automatically.
|
|
5648
|
+
* **Host routing.** /send-mail is served by the canonical API host
|
|
5649
|
+
* (`https://api.primitive.dev/v1`) so the request body can carry
|
|
5650
|
+
* inline attachments up to ~30 MiB raw. The legacy dashboard
|
|
5651
|
+
* compatibility host (`https://www.primitive.dev/api/v1`) also accepts
|
|
5652
|
+
* /send-mail, but Vercel request body limits apply before proxying.
|
|
5653
|
+
* The typed SDKs route /send-mail to the canonical API host
|
|
5654
|
+
* automatically.
|
|
5455
5655
|
*
|
|
5456
5656
|
*/
|
|
5457
5657
|
declare const sendEmail: <ThrowOnError extends boolean = false>(options: Options<SendEmailData, ThrowOnError>) => RequestResult<SendEmailResponses, SendEmailErrors, ThrowOnError, "fields">;
|
|
5658
|
+
/**
|
|
5659
|
+
* Semantic search across received and sent mail
|
|
5660
|
+
*
|
|
5661
|
+
* Ranked search across both received and sent mail. The `mode`
|
|
5662
|
+
* field selects the ranking strategy:
|
|
5663
|
+
*
|
|
5664
|
+
* - `keyword`: lexical full-text matching only (no embeddings).
|
|
5665
|
+
* - `semantic`: meaning-based matching using vector embeddings.
|
|
5666
|
+
* - `hybrid` (default): blends the semantic and keyword signals.
|
|
5667
|
+
*
|
|
5668
|
+
* Results are ordered by a relevance `score`. Every row reports the
|
|
5669
|
+
* fields it matched (`matched_fields`), a match-centered excerpt per
|
|
5670
|
+
* field (`snippets`), and a `score_breakdown` whose components account
|
|
5671
|
+
* for the `score`. Page through results by passing the prior
|
|
5672
|
+
* response's `meta.cursor` back as `cursor`.
|
|
5673
|
+
*
|
|
5674
|
+
* Requires the Pro plan and the `semantic_search_enabled`
|
|
5675
|
+
* entitlement; callers without them receive `403`.
|
|
5676
|
+
*
|
|
5677
|
+
* Host routing: this operation is served only by the search host
|
|
5678
|
+
* (`https://api.primitive.dev/v1`). The typed SDKs route it there
|
|
5679
|
+
* automatically.
|
|
5680
|
+
*
|
|
5681
|
+
*/
|
|
5682
|
+
declare const semanticSearch: <ThrowOnError extends boolean = false>(options: Options<SemanticSearchData, ThrowOnError>) => RequestResult<SemanticSearchResponses, SemanticSearchErrors, ThrowOnError, "fields">;
|
|
5458
5683
|
/**
|
|
5459
5684
|
* List outbound sent emails
|
|
5460
5685
|
*
|
|
@@ -5699,15 +5924,12 @@ declare const setFunctionSecret: <ThrowOnError extends boolean = false>(options:
|
|
|
5699
5924
|
declare const listFunctionLogs: <ThrowOnError extends boolean = false>(options: Options<ListFunctionLogsData, ThrowOnError>) => RequestResult<ListFunctionLogsResponses, ListFunctionLogsErrors, ThrowOnError, "fields">;
|
|
5700
5925
|
//#endregion
|
|
5701
5926
|
//#region ../packages/api-core/src/client.d.ts
|
|
5702
|
-
declare const
|
|
5703
|
-
declare const DEFAULT_API_BASE_URL_2 = "https://api.primitive.dev/v1";
|
|
5927
|
+
declare const DEFAULT_API_BASE_URL = "https://api.primitive.dev/v1";
|
|
5704
5928
|
interface PrimitiveApiClientOptions extends Omit<Config, "auth" | "baseUrl"> {
|
|
5705
5929
|
apiKey?: string;
|
|
5706
5930
|
auth?: Config["auth"];
|
|
5707
|
-
/** @internal Override for the
|
|
5708
|
-
|
|
5709
|
-
/** @internal Override for the attachments-supporting send host. Production default is correct; this exists for staging/local testing only. */
|
|
5710
|
-
apiBaseUrl2?: string;
|
|
5931
|
+
/** @internal Override for the API host. Production default is correct; this exists for staging/local testing only. */
|
|
5932
|
+
apiBaseUrl?: string;
|
|
5711
5933
|
}
|
|
5712
5934
|
interface RequestOptions$1 {
|
|
5713
5935
|
/** Cancel the in-flight request when this signal fires. Surfaces as AbortError. */
|
|
@@ -5739,23 +5961,7 @@ declare class PrimitiveApiError extends Error {
|
|
|
5739
5961
|
});
|
|
5740
5962
|
}
|
|
5741
5963
|
declare class PrimitiveApiClient {
|
|
5742
|
-
/**
|
|
5743
|
-
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
5744
|
-
* this when passing `client: ...` to a generated operation function
|
|
5745
|
-
* for every endpoint EXCEPT /send-mail. The hand-written
|
|
5746
|
-
* PrimitiveClient.send / .reply / .forward methods on the subclass
|
|
5747
|
-
* route /send-mail to the host-2 client internally.
|
|
5748
|
-
*/
|
|
5749
5964
|
readonly client: Client;
|
|
5750
|
-
/**
|
|
5751
|
-
* @internal Generated client targeting the attachments-supporting
|
|
5752
|
-
* send host (apiBaseUrl2). Used by PrimitiveClient.send() under the
|
|
5753
|
-
* hood. Exposed for the CLI's hand-rolled send command, which calls
|
|
5754
|
-
* the generated sendEmail directly; not part of the publicly-
|
|
5755
|
-
* documented SDK surface. Customer code should call .send() on the
|
|
5756
|
-
* subclass instead.
|
|
5757
|
-
*/
|
|
5758
|
-
readonly _sendClient: Client;
|
|
5759
5965
|
constructor(options?: PrimitiveApiClientOptions);
|
|
5760
5966
|
getConfig(): Config<ClientOptions>;
|
|
5761
5967
|
setConfig(config: Config): Config<ClientOptions>;
|
|
@@ -5847,6 +6053,7 @@ interface SendThreadInput {
|
|
|
5847
6053
|
inReplyTo?: string;
|
|
5848
6054
|
references?: string[];
|
|
5849
6055
|
}
|
|
6056
|
+
type SendAttachment = SendMailAttachment;
|
|
5850
6057
|
interface SendInput {
|
|
5851
6058
|
from: string;
|
|
5852
6059
|
to: string;
|
|
@@ -5882,6 +6089,8 @@ interface RequestOptions {
|
|
|
5882
6089
|
* display name (`"Acme Support" <agent@company.com>`) or to reply
|
|
5883
6090
|
* from a different verified outbound address. The from-domain must
|
|
5884
6091
|
* be a verified outbound domain for your org.
|
|
6092
|
+
* - `attachments`: optional inline MIME attachments, using base64
|
|
6093
|
+
* content. The SDK routes replies to the attachment-capable host.
|
|
5885
6094
|
* - `wait`: when true, wait for the first downstream SMTP delivery
|
|
5886
6095
|
* outcome before resolving. Mirrors send-mail's `wait` semantics.
|
|
5887
6096
|
*
|
|
@@ -5894,6 +6103,7 @@ type ReplyInput = string | {
|
|
|
5894
6103
|
text?: string;
|
|
5895
6104
|
html?: string;
|
|
5896
6105
|
from?: string;
|
|
6106
|
+
attachments?: SendAttachment[];
|
|
5897
6107
|
wait?: boolean;
|
|
5898
6108
|
};
|
|
5899
6109
|
interface ForwardInput {
|
|
@@ -5921,9 +6131,31 @@ interface SendResult {
|
|
|
5921
6131
|
smtpResponseCode?: number | null;
|
|
5922
6132
|
smtpResponseText?: string;
|
|
5923
6133
|
}
|
|
6134
|
+
/**
|
|
6135
|
+
* Page of semantic-search results plus pagination meta. Returned by
|
|
6136
|
+
* `PrimitiveClient.semanticSearch`. `data` is the ranked rows (newest
|
|
6137
|
+
* tiebreak first within equal scores); `meta.cursor` is non-null when
|
|
6138
|
+
* there's another page.
|
|
6139
|
+
*/
|
|
6140
|
+
interface SemanticSearchResponse {
|
|
6141
|
+
data: SemanticSearchResult[];
|
|
6142
|
+
meta: SemanticSearchMeta;
|
|
6143
|
+
}
|
|
5924
6144
|
type PrimitiveClientOptions = PrimitiveApiClientOptions;
|
|
5925
6145
|
declare class PrimitiveClient extends PrimitiveApiClient {
|
|
5926
6146
|
send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
|
|
6147
|
+
/**
|
|
6148
|
+
* Semantic / hybrid / keyword search across received and sent mail.
|
|
6149
|
+
*
|
|
6150
|
+
* `POST /v1/semantic-search`. Returns ranked rows
|
|
6151
|
+
* with matched fields, match-centered excerpts, and an additive
|
|
6152
|
+
* `score_breakdown`. See `SemanticSearchInput` for request fields and
|
|
6153
|
+
* `SemanticSearchResult` for the row shape.
|
|
6154
|
+
*
|
|
6155
|
+
* Requires the Pro plan and the `semantic_search_enabled` entitlement;
|
|
6156
|
+
* otherwise the call throws `PrimitiveApiError` with `status: 403`.
|
|
6157
|
+
*/
|
|
6158
|
+
semanticSearch(input: SemanticSearchInput, options?: RequestOptions): Promise<SemanticSearchResponse>;
|
|
5927
6159
|
/**
|
|
5928
6160
|
* Reply to an inbound email.
|
|
5929
6161
|
*
|
|
@@ -5944,4 +6176,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
5944
6176
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
5945
6177
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
5946
6178
|
//#endregion
|
|
5947
|
-
export { listFilters as $, ListFunctionsError as $a, WebhookSecret as $c, GetThreadData as $i, DeleteFunctionSecretErrors as $n, SearchEmailsResponse as $o, FunctionTestRunDeliveryEndpoint as $r, TestFunctionResponses as $s, ConversationMessage as $t, deleteEndpoint as A, ListEmailsResponses as Aa, UpdateFunctionError as Ac, GetFunctionTestRunTraceErrors as Ai, DeleteDomainResponses as An, ReplyToEmailResponse as Ao, EmailAttachment as Ar, StartCliLoginData as As, AddDomainData as At, getEmail as B, ListFiltersResponse as Ba, VerifyAgentSignupResponse as Bc, GetSendPermissionsErrors as Bi, DeleteEndpointResponses as Bn, ResendCliSignupVerificationErrors as Bo, EmailSummary as Br, StartCliSignupResponse as Bs, CliLoginPollResult as Bt, cliLogout as C, ListDomainsErrors as Ca, UpdateFilterData as Cc, GetFunctionData as Ci, CreateFunctionSecretResponse as Cn, ReplayEmailWebhooksErrors as Co, DownloadDomainZoneFileResponses as Cr, SetFunctionSecretResponses as Cs, updateFilter as Ct, createFunctionSecret as D, ListEmailsError as Da, UpdateFilterResponse as Dc, GetFunctionResponses as Di, DeleteDomainError as Dn, ReplyToEmailData as Do, DownloadRawEmailResponse as Dr, StartAgentSignupInput as Ds, verifyDomain as Dt, createFunction as E, ListEmailsData as Ea, UpdateFilterInput as Ec, GetFunctionResponse as Ei, DeleteDomainData as En, ReplayResult as Eo, DownloadRawEmailErrors as Er, StartAgentSignupErrors as Es, verifyCliSignup as Et, downloadAttachments as F, ListEndpointsResponses as Fa, VerifiedDomain as Fc, GetInboxStatusErrors as Fi, DeleteEmailResponses as Fn, ResendAgentSignupVerificationInput as Fo, EmailSearchFacets as Fr, StartCliLoginResponses as Fs, AddDomainResponses as Ft, getSentEmail as G, ListFunctionLogsResponse as Ga, VerifyCliSignupInput as Gc, GetSentEmailErrors as Gi, DeleteFilterResponses as Gn, RotateWebhookSecretData as Go, FunctionDeployStatus as Gr, TestEndpointError as Gs, CliLogoutInput as Gt, getFunctionTestRunTrace as H, ListFunctionLogsData as Ha, VerifyCliSignupData as Hc, GetSendPermissionsResponses as Hi, DeleteFilterError as Hn, ResendCliSignupVerificationResponse as Ho, Endpoint as Hr, StorageStats as Hs, CliLogoutData as Ht, downloadDomainZoneFile as I, ListEnvelope as Ia, VerifyAgentSignupData as Ic, GetInboxStatusResponse as Ii, DeleteEndpointData as In, ResendAgentSignupVerificationResponse as Io, EmailSearchHighlights as Ir, StartCliSignupData as Is, AgentOrgRef as It, getWebhookSecret as J, ListFunctionSecretsError as Ja, VerifyDomainData as Jc, GetStorageStatsData as Ji, DeleteFunctionErrors as Jn, RotateWebhookSecretResponse as Jo, FunctionLogRow as Jr, TestEndpointResponses as Js, CliLogoutResult as Jt, getStorageStats as K, ListFunctionLogsResponses as Ka, VerifyCliSignupResponse as Kc, GetSentEmailResponse as Ki, DeleteFunctionData as Kn, RotateWebhookSecretError as Ko, FunctionDetail as Kr, TestEndpointErrors as Ks, CliLogoutResponse as Kt, downloadRawEmail as L, ListFiltersData as La, VerifyAgentSignupError as Lc, GetInboxStatusResponses as Li, DeleteEndpointError as Ln, ResendAgentSignupVerificationResponses as Lo, EmailSearchMeta as Lr, StartCliSignupError as Ls, AgentSignupResendResult as Lt, deleteFunction as M, ListEndpointsError as Ma, UpdateFunctionInput as Mc, GetFunctionTestRunTraceResponses as Mi, DeleteEmailError as Mn, ResendAgentSignupVerificationData as Mo, EmailDetail as Mr, StartCliLoginErrors as Ms, AddDomainErrors as Mt, deleteFunctionSecret as N, ListEndpointsErrors as Na, UpdateFunctionResponse as Nc, GetInboxStatusData as Ni, DeleteEmailErrors as Nn, ResendAgentSignupVerificationError as No, EmailDetailReply as Nr, StartCliLoginInput as Ns, AddDomainInput as Nt, deleteDomain as O, ListEmailsErrors as Oa, UpdateFilterResponses as Oc, GetFunctionTestRunTraceData as Oi, DeleteDomainErrors as On, ReplyToEmailError as Oo, DownloadRawEmailResponses as Or, StartAgentSignupResponse as Os, Account as Ot, discardEmailContent as P, ListEndpointsResponse as Pa, UpdateFunctionResponses as Pc, GetInboxStatusError as Pi, DeleteEmailResponse as Pn, ResendAgentSignupVerificationErrors as Po, EmailSearchFacetBucket as Pr, StartCliLoginResponse as Ps, AddDomainResponse as Pt, listEndpoints as Q, ListFunctionsData as Qa, VerifyDomainResponses as Qc, GetStorageStatsResponses as Qi, DeleteFunctionSecretError as Qn, SearchEmailsErrors as Qo, FunctionTestRunDelivery as Qr, TestFunctionResponse as Qs, Conversation as Qt, getAccount as R, ListFiltersError as Ra, VerifyAgentSignupErrors as Rc, GetSendPermissionsData as Ri, DeleteEndpointErrors as Rn, ResendCliSignupVerificationData as Ro, EmailSearchResult as Rr, StartCliSignupErrors as Rs, AgentSignupStartResult as Rt, addDomain as S, ListDomainsError as Sa, UpdateEndpointResponses as Sc, GetEmailResponses as Si, CreateFunctionSecretInput as Sn, ReplayEmailWebhooksError as So, DownloadDomainZoneFileResponse as Sr, SetFunctionSecretResponse as Ss, updateEndpoint as St, createFilter as T, ListDomainsResponses as Ta, UpdateFilterErrors as Tc, GetFunctionErrors as Ti, Cursor as Tn, ReplayEmailWebhooksResponses as To, DownloadRawEmailError as Tr, StartAgentSignupError as Ts, verifyAgentSignup as Tt, getInboxStatus as U, ListFunctionLogsError as Ua, VerifyCliSignupError as Uc, GetSentEmailData as Ui, DeleteFilterErrors as Un, ResendCliSignupVerificationResponses as Uo, ErrorResponse as Ur, SuccessEnvelope as Us, CliLogoutError as Ut, getFunction as V, ListFiltersResponses as Va, VerifyAgentSignupResponses as Vc, GetSendPermissionsResponse as Vi, DeleteFilterData as Vn, ResendCliSignupVerificationInput as Vo, EmailWebhookStatus as Vr, StartCliSignupResponses as Vs, CliLoginStartResult as Vt, getSendPermissions as W, ListFunctionLogsErrors as Wa, VerifyCliSignupErrors as Wc, GetSentEmailError as Wi, DeleteFilterResponse as Wn, ResourceId as Wo, Filter as Wr, TestEndpointData as Ws, CliLogoutErrors as Wt, listDomains as X, ListFunctionSecretsResponse as Xa, VerifyDomainErrors as Xc, GetStorageStatsErrors as Xi, DeleteFunctionResponses as Xn, SearchEmailsData as Xo, FunctionSecretWriteResult as Xr, TestFunctionError as Xs, CliSignupStartResult as Xt, listDeliveries as Y, ListFunctionSecretsErrors as Ya, VerifyDomainError as Yc, GetStorageStatsError as Yi, DeleteFunctionResponse as Yn, RotateWebhookSecretResponses as Yo, FunctionSecretListItem as Yr, TestFunctionData as Ys, CliSignupResendResult as Yt, listEmails as Z, ListFunctionSecretsResponses as Za, VerifyDomainResponse as Zc, GetStorageStatsResponse as Zi, DeleteFunctionSecretData as Zn, SearchEmailsError as Zo, FunctionTestRun as Zr, TestFunctionErrors as Zs, CliSignupVerifyResult as Zt, PrimitiveApiClientOptions as _, ListDeliveriesError as _a, UpdateEndpointData as _c, GetConversationResponses as _i, CreateFunctionResponses as _n, ReplayDeliveryError as _o, DownloadAttachmentsResponse as _r, SentEmailSummary as _s, startCliSignup as _t, RequestOptions as a, GetWebhookSecretError as aa, UpdateAccountData as ac, FunctionTestRunTrace as ai, Options$1 as al, CreateEndpointResponses as an, ListSentEmailsErrors as ao, DiscardEmailContentData as ar, SendEmailResponses as as, replayDelivery as at, RequestOptions$1 as b, ListDeliveriesResponses as ba, UpdateEndpointInput as bc, GetEmailErrors as bi, CreateFunctionSecretError as bn, ReplayDeliveryResponses as bo, DownloadDomainZoneFileError as br, SetFunctionSecretErrors as bs, updateAccount as bt, SendThreadInput as c, GetWebhookSecretResponses as ca, UpdateAccountInput as cc, GetAccountData as ci, ResponseStyle as cl, CreateFilterErrors as cn, PaginationMeta as co, DiscardEmailContentResponse as cr, SendMailResult as cs, resendAgentSignupVerification as ct, PRIMITIVE_SIGNATURE_HEADER as d, InboxStatusEndpointSummary as da, UpdateDomainData as dc, GetAccountResponse as di, CreateFilterResponses as dn, PollCliLoginError as do, Domain as dr, SendPermissionManagedZone as ds, sdk_gen_d_exports as dt, GetThreadError as ea, TestInvocationResult as ec, FunctionTestRunInboundEmail as ei, createClient as el, CreateEndpointData as en, ListFunctionsErrors as eo, DeleteFunctionSecretResponse as er, SearchEmailsResponses as es, listFunctionLogs as et, VerifyOptions as f, InboxStatusFunctionSummary as fa, UpdateDomainError as fc, GetAccountResponses as fi, CreateFunctionData as fn, PollCliLoginErrors as fo, DomainDnsRecord as fr, SendPermissionRule as fs, searchEmails as ft, PrimitiveApiClient as g, ListDeliveriesData as ga, UpdateDomainResponses as gc, GetConversationResponse as gi, CreateFunctionResponse as gn, ReplayDeliveryData as go, DownloadAttachmentsErrors as gr, SentEmailStatus as gs, startCliLogin as gt, DEFAULT_API_BASE_URL_2 as h, Limit as ha, UpdateDomainResponse as hc, GetConversationErrors as hi, CreateFunctionInput as hn, PollCliLoginResponses as ho, DownloadAttachmentsError as hr, SentEmailDetail as hs, startAgentSignup as ht, ReplyInput as i, GetWebhookSecretData as ia, UnverifiedDomain as ic, FunctionTestRunState as ii, CreateClientConfig as il, CreateEndpointResponse as in, ListSentEmailsError as io, DiscardContentResult as ir, SendEmailResponse as is, pollCliLogin as it, deleteFilter as j, ListEndpointsData as ja, UpdateFunctionErrors as jc, GetFunctionTestRunTraceResponse as ji, DeleteEmailData as jn, ReplyToEmailResponses as jo, EmailAuth as jr, StartCliLoginError as js, AddDomainError as jt, deleteEmail as k, ListEmailsResponse as ka, UpdateFunctionData as kc, GetFunctionTestRunTraceError as ki, DeleteDomainResponse as kn, ReplyToEmailErrors as ko, EmailAddress as kr, StartAgentSignupResponses as ks, AccountUpdated as kt, client as l, InboxStatus as la, UpdateAccountResponse as lc, GetAccountError as li, createConfig as ll, CreateFilterInput as ln, ParsedEmailData as lo, DiscardEmailContentResponses as lr, SendPermissionAddress as ls, resendCliSignupVerification as lt, DEFAULT_API_BASE_URL_1 as m, InboxStatusRecentEmailSummary as ma, UpdateDomainInput as mc, GetConversationError as mi, CreateFunctionErrors as mn, PollCliLoginResponse as mo, DownloadAttachmentsData as mr, SendPermissionsMeta as ms, setFunctionSecret as mt, PrimitiveClient as n, GetThreadResponse as na, Thread as nc, FunctionTestRunReply as ni, ClientOptions as nl, CreateEndpointErrors as nn, ListFunctionsResponses as no, DeliveryStatus as nr, SendEmailError as ns, listFunctions as nt, SendInput as o, GetWebhookSecretErrors as oa, UpdateAccountError as oc, GateDenial as oi, RequestOptions$2 as ol, CreateFilterData as on, ListSentEmailsResponse as oo, DiscardEmailContentError as or, SendMailAttachment as os, replayEmailWebhooks as ot, verifyWebhookSignature as p, InboxStatusNextAction as pa, UpdateDomainErrors as pc, GetConversationData as pi, CreateFunctionError as pn, PollCliLoginInput as po, DomainVerifyResult as pr, SendPermissionYourDomain as ps, sendEmail as pt, getThread as q, ListFunctionSecretsData as qa, VerifyCliSignupResponses as qc, GetSentEmailResponses as qi, DeleteFunctionError as qn, RotateWebhookSecretErrors as qo, FunctionListItem as qr, TestEndpointResponse as qs, CliLogoutResponses as qt, PrimitiveClientOptions as r, GetThreadResponses as ra, ThreadMessage as rc, FunctionTestRunSend as ri, Config as rl, CreateEndpointInput as rn, ListSentEmailsData as ro, DeliverySummary as rr, SendEmailErrors as rs, listSentEmails as rt, SendResult as s, GetWebhookSecretResponse as sa, UpdateAccountErrors as sc, GateFix as si, RequestResult as sl, CreateFilterError as sn, ListSentEmailsResponses as so, DiscardEmailContentErrors as sr, SendMailInput as ss, replyToEmail as st, ForwardInput as t, GetThreadErrors as ta, TestResult as tc, FunctionTestRunOutboundRequest as ti, Client as tl, CreateEndpointError as tn, ListFunctionsResponse as to, DeleteFunctionSecretResponses as tr, SendEmailData as ts, listFunctionSecrets as tt, createPrimitiveClient as u, InboxStatusDomain as ua, UpdateAccountResponses as uc, GetAccountErrors as ui, Auth as ul, CreateFilterResponse as un, PollCliLoginData as uo, DkimSignature as ur, SendPermissionAnyRecipient as us, rotateWebhookSecret as ut, PrimitiveApiError as v, ListDeliveriesErrors as va, UpdateEndpointError as vc, GetEmailData as vi, CreateFunctionResult as vn, ReplayDeliveryErrors as vo, DownloadAttachmentsResponses as vr, SetFunctionSecretData as vs, testEndpoint as vt, createEndpoint as w, ListDomainsResponse as wa, UpdateFilterError as wc, GetFunctionError as wi, CreateFunctionSecretResponses as wn, ReplayEmailWebhooksResponse as wo, DownloadRawEmailData as wr, StartAgentSignupData as ws, updateFunction as wt, createPrimitiveApiClient as x, ListDomainsData as xa, UpdateEndpointResponse as xc, GetEmailResponse as xi, CreateFunctionSecretErrors as xn, ReplayEmailWebhooksData as xo, DownloadDomainZoneFileErrors as xr, SetFunctionSecretInput as xs, updateDomain as xt, PrimitiveApiErrorDetails as y, ListDeliveriesResponse as ya, UpdateEndpointErrors as yc, GetEmailError as yi, CreateFunctionSecretData as yn, ReplayDeliveryResponse as yo, DownloadDomainZoneFileData as yr, SetFunctionSecretError as ys, testFunction as yt, getConversation as z, ListFiltersErrors as za, VerifyAgentSignupInput as zc, GetSendPermissionsError as zi, DeleteEndpointResponse as zn, ResendCliSignupVerificationError as zo, EmailStatus as zr, StartCliSignupInput as zs, AgentSignupVerifyResult as zt };
|
|
6179
|
+
export { listEndpoints as $, ListFunctionSecretsResponses as $a, VerifyAgentSignupResponse as $c, GetStorageStatsResponse as $i, DeleteFunctionSecretData as $n, SearchEmailsError as $o, FunctionTestRun as $r, StartCliSignupResponse as $s, CliSignupVerifyResult as $t, deleteEmail as A, ListEmailsErrors as Aa, UpdateEndpointData as Ac, GetFunctionTestRunTraceData as Ai, DeleteDomainErrors as An, ReplyToEmailError as Ao, DownloadRawEmailResponses as Ar, SentEmailSummary as As, Account as At, getConversation as B, ListFiltersError as Ba, UpdateFilterResponse as Bc, GetSendPermissionsData as Bi, DeleteEndpointErrors as Bn, ResendCliSignupVerificationData as Bo, EmailSearchResult as Br, StartAgentSignupInput as Bs, AgentSignupStartResult as Bt, addDomain as C, ListDomainsData as Ca, UpdateAccountResponses as Cc, GetEmailResponse as Ci, Auth as Cl, CreateFunctionSecretErrors as Cn, ReplayEmailWebhooksData as Co, DownloadDomainZoneFileErrors as Cr, SendPermissionAnyRecipient as Cs, updateDomain as Ct, createFunction as D, ListDomainsResponses as Da, UpdateDomainInput as Dc, GetFunctionErrors as Di, Cursor as Dn, ReplayEmailWebhooksResponses as Do, DownloadRawEmailError as Dr, SendPermissionsMeta as Ds, verifyAgentSignup as Dt, createFilter as E, ListDomainsResponse as Ea, UpdateDomainErrors as Ec, GetFunctionError as Ei, CreateFunctionSecretResponses as En, ReplayEmailWebhooksResponse as Eo, DownloadRawEmailData as Er, SendPermissionYourDomain as Es, updateFunction as Et, discardEmailContent as F, ListEndpointsErrors as Fa, UpdateEndpointResponses as Fc, GetInboxStatusData as Fi, DeleteEmailErrors as Fn, ResendAgentSignupVerificationError as Fo, EmailDetailReply as Fr, SetFunctionSecretResponse as Fs, AddDomainInput as Ft, getSendPermissions as G, ListFunctionLogsError as Ga, UpdateFunctionInput as Gc, GetSentEmailData as Gi, DeleteFilterErrors as Gn, ResendCliSignupVerificationResponses as Go, ErrorResponse as Gr, StartCliLoginErrors as Gs, CliLogoutError as Gt, getFunction as H, ListFiltersResponse as Ha, UpdateFunctionData as Hc, GetSendPermissionsErrors as Hi, DeleteEndpointResponses as Hn, ResendCliSignupVerificationErrors as Ho, EmailSummary as Hr, StartAgentSignupResponses as Hs, CliLoginPollResult as Ht, downloadAttachments as I, ListEndpointsResponse as Ia, UpdateFilterData as Ic, GetInboxStatusError as Ii, DeleteEmailResponse as In, ResendAgentSignupVerificationErrors as Io, EmailSearchFacetBucket as Ir, SetFunctionSecretResponses as Is, AddDomainResponse as It, getThread as J, ListFunctionLogsResponses as Ja, VerifiedDomain as Jc, GetSentEmailResponse as Ji, DeleteFunctionData as Jn, RotateWebhookSecretError as Jo, FunctionDetail as Jr, StartCliLoginResponses as Js, CliLogoutResponse as Jt, getSentEmail as K, ListFunctionLogsErrors as Ka, UpdateFunctionResponse as Kc, GetSentEmailError as Ki, DeleteFilterResponse as Kn, ResourceId as Ko, Filter as Kr, StartCliLoginInput as Ks, CliLogoutErrors as Kt, downloadDomainZoneFile as L, ListEndpointsResponses as La, UpdateFilterError as Lc, GetInboxStatusErrors as Li, DeleteEmailResponses as Ln, ResendAgentSignupVerificationInput as Lo, EmailSearchFacets as Lr, StartAgentSignupData as Ls, AddDomainResponses as Lt, deleteFilter as M, ListEmailsResponses as Ma, UpdateEndpointErrors as Mc, GetFunctionTestRunTraceErrors as Mi, DeleteDomainResponses as Mn, ReplyToEmailResponse as Mo, EmailAttachment as Mr, SetFunctionSecretError as Ms, AddDomainData as Mt, deleteFunction as N, ListEndpointsData as Na, UpdateEndpointInput as Nc, GetFunctionTestRunTraceResponse as Ni, DeleteEmailData as Nn, ReplyToEmailResponses as No, EmailAuth as Nr, SetFunctionSecretErrors as Ns, AddDomainError as Nt, createFunctionSecret as O, ListEmailsData as Oa, UpdateDomainResponse as Oc, GetFunctionResponse as Oi, DeleteDomainData as On, ReplayResult as Oo, DownloadRawEmailErrors as Or, SentEmailDetail as Os, verifyCliSignup as Ot, deleteFunctionSecret as P, ListEndpointsError as Pa, UpdateEndpointResponse as Pc, GetFunctionTestRunTraceResponses as Pi, DeleteEmailError as Pn, ResendAgentSignupVerificationData as Po, EmailDetail as Pr, SetFunctionSecretInput as Ps, AddDomainErrors as Pt, listEmails as Q, ListFunctionSecretsResponse as Qa, VerifyAgentSignupInput as Qc, GetStorageStatsErrors as Qi, DeleteFunctionResponses as Qn, SearchEmailsData as Qo, FunctionSecretWriteResult as Qr, StartCliSignupInput as Qs, CliSignupStartResult as Qt, downloadRawEmail as R, ListEnvelope as Ra, UpdateFilterErrors as Rc, GetInboxStatusResponse as Ri, DeleteEndpointData as Rn, ResendAgentSignupVerificationResponse as Ro, EmailSearchHighlights as Rr, StartAgentSignupError as Rs, AgentOrgRef as Rt, createPrimitiveApiClient as S, ListDeliveriesResponses as Sa, UpdateAccountResponse as Sc, GetEmailErrors as Si, createConfig as Sl, CreateFunctionSecretError as Sn, ReplayDeliveryResponses as So, DownloadDomainZoneFileError as Sr, SendPermissionAddress as Ss, updateAccount as St, createEndpoint as T, ListDomainsErrors as Ta, UpdateDomainError as Tc, GetFunctionData as Ti, CreateFunctionSecretResponse as Tn, ReplayEmailWebhooksErrors as To, DownloadDomainZoneFileResponses as Tr, SendPermissionRule as Ts, updateFilter as Tt, getFunctionTestRunTrace as U, ListFiltersResponses as Ua, UpdateFunctionError as Uc, GetSendPermissionsResponse as Ui, DeleteFilterData as Un, ResendCliSignupVerificationInput as Uo, EmailWebhookStatus as Ur, StartCliLoginData as Us, CliLoginStartResult as Ut, getEmail as V, ListFiltersErrors as Va, UpdateFilterResponses as Vc, GetSendPermissionsError as Vi, DeleteEndpointResponse as Vn, ResendCliSignupVerificationError as Vo, EmailStatus as Vr, StartAgentSignupResponse as Vs, AgentSignupVerifyResult as Vt, getInboxStatus as W, ListFunctionLogsData as Wa, UpdateFunctionErrors as Wc, GetSendPermissionsResponses as Wi, DeleteFilterError as Wn, ResendCliSignupVerificationResponse as Wo, Endpoint as Wr, StartCliLoginError as Ws, CliLogoutData as Wt, listDeliveries as X, ListFunctionSecretsError as Xa, VerifyAgentSignupError as Xc, GetStorageStatsData as Xi, DeleteFunctionErrors as Xn, RotateWebhookSecretResponse as Xo, FunctionLogRow as Xr, StartCliSignupError as Xs, CliLogoutResult as Xt, getWebhookSecret as Y, ListFunctionSecretsData as Ya, VerifyAgentSignupData as Yc, GetSentEmailResponses as Yi, DeleteFunctionError as Yn, RotateWebhookSecretErrors as Yo, FunctionListItem as Yr, StartCliSignupData as Ys, CliLogoutResponses as Yt, listDomains as Z, ListFunctionSecretsErrors as Za, VerifyAgentSignupErrors as Zc, GetStorageStatsError as Zi, DeleteFunctionResponse as Zn, RotateWebhookSecretResponses as Zo, FunctionSecretListItem as Zr, StartCliSignupErrors as Zs, CliSignupResendResult as Zt, PrimitiveApiClient as _, Limit as _a, UnverifiedDomain as _c, GetConversationErrors as _i, CreateClientConfig as _l, CreateFunctionInput as _n, PollCliLoginResponses as _o, DownloadAttachmentsError as _r, SendEmailResponse as _s, startAgentSignup as _t, RequestOptions as a, GetThreadResponses as aa, TestEndpointErrors as ac, FunctionTestRunSend as ai, VerifyCliSignupResponse as al, CreateEndpointInput as an, ListSentEmailsData as ao, DeliverySummary as ar, SemanticSearchError as as, pollCliLogin as at, PrimitiveApiErrorDetails as b, ListDeliveriesErrors as ba, UpdateAccountErrors as bc, GetEmailData as bi, RequestResult as bl, CreateFunctionResult as bn, ReplayDeliveryErrors as bo, DownloadAttachmentsResponses as br, SendMailInput as bs, testEndpoint as bt, SendInput as c, GetWebhookSecretErrors as ca, TestFunctionData as cc, GateDenial as ci, VerifyDomainError as cl, CreateFilterData as cn, ListSentEmailsResponse as co, DiscardEmailContentError as cr, SemanticSearchInput as cs, replyToEmail as ct, client as d, InboxStatus as da, TestFunctionResponse as dc, GetAccountError as di, VerifyDomainResponses as dl, CreateFilterInput as dn, ParsedEmailData as do, DiscardEmailContentResponses as dr, SemanticSearchResult as ds, rotateWebhookSecret as dt, GetStorageStatsResponses as ea, StartCliSignupResponses as ec, FunctionTestRunDelivery as ei, VerifyAgentSignupResponses as el, Conversation as en, ListFunctionsData as eo, DeleteFunctionSecretError as er, SearchEmailsErrors as es, listFilters as et, createPrimitiveClient as f, InboxStatusDomain as fa, TestFunctionResponses as fc, GetAccountErrors as fi, WebhookSecret as fl, CreateFilterResponse as fn, PollCliLoginData as fo, DkimSignature as fr, SemanticSearchScoreBreakdown as fs, sdk_gen_d_exports as ft, DEFAULT_API_BASE_URL as g, InboxStatusRecentEmailSummary as ga, ThreadMessage as gc, GetConversationError as gi, Config as gl, CreateFunctionErrors as gn, PollCliLoginResponse as go, DownloadAttachmentsData as gr, SendEmailErrors as gs, setFunctionSecret as gt, verifyWebhookSignature as h, InboxStatusNextAction as ha, Thread as hc, GetConversationData as hi, ClientOptions as hl, CreateFunctionError as hn, PollCliLoginInput as ho, DomainVerifyResult as hr, SendEmailError as hs, sendEmail as ht, ReplyInput as i, GetThreadResponse as ia, TestEndpointError as ic, FunctionTestRunReply as ii, VerifyCliSignupInput as il, CreateEndpointErrors as in, ListFunctionsResponses as io, DeliveryStatus as ir, SemanticSearchData as is, listSentEmails as it, deleteEndpoint as j, ListEmailsResponse as ja, UpdateEndpointError as jc, GetFunctionTestRunTraceError as ji, DeleteDomainResponse as jn, ReplyToEmailErrors as jo, EmailAddress as jr, SetFunctionSecretData as js, AccountUpdated as jt, deleteDomain as k, ListEmailsError as ka, UpdateDomainResponses as kc, GetFunctionResponses as ki, DeleteDomainError as kn, ReplyToEmailData as ko, DownloadRawEmailResponse as kr, SentEmailStatus as ks, verifyDomain as kt, SendResult as l, GetWebhookSecretResponse as la, TestFunctionError as lc, GateFix as li, VerifyDomainErrors as ll, CreateFilterError as ln, ListSentEmailsResponses as lo, DiscardEmailContentErrors as lr, SemanticSearchMeta as ls, resendAgentSignupVerification as lt, VerifyOptions as m, InboxStatusFunctionSummary as ma, TestResult as mc, GetAccountResponses as mi, Client as ml, CreateFunctionData as mn, PollCliLoginErrors as mo, DomainDnsRecord as mr, SendEmailData as ms, semanticSearch as mt, PrimitiveClient as n, GetThreadError as na, SuccessEnvelope as nc, FunctionTestRunInboundEmail as ni, VerifyCliSignupError as nl, CreateEndpointData as nn, ListFunctionsErrors as no, DeleteFunctionSecretResponse as nr, SearchEmailsResponses as ns, listFunctionSecrets as nt, SemanticSearchResponse as o, GetWebhookSecretData as oa, TestEndpointResponse as oc, FunctionTestRunState as oi, VerifyCliSignupResponses as ol, CreateEndpointResponse as on, ListSentEmailsError as oo, DiscardContentResult as or, SemanticSearchErrors as os, replayDelivery as ot, PRIMITIVE_SIGNATURE_HEADER as p, InboxStatusEndpointSummary as pa, TestInvocationResult as pc, GetAccountResponse as pi, createClient as pl, CreateFilterResponses as pn, PollCliLoginError as po, Domain as pr, SemanticSearchSnippet as ps, searchEmails as pt, getStorageStats as q, ListFunctionLogsResponse as qa, UpdateFunctionResponses as qc, GetSentEmailErrors as qi, DeleteFilterResponses as qn, RotateWebhookSecretData as qo, FunctionDeployStatus as qr, StartCliLoginResponse as qs, CliLogoutInput as qt, PrimitiveClientOptions as r, GetThreadErrors as ra, TestEndpointData as rc, FunctionTestRunOutboundRequest as ri, VerifyCliSignupErrors as rl, CreateEndpointError as rn, ListFunctionsResponse as ro, DeleteFunctionSecretResponses as rr, SemanticSearchCoverage as rs, listFunctions as rt, SendAttachment as s, GetWebhookSecretError as sa, TestEndpointResponses as sc, FunctionTestRunTrace as si, VerifyDomainData as sl, CreateEndpointResponses as sn, ListSentEmailsErrors as so, DiscardEmailContentData as sr, SemanticSearchField as ss, replayEmailWebhooks as st, ForwardInput as t, GetThreadData as ta, StorageStats as tc, FunctionTestRunDeliveryEndpoint as ti, VerifyCliSignupData as tl, ConversationMessage as tn, ListFunctionsError as to, DeleteFunctionSecretErrors as tr, SearchEmailsResponse as ts, listFunctionLogs as tt, SendThreadInput as u, GetWebhookSecretResponses as ua, TestFunctionErrors as uc, GetAccountData as ui, VerifyDomainResponse as ul, CreateFilterErrors as un, PaginationMeta as uo, DiscardEmailContentResponse as ur, SemanticSearchResponses as us, resendCliSignupVerification as ut, PrimitiveApiClientOptions as v, ListDeliveriesData as va, UpdateAccountData as vc, GetConversationResponse as vi, Options$1 as vl, CreateFunctionResponse as vn, ReplayDeliveryData as vo, DownloadAttachmentsErrors as vr, SendEmailResponses as vs, startCliLogin as vt, cliLogout as w, ListDomainsError as wa, UpdateDomainData as wc, GetEmailResponses as wi, CreateFunctionSecretInput as wn, ReplayEmailWebhooksError as wo, DownloadDomainZoneFileResponse as wr, SendPermissionManagedZone as ws, updateEndpoint as wt, RequestOptions$1 as x, ListDeliveriesResponse as xa, UpdateAccountInput as xc, GetEmailError as xi, ResponseStyle as xl, CreateFunctionSecretData as xn, ReplayDeliveryResponse as xo, DownloadDomainZoneFileData as xr, SendMailResult as xs, testFunction as xt, PrimitiveApiError as y, ListDeliveriesError as ya, UpdateAccountError as yc, GetConversationResponses as yi, RequestOptions$2 as yl, CreateFunctionResponses as yn, ReplayDeliveryError as yo, DownloadAttachmentsResponse as yr, SendMailAttachment as ys, startCliSignup as yt, getAccount as z, ListFiltersData as za, UpdateFilterInput as zc, GetInboxStatusResponses as zi, DeleteEndpointError as zn, ResendAgentSignupVerificationResponses as zo, EmailSearchMeta as zr, StartAgentSignupErrors as zs, AgentSignupResendResult as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as SendInput, d as client, f as createPrimitiveClient, i as ReplyInput, l as SendResult, n as PrimitiveClient, r as PrimitiveClientOptions, s as SendAttachment, t as ForwardInput, u as SendThreadInput, y as PrimitiveApiError } from "./index-Imm1lbB_.js";
|
|
2
2
|
import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-yNU-Oiea.js";
|
|
3
3
|
import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-7E9sW9eX.js";
|
|
4
4
|
import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-DR978rq5.js";
|
|
@@ -9,4 +9,4 @@ declare const primitive: {
|
|
|
9
9
|
receive: typeof receive;
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
|
-
export { AuthConfidence, AuthVerdict, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcResult, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, type ForwardInput, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PrimitiveApiError, PrimitiveClient, type PrimitiveClientOptions, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, type ReplyInput, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, type SendInput, type SendResult, type SendThreadInput, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_VERSION, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, buildForwardSubject, buildReplySubject, client, confirmedHeaders, createPrimitiveClient, decodeRawEmail, primitive as default, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
|
|
12
|
+
export { AuthConfidence, AuthVerdict, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcResult, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, type ForwardInput, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PrimitiveApiError, PrimitiveClient, type PrimitiveClientOptions, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, type ReplyInput, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, type SendAttachment, type SendInput, type SendResult, type SendThreadInput, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_VERSION, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, buildForwardSubject, buildReplySubject, client, confirmedHeaders, createPrimitiveClient, decodeRawEmail, primitive as default, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-COmUIWhS.js";
|
|
2
2
|
import { a as VERIFICATION_ERRORS, c as WebhookVerificationError, d as formatAddress, f as normalizeReceivedEmail, i as RawEmailDecodeError, l as buildForwardSubject, n as PrimitiveWebhookError, o as WebhookPayloadError, p as parseHeaderAddress, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as buildReplySubject } from "./errors-BPJGp9I6.js";
|
|
3
3
|
import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-BAwK8EOG.js";
|
|
4
4
|
//#region src/index.ts
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-CgJWP2sH.js";
|
|
2
2
|
export { openapiDocument, operationManifest };
|