@primitivedotdev/sdk 0.33.0 → 0.35.0
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 +6 -0
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/{api-Dto6GBP0.js → api-2gC06vxj.js} +127 -13
- package/dist/{index-iU6aiuLg.d.ts → index-CBt3RDtQ.d.ts} +395 -13
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-BHoPLMUf.js → operations.generated-CZx0VGSj.js} +714 -2
- package/package.json +1 -1
|
@@ -1454,6 +1454,76 @@ type ThreadMessage = {
|
|
|
1454
1454
|
*/
|
|
1455
1455
|
timestamp?: string | null;
|
|
1456
1456
|
};
|
|
1457
|
+
/**
|
|
1458
|
+
* The full conversation an inbound email belongs to, as ordered,
|
|
1459
|
+
* ready-to-prompt turns with bodies. Resolves the thread from the
|
|
1460
|
+
* email and returns every message oldest-first, so an agent that
|
|
1461
|
+
* received an email can pass `messages` straight to a chat model in
|
|
1462
|
+
* one call.
|
|
1463
|
+
*
|
|
1464
|
+
*/
|
|
1465
|
+
type Conversation = {
|
|
1466
|
+
/**
|
|
1467
|
+
* The thread this email belongs to, or null when the email
|
|
1468
|
+
* isn't threaded yet (the conversation is then just this one
|
|
1469
|
+
* message).
|
|
1470
|
+
*
|
|
1471
|
+
*/
|
|
1472
|
+
thread_id: string | null;
|
|
1473
|
+
/**
|
|
1474
|
+
* Normalized thread subject (Re/Fwd prefixes stripped), or the
|
|
1475
|
+
* email's own subject when it isn't threaded.
|
|
1476
|
+
*
|
|
1477
|
+
*/
|
|
1478
|
+
subject?: string | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Total messages in the thread. `messages` is capped, so
|
|
1481
|
+
* `truncated` is true (and this can exceed `messages.length`)
|
|
1482
|
+
* when older messages were omitted.
|
|
1483
|
+
*
|
|
1484
|
+
*/
|
|
1485
|
+
message_count: number;
|
|
1486
|
+
/**
|
|
1487
|
+
* True when `messages` omits part of the conversation because
|
|
1488
|
+
* the thread exceeds the per-call cap.
|
|
1489
|
+
*
|
|
1490
|
+
*/
|
|
1491
|
+
truncated: boolean;
|
|
1492
|
+
messages: Array<ConversationMessage>;
|
|
1493
|
+
};
|
|
1494
|
+
/**
|
|
1495
|
+
* One message in the conversation, with its body and a chat role.
|
|
1496
|
+
*/
|
|
1497
|
+
type ConversationMessage = {
|
|
1498
|
+
/**
|
|
1499
|
+
* Chat role derived from `direction`: `user` for inbound
|
|
1500
|
+
* (received) messages, `assistant` for outbound (your own prior
|
|
1501
|
+
* replies). Lets `messages` be passed directly to a chat model.
|
|
1502
|
+
*
|
|
1503
|
+
*/
|
|
1504
|
+
role: 'user' | 'assistant';
|
|
1505
|
+
/**
|
|
1506
|
+
* `inbound` for a received email (`/emails/{id}`), `outbound`
|
|
1507
|
+
* for a send (`/sent-emails/{id}`).
|
|
1508
|
+
*
|
|
1509
|
+
*/
|
|
1510
|
+
direction: 'inbound' | 'outbound';
|
|
1511
|
+
id: string;
|
|
1512
|
+
message_id?: string | null;
|
|
1513
|
+
from?: string | null;
|
|
1514
|
+
to?: string | null;
|
|
1515
|
+
subject?: string | null;
|
|
1516
|
+
/**
|
|
1517
|
+
* Plain-text body. Empty string when the message has no text
|
|
1518
|
+
* part or its content was discarded by retention.
|
|
1519
|
+
*
|
|
1520
|
+
*/
|
|
1521
|
+
text: string;
|
|
1522
|
+
/**
|
|
1523
|
+
* received_at for inbound, created_at for outbound.
|
|
1524
|
+
*/
|
|
1525
|
+
timestamp?: string | null;
|
|
1526
|
+
};
|
|
1457
1527
|
type SendMailAttachment = {
|
|
1458
1528
|
/**
|
|
1459
1529
|
* Attachment filename. Control characters are rejected.
|
|
@@ -1788,6 +1858,161 @@ type SentEmailSummary = {
|
|
|
1788
1858
|
*/
|
|
1789
1859
|
request_id?: string | null;
|
|
1790
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
|
+
};
|
|
1791
2016
|
/**
|
|
1792
2017
|
* Full sent-email record, including `body_text` and
|
|
1793
2018
|
* `body_html`. Returned by /sent-emails/{id}.
|
|
@@ -1847,6 +2072,10 @@ type ReplyInput$1 = {
|
|
|
1847
2072
|
* When true, wait for the first downstream SMTP delivery outcome before returning, mirroring the send-mail `wait` semantics.
|
|
1848
2073
|
*/
|
|
1849
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>;
|
|
1850
2079
|
};
|
|
1851
2080
|
type SendMailResult = {
|
|
1852
2081
|
/**
|
|
@@ -3727,6 +3956,41 @@ type DiscardEmailContentResponses = {
|
|
|
3727
3956
|
};
|
|
3728
3957
|
};
|
|
3729
3958
|
type DiscardEmailContentResponse = DiscardEmailContentResponses[keyof DiscardEmailContentResponses];
|
|
3959
|
+
type GetConversationData = {
|
|
3960
|
+
body?: never;
|
|
3961
|
+
path: {
|
|
3962
|
+
/**
|
|
3963
|
+
* Resource UUID
|
|
3964
|
+
*/
|
|
3965
|
+
id: string;
|
|
3966
|
+
};
|
|
3967
|
+
query?: never;
|
|
3968
|
+
url: '/emails/{id}/conversation';
|
|
3969
|
+
};
|
|
3970
|
+
type GetConversationErrors = {
|
|
3971
|
+
/**
|
|
3972
|
+
* Invalid request parameters
|
|
3973
|
+
*/
|
|
3974
|
+
400: ErrorResponse;
|
|
3975
|
+
/**
|
|
3976
|
+
* Invalid or missing API key
|
|
3977
|
+
*/
|
|
3978
|
+
401: ErrorResponse;
|
|
3979
|
+
/**
|
|
3980
|
+
* Resource not found
|
|
3981
|
+
*/
|
|
3982
|
+
404: ErrorResponse;
|
|
3983
|
+
};
|
|
3984
|
+
type GetConversationError = GetConversationErrors[keyof GetConversationErrors];
|
|
3985
|
+
type GetConversationResponses = {
|
|
3986
|
+
/**
|
|
3987
|
+
* Conversation
|
|
3988
|
+
*/
|
|
3989
|
+
200: SuccessEnvelope & {
|
|
3990
|
+
data?: Conversation;
|
|
3991
|
+
};
|
|
3992
|
+
};
|
|
3993
|
+
type GetConversationResponse = GetConversationResponses[keyof GetConversationResponses];
|
|
3730
3994
|
type ListEndpointsData = {
|
|
3731
3995
|
body?: never;
|
|
3732
3996
|
path?: never;
|
|
@@ -4180,6 +4444,48 @@ type SendEmailResponses = {
|
|
|
4180
4444
|
};
|
|
4181
4445
|
};
|
|
4182
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
|
+
};
|
|
4183
4489
|
type ListSentEmailsData = {
|
|
4184
4490
|
body?: never;
|
|
4185
4491
|
path?: never;
|
|
@@ -4820,7 +5126,7 @@ type ListFunctionLogsResponses = {
|
|
|
4820
5126
|
};
|
|
4821
5127
|
type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
|
|
4822
5128
|
declare namespace sdk_gen_d_exports {
|
|
4823
|
-
export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, 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 };
|
|
4824
5130
|
}
|
|
4825
5131
|
type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
|
|
4826
5132
|
/**
|
|
@@ -5133,9 +5439,9 @@ declare const downloadAttachments: <ThrowOnError extends boolean = false>(option
|
|
|
5133
5439
|
* derivation (Reply-To, then From, then bare sender), and the
|
|
5134
5440
|
* `Re:` subject prefix are all derived server-side from the
|
|
5135
5441
|
* stored inbound row. The request body carries only the message
|
|
5136
|
-
* body
|
|
5137
|
-
*
|
|
5138
|
-
* 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`).
|
|
5139
5445
|
*
|
|
5140
5446
|
* Forwards through the same gates as `/send-mail`: the response
|
|
5141
5447
|
* status, error envelope, and `idempotent_replay` flag mirror
|
|
@@ -5173,6 +5479,30 @@ declare const replayEmailWebhooks: <ThrowOnError extends boolean = false>(option
|
|
|
5173
5479
|
*
|
|
5174
5480
|
*/
|
|
5175
5481
|
declare const discardEmailContent: <ThrowOnError extends boolean = false>(options: Options<DiscardEmailContentData, ThrowOnError>) => RequestResult<DiscardEmailContentResponses, DiscardEmailContentErrors, ThrowOnError, "fields">;
|
|
5482
|
+
/**
|
|
5483
|
+
* Get the conversation an email belongs to
|
|
5484
|
+
*
|
|
5485
|
+
* Returns the full conversation the given inbound email belongs
|
|
5486
|
+
* to, as ordered, ready-to-prompt turns WITH bodies. It resolves
|
|
5487
|
+
* the thread from the email and returns every message oldest-first,
|
|
5488
|
+
* so an agent that received an email can pass `messages` straight
|
|
5489
|
+
* to a chat model in one call instead of walking `/threads/{id}`
|
|
5490
|
+
* plus `/emails/{id}` and `/sent-emails/{id}` per message.
|
|
5491
|
+
*
|
|
5492
|
+
* Each message carries a `direction` (`inbound` | `outbound`) and a
|
|
5493
|
+
* derived `role`: `inbound` -> `user`, `outbound` -> `assistant`
|
|
5494
|
+
* (your own prior replies). The role mapping assumes the caller
|
|
5495
|
+
* owns the outbound side, which is the agent-reply case this exists
|
|
5496
|
+
* for. If the email has no thread yet (a brand-new message), the
|
|
5497
|
+
* conversation is just that one message as a single user turn.
|
|
5498
|
+
*
|
|
5499
|
+
* The message list is capped; check `truncated` to detect when
|
|
5500
|
+
* older messages were omitted. Consecutive same-role turns are not
|
|
5501
|
+
* merged here; that normalization is model-specific and left to the
|
|
5502
|
+
* caller.
|
|
5503
|
+
*
|
|
5504
|
+
*/
|
|
5505
|
+
declare const getConversation: <ThrowOnError extends boolean = false>(options: Options<GetConversationData, ThrowOnError>) => RequestResult<GetConversationResponses, GetConversationErrors, ThrowOnError, "fields">;
|
|
5176
5506
|
/**
|
|
5177
5507
|
* List webhook endpoints
|
|
5178
5508
|
*
|
|
@@ -5326,6 +5656,31 @@ declare const getSendPermissions: <ThrowOnError extends boolean = false>(options
|
|
|
5326
5656
|
*
|
|
5327
5657
|
*/
|
|
5328
5658
|
declare const sendEmail: <ThrowOnError extends boolean = false>(options: Options<SendEmailData, ThrowOnError>) => RequestResult<SendEmailResponses, SendEmailErrors, ThrowOnError, "fields">;
|
|
5659
|
+
/**
|
|
5660
|
+
* Semantic search across received and sent mail
|
|
5661
|
+
*
|
|
5662
|
+
* Ranked search across both received and sent mail. The `mode`
|
|
5663
|
+
* field selects the ranking strategy:
|
|
5664
|
+
*
|
|
5665
|
+
* - `keyword`: lexical full-text matching only (no embeddings).
|
|
5666
|
+
* - `semantic`: meaning-based matching using vector embeddings.
|
|
5667
|
+
* - `hybrid` (default): blends the semantic and keyword signals.
|
|
5668
|
+
*
|
|
5669
|
+
* Results are ordered by a relevance `score`. Every row reports the
|
|
5670
|
+
* fields it matched (`matched_fields`), a match-centered excerpt per
|
|
5671
|
+
* field (`snippets`), and a `score_breakdown` whose components account
|
|
5672
|
+
* for the `score`. Page through results by passing the prior
|
|
5673
|
+
* response's `meta.cursor` back as `cursor`.
|
|
5674
|
+
*
|
|
5675
|
+
* Requires the Pro plan and the `semantic_search_enabled`
|
|
5676
|
+
* entitlement; callers without them receive `403`.
|
|
5677
|
+
*
|
|
5678
|
+
* Host routing: this operation is served only by the search host
|
|
5679
|
+
* (`https://api.primitive.dev/v1`). The typed SDKs route it there
|
|
5680
|
+
* automatically.
|
|
5681
|
+
*
|
|
5682
|
+
*/
|
|
5683
|
+
declare const semanticSearch: <ThrowOnError extends boolean = false>(options: Options<SemanticSearchData, ThrowOnError>) => RequestResult<SemanticSearchResponses, SemanticSearchErrors, ThrowOnError, "fields">;
|
|
5329
5684
|
/**
|
|
5330
5685
|
* List outbound sent emails
|
|
5331
5686
|
*
|
|
@@ -5613,18 +5968,19 @@ declare class PrimitiveApiClient {
|
|
|
5613
5968
|
/**
|
|
5614
5969
|
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
5615
5970
|
* this when passing `client: ...` to a generated operation function
|
|
5616
|
-
* for every endpoint EXCEPT
|
|
5617
|
-
* PrimitiveClient.send / .reply / .forward methods on
|
|
5618
|
-
* route
|
|
5971
|
+
* for every endpoint EXCEPT attachment-capable message sends. The
|
|
5972
|
+
* hand-written PrimitiveClient.send / .reply / .forward methods on
|
|
5973
|
+
* the subclass route those sends to the host-2 client internally.
|
|
5619
5974
|
*/
|
|
5620
5975
|
readonly client: Client;
|
|
5621
5976
|
/**
|
|
5622
5977
|
* @internal Generated client targeting the attachments-supporting
|
|
5623
|
-
* send host (apiBaseUrl2). Used by PrimitiveClient.send()
|
|
5624
|
-
* hood. Exposed for the CLI's
|
|
5625
|
-
*
|
|
5626
|
-
*
|
|
5627
|
-
*
|
|
5978
|
+
* send host (apiBaseUrl2). Used by PrimitiveClient.send() and
|
|
5979
|
+
* PrimitiveClient.reply() under the hood. Exposed for the CLI's
|
|
5980
|
+
* hand-rolled send/reply commands, which call generated operations
|
|
5981
|
+
* directly; not part of the publicly-documented SDK surface.
|
|
5982
|
+
* Customer code should call .send() / .reply() on the subclass
|
|
5983
|
+
* instead.
|
|
5628
5984
|
*/
|
|
5629
5985
|
readonly _sendClient: Client;
|
|
5630
5986
|
constructor(options?: PrimitiveApiClientOptions);
|
|
@@ -5718,6 +6074,7 @@ interface SendThreadInput {
|
|
|
5718
6074
|
inReplyTo?: string;
|
|
5719
6075
|
references?: string[];
|
|
5720
6076
|
}
|
|
6077
|
+
type SendAttachment = SendMailAttachment;
|
|
5721
6078
|
interface SendInput {
|
|
5722
6079
|
from: string;
|
|
5723
6080
|
to: string;
|
|
@@ -5753,6 +6110,8 @@ interface RequestOptions {
|
|
|
5753
6110
|
* display name (`"Acme Support" <agent@company.com>`) or to reply
|
|
5754
6111
|
* from a different verified outbound address. The from-domain must
|
|
5755
6112
|
* be a verified outbound domain for your org.
|
|
6113
|
+
* - `attachments`: optional inline MIME attachments, using base64
|
|
6114
|
+
* content. The SDK routes replies to the attachment-capable host.
|
|
5756
6115
|
* - `wait`: when true, wait for the first downstream SMTP delivery
|
|
5757
6116
|
* outcome before resolving. Mirrors send-mail's `wait` semantics.
|
|
5758
6117
|
*
|
|
@@ -5765,6 +6124,7 @@ type ReplyInput = string | {
|
|
|
5765
6124
|
text?: string;
|
|
5766
6125
|
html?: string;
|
|
5767
6126
|
from?: string;
|
|
6127
|
+
attachments?: SendAttachment[];
|
|
5768
6128
|
wait?: boolean;
|
|
5769
6129
|
};
|
|
5770
6130
|
interface ForwardInput {
|
|
@@ -5792,9 +6152,31 @@ interface SendResult {
|
|
|
5792
6152
|
smtpResponseCode?: number | null;
|
|
5793
6153
|
smtpResponseText?: string;
|
|
5794
6154
|
}
|
|
6155
|
+
/**
|
|
6156
|
+
* Page of semantic-search results plus pagination meta. Returned by
|
|
6157
|
+
* `PrimitiveClient.semanticSearch`. `data` is the ranked rows (newest
|
|
6158
|
+
* tiebreak first within equal scores); `meta.cursor` is non-null when
|
|
6159
|
+
* there's another page.
|
|
6160
|
+
*/
|
|
6161
|
+
interface SemanticSearchResponse {
|
|
6162
|
+
data: SemanticSearchResult[];
|
|
6163
|
+
meta: SemanticSearchMeta;
|
|
6164
|
+
}
|
|
5795
6165
|
type PrimitiveClientOptions = PrimitiveApiClientOptions;
|
|
5796
6166
|
declare class PrimitiveClient extends PrimitiveApiClient {
|
|
5797
6167
|
send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
|
|
6168
|
+
/**
|
|
6169
|
+
* Semantic / hybrid / keyword search across received and sent mail.
|
|
6170
|
+
*
|
|
6171
|
+
* `POST /v1/semantic-search` on the search host. Returns ranked rows
|
|
6172
|
+
* with matched fields, match-centered excerpts, and an additive
|
|
6173
|
+
* `score_breakdown`. See `SemanticSearchInput` for request fields and
|
|
6174
|
+
* `SemanticSearchResult` for the row shape.
|
|
6175
|
+
*
|
|
6176
|
+
* Requires the Pro plan and the `semantic_search_enabled` entitlement;
|
|
6177
|
+
* otherwise the call throws `PrimitiveApiError` with `status: 403`.
|
|
6178
|
+
*/
|
|
6179
|
+
semanticSearch(input: SemanticSearchInput, options?: RequestOptions): Promise<SemanticSearchResponse>;
|
|
5798
6180
|
/**
|
|
5799
6181
|
* Reply to an inbound email.
|
|
5800
6182
|
*
|
|
@@ -5815,4 +6197,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
5815
6197
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
5816
6198
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
5817
6199
|
//#endregion
|
|
5818
|
-
export { listFunctionLogs as $, ListSentEmailsResponses as $a, RequestResult as $c, GetWebhookSecretResponse as $i, DeliveryStatus as $n, SendMailInput as $o, FunctionTestRunReply as $r, UpdateAccountErrors as $s, CreateEndpointErrors as $t, deleteEndpoint as A, ListFiltersError as Aa, VerifyAgentSignupErrors as Ac, GetSendPermissionsData as Ai, DeleteEmailErrors as An, ResendCliSignupVerificationData as Ao, EmailDetailReply as Ar, StartCliSignupErrors as As, AddDomainError as At, getFunction as B, ListFunctionSecretsError as Ba, VerifyDomainData as Bc, GetStorageStatsData as Bi, DeleteFilterErrors as Bn, RotateWebhookSecretResponse as Bo, ErrorResponse as Br, TestEndpointResponses as Bs, CliLoginStartResult as Bt, cliLogout as C, ListEndpointsData as Ca, UpdateFunctionErrors as Cc, GetFunctionTestRunTraceResponse as Ci, DeleteDomainData as Cn, ReplyToEmailResponses as Co, DownloadRawEmailErrors as Cr, StartCliLoginError as Cs, updateFunction as Ct, createFunctionSecret as D, ListEndpointsResponses as Da, VerifiedDomain as Dc, GetInboxStatusErrors as Di, DeleteDomainResponses as Dn, ResendAgentSignupVerificationInput as Do, EmailAttachment as Dr, StartCliLoginResponses as Ds, Account as Dt, createFunction as E, ListEndpointsResponse as Ea, UpdateFunctionResponses as Ec, GetInboxStatusError as Ei, DeleteDomainResponse as En, ResendAgentSignupVerificationErrors as Eo, EmailAddress as Er, StartCliLoginResponse as Es, verifyDomain as Et, downloadAttachments as F, ListFunctionLogsError as Fa, VerifyCliSignupError as Fc, GetSentEmailData as Fi, DeleteEndpointErrors as Fn, ResendCliSignupVerificationResponses as Fo, EmailSearchResult as Fr, SuccessEnvelope as Fs, AgentOrgRef as Ft, getStorageStats as G, ListFunctionsError as Ga, WebhookSecret as Gc, GetThreadData as Gi, DeleteFunctionErrors as Gn, SearchEmailsResponse as Go, FunctionLogRow as Gr, TestFunctionResponses as Gs, CliLogoutResponse as Gt, getInboxStatus as H, ListFunctionSecretsResponse as Ha, VerifyDomainErrors as Hc, GetStorageStatsErrors as Hi, DeleteFilterResponses as Hn, SearchEmailsData as Ho, FunctionDeployStatus as Hr, TestFunctionError as Hs, CliLogoutError as Ht, downloadDomainZoneFile as I, ListFunctionLogsErrors as Ia, VerifyCliSignupErrors as Ic, GetSentEmailError as Ii, DeleteEndpointResponse as In, ResourceId as Io, EmailStatus as Ir, TestEndpointData as Is, AgentSignupResendResult as It, listDeliveries as J, ListFunctionsResponses as Ja, ClientOptions as Jc, GetThreadResponse as Ji, DeleteFunctionSecretData as Jn, SendEmailError as Jo, FunctionTestRun as Jr, Thread as Js, CliSignupResendResult as Jt, getThread as K, ListFunctionsErrors as Ka, createClient as Kc, GetThreadError as Ki, DeleteFunctionResponse as Kn, SearchEmailsResponses as Ko, FunctionSecretListItem as Kr, TestInvocationResult as Ks, CliLogoutResponses as Kt, downloadRawEmail as L, ListFunctionLogsResponse as La, VerifyCliSignupInput as Lc, GetSentEmailErrors as Li, DeleteEndpointResponses as Ln, RotateWebhookSecretData as Lo, EmailSummary as Lr, TestEndpointError as Ls, AgentSignupStartResult as Lt, deleteFunction as M, ListFiltersResponse as Ma, VerifyAgentSignupResponse as Mc, GetSendPermissionsErrors as Mi, DeleteEmailResponses as Mn, ResendCliSignupVerificationErrors as Mo, EmailSearchFacets as Mr, StartCliSignupResponse as Ms, AddDomainInput as Mt, deleteFunctionSecret as N, ListFiltersResponses as Na, VerifyAgentSignupResponses as Nc, GetSendPermissionsResponse as Ni, DeleteEndpointData as Nn, ResendCliSignupVerificationInput as No, EmailSearchHighlights as Nr, StartCliSignupResponses as Ns, AddDomainResponse as Nt, deleteDomain as O, ListEnvelope as Oa, VerifyAgentSignupData as Oc, GetInboxStatusResponse as Oi, DeleteEmailData as On, ResendAgentSignupVerificationResponse as Oo, EmailAuth as Or, StartCliSignupData as Os, AccountUpdated as Ot, discardEmailContent as P, ListFunctionLogsData as Pa, VerifyCliSignupData as Pc, GetSendPermissionsResponses as Pi, DeleteEndpointError as Pn, ResendCliSignupVerificationResponse as Po, EmailSearchMeta as Pr, StorageStats as Ps, AddDomainResponses as Pt, listFilters as Q, ListSentEmailsResponse as Qa, RequestOptions$2 as Qc, GetWebhookSecretErrors as Qi, DeleteFunctionSecretResponses as Qn, SendMailAttachment as Qo, FunctionTestRunOutboundRequest as Qr, UpdateAccountError as Qs, CreateEndpointError as Qt, getAccount as R, ListFunctionLogsResponses as Ra, VerifyCliSignupResponse as Rc, GetSentEmailResponse as Ri, DeleteFilterData as Rn, RotateWebhookSecretError as Ro, EmailWebhookStatus as Rr, TestEndpointErrors as Rs, AgentSignupVerifyResult as Rt, addDomain as S, ListEmailsResponses as Sa, UpdateFunctionError as Sc, GetFunctionTestRunTraceErrors as Si, Cursor as Sn, ReplyToEmailResponse as So, DownloadRawEmailError as Sr, StartCliLoginData as Ss, updateFilter as St, createFilter as T, ListEndpointsErrors as Ta, UpdateFunctionResponse as Tc, GetInboxStatusData as Ti, DeleteDomainErrors as Tn, ResendAgentSignupVerificationError as To, DownloadRawEmailResponses as Tr, StartCliLoginInput as Ts, verifyCliSignup as Tt, getSendPermissions as U, ListFunctionSecretsResponses as Ua, VerifyDomainResponse as Uc, GetStorageStatsResponse as Ui, DeleteFunctionData as Un, SearchEmailsError as Uo, FunctionDetail as Ur, TestFunctionErrors as Us, CliLogoutErrors as Ut, getFunctionTestRunTrace as V, ListFunctionSecretsErrors as Va, VerifyDomainError as Vc, GetStorageStatsError as Vi, DeleteFilterResponse as Vn, RotateWebhookSecretResponses as Vo, Filter as Vr, TestFunctionData as Vs, CliLogoutData as Vt, getSentEmail as W, ListFunctionsData as Wa, VerifyDomainResponses as Wc, GetStorageStatsResponses as Wi, DeleteFunctionError as Wn, SearchEmailsErrors as Wo, FunctionListItem as Wr, TestFunctionResponse as Ws, CliLogoutInput as Wt, listEmails as X, ListSentEmailsError as Xa, CreateClientConfig as Xc, GetWebhookSecretData as Xi, DeleteFunctionSecretErrors as Xn, SendEmailResponse as Xo, FunctionTestRunDeliveryEndpoint as Xr, UnverifiedDomain as Xs, CliSignupVerifyResult as Xt, listDomains as Y, ListSentEmailsData as Ya, Config as Yc, GetThreadResponses as Yi, DeleteFunctionSecretError as Yn, SendEmailErrors as Yo, FunctionTestRunDelivery as Yr, ThreadMessage as Ys, CliSignupStartResult as Yt, listEndpoints as Z, ListSentEmailsErrors as Za, Options$1 as Zc, GetWebhookSecretError as Zi, DeleteFunctionSecretResponse as Zn, SendEmailResponses as Zo, FunctionTestRunInboundEmail as Zr, UpdateAccountData as Zs, CreateEndpointData as Zt, PrimitiveApiClientOptions as _, ListDomainsResponses as _a, UpdateFilterErrors as _c, GetFunctionErrors as _i, CreateFunctionSecretError as _n, ReplayEmailWebhooksResponses as _o, DownloadDomainZoneFileError as _r, StartAgentSignupError as _s, testEndpoint as _t, RequestOptions as a, InboxStatusNextAction as aa, UpdateDomainErrors as ac, GetAccountData as ai, CreateFilterErrors as an, PollCliLoginInput as ao, DiscardEmailContentResponse as ar, SendPermissionYourDomain as as, replayEmailWebhooks as at, RequestOptions$1 as b, ListEmailsErrors as ba, UpdateFilterResponses as bc, GetFunctionTestRunTraceData as bi, CreateFunctionSecretResponse as bn, ReplyToEmailError as bo, DownloadDomainZoneFileResponses as br, StartAgentSignupResponse as bs, updateDomain as bt, SendThreadInput as c, ListDeliveriesData as ca, UpdateDomainResponses as cc, GetAccountResponse as ci, CreateFilterResponses as cn, ReplayDeliveryData as co, Domain as cr, SentEmailStatus as cs, resendCliSignupVerification as ct, PRIMITIVE_SIGNATURE_HEADER as d, ListDeliveriesResponse as da, UpdateEndpointErrors as dc, GetEmailError as di, CreateFunctionErrors as dn, ReplayDeliveryResponse as do, DownloadAttachmentsData as dr, SetFunctionSecretError as ds, searchEmails as dt, GetWebhookSecretResponses as ea, UpdateAccountInput as ec, FunctionTestRunSend as ei, ResponseStyle as el, CreateEndpointInput as en, PaginationMeta as eo, DeliverySummary as er, SendMailResult as es, listFunctionSecrets as et, VerifyOptions as f, ListDeliveriesResponses as fa, UpdateEndpointInput as fc, GetEmailErrors as fi, CreateFunctionInput as fn, ReplayDeliveryResponses as fo, DownloadAttachmentsError as fr, SetFunctionSecretErrors as fs, sendEmail as ft, PrimitiveApiClient as g, ListDomainsResponse as ga, UpdateFilterError as gc, GetFunctionError as gi, CreateFunctionSecretData as gn, ReplayEmailWebhooksResponse as go, DownloadDomainZoneFileData as gr, StartAgentSignupData as gs, startCliSignup as gt, DEFAULT_API_BASE_URL_2 as h, ListDomainsErrors as ha, UpdateFilterData as hc, GetFunctionData as hi, CreateFunctionResult as hn, ReplayEmailWebhooksErrors as ho, DownloadAttachmentsResponses as hr, SetFunctionSecretResponses as hs, startCliLogin as ht, ReplyInput as i, InboxStatusFunctionSummary as ia, UpdateDomainError as ic, GateFix as ii, CreateFilterError as in, PollCliLoginErrors as io, DiscardEmailContentErrors as ir, SendPermissionRule as is, replayDelivery as it, deleteFilter as j, ListFiltersErrors as ja, VerifyAgentSignupInput as jc, GetSendPermissionsError as ji, DeleteEmailResponse as jn, ResendCliSignupVerificationError as jo, EmailSearchFacetBucket as jr, StartCliSignupInput as js, AddDomainErrors as jt, deleteEmail as k, ListFiltersData as ka, VerifyAgentSignupError as kc, GetInboxStatusResponses as ki, DeleteEmailError as kn, ResendAgentSignupVerificationResponses as ko, EmailDetail as kr, StartCliSignupError as ks, AddDomainData as kt, client as l, ListDeliveriesError as la, UpdateEndpointData as lc, GetAccountResponses as li, CreateFunctionData as ln, ReplayDeliveryError as lo, DomainDnsRecord as lr, SentEmailSummary as ls, rotateWebhookSecret as lt, DEFAULT_API_BASE_URL_1 as m, ListDomainsError as ma, UpdateEndpointResponses as mc, GetEmailResponses as mi, CreateFunctionResponses as mn, ReplayEmailWebhooksError as mo, DownloadAttachmentsResponse as mr, SetFunctionSecretResponse as ms, startAgentSignup as mt, PrimitiveClient as n, InboxStatusDomain as na, UpdateAccountResponses as nc, FunctionTestRunTrace as ni, Auth as nl, CreateEndpointResponses as nn, PollCliLoginData as no, DiscardEmailContentData as nr, SendPermissionAnyRecipient as ns, listSentEmails as nt, SendInput as o, InboxStatusRecentEmailSummary as oa, UpdateDomainInput as oc, GetAccountError as oi, CreateFilterInput as on, PollCliLoginResponse as oo, DiscardEmailContentResponses as or, SendPermissionsMeta as os, replyToEmail as ot, verifyWebhookSignature as p, ListDomainsData as pa, UpdateEndpointResponse as pc, GetEmailResponse as pi, CreateFunctionResponse as pn, ReplayEmailWebhooksData as po, DownloadAttachmentsErrors as pr, SetFunctionSecretInput as ps, setFunctionSecret as pt, getWebhookSecret as q, ListFunctionsResponse as qa, Client as qc, GetThreadErrors as qi, DeleteFunctionResponses as qn, SendEmailData as qo, FunctionSecretWriteResult as qr, TestResult as qs, CliLogoutResult as qt, PrimitiveClientOptions as r, InboxStatusEndpointSummary as ra, UpdateDomainData as rc, GateDenial as ri, CreateFilterData as rn, PollCliLoginError as ro, DiscardEmailContentError as rr, SendPermissionManagedZone as rs, pollCliLogin as rt, SendResult as s, Limit as sa, UpdateDomainResponse as sc, GetAccountErrors as si, CreateFilterResponse as sn, PollCliLoginResponses as so, DkimSignature as sr, SentEmailDetail as ss, resendAgentSignupVerification as st, ForwardInput as t, InboxStatus as ta, UpdateAccountResponse as tc, FunctionTestRunState as ti, createConfig as tl, CreateEndpointResponse as tn, ParsedEmailData as to, DiscardContentResult as tr, SendPermissionAddress as ts, listFunctions as tt, createPrimitiveClient as u, ListDeliveriesErrors as ua, UpdateEndpointError as uc, GetEmailData as ui, CreateFunctionError as un, ReplayDeliveryErrors as uo, DomainVerifyResult as ur, SetFunctionSecretData as us, sdk_gen_d_exports as ut, PrimitiveApiError as v, ListEmailsData as va, UpdateFilterInput as vc, GetFunctionResponse as vi, CreateFunctionSecretErrors as vn, ReplayResult as vo, DownloadDomainZoneFileErrors as vr, StartAgentSignupErrors as vs, testFunction as vt, createEndpoint as w, ListEndpointsError as wa, UpdateFunctionInput as wc, GetFunctionTestRunTraceResponses as wi, DeleteDomainError as wn, ResendAgentSignupVerificationData as wo, DownloadRawEmailResponse as wr, StartCliLoginErrors as ws, verifyAgentSignup as wt, createPrimitiveApiClient as x, ListEmailsResponse as xa, UpdateFunctionData as xc, GetFunctionTestRunTraceError as xi, CreateFunctionSecretResponses as xn, ReplyToEmailErrors as xo, DownloadRawEmailData as xr, StartAgentSignupResponses as xs, updateEndpoint as xt, PrimitiveApiErrorDetails as y, ListEmailsError as ya, UpdateFilterResponse as yc, GetFunctionResponses as yi, CreateFunctionSecretInput as yn, ReplyToEmailData as yo, DownloadDomainZoneFileResponse as yr, StartAgentSignupInput as ys, updateAccount as yt, getEmail as z, ListFunctionSecretsData as za, VerifyCliSignupResponses as zc, GetSentEmailResponses as zi, DeleteFilterError as zn, RotateWebhookSecretErrors as zo, Endpoint as zr, TestEndpointResponse as zs, CliLoginPollResult as zt };
|
|
6200
|
+
export { listEmails as $, ListFunctionSecretsResponse as $a, VerifyAgentSignupInput as $c, GetStorageStatsErrors as $i, DeleteFunctionResponses as $n, SearchEmailsData as $o, FunctionSecretWriteResult as $r, StartCliSignupInput as $s, CliSignupStartResult as $t, deleteDomain as A, ListEmailsError as Aa, UpdateDomainResponses as Ac, GetFunctionResponses as Ai, DeleteDomainError as An, ReplyToEmailData as Ao, DownloadRawEmailResponse as Ar, SentEmailStatus as As, verifyDomain as At, getAccount as B, ListFiltersData as Ba, UpdateFilterInput as Bc, GetInboxStatusResponses as Bi, DeleteEndpointError as Bn, ResendAgentSignupVerificationResponses as Bo, EmailSearchMeta as Br, StartAgentSignupErrors as Bs, AgentSignupResendResult as Bt, createPrimitiveApiClient as C, ListDeliveriesResponses as Ca, UpdateAccountResponse as Cc, GetEmailErrors as Ci, createConfig as Cl, CreateFunctionSecretError as Cn, ReplayDeliveryResponses as Co, DownloadDomainZoneFileError as Cr, SendPermissionAddress as Cs, updateAccount as Ct, createFilter as D, ListDomainsResponse as Da, UpdateDomainErrors as Dc, GetFunctionError as Di, CreateFunctionSecretResponses as Dn, ReplayEmailWebhooksResponse as Do, DownloadRawEmailData as Dr, SendPermissionYourDomain as Ds, updateFunction as Dt, createEndpoint as E, ListDomainsErrors as Ea, UpdateDomainError as Ec, GetFunctionData as Ei, CreateFunctionSecretResponse as En, ReplayEmailWebhooksErrors as Eo, DownloadDomainZoneFileResponses as Er, SendPermissionRule as Es, updateFilter as Et, deleteFunctionSecret as F, ListEndpointsError as Fa, UpdateEndpointResponse as Fc, GetFunctionTestRunTraceResponses as Fi, DeleteEmailError as Fn, ResendAgentSignupVerificationData as Fo, EmailDetail as Fr, SetFunctionSecretInput as Fs, AddDomainErrors as Ft, getInboxStatus as G, ListFunctionLogsData as Ga, UpdateFunctionErrors as Gc, GetSendPermissionsResponses as Gi, DeleteFilterError as Gn, ResendCliSignupVerificationResponse as Go, Endpoint as Gr, StartCliLoginError as Gs, CliLogoutData as Gt, getEmail as H, ListFiltersErrors as Ha, UpdateFilterResponses as Hc, GetSendPermissionsError as Hi, DeleteEndpointResponse as Hn, ResendCliSignupVerificationError as Ho, EmailStatus as Hr, StartAgentSignupResponse as Hs, AgentSignupVerifyResult as Ht, discardEmailContent as I, ListEndpointsErrors as Ia, UpdateEndpointResponses as Ic, GetInboxStatusData as Ii, DeleteEmailErrors as In, ResendAgentSignupVerificationError as Io, EmailDetailReply as Ir, SetFunctionSecretResponse as Is, AddDomainInput as It, getStorageStats as J, ListFunctionLogsResponse as Ja, UpdateFunctionResponses as Jc, GetSentEmailErrors as Ji, DeleteFilterResponses as Jn, RotateWebhookSecretData as Jo, FunctionDeployStatus as Jr, StartCliLoginResponse as Js, CliLogoutInput as Jt, getSendPermissions as K, ListFunctionLogsError as Ka, UpdateFunctionInput as Kc, GetSentEmailData as Ki, DeleteFilterErrors as Kn, ResendCliSignupVerificationResponses as Ko, ErrorResponse as Kr, StartCliLoginErrors as Ks, CliLogoutError as Kt, downloadAttachments as L, ListEndpointsResponse as La, UpdateFilterData as Lc, GetInboxStatusError as Li, DeleteEmailResponse as Ln, ResendAgentSignupVerificationErrors as Lo, EmailSearchFacetBucket as Lr, SetFunctionSecretResponses as Ls, AddDomainResponse as Lt, deleteEndpoint as M, ListEmailsResponse as Ma, UpdateEndpointError as Mc, GetFunctionTestRunTraceError as Mi, DeleteDomainResponse as Mn, ReplyToEmailErrors as Mo, EmailAddress as Mr, SetFunctionSecretData as Ms, AccountUpdated as Mt, deleteFilter as N, ListEmailsResponses as Na, UpdateEndpointErrors as Nc, GetFunctionTestRunTraceErrors as Ni, DeleteDomainResponses as Nn, ReplyToEmailResponse as No, EmailAttachment as Nr, SetFunctionSecretError as Ns, AddDomainData as Nt, createFunction as O, ListDomainsResponses as Oa, UpdateDomainInput as Oc, GetFunctionErrors as Oi, Cursor as On, ReplayEmailWebhooksResponses as Oo, DownloadRawEmailError as Or, SendPermissionsMeta as Os, verifyAgentSignup as Ot, deleteFunction as P, ListEndpointsData as Pa, UpdateEndpointInput as Pc, GetFunctionTestRunTraceResponse as Pi, DeleteEmailData as Pn, ReplyToEmailResponses as Po, EmailAuth as Pr, SetFunctionSecretErrors as Ps, AddDomainError as Pt, listDomains as Q, ListFunctionSecretsErrors as Qa, VerifyAgentSignupErrors as Qc, GetStorageStatsError as Qi, DeleteFunctionResponse as Qn, RotateWebhookSecretResponses as Qo, FunctionSecretListItem as Qr, StartCliSignupErrors as Qs, CliSignupResendResult as Qt, downloadDomainZoneFile as R, ListEndpointsResponses as Ra, UpdateFilterError as Rc, GetInboxStatusErrors as Ri, DeleteEmailResponses as Rn, ResendAgentSignupVerificationInput as Ro, EmailSearchFacets as Rr, StartAgentSignupData as Rs, AddDomainResponses as Rt, RequestOptions$1 as S, ListDeliveriesResponse as Sa, UpdateAccountInput as Sc, GetEmailError as Si, ResponseStyle as Sl, CreateFunctionSecretData as Sn, ReplayDeliveryResponse as So, DownloadDomainZoneFileData as Sr, SendMailResult as Ss, testFunction as St, cliLogout as T, ListDomainsError as Ta, UpdateDomainData as Tc, GetEmailResponses as Ti, CreateFunctionSecretInput as Tn, ReplayEmailWebhooksError as To, DownloadDomainZoneFileResponse as Tr, SendPermissionManagedZone as Ts, updateEndpoint as Tt, getFunction as U, ListFiltersResponse as Ua, UpdateFunctionData as Uc, GetSendPermissionsErrors as Ui, DeleteEndpointResponses as Un, ResendCliSignupVerificationErrors as Uo, EmailSummary as Ur, StartAgentSignupResponses as Us, CliLoginPollResult as Ut, getConversation as V, ListFiltersError as Va, UpdateFilterResponse as Vc, GetSendPermissionsData as Vi, DeleteEndpointErrors as Vn, ResendCliSignupVerificationData as Vo, EmailSearchResult as Vr, StartAgentSignupInput as Vs, AgentSignupStartResult as Vt, getFunctionTestRunTrace as W, ListFiltersResponses as Wa, UpdateFunctionError as Wc, GetSendPermissionsResponse as Wi, DeleteFilterData as Wn, ResendCliSignupVerificationInput as Wo, EmailWebhookStatus as Wr, StartCliLoginData as Ws, CliLoginStartResult as Wt, getWebhookSecret as X, ListFunctionSecretsData as Xa, VerifyAgentSignupData as Xc, GetSentEmailResponses as Xi, DeleteFunctionError as Xn, RotateWebhookSecretErrors as Xo, FunctionListItem as Xr, StartCliSignupData as Xs, CliLogoutResponses as Xt, getThread as Y, ListFunctionLogsResponses as Ya, VerifiedDomain as Yc, GetSentEmailResponse as Yi, DeleteFunctionData as Yn, RotateWebhookSecretError as Yo, FunctionDetail as Yr, StartCliLoginResponses as Ys, CliLogoutResponse as Yt, listDeliveries as Z, ListFunctionSecretsError as Za, VerifyAgentSignupError as Zc, GetStorageStatsData as Zi, DeleteFunctionErrors as Zn, RotateWebhookSecretResponse as Zo, FunctionLogRow as Zr, StartCliSignupError as Zs, CliLogoutResult as Zt, DEFAULT_API_BASE_URL_2 as _, InboxStatusRecentEmailSummary as _a, ThreadMessage as _c, GetConversationError as _i, Config as _l, CreateFunctionErrors as _n, PollCliLoginResponse as _o, DownloadAttachmentsData as _r, SendEmailErrors as _s, setFunctionSecret as _t, RequestOptions as a, GetThreadResponse as aa, TestEndpointError as ac, FunctionTestRunReply as ai, VerifyCliSignupInput as al, CreateEndpointErrors as an, ListFunctionsResponses as ao, DeliveryStatus as ar, SemanticSearchData as as, listSentEmails as at, PrimitiveApiError as b, ListDeliveriesError as ba, UpdateAccountError as bc, GetConversationResponses as bi, RequestOptions$2 as bl, CreateFunctionResponses as bn, ReplayDeliveryError as bo, DownloadAttachmentsResponse as br, SendMailAttachment as bs, startCliSignup as bt, SendInput as c, GetWebhookSecretError as ca, TestEndpointResponses as cc, FunctionTestRunTrace as ci, VerifyDomainData as cl, CreateEndpointResponses as cn, ListSentEmailsErrors as co, DiscardEmailContentData as cr, SemanticSearchField as cs, replayEmailWebhooks as ct, client as d, GetWebhookSecretResponses as da, TestFunctionErrors as dc, GetAccountData as di, VerifyDomainResponse as dl, CreateFilterErrors as dn, PaginationMeta as do, DiscardEmailContentResponse as dr, SemanticSearchResponses as ds, resendCliSignupVerification as dt, GetStorageStatsResponse as ea, StartCliSignupResponse as ec, FunctionTestRun as ei, VerifyAgentSignupResponse as el, CliSignupVerifyResult as en, ListFunctionSecretsResponses as eo, DeleteFunctionSecretData as er, SearchEmailsError as es, listEndpoints as et, createPrimitiveClient as f, InboxStatus as fa, TestFunctionResponse as fc, GetAccountError as fi, VerifyDomainResponses as fl, CreateFilterInput as fn, ParsedEmailData as fo, DiscardEmailContentResponses as fr, SemanticSearchResult as fs, rotateWebhookSecret as ft, DEFAULT_API_BASE_URL_1 as g, InboxStatusNextAction as ga, Thread as gc, GetConversationData as gi, ClientOptions as gl, CreateFunctionError as gn, PollCliLoginInput as go, DomainVerifyResult as gr, SendEmailError as gs, sendEmail as gt, verifyWebhookSignature as h, InboxStatusFunctionSummary as ha, TestResult as hc, GetAccountResponses as hi, Client as hl, CreateFunctionData as hn, PollCliLoginErrors as ho, DomainDnsRecord as hr, SendEmailData as hs, semanticSearch as ht, ReplyInput as i, GetThreadErrors as ia, TestEndpointData as ic, FunctionTestRunOutboundRequest as ii, VerifyCliSignupErrors as il, CreateEndpointError as in, ListFunctionsResponse as io, DeleteFunctionSecretResponses as ir, SemanticSearchCoverage as is, listFunctions as it, deleteEmail as j, ListEmailsErrors as ja, UpdateEndpointData as jc, GetFunctionTestRunTraceData as ji, DeleteDomainErrors as jn, ReplyToEmailError as jo, DownloadRawEmailResponses as jr, SentEmailSummary as js, Account as jt, createFunctionSecret as k, ListEmailsData as ka, UpdateDomainResponse as kc, GetFunctionResponse as ki, DeleteDomainData as kn, ReplayResult as ko, DownloadRawEmailErrors as kr, SentEmailDetail as ks, verifyCliSignup as kt, SendResult as l, GetWebhookSecretErrors as la, TestFunctionData as lc, GateDenial as li, VerifyDomainError as ll, CreateFilterData as ln, ListSentEmailsResponse as lo, DiscardEmailContentError as lr, SemanticSearchInput as ls, replyToEmail as lt, VerifyOptions as m, InboxStatusEndpointSummary as ma, TestInvocationResult as mc, GetAccountResponse as mi, createClient as ml, CreateFilterResponses as mn, PollCliLoginError as mo, Domain as mr, SemanticSearchSnippet as ms, searchEmails as mt, PrimitiveClient as n, GetThreadData as na, StorageStats as nc, FunctionTestRunDeliveryEndpoint as ni, VerifyCliSignupData as nl, ConversationMessage as nn, ListFunctionsError as no, DeleteFunctionSecretErrors as nr, SearchEmailsResponse as ns, listFunctionLogs as nt, SemanticSearchResponse as o, GetThreadResponses as oa, TestEndpointErrors as oc, FunctionTestRunSend as oi, VerifyCliSignupResponse as ol, CreateEndpointInput as on, ListSentEmailsData as oo, DeliverySummary as or, SemanticSearchError as os, pollCliLogin as ot, PRIMITIVE_SIGNATURE_HEADER as p, InboxStatusDomain as pa, TestFunctionResponses as pc, GetAccountErrors as pi, WebhookSecret as pl, CreateFilterResponse as pn, PollCliLoginData as po, DkimSignature as pr, SemanticSearchScoreBreakdown as ps, sdk_gen_d_exports as pt, getSentEmail as q, ListFunctionLogsErrors as qa, UpdateFunctionResponse as qc, GetSentEmailError as qi, DeleteFilterResponse as qn, ResourceId as qo, Filter as qr, StartCliLoginInput as qs, CliLogoutErrors as qt, PrimitiveClientOptions as r, GetThreadError as ra, SuccessEnvelope as rc, FunctionTestRunInboundEmail as ri, VerifyCliSignupError as rl, CreateEndpointData as rn, ListFunctionsErrors as ro, DeleteFunctionSecretResponse as rr, SearchEmailsResponses as rs, listFunctionSecrets as rt, SendAttachment as s, GetWebhookSecretData as sa, TestEndpointResponse as sc, FunctionTestRunState as si, VerifyCliSignupResponses as sl, CreateEndpointResponse as sn, ListSentEmailsError as so, DiscardContentResult as sr, SemanticSearchErrors as ss, replayDelivery as st, ForwardInput as t, GetStorageStatsResponses as ta, StartCliSignupResponses as tc, FunctionTestRunDelivery as ti, VerifyAgentSignupResponses as tl, Conversation as tn, ListFunctionsData as to, DeleteFunctionSecretError as tr, SearchEmailsErrors as ts, listFilters as tt, SendThreadInput as u, GetWebhookSecretResponse as ua, TestFunctionError as uc, GateFix as ui, VerifyDomainErrors as ul, CreateFilterError as un, ListSentEmailsResponses as uo, DiscardEmailContentErrors as ur, SemanticSearchMeta as us, resendAgentSignupVerification as ut, PrimitiveApiClient as v, Limit as va, UnverifiedDomain as vc, GetConversationErrors as vi, CreateClientConfig as vl, CreateFunctionInput as vn, PollCliLoginResponses as vo, DownloadAttachmentsError as vr, SendEmailResponse as vs, startAgentSignup as vt, addDomain as w, ListDomainsData as wa, UpdateAccountResponses as wc, GetEmailResponse as wi, Auth as wl, CreateFunctionSecretErrors as wn, ReplayEmailWebhooksData as wo, DownloadDomainZoneFileErrors as wr, SendPermissionAnyRecipient as ws, updateDomain as wt, PrimitiveApiErrorDetails as x, ListDeliveriesErrors as xa, UpdateAccountErrors as xc, GetEmailData as xi, RequestResult as xl, CreateFunctionResult as xn, ReplayDeliveryErrors as xo, DownloadAttachmentsResponses as xr, SendMailInput as xs, testEndpoint as xt, PrimitiveApiClientOptions as y, ListDeliveriesData as ya, UpdateAccountData as yc, GetConversationResponse as yi, Options$1 as yl, CreateFunctionResponse as yn, ReplayDeliveryData as yo, DownloadAttachmentsErrors as yr, SendEmailResponses as ys, startCliLogin as yt, downloadRawEmail as z, ListEnvelope as za, UpdateFilterErrors as zc, GetInboxStatusResponse as zi, DeleteEndpointData as zn, ResendAgentSignupVerificationResponse as zo, EmailSearchHighlights as zr, StartAgentSignupError as zs, AgentOrgRef as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { b as PrimitiveApiError, 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 } from "./index-CBt3RDtQ.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 { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-
|
|
1
|
+
import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-2gC06vxj.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-CZx0VGSj.js";
|
|
2
2
|
export { openapiDocument, operationManifest };
|