@aventurevc/api-schemas 0.8.478 → 0.8.480
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/dist/http/problem-detail.d.ts +1 -0
- package/dist/http/problem-detail.js +5 -3
- package/dist/job/state.d.ts +11 -2
- package/dist/job/state.js +11 -8
- package/dist/lookup/job.d.ts +11 -2
- package/package.json +1 -1
|
@@ -52,6 +52,7 @@ export declare const ProblemDetailSchema: z.ZodObject<{
|
|
|
52
52
|
async_lookup_sign_in_required: "async_lookup_sign_in_required";
|
|
53
53
|
billing_additional_usage_cap_reached: "billing_additional_usage_cap_reached";
|
|
54
54
|
billing_allowance_exhausted: "billing_allowance_exhausted";
|
|
55
|
+
billing_complimentary_term: "billing_complimentary_term";
|
|
55
56
|
billing_credit_checkout_closed: "billing_credit_checkout_closed";
|
|
56
57
|
billing_plan_change_required: "billing_plan_change_required";
|
|
57
58
|
callback_challenge_failed: "callback_challenge_failed";
|
|
@@ -32,9 +32,9 @@ export const ProblemDetailSchema = z.object({
|
|
|
32
32
|
"async_lookup_sign_in_required",
|
|
33
33
|
/** Caller is authenticated but lacks the required role for this operation. Agent action: surface the requiredRole field on the ProblemDetail and stop; do not retry without role escalation. */
|
|
34
34
|
"not_authorized",
|
|
35
|
-
/** Request was throttled. Agent action: wait at least retryAfterSeconds (
|
|
35
|
+
/** Request was throttled. Agent action: wait at least retryAfterSeconds (or the Retry-After header), then back off exponentially on repeated 429s; with resetAt, wait until that time instead of retrying the spent monthly allowance. */
|
|
36
36
|
"rateLimited",
|
|
37
|
-
/** Request was throttled. Agent action: wait at least retryAfterSeconds (
|
|
37
|
+
/** Request was throttled. Agent action: wait at least retryAfterSeconds (or the Retry-After header), then back off exponentially on repeated 429s; with resetAt, wait until that time instead of retrying the spent monthly allowance. */
|
|
38
38
|
"rate_limited",
|
|
39
39
|
/** Caller is authenticated but the subscription on their account does not include this operation. Agent action: surface ProblemDetail.detail explaining the subscription requirement and stop; never retry until the account changes plan. */
|
|
40
40
|
"subscription_required",
|
|
@@ -44,8 +44,10 @@ export const ProblemDetailSchema = z.object({
|
|
|
44
44
|
"subscription_past_due",
|
|
45
45
|
/** Caller's subscription is paused, so it does not include this operation. Agent action: surface ProblemDetail.detail and stop; the account must add a payment method through the resolution's Billing Portal endpoint, then resume with PATCH /v1/billing/subscription and paused false. */
|
|
46
46
|
"subscription_paused",
|
|
47
|
-
/** The caller's metered allowance for this operation is spent for the
|
|
47
|
+
/** The caller's metered allowance for this operation is spent for the period. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt (often weeks away); never retry before then, despite the 429 status. */
|
|
48
48
|
"billing_allowance_exhausted",
|
|
49
|
+
/** A complimentary term is set; only upgrading to a paid plan changes it. */
|
|
50
|
+
"billing_complimentary_term",
|
|
49
51
|
/** The caller's monthly allowance is spent and the next additional-usage unit would pass the monthly spend cap or the prepaid credit left. Agent action: stop and report ProblemDetail.allowanceType, limit, used, remaining, and resetAt, then follow ProblemDetail.resolution: when prepaid credit is used up, buy credit through POST /v1/billing/credit-purchases only with the user's exact quoted approval of the amount; when the monthly cap is reached, raise spendCapCents through /v1/billing/additional-usage or wait for resetAt. */
|
|
50
52
|
"billing_additional_usage_cap_reached",
|
|
51
53
|
/** 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. */
|
package/dist/job/state.d.ts
CHANGED
|
@@ -8,13 +8,22 @@ import { z } from "zod/v4";
|
|
|
8
8
|
* @contractShape job.state
|
|
9
9
|
* @contractRole canonical
|
|
10
10
|
*/
|
|
11
|
-
export declare const JobStateSchema: z.ZodEnum<{
|
|
11
|
+
export declare const JobStateSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
12
12
|
CANCELED: "CANCELED";
|
|
13
13
|
COMPLETED: "COMPLETED";
|
|
14
14
|
FAILED: "FAILED";
|
|
15
15
|
PENDING: "PENDING";
|
|
16
16
|
RUNNING: "RUNNING";
|
|
17
17
|
UNKNOWN: "UNKNOWN";
|
|
18
|
-
}
|
|
18
|
+
}>, z.ZodString]> & {
|
|
19
|
+
enum: {
|
|
20
|
+
CANCELED: "CANCELED";
|
|
21
|
+
COMPLETED: "COMPLETED";
|
|
22
|
+
FAILED: "FAILED";
|
|
23
|
+
PENDING: "PENDING";
|
|
24
|
+
RUNNING: "RUNNING";
|
|
25
|
+
UNKNOWN: "UNKNOWN";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
19
28
|
export type JobState = z.infer<typeof JobStateSchema>;
|
|
20
29
|
//# sourceMappingURL=state.d.ts.map
|
package/dist/job/state.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
// LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
+
const JobStateSchemaKnownMembers = z.enum([
|
|
4
|
+
"PENDING",
|
|
5
|
+
"RUNNING",
|
|
6
|
+
"COMPLETED",
|
|
7
|
+
"FAILED",
|
|
8
|
+
"CANCELED",
|
|
9
|
+
"UNKNOWN",
|
|
10
|
+
]);
|
|
3
11
|
/**
|
|
4
12
|
* Shared lifecycle states for async jobs (duplicate-check, logo-audit, etc.)
|
|
5
13
|
*
|
|
@@ -9,12 +17,7 @@ import { z } from "zod/v4";
|
|
|
9
17
|
* @contractShape job.state
|
|
10
18
|
* @contractRole canonical
|
|
11
19
|
*/
|
|
12
|
-
export const JobStateSchema = z.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"COMPLETED",
|
|
16
|
-
"FAILED",
|
|
17
|
-
"CANCELED",
|
|
18
|
-
"UNKNOWN",
|
|
19
|
-
]);
|
|
20
|
+
export const JobStateSchema = Object.assign(z.union([JobStateSchemaKnownMembers, z.string()]), {
|
|
21
|
+
enum: JobStateSchemaKnownMembers.enum,
|
|
22
|
+
});
|
|
20
23
|
//# sourceMappingURL=state.js.map
|
package/dist/lookup/job.d.ts
CHANGED
|
@@ -2821,14 +2821,23 @@ declare const LookupJobSchemaDefinition: z.ZodObject<{
|
|
|
2821
2821
|
};
|
|
2822
2822
|
publication: z.ZodString;
|
|
2823
2823
|
}, z.core.$strip>>>;
|
|
2824
|
-
state: z.ZodEnum<{
|
|
2824
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2825
2825
|
CANCELED: "CANCELED";
|
|
2826
2826
|
COMPLETED: "COMPLETED";
|
|
2827
2827
|
FAILED: "FAILED";
|
|
2828
2828
|
PENDING: "PENDING";
|
|
2829
2829
|
RUNNING: "RUNNING";
|
|
2830
2830
|
UNKNOWN: "UNKNOWN";
|
|
2831
|
-
}
|
|
2831
|
+
}>, z.ZodString]> & {
|
|
2832
|
+
enum: {
|
|
2833
|
+
CANCELED: "CANCELED";
|
|
2834
|
+
COMPLETED: "COMPLETED";
|
|
2835
|
+
FAILED: "FAILED";
|
|
2836
|
+
PENDING: "PENDING";
|
|
2837
|
+
RUNNING: "RUNNING";
|
|
2838
|
+
UNKNOWN: "UNKNOWN";
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2832
2841
|
updatedAt: z.ZodISODateTime;
|
|
2833
2842
|
}, z.core.$strip>;
|
|
2834
2843
|
type LookupJobDefinition = z.infer<typeof LookupJobSchemaDefinition>;
|