@aventurevc/api-schemas 0.8.512 → 0.8.514
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.
|
@@ -9,12 +9,14 @@ declare const EnrichmentSchemaDefinition: z.ZodObject<{
|
|
|
9
9
|
AMBIGUOUS: "AMBIGUOUS";
|
|
10
10
|
NOT_FOUND: "NOT_FOUND";
|
|
11
11
|
SUBSCRIPTION_REQUIRED: "SUBSCRIPTION_REQUIRED";
|
|
12
|
+
TURN_CAPPED: "TURN_CAPPED";
|
|
12
13
|
}>, z.ZodString]> & {
|
|
13
14
|
enum: {
|
|
14
15
|
ALLOWANCE_EXHAUSTED: "ALLOWANCE_EXHAUSTED";
|
|
15
16
|
AMBIGUOUS: "AMBIGUOUS";
|
|
16
17
|
NOT_FOUND: "NOT_FOUND";
|
|
17
18
|
SUBSCRIPTION_REQUIRED: "SUBSCRIPTION_REQUIRED";
|
|
19
|
+
TURN_CAPPED: "TURN_CAPPED";
|
|
18
20
|
};
|
|
19
21
|
}>>;
|
|
20
22
|
run: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and additional usage is off or at its spend cap or prepaid credit; AMBIGUOUS when the record's profile matches more than one current record; SUBSCRIPTION_REQUIRED when the subscription stopped covering research mid-batch, such as additional usage while past due. Readers accept members they do not yet know
|
|
3
|
+
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and additional usage is off or at its spend cap or prepaid credit; AMBIGUOUS when the record's profile matches more than one current record; TURN_CAPPED when a queued run has reached its turn limit and cannot accept an edit; SUBSCRIPTION_REQUIRED when the subscription stopped covering research mid-batch, such as additional usage while past due. Readers accept members they do not yet know
|
|
4
4
|
*
|
|
5
5
|
* @openapiSchema EnrichmentRefusalType
|
|
6
6
|
* @endpoint POST /v1/enrichments
|
|
@@ -13,12 +13,14 @@ export declare const EnrichmentRefusalTypeSchema: z.ZodUnion<readonly [z.ZodEnum
|
|
|
13
13
|
AMBIGUOUS: "AMBIGUOUS";
|
|
14
14
|
NOT_FOUND: "NOT_FOUND";
|
|
15
15
|
SUBSCRIPTION_REQUIRED: "SUBSCRIPTION_REQUIRED";
|
|
16
|
+
TURN_CAPPED: "TURN_CAPPED";
|
|
16
17
|
}>, z.ZodString]> & {
|
|
17
18
|
enum: {
|
|
18
19
|
ALLOWANCE_EXHAUSTED: "ALLOWANCE_EXHAUSTED";
|
|
19
20
|
AMBIGUOUS: "AMBIGUOUS";
|
|
20
21
|
NOT_FOUND: "NOT_FOUND";
|
|
21
22
|
SUBSCRIPTION_REQUIRED: "SUBSCRIPTION_REQUIRED";
|
|
23
|
+
TURN_CAPPED: "TURN_CAPPED";
|
|
22
24
|
};
|
|
23
25
|
};
|
|
24
26
|
export type EnrichmentRefusalType = z.infer<typeof EnrichmentRefusalTypeSchema>;
|
|
@@ -5,9 +5,10 @@ const EnrichmentRefusalTypeSchemaKnownMembers = z.enum([
|
|
|
5
5
|
"ALLOWANCE_EXHAUSTED",
|
|
6
6
|
"AMBIGUOUS",
|
|
7
7
|
"SUBSCRIPTION_REQUIRED",
|
|
8
|
+
"TURN_CAPPED",
|
|
8
9
|
]);
|
|
9
10
|
/**
|
|
10
|
-
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and additional usage is off or at its spend cap or prepaid credit; AMBIGUOUS when the record's profile matches more than one current record; SUBSCRIPTION_REQUIRED when the subscription stopped covering research mid-batch, such as additional usage while past due. Readers accept members they do not yet know
|
|
11
|
+
* Why a batch enrichment filed no run: NOT_FOUND for an unknown record; ALLOWANCE_EXHAUSTED when the record's company or person research allowance is spent and additional usage is off or at its spend cap or prepaid credit; AMBIGUOUS when the record's profile matches more than one current record; TURN_CAPPED when a queued run has reached its turn limit and cannot accept an edit; SUBSCRIPTION_REQUIRED when the subscription stopped covering research mid-batch, such as additional usage while past due. Readers accept members they do not yet know
|
|
11
12
|
*
|
|
12
13
|
* @openapiSchema EnrichmentRefusalType
|
|
13
14
|
* @endpoint POST /v1/enrichments
|
|
@@ -54,6 +54,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
54
54
|
billing_allowance_exhausted: "billing_allowance_exhausted";
|
|
55
55
|
billing_complimentary_term: "billing_complimentary_term";
|
|
56
56
|
billing_credit_checkout_closed: "billing_credit_checkout_closed";
|
|
57
|
+
billing_credit_grant_in_flight: "billing_credit_grant_in_flight";
|
|
57
58
|
billing_plan_change_required: "billing_plan_change_required";
|
|
58
59
|
callback_challenge_failed: "callback_challenge_failed";
|
|
59
60
|
callback_connection_refused: "callback_connection_refused";
|
|
@@ -61,6 +62,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
61
62
|
callback_http_5xx: "callback_http_5xx";
|
|
62
63
|
callback_timeout: "callback_timeout";
|
|
63
64
|
callback_tls_error: "callback_tls_error";
|
|
65
|
+
caller_admission_expired: "caller_admission_expired";
|
|
64
66
|
clerk_m2m_unavailable: "clerk_m2m_unavailable";
|
|
65
67
|
clerk_oauth_unavailable: "clerk_oauth_unavailable";
|
|
66
68
|
cvc_inherited_headcount: "cvc_inherited_headcount";
|
|
@@ -92,6 +94,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
92
94
|
logo_source_dead: "logo_source_dead";
|
|
93
95
|
lookup_still_running: "lookup_still_running";
|
|
94
96
|
news_catalog_revision_discarded: "news_catalog_revision_discarded";
|
|
97
|
+
news_page_changed: "news_page_changed";
|
|
95
98
|
news_rss_article_fetch_failed: "news_rss_article_fetch_failed";
|
|
96
99
|
news_rss_feed_fetch_failed: "news_rss_feed_fetch_failed";
|
|
97
100
|
news_similarity_embedding_unavailable: "news_similarity_embedding_unavailable";
|
|
@@ -62,6 +62,8 @@ export const ProblemDetailSchema = z.object({
|
|
|
62
62
|
"billing_additional_usage_cap_reached",
|
|
63
63
|
/** The prepaid credit Checkout is paid, expired, or closed. Retire this purchase intent before explicitly starting another Checkout; ambiguous transport failures and in-progress conflicts must keep the original key. */
|
|
64
64
|
"billing_credit_checkout_closed",
|
|
65
|
+
/** A credit grant is still being recorded; retry after it settles. */
|
|
66
|
+
"billing_credit_grant_in_flight",
|
|
65
67
|
/** Checkout refused: the account already has a continuing Stripe subscription. Agent action: change its plan with POST /v1/billing/plan-changes; never retry Checkout. */
|
|
66
68
|
"billing_plan_change_required",
|
|
67
69
|
/** A signed-out purchase named an email that already belongs to an account. Agent action: sign that account in with its email code, then subscribe signed in; never retry the signed-out purchase for that email. */
|
|
@@ -74,6 +76,8 @@ export const ProblemDetailSchema = z.object({
|
|
|
74
76
|
"query_deadline_shed",
|
|
75
77
|
/** Read capacity was saturated; retry after retryAfterSeconds. */
|
|
76
78
|
"primary_read_saturated",
|
|
79
|
+
/** Refused before a further step began; earlier steps may have run. */
|
|
80
|
+
"caller_admission_expired",
|
|
77
81
|
/** Request prose looks shell-mangled around a money phrase: either shell expansion stripped a leading dollar sign ('50 million' where '$50 million' was meant) or an escape character survived into the text ('\$50 million', standalone '/$50 million'). Agent action: write '$' literally and re-send the JSON body from a file or stdin, or quote it so the shell does not expand '$'; use allowSuspectedShellStrip only when the value is intentional. */
|
|
78
82
|
"suspectedShellStrip",
|
|
79
83
|
/** Request prose looks shell-mangled around a money phrase: either shell expansion stripped a leading dollar sign ('50 million' where '$50 million' was meant) or an escape character survived into the text ('\$50 million', standalone '/$50 million'). Agent action: write '$' literally and re-send the JSON body from a file or stdin, or quote it so the shell does not expand '$'; use allowSuspectedShellStrip only when the value is intentional. */
|
|
@@ -174,6 +178,8 @@ export const ProblemDetailSchema = z.object({
|
|
|
174
178
|
"source_document_capture_limit_exceeded",
|
|
175
179
|
/** News similarity cannot run because the target embedding is unavailable or live similarity capacity is full. Agent action: surface the 503 and retry later; this endpoint does not fall back to lexical ranking. */
|
|
176
180
|
"news_similarity_embedding_unavailable",
|
|
181
|
+
/** The news page could not be read consistently; replay the request. */
|
|
182
|
+
"news_page_changed",
|
|
177
183
|
/** Web search is not configured on this API. Agent action: stop; retrying cannot succeed until aVenture restores it. */
|
|
178
184
|
"search_provider_not_configured",
|
|
179
185
|
/** Search provider call failed. Agent action: inspect detail and source. Provider credential or credit refusals (401, 402, or 407) are terminal: restore the provider credential or credits first. TERMINAL means refused or already retried: record the outage, never resend. TRANSIENT: retry once per Retry-After. */
|
|
@@ -5,7 +5,7 @@ const SharedSearchMutationSchemaDefinition = z.object({
|
|
|
5
5
|
id: z.uuid().nullish(),
|
|
6
6
|
/** Plain-English query to run against public records and publish. */
|
|
7
7
|
query: z.string().max(2000).nullish(),
|
|
8
|
-
/** entity.searchRequestId of the federated search response the sharing page showed. When that search was signed in, asked this query (ignoring case), and its shareable answer is still kept, the share publishes exactly that answer without searching again; otherwise it runs the default public search. */
|
|
8
|
+
/** entity.searchRequestId of the federated search response the sharing page showed. When that search was signed in, asked this query (ignoring case), and its shareable answer is still kept, the share publishes exactly that answer without searching again; otherwise it runs the default public search. A replacement requires it and never searches: a missing or expired kept answer is refused. */
|
|
9
9
|
searchRequestId: z.uuid().nullish(),
|
|
10
10
|
});
|
|
11
11
|
/**
|